]> git.saurik.com Git - wxWidgets.git/blame - configure
wxCocoa no longer uses the generic notebook.
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
ac1cb8d3 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.2.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
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
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
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'`
79
80
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
88
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
101
102
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
119
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
158
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}
188
189
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
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
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
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
273PACKAGE_VERSION='2.5.2'
274PACKAGE_STRING='wxWidgets 2.5.2'
275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
e835546c 316ac_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 SDL_CONFIG SDL_CFLAGS SDL_LIBS 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 USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS 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 DLLIMP_SUFFIX LIBPREFIX LIBEXT 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_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 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_0_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_GUI_1 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_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 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_MAC_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_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_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_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_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 LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
77ffb593 797\`configure' configures wxWidgets 2.5.2 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
77ffb593 863 short | recursive ) echo "Configuration of wxWidgets 2.5.2:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
646b6ec1 875 --enable-gtk2 use GTK+ 2.0 if available
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
a848cd7e
SC
894 --enable-rpath=DIR output the rpath flag from wx-config
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
77ffb593 934 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 935 --enable-zipstream use wxZipInputStream
a848cd7e
SC
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
947 --enable-constraints use layout-constraints system
948 --enable-printarch use printing architecture
949 --enable-mdi use multiple document interface architecture
8a7b1113 950 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
951 --enable-loggui use standard GUI logger
952 --enable-logwin use wxLogWindow
953 --enable-logdialog use wxLogDialog
646b6ec1 954 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
955 --enable-postscript use wxPostscriptDC device context (default for gtk+)
956 --enable-prologio not available; see contrib
957 --enable-resources not available; see contrib
958 --enable-clipboard use wxClipboard class
959 --enable-dnd use Drag'n'Drop classes
960 --enable-metafile use win32 metafiles
961 --enable-controls use all usual controls
962 --enable-accel use accelerators
963 --enable-button use wxButton class
964 --enable-bmpbutton use wxBitmapButton class
965 --enable-calendar use wxCalendarCtrl class
966 --enable-caret use wxCaret class
967 --enable-checkbox use wxCheckBox class
968 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
969 --enable-choice use wxChoice class
970 --enable-combobox use wxComboBox class
971 --enable-display use wxDisplay class
972 --enable-gauge use wxGauge class
973 --enable-grid use wxGrid class
974 --enable-imaglist use wxImageList class
975 --enable-listbook use wxListbook class
976 --enable-listbox use wxListBox class
977 --enable-listctrl use wxListCtrl class
978 --enable-notebook use wxNotebook class
979 --enable-radiobox use wxRadioBox class
980 --enable-radiobtn use wxRadioButton class
981 --enable-sash use wxSashWindow class
982 --enable-scrollbar use wxScrollBar class and scrollable windows
983 --enable-slider use wxSlider class
984 --enable-spinbtn use wxSpinButton class
985 --enable-spinctrl use wxSpinCtrl class
986 --enable-splitter use wxSplitterWindow class
987 --enable-statbmp use wxStaticBitmap class
988 --enable-statbox use wxStaticBox class
989 --enable-statline use wxStaticLine class
990 --enable-stattext use wxStaticText class
991 --enable-statusbar use wxStatusBar class
992 --enable-tabdialog use wxTabControl class
993 --enable-textctrl use wxTextCtrl class
994 --enable-togglebtn use wxToggleButton class
995 --enable-toolbar use wxToolBar class
996 --enable-tbarnative use native wxToolBar class
997 --enable-tbarsmpl use wxToolBarSimple class
998 --enable-treectrl use wxTreeCtrl class
999 --enable-tipwindow use wxTipWindow class
1000 --enable-popupwin use wxPopUpWindow class
1001 --enable-commondlg use all common dialogs
1002 --enable-choicedlg use wxChoiceDialog
1003 --enable-coldlg use wxColourDialog
1004 --enable-filedlg use wxFileDialog
1005 --enable-finddlg use wxFindReplaceDialog
1006 --enable-fontdlg use wxFontDialog
1007 --enable-dirdlg use wxDirDialog
1008 --enable-msgdlg use wxMessageDialog
1009 --enable-numberdlg use wxNumberEntryDialog
1010 --enable-splash use wxSplashScreen
1011 --enable-textdlg use wxTextDialog
1012 --enable-tipdlg use startup tips
1013 --enable-progressdlg use wxProgressDialog
1014 --enable-wizarddlg use wxWizard
1015 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1016 --enable-miniframe use wxMiniFrame class
1017 --enable-tooltips use wxToolTip class
1018 --enable-splines use spline drawing code
1019 --enable-validators use wxValidator and derived classes
1020 --enable-busyinfo use wxBusyInfo
1021 --enable-joystick use wxJoystick (Linux only)
1022 --enable-metafiles use wxMetaFile (Windows only)
1023 --enable-dragimage use wxDragImage
1024 --enable-accessibility enable accessibility support
1025 --enable-palette use wxPalette class
1026 --enable-image use wxImage class
1027 --enable-gif use gif images (GIF file format)
1028 --enable-pcx use pcx images (PCX file format)
1029 --enable-iff use iff images (IFF file format)
1030 --enable-pnm use pnm images (PNM file format)
1031 --enable-xpm use xpm images (XPM file format)
1032 --enable-icocur use Windows ICO and CUR formats
77ffb593 1033 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1034 --enable-vendor=VENDOR vendor name (win32 DLL only)
1035 --disable-largefile omit support for large files
1036 --disable-gtktest do not try to compile and run a test GTK+ program
1037 --disable-gtktest Do not try to compile and run a test GTK program
1038 --disable-sdltest Do not try to compile and run a test SDL program
1039 --enable-omf use OMF object format (OS/2)
1040 --disable-precomp-headers don't use precompiled headers even if compiler can
1041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gtk use GTK+
1046 --with-motif use Motif/Lesstif
1047 --with-mac use Mac OS X
1048 --with-cocoa use Cocoa
1049 --with-wine use Wine
1050 --with-msw use MS-Windows
1051 --with-pm use OS/2 Presentation Manager
1052 --with-mgl use SciTech MGL
1053 --with-microwin use MicroWindows
1054 --with-x11 use X11
1055 --with-libpng use libpng (PNG image format)
1056 --with-libjpeg use libjpeg (JPEG file format)
1057 --with-libtiff use libtiff (TIFF file format)
1058 --with-libxpm use libxpm (XPM file format)
1059 --with-libmspack use libmspack (CHM help files loading)
1060 --with-sdl use SDL for audio on Unix
1061 --with-opengl use OpenGL (or Mesa)
1062 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1063 --with-regex enable support for wxRegEx class
1064 --with-zlib use zlib for LZW compression
1065 --with-odbc use the IODBC and wxODBC classes
1066 --with-expat enable XML support using expat parser
1067 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1068 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1069 --with-x use the X Window System
1070 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1071 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1072 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1073 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1074 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1075
1076Some influential environment variables:
dcc1b6ad
VS
1077 CC C compiler command
1078 CFLAGS C compiler flags
1079 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1080 nonstandard directory <lib dir>
1081 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082 headers in a nonstandard directory <include dir>
1083 CPP C preprocessor
1084 CXX C++ compiler command
1085 CXXFLAGS C++ compiler flags
1086 CXXCPP C++ preprocessor
a848cd7e
SC
1087
1088Use these variables to override the choices made by `configure' or to help
1089it to find libraries and programs with nonstandard names/locations.
1090
77ffb593 1091Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1092_ACEOF
1093fi
1094
1095if test "$ac_init_help" = "recursive"; then
1096 # If there are subdirs, report their specific --help.
1097 ac_popdir=`pwd`
1098 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1099 test -d $ac_dir || continue
1100 ac_builddir=.
1101
1102if test "$ac_dir" != .; then
1103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1104 # A "../" for each directory in $ac_dir_suffix.
1105 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1106else
1107 ac_dir_suffix= ac_top_builddir=
1108fi
1109
1110case $srcdir in
1111 .) # No --srcdir option. We are building in place.
1112 ac_srcdir=.
1113 if test -z "$ac_top_builddir"; then
1114 ac_top_srcdir=.
1115 else
1116 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1117 fi ;;
1118 [\\/]* | ?:[\\/]* ) # Absolute path.
1119 ac_srcdir=$srcdir$ac_dir_suffix;
1120 ac_top_srcdir=$srcdir ;;
1121 *) # Relative path.
1122 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1123 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1124esac
ac1cb8d3
VS
1125
1126# Do not use `cd foo && pwd` to compute absolute paths, because
1127# the directories may not exist.
1128case `pwd` in
1129.) ac_abs_builddir="$ac_dir";;
1130*)
1131 case "$ac_dir" in
1132 .) ac_abs_builddir=`pwd`;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1134 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1135 esac;;
1136esac
1137case $ac_abs_builddir in
1138.) ac_abs_top_builddir=${ac_top_builddir}.;;
1139*)
1140 case ${ac_top_builddir}. in
1141 .) ac_abs_top_builddir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1143 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1144 esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_srcdir=$ac_srcdir;;
1148*)
1149 case $ac_srcdir in
1150 .) ac_abs_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1152 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1153 esac;;
1154esac
1155case $ac_abs_builddir in
1156.) ac_abs_top_srcdir=$ac_top_srcdir;;
1157*)
1158 case $ac_top_srcdir in
1159 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1161 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1162 esac;;
1163esac
a848cd7e
SC
1164
1165 cd $ac_dir
1166 # Check for guested configure; otherwise get Cygnus style configure.
1167 if test -f $ac_srcdir/configure.gnu; then
1168 echo
1169 $SHELL $ac_srcdir/configure.gnu --help=recursive
1170 elif test -f $ac_srcdir/configure; then
1171 echo
1172 $SHELL $ac_srcdir/configure --help=recursive
1173 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1174 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1175 echo
1176 $ac_configure --help
1177 else
1178 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1179 fi
dcc1b6ad 1180 cd $ac_popdir
a848cd7e
SC
1181 done
1182fi
1183
1184test -n "$ac_init_help" && exit 0
1185if $ac_init_version; then
1186 cat <<\_ACEOF
77ffb593 1187wxWidgets configure 2.5.2
ac1cb8d3 1188generated by GNU Autoconf 2.59
a848cd7e 1189
ac1cb8d3 1190Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1191This configure script is free software; the Free Software Foundation
1192gives unlimited permission to copy, distribute and modify it.
1193_ACEOF
1194 exit 0
1195fi
1196exec 5>config.log
1197cat >&5 <<_ACEOF
1198This file contains any messages produced by compilers while
1199running configure, to aid debugging if configure makes a mistake.
1200
77ffb593 1201It was created by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 1202generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1203
1204 $ $0 $@
1205
1206_ACEOF
1207{
1208cat <<_ASUNAME
1209## --------- ##
1210## Platform. ##
1211## --------- ##
1212
1213hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1214uname -m = `(uname -m) 2>/dev/null || echo unknown`
1215uname -r = `(uname -r) 2>/dev/null || echo unknown`
1216uname -s = `(uname -s) 2>/dev/null || echo unknown`
1217uname -v = `(uname -v) 2>/dev/null || echo unknown`
1218
1219/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1220/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1221
1222/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1223/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1224/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1225hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1226/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1227/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1228/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1229
1230_ASUNAME
1231
1232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1233for as_dir in $PATH
1234do
1235 IFS=$as_save_IFS
1236 test -z "$as_dir" && as_dir=.
1237 echo "PATH: $as_dir"
1238done
1239
1240} >&5
1241
1242cat >&5 <<_ACEOF
1243
1244
1245## ----------- ##
1246## Core tests. ##
1247## ----------- ##
1248
1249_ACEOF
1250
1251
1252# Keep a trace of the command line.
1253# Strip out --no-create and --no-recursion so they do not pile up.
1254# Strip out --silent because we don't want to record it for future runs.
1255# Also quote any args containing shell meta-characters.
1256# Make two passes to allow for proper duplicate-argument suppression.
1257ac_configure_args=
1258ac_configure_args0=
1259ac_configure_args1=
1260ac_sep=
1261ac_must_keep_next=false
1262for ac_pass in 1 2
1263do
1264 for ac_arg
1265 do
1266 case $ac_arg in
1267 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269 | -silent | --silent | --silen | --sile | --sil)
1270 continue ;;
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 esac
1274 case $ac_pass in
1275 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1276 2)
1277 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1278 if test $ac_must_keep_next = true; then
ac1cb8d3 1279 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1280 else
ac1cb8d3
VS
1281 case $ac_arg in
1282 *=* | --config-cache | -C | -disable-* | --disable-* \
1283 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1284 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1285 | -with-* | --with-* | -without-* | --without-* | --x)
1286 case "$ac_configure_args0 " in
1287 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1288 esac
1289 ;;
1290 -* ) ac_must_keep_next=true ;;
1291 esac
a848cd7e
SC
1292 fi
1293 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1294 # Get rid of the leading space.
1295 ac_sep=" "
1296 ;;
1297 esac
1298 done
1299done
1300$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1301$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1302
1303# When interrupted or exit'd, cleanup temporary files, and complete
1304# config.log. We remove comments because anyway the quotes in there
1305# would cause problems or look ugly.
1306# WARNING: Be sure not to use single quotes in there, as some shells,
1307# such as our DU 5.0 friend, will then `close' the trap.
1308trap 'exit_status=$?
1309 # Save into config.log some information that might help in debugging.
1310 {
1311 echo
1312
1313 cat <<\_ASBOX
1314## ---------------- ##
1315## Cache variables. ##
1316## ---------------- ##
1317_ASBOX
1318 echo
1319 # The following way of writing the cache mishandles newlines in values,
1320{
1321 (set) 2>&1 |
1322 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1323 *ac_space=\ *)
1324 sed -n \
ac1cb8d3
VS
1325 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1327 ;;
1328 *)
1329 sed -n \
ac1cb8d3 1330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1331 ;;
1332 esac;
1333}
1334 echo
1335
1336 cat <<\_ASBOX
1337## ----------------- ##
1338## Output variables. ##
1339## ----------------- ##
1340_ASBOX
1341 echo
1342 for ac_var in $ac_subst_vars
1343 do
1344 eval ac_val=$`echo $ac_var`
1345 echo "$ac_var='"'"'$ac_val'"'"'"
1346 done | sort
1347 echo
1348
1349 if test -n "$ac_subst_files"; then
1350 cat <<\_ASBOX
1351## ------------- ##
1352## Output files. ##
1353## ------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_files
1357 do
1358 eval ac_val=$`echo $ac_var`
ac1cb8d3 1359 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1360 done | sort
1361 echo
1362 fi
1363
1364 if test -s confdefs.h; then
1365 cat <<\_ASBOX
1366## ----------- ##
1367## confdefs.h. ##
1368## ----------- ##
1369_ASBOX
1370 echo
1371 sed "/^$/d" confdefs.h | sort
1372 echo
1373 fi
1374 test "$ac_signal" != 0 &&
1375 echo "$as_me: caught signal $ac_signal"
1376 echo "$as_me: exit $exit_status"
1377 } >&5
ac1cb8d3 1378 rm -f core *.core &&
a848cd7e
SC
1379 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1380 exit $exit_status
1381 ' 0
1382for ac_signal in 1 2 13 15; do
1383 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1384done
1385ac_signal=0
1386
1387# confdefs.h avoids OS command line length limits that DEFS can exceed.
1388rm -rf conftest* confdefs.h
1389# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1390echo >confdefs.h
1391
1392# Predefined preprocessor variables.
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_NAME "$PACKAGE_NAME"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_VERSION "$PACKAGE_VERSION"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_STRING "$PACKAGE_STRING"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1416_ACEOF
1417
1418
1419# Let the site file select an alternate cache file if it wants to.
1420# Prefer explicitly selected file to automatically selected ones.
1421if test -z "$CONFIG_SITE"; then
1422 if test "x$prefix" != xNONE; then
1423 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1424 else
1425 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1426 fi
1427fi
1428for ac_site_file in $CONFIG_SITE; do
1429 if test -r "$ac_site_file"; then
1430 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1431echo "$as_me: loading site script $ac_site_file" >&6;}
1432 sed 's/^/| /' "$ac_site_file" >&5
1433 . "$ac_site_file"
1434 fi
1435done
1436
1437if test -r "$cache_file"; then
1438 # Some versions of bash will fail to source /dev/null (special
1439 # files actually), so we avoid doing that.
1440 if test -f "$cache_file"; then
1441 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1442echo "$as_me: loading cache $cache_file" >&6;}
1443 case $cache_file in
1444 [\\/]* | ?:[\\/]* ) . $cache_file;;
1445 *) . ./$cache_file;;
1446 esac
1447 fi
1448else
1449 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1450echo "$as_me: creating cache $cache_file" >&6;}
1451 >$cache_file
1452fi
1453
1454# Check that the precious variables saved in the cache have kept the same
1455# value.
1456ac_cache_corrupted=false
1457for ac_var in `(set) 2>&1 |
ac1cb8d3 1458 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460 eval ac_new_set=\$ac_env_${ac_var}_set
1461 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462 eval ac_new_val="\$ac_env_${ac_var}_value"
1463 case $ac_old_set,$ac_new_set in
1464 set,)
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1468 ,set)
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1472 ,);;
1473 *)
1474 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1475 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1476echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1477 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1478echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1479 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1480echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1481 ac_cache_corrupted=:
a848cd7e
SC
1482 fi;;
1483 esac
1484 # Pass precious variables to config.status.
1485 if test "$ac_new_set" = set; then
1486 case $ac_new_val in
1487 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489 *) ac_arg=$ac_var=$ac_new_val ;;
1490 esac
1491 case " $ac_configure_args " in
1492 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1493 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1494 esac
1495 fi
1496done
1497if $ac_cache_corrupted; then
1498 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502 { (exit 1); exit 1; }; }
1503fi
1504
1505ac_ext=c
1506ac_cpp='$CPP $CPPFLAGS'
1507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540ac_aux_dir=
1541for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1542 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 break
1546 elif test -f $ac_dir/install.sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1549 break
1550 elif test -f $ac_dir/shtool; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 break
1554 fi
1555done
1556if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1558echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1559 { (exit 1); exit 1; }; }
1560fi
1561ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565# Make sure we can run config.sub.
1566$ac_config_sub sun4 >/dev/null 2>&1 ||
1567 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1568echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571echo "$as_me:$LINENO: checking build system type" >&5
1572echo $ECHO_N "checking build system type... $ECHO_C" >&6
1573if test "${ac_cv_build+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576 ac_cv_build_alias=$build_alias
1577test -z "$ac_cv_build_alias" &&
1578 ac_cv_build_alias=`$ac_config_guess`
1579test -z "$ac_cv_build_alias" &&
1580 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1581echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1582 { (exit 1); exit 1; }; }
1583ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1585echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1587
1588fi
1589echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1590echo "${ECHO_T}$ac_cv_build" >&6
1591build=$ac_cv_build
1592build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595
1596
1597echo "$as_me:$LINENO: checking host system type" >&5
1598echo $ECHO_N "checking host system type... $ECHO_C" >&6
1599if test "${ac_cv_host+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 ac_cv_host_alias=$host_alias
1603test -z "$ac_cv_host_alias" &&
1604 ac_cv_host_alias=$ac_cv_build_alias
1605ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1606 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1607echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1608 { (exit 1); exit 1; }; }
1609
1610fi
1611echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1612echo "${ECHO_T}$ac_cv_host" >&6
1613host=$ac_cv_host
1614host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1615host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1616host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1617
1618
1619echo "$as_me:$LINENO: checking target system type" >&5
1620echo $ECHO_N "checking target system type... $ECHO_C" >&6
1621if test "${ac_cv_target+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623else
1624 ac_cv_target_alias=$target_alias
1625test "x$ac_cv_target_alias" = "x" &&
1626 ac_cv_target_alias=$ac_cv_host_alias
1627ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1629echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1631
1632fi
1633echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1634echo "${ECHO_T}$ac_cv_target" >&6
1635target=$ac_cv_target
1636target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
1640
1641# The aliases save the names the user supplied, while $host etc.
1642# will get canonicalized.
1643test -n "$target_alias" &&
1644 test "$program_prefix$program_suffix$program_transform_name" = \
1645 NONENONEs,x,x, &&
1646 program_prefix=${target_alias}-
1647
1648
1649
1650WX_MAJOR_VERSION_NUMBER=2
1651WX_MINOR_VERSION_NUMBER=5
de59c161 1652WX_RELEASE_NUMBER=2
a848cd7e
SC
1653
1654WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1655WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1656
1657WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1658
de59c161 1659WX_CURRENT=2
a848cd7e
SC
1660WX_REVISION=0
1661WX_AGE=0
1662
1663
1664
1665USE_UNIX=1
1666USE_OS2=0
1667USE_WIN32=0
1668USE_DOS=0
1669USE_BEOS=0
1670USE_MAC=0
1671
1672USE_AIX=
1673USE_BSD= USE_DARWIN= USE_FREEBSD=
1674USE_GNU= USE_HPUX=
1675USE_LINUX=
1676USE_NETBSD=
1677USE_OPENBSD=
1678USE_OSF= USE_SGI=
1679USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1680USE_ULTRIX=
1681USE_UNIXWARE=
1682
1683USE_ALPHA=
1684
1685NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1686
1687ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1688
1689DEFAULT_wxUSE_COCOA=0
1690DEFAULT_wxUSE_GTK=0
1691DEFAULT_wxUSE_MAC=0
1692DEFAULT_wxUSE_MGL=0
1693DEFAULT_wxUSE_MICROWIN=0
1694DEFAULT_wxUSE_MOTIF=0
1695DEFAULT_wxUSE_MSW=0
1696DEFAULT_wxUSE_PM=0
1697DEFAULT_wxUSE_X11=0
1698
1699DEFAULT_DEFAULT_wxUSE_COCOA=0
1700DEFAULT_DEFAULT_wxUSE_GTK=0
1701DEFAULT_DEFAULT_wxUSE_MAC=0
1702DEFAULT_DEFAULT_wxUSE_MGL=0
1703DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1704DEFAULT_DEFAULT_wxUSE_MOTIF=0
1705DEFAULT_DEFAULT_wxUSE_MSW=0
1706DEFAULT_DEFAULT_wxUSE_PM=0
1707DEFAULT_DEFAULT_wxUSE_X11=0
1708
1709PROGRAM_EXT=
1710SO_SUFFIX=so
1711SAMPLES_RPATH_FLAG=
1712SAMPLES_RPATH_POSTLINK=
1713
1714case "${host}" in
1715 *-hp-hpux* )
1716 USE_HPUX=1
1717 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1718 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1719 SO_SUFFIX=sl
1720 cat >>confdefs.h <<\_ACEOF
1721#define __HPUX__ 1
1722_ACEOF
1723
1724 ;;
1725 *-*-linux* )
1726 USE_LINUX=1
1727 cat >>confdefs.h <<\_ACEOF
1728#define __LINUX__ 1
1729_ACEOF
1730
1731 TMP=`uname -m`
1732 if test "x$TMP" = "xalpha"; then
1733 USE_ALPHA=1
1734 cat >>confdefs.h <<\_ACEOF
1735#define __ALPHA__ 1
1736_ACEOF
1737
1738 fi
1739 DEFAULT_DEFAULT_wxUSE_GTK=1
1740 ;;
1741 *-*-gnu* | *-*-k*bsd*-gnu )
1742 USE_GNU=1
1743 TMP=`uname -m`
1744 if test "x$TMP" = "xalpha"; then
1745 USE_ALPHA=1
1746 cat >>confdefs.h <<\_ACEOF
1747#define __ALPHA__ 1
1748_ACEOF
1749
1750 fi
1751 DEFAULT_DEFAULT_wxUSE_GTK=1
1752 ;;
1753 *-*-irix5* | *-*-irix6* )
1754 USE_SGI=1
1755 USE_SVR4=1
1756 cat >>confdefs.h <<\_ACEOF
1757#define __SGI__ 1
1758_ACEOF
1759
1760 cat >>confdefs.h <<\_ACEOF
1761#define __SVR4__ 1
1762_ACEOF
1763
1764 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1765 ;;
1766 *-*-solaris2* )
1767 USE_SUN=1
1768 USE_SOLARIS=1
1769 USE_SVR4=1
1770 cat >>confdefs.h <<\_ACEOF
1771#define __SUN__ 1
1772_ACEOF
1773
1774 cat >>confdefs.h <<\_ACEOF
1775#define __SOLARIS__ 1
1776_ACEOF
1777
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SVR4__ 1
1780_ACEOF
1781
1782 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1783 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1784 ;;
1785 *-*-sunos4* )
1786 USE_SUN=1
1787 USE_SUNOS=1
1788 USE_BSD=1
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SUN__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SUNOS__ 1
1795_ACEOF
1796
1797 cat >>confdefs.h <<\_ACEOF
1798#define __BSD__ 1
1799_ACEOF
1800
1801 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1802 ;;
1803 *-*-freebsd*)
1804 USE_BSD=1
1805 USE_FREEBSD=1
1806 cat >>confdefs.h <<\_ACEOF
1807#define __FREEBSD__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __BSD__ 1
1812_ACEOF
1813
1814 DEFAULT_DEFAULT_wxUSE_GTK=1
1815 ;;
1816 *-*-openbsd*)
1817 USE_BSD=1
1818 USE_OPENBSD=1
1819 cat >>confdefs.h <<\_ACEOF
1820#define __OPENBSD__ 1
1821_ACEOF
1822
1823 cat >>confdefs.h <<\_ACEOF
1824#define __BSD__ 1
1825_ACEOF
1826
1827 DEFAULT_DEFAULT_wxUSE_GTK=1
1828 ;;
1829 *-*-netbsd*)
1830 USE_BSD=1
1831 USE_NETBSD=1
1832 cat >>confdefs.h <<\_ACEOF
1833#define __NETBSD__ 1
1834_ACEOF
1835
1836 cat >>confdefs.h <<\_ACEOF
1837#define __BSD__ 1
1838_ACEOF
1839
1840 DEFAULT_DEFAULT_wxUSE_GTK=1
1841 ;;
1842 *-*-osf* )
1843 USE_ALPHA=1
1844 USE_OSF=1
1845 cat >>confdefs.h <<\_ACEOF
1846#define __ALPHA__ 1
1847_ACEOF
1848
1849 cat >>confdefs.h <<\_ACEOF
1850#define __OSF__ 1
1851_ACEOF
1852
1853 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1854 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1855 ;;
1856 *-*-dgux5* )
1857 USE_ALPHA=1
1858 USE_SVR4=1
1859 cat >>confdefs.h <<\_ACEOF
1860#define __ALPHA__ 1
1861_ACEOF
1862
1863 cat >>confdefs.h <<\_ACEOF
1864#define __SVR4__ 1
1865_ACEOF
1866
1867 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1868 ;;
1869 *-*-sysv5* )
1870 USE_SYSV=1
1871 USE_SVR4=1
1872 cat >>confdefs.h <<\_ACEOF
1873#define __SYSV__ 1
1874_ACEOF
1875
1876 cat >>confdefs.h <<\_ACEOF
1877#define __SVR4__ 1
1878_ACEOF
1879
1880 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1881 ;;
1882 *-*-aix* )
1883 USE_AIX=1
1884 USE_SYSV=1
1885 USE_SVR4=1
1886 SO_SUFFIX=a
1887 cat >>confdefs.h <<\_ACEOF
1888#define __AIX__ 1
1889_ACEOF
1890
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SYSV__ 1
1893_ACEOF
1894
1895 cat >>confdefs.h <<\_ACEOF
1896#define __SVR4__ 1
1897_ACEOF
1898
1899 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1900 ;;
1901
1902 *-*-*UnixWare*)
1903 USE_SYSV=1
1904 USE_SVR4=1
1905 USE_UNIXWARE=1
1906 cat >>confdefs.h <<\_ACEOF
1907#define __UNIXWARE__ 1
1908_ACEOF
1909
1910 ;;
1911
1912 *-*-cygwin* | *-*-mingw32* )
1913 SO_SUFFIX=dll
1914 PROGRAM_EXT=".exe"
1915 RESCOMP=windres
1916 DEFAULT_DEFAULT_wxUSE_MSW=1
1917 ;;
1918
1919 *-pc-msdosdjgpp )
1920 USE_UNIX=0
1921 USE_DOS=1
1922 cat >>confdefs.h <<\_ACEOF
1923#define __DOS__ 1
1924_ACEOF
1925
1926 PROGRAM_EXT=".exe"
1927 DEFAULT_DEFAULT_wxUSE_MGL=1
1928 LIBS="$LIBS -lstdc++"
1929 ;;
1930
1931 *-pc-os2_emx | *-pc-os2-emx )
1932 cat >>confdefs.h <<\_ACEOF
1933#define __EMX__ 1
1934_ACEOF
1935
1936 USE_OS2=1
1937 cat >>confdefs.h <<\_ACEOF
1938#define __OS2__ 1
1939_ACEOF
1940
1941 PROGRAM_EXT=".exe"
1942 DEFAULT_DEFAULT_wxUSE_PM=1
1943 CXX=gcc
1944 LDFLAGS="$LDFLAGS -Zcrtdll"
1945 ac_executable_extensions=".exe"
1946 export ac_executable_extensions
1947 ac_save_IFS="$IFS"
1948 IFS='\\'
1949 ac_TEMP_PATH=
1950 for ac_dir in $PATH; do
1951 IFS=$ac_save_IFS
1952 if test -z "$ac_TEMP_PATH"; then
1953 ac_TEMP_PATH="$ac_dir"
1954 else
1955 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1956 fi
1957 done
1958 export PATH="$ac_TEMP_PATH"
1959 unset ac_TEMP_PATH
1960 ;;
1961
1962 powerpc-*-darwin* )
1963 USE_BSD=1
1964 USE_DARWIN=1
1965 SO_SUFFIX=dylib
1966 cat >>confdefs.h <<\_ACEOF
1967#define __BSD__ 1
1968_ACEOF
1969
1970 cat >>confdefs.h <<\_ACEOF
1971#define __DARWIN__ 1
1972_ACEOF
1973
1974 cat >>confdefs.h <<\_ACEOF
1975#define __POWERPC__ 1
1976_ACEOF
1977
1978 cat >>confdefs.h <<\_ACEOF
1979#define TARGET_CARBON 1
1980_ACEOF
1981
1982 DEFAULT_DEFAULT_wxUSE_MAC=1
1983 ;;
1984
1985 *-*-beos* )
1986 USE_BEOS=1
1987 cat >>confdefs.h <<\_ACEOF
1988#define __BEOS__ 1
1989_ACEOF
1990
1991 ;;
1992
1993 *)
1994 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1995echo "$as_me: error: unknown system type ${host}." >&2;}
1996 { (exit 1); exit 1; }; }
1997esac
1998
1999
2000
2001
2002 wx_arg_cache_file="configarg.cache"
2003 echo "loading argument cache $wx_arg_cache_file"
2004 rm -f ${wx_arg_cache_file}.tmp
2005 touch ${wx_arg_cache_file}.tmp
2006 touch ${wx_arg_cache_file}
2007
2008
2009DEBUG_CONFIGURE=0
2010if test $DEBUG_CONFIGURE = 1; then
2011 DEFAULT_wxUSE_UNIVERSAL=no
2012 DEFAULT_wxUSE_STL=no
2013
2014 DEFAULT_wxUSE_NANOX=no
2015
2016 DEFAULT_wxUSE_THREADS=yes
2017
2018 DEFAULT_wxUSE_SHARED=yes
2019 DEFAULT_wxUSE_OPTIMISE=no
2020 DEFAULT_wxUSE_PROFILE=no
2021 DEFAULT_wxUSE_NO_DEPS=no
2022 DEFAULT_wxUSE_NO_RTTI=no
2023 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2024 DEFAULT_wxUSE_PERMISSIVE=no
2025 DEFAULT_wxUSE_DEBUG_FLAG=yes
2026 DEFAULT_wxUSE_DEBUG_INFO=yes
2027 DEFAULT_wxUSE_DEBUG_GDB=yes
2028 DEFAULT_wxUSE_MEM_TRACING=no
2029 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2030 DEFAULT_wxUSE_DMALLOC=no
2031 DEFAULT_wxUSE_APPLE_IEEE=no
2032
2033 DEFAULT_wxUSE_EXCEPTIONS=no
2034 DEFAULT_wxUSE_LOG=yes
2035 DEFAULT_wxUSE_LOGWINDOW=no
2036 DEFAULT_wxUSE_LOGGUI=no
2037 DEFAULT_wxUSE_LOGDIALOG=no
2038
2039 DEFAULT_wxUSE_GUI=yes
2040 DEFAULT_wxUSE_CONTROLS=no
2041
2042 DEFAULT_wxUSE_REGEX=no
2043 DEFAULT_wxUSE_XML=no
2044 DEFAULT_wxUSE_EXPAT=no
2045 DEFAULT_wxUSE_ZLIB=no
2046 DEFAULT_wxUSE_LIBPNG=no
2047 DEFAULT_wxUSE_LIBJPEG=no
2048 DEFAULT_wxUSE_LIBTIFF=no
2049 DEFAULT_wxUSE_LIBXPM=no
2050 DEFAULT_wxUSE_LIBMSPACK=no
2051 DEFAULT_wxUSE_LIBSDL=no
2052 DEFAULT_wxUSE_ODBC=no
2053 DEFAULT_wxUSE_OPENGL=no
2054
2055 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2056 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2057 DEFAULT_wxUSE_STD_IOSTREAM=no
2058 DEFAULT_wxUSE_CMDLINE_PARSER=no
2059 DEFAULT_wxUSE_DATETIME=no
2060 DEFAULT_wxUSE_TIMER=no
2061 DEFAULT_wxUSE_STOPWATCH=no
2062 DEFAULT_wxUSE_FILE=no
2063 DEFAULT_wxUSE_FFILE=no
2064 DEFAULT_wxUSE_TEXTBUFFER=no
2065 DEFAULT_wxUSE_TEXTFILE=no
2066 DEFAULT_wxUSE_SOUND=no
2067 DEFAULT_wxUSE_INTL=no
2068 DEFAULT_wxUSE_CONFIG=no
2069 DEFAULT_wxUSE_FONTMAP=no
2070 DEFAULT_wxUSE_STREAMS=no
2071 DEFAULT_wxUSE_SOCKETS=no
2072 DEFAULT_wxUSE_OLE=no
2073 DEFAULT_wxUSE_DATAOBJ=no
2074 DEFAULT_wxUSE_DIALUP_MANAGER=no
2075 DEFAULT_wxUSE_JOYSTICK=no
2076 DEFAULT_wxUSE_DYNLIB_CLASS=no
2077 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2078 DEFAULT_wxUSE_LONGLONG=no
2079 DEFAULT_wxUSE_GEOMETRY=no
2080
2081 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2082 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2083 DEFAULT_wxUSE_POSTSCRIPT=no
2084
2085 DEFAULT_wxUSE_CLIPBOARD=no
2086 DEFAULT_wxUSE_TOOLTIPS=no
2087 DEFAULT_wxUSE_DRAG_AND_DROP=no
2088 DEFAULT_wxUSE_DRAGIMAGE=no
2089 DEFAULT_wxUSE_SPLINES=no
2090
8a7b1113 2091 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2092 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2093 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2094 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2095
2096 DEFAULT_wxUSE_RESOURCES=no
2097 DEFAULT_wxUSE_CONSTRAINTS=no
2098 DEFAULT_wxUSE_IPC=no
2099 DEFAULT_wxUSE_HELP=no
2100 DEFAULT_wxUSE_MS_HTML_HELP=no
2101 DEFAULT_wxUSE_WXHTML_HELP=no
2102 DEFAULT_wxUSE_TREELAYOUT=no
2103 DEFAULT_wxUSE_METAFILE=no
2104 DEFAULT_wxUSE_MIMETYPE=no
2105 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2106 DEFAULT_wxUSE_PROTOCOL=no
2107 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2108 DEFAULT_wxUSE_PROTOCOL_FTP=no
2109 DEFAULT_wxUSE_PROTOCOL_FILE=no
2110 DEFAULT_wxUSE_URL=no
2111
2112 DEFAULT_wxUSE_COMMONDLGS=no
2113 DEFAULT_wxUSE_CHOICEDLG=no
2114 DEFAULT_wxUSE_COLOURDLG=no
2115 DEFAULT_wxUSE_DIRDLG=no
2116 DEFAULT_wxUSE_FILEDLG=no
2117 DEFAULT_wxUSE_FINDREPLDLG=no
2118 DEFAULT_wxUSE_FONTDLG=no
2119 DEFAULT_wxUSE_MSGDLG=no
2120 DEFAULT_wxUSE_NUMBERDLG=no
2121 DEFAULT_wxUSE_TEXTDLG=no
2122 DEFAULT_wxUSE_SPLASH=no
2123 DEFAULT_wxUSE_STARTUP_TIPS=no
2124 DEFAULT_wxUSE_PROGRESSDLG=no
2125 DEFAULT_wxUSE_WIZARDDLG=no
2126
2127 DEFAULT_wxUSE_MENUS=no
2128 DEFAULT_wxUSE_MINIFRAME=no
2129 DEFAULT_wxUSE_HTML=no
646b6ec1 2130 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2131 DEFAULT_wxUSE_FILESYSTEM=no
2132 DEFAULT_wxUSE_FS_INET=no
2133 DEFAULT_wxUSE_FS_ZIP=no
2134 DEFAULT_wxUSE_BUSYINFO=no
2135 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2136 DEFAULT_wxUSE_VALIDATORS=no
2137
2138 DEFAULT_wxUSE_ACCEL=no
2139 DEFAULT_wxUSE_BUTTON=no
2140 DEFAULT_wxUSE_BMPBUTTON=no
2141 DEFAULT_wxUSE_CALCTRL=no
2142 DEFAULT_wxUSE_CARET=no
2143 DEFAULT_wxUSE_CHECKBOX=no
2144 DEFAULT_wxUSE_CHECKLST=no
2145 DEFAULT_wxUSE_CHOICE=no
2146 DEFAULT_wxUSE_COMBOBOX=no
2147 DEFAULT_wxUSE_DISPLAY=no
2148 DEFAULT_wxUSE_GAUGE=no
2149 DEFAULT_wxUSE_GRID=no
2150 DEFAULT_wxUSE_IMAGLIST=no
2151 DEFAULT_wxUSE_LISTBOOK=no
2152 DEFAULT_wxUSE_LISTBOX=no
2153 DEFAULT_wxUSE_LISTCTRL=no
2154 DEFAULT_wxUSE_NOTEBOOK=no
2155 DEFAULT_wxUSE_RADIOBOX=no
2156 DEFAULT_wxUSE_RADIOBTN=no
2157 DEFAULT_wxUSE_SASH=no
2158 DEFAULT_wxUSE_SCROLLBAR=no
2159 DEFAULT_wxUSE_SLIDER=no
2160 DEFAULT_wxUSE_SPINBTN=no
2161 DEFAULT_wxUSE_SPINCTRL=no
2162 DEFAULT_wxUSE_SPLITTER=no
2163 DEFAULT_wxUSE_STATBMP=no
2164 DEFAULT_wxUSE_STATBOX=no
2165 DEFAULT_wxUSE_STATLINE=no
2166 DEFAULT_wxUSE_STATTEXT=no
2167 DEFAULT_wxUSE_STATUSBAR=yes
2168 DEFAULT_wxUSE_TABDIALOG=no
2169 DEFAULT_wxUSE_TEXTCTRL=no
2170 DEFAULT_wxUSE_TOGGLEBTN=no
2171 DEFAULT_wxUSE_TOOLBAR=no
2172 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2173 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2174 DEFAULT_wxUSE_TREECTRL=no
2175 DEFAULT_wxUSE_POPUPWIN=no
2176 DEFAULT_wxUSE_TIPWINDOW=no
2177
2178 DEFAULT_wxUSE_UNICODE=no
2179 DEFAULT_wxUSE_UNICODE_MSLU=no
2180 DEFAULT_wxUSE_WCSRTOMBS=no
2181
2182 DEFAULT_wxUSE_PALETTE=no
2183 DEFAULT_wxUSE_IMAGE=no
2184 DEFAULT_wxUSE_GIF=no
2185 DEFAULT_wxUSE_PCX=no
2186 DEFAULT_wxUSE_PNM=no
2187 DEFAULT_wxUSE_IFF=no
2188 DEFAULT_wxUSE_XPM=no
2189 DEFAULT_wxUSE_ICO_CUR=no
2190 DEFAULT_wxUSE_ACCESSIBILITY=no
2191
2192 DEFAULT_wxUSE_MONOLITHIC=no
2193 DEFAULT_wxUSE_PLUGINS=no
2194 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2195else
2196 DEFAULT_wxUSE_UNIVERSAL=no
2197 DEFAULT_wxUSE_STL=no
2198
2199 DEFAULT_wxUSE_NANOX=no
2200
2201 DEFAULT_wxUSE_THREADS=yes
2202
2203 DEFAULT_wxUSE_SHARED=yes
2204 DEFAULT_wxUSE_OPTIMISE=yes
2205 DEFAULT_wxUSE_PROFILE=no
2206 DEFAULT_wxUSE_NO_DEPS=no
2207 DEFAULT_wxUSE_NO_RTTI=no
2208 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2209 DEFAULT_wxUSE_PERMISSIVE=no
2210 DEFAULT_wxUSE_DEBUG_FLAG=no
2211 DEFAULT_wxUSE_DEBUG_INFO=no
2212 DEFAULT_wxUSE_DEBUG_GDB=no
2213 DEFAULT_wxUSE_MEM_TRACING=no
2214 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2215 DEFAULT_wxUSE_DMALLOC=no
2216 DEFAULT_wxUSE_APPLE_IEEE=yes
2217
2218 DEFAULT_wxUSE_EXCEPTIONS=yes
2219 DEFAULT_wxUSE_LOG=yes
2220 DEFAULT_wxUSE_LOGWINDOW=yes
2221 DEFAULT_wxUSE_LOGGUI=yes
2222 DEFAULT_wxUSE_LOGDIALOG=yes
2223
2224 DEFAULT_wxUSE_GUI=yes
2225
2226 DEFAULT_wxUSE_REGEX=yes
2227 DEFAULT_wxUSE_XML=yes
2228 DEFAULT_wxUSE_EXPAT=yes
2229 DEFAULT_wxUSE_ZLIB=yes
2230 DEFAULT_wxUSE_LIBPNG=yes
2231 DEFAULT_wxUSE_LIBJPEG=yes
2232 DEFAULT_wxUSE_LIBTIFF=yes
2233 DEFAULT_wxUSE_LIBXPM=yes
2234 DEFAULT_wxUSE_LIBMSPACK=yes
2235 DEFAULT_wxUSE_LIBSDL=no
2236 DEFAULT_wxUSE_ODBC=no
2237 DEFAULT_wxUSE_OPENGL=no
2238
2239 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2240 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2241 DEFAULT_wxUSE_STD_IOSTREAM=no
2242 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2243 DEFAULT_wxUSE_DATETIME=yes
2244 DEFAULT_wxUSE_TIMER=yes
2245 DEFAULT_wxUSE_STOPWATCH=yes
2246 DEFAULT_wxUSE_FILE=yes
2247 DEFAULT_wxUSE_FFILE=yes
2248 DEFAULT_wxUSE_TEXTBUFFER=yes
2249 DEFAULT_wxUSE_TEXTFILE=yes
2250 DEFAULT_wxUSE_SOUND=yes
2251 DEFAULT_wxUSE_INTL=yes
2252 DEFAULT_wxUSE_CONFIG=yes
2253 DEFAULT_wxUSE_FONTMAP=yes
2254 DEFAULT_wxUSE_STREAMS=yes
2255 DEFAULT_wxUSE_SOCKETS=yes
2256 DEFAULT_wxUSE_OLE=yes
2257 DEFAULT_wxUSE_DATAOBJ=yes
2258 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2259 DEFAULT_wxUSE_JOYSTICK=yes
2260 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2261 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2262 DEFAULT_wxUSE_LONGLONG=yes
2263 DEFAULT_wxUSE_GEOMETRY=yes
2264
2265 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2266 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2267 DEFAULT_wxUSE_POSTSCRIPT=yes
2268
2269 DEFAULT_wxUSE_CLIPBOARD=yes
2270 DEFAULT_wxUSE_TOOLTIPS=yes
2271 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2272 DEFAULT_wxUSE_DRAGIMAGE=yes
2273 DEFAULT_wxUSE_SPLINES=yes
2274
8a7b1113 2275 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2276 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2277 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2278 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2279
2280 DEFAULT_wxUSE_RESOURCES=no
2281 DEFAULT_wxUSE_CONSTRAINTS=yes
2282 DEFAULT_wxUSE_IPC=yes
2283 DEFAULT_wxUSE_HELP=yes
2284 DEFAULT_wxUSE_MS_HTML_HELP=yes
2285 DEFAULT_wxUSE_WXHTML_HELP=yes
2286 DEFAULT_wxUSE_TREELAYOUT=yes
2287 DEFAULT_wxUSE_METAFILE=yes
2288 DEFAULT_wxUSE_MIMETYPE=yes
2289 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2290 DEFAULT_wxUSE_PROTOCOL=yes
2291 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2292 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2293 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2294 DEFAULT_wxUSE_URL=yes
2295
2296 DEFAULT_wxUSE_COMMONDLGS=yes
2297 DEFAULT_wxUSE_CHOICEDLG=yes
2298 DEFAULT_wxUSE_COLOURDLG=yes
2299 DEFAULT_wxUSE_DIRDLG=yes
2300 DEFAULT_wxUSE_FILEDLG=yes
2301 DEFAULT_wxUSE_FINDREPLDLG=yes
2302 DEFAULT_wxUSE_FONTDLG=yes
2303 DEFAULT_wxUSE_MSGDLG=yes
2304 DEFAULT_wxUSE_NUMBERDLG=yes
2305 DEFAULT_wxUSE_TEXTDLG=yes
2306 DEFAULT_wxUSE_SPLASH=yes
2307 DEFAULT_wxUSE_STARTUP_TIPS=yes
2308 DEFAULT_wxUSE_PROGRESSDLG=yes
2309 DEFAULT_wxUSE_WIZARDDLG=yes
2310
2311 DEFAULT_wxUSE_MENUS=yes
2312 DEFAULT_wxUSE_MINIFRAME=yes
2313 DEFAULT_wxUSE_HTML=yes
646b6ec1 2314 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2315 DEFAULT_wxUSE_FILESYSTEM=yes
2316 DEFAULT_wxUSE_FS_INET=yes
2317 DEFAULT_wxUSE_FS_ZIP=yes
2318 DEFAULT_wxUSE_BUSYINFO=yes
2319 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2320 DEFAULT_wxUSE_VALIDATORS=yes
2321
2322 DEFAULT_wxUSE_ACCEL=yes
2323 DEFAULT_wxUSE_BUTTON=yes
2324 DEFAULT_wxUSE_BMPBUTTON=yes
2325 DEFAULT_wxUSE_CALCTRL=yes
2326 DEFAULT_wxUSE_CARET=yes
2327 DEFAULT_wxUSE_CHECKBOX=yes
2328 DEFAULT_wxUSE_CHECKLST=yes
2329 DEFAULT_wxUSE_CHOICE=yes
2330 DEFAULT_wxUSE_COMBOBOX=yes
2331 DEFAULT_wxUSE_DISPLAY=yes
2332 DEFAULT_wxUSE_GAUGE=yes
2333 DEFAULT_wxUSE_GRID=yes
2334 DEFAULT_wxUSE_IMAGLIST=yes
2335 DEFAULT_wxUSE_LISTBOOK=yes
2336 DEFAULT_wxUSE_LISTBOX=yes
2337 DEFAULT_wxUSE_LISTCTRL=yes
2338 DEFAULT_wxUSE_NOTEBOOK=yes
2339 DEFAULT_wxUSE_RADIOBOX=yes
2340 DEFAULT_wxUSE_RADIOBTN=yes
2341 DEFAULT_wxUSE_SASH=yes
2342 DEFAULT_wxUSE_SCROLLBAR=yes
2343 DEFAULT_wxUSE_SLIDER=yes
2344 DEFAULT_wxUSE_SPINBTN=yes
2345 DEFAULT_wxUSE_SPINCTRL=yes
2346 DEFAULT_wxUSE_SPLITTER=yes
2347 DEFAULT_wxUSE_STATBMP=yes
2348 DEFAULT_wxUSE_STATBOX=yes
2349 DEFAULT_wxUSE_STATLINE=yes
2350 DEFAULT_wxUSE_STATTEXT=yes
2351 DEFAULT_wxUSE_STATUSBAR=yes
2352 DEFAULT_wxUSE_TABDIALOG=no
2353 DEFAULT_wxUSE_TEXTCTRL=yes
2354 DEFAULT_wxUSE_TOGGLEBTN=yes
2355 DEFAULT_wxUSE_TOOLBAR=yes
2356 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2357 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2358 DEFAULT_wxUSE_TREECTRL=yes
2359 DEFAULT_wxUSE_POPUPWIN=yes
2360 DEFAULT_wxUSE_TIPWINDOW=yes
2361
2362 DEFAULT_wxUSE_UNICODE=no
2363 DEFAULT_wxUSE_UNICODE_MSLU=yes
2364 DEFAULT_wxUSE_WCSRTOMBS=no
2365
2366 DEFAULT_wxUSE_PALETTE=yes
2367 DEFAULT_wxUSE_IMAGE=yes
2368 DEFAULT_wxUSE_GIF=yes
2369 DEFAULT_wxUSE_PCX=yes
2370 DEFAULT_wxUSE_IFF=no
2371 DEFAULT_wxUSE_PNM=yes
2372 DEFAULT_wxUSE_XPM=yes
2373 DEFAULT_wxUSE_ICO_CUR=yes
2374 DEFAULT_wxUSE_ACCESSIBILITY=no
2375
2376 DEFAULT_wxUSE_MONOLITHIC=no
2377 DEFAULT_wxUSE_PLUGINS=no
2378 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2379fi
2380
2381
2382
2383for toolkit in `echo $ALL_TOOLKITS`; do
2384 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2385 if test "x$LINE" != "x" ; then
2386 has_toolkit_in_cache=1
2387 eval "DEFAULT_$LINE"
2388 eval "CACHE_$toolkit=1"
2389 fi
2390done
2391
2392
2393
2394 enablestring=
2395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2396echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2397 no_cache=0
2398 # Check whether --enable-gui or --disable-gui was given.
2399if test "${enable_gui+set}" = set; then
2400 enableval="$enable_gui"
2401
2402 if test "$enableval" = yes; then
2403 ac_cv_use_gui='wxUSE_GUI=yes'
2404 else
2405 ac_cv_use_gui='wxUSE_GUI=no'
2406 fi
2407
2408else
2409
2410 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2411 if test "x$LINE" != x ; then
2412 eval "DEFAULT_$LINE"
2413 else
2414 no_cache=1
2415 fi
2416
2417 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2418
2419fi;
2420
2421 eval "$ac_cv_use_gui"
2422 if test "$no_cache" != 1; then
2423 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2424 fi
2425
2426 if test "$wxUSE_GUI" = yes; then
2427 echo "$as_me:$LINENO: result: yes" >&5
2428echo "${ECHO_T}yes" >&6
2429 else
2430 echo "$as_me:$LINENO: result: no" >&5
2431echo "${ECHO_T}no" >&6
2432 fi
2433
2434
2435 enablestring=
2436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2437echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2438 no_cache=0
2439 # Check whether --enable-monolithic or --disable-monolithic was given.
2440if test "${enable_monolithic+set}" = set; then
2441 enableval="$enable_monolithic"
2442
2443 if test "$enableval" = yes; then
2444 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2445 else
2446 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2447 fi
2448
2449else
2450
2451 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2452 if test "x$LINE" != x ; then
2453 eval "DEFAULT_$LINE"
2454 else
2455 no_cache=1
2456 fi
2457
2458 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2459
2460fi;
2461
2462 eval "$ac_cv_use_monolithic"
2463 if test "$no_cache" != 1; then
2464 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2465 fi
2466
2467 if test "$wxUSE_MONOLITHIC" = yes; then
2468 echo "$as_me:$LINENO: result: yes" >&5
2469echo "${ECHO_T}yes" >&6
2470 else
2471 echo "$as_me:$LINENO: result: no" >&5
2472echo "${ECHO_T}no" >&6
2473 fi
2474
2475
2476 enablestring=
2477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2478echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2479 no_cache=0
2480 # Check whether --enable-plugins or --disable-plugins was given.
2481if test "${enable_plugins+set}" = set; then
2482 enableval="$enable_plugins"
2483
2484 if test "$enableval" = yes; then
2485 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2486 else
2487 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2488 fi
2489
2490else
2491
2492 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2493 if test "x$LINE" != x ; then
2494 eval "DEFAULT_$LINE"
2495 else
2496 no_cache=1
2497 fi
2498
2499 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2500
2501fi;
2502
2503 eval "$ac_cv_use_plugins"
2504 if test "$no_cache" != 1; then
2505 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2506 fi
2507
2508 if test "$wxUSE_PLUGINS" = yes; then
2509 echo "$as_me:$LINENO: result: yes" >&5
2510echo "${ECHO_T}yes" >&6
2511 else
2512 echo "$as_me:$LINENO: result: no" >&5
2513echo "${ECHO_T}no" >&6
2514 fi
2515
2516
2517if test "$wxUSE_GUI" = "yes"; then
2518
2519
2520 enablestring=
2521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2522echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2523 no_cache=0
2524 # Check whether --enable-universal or --disable-universal was given.
2525if test "${enable_universal+set}" = set; then
2526 enableval="$enable_universal"
2527
2528 if test "$enableval" = yes; then
2529 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2530 else
2531 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2532 fi
2533
2534else
2535
2536 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2537 if test "x$LINE" != x ; then
2538 eval "DEFAULT_$LINE"
2539 else
2540 no_cache=1
2541 fi
2542
2543 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2544
2545fi;
2546
2547 eval "$ac_cv_use_universal"
2548 if test "$no_cache" != 1; then
2549 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2550 fi
2551
2552 if test "$wxUSE_UNIVERSAL" = yes; then
2553 echo "$as_me:$LINENO: result: yes" >&5
2554echo "${ECHO_T}yes" >&6
2555 else
2556 echo "$as_me:$LINENO: result: no" >&5
2557echo "${ECHO_T}no" >&6
2558 fi
2559
2560
2561# Check whether --with-gtk or --without-gtk was given.
2562if test "${with_gtk+set}" = set; then
2563 withval="$with_gtk"
2564 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2565fi;
2566
2567# Check whether --with-motif or --without-motif was given.
2568if test "${with_motif+set}" = set; then
2569 withval="$with_motif"
2570 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2571fi;
2572
2573# Check whether --with-mac or --without-mac was given.
2574if test "${with_mac+set}" = set; then
2575 withval="$with_mac"
2576 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2577fi;
2578
2579# Check whether --with-cocoa or --without-cocoa was given.
2580if test "${with_cocoa+set}" = set; then
2581 withval="$with_cocoa"
2582 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2583fi;
2584
2585# Check whether --with-wine or --without-wine was given.
2586if test "${with_wine+set}" = set; then
2587 withval="$with_wine"
2588 wxUSE_WINE="$withval" CACHE_WINE=1
2589fi;
2590
2591# Check whether --with-msw or --without-msw was given.
2592if test "${with_msw+set}" = set; then
2593 withval="$with_msw"
2594 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2595fi;
2596
2597# Check whether --with-pm or --without-pm was given.
2598if test "${with_pm+set}" = set; then
2599 withval="$with_pm"
2600 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2601fi;
2602
2603# Check whether --with-mgl or --without-mgl was given.
2604if test "${with_mgl+set}" = set; then
2605 withval="$with_mgl"
2606 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2607fi;
2608
2609# Check whether --with-microwin or --without-microwin was given.
2610if test "${with_microwin+set}" = set; then
2611 withval="$with_microwin"
2612 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2613fi;
2614
2615# Check whether --with-x11 or --without-x11 was given.
2616if test "${with_x11+set}" = set; then
2617 withval="$with_x11"
2618 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2619fi;
2620
2621 enablestring=
2622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2623echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2624 no_cache=0
2625 # Check whether --enable-nanox or --disable-nanox was given.
2626if test "${enable_nanox+set}" = set; then
2627 enableval="$enable_nanox"
2628
2629 if test "$enableval" = yes; then
2630 ac_cv_use_nanox='wxUSE_NANOX=yes'
2631 else
2632 ac_cv_use_nanox='wxUSE_NANOX=no'
2633 fi
2634
2635else
2636
2637 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2638 if test "x$LINE" != x ; then
2639 eval "DEFAULT_$LINE"
2640 else
2641 no_cache=1
2642 fi
2643
2644 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2645
2646fi;
2647
2648 eval "$ac_cv_use_nanox"
2649 if test "$no_cache" != 1; then
2650 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2651 fi
2652
2653 if test "$wxUSE_NANOX" = yes; then
2654 echo "$as_me:$LINENO: result: yes" >&5
2655echo "${ECHO_T}yes" >&6
2656 else
2657 echo "$as_me:$LINENO: result: no" >&5
2658echo "${ECHO_T}no" >&6
2659 fi
2660
2661
2662
2663 enablestring=
2664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2665echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2666 no_cache=0
2667 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2668if test "${enable_gtk2+set}" = set; then
2669 enableval="$enable_gtk2"
2670
2671 if test "$enableval" = yes; then
2672 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2673 else
2674 ac_cv_use_gtk2='wxUSE_GTK2=no'
2675 fi
2676
2677else
2678
2679 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2680 if test "x$LINE" != x ; then
2681 eval "DEFAULT_$LINE"
2682 else
2683 no_cache=1
2684 fi
2685
2686 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2687
2688fi;
2689
2690 eval "$ac_cv_use_gtk2"
2691 if test "$no_cache" != 1; then
2692 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2693 fi
2694
2695 if test "$wxUSE_GTK2" = yes; then
2696 echo "$as_me:$LINENO: result: yes" >&5
2697echo "${ECHO_T}yes" >&6
2698 else
2699 echo "$as_me:$LINENO: result: no" >&5
2700echo "${ECHO_T}no" >&6
2701 fi
2702
2703
2704 enablestring=
2705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2706echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2707 no_cache=0
2708 # Check whether --enable-gpe or --disable-gpe was given.
2709if test "${enable_gpe+set}" = set; then
2710 enableval="$enable_gpe"
2711
2712 if test "$enableval" = yes; then
2713 ac_cv_use_gpe='wxUSE_GPE=yes'
2714 else
2715 ac_cv_use_gpe='wxUSE_GPE=no'
2716 fi
2717
2718else
2719
2720 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2721 if test "x$LINE" != x ; then
2722 eval "DEFAULT_$LINE"
2723 else
2724 no_cache=1
2725 fi
2726
2727 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2728
2729fi;
2730
2731 eval "$ac_cv_use_gpe"
2732 if test "$no_cache" != 1; then
2733 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2734 fi
2735
2736 if test "$wxUSE_GPE" = yes; then
2737 echo "$as_me:$LINENO: result: yes" >&5
2738echo "${ECHO_T}yes" >&6
2739 else
2740 echo "$as_me:$LINENO: result: no" >&5
2741echo "${ECHO_T}no" >&6
2742 fi
2743
2744
2745
2746 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2747echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2748 no_cache=0
2749
2750# Check whether --with-libpng or --without-libpng was given.
2751if test "${with_libpng+set}" = set; then
2752 withval="$with_libpng"
2753
2754 if test "$withval" = yes; then
2755 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2756 elif test "$withval" = no; then
2757 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2758 elif test "$withval" = sys; then
2759 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2760 elif test "$withval" = builtin; then
2761 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2762 else
2763 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2764echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2765 { (exit 1); exit 1; }; }
2766 fi
2767
2768else
2769
2770 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2771 if test "x$LINE" != x ; then
2772 eval "DEFAULT_$LINE"
2773 else
2774 no_cache=1
2775 fi
2776
2777 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2778
2779fi;
2780
2781 eval "$ac_cv_use_libpng"
2782 if test "$no_cache" != 1; then
2783 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2784 fi
2785
2786 if test "$wxUSE_LIBPNG" = yes; then
2787 echo "$as_me:$LINENO: result: yes" >&5
2788echo "${ECHO_T}yes" >&6
2789 elif test "$wxUSE_LIBPNG" = no; then
2790 echo "$as_me:$LINENO: result: no" >&5
2791echo "${ECHO_T}no" >&6
2792 elif test "$wxUSE_LIBPNG" = sys; then
2793 echo "$as_me:$LINENO: result: system version" >&5
2794echo "${ECHO_T}system version" >&6
2795 elif test "$wxUSE_LIBPNG" = builtin; then
2796 echo "$as_me:$LINENO: result: builtin version" >&5
2797echo "${ECHO_T}builtin version" >&6
2798 else
2799 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2800echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2801 { (exit 1); exit 1; }; }
2802 fi
2803
2804
2805 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2806echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2807 no_cache=0
2808
2809# Check whether --with-libjpeg or --without-libjpeg was given.
2810if test "${with_libjpeg+set}" = set; then
2811 withval="$with_libjpeg"
2812
2813 if test "$withval" = yes; then
2814 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2815 elif test "$withval" = no; then
2816 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2817 elif test "$withval" = sys; then
2818 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2819 elif test "$withval" = builtin; then
2820 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2821 else
2822 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2823echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2824 { (exit 1); exit 1; }; }
2825 fi
2826
2827else
2828
2829 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2830 if test "x$LINE" != x ; then
2831 eval "DEFAULT_$LINE"
2832 else
2833 no_cache=1
2834 fi
2835
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2837
2838fi;
2839
2840 eval "$ac_cv_use_libjpeg"
2841 if test "$no_cache" != 1; then
2842 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2843 fi
2844
2845 if test "$wxUSE_LIBJPEG" = yes; then
2846 echo "$as_me:$LINENO: result: yes" >&5
2847echo "${ECHO_T}yes" >&6
2848 elif test "$wxUSE_LIBJPEG" = no; then
2849 echo "$as_me:$LINENO: result: no" >&5
2850echo "${ECHO_T}no" >&6
2851 elif test "$wxUSE_LIBJPEG" = sys; then
2852 echo "$as_me:$LINENO: result: system version" >&5
2853echo "${ECHO_T}system version" >&6
2854 elif test "$wxUSE_LIBJPEG" = builtin; then
2855 echo "$as_me:$LINENO: result: builtin version" >&5
2856echo "${ECHO_T}builtin version" >&6
2857 else
2858 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2859echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2860 { (exit 1); exit 1; }; }
2861 fi
2862
2863
2864 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2865echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2866 no_cache=0
2867
2868# Check whether --with-libtiff or --without-libtiff was given.
2869if test "${with_libtiff+set}" = set; then
2870 withval="$with_libtiff"
2871
2872 if test "$withval" = yes; then
2873 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2874 elif test "$withval" = no; then
2875 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2876 elif test "$withval" = sys; then
2877 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2878 elif test "$withval" = builtin; then
2879 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2880 else
2881 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2882echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2883 { (exit 1); exit 1; }; }
2884 fi
2885
2886else
2887
2888 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2889 if test "x$LINE" != x ; then
2890 eval "DEFAULT_$LINE"
2891 else
2892 no_cache=1
2893 fi
2894
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2896
2897fi;
2898
2899 eval "$ac_cv_use_libtiff"
2900 if test "$no_cache" != 1; then
2901 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2902 fi
2903
2904 if test "$wxUSE_LIBTIFF" = yes; then
2905 echo "$as_me:$LINENO: result: yes" >&5
2906echo "${ECHO_T}yes" >&6
2907 elif test "$wxUSE_LIBTIFF" = no; then
2908 echo "$as_me:$LINENO: result: no" >&5
2909echo "${ECHO_T}no" >&6
2910 elif test "$wxUSE_LIBTIFF" = sys; then
2911 echo "$as_me:$LINENO: result: system version" >&5
2912echo "${ECHO_T}system version" >&6
2913 elif test "$wxUSE_LIBTIFF" = builtin; then
2914 echo "$as_me:$LINENO: result: builtin version" >&5
2915echo "${ECHO_T}builtin version" >&6
2916 else
2917 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2918echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2919 { (exit 1); exit 1; }; }
2920 fi
2921
2922
2923 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2924echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2925 no_cache=0
2926
2927# Check whether --with-libxpm or --without-libxpm was given.
2928if test "${with_libxpm+set}" = set; then
2929 withval="$with_libxpm"
2930
2931 if test "$withval" = yes; then
2932 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2933 elif test "$withval" = no; then
2934 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2935 elif test "$withval" = sys; then
2936 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2937 elif test "$withval" = builtin; then
2938 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2939 else
2940 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2941echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2942 { (exit 1); exit 1; }; }
2943 fi
2944
2945else
2946
2947 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2948 if test "x$LINE" != x ; then
2949 eval "DEFAULT_$LINE"
2950 else
2951 no_cache=1
2952 fi
2953
2954 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2955
2956fi;
2957
2958 eval "$ac_cv_use_libxpm"
2959 if test "$no_cache" != 1; then
2960 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2961 fi
2962
2963 if test "$wxUSE_LIBXPM" = yes; then
2964 echo "$as_me:$LINENO: result: yes" >&5
2965echo "${ECHO_T}yes" >&6
2966 elif test "$wxUSE_LIBXPM" = no; then
2967 echo "$as_me:$LINENO: result: no" >&5
2968echo "${ECHO_T}no" >&6
2969 elif test "$wxUSE_LIBXPM" = sys; then
2970 echo "$as_me:$LINENO: result: system version" >&5
2971echo "${ECHO_T}system version" >&6
2972 elif test "$wxUSE_LIBXPM" = builtin; then
2973 echo "$as_me:$LINENO: result: builtin version" >&5
2974echo "${ECHO_T}builtin version" >&6
2975 else
2976 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2977echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2978 { (exit 1); exit 1; }; }
2979 fi
2980
2981
2982 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2983echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2984 no_cache=0
2985
2986# Check whether --with-libmspack or --without-libmspack was given.
2987if test "${with_libmspack+set}" = set; then
2988 withval="$with_libmspack"
2989
2990 if test "$withval" = yes; then
2991 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2992 else
2993 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2994 fi
2995
2996else
2997
2998 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2999 if test "x$LINE" != x ; then
3000 eval "DEFAULT_$LINE"
3001 else
3002 no_cache=1
3003 fi
3004
3005 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3006
3007fi;
3008
3009 eval "$ac_cv_use_libmspack"
3010 if test "$no_cache" != 1; then
3011 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3012 fi
3013
3014 if test "$wxUSE_LIBMSPACK" = yes; then
3015 echo "$as_me:$LINENO: result: yes" >&5
3016echo "${ECHO_T}yes" >&6
3017 else
3018 echo "$as_me:$LINENO: result: no" >&5
3019echo "${ECHO_T}no" >&6
3020 fi
3021
3022
3023 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3024echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3025 no_cache=0
3026
3027# Check whether --with-sdl or --without-sdl was given.
3028if test "${with_sdl+set}" = set; then
3029 withval="$with_sdl"
3030
3031 if test "$withval" = yes; then
3032 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3033 else
3034 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3035 fi
3036
3037else
3038
3039 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3040 if test "x$LINE" != x ; then
3041 eval "DEFAULT_$LINE"
3042 else
3043 no_cache=1
3044 fi
3045
3046 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3047
3048fi;
3049
3050 eval "$ac_cv_use_sdl"
3051 if test "$no_cache" != 1; then
3052 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3053 fi
3054
3055 if test "$wxUSE_LIBSDL" = yes; then
3056 echo "$as_me:$LINENO: result: yes" >&5
3057echo "${ECHO_T}yes" >&6
3058 else
3059 echo "$as_me:$LINENO: result: no" >&5
3060echo "${ECHO_T}no" >&6
3061 fi
3062
3063
3064 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3065echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3066 no_cache=0
3067
3068# Check whether --with-opengl or --without-opengl was given.
3069if test "${with_opengl+set}" = set; then
3070 withval="$with_opengl"
3071
3072 if test "$withval" = yes; then
3073 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3074 else
3075 ac_cv_use_opengl='wxUSE_OPENGL=no'
3076 fi
3077
3078else
3079
3080 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3081 if test "x$LINE" != x ; then
3082 eval "DEFAULT_$LINE"
3083 else
3084 no_cache=1
3085 fi
3086
3087 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3088
3089fi;
3090
3091 eval "$ac_cv_use_opengl"
3092 if test "$no_cache" != 1; then
3093 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3094 fi
3095
3096 if test "$wxUSE_OPENGL" = yes; then
3097 echo "$as_me:$LINENO: result: yes" >&5
3098echo "${ECHO_T}yes" >&6
3099 else
3100 echo "$as_me:$LINENO: result: no" >&5
3101echo "${ECHO_T}no" >&6
3102 fi
3103
3104
3105fi
3106
3107
3108 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3109echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3110 no_cache=0
3111
3112# Check whether --with-dmalloc or --without-dmalloc was given.
3113if test "${with_dmalloc+set}" = set; then
3114 withval="$with_dmalloc"
3115
3116 if test "$withval" = yes; then
3117 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3118 else
3119 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3120 fi
3121
3122else
3123
3124 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3125 if test "x$LINE" != x ; then
3126 eval "DEFAULT_$LINE"
3127 else
3128 no_cache=1
3129 fi
3130
3131 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3132
3133fi;
3134
3135 eval "$ac_cv_use_dmalloc"
3136 if test "$no_cache" != 1; then
3137 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3138 fi
3139
3140 if test "$wxUSE_DMALLOC" = yes; then
3141 echo "$as_me:$LINENO: result: yes" >&5
3142echo "${ECHO_T}yes" >&6
3143 else
3144 echo "$as_me:$LINENO: result: no" >&5
3145echo "${ECHO_T}no" >&6
3146 fi
3147
3148
3149 echo "$as_me:$LINENO: checking for --with-regex" >&5
3150echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3151 no_cache=0
3152
3153# Check whether --with-regex or --without-regex was given.
3154if test "${with_regex+set}" = set; then
3155 withval="$with_regex"
3156
3157 if test "$withval" = yes; then
3158 ac_cv_use_regex='wxUSE_REGEX=yes'
3159 elif test "$withval" = no; then
3160 ac_cv_use_regex='wxUSE_REGEX=no'
3161 elif test "$withval" = sys; then
3162 ac_cv_use_regex='wxUSE_REGEX=sys'
3163 elif test "$withval" = builtin; then
3164 ac_cv_use_regex='wxUSE_REGEX=builtin'
3165 else
3166 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3167echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3168 { (exit 1); exit 1; }; }
3169 fi
3170
3171else
3172
3173 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3181
3182fi;
3183
3184 eval "$ac_cv_use_regex"
3185 if test "$no_cache" != 1; then
3186 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3187 fi
3188
3189 if test "$wxUSE_REGEX" = yes; then
3190 echo "$as_me:$LINENO: result: yes" >&5
3191echo "${ECHO_T}yes" >&6
3192 elif test "$wxUSE_REGEX" = no; then
3193 echo "$as_me:$LINENO: result: no" >&5
3194echo "${ECHO_T}no" >&6
3195 elif test "$wxUSE_REGEX" = sys; then
3196 echo "$as_me:$LINENO: result: system version" >&5
3197echo "${ECHO_T}system version" >&6
3198 elif test "$wxUSE_REGEX" = builtin; then
3199 echo "$as_me:$LINENO: result: builtin version" >&5
3200echo "${ECHO_T}builtin version" >&6
3201 else
3202 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3203echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3204 { (exit 1); exit 1; }; }
3205 fi
3206
3207
3208 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3209echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3210 no_cache=0
3211
3212# Check whether --with-zlib or --without-zlib was given.
3213if test "${with_zlib+set}" = set; then
3214 withval="$with_zlib"
3215
3216 if test "$withval" = yes; then
3217 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3218 elif test "$withval" = no; then
3219 ac_cv_use_zlib='wxUSE_ZLIB=no'
3220 elif test "$withval" = sys; then
3221 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3222 elif test "$withval" = builtin; then
3223 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3224 else
3225 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3226echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3227 { (exit 1); exit 1; }; }
3228 fi
3229
3230else
3231
3232 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3233 if test "x$LINE" != x ; then
3234 eval "DEFAULT_$LINE"
3235 else
3236 no_cache=1
3237 fi
3238
3239 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3240
3241fi;
3242
3243 eval "$ac_cv_use_zlib"
3244 if test "$no_cache" != 1; then
3245 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3246 fi
3247
3248 if test "$wxUSE_ZLIB" = yes; then
3249 echo "$as_me:$LINENO: result: yes" >&5
3250echo "${ECHO_T}yes" >&6
3251 elif test "$wxUSE_ZLIB" = no; then
3252 echo "$as_me:$LINENO: result: no" >&5
3253echo "${ECHO_T}no" >&6
3254 elif test "$wxUSE_ZLIB" = sys; then
3255 echo "$as_me:$LINENO: result: system version" >&5
3256echo "${ECHO_T}system version" >&6
3257 elif test "$wxUSE_ZLIB" = builtin; then
3258 echo "$as_me:$LINENO: result: builtin version" >&5
3259echo "${ECHO_T}builtin version" >&6
3260 else
3261 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3262echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3263 { (exit 1); exit 1; }; }
3264 fi
3265
3266
3267 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3268echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3269 no_cache=0
3270
3271# Check whether --with-odbc or --without-odbc was given.
3272if test "${with_odbc+set}" = set; then
3273 withval="$with_odbc"
3274
3275 if test "$withval" = yes; then
3276 ac_cv_use_odbc='wxUSE_ODBC=yes'
3277 elif test "$withval" = no; then
3278 ac_cv_use_odbc='wxUSE_ODBC=no'
3279 elif test "$withval" = sys; then
3280 ac_cv_use_odbc='wxUSE_ODBC=sys'
3281 elif test "$withval" = builtin; then
3282 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3283 else
3284 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3285echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3286 { (exit 1); exit 1; }; }
3287 fi
3288
3289else
3290
3291 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3292 if test "x$LINE" != x ; then
3293 eval "DEFAULT_$LINE"
3294 else
3295 no_cache=1
3296 fi
3297
3298 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3299
3300fi;
3301
3302 eval "$ac_cv_use_odbc"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_ODBC" = yes; then
3308 echo "$as_me:$LINENO: result: yes" >&5
3309echo "${ECHO_T}yes" >&6
3310 elif test "$wxUSE_ODBC" = no; then
3311 echo "$as_me:$LINENO: result: no" >&5
3312echo "${ECHO_T}no" >&6
3313 elif test "$wxUSE_ODBC" = sys; then
3314 echo "$as_me:$LINENO: result: system version" >&5
3315echo "${ECHO_T}system version" >&6
3316 elif test "$wxUSE_ODBC" = builtin; then
3317 echo "$as_me:$LINENO: result: builtin version" >&5
3318echo "${ECHO_T}builtin version" >&6
3319 else
3320 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3321echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3322 { (exit 1); exit 1; }; }
3323 fi
3324
3325
3326 echo "$as_me:$LINENO: checking for --with-expat" >&5
3327echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3328 no_cache=0
3329
3330# Check whether --with-expat or --without-expat was given.
3331if test "${with_expat+set}" = set; then
3332 withval="$with_expat"
3333
3334 if test "$withval" = yes; then
3335 ac_cv_use_expat='wxUSE_EXPAT=yes'
3336 elif test "$withval" = no; then
3337 ac_cv_use_expat='wxUSE_EXPAT=no'
3338 elif test "$withval" = sys; then
3339 ac_cv_use_expat='wxUSE_EXPAT=sys'
3340 elif test "$withval" = builtin; then
3341 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3342 else
3343 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3344echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3345 { (exit 1); exit 1; }; }
3346 fi
3347
3348else
3349
3350 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3351 if test "x$LINE" != x ; then
3352 eval "DEFAULT_$LINE"
3353 else
3354 no_cache=1
3355 fi
3356
3357 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3358
3359fi;
3360
3361 eval "$ac_cv_use_expat"
3362 if test "$no_cache" != 1; then
3363 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3364 fi
3365
3366 if test "$wxUSE_EXPAT" = yes; then
3367 echo "$as_me:$LINENO: result: yes" >&5
3368echo "${ECHO_T}yes" >&6
3369 elif test "$wxUSE_EXPAT" = no; then
3370 echo "$as_me:$LINENO: result: no" >&5
3371echo "${ECHO_T}no" >&6
3372 elif test "$wxUSE_EXPAT" = sys; then
3373 echo "$as_me:$LINENO: result: system version" >&5
3374echo "${ECHO_T}system version" >&6
3375 elif test "$wxUSE_EXPAT" = builtin; then
3376 echo "$as_me:$LINENO: result: builtin version" >&5
3377echo "${ECHO_T}builtin version" >&6
3378 else
3379 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3380echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3381 { (exit 1); exit 1; }; }
3382 fi
3383
3384
3385
3386
3387 enablestring=
3388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3389echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3390 no_cache=0
3391 # Check whether --enable-shared or --disable-shared was given.
3392if test "${enable_shared+set}" = set; then
3393 enableval="$enable_shared"
3394
3395 if test "$enableval" = yes; then
3396 ac_cv_use_shared='wxUSE_SHARED=yes'
3397 else
3398 ac_cv_use_shared='wxUSE_SHARED=no'
3399 fi
3400
3401else
3402
3403 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3404 if test "x$LINE" != x ; then
3405 eval "DEFAULT_$LINE"
3406 else
3407 no_cache=1
3408 fi
3409
3410 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3411
3412fi;
3413
3414 eval "$ac_cv_use_shared"
3415 if test "$no_cache" != 1; then
3416 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3417 fi
3418
3419 if test "$wxUSE_SHARED" = yes; then
3420 echo "$as_me:$LINENO: result: yes" >&5
3421echo "${ECHO_T}yes" >&6
3422 else
3423 echo "$as_me:$LINENO: result: no" >&5
3424echo "${ECHO_T}no" >&6
3425 fi
3426
3427
3428 enablestring=
3429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3430echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3431 no_cache=0
3432 # Check whether --enable-optimise or --disable-optimise was given.
3433if test "${enable_optimise+set}" = set; then
3434 enableval="$enable_optimise"
3435
3436 if test "$enableval" = yes; then
3437 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3438 else
3439 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3440 fi
3441
3442else
3443
3444 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3445 if test "x$LINE" != x ; then
3446 eval "DEFAULT_$LINE"
3447 else
3448 no_cache=1
3449 fi
3450
3451 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3452
3453fi;
3454
3455 eval "$ac_cv_use_optimise"
3456 if test "$no_cache" != 1; then
3457 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3458 fi
3459
3460 if test "$wxUSE_OPTIMISE" = yes; then
3461 echo "$as_me:$LINENO: result: yes" >&5
3462echo "${ECHO_T}yes" >&6
3463 else
3464 echo "$as_me:$LINENO: result: no" >&5
3465echo "${ECHO_T}no" >&6
3466 fi
3467
3468
3469 enablestring=
3470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3471echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3472 no_cache=0
3473 # Check whether --enable-debug or --disable-debug was given.
3474if test "${enable_debug+set}" = set; then
3475 enableval="$enable_debug"
3476
3477 if test "$enableval" = yes; then
3478 ac_cv_use_debug='wxUSE_DEBUG=yes'
3479 else
3480 ac_cv_use_debug='wxUSE_DEBUG=no'
3481 fi
3482
3483else
3484
3485 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3493
3494fi;
3495
3496 eval "$ac_cv_use_debug"
3497 if test "$no_cache" != 1; then
3498 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3499 fi
3500
3501 if test "$wxUSE_DEBUG" = yes; then
3502 echo "$as_me:$LINENO: result: yes" >&5
3503echo "${ECHO_T}yes" >&6
3504 else
3505 echo "$as_me:$LINENO: result: no" >&5
3506echo "${ECHO_T}no" >&6
3507 fi
3508
3509
3510 enablestring=
3511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3512echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3513 no_cache=0
3514 # Check whether --enable-stl or --disable-stl was given.
3515if test "${enable_stl+set}" = set; then
3516 enableval="$enable_stl"
3517
3518 if test "$enableval" = yes; then
3519 ac_cv_use_stl='wxUSE_STL=yes'
3520 else
3521 ac_cv_use_stl='wxUSE_STL=no'
3522 fi
3523
3524else
3525
3526 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3534
3535fi;
3536
3537 eval "$ac_cv_use_stl"
3538 if test "$no_cache" != 1; then
3539 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3540 fi
3541
3542 if test "$wxUSE_STL" = yes; then
3543 echo "$as_me:$LINENO: result: yes" >&5
3544echo "${ECHO_T}yes" >&6
3545 else
3546 echo "$as_me:$LINENO: result: no" >&5
3547echo "${ECHO_T}no" >&6
3548 fi
3549
3550if test "$USE_OS2" = "1"; then
3551
3552 enablestring=
3553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3554echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3555 no_cache=0
3556 # Check whether --enable-omf or --disable-omf was given.
3557if test "${enable_omf+set}" = set; then
3558 enableval="$enable_omf"
3559
3560 if test "$enableval" = yes; then
3561 ac_cv_use_omf='wxUSE_OMF=yes'
3562 else
3563 ac_cv_use_omf='wxUSE_OMF=no'
3564 fi
3565
3566else
3567
3568 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3569 if test "x$LINE" != x ; then
3570 eval "DEFAULT_$LINE"
3571 else
3572 no_cache=1
3573 fi
3574
3575 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3576
3577fi;
3578
3579 eval "$ac_cv_use_omf"
3580 if test "$no_cache" != 1; then
3581 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3582 fi
3583
3584 if test "$wxUSE_OMF" = yes; then
3585 echo "$as_me:$LINENO: result: yes" >&5
3586echo "${ECHO_T}yes" >&6
3587 else
3588 echo "$as_me:$LINENO: result: no" >&5
3589echo "${ECHO_T}no" >&6
3590 fi
3591
3592fi
3593
3594if test "$wxUSE_DEBUG" = "yes"; then
3595 DEFAULT_wxUSE_DEBUG_FLAG=yes
3596 DEFAULT_wxUSE_DEBUG_INFO=yes
3597 BUILD=debug
3598elif test "$wxUSE_DEBUG" = "no"; then
3599 DEFAULT_wxUSE_DEBUG_FLAG=no
3600 DEFAULT_wxUSE_DEBUG_INFO=no
3601 BUILD=release
3602fi
3603
3604
3605 enablestring=
3606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3607echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3608 no_cache=0
3609 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3610if test "${enable_debug_flag+set}" = set; then
3611 enableval="$enable_debug_flag"
3612
3613 if test "$enableval" = yes; then
3614 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3615 else
3616 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3617 fi
3618
3619else
3620
3621 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3622 if test "x$LINE" != x ; then
3623 eval "DEFAULT_$LINE"
3624 else
3625 no_cache=1
3626 fi
3627
3628 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3629
3630fi;
3631
3632 eval "$ac_cv_use_debug_flag"
3633 if test "$no_cache" != 1; then
3634 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3635 fi
3636
3637 if test "$wxUSE_DEBUG_FLAG" = yes; then
3638 echo "$as_me:$LINENO: result: yes" >&5
3639echo "${ECHO_T}yes" >&6
3640 else
3641 echo "$as_me:$LINENO: result: no" >&5
3642echo "${ECHO_T}no" >&6
3643 fi
3644
3645
3646 enablestring=
3647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3648echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3649 no_cache=0
3650 # Check whether --enable-debug_info or --disable-debug_info was given.
3651if test "${enable_debug_info+set}" = set; then
3652 enableval="$enable_debug_info"
3653
3654 if test "$enableval" = yes; then
3655 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3656 else
3657 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3658 fi
3659
3660else
3661
3662 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3663 if test "x$LINE" != x ; then
3664 eval "DEFAULT_$LINE"
3665 else
3666 no_cache=1
3667 fi
3668
3669 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3670
3671fi;
3672
3673 eval "$ac_cv_use_debug_info"
3674 if test "$no_cache" != 1; then
3675 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3676 fi
3677
3678 if test "$wxUSE_DEBUG_INFO" = yes; then
3679 echo "$as_me:$LINENO: result: yes" >&5
3680echo "${ECHO_T}yes" >&6
3681 else
3682 echo "$as_me:$LINENO: result: no" >&5
3683echo "${ECHO_T}no" >&6
3684 fi
3685
3686
3687 enablestring=
3688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3689echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3690 no_cache=0
3691 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3692if test "${enable_debug_gdb+set}" = set; then
3693 enableval="$enable_debug_gdb"
3694
3695 if test "$enableval" = yes; then
3696 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3697 else
3698 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3699 fi
3700
3701else
3702
3703 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3704 if test "x$LINE" != x ; then
3705 eval "DEFAULT_$LINE"
3706 else
3707 no_cache=1
3708 fi
3709
3710 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3711
3712fi;
3713
3714 eval "$ac_cv_use_debug_gdb"
3715 if test "$no_cache" != 1; then
3716 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3717 fi
3718
3719 if test "$wxUSE_DEBUG_GDB" = yes; then
3720 echo "$as_me:$LINENO: result: yes" >&5
3721echo "${ECHO_T}yes" >&6
3722 else
3723 echo "$as_me:$LINENO: result: no" >&5
3724echo "${ECHO_T}no" >&6
3725 fi
3726
3727
3728 enablestring=
3729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3730echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3731 no_cache=0
3732 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3733if test "${enable_debug_cntxt+set}" = set; then
3734 enableval="$enable_debug_cntxt"
3735
3736 if test "$enableval" = yes; then
3737 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3738 else
3739 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3740 fi
3741
3742else
3743
3744 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3745 if test "x$LINE" != x ; then
3746 eval "DEFAULT_$LINE"
3747 else
3748 no_cache=1
3749 fi
3750
3751 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3752
3753fi;
3754
3755 eval "$ac_cv_use_debug_cntxt"
3756 if test "$no_cache" != 1; then
3757 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3758 fi
3759
3760 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3761 echo "$as_me:$LINENO: result: yes" >&5
3762echo "${ECHO_T}yes" >&6
3763 else
3764 echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6
3766 fi
3767
3768
3769 enablestring=
3770 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3771echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3772 no_cache=0
3773 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3774if test "${enable_mem_tracing+set}" = set; then
3775 enableval="$enable_mem_tracing"
3776
3777 if test "$enableval" = yes; then
3778 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3779 else
3780 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3781 fi
3782
3783else
3784
3785 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3786 if test "x$LINE" != x ; then
3787 eval "DEFAULT_$LINE"
3788 else
3789 no_cache=1
3790 fi
3791
3792 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3793
3794fi;
3795
3796 eval "$ac_cv_use_mem_tracing"
3797 if test "$no_cache" != 1; then
3798 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3799 fi
3800
3801 if test "$wxUSE_MEM_TRACING" = yes; then
3802 echo "$as_me:$LINENO: result: yes" >&5
3803echo "${ECHO_T}yes" >&6
3804 else
3805 echo "$as_me:$LINENO: result: no" >&5
3806echo "${ECHO_T}no" >&6
3807 fi
3808
3809
3810 enablestring=
3811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3812echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3813 no_cache=0
3814 # Check whether --enable-profile or --disable-profile was given.
3815if test "${enable_profile+set}" = set; then
3816 enableval="$enable_profile"
3817
3818 if test "$enableval" = yes; then
3819 ac_cv_use_profile='wxUSE_PROFILE=yes'
3820 else
3821 ac_cv_use_profile='wxUSE_PROFILE=no'
3822 fi
3823
3824else
3825
3826 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3827 if test "x$LINE" != x ; then
3828 eval "DEFAULT_$LINE"
3829 else
3830 no_cache=1
3831 fi
3832
3833 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3834
3835fi;
3836
3837 eval "$ac_cv_use_profile"
3838 if test "$no_cache" != 1; then
3839 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3840 fi
3841
3842 if test "$wxUSE_PROFILE" = yes; then
3843 echo "$as_me:$LINENO: result: yes" >&5
3844echo "${ECHO_T}yes" >&6
3845 else
3846 echo "$as_me:$LINENO: result: no" >&5
3847echo "${ECHO_T}no" >&6
3848 fi
3849
3850
3851 enablestring=
3852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3853echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3854 no_cache=0
3855 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3856if test "${enable_no_rtti+set}" = set; then
3857 enableval="$enable_no_rtti"
3858
3859 if test "$enableval" = yes; then
3860 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3861 else
3862 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3863 fi
3864
3865else
3866
3867 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3868 if test "x$LINE" != x ; then
3869 eval "DEFAULT_$LINE"
3870 else
3871 no_cache=1
3872 fi
3873
3874 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3875
3876fi;
3877
3878 eval "$ac_cv_use_no_rtti"
3879 if test "$no_cache" != 1; then
3880 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3881 fi
3882
3883 if test "$wxUSE_NO_RTTI" = yes; then
3884 echo "$as_me:$LINENO: result: yes" >&5
3885echo "${ECHO_T}yes" >&6
3886 else
3887 echo "$as_me:$LINENO: result: no" >&5
3888echo "${ECHO_T}no" >&6
3889 fi
3890
3891
3892 enablestring=
3893 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3894echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3895 no_cache=0
3896 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3897if test "${enable_no_exceptions+set}" = set; then
3898 enableval="$enable_no_exceptions"
3899
3900 if test "$enableval" = yes; then
3901 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3902 else
3903 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3904 fi
3905
3906else
3907
3908 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3909 if test "x$LINE" != x ; then
3910 eval "DEFAULT_$LINE"
3911 else
3912 no_cache=1
3913 fi
3914
3915 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3916
3917fi;
3918
3919 eval "$ac_cv_use_no_exceptions"
3920 if test "$no_cache" != 1; then
3921 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3922 fi
3923
3924 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3925 echo "$as_me:$LINENO: result: yes" >&5
3926echo "${ECHO_T}yes" >&6
3927 else
3928 echo "$as_me:$LINENO: result: no" >&5
3929echo "${ECHO_T}no" >&6
3930 fi
3931
3932
3933 enablestring=
3934 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3935echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3936 no_cache=0
3937 # Check whether --enable-permissive or --disable-permissive was given.
3938if test "${enable_permissive+set}" = set; then
3939 enableval="$enable_permissive"
3940
3941 if test "$enableval" = yes; then
3942 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3943 else
3944 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3945 fi
3946
3947else
3948
3949 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3950 if test "x$LINE" != x ; then
3951 eval "DEFAULT_$LINE"
3952 else
3953 no_cache=1
3954 fi
3955
3956 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3957
3958fi;
3959
3960 eval "$ac_cv_use_permissive"
3961 if test "$no_cache" != 1; then
3962 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3963 fi
3964
3965 if test "$wxUSE_PERMISSIVE" = yes; then
3966 echo "$as_me:$LINENO: result: yes" >&5
3967echo "${ECHO_T}yes" >&6
3968 else
3969 echo "$as_me:$LINENO: result: no" >&5
3970echo "${ECHO_T}no" >&6
3971 fi
3972
3973
3974 enablestring=
3975 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3976echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3977 no_cache=0
3978 # Check whether --enable-no_deps or --disable-no_deps was given.
3979if test "${enable_no_deps+set}" = set; then
3980 enableval="$enable_no_deps"
3981
3982 if test "$enableval" = yes; then
3983 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3984 else
3985 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3986 fi
3987
3988else
3989
3990 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3991 if test "x$LINE" != x ; then
3992 eval "DEFAULT_$LINE"
3993 else
3994 no_cache=1
3995 fi
3996
3997 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3998
3999fi;
4000
4001 eval "$ac_cv_use_no_deps"
4002 if test "$no_cache" != 1; then
4003 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4004 fi
4005
4006 if test "$wxUSE_NO_DEPS" = yes; then
4007 echo "$as_me:$LINENO: result: yes" >&5
4008echo "${ECHO_T}yes" >&6
4009 else
4010 echo "$as_me:$LINENO: result: no" >&5
4011echo "${ECHO_T}no" >&6
4012 fi
4013
4014
4015
4016 enablestring=
4017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4018echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4019 no_cache=0
4020 # Check whether --enable-compat22 or --disable-compat22 was given.
4021if test "${enable_compat22+set}" = set; then
4022 enableval="$enable_compat22"
4023
4024 if test "$enableval" = yes; then
4025 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4026 else
4027 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4028 fi
4029
4030else
4031
4032 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4033 if test "x$LINE" != x ; then
4034 eval "DEFAULT_$LINE"
4035 else
4036 no_cache=1
4037 fi
4038
4039 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4040
4041fi;
4042
4043 eval "$ac_cv_use_compat22"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4049 echo "$as_me:$LINENO: result: yes" >&5
4050echo "${ECHO_T}yes" >&6
4051 else
4052 echo "$as_me:$LINENO: result: no" >&5
4053echo "${ECHO_T}no" >&6
4054 fi
4055
4056
4057 enablestring=disable
4058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4059echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4060 no_cache=0
4061 # Check whether --enable-compat24 or --disable-compat24 was given.
4062if test "${enable_compat24+set}" = set; then
4063 enableval="$enable_compat24"
4064
4065 if test "$enableval" = yes; then
4066 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4067 else
4068 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4069 fi
4070
4071else
4072
4073 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
4080 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4081
4082fi;
4083
4084 eval "$ac_cv_use_compat24"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4090 echo "$as_me:$LINENO: result: yes" >&5
4091echo "${ECHO_T}yes" >&6
4092 else
4093 echo "$as_me:$LINENO: result: no" >&5
4094echo "${ECHO_T}no" >&6
4095 fi
4096
4097
4098# Check whether --enable-rpath or --disable-rpath was given.
4099if test "${enable_rpath+set}" = set; then
4100 enableval="$enable_rpath"
4101 wxRPATH_DIR="$enableval"
4102fi;
4103
ac1cb8d3 4104if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4105 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4106fi
4107
4108
4109
4110
4111 enablestring=
4112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4113echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4114 no_cache=0
4115 # Check whether --enable-intl or --disable-intl was given.
4116if test "${enable_intl+set}" = set; then
4117 enableval="$enable_intl"
4118
4119 if test "$enableval" = yes; then
4120 ac_cv_use_intl='wxUSE_INTL=yes'
4121 else
4122 ac_cv_use_intl='wxUSE_INTL=no'
4123 fi
4124
4125else
4126
4127 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4128 if test "x$LINE" != x ; then
4129 eval "DEFAULT_$LINE"
4130 else
4131 no_cache=1
4132 fi
4133
4134 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4135
4136fi;
4137
4138 eval "$ac_cv_use_intl"
4139 if test "$no_cache" != 1; then
4140 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4141 fi
4142
4143 if test "$wxUSE_INTL" = yes; then
4144 echo "$as_me:$LINENO: result: yes" >&5
4145echo "${ECHO_T}yes" >&6
4146 else
4147 echo "$as_me:$LINENO: result: no" >&5
4148echo "${ECHO_T}no" >&6
4149 fi
4150
4151
4152 enablestring=
4153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4154echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4155 no_cache=0
4156 # Check whether --enable-config or --disable-config was given.
4157if test "${enable_config+set}" = set; then
4158 enableval="$enable_config"
4159
4160 if test "$enableval" = yes; then
4161 ac_cv_use_config='wxUSE_CONFIG=yes'
4162 else
4163 ac_cv_use_config='wxUSE_CONFIG=no'
4164 fi
4165
4166else
4167
4168 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4169 if test "x$LINE" != x ; then
4170 eval "DEFAULT_$LINE"
4171 else
4172 no_cache=1
4173 fi
4174
4175 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4176
4177fi;
4178
4179 eval "$ac_cv_use_config"
4180 if test "$no_cache" != 1; then
4181 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4182 fi
4183
4184 if test "$wxUSE_CONFIG" = yes; then
4185 echo "$as_me:$LINENO: result: yes" >&5
4186echo "${ECHO_T}yes" >&6
4187 else
4188 echo "$as_me:$LINENO: result: no" >&5
4189echo "${ECHO_T}no" >&6
4190 fi
4191
4192
4193
4194 enablestring=
4195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4196echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4197 no_cache=0
4198 # Check whether --enable-protocols or --disable-protocols was given.
4199if test "${enable_protocols+set}" = set; then
4200 enableval="$enable_protocols"
4201
4202 if test "$enableval" = yes; then
4203 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4204 else
4205 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4206 fi
4207
4208else
4209
4210 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4211 if test "x$LINE" != x ; then
4212 eval "DEFAULT_$LINE"
4213 else
4214 no_cache=1
4215 fi
4216
4217 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4218
4219fi;
4220
4221 eval "$ac_cv_use_protocols"
4222 if test "$no_cache" != 1; then
4223 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4224 fi
4225
4226 if test "$wxUSE_PROTOCOL" = yes; then
4227 echo "$as_me:$LINENO: result: yes" >&5
4228echo "${ECHO_T}yes" >&6
4229 else
4230 echo "$as_me:$LINENO: result: no" >&5
4231echo "${ECHO_T}no" >&6
4232 fi
4233
4234
4235 enablestring=
4236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4237echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4238 no_cache=0
4239 # Check whether --enable-ftp or --disable-ftp was given.
4240if test "${enable_ftp+set}" = set; then
4241 enableval="$enable_ftp"
4242
4243 if test "$enableval" = yes; then
4244 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4245 else
4246 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4247 fi
4248
4249else
4250
4251 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4252 if test "x$LINE" != x ; then
4253 eval "DEFAULT_$LINE"
4254 else
4255 no_cache=1
4256 fi
4257
4258 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4259
4260fi;
4261
4262 eval "$ac_cv_use_ftp"
4263 if test "$no_cache" != 1; then
4264 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4265 fi
4266
4267 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4268 echo "$as_me:$LINENO: result: yes" >&5
4269echo "${ECHO_T}yes" >&6
4270 else
4271 echo "$as_me:$LINENO: result: no" >&5
4272echo "${ECHO_T}no" >&6
4273 fi
4274
4275
4276 enablestring=
4277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4278echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4279 no_cache=0
4280 # Check whether --enable-http or --disable-http was given.
4281if test "${enable_http+set}" = set; then
4282 enableval="$enable_http"
4283
4284 if test "$enableval" = yes; then
4285 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4286 else
4287 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4288 fi
4289
4290else
4291
4292 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4293 if test "x$LINE" != x ; then
4294 eval "DEFAULT_$LINE"
4295 else
4296 no_cache=1
4297 fi
4298
4299 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4300
4301fi;
4302
4303 eval "$ac_cv_use_http"
4304 if test "$no_cache" != 1; then
4305 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4306 fi
4307
4308 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4309 echo "$as_me:$LINENO: result: yes" >&5
4310echo "${ECHO_T}yes" >&6
4311 else
4312 echo "$as_me:$LINENO: result: no" >&5
4313echo "${ECHO_T}no" >&6
4314 fi
4315
4316
4317 enablestring=
4318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4319echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4320 no_cache=0
4321 # Check whether --enable-fileproto or --disable-fileproto was given.
4322if test "${enable_fileproto+set}" = set; then
4323 enableval="$enable_fileproto"
4324
4325 if test "$enableval" = yes; then
4326 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4327 else
4328 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4329 fi
4330
4331else
4332
4333 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4334 if test "x$LINE" != x ; then
4335 eval "DEFAULT_$LINE"
4336 else
4337 no_cache=1
4338 fi
4339
4340 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4341
4342fi;
4343
4344 eval "$ac_cv_use_fileproto"
4345 if test "$no_cache" != 1; then
4346 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4347 fi
4348
4349 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4350 echo "$as_me:$LINENO: result: yes" >&5
4351echo "${ECHO_T}yes" >&6
4352 else
4353 echo "$as_me:$LINENO: result: no" >&5
4354echo "${ECHO_T}no" >&6
4355 fi
4356
4357
4358 enablestring=
4359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4360echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4361 no_cache=0
4362 # Check whether --enable-sockets or --disable-sockets was given.
4363if test "${enable_sockets+set}" = set; then
4364 enableval="$enable_sockets"
4365
4366 if test "$enableval" = yes; then
4367 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4368 else
4369 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4370 fi
4371
4372else
4373
4374 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4375 if test "x$LINE" != x ; then
4376 eval "DEFAULT_$LINE"
4377 else
4378 no_cache=1
4379 fi
4380
4381 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4382
4383fi;
4384
4385 eval "$ac_cv_use_sockets"
4386 if test "$no_cache" != 1; then
4387 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4388 fi
4389
4390 if test "$wxUSE_SOCKETS" = yes; then
4391 echo "$as_me:$LINENO: result: yes" >&5
4392echo "${ECHO_T}yes" >&6
4393 else
4394 echo "$as_me:$LINENO: result: no" >&5
4395echo "${ECHO_T}no" >&6
4396 fi
4397
4398
4399 enablestring=
4400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4401echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4402 no_cache=0
4403 # Check whether --enable-ole or --disable-ole was given.
4404if test "${enable_ole+set}" = set; then
4405 enableval="$enable_ole"
4406
4407 if test "$enableval" = yes; then
4408 ac_cv_use_ole='wxUSE_OLE=yes'
4409 else
4410 ac_cv_use_ole='wxUSE_OLE=no'
4411 fi
4412
4413else
4414
4415 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4416 if test "x$LINE" != x ; then
4417 eval "DEFAULT_$LINE"
4418 else
4419 no_cache=1
4420 fi
4421
4422 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4423
4424fi;
4425
4426 eval "$ac_cv_use_ole"
4427 if test "$no_cache" != 1; then
4428 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4429 fi
4430
4431 if test "$wxUSE_OLE" = yes; then
4432 echo "$as_me:$LINENO: result: yes" >&5
4433echo "${ECHO_T}yes" >&6
4434 else
4435 echo "$as_me:$LINENO: result: no" >&5
4436echo "${ECHO_T}no" >&6
4437 fi
4438
4439
4440 enablestring=
4441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4442echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4443 no_cache=0
4444 # Check whether --enable-dataobj or --disable-dataobj was given.
4445if test "${enable_dataobj+set}" = set; then
4446 enableval="$enable_dataobj"
4447
4448 if test "$enableval" = yes; then
4449 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4450 else
4451 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4452 fi
4453
4454else
4455
4456 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4457 if test "x$LINE" != x ; then
4458 eval "DEFAULT_$LINE"
4459 else
4460 no_cache=1
4461 fi
4462
4463 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4464
4465fi;
4466
4467 eval "$ac_cv_use_dataobj"
4468 if test "$no_cache" != 1; then
4469 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4470 fi
4471
4472 if test "$wxUSE_DATAOBJ" = yes; then
4473 echo "$as_me:$LINENO: result: yes" >&5
4474echo "${ECHO_T}yes" >&6
4475 else
4476 echo "$as_me:$LINENO: result: no" >&5
4477echo "${ECHO_T}no" >&6
4478 fi
4479
4480
4481
4482 enablestring=
4483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4484echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4485 no_cache=0
4486 # Check whether --enable-ipc or --disable-ipc was given.
4487if test "${enable_ipc+set}" = set; then
4488 enableval="$enable_ipc"
4489
4490 if test "$enableval" = yes; then
4491 ac_cv_use_ipc='wxUSE_IPC=yes'
4492 else
4493 ac_cv_use_ipc='wxUSE_IPC=no'
4494 fi
4495
4496else
4497
4498 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4499 if test "x$LINE" != x ; then
4500 eval "DEFAULT_$LINE"
4501 else
4502 no_cache=1
4503 fi
4504
4505 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4506
4507fi;
4508
4509 eval "$ac_cv_use_ipc"
4510 if test "$no_cache" != 1; then
4511 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4512 fi
4513
4514 if test "$wxUSE_IPC" = yes; then
4515 echo "$as_me:$LINENO: result: yes" >&5
4516echo "${ECHO_T}yes" >&6
4517 else
4518 echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6
4520 fi
4521
4522
4523
4524 enablestring=
4525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4526echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4527 no_cache=0
4528 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4529if test "${enable_apple_ieee+set}" = set; then
4530 enableval="$enable_apple_ieee"
4531
4532 if test "$enableval" = yes; then
4533 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4534 else
4535 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4536 fi
4537
4538else
4539
4540 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4541 if test "x$LINE" != x ; then
4542 eval "DEFAULT_$LINE"
4543 else
4544 no_cache=1
4545 fi
4546
4547 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4548
4549fi;
4550
4551 eval "$ac_cv_use_apple_ieee"
4552 if test "$no_cache" != 1; then
4553 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4554 fi
4555
4556 if test "$wxUSE_APPLE_IEEE" = yes; then
4557 echo "$as_me:$LINENO: result: yes" >&5
4558echo "${ECHO_T}yes" >&6
4559 else
4560 echo "$as_me:$LINENO: result: no" >&5
4561echo "${ECHO_T}no" >&6
4562 fi
4563
4564
4565 enablestring=
4566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4567echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4568 no_cache=0
4569 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4570if test "${enable_catch_segvs+set}" = set; then
4571 enableval="$enable_catch_segvs"
4572
4573 if test "$enableval" = yes; then
4574 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4575 else
4576 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4577 fi
4578
4579else
4580
4581 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4582 if test "x$LINE" != x ; then
4583 eval "DEFAULT_$LINE"
4584 else
4585 no_cache=1
4586 fi
4587
4588 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4589
4590fi;
4591
4592 eval "$ac_cv_use_catch_segvs"
4593 if test "$no_cache" != 1; then
4594 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4595 fi
4596
4597 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4598 echo "$as_me:$LINENO: result: yes" >&5
4599echo "${ECHO_T}yes" >&6
4600 else
4601 echo "$as_me:$LINENO: result: no" >&5
4602echo "${ECHO_T}no" >&6
4603 fi
4604
4605
4606 enablestring=
4607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4608echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4609 no_cache=0
4610 # Check whether --enable-cmdline or --disable-cmdline was given.
4611if test "${enable_cmdline+set}" = set; then
4612 enableval="$enable_cmdline"
4613
4614 if test "$enableval" = yes; then
4615 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4616 else
4617 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4618 fi
4619
4620else
4621
4622 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4623 if test "x$LINE" != x ; then
4624 eval "DEFAULT_$LINE"
4625 else
4626 no_cache=1
4627 fi
4628
4629 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4630
4631fi;
4632
4633 eval "$ac_cv_use_cmdline"
4634 if test "$no_cache" != 1; then
4635 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4636 fi
4637
4638 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4639 echo "$as_me:$LINENO: result: yes" >&5
4640echo "${ECHO_T}yes" >&6
4641 else
4642 echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6
4644 fi
4645
4646
4647 enablestring=
4648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4649echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4650 no_cache=0
4651 # Check whether --enable-datetime or --disable-datetime was given.
4652if test "${enable_datetime+set}" = set; then
4653 enableval="$enable_datetime"
4654
4655 if test "$enableval" = yes; then
4656 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4657 else
4658 ac_cv_use_datetime='wxUSE_DATETIME=no'
4659 fi
4660
4661else
4662
4663 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4664 if test "x$LINE" != x ; then
4665 eval "DEFAULT_$LINE"
4666 else
4667 no_cache=1
4668 fi
4669
4670 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4671
4672fi;
4673
4674 eval "$ac_cv_use_datetime"
4675 if test "$no_cache" != 1; then
4676 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4677 fi
4678
4679 if test "$wxUSE_DATETIME" = yes; then
4680 echo "$as_me:$LINENO: result: yes" >&5
4681echo "${ECHO_T}yes" >&6
4682 else
4683 echo "$as_me:$LINENO: result: no" >&5
4684echo "${ECHO_T}no" >&6
4685 fi
4686
4687
4688 enablestring=
4689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4690echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4691 no_cache=0
4692 # Check whether --enable-dialupman or --disable-dialupman was given.
4693if test "${enable_dialupman+set}" = set; then
4694 enableval="$enable_dialupman"
4695
4696 if test "$enableval" = yes; then
4697 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4698 else
4699 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4700 fi
4701
4702else
4703
4704 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4705 if test "x$LINE" != x ; then
4706 eval "DEFAULT_$LINE"
4707 else
4708 no_cache=1
4709 fi
4710
4711 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4712
4713fi;
4714
4715 eval "$ac_cv_use_dialupman"
4716 if test "$no_cache" != 1; then
4717 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4718 fi
4719
4720 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4721 echo "$as_me:$LINENO: result: yes" >&5
4722echo "${ECHO_T}yes" >&6
4723 else
4724 echo "$as_me:$LINENO: result: no" >&5
4725echo "${ECHO_T}no" >&6
4726 fi
4727
4728
4729 enablestring=
4730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4731echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4732 no_cache=0
4733 # Check whether --enable-dynlib or --disable-dynlib was given.
4734if test "${enable_dynlib+set}" = set; then
4735 enableval="$enable_dynlib"
4736
4737 if test "$enableval" = yes; then
4738 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4739 else
4740 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4741 fi
4742
4743else
4744
4745 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4746 if test "x$LINE" != x ; then
4747 eval "DEFAULT_$LINE"
4748 else
4749 no_cache=1
4750 fi
4751
4752 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4753
4754fi;
4755
4756 eval "$ac_cv_use_dynlib"
4757 if test "$no_cache" != 1; then
4758 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4759 fi
4760
4761 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4762 echo "$as_me:$LINENO: result: yes" >&5
4763echo "${ECHO_T}yes" >&6
4764 else
4765 echo "$as_me:$LINENO: result: no" >&5
4766echo "${ECHO_T}no" >&6
4767 fi
4768
4769
4770 enablestring=
4771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4772echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4773 no_cache=0
4774 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4775if test "${enable_dynamicloader+set}" = set; then
4776 enableval="$enable_dynamicloader"
4777
4778 if test "$enableval" = yes; then
4779 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4780 else
4781 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4782 fi
4783
4784else
4785
4786 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4787 if test "x$LINE" != x ; then
4788 eval "DEFAULT_$LINE"
4789 else
4790 no_cache=1
4791 fi
4792
4793 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4794
4795fi;
4796
4797 eval "$ac_cv_use_dynamicloader"
4798 if test "$no_cache" != 1; then
4799 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4800 fi
4801
4802 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4803 echo "$as_me:$LINENO: result: yes" >&5
4804echo "${ECHO_T}yes" >&6
4805 else
4806 echo "$as_me:$LINENO: result: no" >&5
4807echo "${ECHO_T}no" >&6
4808 fi
4809
4810
4811 enablestring=
4812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4813echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4814 no_cache=0
4815 # Check whether --enable-exceptions or --disable-exceptions was given.
4816if test "${enable_exceptions+set}" = set; then
4817 enableval="$enable_exceptions"
4818
4819 if test "$enableval" = yes; then
4820 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4821 else
4822 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4823 fi
4824
4825else
4826
4827 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4828 if test "x$LINE" != x ; then
4829 eval "DEFAULT_$LINE"
4830 else
4831 no_cache=1
4832 fi
4833
4834 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4835
4836fi;
4837
4838 eval "$ac_cv_use_exceptions"
4839 if test "$no_cache" != 1; then
4840 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4841 fi
4842
4843 if test "$wxUSE_EXCEPTIONS" = yes; then
4844 echo "$as_me:$LINENO: result: yes" >&5
4845echo "${ECHO_T}yes" >&6
4846 else
4847 echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6
4849 fi
4850
4851
4852 enablestring=
4853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4854echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4855 no_cache=0
4856 # Check whether --enable-ffile or --disable-ffile was given.
4857if test "${enable_ffile+set}" = set; then
4858 enableval="$enable_ffile"
4859
4860 if test "$enableval" = yes; then
4861 ac_cv_use_ffile='wxUSE_FFILE=yes'
4862 else
4863 ac_cv_use_ffile='wxUSE_FFILE=no'
4864 fi
4865
4866else
4867
4868 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4869 if test "x$LINE" != x ; then
4870 eval "DEFAULT_$LINE"
4871 else
4872 no_cache=1
4873 fi
4874
4875 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4876
4877fi;
4878
4879 eval "$ac_cv_use_ffile"
4880 if test "$no_cache" != 1; then
4881 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4882 fi
4883
4884 if test "$wxUSE_FFILE" = yes; then
4885 echo "$as_me:$LINENO: result: yes" >&5
4886echo "${ECHO_T}yes" >&6
4887 else
4888 echo "$as_me:$LINENO: result: no" >&5
4889echo "${ECHO_T}no" >&6
4890 fi
4891
4892
4893 enablestring=
4894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4895echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4896 no_cache=0
4897 # Check whether --enable-file or --disable-file was given.
4898if test "${enable_file+set}" = set; then
4899 enableval="$enable_file"
4900
4901 if test "$enableval" = yes; then
4902 ac_cv_use_file='wxUSE_FILE=yes'
4903 else
4904 ac_cv_use_file='wxUSE_FILE=no'
4905 fi
4906
4907else
4908
4909 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4910 if test "x$LINE" != x ; then
4911 eval "DEFAULT_$LINE"
4912 else
4913 no_cache=1
4914 fi
4915
4916 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4917
4918fi;
4919
4920 eval "$ac_cv_use_file"
4921 if test "$no_cache" != 1; then
4922 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4923 fi
4924
4925 if test "$wxUSE_FILE" = yes; then
4926 echo "$as_me:$LINENO: result: yes" >&5
4927echo "${ECHO_T}yes" >&6
4928 else
4929 echo "$as_me:$LINENO: result: no" >&5
4930echo "${ECHO_T}no" >&6
4931 fi
4932
4933
4934 enablestring=
4935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4936echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4937 no_cache=0
4938 # Check whether --enable-filesystem or --disable-filesystem was given.
4939if test "${enable_filesystem+set}" = set; then
4940 enableval="$enable_filesystem"
4941
4942 if test "$enableval" = yes; then
4943 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4944 else
4945 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4946 fi
4947
4948else
4949
4950 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4951 if test "x$LINE" != x ; then
4952 eval "DEFAULT_$LINE"
4953 else
4954 no_cache=1
4955 fi
4956
4957 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4958
4959fi;
4960
4961 eval "$ac_cv_use_filesystem"
4962 if test "$no_cache" != 1; then
4963 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4964 fi
4965
4966 if test "$wxUSE_FILESYSTEM" = yes; then
4967 echo "$as_me:$LINENO: result: yes" >&5
4968echo "${ECHO_T}yes" >&6
4969 else
4970 echo "$as_me:$LINENO: result: no" >&5
4971echo "${ECHO_T}no" >&6
4972 fi
4973
4974
4975 enablestring=
4976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4977echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4978 no_cache=0
4979 # Check whether --enable-fontmap or --disable-fontmap was given.
4980if test "${enable_fontmap+set}" = set; then
4981 enableval="$enable_fontmap"
4982
4983 if test "$enableval" = yes; then
4984 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4985 else
4986 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4987 fi
4988
4989else
4990
4991 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4992 if test "x$LINE" != x ; then
4993 eval "DEFAULT_$LINE"
4994 else
4995 no_cache=1
4996 fi
4997
4998 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4999
5000fi;
5001
5002 eval "$ac_cv_use_fontmap"
5003 if test "$no_cache" != 1; then
5004 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5005 fi
5006
5007 if test "$wxUSE_FONTMAP" = yes; then
5008 echo "$as_me:$LINENO: result: yes" >&5
5009echo "${ECHO_T}yes" >&6
5010 else
5011 echo "$as_me:$LINENO: result: no" >&5
5012echo "${ECHO_T}no" >&6
5013 fi
5014
5015
5016 enablestring=
5017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5018echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5019 no_cache=0
5020 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5021if test "${enable_fs_inet+set}" = set; then
5022 enableval="$enable_fs_inet"
5023
5024 if test "$enableval" = yes; then
5025 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5026 else
5027 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5028 fi
5029
5030else
5031
5032 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5033 if test "x$LINE" != x ; then
5034 eval "DEFAULT_$LINE"
5035 else
5036 no_cache=1
5037 fi
5038
5039 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5040
5041fi;
5042
5043 eval "$ac_cv_use_fs_inet"
5044 if test "$no_cache" != 1; then
5045 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5046 fi
5047
5048 if test "$wxUSE_FS_INET" = yes; then
5049 echo "$as_me:$LINENO: result: yes" >&5
5050echo "${ECHO_T}yes" >&6
5051 else
5052 echo "$as_me:$LINENO: result: no" >&5
5053echo "${ECHO_T}no" >&6
5054 fi
5055
5056
5057 enablestring=
5058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5059echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5060 no_cache=0
5061 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5062if test "${enable_fs_zip+set}" = set; then
5063 enableval="$enable_fs_zip"
5064
5065 if test "$enableval" = yes; then
5066 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5067 else
5068 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5069 fi
5070
5071else
5072
5073 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5074 if test "x$LINE" != x ; then
5075 eval "DEFAULT_$LINE"
5076 else
5077 no_cache=1
5078 fi
5079
5080 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5081
5082fi;
5083
5084 eval "$ac_cv_use_fs_zip"
5085 if test "$no_cache" != 1; then
5086 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5087 fi
5088
5089 if test "$wxUSE_FS_ZIP" = yes; then
5090 echo "$as_me:$LINENO: result: yes" >&5
5091echo "${ECHO_T}yes" >&6
5092 else
5093 echo "$as_me:$LINENO: result: no" >&5
5094echo "${ECHO_T}no" >&6
5095 fi
5096
5097
5098 enablestring=
5099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5100echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5101 no_cache=0
5102 # Check whether --enable-geometry or --disable-geometry was given.
5103if test "${enable_geometry+set}" = set; then
5104 enableval="$enable_geometry"
5105
5106 if test "$enableval" = yes; then
5107 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5108 else
5109 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5110 fi
5111
5112else
5113
5114 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5115 if test "x$LINE" != x ; then
5116 eval "DEFAULT_$LINE"
5117 else
5118 no_cache=1
5119 fi
5120
5121 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5122
5123fi;
5124
5125 eval "$ac_cv_use_geometry"
5126 if test "$no_cache" != 1; then
5127 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5128 fi
5129
5130 if test "$wxUSE_GEOMETRY" = yes; then
5131 echo "$as_me:$LINENO: result: yes" >&5
5132echo "${ECHO_T}yes" >&6
5133 else
5134 echo "$as_me:$LINENO: result: no" >&5
5135echo "${ECHO_T}no" >&6
5136 fi
5137
5138
5139 enablestring=
5140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5141echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5142 no_cache=0
5143 # Check whether --enable-log or --disable-log was given.
5144if test "${enable_log+set}" = set; then
5145 enableval="$enable_log"
5146
5147 if test "$enableval" = yes; then
5148 ac_cv_use_log='wxUSE_LOG=yes'
5149 else
5150 ac_cv_use_log='wxUSE_LOG=no'
5151 fi
5152
5153else
5154
5155 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5156 if test "x$LINE" != x ; then
5157 eval "DEFAULT_$LINE"
5158 else
5159 no_cache=1
5160 fi
5161
5162 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5163
5164fi;
5165
5166 eval "$ac_cv_use_log"
5167 if test "$no_cache" != 1; then
5168 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5169 fi
5170
5171 if test "$wxUSE_LOG" = yes; then
5172 echo "$as_me:$LINENO: result: yes" >&5
5173echo "${ECHO_T}yes" >&6
5174 else
5175 echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6
5177 fi
5178
5179
5180 enablestring=
5181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5182echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5183 no_cache=0
5184 # Check whether --enable-longlong or --disable-longlong was given.
5185if test "${enable_longlong+set}" = set; then
5186 enableval="$enable_longlong"
5187
5188 if test "$enableval" = yes; then
5189 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5190 else
5191 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5192 fi
5193
5194else
5195
5196 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5197 if test "x$LINE" != x ; then
5198 eval "DEFAULT_$LINE"
5199 else
5200 no_cache=1
5201 fi
5202
5203 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5204
5205fi;
5206
5207 eval "$ac_cv_use_longlong"
5208 if test "$no_cache" != 1; then
5209 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5210 fi
5211
5212 if test "$wxUSE_LONGLONG" = yes; then
5213 echo "$as_me:$LINENO: result: yes" >&5
5214echo "${ECHO_T}yes" >&6
5215 else
5216 echo "$as_me:$LINENO: result: no" >&5
5217echo "${ECHO_T}no" >&6
5218 fi
5219
5220
5221 enablestring=
5222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5223echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5224 no_cache=0
5225 # Check whether --enable-mimetype or --disable-mimetype was given.
5226if test "${enable_mimetype+set}" = set; then
5227 enableval="$enable_mimetype"
5228
5229 if test "$enableval" = yes; then
5230 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5231 else
5232 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5233 fi
5234
5235else
5236
5237 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5238 if test "x$LINE" != x ; then
5239 eval "DEFAULT_$LINE"
5240 else
5241 no_cache=1
5242 fi
5243
5244 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5245
5246fi;
5247
5248 eval "$ac_cv_use_mimetype"
5249 if test "$no_cache" != 1; then
5250 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5251 fi
5252
5253 if test "$wxUSE_MIMETYPE" = yes; then
5254 echo "$as_me:$LINENO: result: yes" >&5
5255echo "${ECHO_T}yes" >&6
5256 else
5257 echo "$as_me:$LINENO: result: no" >&5
5258echo "${ECHO_T}no" >&6
5259 fi
5260
5261
5262 enablestring=
5263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5264echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5265 no_cache=0
5266 # Check whether --enable-mslu or --disable-mslu was given.
5267if test "${enable_mslu+set}" = set; then
5268 enableval="$enable_mslu"
5269
5270 if test "$enableval" = yes; then
5271 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5272 else
5273 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5274 fi
5275
5276else
5277
5278 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5279 if test "x$LINE" != x ; then
5280 eval "DEFAULT_$LINE"
5281 else
5282 no_cache=1
5283 fi
5284
5285 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5286
5287fi;
5288
5289 eval "$ac_cv_use_mslu"
5290 if test "$no_cache" != 1; then
5291 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5292 fi
5293
5294 if test "$wxUSE_UNICODE_MSLU" = yes; then
5295 echo "$as_me:$LINENO: result: yes" >&5
5296echo "${ECHO_T}yes" >&6
5297 else
5298 echo "$as_me:$LINENO: result: no" >&5
5299echo "${ECHO_T}no" >&6
5300 fi
5301
5302
5303 enablestring=
5304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5305echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5306 no_cache=0
5307 # Check whether --enable-snglinst or --disable-snglinst was given.
5308if test "${enable_snglinst+set}" = set; then
5309 enableval="$enable_snglinst"
5310
5311 if test "$enableval" = yes; then
5312 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5313 else
5314 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5315 fi
5316
5317else
5318
5319 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5320 if test "x$LINE" != x ; then
5321 eval "DEFAULT_$LINE"
5322 else
5323 no_cache=1
5324 fi
5325
5326 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5327
5328fi;
5329
5330 eval "$ac_cv_use_snglinst"
5331 if test "$no_cache" != 1; then
5332 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5333 fi
5334
5335 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5336 echo "$as_me:$LINENO: result: yes" >&5
5337echo "${ECHO_T}yes" >&6
5338 else
5339 echo "$as_me:$LINENO: result: no" >&5
5340echo "${ECHO_T}no" >&6
5341 fi
5342
5343
5344 enablestring=
5345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5346echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5347 no_cache=0
5348 # Check whether --enable-streams or --disable-streams was given.
5349if test "${enable_streams+set}" = set; then
5350 enableval="$enable_streams"
5351
5352 if test "$enableval" = yes; then
5353 ac_cv_use_streams='wxUSE_STREAMS=yes'
5354 else
5355 ac_cv_use_streams='wxUSE_STREAMS=no'
5356 fi
5357
5358else
5359
5360 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5361 if test "x$LINE" != x ; then
5362 eval "DEFAULT_$LINE"
5363 else
5364 no_cache=1
5365 fi
5366
5367 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5368
5369fi;
5370
5371 eval "$ac_cv_use_streams"
5372 if test "$no_cache" != 1; then
5373 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5374 fi
5375
5376 if test "$wxUSE_STREAMS" = yes; then
5377 echo "$as_me:$LINENO: result: yes" >&5
5378echo "${ECHO_T}yes" >&6
5379 else
5380 echo "$as_me:$LINENO: result: no" >&5
5381echo "${ECHO_T}no" >&6
5382 fi
5383
5384
5385 enablestring=
5386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5387echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5388 no_cache=0
5389 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5390if test "${enable_std_iostreams+set}" = set; then
5391 enableval="$enable_std_iostreams"
5392
5393 if test "$enableval" = yes; then
5394 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5395 else
5396 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5397 fi
5398
5399else
5400
5401 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5402 if test "x$LINE" != x ; then
5403 eval "DEFAULT_$LINE"
5404 else
5405 no_cache=1
5406 fi
5407
5408 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5409
5410fi;
5411
5412 eval "$ac_cv_use_std_iostreams"
5413 if test "$no_cache" != 1; then
5414 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5415 fi
5416
5417 if test "$wxUSE_STD_IOSTREAM" = yes; then
5418 echo "$as_me:$LINENO: result: yes" >&5
5419echo "${ECHO_T}yes" >&6
5420 else
5421 echo "$as_me:$LINENO: result: no" >&5
5422echo "${ECHO_T}no" >&6
5423 fi
5424
5425
5426 enablestring=
5427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5428echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5429 no_cache=0
5430 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5431if test "${enable_stopwatch+set}" = set; then
5432 enableval="$enable_stopwatch"
5433
5434 if test "$enableval" = yes; then
5435 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5436 else
5437 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5438 fi
5439
5440else
5441
5442 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5443 if test "x$LINE" != x ; then
5444 eval "DEFAULT_$LINE"
5445 else
5446 no_cache=1
5447 fi
5448
5449 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5450
5451fi;
5452
5453 eval "$ac_cv_use_stopwatch"
5454 if test "$no_cache" != 1; then
5455 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5456 fi
5457
5458 if test "$wxUSE_STOPWATCH" = yes; then
5459 echo "$as_me:$LINENO: result: yes" >&5
5460echo "${ECHO_T}yes" >&6
5461 else
5462 echo "$as_me:$LINENO: result: no" >&5
5463echo "${ECHO_T}no" >&6
5464 fi
5465
5466
5467 enablestring=
5468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5469echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5470 no_cache=0
5471 # Check whether --enable-system_options or --disable-system_options was given.
5472if test "${enable_system_options+set}" = set; then
5473 enableval="$enable_system_options"
5474
5475 if test "$enableval" = yes; then
5476 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5477 else
5478 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5479 fi
5480
5481else
5482
5483 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5484 if test "x$LINE" != x ; then
5485 eval "DEFAULT_$LINE"
5486 else
5487 no_cache=1
5488 fi
5489
5490 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5491
5492fi;
5493
5494 eval "$ac_cv_use_system_options"
5495 if test "$no_cache" != 1; then
5496 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5497 fi
5498
5499 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5500 echo "$as_me:$LINENO: result: yes" >&5
5501echo "${ECHO_T}yes" >&6
5502 else
5503 echo "$as_me:$LINENO: result: no" >&5
5504echo "${ECHO_T}no" >&6
5505 fi
5506
5507
5508 enablestring=
5509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5510echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5511 no_cache=0
5512 # Check whether --enable-textbuf or --disable-textbuf was given.
5513if test "${enable_textbuf+set}" = set; then
5514 enableval="$enable_textbuf"
5515
5516 if test "$enableval" = yes; then
5517 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5518 else
5519 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5520 fi
5521
5522else
5523
5524 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5525 if test "x$LINE" != x ; then
5526 eval "DEFAULT_$LINE"
5527 else
5528 no_cache=1
5529 fi
5530
5531 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5532
5533fi;
5534
5535 eval "$ac_cv_use_textbuf"
5536 if test "$no_cache" != 1; then
5537 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5538 fi
5539
5540 if test "$wxUSE_TEXTBUFFER" = yes; then
5541 echo "$as_me:$LINENO: result: yes" >&5
5542echo "${ECHO_T}yes" >&6
5543 else
5544 echo "$as_me:$LINENO: result: no" >&5
5545echo "${ECHO_T}no" >&6
5546 fi
5547
5548
5549 enablestring=
5550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5551echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5552 no_cache=0
5553 # Check whether --enable-textfile or --disable-textfile was given.
5554if test "${enable_textfile+set}" = set; then
5555 enableval="$enable_textfile"
5556
5557 if test "$enableval" = yes; then
5558 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5559 else
5560 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5561 fi
5562
5563else
5564
5565 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5566 if test "x$LINE" != x ; then
5567 eval "DEFAULT_$LINE"
5568 else
5569 no_cache=1
5570 fi
5571
5572 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5573
5574fi;
5575
5576 eval "$ac_cv_use_textfile"
5577 if test "$no_cache" != 1; then
5578 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5579 fi
5580
5581 if test "$wxUSE_TEXTFILE" = yes; then
5582 echo "$as_me:$LINENO: result: yes" >&5
5583echo "${ECHO_T}yes" >&6
5584 else
5585 echo "$as_me:$LINENO: result: no" >&5
5586echo "${ECHO_T}no" >&6
5587 fi
5588
5589
5590 enablestring=
5591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5592echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5593 no_cache=0
5594 # Check whether --enable-timer or --disable-timer was given.
5595if test "${enable_timer+set}" = set; then
5596 enableval="$enable_timer"
5597
5598 if test "$enableval" = yes; then
5599 ac_cv_use_timer='wxUSE_TIMER=yes'
5600 else
5601 ac_cv_use_timer='wxUSE_TIMER=no'
5602 fi
5603
5604else
5605
5606 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5607 if test "x$LINE" != x ; then
5608 eval "DEFAULT_$LINE"
5609 else
5610 no_cache=1
5611 fi
5612
5613 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5614
5615fi;
5616
5617 eval "$ac_cv_use_timer"
5618 if test "$no_cache" != 1; then
5619 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5620 fi
5621
5622 if test "$wxUSE_TIMER" = yes; then
5623 echo "$as_me:$LINENO: result: yes" >&5
5624echo "${ECHO_T}yes" >&6
5625 else
5626 echo "$as_me:$LINENO: result: no" >&5
5627echo "${ECHO_T}no" >&6
5628 fi
5629
5630
5631 enablestring=
5632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5633echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5634 no_cache=0
5635 # Check whether --enable-unicode or --disable-unicode was given.
5636if test "${enable_unicode+set}" = set; then
5637 enableval="$enable_unicode"
5638
5639 if test "$enableval" = yes; then
5640 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5641 else
5642 ac_cv_use_unicode='wxUSE_UNICODE=no'
5643 fi
5644
5645else
5646
5647 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5648 if test "x$LINE" != x ; then
5649 eval "DEFAULT_$LINE"
5650 else
5651 no_cache=1
5652 fi
5653
5654 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5655
5656fi;
5657
5658 eval "$ac_cv_use_unicode"
5659 if test "$no_cache" != 1; then
5660 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5661 fi
5662
5663 if test "$wxUSE_UNICODE" = yes; then
5664 echo "$as_me:$LINENO: result: yes" >&5
5665echo "${ECHO_T}yes" >&6
5666 else
5667 echo "$as_me:$LINENO: result: no" >&5
5668echo "${ECHO_T}no" >&6
5669 fi
5670
5671
5672 enablestring=
5673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5674echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5675 no_cache=0
5676 # Check whether --enable-sound or --disable-sound was given.
5677if test "${enable_sound+set}" = set; then
5678 enableval="$enable_sound"
5679
5680 if test "$enableval" = yes; then
5681 ac_cv_use_sound='wxUSE_SOUND=yes'
5682 else
5683 ac_cv_use_sound='wxUSE_SOUND=no'
5684 fi
5685
5686else
5687
5688 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5689 if test "x$LINE" != x ; then
5690 eval "DEFAULT_$LINE"
5691 else
5692 no_cache=1
5693 fi
5694
5695 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5696
5697fi;
5698
5699 eval "$ac_cv_use_sound"
5700 if test "$no_cache" != 1; then
5701 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5702 fi
5703
5704 if test "$wxUSE_SOUND" = yes; then
5705 echo "$as_me:$LINENO: result: yes" >&5
5706echo "${ECHO_T}yes" >&6
5707 else
5708 echo "$as_me:$LINENO: result: no" >&5
5709echo "${ECHO_T}no" >&6
5710 fi
5711
5712
5713 enablestring=
5714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5715echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5716 no_cache=0
5717 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5718if test "${enable_wxprintfv+set}" = set; then
5719 enableval="$enable_wxprintfv"
5720
5721 if test "$enableval" = yes; then
5722 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5723 else
5724 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5725 fi
5726
5727else
5728
5729 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5730 if test "x$LINE" != x ; then
5731 eval "DEFAULT_$LINE"
5732 else
5733 no_cache=1
5734 fi
5735
5736 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5737
5738fi;
5739
5740 eval "$ac_cv_use_wxprintfv"
5741 if test "$no_cache" != 1; then
5742 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5743 fi
5744
5745 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5746 echo "$as_me:$LINENO: result: yes" >&5
5747echo "${ECHO_T}yes" >&6
5748 else
5749 echo "$as_me:$LINENO: result: no" >&5
5750echo "${ECHO_T}no" >&6
5751 fi
5752
5753
5754 enablestring=
5755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5756echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5757 no_cache=0
5758 # Check whether --enable-zipstream or --disable-zipstream was given.
5759if test "${enable_zipstream+set}" = set; then
5760 enableval="$enable_zipstream"
5761
5762 if test "$enableval" = yes; then
5763 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5764 else
5765 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5766 fi
5767
5768else
5769
5770 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5771 if test "x$LINE" != x ; then
5772 eval "DEFAULT_$LINE"
5773 else
5774 no_cache=1
5775 fi
5776
5777 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5778
5779fi;
5780
5781 eval "$ac_cv_use_zipstream"
5782 if test "$no_cache" != 1; then
5783 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5784 fi
5785
5786 if test "$wxUSE_ZIPSTREAM" = yes; then
5787 echo "$as_me:$LINENO: result: yes" >&5
5788echo "${ECHO_T}yes" >&6
5789 else
5790 echo "$as_me:$LINENO: result: no" >&5
5791echo "${ECHO_T}no" >&6
5792 fi
5793
5794
a848cd7e
SC
5795
5796 enablestring=
5797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5798echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5799 no_cache=0
5800 # Check whether --enable-url or --disable-url was given.
5801if test "${enable_url+set}" = set; then
5802 enableval="$enable_url"
5803
5804 if test "$enableval" = yes; then
5805 ac_cv_use_url='wxUSE_URL=yes'
5806 else
5807 ac_cv_use_url='wxUSE_URL=no'
5808 fi
5809
5810else
5811
5812 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5813 if test "x$LINE" != x ; then
5814 eval "DEFAULT_$LINE"
5815 else
5816 no_cache=1
5817 fi
5818
5819 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5820
5821fi;
5822
5823 eval "$ac_cv_use_url"
5824 if test "$no_cache" != 1; then
5825 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5826 fi
5827
5828 if test "$wxUSE_URL" = yes; then
5829 echo "$as_me:$LINENO: result: yes" >&5
5830echo "${ECHO_T}yes" >&6
5831 else
5832 echo "$as_me:$LINENO: result: no" >&5
5833echo "${ECHO_T}no" >&6
5834 fi
5835
5836
5837 enablestring=
5838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5839echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5840 no_cache=0
5841 # Check whether --enable-protocol or --disable-protocol was given.
5842if test "${enable_protocol+set}" = set; then
5843 enableval="$enable_protocol"
5844
5845 if test "$enableval" = yes; then
5846 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5847 else
5848 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5849 fi
5850
5851else
5852
5853 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5854 if test "x$LINE" != x ; then
5855 eval "DEFAULT_$LINE"
5856 else
5857 no_cache=1
5858 fi
5859
5860 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5861
5862fi;
5863
5864 eval "$ac_cv_use_protocol"
5865 if test "$no_cache" != 1; then
5866 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5867 fi
5868
5869 if test "$wxUSE_PROTOCOL" = yes; then
5870 echo "$as_me:$LINENO: result: yes" >&5
5871echo "${ECHO_T}yes" >&6
5872 else
5873 echo "$as_me:$LINENO: result: no" >&5
5874echo "${ECHO_T}no" >&6
5875 fi
5876
5877
5878 enablestring=
5879 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5880echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5881 no_cache=0
5882 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5883if test "${enable_protocol_http+set}" = set; then
5884 enableval="$enable_protocol_http"
5885
5886 if test "$enableval" = yes; then
5887 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5888 else
5889 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5890 fi
5891
5892else
5893
5894 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5895 if test "x$LINE" != x ; then
5896 eval "DEFAULT_$LINE"
5897 else
5898 no_cache=1
5899 fi
5900
5901 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5902
5903fi;
5904
5905 eval "$ac_cv_use_protocol_http"
5906 if test "$no_cache" != 1; then
5907 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5908 fi
5909
5910 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5911 echo "$as_me:$LINENO: result: yes" >&5
5912echo "${ECHO_T}yes" >&6
5913 else
5914 echo "$as_me:$LINENO: result: no" >&5
5915echo "${ECHO_T}no" >&6
5916 fi
5917
5918
5919 enablestring=
5920 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5921echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5922 no_cache=0
5923 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5924if test "${enable_protocol_ftp+set}" = set; then
5925 enableval="$enable_protocol_ftp"
5926
5927 if test "$enableval" = yes; then
5928 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5929 else
5930 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5931 fi
5932
5933else
5934
5935 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5936 if test "x$LINE" != x ; then
5937 eval "DEFAULT_$LINE"
5938 else
5939 no_cache=1
5940 fi
5941
5942 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5943
5944fi;
5945
5946 eval "$ac_cv_use_protocol_ftp"
5947 if test "$no_cache" != 1; then
5948 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5949 fi
5950
5951 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5952 echo "$as_me:$LINENO: result: yes" >&5
5953echo "${ECHO_T}yes" >&6
5954 else
5955 echo "$as_me:$LINENO: result: no" >&5
5956echo "${ECHO_T}no" >&6
5957 fi
5958
5959
5960 enablestring=
5961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5962echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5963 no_cache=0
5964 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5965if test "${enable_protocol_file+set}" = set; then
5966 enableval="$enable_protocol_file"
5967
5968 if test "$enableval" = yes; then
5969 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5970 else
5971 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5972 fi
5973
5974else
5975
5976 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5977 if test "x$LINE" != x ; then
5978 eval "DEFAULT_$LINE"
5979 else
5980 no_cache=1
5981 fi
5982
5983 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5984
5985fi;
5986
5987 eval "$ac_cv_use_protocol_file"
5988 if test "$no_cache" != 1; then
5989 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5990 fi
5991
5992 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5993 echo "$as_me:$LINENO: result: yes" >&5
5994echo "${ECHO_T}yes" >&6
5995 else
5996 echo "$as_me:$LINENO: result: no" >&5
5997echo "${ECHO_T}no" >&6
5998 fi
5999
6000
6001
6002
6003
6004 enablestring=
6005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6006echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6007 no_cache=0
6008 # Check whether --enable-threads or --disable-threads was given.
6009if test "${enable_threads+set}" = set; then
6010 enableval="$enable_threads"
6011
6012 if test "$enableval" = yes; then
6013 ac_cv_use_threads='wxUSE_THREADS=yes'
6014 else
6015 ac_cv_use_threads='wxUSE_THREADS=no'
6016 fi
6017
6018else
6019
6020 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6021 if test "x$LINE" != x ; then
6022 eval "DEFAULT_$LINE"
6023 else
6024 no_cache=1
6025 fi
6026
6027 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6028
6029fi;
6030
6031 eval "$ac_cv_use_threads"
6032 if test "$no_cache" != 1; then
6033 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6034 fi
6035
6036 if test "$wxUSE_THREADS" = yes; then
6037 echo "$as_me:$LINENO: result: yes" >&5
6038echo "${ECHO_T}yes" >&6
6039 else
6040 echo "$as_me:$LINENO: result: no" >&5
6041echo "${ECHO_T}no" >&6
6042 fi
6043
6044
6045if test "$wxUSE_GUI" = "yes"; then
6046
6047
6048
6049 enablestring=
6050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6051echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6052 no_cache=0
6053 # Check whether --enable-docview or --disable-docview was given.
6054if test "${enable_docview+set}" = set; then
6055 enableval="$enable_docview"
6056
6057 if test "$enableval" = yes; then
6058 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6059 else
6060 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6061 fi
6062
6063else
6064
6065 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
6072 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6073
6074fi;
6075
6076 eval "$ac_cv_use_docview"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6082 echo "$as_me:$LINENO: result: yes" >&5
6083echo "${ECHO_T}yes" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088
6089
6090 enablestring=
6091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6092echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6093 no_cache=0
6094 # Check whether --enable-help or --disable-help was given.
6095if test "${enable_help+set}" = set; then
6096 enableval="$enable_help"
6097
6098 if test "$enableval" = yes; then
6099 ac_cv_use_help='wxUSE_HELP=yes'
6100 else
6101 ac_cv_use_help='wxUSE_HELP=no'
6102 fi
6103
6104else
6105
6106 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6107 if test "x$LINE" != x ; then
6108 eval "DEFAULT_$LINE"
6109 else
6110 no_cache=1
6111 fi
6112
6113 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6114
6115fi;
6116
6117 eval "$ac_cv_use_help"
6118 if test "$no_cache" != 1; then
6119 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6120 fi
6121
6122 if test "$wxUSE_HELP" = yes; then
6123 echo "$as_me:$LINENO: result: yes" >&5
6124echo "${ECHO_T}yes" >&6
6125 else
6126 echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6
6128 fi
6129
6130
6131 enablestring=
6132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6133echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6134 no_cache=0
6135 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6136if test "${enable_mshtmlhelp+set}" = set; then
6137 enableval="$enable_mshtmlhelp"
6138
6139 if test "$enableval" = yes; then
6140 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6141 else
6142 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6143 fi
6144
6145else
6146
6147 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6148 if test "x$LINE" != x ; then
6149 eval "DEFAULT_$LINE"
6150 else
6151 no_cache=1
6152 fi
6153
6154 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6155
6156fi;
6157
6158 eval "$ac_cv_use_mshtmlhelp"
6159 if test "$no_cache" != 1; then
6160 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6161 fi
6162
6163 if test "$wxUSE_MS_HTML_HELP" = yes; then
6164 echo "$as_me:$LINENO: result: yes" >&5
6165echo "${ECHO_T}yes" >&6
6166 else
6167 echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169 fi
6170
6171
6172 enablestring=
6173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6174echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6175 no_cache=0
6176 # Check whether --enable-html or --disable-html was given.
6177if test "${enable_html+set}" = set; then
6178 enableval="$enable_html"
6179
6180 if test "$enableval" = yes; then
6181 ac_cv_use_html='wxUSE_HTML=yes'
6182 else
6183 ac_cv_use_html='wxUSE_HTML=no'
6184 fi
6185
6186else
6187
6188 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6196
6197fi;
6198
6199 eval "$ac_cv_use_html"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_HTML" = yes; then
6205 echo "$as_me:$LINENO: result: yes" >&5
6206echo "${ECHO_T}yes" >&6
6207 else
6208 echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
6210 fi
6211
6212
6213 enablestring=
6214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6215echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6216 no_cache=0
6217 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6218if test "${enable_htmlhelp+set}" = set; then
6219 enableval="$enable_htmlhelp"
6220
6221 if test "$enableval" = yes; then
6222 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6223 else
6224 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6225 fi
6226
6227else
6228
6229 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6230 if test "x$LINE" != x ; then
6231 eval "DEFAULT_$LINE"
6232 else
6233 no_cache=1
6234 fi
6235
6236 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6237
6238fi;
6239
6240 eval "$ac_cv_use_htmlhelp"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_WXHTML_HELP" = yes; then
6246 echo "$as_me:$LINENO: result: yes" >&5
6247echo "${ECHO_T}yes" >&6
6248 else
6249 echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6
6251 fi
6252
6253
6254 enablestring=
6255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6256echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6257 no_cache=0
6258 # Check whether --enable-constraints or --disable-constraints was given.
6259if test "${enable_constraints+set}" = set; then
6260 enableval="$enable_constraints"
6261
6262 if test "$enableval" = yes; then
6263 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6264 else
6265 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6266 fi
6267
6268else
6269
6270 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6271 if test "x$LINE" != x ; then
6272 eval "DEFAULT_$LINE"
6273 else
6274 no_cache=1
6275 fi
6276
6277 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6278
6279fi;
6280
6281 eval "$ac_cv_use_constraints"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_CONSTRAINTS" = yes; then
6287 echo "$as_me:$LINENO: result: yes" >&5
6288echo "${ECHO_T}yes" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6
6292 fi
6293
6294
6295 enablestring=
6296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6297echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6298 no_cache=0
6299 # Check whether --enable-printarch or --disable-printarch was given.
6300if test "${enable_printarch+set}" = set; then
6301 enableval="$enable_printarch"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6305 else
6306 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6307 fi
6308
6309else
6310
6311 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6319
6320fi;
6321
6322 eval "$ac_cv_use_printarch"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6328 echo "$as_me:$LINENO: result: yes" >&5
6329echo "${ECHO_T}yes" >&6
6330 else
6331 echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6
6333 fi
6334
6335
6336 enablestring=
6337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6338echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6339 no_cache=0
6340 # Check whether --enable-mdi or --disable-mdi was given.
6341if test "${enable_mdi+set}" = set; then
6342 enableval="$enable_mdi"
6343
6344 if test "$enableval" = yes; then
8a7b1113 6345 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6346 else
8a7b1113 6347 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6348 fi
6349
6350else
6351
8a7b1113 6352 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6353 if test "x$LINE" != x ; then
6354 eval "DEFAULT_$LINE"
6355 else
6356 no_cache=1
6357 fi
6358
8a7b1113 6359 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6360
6361fi;
6362
6363 eval "$ac_cv_use_mdi"
6364 if test "$no_cache" != 1; then
6365 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6366 fi
6367
8a7b1113
VZ
6368 if test "$wxUSE_MDI" = yes; then
6369 echo "$as_me:$LINENO: result: yes" >&5
6370echo "${ECHO_T}yes" >&6
6371 else
6372 echo "$as_me:$LINENO: result: no" >&5
6373echo "${ECHO_T}no" >&6
6374 fi
6375
6376
6377 enablestring=
6378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6379echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6380 no_cache=0
6381 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6382if test "${enable_mdidoc+set}" = set; then
6383 enableval="$enable_mdidoc"
6384
6385 if test "$enableval" = yes; then
6386 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6387 else
6388 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6389 fi
6390
6391else
6392
6393 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6394 if test "x$LINE" != x ; then
6395 eval "DEFAULT_$LINE"
6396 else
6397 no_cache=1
6398 fi
6399
6400 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6401
6402fi;
6403
6404 eval "$ac_cv_use_mdidoc"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6407 fi
6408
a848cd7e
SC
6409 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6410 echo "$as_me:$LINENO: result: yes" >&5
6411echo "${ECHO_T}yes" >&6
6412 else
6413 echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6
6415 fi
6416
6417
6418 enablestring=
6419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6420echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6421 no_cache=0
6422 # Check whether --enable-loggui or --disable-loggui was given.
6423if test "${enable_loggui+set}" = set; then
6424 enableval="$enable_loggui"
6425
6426 if test "$enableval" = yes; then
6427 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6428 else
6429 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6430 fi
6431
6432else
6433
6434 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6435 if test "x$LINE" != x ; then
6436 eval "DEFAULT_$LINE"
6437 else
6438 no_cache=1
6439 fi
6440
6441 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6442
6443fi;
6444
6445 eval "$ac_cv_use_loggui"
6446 if test "$no_cache" != 1; then
6447 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6448 fi
6449
6450 if test "$wxUSE_LOGGUI" = yes; then
6451 echo "$as_me:$LINENO: result: yes" >&5
6452echo "${ECHO_T}yes" >&6
6453 else
6454 echo "$as_me:$LINENO: result: no" >&5
6455echo "${ECHO_T}no" >&6
6456 fi
6457
6458
6459 enablestring=
6460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6461echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6462 no_cache=0
6463 # Check whether --enable-logwin or --disable-logwin was given.
6464if test "${enable_logwin+set}" = set; then
6465 enableval="$enable_logwin"
6466
6467 if test "$enableval" = yes; then
6468 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6469 else
6470 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6471 fi
6472
6473else
6474
6475 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6476 if test "x$LINE" != x ; then
6477 eval "DEFAULT_$LINE"
6478 else
6479 no_cache=1
6480 fi
6481
6482 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6483
6484fi;
6485
6486 eval "$ac_cv_use_logwin"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_LOGWINDOW" = yes; then
6492 echo "$as_me:$LINENO: result: yes" >&5
6493echo "${ECHO_T}yes" >&6
6494 else
6495 echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6
6497 fi
6498
6499
6500 enablestring=
6501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6502echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6503 no_cache=0
6504 # Check whether --enable-logdialog or --disable-logdialog was given.
6505if test "${enable_logdialog+set}" = set; then
6506 enableval="$enable_logdialog"
6507
6508 if test "$enableval" = yes; then
6509 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6510 else
6511 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6512 fi
6513
6514else
6515
6516 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6517 if test "x$LINE" != x ; then
6518 eval "DEFAULT_$LINE"
6519 else
6520 no_cache=1
6521 fi
6522
6523 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6524
6525fi;
6526
6527 eval "$ac_cv_use_logdialog"
6528 if test "$no_cache" != 1; then
6529 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6530 fi
6531
6532 if test "$wxUSE_LOGDIALOG" = yes; then
6533 echo "$as_me:$LINENO: result: yes" >&5
6534echo "${ECHO_T}yes" >&6
6535 else
6536 echo "$as_me:$LINENO: result: no" >&5
6537echo "${ECHO_T}no" >&6
6538 fi
6539
6540
646b6ec1
VS
6541 enablestring=
6542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6543echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6544 no_cache=0
6545 # Check whether --enable-webkit or --disable-webkit was given.
6546if test "${enable_webkit+set}" = set; then
6547 enableval="$enable_webkit"
6548
6549 if test "$enableval" = yes; then
6550 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6551 else
6552 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6553 fi
6554
6555else
6556
6557 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6558 if test "x$LINE" != x ; then
6559 eval "DEFAULT_$LINE"
6560 else
6561 no_cache=1
6562 fi
6563
6564 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6565
6566fi;
6567
6568 eval "$ac_cv_use_webkit"
6569 if test "$no_cache" != 1; then
6570 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6571 fi
6572
6573 if test "$wxUSE_WEBKIT" = yes; then
6574 echo "$as_me:$LINENO: result: yes" >&5
6575echo "${ECHO_T}yes" >&6
6576 else
6577 echo "$as_me:$LINENO: result: no" >&5
6578echo "${ECHO_T}no" >&6
6579 fi
6580
6581
a848cd7e
SC
6582
6583 enablestring=
6584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6585echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6586 no_cache=0
6587 # Check whether --enable-postscript or --disable-postscript was given.
6588if test "${enable_postscript+set}" = set; then
6589 enableval="$enable_postscript"
6590
6591 if test "$enableval" = yes; then
6592 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6593 else
6594 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6595 fi
6596
6597else
6598
6599 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6607
6608fi;
6609
6610 eval "$ac_cv_use_postscript"
6611 if test "$no_cache" != 1; then
6612 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6613 fi
6614
6615 if test "$wxUSE_POSTSCRIPT" = yes; then
6616 echo "$as_me:$LINENO: result: yes" >&5
6617echo "${ECHO_T}yes" >&6
6618 else
6619 echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6
6621 fi
6622
6623
6624
6625
6626
6627 enablestring=
6628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6629echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6630 no_cache=0
6631 # Check whether --enable-prologio or --disable-prologio was given.
6632if test "${enable_prologio+set}" = set; then
6633 enableval="$enable_prologio"
6634
6635 if test "$enableval" = yes; then
6636 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6637 else
6638 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6639 fi
6640
6641else
6642
6643 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6644 if test "x$LINE" != x ; then
6645 eval "DEFAULT_$LINE"
6646 else
6647 no_cache=1
6648 fi
6649
6650 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6651
6652fi;
6653
6654 eval "$ac_cv_use_prologio"
6655 if test "$no_cache" != 1; then
6656 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6657 fi
6658
6659 if test "$wxUSE_PROLOGIO" = yes; then
6660 echo "$as_me:$LINENO: result: yes" >&5
6661echo "${ECHO_T}yes" >&6
6662 else
6663 echo "$as_me:$LINENO: result: no" >&5
6664echo "${ECHO_T}no" >&6
6665 fi
6666
6667
6668 enablestring=
6669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6670echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6671 no_cache=0
6672 # Check whether --enable-resources or --disable-resources was given.
6673if test "${enable_resources+set}" = set; then
6674 enableval="$enable_resources"
6675
6676 if test "$enableval" = yes; then
6677 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6678 else
6679 ac_cv_use_resources='wxUSE_RESOURCES=no'
6680 fi
6681
6682else
6683
6684 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6685 if test "x$LINE" != x ; then
6686 eval "DEFAULT_$LINE"
6687 else
6688 no_cache=1
6689 fi
6690
6691 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6692
6693fi;
6694
6695 eval "$ac_cv_use_resources"
6696 if test "$no_cache" != 1; then
6697 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6698 fi
6699
6700 if test "$wxUSE_RESOURCES" = yes; then
6701 echo "$as_me:$LINENO: result: yes" >&5
6702echo "${ECHO_T}yes" >&6
6703 else
6704 echo "$as_me:$LINENO: result: no" >&5
6705echo "${ECHO_T}no" >&6
6706 fi
6707
6708
6709
6710
6711 enablestring=
6712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6713echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6714 no_cache=0
6715 # Check whether --enable-clipboard or --disable-clipboard was given.
6716if test "${enable_clipboard+set}" = set; then
6717 enableval="$enable_clipboard"
6718
6719 if test "$enableval" = yes; then
6720 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6721 else
6722 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6723 fi
6724
6725else
6726
6727 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6728 if test "x$LINE" != x ; then
6729 eval "DEFAULT_$LINE"
6730 else
6731 no_cache=1
6732 fi
6733
6734 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6735
6736fi;
6737
6738 eval "$ac_cv_use_clipboard"
6739 if test "$no_cache" != 1; then
6740 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6741 fi
6742
6743 if test "$wxUSE_CLIPBOARD" = yes; then
6744 echo "$as_me:$LINENO: result: yes" >&5
6745echo "${ECHO_T}yes" >&6
6746 else
6747 echo "$as_me:$LINENO: result: no" >&5
6748echo "${ECHO_T}no" >&6
6749 fi
6750
6751
6752 enablestring=
6753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6754echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6755 no_cache=0
6756 # Check whether --enable-dnd or --disable-dnd was given.
6757if test "${enable_dnd+set}" = set; then
6758 enableval="$enable_dnd"
6759
6760 if test "$enableval" = yes; then
6761 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6762 else
6763 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6764 fi
6765
6766else
6767
6768 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6769 if test "x$LINE" != x ; then
6770 eval "DEFAULT_$LINE"
6771 else
6772 no_cache=1
6773 fi
6774
6775 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6776
6777fi;
6778
6779 eval "$ac_cv_use_dnd"
6780 if test "$no_cache" != 1; then
6781 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6782 fi
6783
6784 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6785 echo "$as_me:$LINENO: result: yes" >&5
6786echo "${ECHO_T}yes" >&6
6787 else
6788 echo "$as_me:$LINENO: result: no" >&5
6789echo "${ECHO_T}no" >&6
6790 fi
6791
6792
6793 enablestring=
6794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6795echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6796 no_cache=0
6797 # Check whether --enable-metafile or --disable-metafile was given.
6798if test "${enable_metafile+set}" = set; then
6799 enableval="$enable_metafile"
6800
6801 if test "$enableval" = yes; then
6802 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6803 else
6804 ac_cv_use_metafile='wxUSE_METAFILE=no'
6805 fi
6806
6807else
6808
6809 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6810 if test "x$LINE" != x ; then
6811 eval "DEFAULT_$LINE"
6812 else
6813 no_cache=1
6814 fi
6815
6816 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6817
6818fi;
6819
6820 eval "$ac_cv_use_metafile"
6821 if test "$no_cache" != 1; then
6822 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6823 fi
6824
6825 if test "$wxUSE_METAFILE" = yes; then
6826 echo "$as_me:$LINENO: result: yes" >&5
6827echo "${ECHO_T}yes" >&6
6828 else
6829 echo "$as_me:$LINENO: result: no" >&5
6830echo "${ECHO_T}no" >&6
6831 fi
6832
6833
6834
6835
6836
6837 enablestring=
6838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6839echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6840 no_cache=0
6841 # Check whether --enable-controls or --disable-controls was given.
6842if test "${enable_controls+set}" = set; then
6843 enableval="$enable_controls"
6844
6845 if test "$enableval" = yes; then
6846 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6847 else
6848 ac_cv_use_controls='wxUSE_CONTROLS=no'
6849 fi
6850
6851else
6852
6853 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6854 if test "x$LINE" != x ; then
6855 eval "DEFAULT_$LINE"
6856 else
6857 no_cache=1
6858 fi
6859
6860 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6861
6862fi;
6863
6864 eval "$ac_cv_use_controls"
6865 if test "$no_cache" != 1; then
6866 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6867 fi
6868
6869 if test "$wxUSE_CONTROLS" = yes; then
6870 echo "$as_me:$LINENO: result: yes" >&5
6871echo "${ECHO_T}yes" >&6
6872 else
6873 echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6
6875 fi
6876
6877
6878if test "$wxUSE_CONTROLS" = "yes"; then
6879 DEFAULT_wxUSE_ACCEL=yes
6880 DEFAULT_wxUSE_BMPBUTTON=yes
6881 DEFAULT_wxUSE_BUTTON=yes
6882 DEFAULT_wxUSE_CALCTRL=no
6883 DEFAULT_wxUSE_CARET=yes
6884 DEFAULT_wxUSE_COMBOBOX=yes
6885 DEFAULT_wxUSE_CHECKBOX=yes
6886 DEFAULT_wxUSE_CHECKLISTBOX=yes
6887 DEFAULT_wxUSE_CHOICE=yes
6888 DEFAULT_wxUSE_GAUGE=yes
6889 DEFAULT_wxUSE_GRID=yes
6890 DEFAULT_wxUSE_IMAGLIST=yes
6891 DEFAULT_wxUSE_LISTBOOK=yes
6892 DEFAULT_wxUSE_LISTBOX=yes
6893 DEFAULT_wxUSE_LISTCTRL=yes
6894 DEFAULT_wxUSE_NOTEBOOK=yes
6895 DEFAULT_wxUSE_RADIOBOX=yes
6896 DEFAULT_wxUSE_RADIOBTN=yes
6897 DEFAULT_wxUSE_SASH=yes
6898 DEFAULT_wxUSE_SCROLLBAR=yes
6899 DEFAULT_wxUSE_SLIDER=yes
6900 DEFAULT_wxUSE_SPINBTN=yes
6901 DEFAULT_wxUSE_SPINCTRL=yes
6902 DEFAULT_wxUSE_SPLITTER=yes
6903 DEFAULT_wxUSE_STATBMP=yes
6904 DEFAULT_wxUSE_STATBOX=yes
6905 DEFAULT_wxUSE_STATLINE=yes
6906 DEFAULT_wxUSE_STATUSBAR=yes
6907 DEFAULT_wxUSE_TAB_DIALOG=yes
6908 DEFAULT_wxUSE_TOGGLEBTN=yes
6909 DEFAULT_wxUSE_TOOLBAR=yes
6910 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6911 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6912 DEFAULT_wxUSE_TOOLTIPS=yes
6913 DEFAULT_wxUSE_TREECTRL=yes
6914 DEFAULT_wxUSE_POPUPWIN=yes
6915 DEFAULT_wxUSE_TIPWINDOW=yes
6916elif test "$wxUSE_CONTROLS" = "no"; then
6917 DEFAULT_wxUSE_ACCEL=no
6918 DEFAULT_wxUSE_BMPBUTTON=no
6919 DEFAULT_wxUSE_BUTTON=no
6920 DEFAULT_wxUSE_CALCTRL=no
6921 DEFAULT_wxUSE_CARET=no
6922 DEFAULT_wxUSE_COMBOBOX=no
6923 DEFAULT_wxUSE_CHECKBOX=no
6924 DEFAULT_wxUSE_CHECKLISTBOX=no
6925 DEFAULT_wxUSE_CHOICE=no
6926 DEFAULT_wxUSE_GAUGE=no
6927 DEFAULT_wxUSE_GRID=no
6928 DEFAULT_wxUSE_IMAGLIST=no
6929 DEFAULT_wxUSE_LISTBOOK=no
6930 DEFAULT_wxUSE_LISTBOX=no
6931 DEFAULT_wxUSE_LISTCTRL=no
6932 DEFAULT_wxUSE_NOTEBOOK=no
6933 DEFAULT_wxUSE_RADIOBOX=no
6934 DEFAULT_wxUSE_RADIOBTN=no
6935 DEFAULT_wxUSE_SASH=no
6936 DEFAULT_wxUSE_SCROLLBAR=no
6937 DEFAULT_wxUSE_SLIDER=no
6938 DEFAULT_wxUSE_SPINBTN=no
6939 DEFAULT_wxUSE_SPINCTRL=no
6940 DEFAULT_wxUSE_SPLITTER=no
6941 DEFAULT_wxUSE_STATBMP=no
6942 DEFAULT_wxUSE_STATBOX=no
6943 DEFAULT_wxUSE_STATLINE=no
6944 DEFAULT_wxUSE_STATUSBAR=no
6945 DEFAULT_wxUSE_TAB_DIALOG=no
6946 DEFAULT_wxUSE_TOGGLEBTN=no
6947 DEFAULT_wxUSE_TOOLBAR=no
6948 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6949 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6950 DEFAULT_wxUSE_TOOLTIPS=no
6951 DEFAULT_wxUSE_TREECTRL=no
6952 DEFAULT_wxUSE_POPUPWIN=no
6953 DEFAULT_wxUSE_TIPWINDOW=no
6954fi
6955
6956## FIXME: This is a blatant hack
6957if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6958 wxUSE_PRINTING_ARCHITECTURE=no
6959 wxUSE_DRAG_AND_DROP=no
a848cd7e
SC
6960 DEFAULT_wxUSE_SCROLLBAR=no
6961 DEFAULT_wxUSE_TOOLTIPS=no
6962 DEFAULT_wxUSE_DRAGIMAGE=no
6963fi
6964
6965
6966 enablestring=
6967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6968echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6969 no_cache=0
6970 # Check whether --enable-accel or --disable-accel was given.
6971if test "${enable_accel+set}" = set; then
6972 enableval="$enable_accel"
6973
6974 if test "$enableval" = yes; then
6975 ac_cv_use_accel='wxUSE_ACCEL=yes'
6976 else
6977 ac_cv_use_accel='wxUSE_ACCEL=no'
6978 fi
6979
6980else
6981
6982 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6983 if test "x$LINE" != x ; then
6984 eval "DEFAULT_$LINE"
6985 else
6986 no_cache=1
6987 fi
6988
6989 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6990
6991fi;
6992
6993 eval "$ac_cv_use_accel"
6994 if test "$no_cache" != 1; then
6995 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6996 fi
6997
6998 if test "$wxUSE_ACCEL" = yes; then
6999 echo "$as_me:$LINENO: result: yes" >&5
7000echo "${ECHO_T}yes" >&6
7001 else
7002 echo "$as_me:$LINENO: result: no" >&5
7003echo "${ECHO_T}no" >&6
7004 fi
7005
7006
7007 enablestring=
7008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7009echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7010 no_cache=0
7011 # Check whether --enable-button or --disable-button was given.
7012if test "${enable_button+set}" = set; then
7013 enableval="$enable_button"
7014
7015 if test "$enableval" = yes; then
7016 ac_cv_use_button='wxUSE_BUTTON=yes'
7017 else
7018 ac_cv_use_button='wxUSE_BUTTON=no'
7019 fi
7020
7021else
7022
7023 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7024 if test "x$LINE" != x ; then
7025 eval "DEFAULT_$LINE"
7026 else
7027 no_cache=1
7028 fi
7029
7030 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7031
7032fi;
7033
7034 eval "$ac_cv_use_button"
7035 if test "$no_cache" != 1; then
7036 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7037 fi
7038
7039 if test "$wxUSE_BUTTON" = yes; then
7040 echo "$as_me:$LINENO: result: yes" >&5
7041echo "${ECHO_T}yes" >&6
7042 else
7043 echo "$as_me:$LINENO: result: no" >&5
7044echo "${ECHO_T}no" >&6
7045 fi
7046
7047
7048 enablestring=
7049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7050echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7051 no_cache=0
7052 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7053if test "${enable_bmpbutton+set}" = set; then
7054 enableval="$enable_bmpbutton"
7055
7056 if test "$enableval" = yes; then
7057 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7058 else
7059 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7060 fi
7061
7062else
7063
7064 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7065 if test "x$LINE" != x ; then
7066 eval "DEFAULT_$LINE"
7067 else
7068 no_cache=1
7069 fi
7070
7071 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7072
7073fi;
7074
7075 eval "$ac_cv_use_bmpbutton"
7076 if test "$no_cache" != 1; then
7077 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7078 fi
7079
7080 if test "$wxUSE_BMPBUTTON" = yes; then
7081 echo "$as_me:$LINENO: result: yes" >&5
7082echo "${ECHO_T}yes" >&6
7083 else
7084 echo "$as_me:$LINENO: result: no" >&5
7085echo "${ECHO_T}no" >&6
7086 fi
7087
7088
7089 enablestring=
7090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7091echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7092 no_cache=0
7093 # Check whether --enable-calendar or --disable-calendar was given.
7094if test "${enable_calendar+set}" = set; then
7095 enableval="$enable_calendar"
7096
7097 if test "$enableval" = yes; then
7098 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7099 else
7100 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7101 fi
7102
7103else
7104
7105 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7106 if test "x$LINE" != x ; then
7107 eval "DEFAULT_$LINE"
7108 else
7109 no_cache=1
7110 fi
7111
7112 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7113
7114fi;
7115
7116 eval "$ac_cv_use_calendar"
7117 if test "$no_cache" != 1; then
7118 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7119 fi
7120
7121 if test "$wxUSE_CALCTRL" = yes; then
7122 echo "$as_me:$LINENO: result: yes" >&5
7123echo "${ECHO_T}yes" >&6
7124 else
7125 echo "$as_me:$LINENO: result: no" >&5
7126echo "${ECHO_T}no" >&6
7127 fi
7128
7129
7130 enablestring=
7131 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7132echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7133 no_cache=0
7134 # Check whether --enable-caret or --disable-caret was given.
7135if test "${enable_caret+set}" = set; then
7136 enableval="$enable_caret"
7137
7138 if test "$enableval" = yes; then
7139 ac_cv_use_caret='wxUSE_CARET=yes'
7140 else
7141 ac_cv_use_caret='wxUSE_CARET=no'
7142 fi
7143
7144else
7145
7146 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7147 if test "x$LINE" != x ; then
7148 eval "DEFAULT_$LINE"
7149 else
7150 no_cache=1
7151 fi
7152
7153 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7154
7155fi;
7156
7157 eval "$ac_cv_use_caret"
7158 if test "$no_cache" != 1; then
7159 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7160 fi
7161
7162 if test "$wxUSE_CARET" = yes; then
7163 echo "$as_me:$LINENO: result: yes" >&5
7164echo "${ECHO_T}yes" >&6
7165 else
7166 echo "$as_me:$LINENO: result: no" >&5
7167echo "${ECHO_T}no" >&6
7168 fi
7169
7170
7171 enablestring=
7172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7173echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7174 no_cache=0
7175 # Check whether --enable-checkbox or --disable-checkbox was given.
7176if test "${enable_checkbox+set}" = set; then
7177 enableval="$enable_checkbox"
7178
7179 if test "$enableval" = yes; then
7180 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7181 else
7182 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7183 fi
7184
7185else
7186
7187 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7188 if test "x$LINE" != x ; then
7189 eval "DEFAULT_$LINE"
7190 else
7191 no_cache=1
7192 fi
7193
7194 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7195
7196fi;
7197
7198 eval "$ac_cv_use_checkbox"
7199 if test "$no_cache" != 1; then
7200 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7201 fi
7202
7203 if test "$wxUSE_CHECKBOX" = yes; then
7204 echo "$as_me:$LINENO: result: yes" >&5
7205echo "${ECHO_T}yes" >&6
7206 else
7207 echo "$as_me:$LINENO: result: no" >&5
7208echo "${ECHO_T}no" >&6
7209 fi
7210
7211
7212 enablestring=
7213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7214echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7215 no_cache=0
7216 # Check whether --enable-checklst or --disable-checklst was given.
7217if test "${enable_checklst+set}" = set; then
7218 enableval="$enable_checklst"
7219
7220 if test "$enableval" = yes; then
7221 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7222 else
7223 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7224 fi
7225
7226else
7227
7228 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7229 if test "x$LINE" != x ; then
7230 eval "DEFAULT_$LINE"
7231 else
7232 no_cache=1
7233 fi
7234
7235 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7236
7237fi;
7238
7239 eval "$ac_cv_use_checklst"
7240 if test "$no_cache" != 1; then
7241 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7242 fi
7243
7244 if test "$wxUSE_CHECKLST" = yes; then
7245 echo "$as_me:$LINENO: result: yes" >&5
7246echo "${ECHO_T}yes" >&6
7247 else
7248 echo "$as_me:$LINENO: result: no" >&5
7249echo "${ECHO_T}no" >&6
7250 fi
7251
7252
7253 enablestring=
7254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7255echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7256 no_cache=0
7257 # Check whether --enable-choice or --disable-choice was given.
7258if test "${enable_choice+set}" = set; then
7259 enableval="$enable_choice"
7260
7261 if test "$enableval" = yes; then
7262 ac_cv_use_choice='wxUSE_CHOICE=yes'
7263 else
7264 ac_cv_use_choice='wxUSE_CHOICE=no'
7265 fi
7266
7267else
7268
7269 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7270 if test "x$LINE" != x ; then
7271 eval "DEFAULT_$LINE"
7272 else
7273 no_cache=1
7274 fi
7275
7276 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7277
7278fi;
7279
7280 eval "$ac_cv_use_choice"
7281 if test "$no_cache" != 1; then
7282 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7283 fi
7284
7285 if test "$wxUSE_CHOICE" = yes; then
7286 echo "$as_me:$LINENO: result: yes" >&5
7287echo "${ECHO_T}yes" >&6
7288 else
7289 echo "$as_me:$LINENO: result: no" >&5
7290echo "${ECHO_T}no" >&6
7291 fi
7292
7293
7294 enablestring=
7295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7296echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7297 no_cache=0
7298 # Check whether --enable-combobox or --disable-combobox was given.
7299if test "${enable_combobox+set}" = set; then
7300 enableval="$enable_combobox"
7301
7302 if test "$enableval" = yes; then
7303 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7304 else
7305 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7306 fi
7307
7308else
7309
7310 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7311 if test "x$LINE" != x ; then
7312 eval "DEFAULT_$LINE"
7313 else
7314 no_cache=1
7315 fi
7316
7317 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7318
7319fi;
7320
7321 eval "$ac_cv_use_combobox"
7322 if test "$no_cache" != 1; then
7323 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7324 fi
7325
7326 if test "$wxUSE_COMBOBOX" = yes; then
7327 echo "$as_me:$LINENO: result: yes" >&5
7328echo "${ECHO_T}yes" >&6
7329 else
7330 echo "$as_me:$LINENO: result: no" >&5
7331echo "${ECHO_T}no" >&6
7332 fi
7333
7334
7335 enablestring=
7336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7337echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7338 no_cache=0
7339 # Check whether --enable-display or --disable-display was given.
7340if test "${enable_display+set}" = set; then
7341 enableval="$enable_display"
7342
7343 if test "$enableval" = yes; then
7344 ac_cv_use_display='wxUSE_DISPLAY=yes'
7345 else
7346 ac_cv_use_display='wxUSE_DISPLAY=no'
7347 fi
7348
7349else
7350
7351 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7352 if test "x$LINE" != x ; then
7353 eval "DEFAULT_$LINE"
7354 else
7355 no_cache=1
7356 fi
7357
7358 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7359
7360fi;
7361
7362 eval "$ac_cv_use_display"
7363 if test "$no_cache" != 1; then
7364 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7365 fi
7366
7367 if test "$wxUSE_DISPLAY" = yes; then
7368 echo "$as_me:$LINENO: result: yes" >&5
7369echo "${ECHO_T}yes" >&6
7370 else
7371 echo "$as_me:$LINENO: result: no" >&5
7372echo "${ECHO_T}no" >&6
7373 fi
7374
7375
7376 enablestring=
7377 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7378echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7379 no_cache=0
7380 # Check whether --enable-gauge or --disable-gauge was given.
7381if test "${enable_gauge+set}" = set; then
7382 enableval="$enable_gauge"
7383
7384 if test "$enableval" = yes; then
7385 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7386 else
7387 ac_cv_use_gauge='wxUSE_GAUGE=no'
7388 fi
7389
7390else
7391
7392 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7393 if test "x$LINE" != x ; then
7394 eval "DEFAULT_$LINE"
7395 else
7396 no_cache=1
7397 fi
7398
7399 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7400
7401fi;
7402
7403 eval "$ac_cv_use_gauge"
7404 if test "$no_cache" != 1; then
7405 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7406 fi
7407
7408 if test "$wxUSE_GAUGE" = yes; then
7409 echo "$as_me:$LINENO: result: yes" >&5
7410echo "${ECHO_T}yes" >&6
7411 else
7412 echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6
7414 fi
7415
7416
7417 enablestring=
7418 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7419echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7420 no_cache=0
7421 # Check whether --enable-grid or --disable-grid was given.
7422if test "${enable_grid+set}" = set; then
7423 enableval="$enable_grid"
7424
7425 if test "$enableval" = yes; then
7426 ac_cv_use_grid='wxUSE_GRID=yes'
7427 else
7428 ac_cv_use_grid='wxUSE_GRID=no'
7429 fi
7430
7431else
7432
7433 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7434 if test "x$LINE" != x ; then
7435 eval "DEFAULT_$LINE"
7436 else
7437 no_cache=1
7438 fi
7439
7440 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7441
7442fi;
7443
7444 eval "$ac_cv_use_grid"
7445 if test "$no_cache" != 1; then
7446 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7447 fi
7448
7449 if test "$wxUSE_GRID" = yes; then
7450 echo "$as_me:$LINENO: result: yes" >&5
7451echo "${ECHO_T}yes" >&6
7452 else
7453 echo "$as_me:$LINENO: result: no" >&5
7454echo "${ECHO_T}no" >&6
7455 fi
7456
7457
7458 enablestring=
7459 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7460echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7461 no_cache=0
7462 # Check whether --enable-imaglist or --disable-imaglist was given.
7463if test "${enable_imaglist+set}" = set; then
7464 enableval="$enable_imaglist"
7465
7466 if test "$enableval" = yes; then
7467 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7468 else
7469 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7470 fi
7471
7472else
7473
7474 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7475 if test "x$LINE" != x ; then
7476 eval "DEFAULT_$LINE"
7477 else
7478 no_cache=1
7479 fi
7480
7481 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7482
7483fi;
7484
7485 eval "$ac_cv_use_imaglist"
7486 if test "$no_cache" != 1; then
7487 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7488 fi
7489
7490 if test "$wxUSE_IMAGLIST" = yes; then
7491 echo "$as_me:$LINENO: result: yes" >&5
7492echo "${ECHO_T}yes" >&6
7493 else
7494 echo "$as_me:$LINENO: result: no" >&5
7495echo "${ECHO_T}no" >&6
7496 fi
7497
7498
7499 enablestring=
7500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7501echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7502 no_cache=0
7503 # Check whether --enable-listbook or --disable-listbook was given.
7504if test "${enable_listbook+set}" = set; then
7505 enableval="$enable_listbook"
7506
7507 if test "$enableval" = yes; then
7508 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7509 else
7510 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7511 fi
7512
7513else
7514
7515 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7516 if test "x$LINE" != x ; then
7517 eval "DEFAULT_$LINE"
7518 else
7519 no_cache=1
7520 fi
7521
7522 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7523
7524fi;
7525
7526 eval "$ac_cv_use_listbook"
7527 if test "$no_cache" != 1; then
7528 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7529 fi
7530
7531 if test "$wxUSE_LISTBOOK" = yes; then
7532 echo "$as_me:$LINENO: result: yes" >&5
7533echo "${ECHO_T}yes" >&6
7534 else
7535 echo "$as_me:$LINENO: result: no" >&5
7536echo "${ECHO_T}no" >&6
7537 fi
7538
7539
7540 enablestring=
7541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7542echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7543 no_cache=0
7544 # Check whether --enable-listbox or --disable-listbox was given.
7545if test "${enable_listbox+set}" = set; then
7546 enableval="$enable_listbox"
7547
7548 if test "$enableval" = yes; then
7549 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7550 else
7551 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7552 fi
7553
7554else
7555
7556 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7557 if test "x$LINE" != x ; then
7558 eval "DEFAULT_$LINE"
7559 else
7560 no_cache=1
7561 fi
7562
7563 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7564
7565fi;
7566
7567 eval "$ac_cv_use_listbox"
7568 if test "$no_cache" != 1; then
7569 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7570 fi
7571
7572 if test "$wxUSE_LISTBOX" = yes; then
7573 echo "$as_me:$LINENO: result: yes" >&5
7574echo "${ECHO_T}yes" >&6
7575 else
7576 echo "$as_me:$LINENO: result: no" >&5
7577echo "${ECHO_T}no" >&6
7578 fi
7579
7580
7581 enablestring=
7582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7583echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7584 no_cache=0
7585 # Check whether --enable-listctrl or --disable-listctrl was given.
7586if test "${enable_listctrl+set}" = set; then
7587 enableval="$enable_listctrl"
7588
7589 if test "$enableval" = yes; then
7590 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7591 else
7592 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7593 fi
7594
7595else
7596
7597 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7598 if test "x$LINE" != x ; then
7599 eval "DEFAULT_$LINE"
7600 else
7601 no_cache=1
7602 fi
7603
7604 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7605
7606fi;
7607
7608 eval "$ac_cv_use_listctrl"
7609 if test "$no_cache" != 1; then
7610 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7611 fi
7612
7613 if test "$wxUSE_LISTCTRL" = yes; then
7614 echo "$as_me:$LINENO: result: yes" >&5
7615echo "${ECHO_T}yes" >&6
7616 else
7617 echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6
7619 fi
7620
7621
7622 enablestring=
7623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7624echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7625 no_cache=0
7626 # Check whether --enable-notebook or --disable-notebook was given.
7627if test "${enable_notebook+set}" = set; then
7628 enableval="$enable_notebook"
7629
7630 if test "$enableval" = yes; then
7631 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7632 else
7633 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7634 fi
7635
7636else
7637
7638 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7639 if test "x$LINE" != x ; then
7640 eval "DEFAULT_$LINE"
7641 else
7642 no_cache=1
7643 fi
7644
7645 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7646
7647fi;
7648
7649 eval "$ac_cv_use_notebook"
7650 if test "$no_cache" != 1; then
7651 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7652 fi
7653
7654 if test "$wxUSE_NOTEBOOK" = yes; then
7655 echo "$as_me:$LINENO: result: yes" >&5
7656echo "${ECHO_T}yes" >&6
7657 else
7658 echo "$as_me:$LINENO: result: no" >&5
7659echo "${ECHO_T}no" >&6
7660 fi
7661
7662
7663 enablestring=
7664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7665echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7666 no_cache=0
7667 # Check whether --enable-radiobox or --disable-radiobox was given.
7668if test "${enable_radiobox+set}" = set; then
7669 enableval="$enable_radiobox"
7670
7671 if test "$enableval" = yes; then
7672 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7673 else
7674 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7675 fi
7676
7677else
7678
7679 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7680 if test "x$LINE" != x ; then
7681 eval "DEFAULT_$LINE"
7682 else
7683 no_cache=1
7684 fi
7685
7686 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7687
7688fi;
7689
7690 eval "$ac_cv_use_radiobox"
7691 if test "$no_cache" != 1; then
7692 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7693 fi
7694
7695 if test "$wxUSE_RADIOBOX" = yes; then
7696 echo "$as_me:$LINENO: result: yes" >&5
7697echo "${ECHO_T}yes" >&6
7698 else
7699 echo "$as_me:$LINENO: result: no" >&5
7700echo "${ECHO_T}no" >&6
7701 fi
7702
7703
7704 enablestring=
7705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7706echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7707 no_cache=0
7708 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7709if test "${enable_radiobtn+set}" = set; then
7710 enableval="$enable_radiobtn"
7711
7712 if test "$enableval" = yes; then
7713 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7714 else
7715 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7716 fi
7717
7718else
7719
7720 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7721 if test "x$LINE" != x ; then
7722 eval "DEFAULT_$LINE"
7723 else
7724 no_cache=1
7725 fi
7726
7727 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7728
7729fi;
7730
7731 eval "$ac_cv_use_radiobtn"
7732 if test "$no_cache" != 1; then
7733 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7734 fi
7735
7736 if test "$wxUSE_RADIOBTN" = yes; then
7737 echo "$as_me:$LINENO: result: yes" >&5
7738echo "${ECHO_T}yes" >&6
7739 else
7740 echo "$as_me:$LINENO: result: no" >&5
7741echo "${ECHO_T}no" >&6
7742 fi
7743
7744
7745 enablestring=
7746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7747echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7748 no_cache=0
7749 # Check whether --enable-sash or --disable-sash was given.
7750if test "${enable_sash+set}" = set; then
7751 enableval="$enable_sash"
7752
7753 if test "$enableval" = yes; then
7754 ac_cv_use_sash='wxUSE_SASH=yes'
7755 else
7756 ac_cv_use_sash='wxUSE_SASH=no'
7757 fi
7758
7759else
7760
7761 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7762 if test "x$LINE" != x ; then
7763 eval "DEFAULT_$LINE"
7764 else
7765 no_cache=1
7766 fi
7767
7768 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7769
7770fi;
7771
7772 eval "$ac_cv_use_sash"
7773 if test "$no_cache" != 1; then
7774 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7775 fi
7776
7777 if test "$wxUSE_SASH" = yes; then
7778 echo "$as_me:$LINENO: result: yes" >&5
7779echo "${ECHO_T}yes" >&6
7780 else
7781 echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6
7783 fi
7784
7785
7786 enablestring=
7787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7788echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7789 no_cache=0
7790 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7791if test "${enable_scrollbar+set}" = set; then
7792 enableval="$enable_scrollbar"
7793
7794 if test "$enableval" = yes; then
7795 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7796 else
7797 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7798 fi
7799
7800else
7801
7802 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7803 if test "x$LINE" != x ; then
7804 eval "DEFAULT_$LINE"
7805 else
7806 no_cache=1
7807 fi
7808
7809 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7810
7811fi;
7812
7813 eval "$ac_cv_use_scrollbar"
7814 if test "$no_cache" != 1; then
7815 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7816 fi
7817
7818 if test "$wxUSE_SCROLLBAR" = yes; then
7819 echo "$as_me:$LINENO: result: yes" >&5
7820echo "${ECHO_T}yes" >&6
7821 else
7822 echo "$as_me:$LINENO: result: no" >&5
7823echo "${ECHO_T}no" >&6
7824 fi
7825
7826
7827 enablestring=
7828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7829echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7830 no_cache=0
7831 # Check whether --enable-slider or --disable-slider was given.
7832if test "${enable_slider+set}" = set; then
7833 enableval="$enable_slider"
7834
7835 if test "$enableval" = yes; then
7836 ac_cv_use_slider='wxUSE_SLIDER=yes'
7837 else
7838 ac_cv_use_slider='wxUSE_SLIDER=no'
7839 fi
7840
7841else
7842
7843 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7844 if test "x$LINE" != x ; then
7845 eval "DEFAULT_$LINE"
7846 else
7847 no_cache=1
7848 fi
7849
7850 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7851
7852fi;
7853
7854 eval "$ac_cv_use_slider"
7855 if test "$no_cache" != 1; then
7856 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7857 fi
7858
7859 if test "$wxUSE_SLIDER" = yes; then
7860 echo "$as_me:$LINENO: result: yes" >&5
7861echo "${ECHO_T}yes" >&6
7862 else
7863 echo "$as_me:$LINENO: result: no" >&5
7864echo "${ECHO_T}no" >&6
7865 fi
7866
7867
7868 enablestring=
7869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7870echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7871 no_cache=0
7872 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7873if test "${enable_spinbtn+set}" = set; then
7874 enableval="$enable_spinbtn"
7875
7876 if test "$enableval" = yes; then
7877 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7878 else
7879 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7880 fi
7881
7882else
7883
7884 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7885 if test "x$LINE" != x ; then
7886 eval "DEFAULT_$LINE"
7887 else
7888 no_cache=1
7889 fi
7890
7891 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7892
7893fi;
7894
7895 eval "$ac_cv_use_spinbtn"
7896 if test "$no_cache" != 1; then
7897 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7898 fi
7899
7900 if test "$wxUSE_SPINBTN" = yes; then
7901 echo "$as_me:$LINENO: result: yes" >&5
7902echo "${ECHO_T}yes" >&6
7903 else
7904 echo "$as_me:$LINENO: result: no" >&5
7905echo "${ECHO_T}no" >&6
7906 fi
7907
7908
7909 enablestring=
7910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7911echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7912 no_cache=0
7913 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7914if test "${enable_spinctrl+set}" = set; then
7915 enableval="$enable_spinctrl"
7916
7917 if test "$enableval" = yes; then
7918 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7919 else
7920 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7921 fi
7922
7923else
7924
7925 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7926 if test "x$LINE" != x ; then
7927 eval "DEFAULT_$LINE"
7928 else
7929 no_cache=1
7930 fi
7931
7932 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7933
7934fi;
7935
7936 eval "$ac_cv_use_spinctrl"
7937 if test "$no_cache" != 1; then
7938 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7939 fi
7940
7941 if test "$wxUSE_SPINCTRL" = yes; then
7942 echo "$as_me:$LINENO: result: yes" >&5
7943echo "${ECHO_T}yes" >&6
7944 else
7945 echo "$as_me:$LINENO: result: no" >&5
7946echo "${ECHO_T}no" >&6
7947 fi
7948
7949
7950 enablestring=
7951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7952echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7953 no_cache=0
7954 # Check whether --enable-splitter or --disable-splitter was given.
7955if test "${enable_splitter+set}" = set; then
7956 enableval="$enable_splitter"
7957
7958 if test "$enableval" = yes; then
7959 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7960 else
7961 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7962 fi
7963
7964else
7965
7966 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7967 if test "x$LINE" != x ; then
7968 eval "DEFAULT_$LINE"
7969 else
7970 no_cache=1
7971 fi
7972
7973 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7974
7975fi;
7976
7977 eval "$ac_cv_use_splitter"
7978 if test "$no_cache" != 1; then
7979 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7980 fi
7981
7982 if test "$wxUSE_SPLITTER" = yes; then
7983 echo "$as_me:$LINENO: result: yes" >&5
7984echo "${ECHO_T}yes" >&6
7985 else
7986 echo "$as_me:$LINENO: result: no" >&5
7987echo "${ECHO_T}no" >&6
7988 fi
7989
7990
7991 enablestring=
7992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7993echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7994 no_cache=0
7995 # Check whether --enable-statbmp or --disable-statbmp was given.
7996if test "${enable_statbmp+set}" = set; then
7997 enableval="$enable_statbmp"
7998
7999 if test "$enableval" = yes; then
8000 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8001 else
8002 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8003 fi
8004
8005else
8006
8007 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8008 if test "x$LINE" != x ; then
8009 eval "DEFAULT_$LINE"
8010 else
8011 no_cache=1
8012 fi
8013
8014 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8015
8016fi;
8017
8018 eval "$ac_cv_use_statbmp"
8019 if test "$no_cache" != 1; then
8020 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8021 fi
8022
8023 if test "$wxUSE_STATBMP" = yes; then
8024 echo "$as_me:$LINENO: result: yes" >&5
8025echo "${ECHO_T}yes" >&6
8026 else
8027 echo "$as_me:$LINENO: result: no" >&5
8028echo "${ECHO_T}no" >&6
8029 fi
8030
8031
8032 enablestring=
8033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8034echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8035 no_cache=0
8036 # Check whether --enable-statbox or --disable-statbox was given.
8037if test "${enable_statbox+set}" = set; then
8038 enableval="$enable_statbox"
8039
8040 if test "$enableval" = yes; then
8041 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8042 else
8043 ac_cv_use_statbox='wxUSE_STATBOX=no'
8044 fi
8045
8046else
8047
8048 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8049 if test "x$LINE" != x ; then
8050 eval "DEFAULT_$LINE"
8051 else
8052 no_cache=1
8053 fi
8054
8055 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8056
8057fi;
8058
8059 eval "$ac_cv_use_statbox"
8060 if test "$no_cache" != 1; then
8061 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8062 fi
8063
8064 if test "$wxUSE_STATBOX" = yes; then
8065 echo "$as_me:$LINENO: result: yes" >&5
8066echo "${ECHO_T}yes" >&6
8067 else
8068 echo "$as_me:$LINENO: result: no" >&5
8069echo "${ECHO_T}no" >&6
8070 fi
8071
8072
8073 enablestring=
8074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8075echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8076 no_cache=0
8077 # Check whether --enable-statline or --disable-statline was given.
8078if test "${enable_statline+set}" = set; then
8079 enableval="$enable_statline"
8080
8081 if test "$enableval" = yes; then
8082 ac_cv_use_statline='wxUSE_STATLINE=yes'
8083 else
8084 ac_cv_use_statline='wxUSE_STATLINE=no'
8085 fi
8086
8087else
8088
8089 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8090 if test "x$LINE" != x ; then
8091 eval "DEFAULT_$LINE"
8092 else
8093 no_cache=1
8094 fi
8095
8096 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8097
8098fi;
8099
8100 eval "$ac_cv_use_statline"
8101 if test "$no_cache" != 1; then
8102 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8103 fi
8104
8105 if test "$wxUSE_STATLINE" = yes; then
8106 echo "$as_me:$LINENO: result: yes" >&5
8107echo "${ECHO_T}yes" >&6
8108 else
8109 echo "$as_me:$LINENO: result: no" >&5
8110echo "${ECHO_T}no" >&6
8111 fi
8112
8113
8114 enablestring=
8115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8116echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8117 no_cache=0
8118 # Check whether --enable-stattext or --disable-stattext was given.
8119if test "${enable_stattext+set}" = set; then
8120 enableval="$enable_stattext"
8121
8122 if test "$enableval" = yes; then
8123 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8124 else
8125 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8126 fi
8127
8128else
8129
8130 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8131 if test "x$LINE" != x ; then
8132 eval "DEFAULT_$LINE"
8133 else
8134 no_cache=1
8135 fi
8136
8137 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8138
8139fi;
8140
8141 eval "$ac_cv_use_stattext"
8142 if test "$no_cache" != 1; then
8143 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8144 fi
8145
8146 if test "$wxUSE_STATTEXT" = yes; then
8147 echo "$as_me:$LINENO: result: yes" >&5
8148echo "${ECHO_T}yes" >&6
8149 else
8150 echo "$as_me:$LINENO: result: no" >&5
8151echo "${ECHO_T}no" >&6
8152 fi
8153
8154
8155 enablestring=
8156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8157echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8158 no_cache=0
8159 # Check whether --enable-statusbar or --disable-statusbar was given.
8160if test "${enable_statusbar+set}" = set; then
8161 enableval="$enable_statusbar"
8162
8163 if test "$enableval" = yes; then
8164 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8165 else
8166 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8167 fi
8168
8169else
8170
8171 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8172 if test "x$LINE" != x ; then
8173 eval "DEFAULT_$LINE"
8174 else
8175 no_cache=1
8176 fi
8177
8178 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8179
8180fi;
8181
8182 eval "$ac_cv_use_statusbar"
8183 if test "$no_cache" != 1; then
8184 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8185 fi
8186
8187 if test "$wxUSE_STATUSBAR" = yes; then
8188 echo "$as_me:$LINENO: result: yes" >&5
8189echo "${ECHO_T}yes" >&6
8190 else
8191 echo "$as_me:$LINENO: result: no" >&5
8192echo "${ECHO_T}no" >&6
8193 fi
8194
8195
8196 enablestring=
8197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8198echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8199 no_cache=0
8200 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8201if test "${enable_tabdialog+set}" = set; then
8202 enableval="$enable_tabdialog"
8203
8204 if test "$enableval" = yes; then
8205 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8206 else
8207 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8208 fi
8209
8210else
8211
8212 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8213 if test "x$LINE" != x ; then
8214 eval "DEFAULT_$LINE"
8215 else
8216 no_cache=1
8217 fi
8218
8219 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8220
8221fi;
8222
8223 eval "$ac_cv_use_tabdialog"
8224 if test "$no_cache" != 1; then
8225 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8226 fi
8227
8228 if test "$wxUSE_TABDIALOG" = yes; then
8229 echo "$as_me:$LINENO: result: yes" >&5
8230echo "${ECHO_T}yes" >&6
8231 else
8232 echo "$as_me:$LINENO: result: no" >&5
8233echo "${ECHO_T}no" >&6
8234 fi
8235
8236
8237 enablestring=
8238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8239echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8240 no_cache=0
8241 # Check whether --enable-textctrl or --disable-textctrl was given.
8242if test "${enable_textctrl+set}" = set; then
8243 enableval="$enable_textctrl"
8244
8245 if test "$enableval" = yes; then
8246 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8247 else
8248 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8249 fi
8250
8251else
8252
8253 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8254 if test "x$LINE" != x ; then
8255 eval "DEFAULT_$LINE"
8256 else
8257 no_cache=1
8258 fi
8259
8260 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8261
8262fi;
8263
8264 eval "$ac_cv_use_textctrl"
8265 if test "$no_cache" != 1; then
8266 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8267 fi
8268
8269 if test "$wxUSE_TEXTCTRL" = yes; then
8270 echo "$as_me:$LINENO: result: yes" >&5
8271echo "${ECHO_T}yes" >&6
8272 else
8273 echo "$as_me:$LINENO: result: no" >&5
8274echo "${ECHO_T}no" >&6
8275 fi
8276
8277
8278 enablestring=
8279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8280echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8281 no_cache=0
8282 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8283if test "${enable_togglebtn+set}" = set; then
8284 enableval="$enable_togglebtn"
8285
8286 if test "$enableval" = yes; then
8287 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8288 else
8289 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8290 fi
8291
8292else
8293
8294 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8295 if test "x$LINE" != x ; then
8296 eval "DEFAULT_$LINE"
8297 else
8298 no_cache=1
8299 fi
8300
8301 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8302
8303fi;
8304
8305 eval "$ac_cv_use_togglebtn"
8306 if test "$no_cache" != 1; then
8307 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8308 fi
8309
8310 if test "$wxUSE_TOGGLEBTN" = yes; then
8311 echo "$as_me:$LINENO: result: yes" >&5
8312echo "${ECHO_T}yes" >&6
8313 else
8314 echo "$as_me:$LINENO: result: no" >&5
8315echo "${ECHO_T}no" >&6
8316 fi
8317
8318
8319 enablestring=
8320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8321echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8322 no_cache=0
8323 # Check whether --enable-toolbar or --disable-toolbar was given.
8324if test "${enable_toolbar+set}" = set; then
8325 enableval="$enable_toolbar"
8326
8327 if test "$enableval" = yes; then
8328 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8329 else
8330 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8331 fi
8332
8333else
8334
8335 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8336 if test "x$LINE" != x ; then
8337 eval "DEFAULT_$LINE"
8338 else
8339 no_cache=1
8340 fi
8341
8342 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8343
8344fi;
8345
8346 eval "$ac_cv_use_toolbar"
8347 if test "$no_cache" != 1; then
8348 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8349 fi
8350
8351 if test "$wxUSE_TOOLBAR" = yes; then
8352 echo "$as_me:$LINENO: result: yes" >&5
8353echo "${ECHO_T}yes" >&6
8354 else
8355 echo "$as_me:$LINENO: result: no" >&5
8356echo "${ECHO_T}no" >&6
8357 fi
8358
8359
8360 enablestring=
8361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8362echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8363 no_cache=0
8364 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8365if test "${enable_tbarnative+set}" = set; then
8366 enableval="$enable_tbarnative"
8367
8368 if test "$enableval" = yes; then
8369 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8370 else
8371 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8372 fi
8373
8374else
8375
8376 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8377 if test "x$LINE" != x ; then
8378 eval "DEFAULT_$LINE"
8379 else
8380 no_cache=1
8381 fi
8382
8383 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8384
8385fi;
8386
8387 eval "$ac_cv_use_tbarnative"
8388 if test "$no_cache" != 1; then
8389 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8390 fi
8391
8392 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8393 echo "$as_me:$LINENO: result: yes" >&5
8394echo "${ECHO_T}yes" >&6
8395 else
8396 echo "$as_me:$LINENO: result: no" >&5
8397echo "${ECHO_T}no" >&6
8398 fi
8399
8400
8401 enablestring=
8402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8403echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8404 no_cache=0
8405 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8406if test "${enable_tbarsmpl+set}" = set; then
8407 enableval="$enable_tbarsmpl"
8408
8409 if test "$enableval" = yes; then
8410 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8411 else
8412 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8413 fi
8414
8415else
8416
8417 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8418 if test "x$LINE" != x ; then
8419 eval "DEFAULT_$LINE"
8420 else
8421 no_cache=1
8422 fi
8423
8424 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8425
8426fi;
8427
8428 eval "$ac_cv_use_tbarsmpl"
8429 if test "$no_cache" != 1; then
8430 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8431 fi
8432
8433 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8434 echo "$as_me:$LINENO: result: yes" >&5
8435echo "${ECHO_T}yes" >&6
8436 else
8437 echo "$as_me:$LINENO: result: no" >&5
8438echo "${ECHO_T}no" >&6
8439 fi
8440
8441
8442 enablestring=
8443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8444echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8445 no_cache=0
8446 # Check whether --enable-treectrl or --disable-treectrl was given.
8447if test "${enable_treectrl+set}" = set; then
8448 enableval="$enable_treectrl"
8449
8450 if test "$enableval" = yes; then
8451 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8452 else
8453 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8454 fi
8455
8456else
8457
8458 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8459 if test "x$LINE" != x ; then
8460 eval "DEFAULT_$LINE"
8461 else
8462 no_cache=1
8463 fi
8464
8465 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8466
8467fi;
8468
8469 eval "$ac_cv_use_treectrl"
8470 if test "$no_cache" != 1; then
8471 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8472 fi
8473
8474 if test "$wxUSE_TREECTRL" = yes; then
8475 echo "$as_me:$LINENO: result: yes" >&5
8476echo "${ECHO_T}yes" >&6
8477 else
8478 echo "$as_me:$LINENO: result: no" >&5
8479echo "${ECHO_T}no" >&6
8480 fi
8481
8482
8483 enablestring=
8484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8485echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8486 no_cache=0
8487 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8488if test "${enable_tipwindow+set}" = set; then
8489 enableval="$enable_tipwindow"
8490
8491 if test "$enableval" = yes; then
8492 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8493 else
8494 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8495 fi
8496
8497else
8498
8499 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8500 if test "x$LINE" != x ; then
8501 eval "DEFAULT_$LINE"
8502 else
8503 no_cache=1
8504 fi
8505
8506 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8507
8508fi;
8509
8510 eval "$ac_cv_use_tipwindow"
8511 if test "$no_cache" != 1; then
8512 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8513 fi
8514
8515 if test "$wxUSE_TIPWINDOW" = yes; then
8516 echo "$as_me:$LINENO: result: yes" >&5
8517echo "${ECHO_T}yes" >&6
8518 else
8519 echo "$as_me:$LINENO: result: no" >&5
8520echo "${ECHO_T}no" >&6
8521 fi
8522
8523
8524 enablestring=
8525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8526echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8527 no_cache=0
8528 # Check whether --enable-popupwin or --disable-popupwin was given.
8529if test "${enable_popupwin+set}" = set; then
8530 enableval="$enable_popupwin"
8531
8532 if test "$enableval" = yes; then
8533 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8534 else
8535 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8536 fi
8537
8538else
8539
8540 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8541 if test "x$LINE" != x ; then
8542 eval "DEFAULT_$LINE"
8543 else
8544 no_cache=1
8545 fi
8546
8547 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8548
8549fi;
8550
8551 eval "$ac_cv_use_popupwin"
8552 if test "$no_cache" != 1; then
8553 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8554 fi
8555
8556 if test "$wxUSE_POPUPWIN" = yes; then
8557 echo "$as_me:$LINENO: result: yes" >&5
8558echo "${ECHO_T}yes" >&6
8559 else
8560 echo "$as_me:$LINENO: result: no" >&5
8561echo "${ECHO_T}no" >&6
8562 fi
8563
8564
8565
8566
8567 enablestring=
8568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8569echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8570 no_cache=0
8571 # Check whether --enable-commondlg or --disable-commondlg was given.
8572if test "${enable_commondlg+set}" = set; then
8573 enableval="$enable_commondlg"
8574
8575 if test "$enableval" = yes; then
8576 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8577 else
8578 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8579 fi
8580
8581else
8582
8583 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8584 if test "x$LINE" != x ; then
8585 eval "DEFAULT_$LINE"
8586 else
8587 no_cache=1
8588 fi
8589
8590 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8591
8592fi;
8593
8594 eval "$ac_cv_use_commondlg"
8595 if test "$no_cache" != 1; then
8596 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8597 fi
8598
8599 if test "$wxUSE_COMMONDLGS" = yes; then
8600 echo "$as_me:$LINENO: result: yes" >&5
8601echo "${ECHO_T}yes" >&6
8602 else
8603 echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605 fi
8606
8607
8608 enablestring=
8609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8610echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8611 no_cache=0
8612 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8613if test "${enable_choicedlg+set}" = set; then
8614 enableval="$enable_choicedlg"
8615
8616 if test "$enableval" = yes; then
8617 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8618 else
8619 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8620 fi
8621
8622else
8623
8624 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8625 if test "x$LINE" != x ; then
8626 eval "DEFAULT_$LINE"
8627 else
8628 no_cache=1
8629 fi
8630
8631 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8632
8633fi;
8634
8635 eval "$ac_cv_use_choicedlg"
8636 if test "$no_cache" != 1; then
8637 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8638 fi
8639
8640 if test "$wxUSE_CHOICEDLG" = yes; then
8641 echo "$as_me:$LINENO: result: yes" >&5
8642echo "${ECHO_T}yes" >&6
8643 else
8644 echo "$as_me:$LINENO: result: no" >&5
8645echo "${ECHO_T}no" >&6
8646 fi
8647
8648
8649 enablestring=
8650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8651echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8652 no_cache=0
8653 # Check whether --enable-coldlg or --disable-coldlg was given.
8654if test "${enable_coldlg+set}" = set; then
8655 enableval="$enable_coldlg"
8656
8657 if test "$enableval" = yes; then
8658 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8659 else
8660 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8661 fi
8662
8663else
8664
8665 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8666 if test "x$LINE" != x ; then
8667 eval "DEFAULT_$LINE"
8668 else
8669 no_cache=1
8670 fi
8671
8672 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8673
8674fi;
8675
8676 eval "$ac_cv_use_coldlg"
8677 if test "$no_cache" != 1; then
8678 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8679 fi
8680
8681 if test "$wxUSE_COLOURDLG" = yes; then
8682 echo "$as_me:$LINENO: result: yes" >&5
8683echo "${ECHO_T}yes" >&6
8684 else
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687 fi
8688
8689
8690 enablestring=
8691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8692echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8693 no_cache=0
8694 # Check whether --enable-filedlg or --disable-filedlg was given.
8695if test "${enable_filedlg+set}" = set; then
8696 enableval="$enable_filedlg"
8697
8698 if test "$enableval" = yes; then
8699 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8700 else
8701 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8702 fi
8703
8704else
8705
8706 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8707 if test "x$LINE" != x ; then
8708 eval "DEFAULT_$LINE"
8709 else
8710 no_cache=1
8711 fi
8712
8713 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8714
8715fi;
8716
8717 eval "$ac_cv_use_filedlg"
8718 if test "$no_cache" != 1; then
8719 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8720 fi
8721
8722 if test "$wxUSE_FILEDLG" = yes; then
8723 echo "$as_me:$LINENO: result: yes" >&5
8724echo "${ECHO_T}yes" >&6
8725 else
8726 echo "$as_me:$LINENO: result: no" >&5
8727echo "${ECHO_T}no" >&6
8728 fi
8729
8730
8731 enablestring=
8732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8733echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8734 no_cache=0
8735 # Check whether --enable-finddlg or --disable-finddlg was given.
8736if test "${enable_finddlg+set}" = set; then
8737 enableval="$enable_finddlg"
8738
8739 if test "$enableval" = yes; then
8740 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8741 else
8742 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8743 fi
8744
8745else
8746
8747 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8748 if test "x$LINE" != x ; then
8749 eval "DEFAULT_$LINE"
8750 else
8751 no_cache=1
8752 fi
8753
8754 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8755
8756fi;
8757
8758 eval "$ac_cv_use_finddlg"
8759 if test "$no_cache" != 1; then
8760 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8761 fi
8762
8763 if test "$wxUSE_FINDREPLDLG" = yes; then
8764 echo "$as_me:$LINENO: result: yes" >&5
8765echo "${ECHO_T}yes" >&6
8766 else
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
8769 fi
8770
8771
8772 enablestring=
8773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8774echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8775 no_cache=0
8776 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8777if test "${enable_fontdlg+set}" = set; then
8778 enableval="$enable_fontdlg"
8779
8780 if test "$enableval" = yes; then
8781 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8782 else
8783 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8784 fi
8785
8786else
8787
8788 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8789 if test "x$LINE" != x ; then
8790 eval "DEFAULT_$LINE"
8791 else
8792 no_cache=1
8793 fi
8794
8795 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8796
8797fi;
8798
8799 eval "$ac_cv_use_fontdlg"
8800 if test "$no_cache" != 1; then
8801 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8802 fi
8803
8804 if test "$wxUSE_FONTDLG" = yes; then
8805 echo "$as_me:$LINENO: result: yes" >&5
8806echo "${ECHO_T}yes" >&6
8807 else
8808 echo "$as_me:$LINENO: result: no" >&5
8809echo "${ECHO_T}no" >&6
8810 fi
8811
8812
8813 enablestring=
8814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8815echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8816 no_cache=0
8817 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8818if test "${enable_dirdlg+set}" = set; then
8819 enableval="$enable_dirdlg"
8820
8821 if test "$enableval" = yes; then
8822 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8823 else
8824 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8825 fi
8826
8827else
8828
8829 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8830 if test "x$LINE" != x ; then
8831 eval "DEFAULT_$LINE"
8832 else
8833 no_cache=1
8834 fi
8835
8836 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8837
8838fi;
8839
8840 eval "$ac_cv_use_dirdlg"
8841 if test "$no_cache" != 1; then
8842 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8843 fi
8844
8845 if test "$wxUSE_DIRDLG" = yes; then
8846 echo "$as_me:$LINENO: result: yes" >&5
8847echo "${ECHO_T}yes" >&6
8848 else
8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
8851 fi
8852
8853
8854 enablestring=
8855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8856echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8857 no_cache=0
8858 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8859if test "${enable_msgdlg+set}" = set; then
8860 enableval="$enable_msgdlg"
8861
8862 if test "$enableval" = yes; then
8863 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8864 else
8865 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8866 fi
8867
8868else
8869
8870 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8871 if test "x$LINE" != x ; then
8872 eval "DEFAULT_$LINE"
8873 else
8874 no_cache=1
8875 fi
8876
8877 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8878
8879fi;
8880
8881 eval "$ac_cv_use_msgdlg"
8882 if test "$no_cache" != 1; then
8883 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8884 fi
8885
8886 if test "$wxUSE_MSGDLG" = yes; then
8887 echo "$as_me:$LINENO: result: yes" >&5
8888echo "${ECHO_T}yes" >&6
8889 else
8890 echo "$as_me:$LINENO: result: no" >&5
8891echo "${ECHO_T}no" >&6
8892 fi
8893
8894
8895 enablestring=
8896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8897echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8898 no_cache=0
8899 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8900if test "${enable_numberdlg+set}" = set; then
8901 enableval="$enable_numberdlg"
8902
8903 if test "$enableval" = yes; then
8904 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8905 else
8906 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8907 fi
8908
8909else
8910
8911 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8912 if test "x$LINE" != x ; then
8913 eval "DEFAULT_$LINE"
8914 else
8915 no_cache=1
8916 fi
8917
8918 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8919
8920fi;
8921
8922 eval "$ac_cv_use_numberdlg"
8923 if test "$no_cache" != 1; then
8924 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8925 fi
8926
8927 if test "$wxUSE_NUMBERDLG" = yes; then
8928 echo "$as_me:$LINENO: result: yes" >&5
8929echo "${ECHO_T}yes" >&6
8930 else
8931 echo "$as_me:$LINENO: result: no" >&5
8932echo "${ECHO_T}no" >&6
8933 fi
8934
8935
8936 enablestring=
8937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8938echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8939 no_cache=0
8940 # Check whether --enable-splash or --disable-splash was given.
8941if test "${enable_splash+set}" = set; then
8942 enableval="$enable_splash"
8943
8944 if test "$enableval" = yes; then
8945 ac_cv_use_splash='wxUSE_SPLASH=yes'
8946 else
8947 ac_cv_use_splash='wxUSE_SPLASH=no'
8948 fi
8949
8950else
8951
8952 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8953 if test "x$LINE" != x ; then
8954 eval "DEFAULT_$LINE"
8955 else
8956 no_cache=1
8957 fi
8958
8959 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8960
8961fi;
8962
8963 eval "$ac_cv_use_splash"
8964 if test "$no_cache" != 1; then
8965 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8966 fi
8967
8968 if test "$wxUSE_SPLASH" = yes; then
8969 echo "$as_me:$LINENO: result: yes" >&5
8970echo "${ECHO_T}yes" >&6
8971 else
8972 echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6
8974 fi
8975
8976
8977 enablestring=
8978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8979echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8980 no_cache=0
8981 # Check whether --enable-textdlg or --disable-textdlg was given.
8982if test "${enable_textdlg+set}" = set; then
8983 enableval="$enable_textdlg"
8984
8985 if test "$enableval" = yes; then
8986 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8987 else
8988 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8989 fi
8990
8991else
8992
8993 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8994 if test "x$LINE" != x ; then
8995 eval "DEFAULT_$LINE"
8996 else
8997 no_cache=1
8998 fi
8999
9000 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9001
9002fi;
9003
9004 eval "$ac_cv_use_textdlg"
9005 if test "$no_cache" != 1; then
9006 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9007 fi
9008
9009 if test "$wxUSE_TEXTDLG" = yes; then
9010 echo "$as_me:$LINENO: result: yes" >&5
9011echo "${ECHO_T}yes" >&6
9012 else
9013 echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015 fi
9016
9017
9018 enablestring=
9019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9020echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9021 no_cache=0
9022 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9023if test "${enable_tipdlg+set}" = set; then
9024 enableval="$enable_tipdlg"
9025
9026 if test "$enableval" = yes; then
9027 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9028 else
9029 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9030 fi
9031
9032else
9033
9034 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9035 if test "x$LINE" != x ; then
9036 eval "DEFAULT_$LINE"
9037 else
9038 no_cache=1
9039 fi
9040
9041 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9042
9043fi;
9044
9045 eval "$ac_cv_use_tipdlg"
9046 if test "$no_cache" != 1; then
9047 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9048 fi
9049
9050 if test "$wxUSE_STARTUP_TIPS" = yes; then
9051 echo "$as_me:$LINENO: result: yes" >&5
9052echo "${ECHO_T}yes" >&6
9053 else
9054 echo "$as_me:$LINENO: result: no" >&5
9055echo "${ECHO_T}no" >&6
9056 fi
9057
9058
9059 enablestring=
9060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9061echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9062 no_cache=0
9063 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9064if test "${enable_progressdlg+set}" = set; then
9065 enableval="$enable_progressdlg"
9066
9067 if test "$enableval" = yes; then
9068 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9069 else
9070 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9071 fi
9072
9073else
9074
9075 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9076 if test "x$LINE" != x ; then
9077 eval "DEFAULT_$LINE"
9078 else
9079 no_cache=1
9080 fi
9081
9082 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9083
9084fi;
9085
9086 eval "$ac_cv_use_progressdlg"
9087 if test "$no_cache" != 1; then
9088 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9089 fi
9090
9091 if test "$wxUSE_PROGRESSDLG" = yes; then
9092 echo "$as_me:$LINENO: result: yes" >&5
9093echo "${ECHO_T}yes" >&6
9094 else
9095 echo "$as_me:$LINENO: result: no" >&5
9096echo "${ECHO_T}no" >&6
9097 fi
9098
9099
9100 enablestring=
9101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9102echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9103 no_cache=0
9104 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9105if test "${enable_wizarddlg+set}" = set; then
9106 enableval="$enable_wizarddlg"
9107
9108 if test "$enableval" = yes; then
9109 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9110 else
9111 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9112 fi
9113
9114else
9115
9116 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9117 if test "x$LINE" != x ; then
9118 eval "DEFAULT_$LINE"
9119 else
9120 no_cache=1
9121 fi
9122
9123 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9124
9125fi;
9126
9127 eval "$ac_cv_use_wizarddlg"
9128 if test "$no_cache" != 1; then
9129 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9130 fi
9131
9132 if test "$wxUSE_WIZARDDLG" = yes; then
9133 echo "$as_me:$LINENO: result: yes" >&5
9134echo "${ECHO_T}yes" >&6
9135 else
9136 echo "$as_me:$LINENO: result: no" >&5
9137echo "${ECHO_T}no" >&6
9138 fi
9139
9140
9141
9142
9143 enablestring=
9144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9145echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9146 no_cache=0
9147 # Check whether --enable-menus or --disable-menus was given.
9148if test "${enable_menus+set}" = set; then
9149 enableval="$enable_menus"
9150
9151 if test "$enableval" = yes; then
9152 ac_cv_use_menus='wxUSE_MENUS=yes'
9153 else
9154 ac_cv_use_menus='wxUSE_MENUS=no'
9155 fi
9156
9157else
9158
9159 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9160 if test "x$LINE" != x ; then
9161 eval "DEFAULT_$LINE"
9162 else
9163 no_cache=1
9164 fi
9165
9166 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9167
9168fi;
9169
9170 eval "$ac_cv_use_menus"
9171 if test "$no_cache" != 1; then
9172 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9173 fi
9174
9175 if test "$wxUSE_MENUS" = yes; then
9176 echo "$as_me:$LINENO: result: yes" >&5
9177echo "${ECHO_T}yes" >&6
9178 else
9179 echo "$as_me:$LINENO: result: no" >&5
9180echo "${ECHO_T}no" >&6
9181 fi
9182
9183
9184 enablestring=
9185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9186echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9187 no_cache=0
9188 # Check whether --enable-miniframe or --disable-miniframe was given.
9189if test "${enable_miniframe+set}" = set; then
9190 enableval="$enable_miniframe"
9191
9192 if test "$enableval" = yes; then
9193 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9194 else
9195 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9196 fi
9197
9198else
9199
9200 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9201 if test "x$LINE" != x ; then
9202 eval "DEFAULT_$LINE"
9203 else
9204 no_cache=1
9205 fi
9206
9207 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9208
9209fi;
9210
9211 eval "$ac_cv_use_miniframe"
9212 if test "$no_cache" != 1; then
9213 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9214 fi
9215
9216 if test "$wxUSE_MINIFRAME" = yes; then
9217 echo "$as_me:$LINENO: result: yes" >&5
9218echo "${ECHO_T}yes" >&6
9219 else
9220 echo "$as_me:$LINENO: result: no" >&5
9221echo "${ECHO_T}no" >&6
9222 fi
9223
9224
9225 enablestring=
9226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9227echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9228 no_cache=0
9229 # Check whether --enable-tooltips or --disable-tooltips was given.
9230if test "${enable_tooltips+set}" = set; then
9231 enableval="$enable_tooltips"
9232
9233 if test "$enableval" = yes; then
9234 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9235 else
9236 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9237 fi
9238
9239else
9240
9241 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9242 if test "x$LINE" != x ; then
9243 eval "DEFAULT_$LINE"
9244 else
9245 no_cache=1
9246 fi
9247
9248 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9249
9250fi;
9251
9252 eval "$ac_cv_use_tooltips"
9253 if test "$no_cache" != 1; then
9254 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9255 fi
9256
9257 if test "$wxUSE_TOOLTIPS" = yes; then
9258 echo "$as_me:$LINENO: result: yes" >&5
9259echo "${ECHO_T}yes" >&6
9260 else
9261 echo "$as_me:$LINENO: result: no" >&5
9262echo "${ECHO_T}no" >&6
9263 fi
9264
9265
9266 enablestring=
9267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9268echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9269 no_cache=0
9270 # Check whether --enable-splines or --disable-splines was given.
9271if test "${enable_splines+set}" = set; then
9272 enableval="$enable_splines"
9273
9274 if test "$enableval" = yes; then
9275 ac_cv_use_splines='wxUSE_SPLINES=yes'
9276 else
9277 ac_cv_use_splines='wxUSE_SPLINES=no'
9278 fi
9279
9280else
9281
9282 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9283 if test "x$LINE" != x ; then
9284 eval "DEFAULT_$LINE"
9285 else
9286 no_cache=1
9287 fi
9288
9289 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9290
9291fi;
9292
9293 eval "$ac_cv_use_splines"
9294 if test "$no_cache" != 1; then
9295 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9296 fi
9297
9298 if test "$wxUSE_SPLINES" = yes; then
9299 echo "$as_me:$LINENO: result: yes" >&5
9300echo "${ECHO_T}yes" >&6
9301 else
9302 echo "$as_me:$LINENO: result: no" >&5
9303echo "${ECHO_T}no" >&6
9304 fi
9305
9306
9307 enablestring=
9308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9309echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9310 no_cache=0
9311 # Check whether --enable-validators or --disable-validators was given.
9312if test "${enable_validators+set}" = set; then
9313 enableval="$enable_validators"
9314
9315 if test "$enableval" = yes; then
9316 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9317 else
9318 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9319 fi
9320
9321else
9322
9323 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9324 if test "x$LINE" != x ; then
9325 eval "DEFAULT_$LINE"
9326 else
9327 no_cache=1
9328 fi
9329
9330 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9331
9332fi;
9333
9334 eval "$ac_cv_use_validators"
9335 if test "$no_cache" != 1; then
9336 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9337 fi
9338
9339 if test "$wxUSE_VALIDATORS" = yes; then
9340 echo "$as_me:$LINENO: result: yes" >&5
9341echo "${ECHO_T}yes" >&6
9342 else
9343 echo "$as_me:$LINENO: result: no" >&5
9344echo "${ECHO_T}no" >&6
9345 fi
9346
9347
9348 enablestring=
9349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9350echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9351 no_cache=0
9352 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9353if test "${enable_busyinfo+set}" = set; then
9354 enableval="$enable_busyinfo"
9355
9356 if test "$enableval" = yes; then
9357 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9358 else
9359 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9360 fi
9361
9362else
9363
9364 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9365 if test "x$LINE" != x ; then
9366 eval "DEFAULT_$LINE"
9367 else
9368 no_cache=1
9369 fi
9370
9371 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9372
9373fi;
9374
9375 eval "$ac_cv_use_busyinfo"
9376 if test "$no_cache" != 1; then
9377 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9378 fi
9379
9380 if test "$wxUSE_BUSYINFO" = yes; then
9381 echo "$as_me:$LINENO: result: yes" >&5
9382echo "${ECHO_T}yes" >&6
9383 else
9384 echo "$as_me:$LINENO: result: no" >&5
9385echo "${ECHO_T}no" >&6
9386 fi
9387
9388
9389 enablestring=
9390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9391echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9392 no_cache=0
9393 # Check whether --enable-joystick or --disable-joystick was given.
9394if test "${enable_joystick+set}" = set; then
9395 enableval="$enable_joystick"
9396
9397 if test "$enableval" = yes; then
9398 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9399 else
9400 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9401 fi
9402
9403else
9404
9405 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9406 if test "x$LINE" != x ; then
9407 eval "DEFAULT_$LINE"
9408 else
9409 no_cache=1
9410 fi
9411
9412 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9413
9414fi;
9415
9416 eval "$ac_cv_use_joystick"
9417 if test "$no_cache" != 1; then
9418 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9419 fi
9420
9421 if test "$wxUSE_JOYSTICK" = yes; then
9422 echo "$as_me:$LINENO: result: yes" >&5
9423echo "${ECHO_T}yes" >&6
9424 else
9425 echo "$as_me:$LINENO: result: no" >&5
9426echo "${ECHO_T}no" >&6
9427 fi
9428
9429
9430 enablestring=
9431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9432echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9433 no_cache=0
9434 # Check whether --enable-metafile or --disable-metafile was given.
9435if test "${enable_metafile+set}" = set; then
9436 enableval="$enable_metafile"
9437
9438 if test "$enableval" = yes; then
9439 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9440 else
9441 ac_cv_use_metafile='wxUSE_METAFILE=no'
9442 fi
9443
9444else
9445
9446 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9447 if test "x$LINE" != x ; then
9448 eval "DEFAULT_$LINE"
9449 else
9450 no_cache=1
9451 fi
9452
9453 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9454
9455fi;
9456
9457 eval "$ac_cv_use_metafile"
9458 if test "$no_cache" != 1; then
9459 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9460 fi
9461
9462 if test "$wxUSE_METAFILE" = yes; then
9463 echo "$as_me:$LINENO: result: yes" >&5
9464echo "${ECHO_T}yes" >&6
9465 else
9466 echo "$as_me:$LINENO: result: no" >&5
9467echo "${ECHO_T}no" >&6
9468 fi
9469
9470
9471 enablestring=
9472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9473echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9474 no_cache=0
9475 # Check whether --enable-dragimage or --disable-dragimage was given.
9476if test "${enable_dragimage+set}" = set; then
9477 enableval="$enable_dragimage"
9478
9479 if test "$enableval" = yes; then
9480 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9481 else
9482 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9483 fi
9484
9485else
9486
9487 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9488 if test "x$LINE" != x ; then
9489 eval "DEFAULT_$LINE"
9490 else
9491 no_cache=1
9492 fi
9493
9494 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9495
9496fi;
9497
9498 eval "$ac_cv_use_dragimage"
9499 if test "$no_cache" != 1; then
9500 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9501 fi
9502
9503 if test "$wxUSE_DRAGIMAGE" = yes; then
9504 echo "$as_me:$LINENO: result: yes" >&5
9505echo "${ECHO_T}yes" >&6
9506 else
9507 echo "$as_me:$LINENO: result: no" >&5
9508echo "${ECHO_T}no" >&6
9509 fi
9510
9511
9512 enablestring=
9513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9514echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9515 no_cache=0
9516 # Check whether --enable-accessibility or --disable-accessibility was given.
9517if test "${enable_accessibility+set}" = set; then
9518 enableval="$enable_accessibility"
9519
9520 if test "$enableval" = yes; then
9521 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9522 else
9523 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9524 fi
9525
9526else
9527
9528 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9529 if test "x$LINE" != x ; then
9530 eval "DEFAULT_$LINE"
9531 else
9532 no_cache=1
9533 fi
9534
9535 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9536
9537fi;
9538
9539 eval "$ac_cv_use_accessibility"
9540 if test "$no_cache" != 1; then
9541 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9542 fi
9543
9544 if test "$wxUSE_ACCESSIBILITY" = yes; then
9545 echo "$as_me:$LINENO: result: yes" >&5
9546echo "${ECHO_T}yes" >&6
9547 else
9548 echo "$as_me:$LINENO: result: no" >&5
9549echo "${ECHO_T}no" >&6
9550 fi
9551
9552
9553
9554
9555 enablestring=
9556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9557echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9558 no_cache=0
9559 # Check whether --enable-palette or --disable-palette was given.
9560if test "${enable_palette+set}" = set; then
9561 enableval="$enable_palette"
9562
9563 if test "$enableval" = yes; then
9564 ac_cv_use_palette='wxUSE_PALETTE=yes'
9565 else
9566 ac_cv_use_palette='wxUSE_PALETTE=no'
9567 fi
9568
9569else
9570
9571 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9572 if test "x$LINE" != x ; then
9573 eval "DEFAULT_$LINE"
9574 else
9575 no_cache=1
9576 fi
9577
9578 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9579
9580fi;
9581
9582 eval "$ac_cv_use_palette"
9583 if test "$no_cache" != 1; then
9584 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9585 fi
9586
9587 if test "$wxUSE_PALETTE" = yes; then
9588 echo "$as_me:$LINENO: result: yes" >&5
9589echo "${ECHO_T}yes" >&6
9590 else
9591 echo "$as_me:$LINENO: result: no" >&5
9592echo "${ECHO_T}no" >&6
9593 fi
9594
9595
9596 enablestring=
9597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9598echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9599 no_cache=0
9600 # Check whether --enable-image or --disable-image was given.
9601if test "${enable_image+set}" = set; then
9602 enableval="$enable_image"
9603
9604 if test "$enableval" = yes; then
9605 ac_cv_use_image='wxUSE_IMAGE=yes'
9606 else
9607 ac_cv_use_image='wxUSE_IMAGE=no'
9608 fi
9609
9610else
9611
9612 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9613 if test "x$LINE" != x ; then
9614 eval "DEFAULT_$LINE"
9615 else
9616 no_cache=1
9617 fi
9618
9619 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9620
9621fi;
9622
9623 eval "$ac_cv_use_image"
9624 if test "$no_cache" != 1; then
9625 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9626 fi
9627
9628 if test "$wxUSE_IMAGE" = yes; then
9629 echo "$as_me:$LINENO: result: yes" >&5
9630echo "${ECHO_T}yes" >&6
9631 else
9632 echo "$as_me:$LINENO: result: no" >&5
9633echo "${ECHO_T}no" >&6
9634 fi
9635
9636
9637 enablestring=
9638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9639echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9640 no_cache=0
9641 # Check whether --enable-gif or --disable-gif was given.
9642if test "${enable_gif+set}" = set; then
9643 enableval="$enable_gif"
9644
9645 if test "$enableval" = yes; then
9646 ac_cv_use_gif='wxUSE_GIF=yes'
9647 else
9648 ac_cv_use_gif='wxUSE_GIF=no'
9649 fi
9650
9651else
9652
9653 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9654 if test "x$LINE" != x ; then
9655 eval "DEFAULT_$LINE"
9656 else
9657 no_cache=1
9658 fi
9659
9660 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9661
9662fi;
9663
9664 eval "$ac_cv_use_gif"
9665 if test "$no_cache" != 1; then
9666 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9667 fi
9668
9669 if test "$wxUSE_GIF" = yes; then
9670 echo "$as_me:$LINENO: result: yes" >&5
9671echo "${ECHO_T}yes" >&6
9672 else
9673 echo "$as_me:$LINENO: result: no" >&5
9674echo "${ECHO_T}no" >&6
9675 fi
9676
9677
9678 enablestring=
9679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9680echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9681 no_cache=0
9682 # Check whether --enable-pcx or --disable-pcx was given.
9683if test "${enable_pcx+set}" = set; then
9684 enableval="$enable_pcx"
9685
9686 if test "$enableval" = yes; then
9687 ac_cv_use_pcx='wxUSE_PCX=yes'
9688 else
9689 ac_cv_use_pcx='wxUSE_PCX=no'
9690 fi
9691
9692else
9693
9694 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9695 if test "x$LINE" != x ; then
9696 eval "DEFAULT_$LINE"
9697 else
9698 no_cache=1
9699 fi
9700
9701 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9702
9703fi;
9704
9705 eval "$ac_cv_use_pcx"
9706 if test "$no_cache" != 1; then
9707 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9708 fi
9709
9710 if test "$wxUSE_PCX" = yes; then
9711 echo "$as_me:$LINENO: result: yes" >&5
9712echo "${ECHO_T}yes" >&6
9713 else
9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
9716 fi
9717
9718
9719 enablestring=
9720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9721echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9722 no_cache=0
9723 # Check whether --enable-iff or --disable-iff was given.
9724if test "${enable_iff+set}" = set; then
9725 enableval="$enable_iff"
9726
9727 if test "$enableval" = yes; then
9728 ac_cv_use_iff='wxUSE_IFF=yes'
9729 else
9730 ac_cv_use_iff='wxUSE_IFF=no'
9731 fi
9732
9733else
9734
9735 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9736 if test "x$LINE" != x ; then
9737 eval "DEFAULT_$LINE"
9738 else
9739 no_cache=1
9740 fi
9741
9742 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9743
9744fi;
9745
9746 eval "$ac_cv_use_iff"
9747 if test "$no_cache" != 1; then
9748 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9749 fi
9750
9751 if test "$wxUSE_IFF" = yes; then
9752 echo "$as_me:$LINENO: result: yes" >&5
9753echo "${ECHO_T}yes" >&6
9754 else
9755 echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
9757 fi
9758
9759
9760 enablestring=
9761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9762echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9763 no_cache=0
9764 # Check whether --enable-pnm or --disable-pnm was given.
9765if test "${enable_pnm+set}" = set; then
9766 enableval="$enable_pnm"
9767
9768 if test "$enableval" = yes; then
9769 ac_cv_use_pnm='wxUSE_PNM=yes'
9770 else
9771 ac_cv_use_pnm='wxUSE_PNM=no'
9772 fi
9773
9774else
9775
9776 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9777 if test "x$LINE" != x ; then
9778 eval "DEFAULT_$LINE"
9779 else
9780 no_cache=1
9781 fi
9782
9783 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9784
9785fi;
9786
9787 eval "$ac_cv_use_pnm"
9788 if test "$no_cache" != 1; then
9789 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9790 fi
9791
9792 if test "$wxUSE_PNM" = yes; then
9793 echo "$as_me:$LINENO: result: yes" >&5
9794echo "${ECHO_T}yes" >&6
9795 else
9796 echo "$as_me:$LINENO: result: no" >&5
9797echo "${ECHO_T}no" >&6
9798 fi
9799
9800
9801 enablestring=
9802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9803echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9804 no_cache=0
9805 # Check whether --enable-xpm or --disable-xpm was given.
9806if test "${enable_xpm+set}" = set; then
9807 enableval="$enable_xpm"
9808
9809 if test "$enableval" = yes; then
9810 ac_cv_use_xpm='wxUSE_XPM=yes'
9811 else
9812 ac_cv_use_xpm='wxUSE_XPM=no'
9813 fi
9814
9815else
9816
9817 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9818 if test "x$LINE" != x ; then
9819 eval "DEFAULT_$LINE"
9820 else
9821 no_cache=1
9822 fi
9823
9824 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9825
9826fi;
9827
9828 eval "$ac_cv_use_xpm"
9829 if test "$no_cache" != 1; then
9830 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9831 fi
9832
9833 if test "$wxUSE_XPM" = yes; then
9834 echo "$as_me:$LINENO: result: yes" >&5
9835echo "${ECHO_T}yes" >&6
9836 else
9837 echo "$as_me:$LINENO: result: no" >&5
9838echo "${ECHO_T}no" >&6
9839 fi
9840
9841
9842 enablestring=
9843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9844echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9845 no_cache=0
9846 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9847if test "${enable_ico_cur+set}" = set; then
9848 enableval="$enable_ico_cur"
9849
9850 if test "$enableval" = yes; then
9851 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9852 else
9853 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9854 fi
9855
9856else
9857
9858 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9859 if test "x$LINE" != x ; then
9860 eval "DEFAULT_$LINE"
9861 else
9862 no_cache=1
9863 fi
9864
9865 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9866
9867fi;
9868
9869 eval "$ac_cv_use_ico_cur"
9870 if test "$no_cache" != 1; then
9871 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9872 fi
9873
9874 if test "$wxUSE_ICO_CUR" = yes; then
9875 echo "$as_me:$LINENO: result: yes" >&5
9876echo "${ECHO_T}yes" >&6
9877 else
9878 echo "$as_me:$LINENO: result: no" >&5
9879echo "${ECHO_T}no" >&6
9880 fi
9881
9882
9883fi
9884
9885
9886
9887 enablestring=
9888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9889echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9890 no_cache=0
9891 # Check whether --enable-official_build or --disable-official_build was given.
9892if test "${enable_official_build+set}" = set; then
9893 enableval="$enable_official_build"
9894
9895 if test "$enableval" = yes; then
9896 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9897 else
9898 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9899 fi
9900
9901else
9902
9903 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9904 if test "x$LINE" != x ; then
9905 eval "DEFAULT_$LINE"
9906 else
9907 no_cache=1
9908 fi
9909
9910 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9911
9912fi;
9913
9914 eval "$ac_cv_use_official_build"
9915 if test "$no_cache" != 1; then
9916 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9917 fi
9918
9919 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9920 echo "$as_me:$LINENO: result: yes" >&5
9921echo "${ECHO_T}yes" >&6
9922 else
9923 echo "$as_me:$LINENO: result: no" >&5
9924echo "${ECHO_T}no" >&6
9925 fi
9926
9927# Check whether --enable-vendor or --disable-vendor was given.
9928if test "${enable_vendor+set}" = set; then
9929 enableval="$enable_vendor"
9930 VENDOR="$enableval"
9931fi;
9932if test "x$VENDOR" = "x"; then
9933 VENDOR="custom"
9934fi
9935
9936case "${host}" in
9937 *-pc-os2_emx | *-pc-os2-emx )
9938 PATH_IFS=';'
a848cd7e
SC
9939 ;;
9940 *)
9941 PATH_IFS=':'
9942 ;;
9943esac
9944
9945
9946
9947 echo "saving argument cache $wx_arg_cache_file"
9948 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9949
9950
9951
9952echo "$as_me:$LINENO: checking for toolkit" >&5
9953echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9954
9955# In Wine, we need to default to MSW, not GTK or MOTIF
9956if test "$wxUSE_WINE" = "yes"; then
9957 DEFAULT_DEFAULT_wxUSE_GTK=0
9958 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9959 DEFAULT_DEFAULT_wxUSE_MSW=1
9960 wxUSE_SHARED=no
9961fi
9962
9963if test "$wxUSE_GUI" = "yes"; then
9964
9965 if test "$USE_BEOS" = 1; then
9966 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9967echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9968 { (exit 1); exit 1; }; }
9969 fi
9970
9971 if test "$TOOLKIT_GIVEN" = 1; then
9972 for toolkit in `echo $ALL_TOOLKITS`; do
9973 var=wxUSE_$toolkit
9974 eval "value=\$${var}"
9975 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9976 done
9977 else
9978 for toolkit in `echo $ALL_TOOLKITS`; do
9979 if test "$has_toolkit_in_cache" != 1; then
9980 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9981 else
9982 var=DEFAULT_wxUSE_$toolkit
9983 fi
9984 eval "wxUSE_$toolkit=\$${var}"
9985 done
9986 fi
9987
9988 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9989 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9990 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9991
9992 case "${host}" in
9993 *-pc-os2_emx | *-pc-os2-emx )
9994 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9995 esac
9996
9997 case "$NUM_TOOLKITS" in
9998 1)
9999 ;;
10000 0)
10001 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10002echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10003 { (exit 1); exit 1; }; }
10004 ;;
10005 *)
10006 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10007echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10008 { (exit 1); exit 1; }; }
10009 esac
10010
10011 for toolkit in `echo $ALL_TOOLKITS`; do
10012 var=wxUSE_$toolkit
10013 eval "value=\$${var}"
10014 if test "x$value" != x; then
10015 cache_var=CACHE_$toolkit
10016 eval "cache=\$${cache_var}"
10017 if test "$cache" = 1; then
10018 echo "$var=$value" >> ${wx_arg_cache_file}
10019 fi
10020 if test "$value" = 1; then
10021 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10022 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10023echo "${ECHO_T}$toolkit_echo" >&6
10024 fi
10025 fi
10026 done
10027else
10028 if test "x$host_alias" != "x"; then
10029 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10030echo "${ECHO_T}base ($host_alias hosted) only" >&6
10031 else
10032 echo "$as_me:$LINENO: result: base only" >&5
10033echo "${ECHO_T}base only" >&6
10034 fi
10035fi
10036
10037wants_win32=0
10038doesnt_want_win32=0
10039case "${host}" in
10040 *-*-cygwin*)
10041 if test "$wxUSE_MSW" = 1 ; then
10042 wants_win32=1
10043 else
10044 doesnt_want_win32=1
10045 fi
10046 ;;
10047 *-*-mingw*)
10048 wants_win32=1
10049 ;;
10050esac
10051
10052if test "$wxUSE_WINE" = "yes"; then
10053 wants_win32=1
10054 CC=winegcc
10055 CXX=wineg++
10056 RESCOMP=wrc
10057 LDFLAGS_GUI="-mwindows"
10058fi
10059
10060if test "$wants_win32" = 1 ; then
10061 USE_UNIX=0
10062 USE_WIN32=1
10063 cat >>confdefs.h <<\_ACEOF
10064#define __WIN32__ 1
10065_ACEOF
10066
10067 cat >>confdefs.h <<\_ACEOF
10068#define __WIN95__ 1
10069_ACEOF
10070
10071 cat >>confdefs.h <<\_ACEOF
10072#define __WINDOWS__ 1
10073_ACEOF
10074
10075 cat >>confdefs.h <<\_ACEOF
10076#define __GNUWIN32__ 1
10077_ACEOF
10078
10079 cat >>confdefs.h <<\_ACEOF
10080#define STRICT 1
10081_ACEOF
10082
10083 cat >>confdefs.h <<\_ACEOF
10084#define WINVER 0x0400
10085_ACEOF
10086
10087fi
10088if test "$doesnt_want_win32" = 1 ; then
10089 USE_UNIX=1
10090 USE_WIN32=0
10091fi
10092
10093if test "$USE_UNIX" = 1 ; then
10094 wxUSE_UNIX=yes
10095 cat >>confdefs.h <<\_ACEOF
10096#define __UNIX__ 1
10097_ACEOF
10098
10099fi
10100
10101
10102cat >confcache <<\_ACEOF
10103# This file is a shell script that caches the results of configure
10104# tests run on this system so they can be shared between configure
10105# scripts and configure runs, see configure's option --config-cache.
10106# It is not useful on other systems. If it contains results you don't
10107# want to keep, you may remove or edit it.
10108#
10109# config.status only pays attention to the cache file if you give it
10110# the --recheck option to rerun configure.
10111#
10112# `ac_cv_env_foo' variables (set or unset) will be overridden when
10113# loading this file, other *unset* `ac_cv_foo' will be assigned the
10114# following values.
10115
10116_ACEOF
10117
10118# The following way of writing the cache mishandles newlines in values,
10119# but we know of no workaround that is simple, portable, and efficient.
10120# So, don't put newlines in cache variables' values.
10121# Ultrix sh set writes to stderr and can't be redirected directly,
10122# and sets the high bit in the cache file unless we assign to the vars.
10123{
10124 (set) 2>&1 |
10125 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10126 *ac_space=\ *)
10127 # `set' does not quote correctly, so add quotes (double-quote
10128 # substitution turns \\\\ into \\, and sed turns \\ into \).
10129 sed -n \
ac1cb8d3
VS
10130 "s/'/'\\\\''/g;
10131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10132 ;;
10133 *)
10134 # `set' quotes correctly as required by POSIX, so do not add quotes.
10135 sed -n \
ac1cb8d3 10136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10137 ;;
10138 esac;
10139} |
10140 sed '
10141 t clear
10142 : clear
10143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10144 t end
10145 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10146 : end' >>confcache
10147if diff $cache_file confcache >/dev/null 2>&1; then :; else
10148 if test -w $cache_file; then
10149 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10150 cat confcache >$cache_file
10151 else
10152 echo "not updating unwritable cache $cache_file"
10153 fi
10154fi
10155rm -f confcache
10156
10157if test "$build" != "$host" ; then
10158 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10159 CC=$host_alias-gcc
10160 CXX=$host_alias-c++
10161 AR=$host_alias-ar
10162 RANLIB=$host_alias-ranlib
10163 DLLTOOL=$host_alias-dlltool
10164 RESCOMP=$host_alias-windres
10165 LD=$host_alias-ld
10166 NM=$host_alias-nm
10167 STRIP=$host_alias-strip
10168 else
10169 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10170echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10171 { (exit 1); exit 1; }; }
10172 fi
10173fi
10174
10175CFLAGS=${CFLAGS:=}
10176ac_ext=c
10177ac_cpp='$CPP $CPPFLAGS'
10178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10180ac_compiler_gnu=$ac_cv_c_compiler_gnu
10181if test -n "$ac_tool_prefix"; then
10182 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10183set dummy ${ac_tool_prefix}gcc; ac_word=$2
10184echo "$as_me:$LINENO: checking for $ac_word" >&5
10185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10186if test "${ac_cv_prog_CC+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10188else
10189 if test -n "$CC"; then
10190 ac_cv_prog_CC="$CC" # Let the user override the test.
10191else
10192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193for as_dir in $PATH
10194do
10195 IFS=$as_save_IFS
10196 test -z "$as_dir" && as_dir=.
10197 for ac_exec_ext in '' $ac_executable_extensions; do
10198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10199 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10201 break 2
10202 fi
10203done
10204done
10205
10206fi
10207fi
10208CC=$ac_cv_prog_CC
10209if test -n "$CC"; then
10210 echo "$as_me:$LINENO: result: $CC" >&5
10211echo "${ECHO_T}$CC" >&6
10212else
10213 echo "$as_me:$LINENO: result: no" >&5
10214echo "${ECHO_T}no" >&6
10215fi
10216
10217fi
10218if test -z "$ac_cv_prog_CC"; then
10219 ac_ct_CC=$CC
10220 # Extract the first word of "gcc", so it can be a program name with args.
10221set dummy gcc; ac_word=$2
10222echo "$as_me:$LINENO: checking for $ac_word" >&5
10223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10224if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10226else
10227 if test -n "$ac_ct_CC"; then
10228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10229else
10230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231for as_dir in $PATH
10232do
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237 ac_cv_prog_ac_ct_CC="gcc"
10238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10240 fi
10241done
10242done
10243
10244fi
10245fi
10246ac_ct_CC=$ac_cv_prog_ac_ct_CC
10247if test -n "$ac_ct_CC"; then
10248 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10249echo "${ECHO_T}$ac_ct_CC" >&6
10250else
10251 echo "$as_me:$LINENO: result: no" >&5
10252echo "${ECHO_T}no" >&6
10253fi
10254
10255 CC=$ac_ct_CC
10256else
10257 CC="$ac_cv_prog_CC"
10258fi
10259
10260if test -z "$CC"; then
10261 if test -n "$ac_tool_prefix"; then
10262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10263set dummy ${ac_tool_prefix}cc; ac_word=$2
10264echo "$as_me:$LINENO: checking for $ac_word" >&5
10265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10266if test "${ac_cv_prog_CC+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10268else
10269 if test -n "$CC"; then
10270 ac_cv_prog_CC="$CC" # Let the user override the test.
10271else
10272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273for as_dir in $PATH
10274do
10275 IFS=$as_save_IFS
10276 test -z "$as_dir" && as_dir=.
10277 for ac_exec_ext in '' $ac_executable_extensions; do
10278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10279 ac_cv_prog_CC="${ac_tool_prefix}cc"
10280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10281 break 2
10282 fi
10283done
10284done
10285
10286fi
10287fi
10288CC=$ac_cv_prog_CC
10289if test -n "$CC"; then
10290 echo "$as_me:$LINENO: result: $CC" >&5
10291echo "${ECHO_T}$CC" >&6
10292else
10293 echo "$as_me:$LINENO: result: no" >&5
10294echo "${ECHO_T}no" >&6
10295fi
10296
10297fi
10298if test -z "$ac_cv_prog_CC"; then
10299 ac_ct_CC=$CC
10300 # Extract the first word of "cc", so it can be a program name with args.
10301set dummy cc; ac_word=$2
10302echo "$as_me:$LINENO: checking for $ac_word" >&5
10303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10304if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306else
10307 if test -n "$ac_ct_CC"; then
10308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10309else
10310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311for as_dir in $PATH
10312do
10313 IFS=$as_save_IFS
10314 test -z "$as_dir" && as_dir=.
10315 for ac_exec_ext in '' $ac_executable_extensions; do
10316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10317 ac_cv_prog_ac_ct_CC="cc"
10318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10319 break 2
10320 fi
10321done
10322done
10323
10324fi
10325fi
10326ac_ct_CC=$ac_cv_prog_ac_ct_CC
10327if test -n "$ac_ct_CC"; then
10328 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10329echo "${ECHO_T}$ac_ct_CC" >&6
10330else
10331 echo "$as_me:$LINENO: result: no" >&5
10332echo "${ECHO_T}no" >&6
10333fi
10334
10335 CC=$ac_ct_CC
10336else
10337 CC="$ac_cv_prog_CC"
10338fi
10339
10340fi
10341if test -z "$CC"; then
10342 # Extract the first word of "cc", so it can be a program name with args.
10343set dummy cc; ac_word=$2
10344echo "$as_me:$LINENO: checking for $ac_word" >&5
10345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10346if test "${ac_cv_prog_CC+set}" = set; then
10347 echo $ECHO_N "(cached) $ECHO_C" >&6
10348else
10349 if test -n "$CC"; then
10350 ac_cv_prog_CC="$CC" # Let the user override the test.
10351else
10352 ac_prog_rejected=no
10353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10354for as_dir in $PATH
10355do
10356 IFS=$as_save_IFS
10357 test -z "$as_dir" && as_dir=.
10358 for ac_exec_ext in '' $ac_executable_extensions; do
10359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10360 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10361 ac_prog_rejected=yes
10362 continue
10363 fi
10364 ac_cv_prog_CC="cc"
10365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 break 2
10367 fi
10368done
10369done
10370
10371if test $ac_prog_rejected = yes; then
10372 # We found a bogon in the path, so make sure we never use it.
10373 set dummy $ac_cv_prog_CC
10374 shift
10375 if test $# != 0; then
10376 # We chose a different compiler from the bogus one.
10377 # However, it has the same basename, so the bogon will be chosen
10378 # first if we set CC to just the basename; use the full file name.
10379 shift
10380 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10381 fi
10382fi
10383fi
10384fi
10385CC=$ac_cv_prog_CC
10386if test -n "$CC"; then
10387 echo "$as_me:$LINENO: result: $CC" >&5
10388echo "${ECHO_T}$CC" >&6
10389else
10390 echo "$as_me:$LINENO: result: no" >&5
10391echo "${ECHO_T}no" >&6
10392fi
10393
10394fi
10395if test -z "$CC"; then
10396 if test -n "$ac_tool_prefix"; then
10397 for ac_prog in cl
10398 do
10399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10400set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10401echo "$as_me:$LINENO: checking for $ac_word" >&5
10402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10403if test "${ac_cv_prog_CC+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
10406 if test -n "$CC"; then
10407 ac_cv_prog_CC="$CC" # Let the user override the test.
10408else
10409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410for as_dir in $PATH
10411do
10412 IFS=$as_save_IFS
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
10415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 break 2
10419 fi
10420done
10421done
10422
10423fi
10424fi
10425CC=$ac_cv_prog_CC
10426if test -n "$CC"; then
10427 echo "$as_me:$LINENO: result: $CC" >&5
10428echo "${ECHO_T}$CC" >&6
10429else
10430 echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
10432fi
10433
10434 test -n "$CC" && break
10435 done
10436fi
10437if test -z "$CC"; then
10438 ac_ct_CC=$CC
10439 for ac_prog in cl
10440do
10441 # Extract the first word of "$ac_prog", so it can be a program name with args.
10442set dummy $ac_prog; ac_word=$2
10443echo "$as_me:$LINENO: checking for $ac_word" >&5
10444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10445if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447else
10448 if test -n "$ac_ct_CC"; then
10449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10450else
10451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452for as_dir in $PATH
10453do
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10458 ac_cv_prog_ac_ct_CC="$ac_prog"
10459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10460 break 2
10461 fi
10462done
10463done
10464
10465fi
10466fi
10467ac_ct_CC=$ac_cv_prog_ac_ct_CC
10468if test -n "$ac_ct_CC"; then
10469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10470echo "${ECHO_T}$ac_ct_CC" >&6
10471else
10472 echo "$as_me:$LINENO: result: no" >&5
10473echo "${ECHO_T}no" >&6
10474fi
10475
10476 test -n "$ac_ct_CC" && break
10477done
10478
10479 CC=$ac_ct_CC
10480fi
10481
10482fi
10483
10484
10485test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10486See \`config.log' for more details." >&5
10487echo "$as_me: error: no acceptable C compiler found in \$PATH
10488See \`config.log' for more details." >&2;}
10489 { (exit 1); exit 1; }; }
10490
10491# Provide some information about the compiler.
10492echo "$as_me:$LINENO:" \
10493 "checking for C compiler version" >&5
10494ac_compiler=`set X $ac_compile; echo $2`
10495{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10496 (eval $ac_compiler --version </dev/null >&5) 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }
10500{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10501 (eval $ac_compiler -v </dev/null >&5) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }
10505{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10506 (eval $ac_compiler -V </dev/null >&5) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }
10510
10511cat >conftest.$ac_ext <<_ACEOF
10512/* confdefs.h. */
10513_ACEOF
10514cat confdefs.h >>conftest.$ac_ext
10515cat >>conftest.$ac_ext <<_ACEOF
10516/* end confdefs.h. */
10517
10518int
10519main ()
10520{
10521
10522 ;
10523 return 0;
10524}
10525_ACEOF
10526ac_clean_files_save=$ac_clean_files
10527ac_clean_files="$ac_clean_files a.out a.exe b.out"
10528# Try to create an executable without -o first, disregard a.out.
10529# It will help us diagnose broken compilers, and finding out an intuition
10530# of exeext.
ac1cb8d3
VS
10531echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10532echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10533ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10534if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10535 (eval $ac_link_default) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; then
10539 # Find the output, starting from the most likely. This scheme is
10540# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10541# resort.
10542
10543# Be careful to initialize this variable, since it used to be cached.
10544# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10545ac_cv_exeext=
10546# b.out is created by i960 compilers.
10547for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10548do
10549 test -f "$ac_file" || continue
10550 case $ac_file in
10551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10552 ;;
a848cd7e 10553 conftest.$ac_ext )
ac1cb8d3
VS
10554 # This is the source file.
10555 ;;
a848cd7e 10556 [ab].out )
ac1cb8d3
VS
10557 # We found the default executable, but exeext='' is most
10558 # certainly right.
10559 break;;
a848cd7e 10560 *.* )
ac1cb8d3
VS
10561 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10562 # FIXME: I believe we export ac_cv_exeext for Libtool,
10563 # but it would be cool to find out if it's true. Does anybody
10564 # maintain Libtool? --akim.
10565 export ac_cv_exeext
10566 break;;
a848cd7e 10567 * )
ac1cb8d3 10568 break;;
a848cd7e
SC
10569 esac
10570done
10571else
10572 echo "$as_me: failed program was:" >&5
10573sed 's/^/| /' conftest.$ac_ext >&5
10574
10575{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10576See \`config.log' for more details." >&5
10577echo "$as_me: error: C compiler cannot create executables
10578See \`config.log' for more details." >&2;}
10579 { (exit 77); exit 77; }; }
10580fi
10581
10582ac_exeext=$ac_cv_exeext
10583echo "$as_me:$LINENO: result: $ac_file" >&5
10584echo "${ECHO_T}$ac_file" >&6
10585
10586# Check the compiler produces executables we can run. If not, either
10587# the compiler is broken, or we cross compile.
10588echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10589echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10590# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10591# If not cross compiling, check that we can run a simple program.
10592if test "$cross_compiling" != yes; then
10593 if { ac_try='./$ac_file'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10599 cross_compiling=no
10600 else
10601 if test "$cross_compiling" = maybe; then
10602 cross_compiling=yes
10603 else
10604 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10605If you meant to cross compile, use \`--host'.
10606See \`config.log' for more details." >&5
10607echo "$as_me: error: cannot run C compiled programs.
10608If you meant to cross compile, use \`--host'.
10609See \`config.log' for more details." >&2;}
10610 { (exit 1); exit 1; }; }
10611 fi
10612 fi
10613fi
10614echo "$as_me:$LINENO: result: yes" >&5
10615echo "${ECHO_T}yes" >&6
10616
10617rm -f a.out a.exe conftest$ac_cv_exeext b.out
10618ac_clean_files=$ac_clean_files_save
10619# Check the compiler produces executables we can run. If not, either
10620# the compiler is broken, or we cross compile.
10621echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10622echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10623echo "$as_me:$LINENO: result: $cross_compiling" >&5
10624echo "${ECHO_T}$cross_compiling" >&6
10625
10626echo "$as_me:$LINENO: checking for suffix of executables" >&5
10627echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10629 (eval $ac_link) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; then
10633 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10634# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10635# work properly (i.e., refer to `conftest.exe'), while it won't with
10636# `rm'.
10637for ac_file in conftest.exe conftest conftest.*; do
10638 test -f "$ac_file" || continue
10639 case $ac_file in
10640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10641 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10642 export ac_cv_exeext
10643 break;;
a848cd7e
SC
10644 * ) break;;
10645 esac
10646done
10647else
10648 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10649See \`config.log' for more details." >&5
10650echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10651See \`config.log' for more details." >&2;}
10652 { (exit 1); exit 1; }; }
10653fi
10654
10655rm -f conftest$ac_cv_exeext
10656echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10657echo "${ECHO_T}$ac_cv_exeext" >&6
10658
10659rm -f conftest.$ac_ext
10660EXEEXT=$ac_cv_exeext
10661ac_exeext=$EXEEXT
10662echo "$as_me:$LINENO: checking for suffix of object files" >&5
10663echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10664if test "${ac_cv_objext+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666else
10667 cat >conftest.$ac_ext <<_ACEOF
10668/* confdefs.h. */
10669_ACEOF
10670cat confdefs.h >>conftest.$ac_ext
10671cat >>conftest.$ac_ext <<_ACEOF
10672/* end confdefs.h. */
10673
10674int
10675main ()
10676{
10677
10678 ;
10679 return 0;
10680}
10681_ACEOF
10682rm -f conftest.o conftest.obj
10683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10684 (eval $ac_compile) 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; then
10688 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10689 case $ac_file in
10690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10692 break;;
10693 esac
10694done
10695else
10696 echo "$as_me: failed program was:" >&5
10697sed 's/^/| /' conftest.$ac_ext >&5
10698
10699{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10700See \`config.log' for more details." >&5
10701echo "$as_me: error: cannot compute suffix of object files: cannot compile
10702See \`config.log' for more details." >&2;}
10703 { (exit 1); exit 1; }; }
10704fi
10705
10706rm -f conftest.$ac_cv_objext conftest.$ac_ext
10707fi
10708echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10709echo "${ECHO_T}$ac_cv_objext" >&6
10710OBJEXT=$ac_cv_objext
10711ac_objext=$OBJEXT
10712echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10713echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10714if test "${ac_cv_c_compiler_gnu+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10716else
10717 cat >conftest.$ac_ext <<_ACEOF
10718/* confdefs.h. */
10719_ACEOF
10720cat confdefs.h >>conftest.$ac_ext
10721cat >>conftest.$ac_ext <<_ACEOF
10722/* end confdefs.h. */
10723
10724int
10725main ()
10726{
10727#ifndef __GNUC__
10728 choke me
10729#endif
10730
10731 ;
10732 return 0;
10733}
10734_ACEOF
10735rm -f conftest.$ac_objext
10736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10737 (eval $ac_compile) 2>conftest.er1
a848cd7e 10738 ac_status=$?
ac1cb8d3
VS
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
a848cd7e
SC
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
ac1cb8d3
VS
10744 { ac_try='test -z "$ac_c_werror_flag"
10745 || test ! -s conftest.err'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; } &&
10751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; }; then
10757 ac_compiler_gnu=yes
10758else
10759 echo "$as_me: failed program was:" >&5
10760sed 's/^/| /' conftest.$ac_ext >&5
10761
10762ac_compiler_gnu=no
10763fi
ac1cb8d3 10764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10765ac_cv_c_compiler_gnu=$ac_compiler_gnu
10766
10767fi
10768echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10769echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10770GCC=`test $ac_compiler_gnu = yes && echo yes`
10771ac_test_CFLAGS=${CFLAGS+set}
10772ac_save_CFLAGS=$CFLAGS
10773CFLAGS="-g"
10774echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10775echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10776if test "${ac_cv_prog_cc_g+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778else
10779 cat >conftest.$ac_ext <<_ACEOF
10780/* confdefs.h. */
10781_ACEOF
10782cat confdefs.h >>conftest.$ac_ext
10783cat >>conftest.$ac_ext <<_ACEOF
10784/* end confdefs.h. */
10785
10786int
10787main ()
10788{
10789
10790 ;
10791 return 0;
10792}
10793_ACEOF
10794rm -f conftest.$ac_objext
10795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10796 (eval $ac_compile) 2>conftest.er1
a848cd7e 10797 ac_status=$?
ac1cb8d3
VS
10798 grep -v '^ *+' conftest.er1 >conftest.err
10799 rm -f conftest.er1
10800 cat conftest.err >&5
a848cd7e
SC
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } &&
ac1cb8d3
VS
10803 { ac_try='test -z "$ac_c_werror_flag"
10804 || test ! -s conftest.err'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; } &&
10810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 ac_cv_prog_cc_g=yes
10817else
10818 echo "$as_me: failed program was:" >&5
10819sed 's/^/| /' conftest.$ac_ext >&5
10820
10821ac_cv_prog_cc_g=no
10822fi
ac1cb8d3 10823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10824fi
10825echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10826echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10827if test "$ac_test_CFLAGS" = set; then
10828 CFLAGS=$ac_save_CFLAGS
10829elif test $ac_cv_prog_cc_g = yes; then
10830 if test "$GCC" = yes; then
10831 CFLAGS="-g -O2"
10832 else
10833 CFLAGS="-g"
10834 fi
10835else
10836 if test "$GCC" = yes; then
10837 CFLAGS="-O2"
10838 else
10839 CFLAGS=
10840 fi
10841fi
10842echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10843echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10844if test "${ac_cv_prog_cc_stdc+set}" = set; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
10846else
10847 ac_cv_prog_cc_stdc=no
10848ac_save_CC=$CC
10849cat >conftest.$ac_ext <<_ACEOF
10850/* confdefs.h. */
10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
10854/* end confdefs.h. */
10855#include <stdarg.h>
10856#include <stdio.h>
10857#include <sys/types.h>
10858#include <sys/stat.h>
10859/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10860struct buf { int x; };
10861FILE * (*rcsopen) (struct buf *, struct stat *, int);
10862static char *e (p, i)
10863 char **p;
10864 int i;
10865{
10866 return p[i];
10867}
10868static char *f (char * (*g) (char **, int), char **p, ...)
10869{
10870 char *s;
10871 va_list v;
10872 va_start (v,p);
10873 s = g (p, va_arg (v,int));
10874 va_end (v);
10875 return s;
10876}
ac1cb8d3
VS
10877
10878/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10879 function prototypes and stuff, but not '\xHH' hex character constants.
10880 These don't provoke an error unfortunately, instead are silently treated
10881 as 'x'. The following induces an error, until -std1 is added to get
10882 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10883 array size at least. It's necessary to write '\x00'==0 to get something
10884 that's true only with -std1. */
10885int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10886
a848cd7e
SC
10887int test (int i, double x);
10888struct s1 {int (*f) (int a);};
10889struct s2 {int (*f) (double a);};
10890int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10891int argc;
10892char **argv;
10893int
10894main ()
10895{
10896return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10897 ;
10898 return 0;
10899}
10900_ACEOF
10901# Don't try gcc -ansi; that turns off useful extensions and
10902# breaks some systems' header files.
10903# AIX -qlanglvl=ansi
10904# Ultrix and OSF/1 -std1
10905# HP-UX 10.20 and later -Ae
10906# HP-UX older versions -Aa -D_HPUX_SOURCE
10907# SVR4 -Xc -D__EXTENSIONS__
10908for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10909do
10910 CC="$ac_save_CC $ac_arg"
10911 rm -f conftest.$ac_objext
10912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10913 (eval $ac_compile) 2>conftest.er1
a848cd7e 10914 ac_status=$?
ac1cb8d3
VS
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
a848cd7e
SC
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
ac1cb8d3
VS
10920 { ac_try='test -z "$ac_c_werror_flag"
10921 || test ! -s conftest.err'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 ac_cv_prog_cc_stdc=$ac_arg
10934break
10935else
10936 echo "$as_me: failed program was:" >&5
10937sed 's/^/| /' conftest.$ac_ext >&5
10938
10939fi
ac1cb8d3 10940rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
10941done
10942rm -f conftest.$ac_ext conftest.$ac_objext
10943CC=$ac_save_CC
10944
10945fi
10946
10947case "x$ac_cv_prog_cc_stdc" in
10948 x|xno)
10949 echo "$as_me:$LINENO: result: none needed" >&5
10950echo "${ECHO_T}none needed" >&6 ;;
10951 *)
10952 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10953echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10954 CC="$CC $ac_cv_prog_cc_stdc" ;;
10955esac
10956
10957# Some people use a C++ compiler to compile C. Since we use `exit',
10958# in C++ we need to declare it. In case someone uses the same compiler
10959# for both compiling C and C++ we need to have the C++ compiler decide
10960# the declaration of exit, since it's the most demanding environment.
10961cat >conftest.$ac_ext <<_ACEOF
10962#ifndef __cplusplus
10963 choke me
10964#endif
10965_ACEOF
10966rm -f conftest.$ac_objext
10967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10968 (eval $ac_compile) 2>conftest.er1
a848cd7e 10969 ac_status=$?
ac1cb8d3
VS
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
a848cd7e
SC
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } &&
ac1cb8d3
VS
10975 { ac_try='test -z "$ac_c_werror_flag"
10976 || test ! -s conftest.err'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 for ac_declaration in \
ac1cb8d3 10989 '' \
a848cd7e
SC
10990 'extern "C" void std::exit (int) throw (); using std::exit;' \
10991 'extern "C" void std::exit (int); using std::exit;' \
10992 'extern "C" void exit (int) throw ();' \
10993 'extern "C" void exit (int);' \
10994 'void exit (int);'
10995do
10996 cat >conftest.$ac_ext <<_ACEOF
10997/* confdefs.h. */
10998_ACEOF
10999cat confdefs.h >>conftest.$ac_ext
11000cat >>conftest.$ac_ext <<_ACEOF
11001/* end confdefs.h. */
de59c161 11002$ac_declaration
ac1cb8d3 11003#include <stdlib.h>
a848cd7e
SC
11004int
11005main ()
11006{
11007exit (42);
11008 ;
11009 return 0;
11010}
11011_ACEOF
11012rm -f conftest.$ac_objext
11013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11014 (eval $ac_compile) 2>conftest.er1
a848cd7e 11015 ac_status=$?
ac1cb8d3
VS
11016 grep -v '^ *+' conftest.er1 >conftest.err
11017 rm -f conftest.er1
11018 cat conftest.err >&5
a848cd7e
SC
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
ac1cb8d3
VS
11021 { ac_try='test -z "$ac_c_werror_flag"
11022 || test ! -s conftest.err'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; } &&
11028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 :
11035else
11036 echo "$as_me: failed program was:" >&5
11037sed 's/^/| /' conftest.$ac_ext >&5
11038
11039continue
11040fi
ac1cb8d3 11041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11042 cat >conftest.$ac_ext <<_ACEOF
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
11048$ac_declaration
11049int
11050main ()
11051{
11052exit (42);
11053 ;
11054 return 0;
11055}
11056_ACEOF
11057rm -f conftest.$ac_objext
11058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11059 (eval $ac_compile) 2>conftest.er1
a848cd7e 11060 ac_status=$?
ac1cb8d3
VS
11061 grep -v '^ *+' conftest.er1 >conftest.err
11062 rm -f conftest.er1
11063 cat conftest.err >&5
a848cd7e
SC
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } &&
ac1cb8d3
VS
11066 { ac_try='test -z "$ac_c_werror_flag"
11067 || test ! -s conftest.err'
11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11070 ac_status=$?
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; } &&
11073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 break
11080else
11081 echo "$as_me: failed program was:" >&5
11082sed 's/^/| /' conftest.$ac_ext >&5
11083
11084fi
ac1cb8d3 11085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11086done
11087rm -f conftest*
11088if test -n "$ac_declaration"; then
11089 echo '#ifdef __cplusplus' >>confdefs.h
11090 echo $ac_declaration >>confdefs.h
11091 echo '#endif' >>confdefs.h
11092fi
11093
11094else
11095 echo "$as_me: failed program was:" >&5
11096sed 's/^/| /' conftest.$ac_ext >&5
11097
11098fi
ac1cb8d3 11099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11100ac_ext=c
11101ac_cpp='$CPP $CPPFLAGS'
11102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11104ac_compiler_gnu=$ac_cv_c_compiler_gnu
11105
11106
11107
11108ac_ext=c
11109ac_cpp='$CPP $CPPFLAGS'
11110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11112ac_compiler_gnu=$ac_cv_c_compiler_gnu
11113echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11114echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11115# On Suns, sometimes $CPP names a directory.
11116if test -n "$CPP" && test -d "$CPP"; then
11117 CPP=
11118fi
11119if test -z "$CPP"; then
11120 if test "${ac_cv_prog_CPP+set}" = set; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11122else
11123 # Double quotes because CPP needs to be expanded
11124 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11125 do
11126 ac_preproc_ok=false
11127for ac_c_preproc_warn_flag in '' yes
11128do
11129 # Use a header file that comes with gcc, so configuring glibc
11130 # with a fresh cross-compiler works.
11131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11132 # <limits.h> exists even on freestanding compilers.
11133 # On the NeXT, cc -E runs the code through the compiler's parser,
11134 # not just through cpp. "Syntax error" is here to catch this case.
11135 cat >conftest.$ac_ext <<_ACEOF
11136/* confdefs.h. */
11137_ACEOF
11138cat confdefs.h >>conftest.$ac_ext
11139cat >>conftest.$ac_ext <<_ACEOF
11140/* end confdefs.h. */
11141#ifdef __STDC__
11142# include <limits.h>
11143#else
11144# include <assert.h>
11145#endif
ac1cb8d3 11146 Syntax error
a848cd7e
SC
11147_ACEOF
11148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11150 ac_status=$?
11151 grep -v '^ *+' conftest.er1 >conftest.err
11152 rm -f conftest.er1
11153 cat conftest.err >&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } >/dev/null; then
11156 if test -s conftest.err; then
11157 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11159 else
11160 ac_cpp_err=
11161 fi
11162else
11163 ac_cpp_err=yes
11164fi
11165if test -z "$ac_cpp_err"; then
11166 :
11167else
11168 echo "$as_me: failed program was:" >&5
11169sed 's/^/| /' conftest.$ac_ext >&5
11170
11171 # Broken: fails on valid input.
11172continue
11173fi
11174rm -f conftest.err conftest.$ac_ext
11175
11176 # OK, works on sane cases. Now check whether non-existent headers
11177 # can be detected and how.
11178 cat >conftest.$ac_ext <<_ACEOF
11179/* confdefs.h. */
11180_ACEOF
11181cat confdefs.h >>conftest.$ac_ext
11182cat >>conftest.$ac_ext <<_ACEOF
11183/* end confdefs.h. */
11184#include <ac_nonexistent.h>
11185_ACEOF
11186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } >/dev/null; then
11194 if test -s conftest.err; then
11195 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11197 else
11198 ac_cpp_err=
11199 fi
11200else
11201 ac_cpp_err=yes
11202fi
11203if test -z "$ac_cpp_err"; then
11204 # Broken: success on invalid input.
11205continue
11206else
11207 echo "$as_me: failed program was:" >&5
11208sed 's/^/| /' conftest.$ac_ext >&5
11209
11210 # Passes both tests.
11211ac_preproc_ok=:
11212break
11213fi
11214rm -f conftest.err conftest.$ac_ext
11215
11216done
11217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11218rm -f conftest.err conftest.$ac_ext
11219if $ac_preproc_ok; then
11220 break
11221fi
11222
11223 done
11224 ac_cv_prog_CPP=$CPP
11225
11226fi
11227 CPP=$ac_cv_prog_CPP
11228else
11229 ac_cv_prog_CPP=$CPP
11230fi
11231echo "$as_me:$LINENO: result: $CPP" >&5
11232echo "${ECHO_T}$CPP" >&6
11233ac_preproc_ok=false
11234for ac_c_preproc_warn_flag in '' yes
11235do
11236 # Use a header file that comes with gcc, so configuring glibc
11237 # with a fresh cross-compiler works.
11238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11239 # <limits.h> exists even on freestanding compilers.
11240 # On the NeXT, cc -E runs the code through the compiler's parser,
11241 # not just through cpp. "Syntax error" is here to catch this case.
11242 cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248#ifdef __STDC__
11249# include <limits.h>
11250#else
11251# include <assert.h>
11252#endif
ac1cb8d3 11253 Syntax error
a848cd7e
SC
11254_ACEOF
11255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } >/dev/null; then
11263 if test -s conftest.err; then
11264 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11266 else
11267 ac_cpp_err=
11268 fi
11269else
11270 ac_cpp_err=yes
11271fi
11272if test -z "$ac_cpp_err"; then
11273 :
11274else
11275 echo "$as_me: failed program was:" >&5
11276sed 's/^/| /' conftest.$ac_ext >&5
11277
11278 # Broken: fails on valid input.
11279continue
11280fi
11281rm -f conftest.err conftest.$ac_ext
11282
11283 # OK, works on sane cases. Now check whether non-existent headers
11284 # can be detected and how.
11285 cat >conftest.$ac_ext <<_ACEOF
11286/* confdefs.h. */
11287_ACEOF
11288cat confdefs.h >>conftest.$ac_ext
11289cat >>conftest.$ac_ext <<_ACEOF
11290/* end confdefs.h. */
11291#include <ac_nonexistent.h>
11292_ACEOF
11293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11295 ac_status=$?
11296 grep -v '^ *+' conftest.er1 >conftest.err
11297 rm -f conftest.er1
11298 cat conftest.err >&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } >/dev/null; then
11301 if test -s conftest.err; then
11302 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11304 else
11305 ac_cpp_err=
11306 fi
11307else
11308 ac_cpp_err=yes
11309fi
11310if test -z "$ac_cpp_err"; then
11311 # Broken: success on invalid input.
11312continue
11313else
11314 echo "$as_me: failed program was:" >&5
11315sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 # Passes both tests.
11318ac_preproc_ok=:
11319break
11320fi
11321rm -f conftest.err conftest.$ac_ext
11322
11323done
11324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11325rm -f conftest.err conftest.$ac_ext
11326if $ac_preproc_ok; then
11327 :
11328else
11329 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11330See \`config.log' for more details." >&5
11331echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11332See \`config.log' for more details." >&2;}
11333 { (exit 1); exit 1; }; }
11334fi
11335
11336ac_ext=c
11337ac_cpp='$CPP $CPPFLAGS'
11338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11340ac_compiler_gnu=$ac_cv_c_compiler_gnu
11341
11342
11343echo "$as_me:$LINENO: checking for egrep" >&5
11344echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11345if test "${ac_cv_prog_egrep+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11347else
11348 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11349 then ac_cv_prog_egrep='grep -E'
11350 else ac_cv_prog_egrep='egrep'
11351 fi
11352fi
11353echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11354echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11355 EGREP=$ac_cv_prog_egrep
11356
11357
11358if test $ac_cv_c_compiler_gnu = yes; then
11359 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11360echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11361if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11363else
11364 ac_pattern="Autoconf.*'x'"
11365 cat >conftest.$ac_ext <<_ACEOF
11366/* confdefs.h. */
11367_ACEOF
11368cat confdefs.h >>conftest.$ac_ext
11369cat >>conftest.$ac_ext <<_ACEOF
11370/* end confdefs.h. */
11371#include <sgtty.h>
11372Autoconf TIOCGETP
11373_ACEOF
11374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11375 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11376 ac_cv_prog_gcc_traditional=yes
11377else
11378 ac_cv_prog_gcc_traditional=no
11379fi
11380rm -f conftest*
11381
11382
11383 if test $ac_cv_prog_gcc_traditional = no; then
11384 cat >conftest.$ac_ext <<_ACEOF
11385/* confdefs.h. */
11386_ACEOF
11387cat confdefs.h >>conftest.$ac_ext
11388cat >>conftest.$ac_ext <<_ACEOF
11389/* end confdefs.h. */
11390#include <termio.h>
11391Autoconf TCGETA
11392_ACEOF
11393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11394 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11395 ac_cv_prog_gcc_traditional=yes
11396fi
11397rm -f conftest*
11398
11399 fi
11400fi
11401echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11402echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11403 if test $ac_cv_prog_gcc_traditional = yes; then
11404 CC="$CC -traditional"
11405 fi
11406fi
11407
11408
11409
11410
11411ac_ext=cc
11412ac_cpp='$CXXCPP $CPPFLAGS'
11413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11416
11417
11418CXXFLAGS=${CXXFLAGS:=}
11419ac_ext=cc
11420ac_cpp='$CXXCPP $CPPFLAGS'
11421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11424if test -n "$ac_tool_prefix"; then
11425 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11426 do
11427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11428set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11429echo "$as_me:$LINENO: checking for $ac_word" >&5
11430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11431if test "${ac_cv_prog_CXX+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11433else
11434 if test -n "$CXX"; then
11435 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11436else
11437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $PATH
11439do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11444 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 break 2
11447 fi
11448done
11449done
11450
11451fi
11452fi
11453CXX=$ac_cv_prog_CXX
11454if test -n "$CXX"; then
11455 echo "$as_me:$LINENO: result: $CXX" >&5
11456echo "${ECHO_T}$CXX" >&6
11457else
11458 echo "$as_me:$LINENO: result: no" >&5
11459echo "${ECHO_T}no" >&6
11460fi
11461
11462 test -n "$CXX" && break
11463 done
11464fi
11465if test -z "$CXX"; then
11466 ac_ct_CXX=$CXX
11467 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11468do
11469 # Extract the first word of "$ac_prog", so it can be a program name with args.
11470set dummy $ac_prog; ac_word=$2
11471echo "$as_me:$LINENO: checking for $ac_word" >&5
11472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11473if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11475else
11476 if test -n "$ac_ct_CXX"; then
11477 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11478else
11479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480for as_dir in $PATH
11481do
11482 IFS=$as_save_IFS
11483 test -z "$as_dir" && as_dir=.
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11486 ac_cv_prog_ac_ct_CXX="$ac_prog"
11487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11488 break 2
11489 fi
11490done
11491done
11492
11493fi
11494fi
11495ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11496if test -n "$ac_ct_CXX"; then
11497 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11498echo "${ECHO_T}$ac_ct_CXX" >&6
11499else
11500 echo "$as_me:$LINENO: result: no" >&5
11501echo "${ECHO_T}no" >&6
11502fi
11503
11504 test -n "$ac_ct_CXX" && break
11505done
11506test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11507
11508 CXX=$ac_ct_CXX
11509fi
11510
11511
11512# Provide some information about the compiler.
11513echo "$as_me:$LINENO:" \
11514 "checking for C++ compiler version" >&5
11515ac_compiler=`set X $ac_compile; echo $2`
11516{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11517 (eval $ac_compiler --version </dev/null >&5) 2>&5
11518 ac_status=$?
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }
11521{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11522 (eval $ac_compiler -v </dev/null >&5) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }
11526{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11527 (eval $ac_compiler -V </dev/null >&5) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }
11531
11532echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11533echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11534if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11536else
11537 cat >conftest.$ac_ext <<_ACEOF
11538/* confdefs.h. */
11539_ACEOF
11540cat confdefs.h >>conftest.$ac_ext
11541cat >>conftest.$ac_ext <<_ACEOF
11542/* end confdefs.h. */
11543
11544int
11545main ()
11546{
11547#ifndef __GNUC__
11548 choke me
11549#endif
11550
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext
11556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11557 (eval $ac_compile) 2>conftest.er1
a848cd7e 11558 ac_status=$?
ac1cb8d3
VS
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
a848cd7e
SC
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
ac1cb8d3
VS
11564 { ac_try='test -z "$ac_cxx_werror_flag"
11565 || test ! -s conftest.err'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; } &&
11571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 ac_compiler_gnu=yes
11578else
11579 echo "$as_me: failed program was:" >&5
11580sed 's/^/| /' conftest.$ac_ext >&5
11581
11582ac_compiler_gnu=no
11583fi
ac1cb8d3 11584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11585ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11586
11587fi
11588echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11589echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11590GXX=`test $ac_compiler_gnu = yes && echo yes`
11591ac_test_CXXFLAGS=${CXXFLAGS+set}
11592ac_save_CXXFLAGS=$CXXFLAGS
11593CXXFLAGS="-g"
11594echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11595echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11596if test "${ac_cv_prog_cxx_g+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11598else
11599 cat >conftest.$ac_ext <<_ACEOF
11600/* confdefs.h. */
11601_ACEOF
11602cat confdefs.h >>conftest.$ac_ext
11603cat >>conftest.$ac_ext <<_ACEOF
11604/* end confdefs.h. */
11605
11606int
11607main ()
11608{
11609
11610 ;
11611 return 0;
11612}
11613_ACEOF
11614rm -f conftest.$ac_objext
11615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11616 (eval $ac_compile) 2>conftest.er1
a848cd7e 11617 ac_status=$?
ac1cb8d3
VS
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
a848cd7e
SC
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } &&
ac1cb8d3
VS
11623 { ac_try='test -z "$ac_cxx_werror_flag"
11624 || test ! -s conftest.err'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11627 ac_status=$?
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; } &&
11630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; }; then
11636 ac_cv_prog_cxx_g=yes
11637else
11638 echo "$as_me: failed program was:" >&5
11639sed 's/^/| /' conftest.$ac_ext >&5
11640
11641ac_cv_prog_cxx_g=no
11642fi
ac1cb8d3 11643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11644fi
11645echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11646echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11647if test "$ac_test_CXXFLAGS" = set; then
11648 CXXFLAGS=$ac_save_CXXFLAGS
11649elif test $ac_cv_prog_cxx_g = yes; then
11650 if test "$GXX" = yes; then
11651 CXXFLAGS="-g -O2"
11652 else
11653 CXXFLAGS="-g"
11654 fi
11655else
11656 if test "$GXX" = yes; then
11657 CXXFLAGS="-O2"
11658 else
11659 CXXFLAGS=
11660 fi
11661fi
11662for ac_declaration in \
ac1cb8d3 11663 '' \
a848cd7e
SC
11664 'extern "C" void std::exit (int) throw (); using std::exit;' \
11665 'extern "C" void std::exit (int); using std::exit;' \
11666 'extern "C" void exit (int) throw ();' \
11667 'extern "C" void exit (int);' \
11668 'void exit (int);'
11669do
11670 cat >conftest.$ac_ext <<_ACEOF
11671/* confdefs.h. */
11672_ACEOF
11673cat confdefs.h >>conftest.$ac_ext
11674cat >>conftest.$ac_ext <<_ACEOF
11675/* end confdefs.h. */
de59c161 11676$ac_declaration
ac1cb8d3 11677#include <stdlib.h>
a848cd7e
SC
11678int
11679main ()
11680{
11681exit (42);
11682 ;
11683 return 0;
11684}
11685_ACEOF
11686rm -f conftest.$ac_objext
11687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11688 (eval $ac_compile) 2>conftest.er1
a848cd7e 11689 ac_status=$?
ac1cb8d3
VS
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
a848cd7e
SC
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
ac1cb8d3
VS
11695 { ac_try='test -z "$ac_cxx_werror_flag"
11696 || test ! -s conftest.err'
11697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698 (eval $ac_try) 2>&5
11699 ac_status=$?
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; } &&
11702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704 (eval $ac_try) 2>&5
11705 ac_status=$?
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; }; then
11708 :
11709else
11710 echo "$as_me: failed program was:" >&5
11711sed 's/^/| /' conftest.$ac_ext >&5
11712
11713continue
11714fi
ac1cb8d3 11715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11716 cat >conftest.$ac_ext <<_ACEOF
11717/* confdefs.h. */
11718_ACEOF
11719cat confdefs.h >>conftest.$ac_ext
11720cat >>conftest.$ac_ext <<_ACEOF
11721/* end confdefs.h. */
11722$ac_declaration
11723int
11724main ()
11725{
11726exit (42);
11727 ;
11728 return 0;
11729}
11730_ACEOF
11731rm -f conftest.$ac_objext
11732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11733 (eval $ac_compile) 2>conftest.er1
a848cd7e 11734 ac_status=$?
ac1cb8d3
VS
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
a848cd7e
SC
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
ac1cb8d3
VS
11740 { ac_try='test -z "$ac_cxx_werror_flag"
11741 || test ! -s conftest.err'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 break
11754else
11755 echo "$as_me: failed program was:" >&5
11756sed 's/^/| /' conftest.$ac_ext >&5
11757
11758fi
ac1cb8d3 11759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11760done
11761rm -f conftest*
11762if test -n "$ac_declaration"; then
11763 echo '#ifdef __cplusplus' >>confdefs.h
11764 echo $ac_declaration >>confdefs.h
11765 echo '#endif' >>confdefs.h
11766fi
11767
11768ac_ext=cc
11769ac_cpp='$CXXCPP $CPPFLAGS'
11770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11773
11774
11775ac_ext=c
11776ac_cpp='$CPP $CPPFLAGS'
11777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11779ac_compiler_gnu=$ac_cv_c_compiler_gnu
11780
11781
11782echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11783echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11784GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11785if test "$GCC" = "yes" ; then
11786 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11787 sed -n '1,/End of search list\./p' | \
11788 grep '^ */usr/local/include$' 2>&1 /dev/null \
11789 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11790fi
11791echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11792echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11793
11794if test -n "$ac_tool_prefix"; then
11795 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11796set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11797echo "$as_me:$LINENO: checking for $ac_word" >&5
11798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11799if test "${ac_cv_prog_RANLIB+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11801else
11802 if test -n "$RANLIB"; then
11803 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11804else
11805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806for as_dir in $PATH
11807do
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11812 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11815 fi
11816done
11817done
11818
11819fi
11820fi
11821RANLIB=$ac_cv_prog_RANLIB
11822if test -n "$RANLIB"; then
11823 echo "$as_me:$LINENO: result: $RANLIB" >&5
11824echo "${ECHO_T}$RANLIB" >&6
11825else
11826 echo "$as_me:$LINENO: result: no" >&5
11827echo "${ECHO_T}no" >&6
11828fi
11829
11830fi
11831if test -z "$ac_cv_prog_RANLIB"; then
11832 ac_ct_RANLIB=$RANLIB
11833 # Extract the first word of "ranlib", so it can be a program name with args.
11834set dummy ranlib; ac_word=$2
11835echo "$as_me:$LINENO: checking for $ac_word" >&5
11836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11837if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839else
11840 if test -n "$ac_ct_RANLIB"; then
11841 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11842else
11843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844for as_dir in $PATH
11845do
11846 IFS=$as_save_IFS
11847 test -z "$as_dir" && as_dir=.
11848 for ac_exec_ext in '' $ac_executable_extensions; do
11849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11850 ac_cv_prog_ac_ct_RANLIB="ranlib"
11851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11852 break 2
11853 fi
11854done
11855done
11856
11857 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11858fi
11859fi
11860ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11861if test -n "$ac_ct_RANLIB"; then
11862 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11863echo "${ECHO_T}$ac_ct_RANLIB" >&6
11864else
11865 echo "$as_me:$LINENO: result: no" >&5
11866echo "${ECHO_T}no" >&6
11867fi
11868
11869 RANLIB=$ac_ct_RANLIB
11870else
11871 RANLIB="$ac_cv_prog_RANLIB"
11872fi
11873
11874
11875# Extract the first word of "ar", so it can be a program name with args.
11876set dummy ar; ac_word=$2
11877echo "$as_me:$LINENO: checking for $ac_word" >&5
11878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11879if test "${ac_cv_prog_AR+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881else
11882 if test -n "$AR"; then
11883 ac_cv_prog_AR="$AR" # Let the user override the test.
11884else
11885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886for as_dir in $PATH
11887do
11888 IFS=$as_save_IFS
11889 test -z "$as_dir" && as_dir=.
11890 for ac_exec_ext in '' $ac_executable_extensions; do
11891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11892 ac_cv_prog_AR="ar"
11893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11894 break 2
11895 fi
11896done
11897done
11898
11899fi
11900fi
11901AR=$ac_cv_prog_AR
11902if test -n "$AR"; then
11903 echo "$as_me:$LINENO: result: $AR" >&5
11904echo "${ECHO_T}$AR" >&6
11905else
11906 echo "$as_me:$LINENO: result: no" >&5
11907echo "${ECHO_T}no" >&6
11908fi
11909
11910if test "x$AR" = "x" ; then
77ffb593
JS
11911 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11912echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11913 { (exit 1); exit 1; }; }
11914fi
11915
11916# Find a good install program. We prefer a C program (faster),
11917# so one script is as good as another. But avoid the broken or
11918# incompatible versions:
11919# SysV /etc/install, /usr/sbin/install
11920# SunOS /usr/etc/install
11921# IRIX /sbin/install
11922# AIX /bin/install
11923# AmigaOS /C/install, which installs bootblocks on floppy discs
11924# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11925# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11926# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 11927# OS/2's system install, which has a completely different semantic
a848cd7e
SC
11928# ./install, which can be erroneously created by make from ./install.sh.
11929echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11930echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11931if test -z "$INSTALL"; then
11932if test "${ac_cv_path_install+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934else
11935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936for as_dir in $PATH
11937do
11938 IFS=$as_save_IFS
11939 test -z "$as_dir" && as_dir=.
11940 # Account for people who put trailing slashes in PATH elements.
11941case $as_dir/ in
11942 ./ | .// | /cC/* | \
11943 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 11944 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
11945 /usr/ucb/* ) ;;
11946 *)
11947 # OSF1 and SCO ODT 3.0 have their own names for install.
11948 # Don't use installbsd from OSF since it installs stuff as root
11949 # by default.
11950 for ac_prog in ginstall scoinst install; do
11951 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
11952 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11953 if test $ac_prog = install &&
11954 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11955 # AIX install. It has an incompatible calling convention.
11956 :
11957 elif test $ac_prog = install &&
11958 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11959 # program-specific install script used by HP pwplus--don't use.
11960 :
11961 else
11962 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11963 break 3
11964 fi
11965 fi
a848cd7e
SC
11966 done
11967 done
11968 ;;
11969esac
11970done
11971
11972
11973fi
11974 if test "${ac_cv_path_install+set}" = set; then
11975 INSTALL=$ac_cv_path_install
11976 else
11977 # As a last resort, use the slow shell script. We don't cache a
11978 # path for INSTALL within a source directory, because that will
11979 # break other packages using the cache if that directory is
11980 # removed, or if the path is relative.
11981 INSTALL=$ac_install_sh
11982 fi
11983fi
11984echo "$as_me:$LINENO: result: $INSTALL" >&5
11985echo "${ECHO_T}$INSTALL" >&6
11986
11987# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11988# It thinks the first close brace ends the variable substitution.
11989test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11990
11991test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11992
11993test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11994
11995
11996case ${INSTALL} in
11997 /* ) # Absolute
11998 ;;
11999 ?:* ) # Drive letter, considered as absolute.
12000 ;;
12001 *)
12002 INSTALL=`pwd`/${INSTALL} ;;
12003esac
12004
12005case ${host} in
12006 *-hp-hpux* )
12007 INSTALL_DIR="mkdir"
12008 ;;
12009
12010 *) INSTALL_DIR="$INSTALL -d"
12011 ;;
12012esac
12013
12014
12015case "${host}" in
12016
12017 powerpc-*-darwin* )
12018 INSTALL_PROGRAM="cp -fp"
12019 INSTALL_DATA="cp -fp"
12020 ;;
12021 *)
12022 ;;
12023esac
12024
12025# Extract the first word of "strip", so it can be a program name with args.
12026set dummy strip; ac_word=$2
12027echo "$as_me:$LINENO: checking for $ac_word" >&5
12028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12029if test "${ac_cv_prog_STRIP+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031else
12032 if test -n "$STRIP"; then
12033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12034else
12035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036for as_dir in $PATH
12037do
12038 IFS=$as_save_IFS
12039 test -z "$as_dir" && as_dir=.
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12042 ac_cv_prog_STRIP="strip"
12043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12044 break 2
12045 fi
12046done
12047done
12048
12049 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12050fi
12051fi
12052STRIP=$ac_cv_prog_STRIP
12053if test -n "$STRIP"; then
12054 echo "$as_me:$LINENO: result: $STRIP" >&5
12055echo "${ECHO_T}$STRIP" >&6
12056else
12057 echo "$as_me:$LINENO: result: no" >&5
12058echo "${ECHO_T}no" >&6
12059fi
12060
12061
12062echo "$as_me:$LINENO: checking if make is GNU make" >&5
12063echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12064if test "${wx_cv_prog_makeisgnu+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066else
12067
12068 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12069 egrep -s GNU > /dev/null); then
12070 wx_cv_prog_makeisgnu="yes"
12071 else
12072 wx_cv_prog_makeisgnu="no"
12073 fi
12074
12075fi
12076echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12077echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12078
12079if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12080 IF_GNU_MAKE=""
12081else
12082 IF_GNU_MAKE="#"
12083fi
12084
12085
12086
12087if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12088echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12089echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12090if test "${wx_cv_prog_makevpath+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12092else
12093
12094cat - << EOF > confMake
12095check : file
12096 cp \$? \$@
12097 cp \$? final_file
12098EOF
12099
12100if test ! -d sub ; then
12101 mkdir sub
12102fi
12103echo dummy > sub/file
12104${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12105RESULT=$?
12106rm -f sub/file check final_file confMake
12107rmdir sub
12108if test "$RESULT" = 0; then
12109 wx_cv_prog_makevpath="yes"
12110else
12111 wx_cv_prog_makevpath="no"
12112fi
12113
12114fi
12115echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12116echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12117
12118if test "x$wx_cv_prog_makevpath" != "xyes"; then
12119{ { echo "$as_me:$LINENO: error:
12120You need a make-utility that is able to use the variable
12121VPATH correctly.
12122If your version of make does not support VPATH correctly,
12123please install GNU-make (possibly as gmake), and start
12124configure with the following command:
12125export MAKE=gmake; ./configure for sh-type shells
12126setenv MAKE gmake; ./configure for csh-type shells
12127Also please do remember to use gmake in this case every time
12128you are trying to compile.
12129" >&5
12130echo "$as_me: error:
12131You need a make-utility that is able to use the variable
12132VPATH correctly.
12133If your version of make does not support VPATH correctly,
12134please install GNU-make (possibly as gmake), and start
12135configure with the following command:
12136export MAKE=gmake; ./configure for sh-type shells
12137setenv MAKE gmake; ./configure for csh-type shells
12138Also please do remember to use gmake in this case every time
12139you are trying to compile.
12140" >&2;}
12141 { (exit 1); exit 1; }; }
12142fi fi
12143echo "$as_me:$LINENO: checking whether ln -s works" >&5
12144echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12145LN_S=$as_ln_s
12146if test "$LN_S" = "ln -s"; then
12147 echo "$as_me:$LINENO: result: yes" >&5
12148echo "${ECHO_T}yes" >&6
12149else
12150 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12151echo "${ECHO_T}no, using $LN_S" >&6
12152fi
12153
12154
12155
12156case "${host}" in
12157 *-pc-os2_emx | *-pc-os2-emx )
12158 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12159 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12160echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12161if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12163else
12164 ac_check_lib_save_LIBS=$LIBS
12165LIBS="-lcExt $LIBS"
12166cat >conftest.$ac_ext <<_ACEOF
12167/* confdefs.h. */
12168_ACEOF
12169cat confdefs.h >>conftest.$ac_ext
12170cat >>conftest.$ac_ext <<_ACEOF
12171/* end confdefs.h. */
12172
12173/* Override any gcc2 internal prototype to avoid an error. */
12174#ifdef __cplusplus
12175extern "C"
12176#endif
12177/* We use char because int might match the return type of a gcc2
12178 builtin and then its argument prototype would still apply. */
12179char drand48 ();
12180int
12181main ()
12182{
12183drand48 ();
12184 ;
12185 return 0;
12186}
12187_ACEOF
12188rm -f conftest.$ac_objext conftest$ac_exeext
12189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12190 (eval $ac_link) 2>conftest.er1
a848cd7e 12191 ac_status=$?
ac1cb8d3
VS
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
a848cd7e
SC
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } &&
ac1cb8d3
VS
12197 { ac_try='test -z "$ac_c_werror_flag"
12198 || test ! -s conftest.err'
12199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200 (eval $ac_try) 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
12210 ac_cv_lib_cExt_drand48=yes
12211else
12212 echo "$as_me: failed program was:" >&5
12213sed 's/^/| /' conftest.$ac_ext >&5
12214
12215ac_cv_lib_cExt_drand48=no
12216fi
ac1cb8d3
VS
12217rm -f conftest.err conftest.$ac_objext \
12218 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12219LIBS=$ac_check_lib_save_LIBS
12220fi
12221echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12222echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12223if test $ac_cv_lib_cExt_drand48 = yes; then
12224 LIBS="$LIBS -lcExt"
12225fi
12226
12227 else
12228 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12229 fi
12230 echo "$as_me:$LINENO: checking for gcc version" >&5
12231echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12232if test "${wx_cv_gccversion+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234else
12235
12236 cat >conftest.$ac_ext <<_ACEOF
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
12242
12243int
12244main ()
12245{
12246
12247 #if (__GNUC__ < 3)
12248 #error old gcc
12249 #endif
12250
12251 ;
12252 return 0;
12253}
12254_ACEOF
12255rm -f conftest.$ac_objext
12256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12257 (eval $ac_compile) 2>conftest.er1
a848cd7e 12258 ac_status=$?
ac1cb8d3
VS
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
a848cd7e
SC
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
ac1cb8d3
VS
12264 { ac_try='test -z "$ac_c_werror_flag"
12265 || test ! -s conftest.err'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277
12278 cat >conftest.$ac_ext <<_ACEOF
12279/* confdefs.h. */
12280_ACEOF
12281cat confdefs.h >>conftest.$ac_ext
12282cat >>conftest.$ac_ext <<_ACEOF
12283/* end confdefs.h. */
12284
12285int
12286main ()
12287{
12288
12289 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12290 #error intermediate gcc
12291 #endif
12292
12293 ;
12294 return 0;
12295}
12296_ACEOF
12297rm -f conftest.$ac_objext
12298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12299 (eval $ac_compile) 2>conftest.er1
a848cd7e 12300 ac_status=$?
ac1cb8d3
VS
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
a848cd7e
SC
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
ac1cb8d3
VS
12306 { ac_try='test -z "$ac_c_werror_flag"
12307 || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319
12320 wx_cv_gccversion=Innotek
12321
12322else
12323 echo "$as_me: failed program was:" >&5
12324sed 's/^/| /' conftest.$ac_ext >&5
12325
12326
12327 wx_cv_gccversion=3
12328
12329
12330fi
ac1cb8d3 12331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12332
12333else
12334 echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
12336
12337
12338 wx_cv_gccversion=2
12339
12340
12341fi
ac1cb8d3 12342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12343
12344fi
12345echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12346echo "${ECHO_T}$wx_cv_gccversion" >&6
12347 if test "$wx_cv_gccversion" = "2"; then
12348 LIBS="$LIBS -lstdcpp"
12349 LDFLAGS="$LDFLAGS -Zsysv-signals"
12350 else
12351 if test "$wx_cv_gccversion" = "3"; then
12352 LIBS="$LIBS -lstdcxx"
12353 LDFLAGS="$LDFLAGS -Zsysv-signals"
12354 else
12355 LIBS="$LIBS -lstdc++"
12356 fi
12357 fi
12358 if test "$wxUSE_OMF" = "yes"; then
de59c161 12359 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12360 fi
12361 ;;
12362 *)
12363
12364
12365
12366 ac_ext=cc
12367ac_cpp='$CXXCPP $CPPFLAGS'
12368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12371
12372
12373
12374echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12375echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12376if test "${ac_cv_string_strcasecmp+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378else
12379
12380 cat >conftest.$ac_ext <<_ACEOF
12381/* confdefs.h. */
12382_ACEOF
12383cat confdefs.h >>conftest.$ac_ext
12384cat >>conftest.$ac_ext <<_ACEOF
12385/* end confdefs.h. */
12386
12387 #include <string.h>
12388
12389int
12390main ()
12391{
12392
12393 strcasecmp("foo", "bar");
12394
12395 ;
12396 return 0;
12397}
12398_ACEOF
12399rm -f conftest.$ac_objext conftest$ac_exeext
12400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12401 (eval $ac_link) 2>conftest.er1
a848cd7e 12402 ac_status=$?
ac1cb8d3
VS
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
a848cd7e
SC
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
ac1cb8d3
VS
12408 { ac_try='test -z "$ac_cxx_werror_flag"
12409 || test ! -s conftest.err'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 ac_cv_string_strcasecmp=yes
12422else
12423 echo "$as_me: failed program was:" >&5
12424sed 's/^/| /' conftest.$ac_ext >&5
12425
12426ac_cv_string_strcasecmp=no
12427
12428fi
ac1cb8d3
VS
12429rm -f conftest.err conftest.$ac_objext \
12430 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12431
12432fi
12433echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12434echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12435
12436 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12437 cat >>confdefs.h <<\_ACEOF
12438#define HAVE_STRCASECMP_IN_STRING_H 1
12439_ACEOF
12440
12441 else
12442 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12443echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12444if test "${ac_cv_strings_strcasecmp+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12446else
12447
12448 cat >conftest.$ac_ext <<_ACEOF
12449/* confdefs.h. */
12450_ACEOF
12451cat confdefs.h >>conftest.$ac_ext
12452cat >>conftest.$ac_ext <<_ACEOF
12453/* end confdefs.h. */
12454
12455 #include <strings.h>
12456
12457int
12458main ()
12459{
12460
12461 strcasecmp("foo", "bar");
12462
12463 ;
12464 return 0;
12465}
12466_ACEOF
12467rm -f conftest.$ac_objext conftest$ac_exeext
12468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12469 (eval $ac_link) 2>conftest.er1
a848cd7e 12470 ac_status=$?
ac1cb8d3
VS
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
a848cd7e
SC
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
ac1cb8d3
VS
12476 { ac_try='test -z "$ac_cxx_werror_flag"
12477 || test ! -s conftest.err'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_cv_strings_strcasecmp=yes
12490else
12491 echo "$as_me: failed program was:" >&5
12492sed 's/^/| /' conftest.$ac_ext >&5
12493
12494ac_cv_strings_strcasecmp=no
12495
12496fi
ac1cb8d3
VS
12497rm -f conftest.err conftest.$ac_objext \
12498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12499
12500fi
12501echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12502echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12503
12504 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12505 cat >>confdefs.h <<\_ACEOF
12506#define HAVE_STRCASECMP_IN_STRINGS_H 1
12507_ACEOF
12508
12509 else
12510 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12511echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12512 { (exit 1); exit 1; }; }
12513 fi
12514 fi
12515
12516 ac_ext=c
12517ac_cpp='$CPP $CPPFLAGS'
12518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12520ac_compiler_gnu=$ac_cv_c_compiler_gnu
12521
12522 ;;
12523esac
12524
12525
12526echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12527echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12528if test "${ac_cv_header_stdc+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530else
12531 cat >conftest.$ac_ext <<_ACEOF
12532/* confdefs.h. */
12533_ACEOF
12534cat confdefs.h >>conftest.$ac_ext
12535cat >>conftest.$ac_ext <<_ACEOF
12536/* end confdefs.h. */
12537#include <stdlib.h>
12538#include <stdarg.h>
12539#include <string.h>
12540#include <float.h>
12541
12542int
12543main ()
12544{
12545
12546 ;
12547 return 0;
12548}
12549_ACEOF
12550rm -f conftest.$ac_objext
12551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12552 (eval $ac_compile) 2>conftest.er1
a848cd7e 12553 ac_status=$?
ac1cb8d3
VS
12554 grep -v '^ *+' conftest.er1 >conftest.err
12555 rm -f conftest.er1
12556 cat conftest.err >&5
a848cd7e
SC
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
ac1cb8d3
VS
12559 { ac_try='test -z "$ac_c_werror_flag"
12560 || test ! -s conftest.err'
12561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; } &&
12566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 ac_cv_header_stdc=yes
12573else
12574 echo "$as_me: failed program was:" >&5
12575sed 's/^/| /' conftest.$ac_ext >&5
12576
12577ac_cv_header_stdc=no
12578fi
ac1cb8d3 12579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12580
12581if test $ac_cv_header_stdc = yes; then
12582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12583 cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
12589#include <string.h>
12590
12591_ACEOF
12592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12593 $EGREP "memchr" >/dev/null 2>&1; then
12594 :
12595else
12596 ac_cv_header_stdc=no
12597fi
12598rm -f conftest*
12599
12600fi
12601
12602if test $ac_cv_header_stdc = yes; then
12603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12604 cat >conftest.$ac_ext <<_ACEOF
12605/* confdefs.h. */
12606_ACEOF
12607cat confdefs.h >>conftest.$ac_ext
12608cat >>conftest.$ac_ext <<_ACEOF
12609/* end confdefs.h. */
12610#include <stdlib.h>
12611
12612_ACEOF
12613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12614 $EGREP "free" >/dev/null 2>&1; then
12615 :
12616else
12617 ac_cv_header_stdc=no
12618fi
12619rm -f conftest*
12620
12621fi
12622
12623if test $ac_cv_header_stdc = yes; then
12624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12625 if test "$cross_compiling" = yes; then
12626 :
12627else
12628 cat >conftest.$ac_ext <<_ACEOF
12629/* confdefs.h. */
12630_ACEOF
12631cat confdefs.h >>conftest.$ac_ext
12632cat >>conftest.$ac_ext <<_ACEOF
12633/* end confdefs.h. */
12634#include <ctype.h>
12635#if ((' ' & 0x0FF) == 0x020)
12636# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12637# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12638#else
12639# define ISLOWER(c) \
ac1cb8d3
VS
12640 (('a' <= (c) && (c) <= 'i') \
12641 || ('j' <= (c) && (c) <= 'r') \
12642 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12643# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12644#endif
12645
12646#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12647int
12648main ()
12649{
12650 int i;
12651 for (i = 0; i < 256; i++)
12652 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12653 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12654 exit(2);
12655 exit (0);
12656}
12657_ACEOF
12658rm -f conftest$ac_exeext
12659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12660 (eval $ac_link) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 :
12670else
12671 echo "$as_me: program exited with status $ac_status" >&5
12672echo "$as_me: failed program was:" >&5
12673sed 's/^/| /' conftest.$ac_ext >&5
12674
12675( exit $ac_status )
12676ac_cv_header_stdc=no
12677fi
ac1cb8d3 12678rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12679fi
12680fi
12681fi
12682echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12683echo "${ECHO_T}$ac_cv_header_stdc" >&6
12684if test $ac_cv_header_stdc = yes; then
12685
12686cat >>confdefs.h <<\_ACEOF
12687#define STDC_HEADERS 1
12688_ACEOF
12689
12690fi
12691
12692# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12703 inttypes.h stdint.h unistd.h
a848cd7e
SC
12704do
12705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12706echo "$as_me:$LINENO: checking for $ac_header" >&5
12707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12708if eval "test \"\${$as_ac_Header+set}\" = set"; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710else
12711 cat >conftest.$ac_ext <<_ACEOF
12712/* confdefs.h. */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
12716/* end confdefs.h. */
12717$ac_includes_default
12718
12719#include <$ac_header>
12720_ACEOF
12721rm -f conftest.$ac_objext
12722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12723 (eval $ac_compile) 2>conftest.er1
a848cd7e 12724 ac_status=$?
ac1cb8d3
VS
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
a848cd7e
SC
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
ac1cb8d3
VS
12730 { ac_try='test -z "$ac_c_werror_flag"
12731 || test ! -s conftest.err'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; } &&
12737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; }; then
12743 eval "$as_ac_Header=yes"
12744else
12745 echo "$as_me: failed program was:" >&5
12746sed 's/^/| /' conftest.$ac_ext >&5
12747
12748eval "$as_ac_Header=no"
12749fi
ac1cb8d3 12750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12751fi
12752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12754if test `eval echo '${'$as_ac_Header'}'` = yes; then
12755 cat >>confdefs.h <<_ACEOF
12756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12757_ACEOF
12758
12759fi
12760
12761done
12762
12763
12764
12765for ac_header in stdlib.h
12766do
12767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12768if eval "test \"\${$as_ac_Header+set}\" = set"; then
12769 echo "$as_me:$LINENO: checking for $ac_header" >&5
12770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12771if eval "test \"\${$as_ac_Header+set}\" = set"; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12773fi
12774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12776else
12777 # Is the header compilable?
12778echo "$as_me:$LINENO: checking $ac_header usability" >&5
12779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12780cat >conftest.$ac_ext <<_ACEOF
12781/* confdefs.h. */
12782_ACEOF
12783cat confdefs.h >>conftest.$ac_ext
12784cat >>conftest.$ac_ext <<_ACEOF
12785/* end confdefs.h. */
12786$ac_includes_default
12787#include <$ac_header>
12788_ACEOF
12789rm -f conftest.$ac_objext
12790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12791 (eval $ac_compile) 2>conftest.er1
a848cd7e 12792 ac_status=$?
ac1cb8d3
VS
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
a848cd7e
SC
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
ac1cb8d3
VS
12798 { ac_try='test -z "$ac_c_werror_flag"
12799 || test ! -s conftest.err'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; } &&
12805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_header_compiler=yes
12812else
12813 echo "$as_me: failed program was:" >&5
12814sed 's/^/| /' conftest.$ac_ext >&5
12815
12816ac_header_compiler=no
12817fi
ac1cb8d3 12818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12819echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12820echo "${ECHO_T}$ac_header_compiler" >&6
12821
12822# Is the header present?
12823echo "$as_me:$LINENO: checking $ac_header presence" >&5
12824echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12825cat >conftest.$ac_ext <<_ACEOF
12826/* confdefs.h. */
12827_ACEOF
12828cat confdefs.h >>conftest.$ac_ext
12829cat >>conftest.$ac_ext <<_ACEOF
12830/* end confdefs.h. */
12831#include <$ac_header>
12832_ACEOF
12833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } >/dev/null; then
12841 if test -s conftest.err; then
12842 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12844 else
12845 ac_cpp_err=
12846 fi
12847else
12848 ac_cpp_err=yes
12849fi
12850if test -z "$ac_cpp_err"; then
12851 ac_header_preproc=yes
12852else
12853 echo "$as_me: failed program was:" >&5
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
12856 ac_header_preproc=no
12857fi
12858rm -f conftest.err conftest.$ac_ext
12859echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12860echo "${ECHO_T}$ac_header_preproc" >&6
12861
12862# So? What about this header?
ac1cb8d3
VS
12863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12864 yes:no: )
a848cd7e
SC
12865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12868echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12869 ac_header_preproc=yes
a848cd7e 12870 ;;
ac1cb8d3 12871 no:yes:* )
a848cd7e
SC
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12877echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12879echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12883echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12884 (
12885 cat <<\_ASBOX
ac1cb8d3
VS
12886## ----------------------------------------- ##
12887## Report this to wx-dev@lists.wxwidgets.org ##
12888## ----------------------------------------- ##
a848cd7e
SC
12889_ASBOX
12890 ) |
12891 sed "s/^/$as_me: WARNING: /" >&2
12892 ;;
12893esac
12894echo "$as_me:$LINENO: checking for $ac_header" >&5
12895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12896if eval "test \"\${$as_ac_Header+set}\" = set"; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898else
ac1cb8d3 12899 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12900fi
12901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12903
12904fi
12905if test `eval echo '${'$as_ac_Header'}'` = yes; then
12906 cat >>confdefs.h <<_ACEOF
12907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12908_ACEOF
12909
12910fi
12911
12912done
12913
12914
12915for ac_header in malloc.h
12916do
12917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12918if eval "test \"\${$as_ac_Header+set}\" = set"; then
12919 echo "$as_me:$LINENO: checking for $ac_header" >&5
12920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12921if eval "test \"\${$as_ac_Header+set}\" = set"; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12923fi
12924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12926else
12927 # Is the header compilable?
12928echo "$as_me:$LINENO: checking $ac_header usability" >&5
12929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12930cat >conftest.$ac_ext <<_ACEOF
12931/* confdefs.h. */
12932_ACEOF
12933cat confdefs.h >>conftest.$ac_ext
12934cat >>conftest.$ac_ext <<_ACEOF
12935/* end confdefs.h. */
12936$ac_includes_default
12937#include <$ac_header>
12938_ACEOF
12939rm -f conftest.$ac_objext
12940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12941 (eval $ac_compile) 2>conftest.er1
a848cd7e 12942 ac_status=$?
ac1cb8d3
VS
12943 grep -v '^ *+' conftest.er1 >conftest.err
12944 rm -f conftest.er1
12945 cat conftest.err >&5
a848cd7e
SC
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
ac1cb8d3
VS
12948 { ac_try='test -z "$ac_c_werror_flag"
12949 || test ! -s conftest.err'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; } &&
12955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 ac_header_compiler=yes
12962else
12963 echo "$as_me: failed program was:" >&5
12964sed 's/^/| /' conftest.$ac_ext >&5
12965
12966ac_header_compiler=no
12967fi
ac1cb8d3 12968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12970echo "${ECHO_T}$ac_header_compiler" >&6
12971
12972# Is the header present?
12973echo "$as_me:$LINENO: checking $ac_header presence" >&5
12974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12975cat >conftest.$ac_ext <<_ACEOF
12976/* confdefs.h. */
12977_ACEOF
12978cat confdefs.h >>conftest.$ac_ext
12979cat >>conftest.$ac_ext <<_ACEOF
12980/* end confdefs.h. */
12981#include <$ac_header>
12982_ACEOF
12983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12985 ac_status=$?
12986 grep -v '^ *+' conftest.er1 >conftest.err
12987 rm -f conftest.er1
12988 cat conftest.err >&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } >/dev/null; then
12991 if test -s conftest.err; then
12992 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12994 else
12995 ac_cpp_err=
12996 fi
12997else
12998 ac_cpp_err=yes
12999fi
13000if test -z "$ac_cpp_err"; then
13001 ac_header_preproc=yes
13002else
13003 echo "$as_me: failed program was:" >&5
13004sed 's/^/| /' conftest.$ac_ext >&5
13005
13006 ac_header_preproc=no
13007fi
13008rm -f conftest.err conftest.$ac_ext
13009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13010echo "${ECHO_T}$ac_header_preproc" >&6
13011
13012# So? What about this header?
ac1cb8d3
VS
13013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13014 yes:no: )
a848cd7e
SC
13015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13019 ac_header_preproc=yes
a848cd7e 13020 ;;
ac1cb8d3 13021 no:yes:* )
a848cd7e
SC
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13025echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13029echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13034 (
13035 cat <<\_ASBOX
ac1cb8d3
VS
13036## ----------------------------------------- ##
13037## Report this to wx-dev@lists.wxwidgets.org ##
13038## ----------------------------------------- ##
a848cd7e
SC
13039_ASBOX
13040 ) |
13041 sed "s/^/$as_me: WARNING: /" >&2
13042 ;;
13043esac
13044echo "$as_me:$LINENO: checking for $ac_header" >&5
13045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13046if eval "test \"\${$as_ac_Header+set}\" = set"; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13048else
ac1cb8d3 13049 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13050fi
13051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13053
13054fi
13055if test `eval echo '${'$as_ac_Header'}'` = yes; then
13056 cat >>confdefs.h <<_ACEOF
13057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13058_ACEOF
13059
13060fi
13061
13062done
13063
13064
13065for ac_header in unistd.h
13066do
13067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13068if eval "test \"\${$as_ac_Header+set}\" = set"; then
13069 echo "$as_me:$LINENO: checking for $ac_header" >&5
13070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13071if eval "test \"\${$as_ac_Header+set}\" = set"; then
13072 echo $ECHO_N "(cached) $ECHO_C" >&6
13073fi
13074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13076else
13077 # Is the header compilable?
13078echo "$as_me:$LINENO: checking $ac_header usability" >&5
13079echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13080cat >conftest.$ac_ext <<_ACEOF
13081/* confdefs.h. */
13082_ACEOF
13083cat confdefs.h >>conftest.$ac_ext
13084cat >>conftest.$ac_ext <<_ACEOF
13085/* end confdefs.h. */
13086$ac_includes_default
13087#include <$ac_header>
13088_ACEOF
13089rm -f conftest.$ac_objext
13090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13091 (eval $ac_compile) 2>conftest.er1
a848cd7e 13092 ac_status=$?
ac1cb8d3
VS
13093 grep -v '^ *+' conftest.er1 >conftest.err
13094 rm -f conftest.er1
13095 cat conftest.err >&5
a848cd7e
SC
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } &&
ac1cb8d3
VS
13098 { ac_try='test -z "$ac_c_werror_flag"
13099 || test ! -s conftest.err'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; } &&
13105 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_header_compiler=yes
13112else
13113 echo "$as_me: failed program was:" >&5
13114sed 's/^/| /' conftest.$ac_ext >&5
13115
13116ac_header_compiler=no
13117fi
ac1cb8d3 13118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13119echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13120echo "${ECHO_T}$ac_header_compiler" >&6
13121
13122# Is the header present?
13123echo "$as_me:$LINENO: checking $ac_header presence" >&5
13124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13125cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131#include <$ac_header>
13132_ACEOF
13133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13135 ac_status=$?
13136 grep -v '^ *+' conftest.er1 >conftest.err
13137 rm -f conftest.er1
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } >/dev/null; then
13141 if test -s conftest.err; then
13142 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13144 else
13145 ac_cpp_err=
13146 fi
13147else
13148 ac_cpp_err=yes
13149fi
13150if test -z "$ac_cpp_err"; then
13151 ac_header_preproc=yes
13152else
13153 echo "$as_me: failed program was:" >&5
13154sed 's/^/| /' conftest.$ac_ext >&5
13155
13156 ac_header_preproc=no
13157fi
13158rm -f conftest.err conftest.$ac_ext
13159echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13160echo "${ECHO_T}$ac_header_preproc" >&6
13161
13162# So? What about this header?
ac1cb8d3
VS
13163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13164 yes:no: )
a848cd7e
SC
13165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13168echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13169 ac_header_preproc=yes
a848cd7e 13170 ;;
ac1cb8d3 13171 no:yes:* )
a848cd7e
SC
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13175echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13177echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13179echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13183echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13184 (
13185 cat <<\_ASBOX
ac1cb8d3
VS
13186## ----------------------------------------- ##
13187## Report this to wx-dev@lists.wxwidgets.org ##
13188## ----------------------------------------- ##
a848cd7e
SC
13189_ASBOX
13190 ) |
13191 sed "s/^/$as_me: WARNING: /" >&2
13192 ;;
13193esac
13194echo "$as_me:$LINENO: checking for $ac_header" >&5
13195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13196if eval "test \"\${$as_ac_Header+set}\" = set"; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13198else
ac1cb8d3 13199 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13200fi
13201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13203
13204fi
13205if test `eval echo '${'$as_ac_Header'}'` = yes; then
13206 cat >>confdefs.h <<_ACEOF
13207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13208_ACEOF
13209
13210fi
13211
13212done
13213
13214
13215for ac_header in wchar.h
13216do
13217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13218if eval "test \"\${$as_ac_Header+set}\" = set"; then
13219 echo "$as_me:$LINENO: checking for $ac_header" >&5
13220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13221if eval "test \"\${$as_ac_Header+set}\" = set"; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223fi
13224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13226else
13227 # Is the header compilable?
13228echo "$as_me:$LINENO: checking $ac_header usability" >&5
13229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13230cat >conftest.$ac_ext <<_ACEOF
13231/* confdefs.h. */
13232_ACEOF
13233cat confdefs.h >>conftest.$ac_ext
13234cat >>conftest.$ac_ext <<_ACEOF
13235/* end confdefs.h. */
13236$ac_includes_default
13237#include <$ac_header>
13238_ACEOF
13239rm -f conftest.$ac_objext
13240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13241 (eval $ac_compile) 2>conftest.er1
a848cd7e 13242 ac_status=$?
ac1cb8d3
VS
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
a848cd7e
SC
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
ac1cb8d3
VS
13248 { ac_try='test -z "$ac_c_werror_flag"
13249 || test ! -s conftest.err'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 ac_header_compiler=yes
13262else
13263 echo "$as_me: failed program was:" >&5
13264sed 's/^/| /' conftest.$ac_ext >&5
13265
13266ac_header_compiler=no
13267fi
ac1cb8d3 13268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13269echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13270echo "${ECHO_T}$ac_header_compiler" >&6
13271
13272# Is the header present?
13273echo "$as_me:$LINENO: checking $ac_header presence" >&5
13274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13275cat >conftest.$ac_ext <<_ACEOF
13276/* confdefs.h. */
13277_ACEOF
13278cat confdefs.h >>conftest.$ac_ext
13279cat >>conftest.$ac_ext <<_ACEOF
13280/* end confdefs.h. */
13281#include <$ac_header>
13282_ACEOF
13283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13285 ac_status=$?
13286 grep -v '^ *+' conftest.er1 >conftest.err
13287 rm -f conftest.er1
13288 cat conftest.err >&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } >/dev/null; then
13291 if test -s conftest.err; then
13292 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13294 else
13295 ac_cpp_err=
13296 fi
13297else
13298 ac_cpp_err=yes
13299fi
13300if test -z "$ac_cpp_err"; then
13301 ac_header_preproc=yes
13302else
13303 echo "$as_me: failed program was:" >&5
13304sed 's/^/| /' conftest.$ac_ext >&5
13305
13306 ac_header_preproc=no
13307fi
13308rm -f conftest.err conftest.$ac_ext
13309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13310echo "${ECHO_T}$ac_header_preproc" >&6
13311
13312# So? What about this header?
ac1cb8d3
VS
13313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13314 yes:no: )
a848cd7e
SC
13315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13316echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13318echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13319 ac_header_preproc=yes
a848cd7e 13320 ;;
ac1cb8d3 13321 no:yes:* )
a848cd7e
SC
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13325echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13327echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13329echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13333echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13334 (
13335 cat <<\_ASBOX
ac1cb8d3
VS
13336## ----------------------------------------- ##
13337## Report this to wx-dev@lists.wxwidgets.org ##
13338## ----------------------------------------- ##
a848cd7e
SC
13339_ASBOX
13340 ) |
13341 sed "s/^/$as_me: WARNING: /" >&2
13342 ;;
13343esac
13344echo "$as_me:$LINENO: checking for $ac_header" >&5
13345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13346if eval "test \"\${$as_ac_Header+set}\" = set"; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13348else
ac1cb8d3 13349 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13350fi
13351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13353
13354fi
13355if test `eval echo '${'$as_ac_Header'}'` = yes; then
13356 cat >>confdefs.h <<_ACEOF
13357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13358_ACEOF
13359
13360fi
13361
13362done
13363
13364
13365if test "$ac_cv_header_wchar_h" != "yes"; then
13366
13367for ac_header in wcstr.h
13368do
13369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13370if eval "test \"\${$as_ac_Header+set}\" = set"; then
13371 echo "$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
13375fi
13376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13378else
13379 # Is the header compilable?
13380echo "$as_me:$LINENO: checking $ac_header usability" >&5
13381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13382cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h. */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h. */
13388$ac_includes_default
13389#include <$ac_header>
13390_ACEOF
13391rm -f conftest.$ac_objext
13392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13393 (eval $ac_compile) 2>conftest.er1
a848cd7e 13394 ac_status=$?
ac1cb8d3
VS
13395 grep -v '^ *+' conftest.er1 >conftest.err
13396 rm -f conftest.er1
13397 cat conftest.err >&5
a848cd7e
SC
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } &&
ac1cb8d3
VS
13400 { ac_try='test -z "$ac_c_werror_flag"
13401 || test ! -s conftest.err'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; } &&
13407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
13413 ac_header_compiler=yes
13414else
13415 echo "$as_me: failed program was:" >&5
13416sed 's/^/| /' conftest.$ac_ext >&5
13417
13418ac_header_compiler=no
13419fi
ac1cb8d3 13420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13422echo "${ECHO_T}$ac_header_compiler" >&6
13423
13424# Is the header present?
13425echo "$as_me:$LINENO: checking $ac_header presence" >&5
13426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13427cat >conftest.$ac_ext <<_ACEOF
13428/* confdefs.h. */
13429_ACEOF
13430cat confdefs.h >>conftest.$ac_ext
13431cat >>conftest.$ac_ext <<_ACEOF
13432/* end confdefs.h. */
13433#include <$ac_header>
13434_ACEOF
13435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13437 ac_status=$?
13438 grep -v '^ *+' conftest.er1 >conftest.err
13439 rm -f conftest.er1
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } >/dev/null; then
13443 if test -s conftest.err; then
13444 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13446 else
13447 ac_cpp_err=
13448 fi
13449else
13450 ac_cpp_err=yes
13451fi
13452if test -z "$ac_cpp_err"; then
13453 ac_header_preproc=yes
13454else
13455 echo "$as_me: failed program was:" >&5
13456sed 's/^/| /' conftest.$ac_ext >&5
13457
13458 ac_header_preproc=no
13459fi
13460rm -f conftest.err conftest.$ac_ext
13461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13462echo "${ECHO_T}$ac_header_preproc" >&6
13463
13464# So? What about this header?
ac1cb8d3
VS
13465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13466 yes:no: )
a848cd7e
SC
13467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13471 ac_header_preproc=yes
a848cd7e 13472 ;;
ac1cb8d3 13473 no:yes:* )
a848cd7e
SC
13474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13486 (
13487 cat <<\_ASBOX
ac1cb8d3
VS
13488## ----------------------------------------- ##
13489## Report this to wx-dev@lists.wxwidgets.org ##
13490## ----------------------------------------- ##
a848cd7e
SC
13491_ASBOX
13492 ) |
13493 sed "s/^/$as_me: WARNING: /" >&2
13494 ;;
13495esac
13496echo "$as_me:$LINENO: checking for $ac_header" >&5
13497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13498if eval "test \"\${$as_ac_Header+set}\" = set"; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13500else
ac1cb8d3 13501 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13502fi
13503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13505
13506fi
13507if test `eval echo '${'$as_ac_Header'}'` = yes; then
13508 cat >>confdefs.h <<_ACEOF
13509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13510_ACEOF
13511
13512fi
13513
13514done
13515
13516fi
13517
13518
13519for ac_header in fnmatch.h
13520do
13521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13522if eval "test \"\${$as_ac_Header+set}\" = set"; then
13523 echo "$as_me:$LINENO: checking for $ac_header" >&5
13524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13525if eval "test \"\${$as_ac_Header+set}\" = set"; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13527fi
13528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13530else
13531 # Is the header compilable?
13532echo "$as_me:$LINENO: checking $ac_header usability" >&5
13533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13534cat >conftest.$ac_ext <<_ACEOF
13535/* confdefs.h. */
13536_ACEOF
13537cat confdefs.h >>conftest.$ac_ext
13538cat >>conftest.$ac_ext <<_ACEOF
13539/* end confdefs.h. */
13540$ac_includes_default
13541#include <$ac_header>
13542_ACEOF
13543rm -f conftest.$ac_objext
13544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13545 (eval $ac_compile) 2>conftest.er1
a848cd7e 13546 ac_status=$?
ac1cb8d3
VS
13547 grep -v '^ *+' conftest.er1 >conftest.err
13548 rm -f conftest.er1
13549 cat conftest.err >&5
a848cd7e
SC
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } &&
ac1cb8d3
VS
13552 { ac_try='test -z "$ac_c_werror_flag"
13553 || test ! -s conftest.err'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13556 ac_status=$?
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; } &&
13559 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13562 ac_status=$?
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); }; }; then
13565 ac_header_compiler=yes
13566else
13567 echo "$as_me: failed program was:" >&5
13568sed 's/^/| /' conftest.$ac_ext >&5
13569
13570ac_header_compiler=no
13571fi
ac1cb8d3 13572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13574echo "${ECHO_T}$ac_header_compiler" >&6
13575
13576# Is the header present?
13577echo "$as_me:$LINENO: checking $ac_header presence" >&5
13578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13579cat >conftest.$ac_ext <<_ACEOF
13580/* confdefs.h. */
13581_ACEOF
13582cat confdefs.h >>conftest.$ac_ext
13583cat >>conftest.$ac_ext <<_ACEOF
13584/* end confdefs.h. */
13585#include <$ac_header>
13586_ACEOF
13587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13589 ac_status=$?
13590 grep -v '^ *+' conftest.er1 >conftest.err
13591 rm -f conftest.er1
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } >/dev/null; then
13595 if test -s conftest.err; then
13596 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13598 else
13599 ac_cpp_err=
13600 fi
13601else
13602 ac_cpp_err=yes
13603fi
13604if test -z "$ac_cpp_err"; then
13605 ac_header_preproc=yes
13606else
13607 echo "$as_me: failed program was:" >&5
13608sed 's/^/| /' conftest.$ac_ext >&5
13609
13610 ac_header_preproc=no
13611fi
13612rm -f conftest.err conftest.$ac_ext
13613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13614echo "${ECHO_T}$ac_header_preproc" >&6
13615
13616# So? What about this header?
ac1cb8d3
VS
13617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13618 yes:no: )
a848cd7e
SC
13619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13623 ac_header_preproc=yes
a848cd7e 13624 ;;
ac1cb8d3 13625 no:yes:* )
a848cd7e
SC
13626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13638 (
13639 cat <<\_ASBOX
ac1cb8d3
VS
13640## ----------------------------------------- ##
13641## Report this to wx-dev@lists.wxwidgets.org ##
13642## ----------------------------------------- ##
a848cd7e
SC
13643_ASBOX
13644 ) |
13645 sed "s/^/$as_me: WARNING: /" >&2
13646 ;;
13647esac
13648echo "$as_me:$LINENO: checking for $ac_header" >&5
13649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13650if eval "test \"\${$as_ac_Header+set}\" = set"; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13652else
ac1cb8d3 13653 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13654fi
13655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13657
13658fi
13659if test `eval echo '${'$as_ac_Header'}'` = yes; then
13660 cat >>confdefs.h <<_ACEOF
13661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13662_ACEOF
13663
13664fi
13665
13666done
13667
13668
13669if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13670
13671for ac_func in fnmatch
13672do
13673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13674echo "$as_me:$LINENO: checking for $ac_func" >&5
13675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13676if eval "test \"\${$as_ac_var+set}\" = set"; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678else
13679 cat >conftest.$ac_ext <<_ACEOF
13680/* confdefs.h. */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
13684/* end confdefs.h. */
ac1cb8d3
VS
13685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13687#define $ac_func innocuous_$ac_func
13688
a848cd7e
SC
13689/* System header to define __stub macros and hopefully few prototypes,
13690 which can conflict with char $ac_func (); below.
13691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13692 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13693
a848cd7e
SC
13694#ifdef __STDC__
13695# include <limits.h>
13696#else
13697# include <assert.h>
13698#endif
ac1cb8d3
VS
13699
13700#undef $ac_func
13701
a848cd7e
SC
13702/* Override any gcc2 internal prototype to avoid an error. */
13703#ifdef __cplusplus
13704extern "C"
13705{
13706#endif
13707/* We use char because int might match the return type of a gcc2
13708 builtin and then its argument prototype would still apply. */
13709char $ac_func ();
13710/* The GNU C library defines this for functions which it implements
13711 to always fail with ENOSYS. Some functions are actually named
13712 something starting with __ and the normal name is an alias. */
13713#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13714choke me
13715#else
13716char (*f) () = $ac_func;
13717#endif
13718#ifdef __cplusplus
13719}
13720#endif
13721
13722int
13723main ()
13724{
13725return f != $ac_func;
13726 ;
13727 return 0;
13728}
13729_ACEOF
13730rm -f conftest.$ac_objext conftest$ac_exeext
13731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13732 (eval $ac_link) 2>conftest.er1
a848cd7e 13733 ac_status=$?
ac1cb8d3
VS
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
a848cd7e
SC
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
ac1cb8d3
VS
13739 { ac_try='test -z "$ac_c_werror_flag"
13740 || test ! -s conftest.err'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 eval "$as_ac_var=yes"
13753else
13754 echo "$as_me: failed program was:" >&5
13755sed 's/^/| /' conftest.$ac_ext >&5
13756
13757eval "$as_ac_var=no"
13758fi
ac1cb8d3
VS
13759rm -f conftest.err conftest.$ac_objext \
13760 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13761fi
13762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13763echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13764if test `eval echo '${'$as_ac_var'}'` = yes; then
13765 cat >>confdefs.h <<_ACEOF
13766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13767_ACEOF
13768
13769fi
13770done
13771
13772fi
13773
13774
13775for ac_header in langinfo.h
13776do
13777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13778if eval "test \"\${$as_ac_Header+set}\" = set"; then
13779 echo "$as_me:$LINENO: checking for $ac_header" >&5
13780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13781if eval "test \"\${$as_ac_Header+set}\" = set"; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783fi
13784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13786else
13787 # Is the header compilable?
13788echo "$as_me:$LINENO: checking $ac_header usability" >&5
13789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13790cat >conftest.$ac_ext <<_ACEOF
13791/* confdefs.h. */
13792_ACEOF
13793cat confdefs.h >>conftest.$ac_ext
13794cat >>conftest.$ac_ext <<_ACEOF
13795/* end confdefs.h. */
13796$ac_includes_default
13797#include <$ac_header>
13798_ACEOF
13799rm -f conftest.$ac_objext
13800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13801 (eval $ac_compile) 2>conftest.er1
a848cd7e 13802 ac_status=$?
ac1cb8d3
VS
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
a848cd7e
SC
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
ac1cb8d3
VS
13808 { ac_try='test -z "$ac_c_werror_flag"
13809 || test ! -s conftest.err'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_header_compiler=yes
13822else
13823 echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
13826ac_header_compiler=no
13827fi
ac1cb8d3 13828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13830echo "${ECHO_T}$ac_header_compiler" >&6
13831
13832# Is the header present?
13833echo "$as_me:$LINENO: checking $ac_header presence" >&5
13834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13835cat >conftest.$ac_ext <<_ACEOF
13836/* confdefs.h. */
13837_ACEOF
13838cat confdefs.h >>conftest.$ac_ext
13839cat >>conftest.$ac_ext <<_ACEOF
13840/* end confdefs.h. */
13841#include <$ac_header>
13842_ACEOF
13843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13845 ac_status=$?
13846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } >/dev/null; then
13851 if test -s conftest.err; then
13852 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13854 else
13855 ac_cpp_err=
13856 fi
13857else
13858 ac_cpp_err=yes
13859fi
13860if test -z "$ac_cpp_err"; then
13861 ac_header_preproc=yes
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866 ac_header_preproc=no
13867fi
13868rm -f conftest.err conftest.$ac_ext
13869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13870echo "${ECHO_T}$ac_header_preproc" >&6
13871
13872# So? What about this header?
ac1cb8d3
VS
13873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13874 yes:no: )
a848cd7e
SC
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13879 ac_header_preproc=yes
a848cd7e 13880 ;;
ac1cb8d3 13881 no:yes:* )
a848cd7e
SC
13882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13894 (
13895 cat <<\_ASBOX
ac1cb8d3
VS
13896## ----------------------------------------- ##
13897## Report this to wx-dev@lists.wxwidgets.org ##
13898## ----------------------------------------- ##
a848cd7e
SC
13899_ASBOX
13900 ) |
13901 sed "s/^/$as_me: WARNING: /" >&2
13902 ;;
13903esac
13904echo "$as_me:$LINENO: checking for $ac_header" >&5
13905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13906if eval "test \"\${$as_ac_Header+set}\" = set"; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13908else
ac1cb8d3 13909 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13910fi
13911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13913
13914fi
13915if test `eval echo '${'$as_ac_Header'}'` = yes; then
13916 cat >>confdefs.h <<_ACEOF
13917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13918_ACEOF
13919
13920fi
13921
13922done
13923
13924
13925case "${host}" in
13926 *-pc-os2_emx | *-pc-os2-emx )
13927 if test $ac_cv_header_langinfo_h = "yes"; then
13928 LIBS="$LIBS -lintl"
13929 fi
13930 ;;
13931esac
13932
13933if test "$wxUSE_GUI" = "yes"; then
13934 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13935
13936for ac_header in X11/Xlib.h
13937do
13938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13939if eval "test \"\${$as_ac_Header+set}\" = set"; then
13940 echo "$as_me:$LINENO: checking for $ac_header" >&5
13941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13942if eval "test \"\${$as_ac_Header+set}\" = set"; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13944fi
13945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13947else
13948 # Is the header compilable?
13949echo "$as_me:$LINENO: checking $ac_header usability" >&5
13950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13951cat >conftest.$ac_ext <<_ACEOF
13952/* confdefs.h. */
13953_ACEOF
13954cat confdefs.h >>conftest.$ac_ext
13955cat >>conftest.$ac_ext <<_ACEOF
13956/* end confdefs.h. */
13957$ac_includes_default
13958#include <$ac_header>
13959_ACEOF
13960rm -f conftest.$ac_objext
13961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13962 (eval $ac_compile) 2>conftest.er1
a848cd7e 13963 ac_status=$?
ac1cb8d3
VS
13964 grep -v '^ *+' conftest.er1 >conftest.err
13965 rm -f conftest.er1
13966 cat conftest.err >&5
a848cd7e
SC
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } &&
ac1cb8d3
VS
13969 { ac_try='test -z "$ac_c_werror_flag"
13970 || test ! -s conftest.err'
13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; } &&
13976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_header_compiler=yes
13983else
13984 echo "$as_me: failed program was:" >&5
13985sed 's/^/| /' conftest.$ac_ext >&5
13986
13987ac_header_compiler=no
13988fi
ac1cb8d3 13989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13991echo "${ECHO_T}$ac_header_compiler" >&6
13992
13993# Is the header present?
13994echo "$as_me:$LINENO: checking $ac_header presence" >&5
13995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13996cat >conftest.$ac_ext <<_ACEOF
13997/* confdefs.h. */
13998_ACEOF
13999cat confdefs.h >>conftest.$ac_ext
14000cat >>conftest.$ac_ext <<_ACEOF
14001/* end confdefs.h. */
14002#include <$ac_header>
14003_ACEOF
14004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14006 ac_status=$?
14007 grep -v '^ *+' conftest.er1 >conftest.err
14008 rm -f conftest.er1
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } >/dev/null; then
14012 if test -s conftest.err; then
14013 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14015 else
14016 ac_cpp_err=
14017 fi
14018else
14019 ac_cpp_err=yes
14020fi
14021if test -z "$ac_cpp_err"; then
14022 ac_header_preproc=yes
14023else
14024 echo "$as_me: failed program was:" >&5
14025sed 's/^/| /' conftest.$ac_ext >&5
14026
14027 ac_header_preproc=no
14028fi
14029rm -f conftest.err conftest.$ac_ext
14030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14031echo "${ECHO_T}$ac_header_preproc" >&6
14032
14033# So? What about this header?
ac1cb8d3
VS
14034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14035 yes:no: )
a848cd7e
SC
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14040 ac_header_preproc=yes
a848cd7e 14041 ;;
ac1cb8d3 14042 no:yes:* )
a848cd7e
SC
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14046echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14050echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14055 (
14056 cat <<\_ASBOX
ac1cb8d3
VS
14057## ----------------------------------------- ##
14058## Report this to wx-dev@lists.wxwidgets.org ##
14059## ----------------------------------------- ##
a848cd7e
SC
14060_ASBOX
14061 ) |
14062 sed "s/^/$as_me: WARNING: /" >&2
14063 ;;
14064esac
14065echo "$as_me:$LINENO: checking for $ac_header" >&5
14066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14067if eval "test \"\${$as_ac_Header+set}\" = set"; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069else
ac1cb8d3 14070 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14071fi
14072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14074
14075fi
14076if test `eval echo '${'$as_ac_Header'}'` = yes; then
14077 cat >>confdefs.h <<_ACEOF
14078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14079_ACEOF
14080
14081fi
14082
14083done
14084
14085
14086for ac_header in X11/XKBlib.h
14087do
14088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14089echo "$as_me:$LINENO: checking for $ac_header" >&5
14090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14091if eval "test \"\${$as_ac_Header+set}\" = set"; then
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
14093else
14094 cat >conftest.$ac_ext <<_ACEOF
14095/* confdefs.h. */
14096_ACEOF
14097cat confdefs.h >>conftest.$ac_ext
14098cat >>conftest.$ac_ext <<_ACEOF
14099/* end confdefs.h. */
14100
14101 #if HAVE_X11_XLIB_H
14102 #include <X11/Xlib.h>
14103 #endif
14104
14105
14106#include <$ac_header>
14107_ACEOF
14108rm -f conftest.$ac_objext
14109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14110 (eval $ac_compile) 2>conftest.er1
a848cd7e 14111 ac_status=$?
ac1cb8d3
VS
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
a848cd7e
SC
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
ac1cb8d3
VS
14117 { ac_try='test -z "$ac_c_werror_flag"
14118 || test ! -s conftest.err'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 eval "$as_ac_Header=yes"
14131else
14132 echo "$as_me: failed program was:" >&5
14133sed 's/^/| /' conftest.$ac_ext >&5
14134
14135eval "$as_ac_Header=no"
14136fi
ac1cb8d3 14137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14138fi
14139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14141if test `eval echo '${'$as_ac_Header'}'` = yes; then
14142 cat >>confdefs.h <<_ACEOF
14143#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14144_ACEOF
14145
14146fi
14147
14148done
14149
14150 fi
14151fi
14152
14153
14154echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14155echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14156if test "${ac_cv_c_const+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14158else
14159 cat >conftest.$ac_ext <<_ACEOF
14160/* confdefs.h. */
14161_ACEOF
14162cat confdefs.h >>conftest.$ac_ext
14163cat >>conftest.$ac_ext <<_ACEOF
14164/* end confdefs.h. */
14165
14166int
14167main ()
14168{
14169/* FIXME: Include the comments suggested by Paul. */
14170#ifndef __cplusplus
14171 /* Ultrix mips cc rejects this. */
14172 typedef int charset[2];
14173 const charset x;
14174 /* SunOS 4.1.1 cc rejects this. */
14175 char const *const *ccp;
14176 char **p;
14177 /* NEC SVR4.0.2 mips cc rejects this. */
14178 struct point {int x, y;};
14179 static struct point const zero = {0,0};
14180 /* AIX XL C 1.02.0.0 rejects this.
14181 It does not let you subtract one const X* pointer from another in
14182 an arm of an if-expression whose if-part is not a constant
14183 expression */
14184 const char *g = "string";
14185 ccp = &g + (g ? g-g : 0);
14186 /* HPUX 7.0 cc rejects these. */
14187 ++ccp;
14188 p = (char**) ccp;
14189 ccp = (char const *const *) p;
14190 { /* SCO 3.2v4 cc rejects this. */
14191 char *t;
14192 char const *s = 0 ? (char *) 0 : (char const *) 0;
14193
14194 *t++ = 0;
14195 }
14196 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14197 int x[] = {25, 17};
14198 const int *foo = &x[0];
14199 ++foo;
14200 }
14201 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14202 typedef const int *iptr;
14203 iptr p = 0;
14204 ++p;
14205 }
14206 { /* AIX XL C 1.02.0.0 rejects this saying
14207 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14208 struct s { int j; const int *ap[3]; };
14209 struct s *b; b->j = 5;
14210 }
14211 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14212 const int foo = 10;
14213 }
14214#endif
14215
14216 ;
14217 return 0;
14218}
14219_ACEOF
14220rm -f conftest.$ac_objext
14221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14222 (eval $ac_compile) 2>conftest.er1
a848cd7e 14223 ac_status=$?
ac1cb8d3
VS
14224 grep -v '^ *+' conftest.er1 >conftest.err
14225 rm -f conftest.er1
14226 cat conftest.err >&5
a848cd7e
SC
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
ac1cb8d3
VS
14229 { ac_try='test -z "$ac_c_werror_flag"
14230 || test ! -s conftest.err'
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 ac_cv_c_const=yes
14243else
14244 echo "$as_me: failed program was:" >&5
14245sed 's/^/| /' conftest.$ac_ext >&5
14246
14247ac_cv_c_const=no
14248fi
ac1cb8d3 14249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14250fi
14251echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14252echo "${ECHO_T}$ac_cv_c_const" >&6
14253if test $ac_cv_c_const = no; then
14254
14255cat >>confdefs.h <<\_ACEOF
14256#define const
14257_ACEOF
14258
14259fi
14260
14261echo "$as_me:$LINENO: checking for inline" >&5
14262echo $ECHO_N "checking for inline... $ECHO_C" >&6
14263if test "${ac_cv_c_inline+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265else
14266 ac_cv_c_inline=no
14267for ac_kw in inline __inline__ __inline; do
14268 cat >conftest.$ac_ext <<_ACEOF
14269/* confdefs.h. */
14270_ACEOF
14271cat confdefs.h >>conftest.$ac_ext
14272cat >>conftest.$ac_ext <<_ACEOF
14273/* end confdefs.h. */
14274#ifndef __cplusplus
14275typedef int foo_t;
14276static $ac_kw foo_t static_foo () {return 0; }
14277$ac_kw foo_t foo () {return 0; }
14278#endif
14279
14280_ACEOF
14281rm -f conftest.$ac_objext
14282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14283 (eval $ac_compile) 2>conftest.er1
a848cd7e 14284 ac_status=$?
ac1cb8d3
VS
14285 grep -v '^ *+' conftest.er1 >conftest.err
14286 rm -f conftest.er1
14287 cat conftest.err >&5
a848cd7e
SC
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } &&
ac1cb8d3
VS
14290 { ac_try='test -z "$ac_c_werror_flag"
14291 || test ! -s conftest.err'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; } &&
14297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; }; then
14303 ac_cv_c_inline=$ac_kw; break
14304else
14305 echo "$as_me: failed program was:" >&5
14306sed 's/^/| /' conftest.$ac_ext >&5
14307
14308fi
ac1cb8d3 14309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14310done
14311
14312fi
14313echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14314echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14315
14316
a848cd7e
SC
14317case $ac_cv_c_inline in
14318 inline | yes) ;;
ac1cb8d3
VS
14319 *)
14320 case $ac_cv_c_inline in
14321 no) ac_val=;;
14322 *) ac_val=$ac_cv_c_inline;;
14323 esac
14324 cat >>confdefs.h <<_ACEOF
14325#ifndef __cplusplus
14326#define inline $ac_val
14327#endif
de59c161 14328_ACEOF
ac1cb8d3 14329 ;;
a848cd7e
SC
14330esac
14331
14332
14333echo "$as_me:$LINENO: checking for char" >&5
14334echo $ECHO_N "checking for char... $ECHO_C" >&6
14335if test "${ac_cv_type_char+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337else
14338 cat >conftest.$ac_ext <<_ACEOF
14339/* confdefs.h. */
14340_ACEOF
14341cat confdefs.h >>conftest.$ac_ext
14342cat >>conftest.$ac_ext <<_ACEOF
14343/* end confdefs.h. */
14344$ac_includes_default
14345int
14346main ()
14347{
14348if ((char *) 0)
14349 return 0;
14350if (sizeof (char))
14351 return 0;
14352 ;
14353 return 0;
14354}
14355_ACEOF
14356rm -f conftest.$ac_objext
14357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14358 (eval $ac_compile) 2>conftest.er1
a848cd7e 14359 ac_status=$?
ac1cb8d3
VS
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
a848cd7e
SC
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } &&
ac1cb8d3
VS
14365 { ac_try='test -z "$ac_c_werror_flag"
14366 || test ! -s conftest.err'
14367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368 (eval $ac_try) 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; } &&
14372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; }; then
14378 ac_cv_type_char=yes
14379else
14380 echo "$as_me: failed program was:" >&5
14381sed 's/^/| /' conftest.$ac_ext >&5
14382
14383ac_cv_type_char=no
14384fi
ac1cb8d3 14385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14386fi
14387echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14388echo "${ECHO_T}$ac_cv_type_char" >&6
14389
14390echo "$as_me:$LINENO: checking size of char" >&5
14391echo $ECHO_N "checking size of char... $ECHO_C" >&6
14392if test "${ac_cv_sizeof_char+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394else
14395 if test "$ac_cv_type_char" = yes; then
14396 # The cast to unsigned long works around a bug in the HP C Compiler
14397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14399 # This bug is HP SR number 8606223364.
14400 if test "$cross_compiling" = yes; then
14401 # Depending upon the size, compute the lo and hi bounds.
14402cat >conftest.$ac_ext <<_ACEOF
14403/* confdefs.h. */
14404_ACEOF
14405cat confdefs.h >>conftest.$ac_ext
14406cat >>conftest.$ac_ext <<_ACEOF
14407/* end confdefs.h. */
14408$ac_includes_default
14409int
14410main ()
14411{
14412static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14413test_array [0] = 0
14414
14415 ;
14416 return 0;
14417}
14418_ACEOF
14419rm -f conftest.$ac_objext
14420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14421 (eval $ac_compile) 2>conftest.er1
a848cd7e 14422 ac_status=$?
ac1cb8d3
VS
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
a848cd7e
SC
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
ac1cb8d3
VS
14428 { ac_try='test -z "$ac_c_werror_flag"
14429 || test ! -s conftest.err'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; } &&
14435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
14441 ac_lo=0 ac_mid=0
14442 while :; do
14443 cat >conftest.$ac_ext <<_ACEOF
14444/* confdefs.h. */
14445_ACEOF
14446cat confdefs.h >>conftest.$ac_ext
14447cat >>conftest.$ac_ext <<_ACEOF
14448/* end confdefs.h. */
14449$ac_includes_default
14450int
14451main ()
14452{
14453static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14454test_array [0] = 0
14455
14456 ;
14457 return 0;
14458}
14459_ACEOF
14460rm -f conftest.$ac_objext
14461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14462 (eval $ac_compile) 2>conftest.er1
a848cd7e 14463 ac_status=$?
ac1cb8d3
VS
14464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
a848cd7e
SC
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
ac1cb8d3
VS
14469 { ac_try='test -z "$ac_c_werror_flag"
14470 || test ! -s conftest.err'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_hi=$ac_mid; break
14483else
14484 echo "$as_me: failed program was:" >&5
14485sed 's/^/| /' conftest.$ac_ext >&5
14486
14487ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14488 if test $ac_lo -le $ac_mid; then
14489 ac_lo= ac_hi=
14490 break
14491 fi
14492 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14493fi
ac1cb8d3 14494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14495 done
14496else
14497 echo "$as_me: failed program was:" >&5
14498sed 's/^/| /' conftest.$ac_ext >&5
14499
14500cat >conftest.$ac_ext <<_ACEOF
14501/* confdefs.h. */
14502_ACEOF
14503cat confdefs.h >>conftest.$ac_ext
14504cat >>conftest.$ac_ext <<_ACEOF
14505/* end confdefs.h. */
14506$ac_includes_default
14507int
14508main ()
14509{
14510static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14511test_array [0] = 0
14512
14513 ;
14514 return 0;
14515}
14516_ACEOF
14517rm -f conftest.$ac_objext
14518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14519 (eval $ac_compile) 2>conftest.er1
a848cd7e 14520 ac_status=$?
ac1cb8d3
VS
14521 grep -v '^ *+' conftest.er1 >conftest.err
14522 rm -f conftest.er1
14523 cat conftest.err >&5
a848cd7e
SC
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } &&
ac1cb8d3
VS
14526 { ac_try='test -z "$ac_c_werror_flag"
14527 || test ! -s conftest.err'
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; } &&
14533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 ac_hi=-1 ac_mid=-1
14540 while :; do
14541 cat >conftest.$ac_ext <<_ACEOF
14542/* confdefs.h. */
14543_ACEOF
14544cat confdefs.h >>conftest.$ac_ext
14545cat >>conftest.$ac_ext <<_ACEOF
14546/* end confdefs.h. */
14547$ac_includes_default
14548int
14549main ()
14550{
14551static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14552test_array [0] = 0
14553
14554 ;
14555 return 0;
14556}
14557_ACEOF
14558rm -f conftest.$ac_objext
14559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14560 (eval $ac_compile) 2>conftest.er1
a848cd7e 14561 ac_status=$?
ac1cb8d3
VS
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
a848cd7e
SC
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
ac1cb8d3
VS
14567 { ac_try='test -z "$ac_c_werror_flag"
14568 || test ! -s conftest.err'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; } &&
14574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_lo=$ac_mid; break
14581else
14582 echo "$as_me: failed program was:" >&5
14583sed 's/^/| /' conftest.$ac_ext >&5
14584
14585ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14586 if test $ac_mid -le $ac_hi; then
14587 ac_lo= ac_hi=
14588 break
14589 fi
14590 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14591fi
ac1cb8d3 14592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14593 done
14594else
14595 echo "$as_me: failed program was:" >&5
14596sed 's/^/| /' conftest.$ac_ext >&5
14597
14598ac_lo= ac_hi=
14599fi
ac1cb8d3 14600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14601fi
ac1cb8d3 14602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14603# Binary search between lo and hi bounds.
14604while test "x$ac_lo" != "x$ac_hi"; do
14605 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14606 cat >conftest.$ac_ext <<_ACEOF
14607/* confdefs.h. */
14608_ACEOF
14609cat confdefs.h >>conftest.$ac_ext
14610cat >>conftest.$ac_ext <<_ACEOF
14611/* end confdefs.h. */
14612$ac_includes_default
14613int
14614main ()
14615{
14616static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14617test_array [0] = 0
14618
14619 ;
14620 return 0;
14621}
14622_ACEOF
14623rm -f conftest.$ac_objext
14624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14625 (eval $ac_compile) 2>conftest.er1
a848cd7e 14626 ac_status=$?
ac1cb8d3
VS
14627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
a848cd7e
SC
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
ac1cb8d3
VS
14632 { ac_try='test -z "$ac_c_werror_flag"
14633 || test ! -s conftest.err'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; } &&
14639 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 ac_hi=$ac_mid
14646else
14647 echo "$as_me: failed program was:" >&5
14648sed 's/^/| /' conftest.$ac_ext >&5
14649
14650ac_lo=`expr '(' $ac_mid ')' + 1`
14651fi
ac1cb8d3 14652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14653done
14654case $ac_lo in
14655?*) ac_cv_sizeof_char=$ac_lo;;
14656'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14657See \`config.log' for more details." >&5
14658echo "$as_me: error: cannot compute sizeof (char), 77
14659See \`config.log' for more details." >&2;}
14660 { (exit 1); exit 1; }; } ;;
14661esac
14662else
14663 if test "$cross_compiling" = yes; then
14664 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14665See \`config.log' for more details." >&5
14666echo "$as_me: error: cannot run test program while cross compiling
14667See \`config.log' for more details." >&2;}
14668 { (exit 1); exit 1; }; }
14669else
14670 cat >conftest.$ac_ext <<_ACEOF
14671/* confdefs.h. */
14672_ACEOF
14673cat confdefs.h >>conftest.$ac_ext
14674cat >>conftest.$ac_ext <<_ACEOF
14675/* end confdefs.h. */
14676$ac_includes_default
14677long longval () { return (long) (sizeof (char)); }
14678unsigned long ulongval () { return (long) (sizeof (char)); }
14679#include <stdio.h>
14680#include <stdlib.h>
14681int
14682main ()
14683{
14684
14685 FILE *f = fopen ("conftest.val", "w");
14686 if (! f)
14687 exit (1);
14688 if (((long) (sizeof (char))) < 0)
14689 {
14690 long i = longval ();
14691 if (i != ((long) (sizeof (char))))
14692 exit (1);
14693 fprintf (f, "%ld\n", i);
14694 }
14695 else
14696 {
14697 unsigned long i = ulongval ();
14698 if (i != ((long) (sizeof (char))))
14699 exit (1);
14700 fprintf (f, "%lu\n", i);
14701 }
14702 exit (ferror (f) || fclose (f) != 0);
14703
14704 ;
14705 return 0;
14706}
14707_ACEOF
14708rm -f conftest$ac_exeext
14709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14710 (eval $ac_link) 2>&5
14711 ac_status=$?
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14716 ac_status=$?
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
14719 ac_cv_sizeof_char=`cat conftest.val`
14720else
14721 echo "$as_me: program exited with status $ac_status" >&5
14722echo "$as_me: failed program was:" >&5
14723sed 's/^/| /' conftest.$ac_ext >&5
14724
14725( exit $ac_status )
14726{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14727See \`config.log' for more details." >&5
14728echo "$as_me: error: cannot compute sizeof (char), 77
14729See \`config.log' for more details." >&2;}
14730 { (exit 1); exit 1; }; }
14731fi
ac1cb8d3 14732rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14733fi
14734fi
14735rm -f conftest.val
14736else
14737 ac_cv_sizeof_char=0
14738fi
14739fi
14740echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14741echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14742cat >>confdefs.h <<_ACEOF
14743#define SIZEOF_CHAR $ac_cv_sizeof_char
14744_ACEOF
14745
14746
14747echo "$as_me:$LINENO: checking for short" >&5
14748echo $ECHO_N "checking for short... $ECHO_C" >&6
14749if test "${ac_cv_type_short+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751else
14752 cat >conftest.$ac_ext <<_ACEOF
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{
14762if ((short *) 0)
14763 return 0;
14764if (sizeof (short))
14765 return 0;
14766 ;
14767 return 0;
14768}
14769_ACEOF
14770rm -f conftest.$ac_objext
14771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14772 (eval $ac_compile) 2>conftest.er1
a848cd7e 14773 ac_status=$?
ac1cb8d3
VS
14774 grep -v '^ *+' conftest.er1 >conftest.err
14775 rm -f conftest.er1
14776 cat conftest.err >&5
a848cd7e
SC
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
ac1cb8d3
VS
14779 { ac_try='test -z "$ac_c_werror_flag"
14780 || test ! -s conftest.err'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; } &&
14786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14789 ac_status=$?
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; }; then
14792 ac_cv_type_short=yes
14793else
14794 echo "$as_me: failed program was:" >&5
14795sed 's/^/| /' conftest.$ac_ext >&5
14796
14797ac_cv_type_short=no
14798fi
ac1cb8d3 14799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14800fi
14801echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14802echo "${ECHO_T}$ac_cv_type_short" >&6
14803
14804echo "$as_me:$LINENO: checking size of short" >&5
14805echo $ECHO_N "checking size of short... $ECHO_C" >&6
14806if test "${ac_cv_sizeof_short+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808else
14809 if test "$ac_cv_type_short" = yes; then
14810 # The cast to unsigned long works around a bug in the HP C Compiler
14811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14813 # This bug is HP SR number 8606223364.
14814 if test "$cross_compiling" = yes; then
14815 # Depending upon the size, compute the lo and hi bounds.
14816cat >conftest.$ac_ext <<_ACEOF
14817/* confdefs.h. */
14818_ACEOF
14819cat confdefs.h >>conftest.$ac_ext
14820cat >>conftest.$ac_ext <<_ACEOF
14821/* end confdefs.h. */
14822$ac_includes_default
14823int
14824main ()
14825{
14826static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14827test_array [0] = 0
14828
14829 ;
14830 return 0;
14831}
14832_ACEOF
14833rm -f conftest.$ac_objext
14834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14835 (eval $ac_compile) 2>conftest.er1
a848cd7e 14836 ac_status=$?
ac1cb8d3
VS
14837 grep -v '^ *+' conftest.er1 >conftest.err
14838 rm -f conftest.er1
14839 cat conftest.err >&5
a848cd7e
SC
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } &&
ac1cb8d3
VS
14842 { ac_try='test -z "$ac_c_werror_flag"
14843 || test ! -s conftest.err'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14846 ac_status=$?
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; } &&
14849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14852 ac_status=$?
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }; then
14855 ac_lo=0 ac_mid=0
14856 while :; do
14857 cat >conftest.$ac_ext <<_ACEOF
14858/* confdefs.h. */
14859_ACEOF
14860cat confdefs.h >>conftest.$ac_ext
14861cat >>conftest.$ac_ext <<_ACEOF
14862/* end confdefs.h. */
14863$ac_includes_default
14864int
14865main ()
14866{
14867static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14868test_array [0] = 0
14869
14870 ;
14871 return 0;
14872}
14873_ACEOF
14874rm -f conftest.$ac_objext
14875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14876 (eval $ac_compile) 2>conftest.er1
a848cd7e 14877 ac_status=$?
ac1cb8d3
VS
14878 grep -v '^ *+' conftest.er1 >conftest.err
14879 rm -f conftest.er1
14880 cat conftest.err >&5
a848cd7e
SC
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } &&
ac1cb8d3
VS
14883 { ac_try='test -z "$ac_c_werror_flag"
14884 || test ! -s conftest.err'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; } &&
14890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892 (eval $ac_try) 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; }; then
14896 ac_hi=$ac_mid; break
14897else
14898 echo "$as_me: failed program was:" >&5
14899sed 's/^/| /' conftest.$ac_ext >&5
14900
14901ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14902 if test $ac_lo -le $ac_mid; then
14903 ac_lo= ac_hi=
14904 break
14905 fi
14906 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14907fi
ac1cb8d3 14908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14909 done
14910else
14911 echo "$as_me: failed program was:" >&5
14912sed 's/^/| /' conftest.$ac_ext >&5
14913
14914cat >conftest.$ac_ext <<_ACEOF
14915/* confdefs.h. */
14916_ACEOF
14917cat confdefs.h >>conftest.$ac_ext
14918cat >>conftest.$ac_ext <<_ACEOF
14919/* end confdefs.h. */
14920$ac_includes_default
14921int
14922main ()
14923{
14924static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14925test_array [0] = 0
14926
14927 ;
14928 return 0;
14929}
14930_ACEOF
14931rm -f conftest.$ac_objext
14932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14933 (eval $ac_compile) 2>conftest.er1
a848cd7e 14934 ac_status=$?
ac1cb8d3
VS
14935 grep -v '^ *+' conftest.er1 >conftest.err
14936 rm -f conftest.er1
14937 cat conftest.err >&5
a848cd7e
SC
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } &&
ac1cb8d3
VS
14940 { ac_try='test -z "$ac_c_werror_flag"
14941 || test ! -s conftest.err'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14944 ac_status=$?
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; } &&
14947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949 (eval $ac_try) 2>&5
14950 ac_status=$?
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); }; }; then
14953 ac_hi=-1 ac_mid=-1
14954 while :; do
14955 cat >conftest.$ac_ext <<_ACEOF
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
14961$ac_includes_default
14962int
14963main ()
14964{
14965static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14966test_array [0] = 0
14967
14968 ;
14969 return 0;
14970}
14971_ACEOF
14972rm -f conftest.$ac_objext
14973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14974 (eval $ac_compile) 2>conftest.er1
a848cd7e 14975 ac_status=$?
ac1cb8d3
VS
14976 grep -v '^ *+' conftest.er1 >conftest.err
14977 rm -f conftest.er1
14978 cat conftest.err >&5
a848cd7e
SC
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } &&
ac1cb8d3
VS
14981 { ac_try='test -z "$ac_c_werror_flag"
14982 || test ! -s conftest.err'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; } &&
14988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14990 (eval $ac_try) 2>&5
14991 ac_status=$?
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 ac_lo=$ac_mid; break
14995else
14996 echo "$as_me: failed program was:" >&5
14997sed 's/^/| /' conftest.$ac_ext >&5
14998
14999ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15000 if test $ac_mid -le $ac_hi; then
15001 ac_lo= ac_hi=
15002 break
15003 fi
15004 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15005fi
ac1cb8d3 15006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15007 done
15008else
15009 echo "$as_me: failed program was:" >&5
15010sed 's/^/| /' conftest.$ac_ext >&5
15011
15012ac_lo= ac_hi=
15013fi
ac1cb8d3 15014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15015fi
ac1cb8d3 15016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15017# Binary search between lo and hi bounds.
15018while test "x$ac_lo" != "x$ac_hi"; do
15019 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15020 cat >conftest.$ac_ext <<_ACEOF
15021/* confdefs.h. */
15022_ACEOF
15023cat confdefs.h >>conftest.$ac_ext
15024cat >>conftest.$ac_ext <<_ACEOF
15025/* end confdefs.h. */
15026$ac_includes_default
15027int
15028main ()
15029{
15030static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15031test_array [0] = 0
15032
15033 ;
15034 return 0;
15035}
15036_ACEOF
15037rm -f conftest.$ac_objext
15038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15039 (eval $ac_compile) 2>conftest.er1
a848cd7e 15040 ac_status=$?
ac1cb8d3
VS
15041 grep -v '^ *+' conftest.er1 >conftest.err
15042 rm -f conftest.er1
15043 cat conftest.err >&5
a848cd7e
SC
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
ac1cb8d3
VS
15046 { ac_try='test -z "$ac_c_werror_flag"
15047 || test ! -s conftest.err'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15056 ac_status=$?
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_hi=$ac_mid
15060else
15061 echo "$as_me: failed program was:" >&5
15062sed 's/^/| /' conftest.$ac_ext >&5
15063
15064ac_lo=`expr '(' $ac_mid ')' + 1`
15065fi
ac1cb8d3 15066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15067done
15068case $ac_lo in
15069?*) ac_cv_sizeof_short=$ac_lo;;
15070'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15071See \`config.log' for more details." >&5
15072echo "$as_me: error: cannot compute sizeof (short), 77
15073See \`config.log' for more details." >&2;}
15074 { (exit 1); exit 1; }; } ;;
15075esac
15076else
15077 if test "$cross_compiling" = yes; then
15078 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15079See \`config.log' for more details." >&5
15080echo "$as_me: error: cannot run test program while cross compiling
15081See \`config.log' for more details." >&2;}
15082 { (exit 1); exit 1; }; }
15083else
15084 cat >conftest.$ac_ext <<_ACEOF
15085/* confdefs.h. */
15086_ACEOF
15087cat confdefs.h >>conftest.$ac_ext
15088cat >>conftest.$ac_ext <<_ACEOF
15089/* end confdefs.h. */
15090$ac_includes_default
15091long longval () { return (long) (sizeof (short)); }
15092unsigned long ulongval () { return (long) (sizeof (short)); }
15093#include <stdio.h>
15094#include <stdlib.h>
15095int
15096main ()
15097{
15098
15099 FILE *f = fopen ("conftest.val", "w");
15100 if (! f)
15101 exit (1);
15102 if (((long) (sizeof (short))) < 0)
15103 {
15104 long i = longval ();
15105 if (i != ((long) (sizeof (short))))
15106 exit (1);
15107 fprintf (f, "%ld\n", i);
15108 }
15109 else
15110 {
15111 unsigned long i = ulongval ();
15112 if (i != ((long) (sizeof (short))))
15113 exit (1);
15114 fprintf (f, "%lu\n", i);
15115 }
15116 exit (ferror (f) || fclose (f) != 0);
15117
15118 ;
15119 return 0;
15120}
15121_ACEOF
15122rm -f conftest$ac_exeext
15123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15124 (eval $ac_link) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15129 (eval $ac_try) 2>&5
15130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }; then
15133 ac_cv_sizeof_short=`cat conftest.val`
15134else
15135 echo "$as_me: program exited with status $ac_status" >&5
15136echo "$as_me: failed program was:" >&5
15137sed 's/^/| /' conftest.$ac_ext >&5
15138
15139( exit $ac_status )
15140{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15141See \`config.log' for more details." >&5
15142echo "$as_me: error: cannot compute sizeof (short), 77
15143See \`config.log' for more details." >&2;}
15144 { (exit 1); exit 1; }; }
15145fi
ac1cb8d3 15146rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15147fi
15148fi
15149rm -f conftest.val
15150else
15151 ac_cv_sizeof_short=0
15152fi
15153fi
15154echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15155echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15156cat >>confdefs.h <<_ACEOF
15157#define SIZEOF_SHORT $ac_cv_sizeof_short
15158_ACEOF
15159
15160
15161echo "$as_me:$LINENO: checking for void *" >&5
15162echo $ECHO_N "checking for void *... $ECHO_C" >&6
15163if test "${ac_cv_type_void_p+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15165else
15166 cat >conftest.$ac_ext <<_ACEOF
15167/* confdefs.h. */
15168_ACEOF
15169cat confdefs.h >>conftest.$ac_ext
15170cat >>conftest.$ac_ext <<_ACEOF
15171/* end confdefs.h. */
15172$ac_includes_default
15173int
15174main ()
15175{
15176if ((void * *) 0)
15177 return 0;
15178if (sizeof (void *))
15179 return 0;
15180 ;
15181 return 0;
15182}
15183_ACEOF
15184rm -f conftest.$ac_objext
15185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15186 (eval $ac_compile) 2>conftest.er1
a848cd7e 15187 ac_status=$?
ac1cb8d3
VS
15188 grep -v '^ *+' conftest.er1 >conftest.err
15189 rm -f conftest.er1
15190 cat conftest.err >&5
a848cd7e
SC
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } &&
ac1cb8d3
VS
15193 { ac_try='test -z "$ac_c_werror_flag"
15194 || test ! -s conftest.err'
15195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196 (eval $ac_try) 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15203 ac_status=$?
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; }; then
15206 ac_cv_type_void_p=yes
15207else
15208 echo "$as_me: failed program was:" >&5
15209sed 's/^/| /' conftest.$ac_ext >&5
15210
15211ac_cv_type_void_p=no
15212fi
ac1cb8d3 15213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15214fi
15215echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15216echo "${ECHO_T}$ac_cv_type_void_p" >&6
15217
15218echo "$as_me:$LINENO: checking size of void *" >&5
15219echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15220if test "${ac_cv_sizeof_void_p+set}" = set; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15222else
15223 if test "$ac_cv_type_void_p" = yes; then
15224 # The cast to unsigned long works around a bug in the HP C Compiler
15225 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15226 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15227 # This bug is HP SR number 8606223364.
15228 if test "$cross_compiling" = yes; then
15229 # Depending upon the size, compute the lo and hi bounds.
15230cat >conftest.$ac_ext <<_ACEOF
15231/* confdefs.h. */
15232_ACEOF
15233cat confdefs.h >>conftest.$ac_ext
15234cat >>conftest.$ac_ext <<_ACEOF
15235/* end confdefs.h. */
15236$ac_includes_default
15237int
15238main ()
15239{
15240static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15241test_array [0] = 0
15242
15243 ;
15244 return 0;
15245}
15246_ACEOF
15247rm -f conftest.$ac_objext
15248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15249 (eval $ac_compile) 2>conftest.er1
a848cd7e 15250 ac_status=$?
ac1cb8d3
VS
15251 grep -v '^ *+' conftest.er1 >conftest.err
15252 rm -f conftest.er1
15253 cat conftest.err >&5
a848cd7e
SC
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } &&
ac1cb8d3
VS
15256 { ac_try='test -z "$ac_c_werror_flag"
15257 || test ! -s conftest.err'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; } &&
15263 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265 (eval $ac_try) 2>&5
15266 ac_status=$?
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; }; then
15269 ac_lo=0 ac_mid=0
15270 while :; do
15271 cat >conftest.$ac_ext <<_ACEOF
15272/* confdefs.h. */
15273_ACEOF
15274cat confdefs.h >>conftest.$ac_ext
15275cat >>conftest.$ac_ext <<_ACEOF
15276/* end confdefs.h. */
15277$ac_includes_default
15278int
15279main ()
15280{
15281static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15282test_array [0] = 0
15283
15284 ;
15285 return 0;
15286}
15287_ACEOF
15288rm -f conftest.$ac_objext
15289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15290 (eval $ac_compile) 2>conftest.er1
a848cd7e 15291 ac_status=$?
ac1cb8d3
VS
15292 grep -v '^ *+' conftest.er1 >conftest.err
15293 rm -f conftest.er1
15294 cat conftest.err >&5
a848cd7e
SC
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } &&
ac1cb8d3
VS
15297 { ac_try='test -z "$ac_c_werror_flag"
15298 || test ! -s conftest.err'
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 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'
a848cd7e
SC
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; break
15311else
15312 echo "$as_me: failed program was:" >&5
15313sed 's/^/| /' conftest.$ac_ext >&5
15314
15315ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15316 if test $ac_lo -le $ac_mid; then
15317 ac_lo= ac_hi=
15318 break
15319 fi
15320 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15321fi
ac1cb8d3 15322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15323 done
15324else
15325 echo "$as_me: failed program was:" >&5
15326sed 's/^/| /' conftest.$ac_ext >&5
15327
15328cat >conftest.$ac_ext <<_ACEOF
15329/* confdefs.h. */
15330_ACEOF
15331cat confdefs.h >>conftest.$ac_ext
15332cat >>conftest.$ac_ext <<_ACEOF
15333/* end confdefs.h. */
15334$ac_includes_default
15335int
15336main ()
15337{
15338static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15339test_array [0] = 0
15340
15341 ;
15342 return 0;
15343}
15344_ACEOF
15345rm -f conftest.$ac_objext
15346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15347 (eval $ac_compile) 2>conftest.er1
a848cd7e 15348 ac_status=$?
ac1cb8d3
VS
15349 grep -v '^ *+' conftest.er1 >conftest.err
15350 rm -f conftest.er1
15351 cat conftest.err >&5
a848cd7e
SC
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } &&
ac1cb8d3
VS
15354 { ac_try='test -z "$ac_c_werror_flag"
15355 || test ! -s conftest.err'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; } &&
15361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15364 ac_status=$?
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15367 ac_hi=-1 ac_mid=-1
15368 while :; do
15369 cat >conftest.$ac_ext <<_ACEOF
15370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */
15375$ac_includes_default
15376int
15377main ()
15378{
15379static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15380test_array [0] = 0
15381
15382 ;
15383 return 0;
15384}
15385_ACEOF
15386rm -f conftest.$ac_objext
15387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15388 (eval $ac_compile) 2>conftest.er1
a848cd7e 15389 ac_status=$?
ac1cb8d3
VS
15390 grep -v '^ *+' conftest.er1 >conftest.err
15391 rm -f conftest.er1
15392 cat conftest.err >&5
a848cd7e
SC
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
ac1cb8d3
VS
15395 { ac_try='test -z "$ac_c_werror_flag"
15396 || test ! -s conftest.err'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; } &&
15402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 ac_lo=$ac_mid; break
15409else
15410 echo "$as_me: failed program was:" >&5
15411sed 's/^/| /' conftest.$ac_ext >&5
15412
15413ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15414 if test $ac_mid -le $ac_hi; then
15415 ac_lo= ac_hi=
15416 break
15417 fi
15418 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15419fi
ac1cb8d3 15420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15421 done
15422else
15423 echo "$as_me: failed program was:" >&5
15424sed 's/^/| /' conftest.$ac_ext >&5
15425
15426ac_lo= ac_hi=
15427fi
ac1cb8d3 15428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15429fi
ac1cb8d3 15430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15431# Binary search between lo and hi bounds.
15432while test "x$ac_lo" != "x$ac_hi"; do
15433 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15434 cat >conftest.$ac_ext <<_ACEOF
15435/* confdefs.h. */
15436_ACEOF
15437cat confdefs.h >>conftest.$ac_ext
15438cat >>conftest.$ac_ext <<_ACEOF
15439/* end confdefs.h. */
15440$ac_includes_default
15441int
15442main ()
15443{
15444static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15445test_array [0] = 0
15446
15447 ;
15448 return 0;
15449}
15450_ACEOF
15451rm -f conftest.$ac_objext
15452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15453 (eval $ac_compile) 2>conftest.er1
a848cd7e 15454 ac_status=$?
ac1cb8d3
VS
15455 grep -v '^ *+' conftest.er1 >conftest.err
15456 rm -f conftest.er1
15457 cat conftest.err >&5
a848cd7e
SC
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
ac1cb8d3
VS
15460 { ac_try='test -z "$ac_c_werror_flag"
15461 || test ! -s conftest.err'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 ac_hi=$ac_mid
15474else
15475 echo "$as_me: failed program was:" >&5
15476sed 's/^/| /' conftest.$ac_ext >&5
15477
15478ac_lo=`expr '(' $ac_mid ')' + 1`
15479fi
ac1cb8d3 15480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15481done
15482case $ac_lo in
15483?*) ac_cv_sizeof_void_p=$ac_lo;;
15484'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15485See \`config.log' for more details." >&5
15486echo "$as_me: error: cannot compute sizeof (void *), 77
15487See \`config.log' for more details." >&2;}
15488 { (exit 1); exit 1; }; } ;;
15489esac
15490else
15491 if test "$cross_compiling" = yes; then
15492 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15493See \`config.log' for more details." >&5
15494echo "$as_me: error: cannot run test program while cross compiling
15495See \`config.log' for more details." >&2;}
15496 { (exit 1); exit 1; }; }
15497else
15498 cat >conftest.$ac_ext <<_ACEOF
15499/* confdefs.h. */
15500_ACEOF
15501cat confdefs.h >>conftest.$ac_ext
15502cat >>conftest.$ac_ext <<_ACEOF
15503/* end confdefs.h. */
15504$ac_includes_default
15505long longval () { return (long) (sizeof (void *)); }
15506unsigned long ulongval () { return (long) (sizeof (void *)); }
15507#include <stdio.h>
15508#include <stdlib.h>
15509int
15510main ()
15511{
15512
15513 FILE *f = fopen ("conftest.val", "w");
15514 if (! f)
15515 exit (1);
15516 if (((long) (sizeof (void *))) < 0)
15517 {
15518 long i = longval ();
15519 if (i != ((long) (sizeof (void *))))
15520 exit (1);
15521 fprintf (f, "%ld\n", i);
15522 }
15523 else
15524 {
15525 unsigned long i = ulongval ();
15526 if (i != ((long) (sizeof (void *))))
15527 exit (1);
15528 fprintf (f, "%lu\n", i);
15529 }
15530 exit (ferror (f) || fclose (f) != 0);
15531
15532 ;
15533 return 0;
15534}
15535_ACEOF
15536rm -f conftest$ac_exeext
15537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15538 (eval $ac_link) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 ac_cv_sizeof_void_p=`cat conftest.val`
15548else
15549 echo "$as_me: program exited with status $ac_status" >&5
15550echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
15553( exit $ac_status )
15554{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15555See \`config.log' for more details." >&5
15556echo "$as_me: error: cannot compute sizeof (void *), 77
15557See \`config.log' for more details." >&2;}
15558 { (exit 1); exit 1; }; }
15559fi
ac1cb8d3 15560rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15561fi
15562fi
15563rm -f conftest.val
15564else
15565 ac_cv_sizeof_void_p=0
15566fi
15567fi
15568echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15569echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15570cat >>confdefs.h <<_ACEOF
15571#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15572_ACEOF
15573
15574
15575echo "$as_me:$LINENO: checking for int" >&5
15576echo $ECHO_N "checking for int... $ECHO_C" >&6
15577if test "${ac_cv_type_int+set}" = set; then
15578 echo $ECHO_N "(cached) $ECHO_C" >&6
15579else
15580 cat >conftest.$ac_ext <<_ACEOF
15581/* confdefs.h. */
15582_ACEOF
15583cat confdefs.h >>conftest.$ac_ext
15584cat >>conftest.$ac_ext <<_ACEOF
15585/* end confdefs.h. */
15586$ac_includes_default
15587int
15588main ()
15589{
15590if ((int *) 0)
15591 return 0;
15592if (sizeof (int))
15593 return 0;
15594 ;
15595 return 0;
15596}
15597_ACEOF
15598rm -f conftest.$ac_objext
15599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15600 (eval $ac_compile) 2>conftest.er1
a848cd7e 15601 ac_status=$?
ac1cb8d3
VS
15602 grep -v '^ *+' conftest.er1 >conftest.err
15603 rm -f conftest.er1
15604 cat conftest.err >&5
a848cd7e
SC
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } &&
ac1cb8d3
VS
15607 { ac_try='test -z "$ac_c_werror_flag"
15608 || test ! -s conftest.err'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; } &&
15614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15620 ac_cv_type_int=yes
15621else
15622 echo "$as_me: failed program was:" >&5
15623sed 's/^/| /' conftest.$ac_ext >&5
15624
15625ac_cv_type_int=no
15626fi
ac1cb8d3 15627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15628fi
15629echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15630echo "${ECHO_T}$ac_cv_type_int" >&6
15631
15632echo "$as_me:$LINENO: checking size of int" >&5
15633echo $ECHO_N "checking size of int... $ECHO_C" >&6
15634if test "${ac_cv_sizeof_int+set}" = set; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15636else
15637 if test "$ac_cv_type_int" = yes; then
15638 # The cast to unsigned long works around a bug in the HP C Compiler
15639 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15640 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15641 # This bug is HP SR number 8606223364.
15642 if test "$cross_compiling" = yes; then
15643 # Depending upon the size, compute the lo and hi bounds.
15644cat >conftest.$ac_ext <<_ACEOF
15645/* confdefs.h. */
15646_ACEOF
15647cat confdefs.h >>conftest.$ac_ext
15648cat >>conftest.$ac_ext <<_ACEOF
15649/* end confdefs.h. */
15650$ac_includes_default
15651int
15652main ()
15653{
15654static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15655test_array [0] = 0
15656
15657 ;
15658 return 0;
15659}
15660_ACEOF
15661rm -f conftest.$ac_objext
15662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15663 (eval $ac_compile) 2>conftest.er1
a848cd7e 15664 ac_status=$?
ac1cb8d3
VS
15665 grep -v '^ *+' conftest.er1 >conftest.err
15666 rm -f conftest.er1
15667 cat conftest.err >&5
a848cd7e
SC
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
ac1cb8d3
VS
15670 { ac_try='test -z "$ac_c_werror_flag"
15671 || test ! -s conftest.err'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; } &&
15677 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15680 ac_status=$?
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 ac_lo=0 ac_mid=0
15684 while :; do
15685 cat >conftest.$ac_ext <<_ACEOF
15686/* confdefs.h. */
15687_ACEOF
15688cat confdefs.h >>conftest.$ac_ext
15689cat >>conftest.$ac_ext <<_ACEOF
15690/* end confdefs.h. */
15691$ac_includes_default
15692int
15693main ()
15694{
15695static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15696test_array [0] = 0
15697
15698 ;
15699 return 0;
15700}
15701_ACEOF
15702rm -f conftest.$ac_objext
15703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15704 (eval $ac_compile) 2>conftest.er1
a848cd7e 15705 ac_status=$?
ac1cb8d3
VS
15706 grep -v '^ *+' conftest.er1 >conftest.err
15707 rm -f conftest.er1
15708 cat conftest.err >&5
a848cd7e
SC
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } &&
ac1cb8d3
VS
15711 { ac_try='test -z "$ac_c_werror_flag"
15712 || test ! -s conftest.err'
15713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714 (eval $ac_try) 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; } &&
15718 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720 (eval $ac_try) 2>&5
15721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; }; then
15724 ac_hi=$ac_mid; break
15725else
15726 echo "$as_me: failed program was:" >&5
15727sed 's/^/| /' conftest.$ac_ext >&5
15728
15729ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15730 if test $ac_lo -le $ac_mid; then
15731 ac_lo= ac_hi=
15732 break
15733 fi
15734 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15735fi
ac1cb8d3 15736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15737 done
15738else
15739 echo "$as_me: failed program was:" >&5
15740sed 's/^/| /' conftest.$ac_ext >&5
15741
15742cat >conftest.$ac_ext <<_ACEOF
15743/* confdefs.h. */
15744_ACEOF
15745cat confdefs.h >>conftest.$ac_ext
15746cat >>conftest.$ac_ext <<_ACEOF
15747/* end confdefs.h. */
15748$ac_includes_default
15749int
15750main ()
15751{
15752static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15753test_array [0] = 0
15754
15755 ;
15756 return 0;
15757}
15758_ACEOF
15759rm -f conftest.$ac_objext
15760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15761 (eval $ac_compile) 2>conftest.er1
a848cd7e 15762 ac_status=$?
ac1cb8d3
VS
15763 grep -v '^ *+' conftest.er1 >conftest.err
15764 rm -f conftest.er1
15765 cat conftest.err >&5
a848cd7e
SC
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } &&
ac1cb8d3
VS
15768 { ac_try='test -z "$ac_c_werror_flag"
15769 || test ! -s conftest.err'
15770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; } &&
15775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15778 ac_status=$?
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; }; then
15781 ac_hi=-1 ac_mid=-1
15782 while :; do
15783 cat >conftest.$ac_ext <<_ACEOF
15784/* confdefs.h. */
15785_ACEOF
15786cat confdefs.h >>conftest.$ac_ext
15787cat >>conftest.$ac_ext <<_ACEOF
15788/* end confdefs.h. */
15789$ac_includes_default
15790int
15791main ()
15792{
15793static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15794test_array [0] = 0
15795
15796 ;
15797 return 0;
15798}
15799_ACEOF
15800rm -f conftest.$ac_objext
15801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15802 (eval $ac_compile) 2>conftest.er1
a848cd7e 15803 ac_status=$?
ac1cb8d3
VS
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
a848cd7e
SC
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
ac1cb8d3
VS
15809 { ac_try='test -z "$ac_c_werror_flag"
15810 || test ! -s conftest.err'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
15816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15822 ac_lo=$ac_mid; break
15823else
15824 echo "$as_me: failed program was:" >&5
15825sed 's/^/| /' conftest.$ac_ext >&5
15826
15827ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15828 if test $ac_mid -le $ac_hi; then
15829 ac_lo= ac_hi=
15830 break
15831 fi
15832 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15833fi
ac1cb8d3 15834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15835 done
15836else
15837 echo "$as_me: failed program was:" >&5
15838sed 's/^/| /' conftest.$ac_ext >&5
15839
15840ac_lo= ac_hi=
15841fi
ac1cb8d3 15842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15843fi
ac1cb8d3 15844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15845# Binary search between lo and hi bounds.
15846while test "x$ac_lo" != "x$ac_hi"; do
15847 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15848 cat >conftest.$ac_ext <<_ACEOF
15849/* confdefs.h. */
15850_ACEOF
15851cat confdefs.h >>conftest.$ac_ext
15852cat >>conftest.$ac_ext <<_ACEOF
15853/* end confdefs.h. */
15854$ac_includes_default
15855int
15856main ()
15857{
15858static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15859test_array [0] = 0
15860
15861 ;
15862 return 0;
15863}
15864_ACEOF
15865rm -f conftest.$ac_objext
15866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15867 (eval $ac_compile) 2>conftest.er1
a848cd7e 15868 ac_status=$?
ac1cb8d3
VS
15869 grep -v '^ *+' conftest.er1 >conftest.err
15870 rm -f conftest.er1
15871 cat conftest.err >&5
a848cd7e
SC
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } &&
ac1cb8d3
VS
15874 { ac_try='test -z "$ac_c_werror_flag"
15875 || test ! -s conftest.err'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; } &&
15881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 ac_hi=$ac_mid
15888else
15889 echo "$as_me: failed program was:" >&5
15890sed 's/^/| /' conftest.$ac_ext >&5
15891
15892ac_lo=`expr '(' $ac_mid ')' + 1`
15893fi
ac1cb8d3 15894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15895done
15896case $ac_lo in
15897?*) ac_cv_sizeof_int=$ac_lo;;
15898'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15899See \`config.log' for more details." >&5
15900echo "$as_me: error: cannot compute sizeof (int), 77
15901See \`config.log' for more details." >&2;}
15902 { (exit 1); exit 1; }; } ;;
15903esac
15904else
15905 if test "$cross_compiling" = yes; then
15906 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15907See \`config.log' for more details." >&5
15908echo "$as_me: error: cannot run test program while cross compiling
15909See \`config.log' for more details." >&2;}
15910 { (exit 1); exit 1; }; }
15911else
15912 cat >conftest.$ac_ext <<_ACEOF
15913/* confdefs.h. */
15914_ACEOF
15915cat confdefs.h >>conftest.$ac_ext
15916cat >>conftest.$ac_ext <<_ACEOF
15917/* end confdefs.h. */
15918$ac_includes_default
15919long longval () { return (long) (sizeof (int)); }
15920unsigned long ulongval () { return (long) (sizeof (int)); }
15921#include <stdio.h>
15922#include <stdlib.h>
15923int
15924main ()
15925{
15926
15927 FILE *f = fopen ("conftest.val", "w");
15928 if (! f)
15929 exit (1);
15930 if (((long) (sizeof (int))) < 0)
15931 {
15932 long i = longval ();
15933 if (i != ((long) (sizeof (int))))
15934 exit (1);
15935 fprintf (f, "%ld\n", i);
15936 }
15937 else
15938 {
15939 unsigned long i = ulongval ();
15940 if (i != ((long) (sizeof (int))))
15941 exit (1);
15942 fprintf (f, "%lu\n", i);
15943 }
15944 exit (ferror (f) || fclose (f) != 0);
15945
15946 ;
15947 return 0;
15948}
15949_ACEOF
15950rm -f conftest$ac_exeext
15951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15952 (eval $ac_link) 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; }; then
15961 ac_cv_sizeof_int=`cat conftest.val`
15962else
15963 echo "$as_me: program exited with status $ac_status" >&5
15964echo "$as_me: failed program was:" >&5
15965sed 's/^/| /' conftest.$ac_ext >&5
15966
15967( exit $ac_status )
15968{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15969See \`config.log' for more details." >&5
15970echo "$as_me: error: cannot compute sizeof (int), 77
15971See \`config.log' for more details." >&2;}
15972 { (exit 1); exit 1; }; }
15973fi
ac1cb8d3 15974rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15975fi
15976fi
15977rm -f conftest.val
15978else
15979 ac_cv_sizeof_int=0
15980fi
15981fi
15982echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15983echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15984cat >>confdefs.h <<_ACEOF
15985#define SIZEOF_INT $ac_cv_sizeof_int
15986_ACEOF
15987
15988
15989echo "$as_me:$LINENO: checking for long" >&5
15990echo $ECHO_N "checking for long... $ECHO_C" >&6
15991if test "${ac_cv_type_long+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15993else
15994 cat >conftest.$ac_ext <<_ACEOF
15995/* confdefs.h. */
15996_ACEOF
15997cat confdefs.h >>conftest.$ac_ext
15998cat >>conftest.$ac_ext <<_ACEOF
15999/* end confdefs.h. */
16000$ac_includes_default
16001int
16002main ()
16003{
16004if ((long *) 0)
16005 return 0;
16006if (sizeof (long))
16007 return 0;
16008 ;
16009 return 0;
16010}
16011_ACEOF
16012rm -f conftest.$ac_objext
16013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16014 (eval $ac_compile) 2>conftest.er1
a848cd7e 16015 ac_status=$?
ac1cb8d3
VS
16016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
a848cd7e
SC
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } &&
ac1cb8d3
VS
16021 { ac_try='test -z "$ac_c_werror_flag"
16022 || test ! -s conftest.err'
16023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16024 (eval $ac_try) 2>&5
16025 ac_status=$?
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; } &&
16028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; }; then
16034 ac_cv_type_long=yes
16035else
16036 echo "$as_me: failed program was:" >&5
16037sed 's/^/| /' conftest.$ac_ext >&5
16038
16039ac_cv_type_long=no
16040fi
ac1cb8d3 16041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16042fi
16043echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16044echo "${ECHO_T}$ac_cv_type_long" >&6
16045
16046echo "$as_me:$LINENO: checking size of long" >&5
16047echo $ECHO_N "checking size of long... $ECHO_C" >&6
16048if test "${ac_cv_sizeof_long+set}" = set; then
16049 echo $ECHO_N "(cached) $ECHO_C" >&6
16050else
16051 if test "$ac_cv_type_long" = yes; then
16052 # The cast to unsigned long works around a bug in the HP C Compiler
16053 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16054 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16055 # This bug is HP SR number 8606223364.
16056 if test "$cross_compiling" = yes; then
16057 # Depending upon the size, compute the lo and hi bounds.
16058cat >conftest.$ac_ext <<_ACEOF
16059/* confdefs.h. */
16060_ACEOF
16061cat confdefs.h >>conftest.$ac_ext
16062cat >>conftest.$ac_ext <<_ACEOF
16063/* end confdefs.h. */
16064$ac_includes_default
16065int
16066main ()
16067{
16068static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16069test_array [0] = 0
16070
16071 ;
16072 return 0;
16073}
16074_ACEOF
16075rm -f conftest.$ac_objext
16076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16077 (eval $ac_compile) 2>conftest.er1
a848cd7e 16078 ac_status=$?
ac1cb8d3
VS
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
a848cd7e
SC
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } &&
ac1cb8d3
VS
16084 { ac_try='test -z "$ac_c_werror_flag"
16085 || test ! -s conftest.err'
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097 ac_lo=0 ac_mid=0
16098 while :; do
16099 cat >conftest.$ac_ext <<_ACEOF
16100/* confdefs.h. */
16101_ACEOF
16102cat confdefs.h >>conftest.$ac_ext
16103cat >>conftest.$ac_ext <<_ACEOF
16104/* end confdefs.h. */
16105$ac_includes_default
16106int
16107main ()
16108{
16109static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16110test_array [0] = 0
16111
16112 ;
16113 return 0;
16114}
16115_ACEOF
16116rm -f conftest.$ac_objext
16117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16118 (eval $ac_compile) 2>conftest.er1
a848cd7e 16119 ac_status=$?
ac1cb8d3
VS
16120 grep -v '^ *+' conftest.er1 >conftest.err
16121 rm -f conftest.er1
16122 cat conftest.err >&5
a848cd7e
SC
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } &&
ac1cb8d3
VS
16125 { ac_try='test -z "$ac_c_werror_flag"
16126 || test ! -s conftest.err'
16127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128 (eval $ac_try) 2>&5
16129 ac_status=$?
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; } &&
16132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; }; then
16138 ac_hi=$ac_mid; break
16139else
16140 echo "$as_me: failed program was:" >&5
16141sed 's/^/| /' conftest.$ac_ext >&5
16142
16143ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16144 if test $ac_lo -le $ac_mid; then
16145 ac_lo= ac_hi=
16146 break
16147 fi
16148 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16149fi
ac1cb8d3 16150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16151 done
16152else
16153 echo "$as_me: failed program was:" >&5
16154sed 's/^/| /' conftest.$ac_ext >&5
16155
16156cat >conftest.$ac_ext <<_ACEOF
16157/* confdefs.h. */
16158_ACEOF
16159cat confdefs.h >>conftest.$ac_ext
16160cat >>conftest.$ac_ext <<_ACEOF
16161/* end confdefs.h. */
16162$ac_includes_default
16163int
16164main ()
16165{
16166static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16167test_array [0] = 0
16168
16169 ;
16170 return 0;
16171}
16172_ACEOF
16173rm -f conftest.$ac_objext
16174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16175 (eval $ac_compile) 2>conftest.er1
a848cd7e 16176 ac_status=$?
ac1cb8d3
VS
16177 grep -v '^ *+' conftest.er1 >conftest.err
16178 rm -f conftest.er1
16179 cat conftest.err >&5
a848cd7e
SC
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } &&
ac1cb8d3
VS
16182 { ac_try='test -z "$ac_c_werror_flag"
16183 || test ! -s conftest.err'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; } &&
16189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16195 ac_hi=-1 ac_mid=-1
16196 while :; do
16197 cat >conftest.$ac_ext <<_ACEOF
16198/* confdefs.h. */
16199_ACEOF
16200cat confdefs.h >>conftest.$ac_ext
16201cat >>conftest.$ac_ext <<_ACEOF
16202/* end confdefs.h. */
16203$ac_includes_default
16204int
16205main ()
16206{
16207static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16208test_array [0] = 0
16209
16210 ;
16211 return 0;
16212}
16213_ACEOF
16214rm -f conftest.$ac_objext
16215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16216 (eval $ac_compile) 2>conftest.er1
a848cd7e 16217 ac_status=$?
ac1cb8d3
VS
16218 grep -v '^ *+' conftest.er1 >conftest.err
16219 rm -f conftest.er1
16220 cat conftest.err >&5
a848cd7e
SC
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } &&
ac1cb8d3
VS
16223 { ac_try='test -z "$ac_c_werror_flag"
16224 || test ! -s conftest.err'
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; } &&
16230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5
16233 ac_status=$?
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; }; then
16236 ac_lo=$ac_mid; break
16237else
16238 echo "$as_me: failed program was:" >&5
16239sed 's/^/| /' conftest.$ac_ext >&5
16240
16241ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16242 if test $ac_mid -le $ac_hi; then
16243 ac_lo= ac_hi=
16244 break
16245 fi
16246 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16247fi
ac1cb8d3 16248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16249 done
16250else
16251 echo "$as_me: failed program was:" >&5
16252sed 's/^/| /' conftest.$ac_ext >&5
16253
16254ac_lo= ac_hi=
16255fi
ac1cb8d3 16256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16257fi
ac1cb8d3 16258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16259# Binary search between lo and hi bounds.
16260while test "x$ac_lo" != "x$ac_hi"; do
16261 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16262 cat >conftest.$ac_ext <<_ACEOF
16263/* confdefs.h. */
16264_ACEOF
16265cat confdefs.h >>conftest.$ac_ext
16266cat >>conftest.$ac_ext <<_ACEOF
16267/* end confdefs.h. */
16268$ac_includes_default
16269int
16270main ()
16271{
16272static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16273test_array [0] = 0
16274
16275 ;
16276 return 0;
16277}
16278_ACEOF
16279rm -f conftest.$ac_objext
16280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16281 (eval $ac_compile) 2>conftest.er1
a848cd7e 16282 ac_status=$?
ac1cb8d3
VS
16283 grep -v '^ *+' conftest.er1 >conftest.err
16284 rm -f conftest.er1
16285 cat conftest.err >&5
a848cd7e
SC
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } &&
ac1cb8d3
VS
16288 { ac_try='test -z "$ac_c_werror_flag"
16289 || test ! -s conftest.err'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; } &&
16295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; }; then
16301 ac_hi=$ac_mid
16302else
16303 echo "$as_me: failed program was:" >&5
16304sed 's/^/| /' conftest.$ac_ext >&5
16305
16306ac_lo=`expr '(' $ac_mid ')' + 1`
16307fi
ac1cb8d3 16308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16309done
16310case $ac_lo in
16311?*) ac_cv_sizeof_long=$ac_lo;;
16312'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16313See \`config.log' for more details." >&5
16314echo "$as_me: error: cannot compute sizeof (long), 77
16315See \`config.log' for more details." >&2;}
16316 { (exit 1); exit 1; }; } ;;
16317esac
16318else
16319 if test "$cross_compiling" = yes; then
16320 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16321See \`config.log' for more details." >&5
16322echo "$as_me: error: cannot run test program while cross compiling
16323See \`config.log' for more details." >&2;}
16324 { (exit 1); exit 1; }; }
16325else
16326 cat >conftest.$ac_ext <<_ACEOF
16327/* confdefs.h. */
16328_ACEOF
16329cat confdefs.h >>conftest.$ac_ext
16330cat >>conftest.$ac_ext <<_ACEOF
16331/* end confdefs.h. */
16332$ac_includes_default
16333long longval () { return (long) (sizeof (long)); }
16334unsigned long ulongval () { return (long) (sizeof (long)); }
16335#include <stdio.h>
16336#include <stdlib.h>
16337int
16338main ()
16339{
16340
16341 FILE *f = fopen ("conftest.val", "w");
16342 if (! f)
16343 exit (1);
16344 if (((long) (sizeof (long))) < 0)
16345 {
16346 long i = longval ();
16347 if (i != ((long) (sizeof (long))))
16348 exit (1);
16349 fprintf (f, "%ld\n", i);
16350 }
16351 else
16352 {
16353 unsigned long i = ulongval ();
16354 if (i != ((long) (sizeof (long))))
16355 exit (1);
16356 fprintf (f, "%lu\n", i);
16357 }
16358 exit (ferror (f) || fclose (f) != 0);
16359
16360 ;
16361 return 0;
16362}
16363_ACEOF
16364rm -f conftest$ac_exeext
16365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16366 (eval $ac_link) 2>&5
16367 ac_status=$?
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; }; then
16375 ac_cv_sizeof_long=`cat conftest.val`
16376else
16377 echo "$as_me: program exited with status $ac_status" >&5
16378echo "$as_me: failed program was:" >&5
16379sed 's/^/| /' conftest.$ac_ext >&5
16380
16381( exit $ac_status )
16382{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16383See \`config.log' for more details." >&5
16384echo "$as_me: error: cannot compute sizeof (long), 77
16385See \`config.log' for more details." >&2;}
16386 { (exit 1); exit 1; }; }
16387fi
ac1cb8d3 16388rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16389fi
16390fi
16391rm -f conftest.val
16392else
16393 ac_cv_sizeof_long=0
16394fi
16395fi
16396echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16397echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16398cat >>confdefs.h <<_ACEOF
16399#define SIZEOF_LONG $ac_cv_sizeof_long
16400_ACEOF
16401
16402
16403echo "$as_me:$LINENO: checking for size_t" >&5
16404echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16405if test "${ac_cv_type_size_t+set}" = set; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
16407else
16408 cat >conftest.$ac_ext <<_ACEOF
16409/* confdefs.h. */
16410_ACEOF
16411cat confdefs.h >>conftest.$ac_ext
16412cat >>conftest.$ac_ext <<_ACEOF
16413/* end confdefs.h. */
16414$ac_includes_default
16415int
16416main ()
16417{
16418if ((size_t *) 0)
16419 return 0;
16420if (sizeof (size_t))
16421 return 0;
16422 ;
16423 return 0;
16424}
16425_ACEOF
16426rm -f conftest.$ac_objext
16427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16428 (eval $ac_compile) 2>conftest.er1
a848cd7e 16429 ac_status=$?
ac1cb8d3
VS
16430 grep -v '^ *+' conftest.er1 >conftest.err
16431 rm -f conftest.er1
16432 cat conftest.err >&5
a848cd7e
SC
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } &&
ac1cb8d3
VS
16435 { ac_try='test -z "$ac_c_werror_flag"
16436 || test ! -s conftest.err'
16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; } &&
16442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16444 (eval $ac_try) 2>&5
16445 ac_status=$?
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); }; }; then
16448 ac_cv_type_size_t=yes
16449else
16450 echo "$as_me: failed program was:" >&5
16451sed 's/^/| /' conftest.$ac_ext >&5
16452
16453ac_cv_type_size_t=no
16454fi
ac1cb8d3 16455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16456fi
16457echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16458echo "${ECHO_T}$ac_cv_type_size_t" >&6
16459
16460echo "$as_me:$LINENO: checking size of size_t" >&5
16461echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16462if test "${ac_cv_sizeof_size_t+set}" = set; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16464else
16465 if test "$ac_cv_type_size_t" = yes; then
16466 # The cast to unsigned long works around a bug in the HP C Compiler
16467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16469 # This bug is HP SR number 8606223364.
16470 if test "$cross_compiling" = yes; then
16471 # Depending upon the size, compute the lo and hi bounds.
16472cat >conftest.$ac_ext <<_ACEOF
16473/* confdefs.h. */
16474_ACEOF
16475cat confdefs.h >>conftest.$ac_ext
16476cat >>conftest.$ac_ext <<_ACEOF
16477/* end confdefs.h. */
16478$ac_includes_default
16479int
16480main ()
16481{
16482static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16483test_array [0] = 0
16484
16485 ;
16486 return 0;
16487}
16488_ACEOF
16489rm -f conftest.$ac_objext
16490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16491 (eval $ac_compile) 2>conftest.er1
a848cd7e 16492 ac_status=$?
ac1cb8d3
VS
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
a848cd7e
SC
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
ac1cb8d3
VS
16498 { ac_try='test -z "$ac_c_werror_flag"
16499 || test ! -s conftest.err'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_lo=0 ac_mid=0
16512 while :; do
16513 cat >conftest.$ac_ext <<_ACEOF
16514/* confdefs.h. */
16515_ACEOF
16516cat confdefs.h >>conftest.$ac_ext
16517cat >>conftest.$ac_ext <<_ACEOF
16518/* end confdefs.h. */
16519$ac_includes_default
16520int
16521main ()
16522{
16523static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16524test_array [0] = 0
16525
16526 ;
16527 return 0;
16528}
16529_ACEOF
16530rm -f conftest.$ac_objext
16531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16532 (eval $ac_compile) 2>conftest.er1
a848cd7e 16533 ac_status=$?
ac1cb8d3
VS
16534 grep -v '^ *+' conftest.er1 >conftest.err
16535 rm -f conftest.er1
16536 cat conftest.err >&5
a848cd7e
SC
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } &&
ac1cb8d3
VS
16539 { ac_try='test -z "$ac_c_werror_flag"
16540 || test ! -s conftest.err'
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; } &&
16546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548 (eval $ac_try) 2>&5
16549 ac_status=$?
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; }; then
16552 ac_hi=$ac_mid; break
16553else
16554 echo "$as_me: failed program was:" >&5
16555sed 's/^/| /' conftest.$ac_ext >&5
16556
16557ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16558 if test $ac_lo -le $ac_mid; then
16559 ac_lo= ac_hi=
16560 break
16561 fi
16562 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16563fi
ac1cb8d3 16564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16565 done
16566else
16567 echo "$as_me: failed program was:" >&5
16568sed 's/^/| /' conftest.$ac_ext >&5
16569
16570cat >conftest.$ac_ext <<_ACEOF
16571/* confdefs.h. */
16572_ACEOF
16573cat confdefs.h >>conftest.$ac_ext
16574cat >>conftest.$ac_ext <<_ACEOF
16575/* end confdefs.h. */
16576$ac_includes_default
16577int
16578main ()
16579{
16580static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16581test_array [0] = 0
16582
16583 ;
16584 return 0;
16585}
16586_ACEOF
16587rm -f conftest.$ac_objext
16588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16589 (eval $ac_compile) 2>conftest.er1
a848cd7e 16590 ac_status=$?
ac1cb8d3
VS
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
a848cd7e
SC
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
ac1cb8d3
VS
16596 { ac_try='test -z "$ac_c_werror_flag"
16597 || test ! -s conftest.err'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; } &&
16603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 ac_hi=-1 ac_mid=-1
16610 while :; do
16611 cat >conftest.$ac_ext <<_ACEOF
16612/* confdefs.h. */
16613_ACEOF
16614cat confdefs.h >>conftest.$ac_ext
16615cat >>conftest.$ac_ext <<_ACEOF
16616/* end confdefs.h. */
16617$ac_includes_default
16618int
16619main ()
16620{
16621static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16622test_array [0] = 0
16623
16624 ;
16625 return 0;
16626}
16627_ACEOF
16628rm -f conftest.$ac_objext
16629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16630 (eval $ac_compile) 2>conftest.er1
a848cd7e 16631 ac_status=$?
ac1cb8d3
VS
16632 grep -v '^ *+' conftest.er1 >conftest.err
16633 rm -f conftest.er1
16634 cat conftest.err >&5
a848cd7e
SC
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); } &&
ac1cb8d3
VS
16637 { ac_try='test -z "$ac_c_werror_flag"
16638 || test ! -s conftest.err'
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; } &&
16644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16646 (eval $ac_try) 2>&5
16647 ac_status=$?
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); }; }; then
16650 ac_lo=$ac_mid; break
16651else
16652 echo "$as_me: failed program was:" >&5
16653sed 's/^/| /' conftest.$ac_ext >&5
16654
16655ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16656 if test $ac_mid -le $ac_hi; then
16657 ac_lo= ac_hi=
16658 break
16659 fi
16660 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16661fi
ac1cb8d3 16662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16663 done
16664else
16665 echo "$as_me: failed program was:" >&5
16666sed 's/^/| /' conftest.$ac_ext >&5
16667
16668ac_lo= ac_hi=
16669fi
ac1cb8d3 16670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16671fi
ac1cb8d3 16672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16673# Binary search between lo and hi bounds.
16674while test "x$ac_lo" != "x$ac_hi"; do
16675 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16676 cat >conftest.$ac_ext <<_ACEOF
16677/* confdefs.h. */
16678_ACEOF
16679cat confdefs.h >>conftest.$ac_ext
16680cat >>conftest.$ac_ext <<_ACEOF
16681/* end confdefs.h. */
16682$ac_includes_default
16683int
16684main ()
16685{
16686static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16687test_array [0] = 0
16688
16689 ;
16690 return 0;
16691}
16692_ACEOF
16693rm -f conftest.$ac_objext
16694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16695 (eval $ac_compile) 2>conftest.er1
a848cd7e 16696 ac_status=$?
ac1cb8d3
VS
16697 grep -v '^ *+' conftest.er1 >conftest.err
16698 rm -f conftest.er1
16699 cat conftest.err >&5
a848cd7e
SC
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } &&
ac1cb8d3
VS
16702 { ac_try='test -z "$ac_c_werror_flag"
16703 || test ! -s conftest.err'
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; } &&
16709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; }; then
16715 ac_hi=$ac_mid
16716else
16717 echo "$as_me: failed program was:" >&5
16718sed 's/^/| /' conftest.$ac_ext >&5
16719
16720ac_lo=`expr '(' $ac_mid ')' + 1`
16721fi
ac1cb8d3 16722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16723done
16724case $ac_lo in
16725?*) ac_cv_sizeof_size_t=$ac_lo;;
16726'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16727See \`config.log' for more details." >&5
16728echo "$as_me: error: cannot compute sizeof (size_t), 77
16729See \`config.log' for more details." >&2;}
16730 { (exit 1); exit 1; }; } ;;
16731esac
16732else
16733 if test "$cross_compiling" = yes; then
16734 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16735See \`config.log' for more details." >&5
16736echo "$as_me: error: cannot run test program while cross compiling
16737See \`config.log' for more details." >&2;}
16738 { (exit 1); exit 1; }; }
16739else
16740 cat >conftest.$ac_ext <<_ACEOF
16741/* confdefs.h. */
16742_ACEOF
16743cat confdefs.h >>conftest.$ac_ext
16744cat >>conftest.$ac_ext <<_ACEOF
16745/* end confdefs.h. */
16746$ac_includes_default
16747long longval () { return (long) (sizeof (size_t)); }
16748unsigned long ulongval () { return (long) (sizeof (size_t)); }
16749#include <stdio.h>
16750#include <stdlib.h>
16751int
16752main ()
16753{
16754
16755 FILE *f = fopen ("conftest.val", "w");
16756 if (! f)
16757 exit (1);
16758 if (((long) (sizeof (size_t))) < 0)
16759 {
16760 long i = longval ();
16761 if (i != ((long) (sizeof (size_t))))
16762 exit (1);
16763 fprintf (f, "%ld\n", i);
16764 }
16765 else
16766 {
16767 unsigned long i = ulongval ();
16768 if (i != ((long) (sizeof (size_t))))
16769 exit (1);
16770 fprintf (f, "%lu\n", i);
16771 }
16772 exit (ferror (f) || fclose (f) != 0);
16773
16774 ;
16775 return 0;
16776}
16777_ACEOF
16778rm -f conftest$ac_exeext
16779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16780 (eval $ac_link) 2>&5
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 ac_cv_sizeof_size_t=`cat conftest.val`
16790else
16791 echo "$as_me: program exited with status $ac_status" >&5
16792echo "$as_me: failed program was:" >&5
16793sed 's/^/| /' conftest.$ac_ext >&5
16794
16795( exit $ac_status )
16796{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16797See \`config.log' for more details." >&5
16798echo "$as_me: error: cannot compute sizeof (size_t), 77
16799See \`config.log' for more details." >&2;}
16800 { (exit 1); exit 1; }; }
16801fi
ac1cb8d3 16802rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16803fi
16804fi
16805rm -f conftest.val
16806else
16807 ac_cv_sizeof_size_t=0
16808fi
16809fi
16810echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16811echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16812cat >>confdefs.h <<_ACEOF
16813#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16814_ACEOF
16815
16816
16817
16818case "${host}" in
16819 arm-*-linux* )
16820 echo "$as_me:$LINENO: checking for long long" >&5
16821echo $ECHO_N "checking for long long... $ECHO_C" >&6
16822if test "${ac_cv_type_long_long+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824else
16825 cat >conftest.$ac_ext <<_ACEOF
16826/* confdefs.h. */
16827_ACEOF
16828cat confdefs.h >>conftest.$ac_ext
16829cat >>conftest.$ac_ext <<_ACEOF
16830/* end confdefs.h. */
16831$ac_includes_default
16832int
16833main ()
16834{
16835if ((long long *) 0)
16836 return 0;
16837if (sizeof (long long))
16838 return 0;
16839 ;
16840 return 0;
16841}
16842_ACEOF
16843rm -f conftest.$ac_objext
16844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16845 (eval $ac_compile) 2>conftest.er1
a848cd7e 16846 ac_status=$?
ac1cb8d3
VS
16847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
a848cd7e
SC
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
ac1cb8d3
VS
16852 { ac_try='test -z "$ac_c_werror_flag"
16853 || test ! -s conftest.err'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; } &&
16859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 ac_cv_type_long_long=yes
16866else
16867 echo "$as_me: failed program was:" >&5
16868sed 's/^/| /' conftest.$ac_ext >&5
16869
16870ac_cv_type_long_long=no
16871fi
ac1cb8d3 16872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16873fi
16874echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16875echo "${ECHO_T}$ac_cv_type_long_long" >&6
16876
16877echo "$as_me:$LINENO: checking size of long long" >&5
16878echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16879if test "${ac_cv_sizeof_long_long+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16881else
16882 if test "$ac_cv_type_long_long" = yes; then
16883 # The cast to unsigned long works around a bug in the HP C Compiler
16884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16886 # This bug is HP SR number 8606223364.
16887 if test "$cross_compiling" = yes; then
16888 # Depending upon the size, compute the lo and hi bounds.
16889cat >conftest.$ac_ext <<_ACEOF
16890/* confdefs.h. */
16891_ACEOF
16892cat confdefs.h >>conftest.$ac_ext
16893cat >>conftest.$ac_ext <<_ACEOF
16894/* end confdefs.h. */
16895$ac_includes_default
16896int
16897main ()
16898{
16899static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16900test_array [0] = 0
16901
16902 ;
16903 return 0;
16904}
16905_ACEOF
16906rm -f conftest.$ac_objext
16907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16908 (eval $ac_compile) 2>conftest.er1
a848cd7e 16909 ac_status=$?
ac1cb8d3
VS
16910 grep -v '^ *+' conftest.er1 >conftest.err
16911 rm -f conftest.er1
16912 cat conftest.err >&5
a848cd7e
SC
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
ac1cb8d3
VS
16915 { ac_try='test -z "$ac_c_werror_flag"
16916 || test ! -s conftest.err'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; } &&
16922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_lo=0 ac_mid=0
16929 while :; do
16930 cat >conftest.$ac_ext <<_ACEOF
16931/* confdefs.h. */
16932_ACEOF
16933cat confdefs.h >>conftest.$ac_ext
16934cat >>conftest.$ac_ext <<_ACEOF
16935/* end confdefs.h. */
16936$ac_includes_default
16937int
16938main ()
16939{
16940static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16941test_array [0] = 0
16942
16943 ;
16944 return 0;
16945}
16946_ACEOF
16947rm -f conftest.$ac_objext
16948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16949 (eval $ac_compile) 2>conftest.er1
a848cd7e 16950 ac_status=$?
ac1cb8d3
VS
16951 grep -v '^ *+' conftest.er1 >conftest.err
16952 rm -f conftest.er1
16953 cat conftest.err >&5
a848cd7e
SC
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } &&
ac1cb8d3
VS
16956 { ac_try='test -z "$ac_c_werror_flag"
16957 || test ! -s conftest.err'
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; } &&
16963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; }; then
16969 ac_hi=$ac_mid; break
16970else
16971 echo "$as_me: failed program was:" >&5
16972sed 's/^/| /' conftest.$ac_ext >&5
16973
16974ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16975 if test $ac_lo -le $ac_mid; then
16976 ac_lo= ac_hi=
16977 break
16978 fi
16979 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16980fi
ac1cb8d3 16981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16982 done
16983else
16984 echo "$as_me: failed program was:" >&5
16985sed 's/^/| /' conftest.$ac_ext >&5
16986
16987cat >conftest.$ac_ext <<_ACEOF
16988/* confdefs.h. */
16989_ACEOF
16990cat confdefs.h >>conftest.$ac_ext
16991cat >>conftest.$ac_ext <<_ACEOF
16992/* end confdefs.h. */
16993$ac_includes_default
16994int
16995main ()
16996{
16997static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16998test_array [0] = 0
16999
17000 ;
17001 return 0;
17002}
17003_ACEOF
17004rm -f conftest.$ac_objext
17005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17006 (eval $ac_compile) 2>conftest.er1
a848cd7e 17007 ac_status=$?
ac1cb8d3
VS
17008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
a848cd7e
SC
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
ac1cb8d3
VS
17013 { ac_try='test -z "$ac_c_werror_flag"
17014 || test ! -s conftest.err'
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17017 ac_status=$?
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; } &&
17020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_hi=-1 ac_mid=-1
17027 while :; do
17028 cat >conftest.$ac_ext <<_ACEOF
17029/* confdefs.h. */
17030_ACEOF
17031cat confdefs.h >>conftest.$ac_ext
17032cat >>conftest.$ac_ext <<_ACEOF
17033/* end confdefs.h. */
17034$ac_includes_default
17035int
17036main ()
17037{
17038static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17039test_array [0] = 0
17040
17041 ;
17042 return 0;
17043}
17044_ACEOF
17045rm -f conftest.$ac_objext
17046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17047 (eval $ac_compile) 2>conftest.er1
a848cd7e 17048 ac_status=$?
ac1cb8d3
VS
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
a848cd7e
SC
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
ac1cb8d3
VS
17054 { ac_try='test -z "$ac_c_werror_flag"
17055 || test ! -s conftest.err'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } &&
17061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 ac_lo=$ac_mid; break
17068else
17069 echo "$as_me: failed program was:" >&5
17070sed 's/^/| /' conftest.$ac_ext >&5
17071
17072ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17073 if test $ac_mid -le $ac_hi; then
17074 ac_lo= ac_hi=
17075 break
17076 fi
17077 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17078fi
ac1cb8d3 17079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17080 done
17081else
17082 echo "$as_me: failed program was:" >&5
17083sed 's/^/| /' conftest.$ac_ext >&5
17084
17085ac_lo= ac_hi=
17086fi
ac1cb8d3 17087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17088fi
ac1cb8d3 17089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17090# Binary search between lo and hi bounds.
17091while test "x$ac_lo" != "x$ac_hi"; do
17092 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17093 cat >conftest.$ac_ext <<_ACEOF
17094/* confdefs.h. */
17095_ACEOF
17096cat confdefs.h >>conftest.$ac_ext
17097cat >>conftest.$ac_ext <<_ACEOF
17098/* end confdefs.h. */
17099$ac_includes_default
17100int
17101main ()
17102{
17103static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17104test_array [0] = 0
17105
17106 ;
17107 return 0;
17108}
17109_ACEOF
17110rm -f conftest.$ac_objext
17111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17112 (eval $ac_compile) 2>conftest.er1
a848cd7e 17113 ac_status=$?
ac1cb8d3
VS
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
a848cd7e
SC
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } &&
ac1cb8d3
VS
17119 { ac_try='test -z "$ac_c_werror_flag"
17120 || test ! -s conftest.err'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 ac_hi=$ac_mid
17133else
17134 echo "$as_me: failed program was:" >&5
17135sed 's/^/| /' conftest.$ac_ext >&5
17136
17137ac_lo=`expr '(' $ac_mid ')' + 1`
17138fi
ac1cb8d3 17139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17140done
17141case $ac_lo in
17142?*) ac_cv_sizeof_long_long=$ac_lo;;
17143'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17144See \`config.log' for more details." >&5
17145echo "$as_me: error: cannot compute sizeof (long long), 77
17146See \`config.log' for more details." >&2;}
17147 { (exit 1); exit 1; }; } ;;
17148esac
17149else
17150 if test "$cross_compiling" = yes; then
17151 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17152See \`config.log' for more details." >&5
17153echo "$as_me: error: cannot run test program while cross compiling
17154See \`config.log' for more details." >&2;}
17155 { (exit 1); exit 1; }; }
17156else
17157 cat >conftest.$ac_ext <<_ACEOF
17158/* confdefs.h. */
17159_ACEOF
17160cat confdefs.h >>conftest.$ac_ext
17161cat >>conftest.$ac_ext <<_ACEOF
17162/* end confdefs.h. */
17163$ac_includes_default
17164long longval () { return (long) (sizeof (long long)); }
17165unsigned long ulongval () { return (long) (sizeof (long long)); }
17166#include <stdio.h>
17167#include <stdlib.h>
17168int
17169main ()
17170{
17171
17172 FILE *f = fopen ("conftest.val", "w");
17173 if (! f)
17174 exit (1);
17175 if (((long) (sizeof (long long))) < 0)
17176 {
17177 long i = longval ();
17178 if (i != ((long) (sizeof (long long))))
17179 exit (1);
17180 fprintf (f, "%ld\n", i);
17181 }
17182 else
17183 {
17184 unsigned long i = ulongval ();
17185 if (i != ((long) (sizeof (long long))))
17186 exit (1);
17187 fprintf (f, "%lu\n", i);
17188 }
17189 exit (ferror (f) || fclose (f) != 0);
17190
17191 ;
17192 return 0;
17193}
17194_ACEOF
17195rm -f conftest$ac_exeext
17196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17197 (eval $ac_link) 2>&5
17198 ac_status=$?
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17203 ac_status=$?
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; }; then
17206 ac_cv_sizeof_long_long=`cat conftest.val`
17207else
17208 echo "$as_me: program exited with status $ac_status" >&5
17209echo "$as_me: failed program was:" >&5
17210sed 's/^/| /' conftest.$ac_ext >&5
17211
17212( exit $ac_status )
17213{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17214See \`config.log' for more details." >&5
17215echo "$as_me: error: cannot compute sizeof (long long), 77
17216See \`config.log' for more details." >&2;}
17217 { (exit 1); exit 1; }; }
17218fi
ac1cb8d3 17219rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17220fi
17221fi
17222rm -f conftest.val
17223else
17224 ac_cv_sizeof_long_long=0
17225fi
17226fi
17227echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17228echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17229cat >>confdefs.h <<_ACEOF
17230#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17231_ACEOF
17232
17233
17234 ;;
17235 *-hp-hpux* )
17236 echo "$as_me:$LINENO: checking for long long" >&5
17237echo $ECHO_N "checking for long long... $ECHO_C" >&6
17238if test "${ac_cv_type_long_long+set}" = set; then
17239 echo $ECHO_N "(cached) $ECHO_C" >&6
17240else
17241 cat >conftest.$ac_ext <<_ACEOF
17242/* confdefs.h. */
17243_ACEOF
17244cat confdefs.h >>conftest.$ac_ext
17245cat >>conftest.$ac_ext <<_ACEOF
17246/* end confdefs.h. */
17247$ac_includes_default
17248int
17249main ()
17250{
17251if ((long long *) 0)
17252 return 0;
17253if (sizeof (long long))
17254 return 0;
17255 ;
17256 return 0;
17257}
17258_ACEOF
17259rm -f conftest.$ac_objext
17260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17261 (eval $ac_compile) 2>conftest.er1
a848cd7e 17262 ac_status=$?
ac1cb8d3
VS
17263 grep -v '^ *+' conftest.er1 >conftest.err
17264 rm -f conftest.er1
17265 cat conftest.err >&5
a848cd7e
SC
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
ac1cb8d3
VS
17268 { ac_try='test -z "$ac_c_werror_flag"
17269 || test ! -s conftest.err'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } &&
17275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_type_long_long=yes
17282else
17283 echo "$as_me: failed program was:" >&5
17284sed 's/^/| /' conftest.$ac_ext >&5
17285
17286ac_cv_type_long_long=no
17287fi
ac1cb8d3 17288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17289fi
17290echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17291echo "${ECHO_T}$ac_cv_type_long_long" >&6
17292
17293echo "$as_me:$LINENO: checking size of long long" >&5
17294echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17295if test "${ac_cv_sizeof_long_long+set}" = set; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17297else
17298 if test "$ac_cv_type_long_long" = yes; then
17299 # The cast to unsigned long works around a bug in the HP C Compiler
17300 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17301 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17302 # This bug is HP SR number 8606223364.
17303 if test "$cross_compiling" = yes; then
17304 # Depending upon the size, compute the lo and hi bounds.
17305cat >conftest.$ac_ext <<_ACEOF
17306/* confdefs.h. */
17307_ACEOF
17308cat confdefs.h >>conftest.$ac_ext
17309cat >>conftest.$ac_ext <<_ACEOF
17310/* end confdefs.h. */
17311$ac_includes_default
17312int
17313main ()
17314{
17315static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17316test_array [0] = 0
17317
17318 ;
17319 return 0;
17320}
17321_ACEOF
17322rm -f conftest.$ac_objext
17323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17324 (eval $ac_compile) 2>conftest.er1
a848cd7e 17325 ac_status=$?
ac1cb8d3
VS
17326 grep -v '^ *+' conftest.er1 >conftest.err
17327 rm -f conftest.er1
17328 cat conftest.err >&5
a848cd7e
SC
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } &&
ac1cb8d3
VS
17331 { ac_try='test -z "$ac_c_werror_flag"
17332 || test ! -s conftest.err'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } &&
17338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 ac_lo=0 ac_mid=0
17345 while :; do
17346 cat >conftest.$ac_ext <<_ACEOF
17347/* confdefs.h. */
17348_ACEOF
17349cat confdefs.h >>conftest.$ac_ext
17350cat >>conftest.$ac_ext <<_ACEOF
17351/* end confdefs.h. */
17352$ac_includes_default
17353int
17354main ()
17355{
17356static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17357test_array [0] = 0
17358
17359 ;
17360 return 0;
17361}
17362_ACEOF
17363rm -f conftest.$ac_objext
17364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17365 (eval $ac_compile) 2>conftest.er1
a848cd7e 17366 ac_status=$?
ac1cb8d3
VS
17367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
a848cd7e
SC
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
ac1cb8d3
VS
17372 { ac_try='test -z "$ac_c_werror_flag"
17373 || test ! -s conftest.err'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17376 ac_status=$?
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; } &&
17379 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_hi=$ac_mid; break
17386else
17387 echo "$as_me: failed program was:" >&5
17388sed 's/^/| /' conftest.$ac_ext >&5
17389
17390ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17391 if test $ac_lo -le $ac_mid; then
17392 ac_lo= ac_hi=
17393 break
17394 fi
17395 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17396fi
ac1cb8d3 17397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17398 done
17399else
17400 echo "$as_me: failed program was:" >&5
17401sed 's/^/| /' conftest.$ac_ext >&5
17402
17403cat >conftest.$ac_ext <<_ACEOF
17404/* confdefs.h. */
17405_ACEOF
17406cat confdefs.h >>conftest.$ac_ext
17407cat >>conftest.$ac_ext <<_ACEOF
17408/* end confdefs.h. */
17409$ac_includes_default
17410int
17411main ()
17412{
17413static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17414test_array [0] = 0
17415
17416 ;
17417 return 0;
17418}
17419_ACEOF
17420rm -f conftest.$ac_objext
17421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17422 (eval $ac_compile) 2>conftest.er1
a848cd7e 17423 ac_status=$?
ac1cb8d3
VS
17424 grep -v '^ *+' conftest.er1 >conftest.err
17425 rm -f conftest.er1
17426 cat conftest.err >&5
a848cd7e
SC
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } &&
ac1cb8d3
VS
17429 { ac_try='test -z "$ac_c_werror_flag"
17430 || test ! -s conftest.err'
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; } &&
17436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; }; then
17442 ac_hi=-1 ac_mid=-1
17443 while :; do
17444 cat >conftest.$ac_ext <<_ACEOF
17445/* confdefs.h. */
17446_ACEOF
17447cat confdefs.h >>conftest.$ac_ext
17448cat >>conftest.$ac_ext <<_ACEOF
17449/* end confdefs.h. */
17450$ac_includes_default
17451int
17452main ()
17453{
17454static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17455test_array [0] = 0
17456
17457 ;
17458 return 0;
17459}
17460_ACEOF
17461rm -f conftest.$ac_objext
17462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17463 (eval $ac_compile) 2>conftest.er1
a848cd7e 17464 ac_status=$?
ac1cb8d3
VS
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
a848cd7e
SC
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
ac1cb8d3
VS
17470 { ac_try='test -z "$ac_c_werror_flag"
17471 || test ! -s conftest.err'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; }; then
17483 ac_lo=$ac_mid; break
17484else
17485 echo "$as_me: failed program was:" >&5
17486sed 's/^/| /' conftest.$ac_ext >&5
17487
17488ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17489 if test $ac_mid -le $ac_hi; then
17490 ac_lo= ac_hi=
17491 break
17492 fi
17493 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17494fi
ac1cb8d3 17495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17496 done
17497else
17498 echo "$as_me: failed program was:" >&5
17499sed 's/^/| /' conftest.$ac_ext >&5
17500
17501ac_lo= ac_hi=
17502fi
ac1cb8d3 17503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17504fi
ac1cb8d3 17505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17506# Binary search between lo and hi bounds.
17507while test "x$ac_lo" != "x$ac_hi"; do
17508 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17509 cat >conftest.$ac_ext <<_ACEOF
17510/* confdefs.h. */
17511_ACEOF
17512cat confdefs.h >>conftest.$ac_ext
17513cat >>conftest.$ac_ext <<_ACEOF
17514/* end confdefs.h. */
17515$ac_includes_default
17516int
17517main ()
17518{
17519static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17520test_array [0] = 0
17521
17522 ;
17523 return 0;
17524}
17525_ACEOF
17526rm -f conftest.$ac_objext
17527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17528 (eval $ac_compile) 2>conftest.er1
a848cd7e 17529 ac_status=$?
ac1cb8d3
VS
17530 grep -v '^ *+' conftest.er1 >conftest.err
17531 rm -f conftest.er1
17532 cat conftest.err >&5
a848cd7e
SC
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
ac1cb8d3
VS
17535 { ac_try='test -z "$ac_c_werror_flag"
17536 || test ! -s conftest.err'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_hi=$ac_mid
17549else
17550 echo "$as_me: failed program was:" >&5
17551sed 's/^/| /' conftest.$ac_ext >&5
17552
17553ac_lo=`expr '(' $ac_mid ')' + 1`
17554fi
ac1cb8d3 17555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17556done
17557case $ac_lo in
17558?*) ac_cv_sizeof_long_long=$ac_lo;;
17559'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17560See \`config.log' for more details." >&5
17561echo "$as_me: error: cannot compute sizeof (long long), 77
17562See \`config.log' for more details." >&2;}
17563 { (exit 1); exit 1; }; } ;;
17564esac
17565else
17566 if test "$cross_compiling" = yes; then
17567 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17568See \`config.log' for more details." >&5
17569echo "$as_me: error: cannot run test program while cross compiling
17570See \`config.log' for more details." >&2;}
17571 { (exit 1); exit 1; }; }
17572else
17573 cat >conftest.$ac_ext <<_ACEOF
17574/* confdefs.h. */
17575_ACEOF
17576cat confdefs.h >>conftest.$ac_ext
17577cat >>conftest.$ac_ext <<_ACEOF
17578/* end confdefs.h. */
17579$ac_includes_default
17580long longval () { return (long) (sizeof (long long)); }
17581unsigned long ulongval () { return (long) (sizeof (long long)); }
17582#include <stdio.h>
17583#include <stdlib.h>
17584int
17585main ()
17586{
17587
17588 FILE *f = fopen ("conftest.val", "w");
17589 if (! f)
17590 exit (1);
17591 if (((long) (sizeof (long long))) < 0)
17592 {
17593 long i = longval ();
17594 if (i != ((long) (sizeof (long long))))
17595 exit (1);
17596 fprintf (f, "%ld\n", i);
17597 }
17598 else
17599 {
17600 unsigned long i = ulongval ();
17601 if (i != ((long) (sizeof (long long))))
17602 exit (1);
17603 fprintf (f, "%lu\n", i);
17604 }
17605 exit (ferror (f) || fclose (f) != 0);
17606
17607 ;
17608 return 0;
17609}
17610_ACEOF
17611rm -f conftest$ac_exeext
17612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17613 (eval $ac_link) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_sizeof_long_long=`cat conftest.val`
17623else
17624 echo "$as_me: program exited with status $ac_status" >&5
17625echo "$as_me: failed program was:" >&5
17626sed 's/^/| /' conftest.$ac_ext >&5
17627
17628( exit $ac_status )
17629{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17630See \`config.log' for more details." >&5
17631echo "$as_me: error: cannot compute sizeof (long long), 77
17632See \`config.log' for more details." >&2;}
17633 { (exit 1); exit 1; }; }
17634fi
ac1cb8d3 17635rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17636fi
17637fi
17638rm -f conftest.val
17639else
17640 ac_cv_sizeof_long_long=0
17641fi
17642fi
17643echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17644echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17645cat >>confdefs.h <<_ACEOF
17646#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17647_ACEOF
17648
17649
17650 if test "$ac_cv_sizeof_long_long" != "0"; then
17651 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17652 fi
17653 ;;
17654 * )
17655 echo "$as_me:$LINENO: checking for long long" >&5
17656echo $ECHO_N "checking for long long... $ECHO_C" >&6
17657if test "${ac_cv_type_long_long+set}" = set; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17659else
17660 cat >conftest.$ac_ext <<_ACEOF
17661/* confdefs.h. */
17662_ACEOF
17663cat confdefs.h >>conftest.$ac_ext
17664cat >>conftest.$ac_ext <<_ACEOF
17665/* end confdefs.h. */
17666$ac_includes_default
17667int
17668main ()
17669{
17670if ((long long *) 0)
17671 return 0;
17672if (sizeof (long long))
17673 return 0;
17674 ;
17675 return 0;
17676}
17677_ACEOF
17678rm -f conftest.$ac_objext
17679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17680 (eval $ac_compile) 2>conftest.er1
a848cd7e 17681 ac_status=$?
ac1cb8d3
VS
17682 grep -v '^ *+' conftest.er1 >conftest.err
17683 rm -f conftest.er1
17684 cat conftest.err >&5
a848cd7e
SC
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
ac1cb8d3
VS
17687 { ac_try='test -z "$ac_c_werror_flag"
17688 || test ! -s conftest.err'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17691 ac_status=$?
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; } &&
17694 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 ac_cv_type_long_long=yes
17701else
17702 echo "$as_me: failed program was:" >&5
17703sed 's/^/| /' conftest.$ac_ext >&5
17704
17705ac_cv_type_long_long=no
17706fi
ac1cb8d3 17707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17708fi
17709echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17710echo "${ECHO_T}$ac_cv_type_long_long" >&6
17711
17712echo "$as_me:$LINENO: checking size of long long" >&5
17713echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17714if test "${ac_cv_sizeof_long_long+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716else
17717 if test "$ac_cv_type_long_long" = yes; then
17718 # The cast to unsigned long works around a bug in the HP C Compiler
17719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17721 # This bug is HP SR number 8606223364.
17722 if test "$cross_compiling" = yes; then
17723 # Depending upon the size, compute the lo and hi bounds.
17724cat >conftest.$ac_ext <<_ACEOF
17725/* confdefs.h. */
17726_ACEOF
17727cat confdefs.h >>conftest.$ac_ext
17728cat >>conftest.$ac_ext <<_ACEOF
17729/* end confdefs.h. */
17730$ac_includes_default
17731int
17732main ()
17733{
17734static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17735test_array [0] = 0
17736
17737 ;
17738 return 0;
17739}
17740_ACEOF
17741rm -f conftest.$ac_objext
17742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17743 (eval $ac_compile) 2>conftest.er1
a848cd7e 17744 ac_status=$?
ac1cb8d3
VS
17745 grep -v '^ *+' conftest.er1 >conftest.err
17746 rm -f conftest.er1
17747 cat conftest.err >&5
a848cd7e
SC
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } &&
ac1cb8d3
VS
17750 { ac_try='test -z "$ac_c_werror_flag"
17751 || test ! -s conftest.err'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; } &&
17757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 ac_lo=0 ac_mid=0
17764 while :; do
17765 cat >conftest.$ac_ext <<_ACEOF
17766/* confdefs.h. */
17767_ACEOF
17768cat confdefs.h >>conftest.$ac_ext
17769cat >>conftest.$ac_ext <<_ACEOF
17770/* end confdefs.h. */
17771$ac_includes_default
17772int
17773main ()
17774{
17775static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17776test_array [0] = 0
17777
17778 ;
17779 return 0;
17780}
17781_ACEOF
17782rm -f conftest.$ac_objext
17783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17784 (eval $ac_compile) 2>conftest.er1
a848cd7e 17785 ac_status=$?
ac1cb8d3
VS
17786 grep -v '^ *+' conftest.er1 >conftest.err
17787 rm -f conftest.er1
17788 cat conftest.err >&5
a848cd7e
SC
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } &&
ac1cb8d3
VS
17791 { ac_try='test -z "$ac_c_werror_flag"
17792 || test ! -s conftest.err'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; } &&
17798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 ac_hi=$ac_mid; break
17805else
17806 echo "$as_me: failed program was:" >&5
17807sed 's/^/| /' conftest.$ac_ext >&5
17808
17809ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17810 if test $ac_lo -le $ac_mid; then
17811 ac_lo= ac_hi=
17812 break
17813 fi
17814 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17815fi
ac1cb8d3 17816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17817 done
17818else
17819 echo "$as_me: failed program was:" >&5
17820sed 's/^/| /' conftest.$ac_ext >&5
17821
17822cat >conftest.$ac_ext <<_ACEOF
17823/* confdefs.h. */
17824_ACEOF
17825cat confdefs.h >>conftest.$ac_ext
17826cat >>conftest.$ac_ext <<_ACEOF
17827/* end confdefs.h. */
17828$ac_includes_default
17829int
17830main ()
17831{
17832static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17833test_array [0] = 0
17834
17835 ;
17836 return 0;
17837}
17838_ACEOF
17839rm -f conftest.$ac_objext
17840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17841 (eval $ac_compile) 2>conftest.er1
a848cd7e 17842 ac_status=$?
ac1cb8d3
VS
17843 grep -v '^ *+' conftest.er1 >conftest.err
17844 rm -f conftest.er1
17845 cat conftest.err >&5
a848cd7e
SC
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
ac1cb8d3
VS
17848 { ac_try='test -z "$ac_c_werror_flag"
17849 || test ! -s conftest.err'
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; }; then
17861 ac_hi=-1 ac_mid=-1
17862 while :; do
17863 cat >conftest.$ac_ext <<_ACEOF
17864/* confdefs.h. */
17865_ACEOF
17866cat confdefs.h >>conftest.$ac_ext
17867cat >>conftest.$ac_ext <<_ACEOF
17868/* end confdefs.h. */
17869$ac_includes_default
17870int
17871main ()
17872{
17873static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17874test_array [0] = 0
17875
17876 ;
17877 return 0;
17878}
17879_ACEOF
17880rm -f conftest.$ac_objext
17881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17882 (eval $ac_compile) 2>conftest.er1
a848cd7e 17883 ac_status=$?
ac1cb8d3
VS
17884 grep -v '^ *+' conftest.er1 >conftest.err
17885 rm -f conftest.er1
17886 cat conftest.err >&5
a848cd7e
SC
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
ac1cb8d3
VS
17889 { ac_try='test -z "$ac_c_werror_flag"
17890 || test ! -s conftest.err'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; } &&
17896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 ac_lo=$ac_mid; break
17903else
17904 echo "$as_me: failed program was:" >&5
17905sed 's/^/| /' conftest.$ac_ext >&5
17906
17907ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17908 if test $ac_mid -le $ac_hi; then
17909 ac_lo= ac_hi=
17910 break
17911 fi
17912 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17913fi
ac1cb8d3 17914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17915 done
17916else
17917 echo "$as_me: failed program was:" >&5
17918sed 's/^/| /' conftest.$ac_ext >&5
17919
17920ac_lo= ac_hi=
17921fi
ac1cb8d3 17922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17923fi
ac1cb8d3 17924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17925# Binary search between lo and hi bounds.
17926while test "x$ac_lo" != "x$ac_hi"; do
17927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17928 cat >conftest.$ac_ext <<_ACEOF
17929/* confdefs.h. */
17930_ACEOF
17931cat confdefs.h >>conftest.$ac_ext
17932cat >>conftest.$ac_ext <<_ACEOF
17933/* end confdefs.h. */
17934$ac_includes_default
17935int
17936main ()
17937{
17938static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17939test_array [0] = 0
17940
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945rm -f conftest.$ac_objext
17946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17947 (eval $ac_compile) 2>conftest.er1
a848cd7e 17948 ac_status=$?
ac1cb8d3
VS
17949 grep -v '^ *+' conftest.er1 >conftest.err
17950 rm -f conftest.er1
17951 cat conftest.err >&5
a848cd7e
SC
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } &&
ac1cb8d3
VS
17954 { ac_try='test -z "$ac_c_werror_flag"
17955 || test ! -s conftest.err'
17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; } &&
17961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; }; then
17967 ac_hi=$ac_mid
17968else
17969 echo "$as_me: failed program was:" >&5
17970sed 's/^/| /' conftest.$ac_ext >&5
17971
17972ac_lo=`expr '(' $ac_mid ')' + 1`
17973fi
ac1cb8d3 17974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17975done
17976case $ac_lo in
17977?*) ac_cv_sizeof_long_long=$ac_lo;;
17978'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17979See \`config.log' for more details." >&5
17980echo "$as_me: error: cannot compute sizeof (long long), 77
17981See \`config.log' for more details." >&2;}
17982 { (exit 1); exit 1; }; } ;;
17983esac
17984else
17985 if test "$cross_compiling" = yes; then
17986 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17987See \`config.log' for more details." >&5
17988echo "$as_me: error: cannot run test program while cross compiling
17989See \`config.log' for more details." >&2;}
17990 { (exit 1); exit 1; }; }
17991else
17992 cat >conftest.$ac_ext <<_ACEOF
17993/* confdefs.h. */
17994_ACEOF
17995cat confdefs.h >>conftest.$ac_ext
17996cat >>conftest.$ac_ext <<_ACEOF
17997/* end confdefs.h. */
17998$ac_includes_default
17999long longval () { return (long) (sizeof (long long)); }
18000unsigned long ulongval () { return (long) (sizeof (long long)); }
18001#include <stdio.h>
18002#include <stdlib.h>
18003int
18004main ()
18005{
18006
18007 FILE *f = fopen ("conftest.val", "w");
18008 if (! f)
18009 exit (1);
18010 if (((long) (sizeof (long long))) < 0)
18011 {
18012 long i = longval ();
18013 if (i != ((long) (sizeof (long long))))
18014 exit (1);
18015 fprintf (f, "%ld\n", i);
18016 }
18017 else
18018 {
18019 unsigned long i = ulongval ();
18020 if (i != ((long) (sizeof (long long))))
18021 exit (1);
18022 fprintf (f, "%lu\n", i);
18023 }
18024 exit (ferror (f) || fclose (f) != 0);
18025
18026 ;
18027 return 0;
18028}
18029_ACEOF
18030rm -f conftest$ac_exeext
18031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18032 (eval $ac_link) 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 ac_cv_sizeof_long_long=`cat conftest.val`
18042else
18043 echo "$as_me: program exited with status $ac_status" >&5
18044echo "$as_me: failed program was:" >&5
18045sed 's/^/| /' conftest.$ac_ext >&5
18046
18047( exit $ac_status )
18048{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18049See \`config.log' for more details." >&5
18050echo "$as_me: error: cannot compute sizeof (long long), 77
18051See \`config.log' for more details." >&2;}
18052 { (exit 1); exit 1; }; }
18053fi
ac1cb8d3 18054rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18055fi
18056fi
18057rm -f conftest.val
18058else
18059 ac_cv_sizeof_long_long=0
18060fi
18061fi
18062echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18063echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18064cat >>confdefs.h <<_ACEOF
18065#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18066_ACEOF
18067
18068
18069esac
18070
18071echo "$as_me:$LINENO: checking size of wchar_t" >&5
18072echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18073if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18074 echo $ECHO_N "(cached) $ECHO_C" >&6
18075else
18076
18077 if test "$cross_compiling" = yes; then
18078
18079 case "${host}" in
18080 *-pc-msdosdjgpp )
18081 wx_cv_sizeof_wchar_t=0
18082 ;;
18083 * )
18084 wx_cv_sizeof_wchar_t=4
18085 ;;
18086 esac
18087
18088
18089else
18090 cat >conftest.$ac_ext <<_ACEOF
18091/* confdefs.h. */
18092_ACEOF
18093cat confdefs.h >>conftest.$ac_ext
18094cat >>conftest.$ac_ext <<_ACEOF
18095/* end confdefs.h. */
18096
18097 /* DJGPP only has fake wchar_t: */
18098 #ifdef __DJGPP__
18099 # error "fake wchar_t"
18100 #endif
18101 #ifdef HAVE_WCHAR_H
18102 # ifdef __CYGWIN__
18103 # include <stddef.h>
18104 # endif
18105 # include <wchar.h>
18106 #endif
18107 #ifdef HAVE_STDLIB_H
18108 # include <stdlib.h>
18109 #endif
18110 #include <stdio.h>
18111 int main()
18112 {
18113 FILE *f=fopen("conftestval", "w");
18114 if (!f) exit(1);
18115 fprintf(f, "%i", sizeof(wchar_t));
18116 exit(0);
18117 }
18118
18119_ACEOF
18120rm -f conftest$ac_exeext
18121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18122 (eval $ac_link) 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 wx_cv_sizeof_wchar_t=`cat conftestval`
18132else
18133 echo "$as_me: program exited with status $ac_status" >&5
18134echo "$as_me: failed program was:" >&5
18135sed 's/^/| /' conftest.$ac_ext >&5
18136
18137( exit $ac_status )
18138wx_cv_sizeof_wchar_t=0
18139fi
ac1cb8d3 18140rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18141fi
18142
18143fi
18144echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18145echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18146
18147cat >>confdefs.h <<_ACEOF
18148#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18149_ACEOF
18150
18151
18152# Check whether --enable-largefile or --disable-largefile was given.
18153if test "${enable_largefile+set}" = set; then
18154 enableval="$enable_largefile"
18155
18156fi;
18157if test "$enable_largefile" != no; then
18158 wx_largefile=no
18159
18160 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18161echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18162if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18164else
18165
18166 cat >conftest.$ac_ext <<_ACEOF
18167/* confdefs.h. */
18168_ACEOF
18169cat confdefs.h >>conftest.$ac_ext
18170cat >>conftest.$ac_ext <<_ACEOF
18171/* end confdefs.h. */
18172#define _FILE_OFFSET_BITS 64
18173 #include <sys/types.h>
18174int
18175main ()
18176{
18177typedef struct {
18178 unsigned int field: sizeof(off_t) == 8;
18179} wxlf;
18180
18181 ;
18182 return 0;
18183}
18184_ACEOF
18185rm -f conftest.$ac_objext
18186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18187 (eval $ac_compile) 2>conftest.er1
a848cd7e 18188 ac_status=$?
ac1cb8d3
VS
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -f conftest.er1
18191 cat conftest.err >&5
a848cd7e
SC
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
ac1cb8d3
VS
18194 { ac_try='test -z "$ac_c_werror_flag"
18195 || test ! -s conftest.err'
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18198 ac_status=$?
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 ac_cv_sys_file_offset_bits=64
18208else
18209 echo "$as_me: failed program was:" >&5
18210sed 's/^/| /' conftest.$ac_ext >&5
18211
18212ac_cv_sys_file_offset_bits=no
18213fi
ac1cb8d3 18214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18215
18216
18217fi
18218echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18219echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18220
18221 if test "$ac_cv_sys_file_offset_bits" != no; then
18222 wx_largefile=yes
18223 cat >>confdefs.h <<_ACEOF
18224#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18225_ACEOF
18226
18227 fi
18228
18229 if test "x$wx_largefile" != "xyes"; then
18230
18231 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18232echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18233if test "${ac_cv_sys_large_files+set}" = set; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18235else
18236
18237 cat >conftest.$ac_ext <<_ACEOF
18238/* confdefs.h. */
18239_ACEOF
18240cat confdefs.h >>conftest.$ac_ext
18241cat >>conftest.$ac_ext <<_ACEOF
18242/* end confdefs.h. */
18243#define _LARGE_FILES 1
18244 #include <sys/types.h>
18245int
18246main ()
18247{
18248typedef struct {
18249 unsigned int field: sizeof(off_t) == 8;
18250} wxlf;
18251
18252 ;
18253 return 0;
18254}
18255_ACEOF
18256rm -f conftest.$ac_objext
18257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18258 (eval $ac_compile) 2>conftest.er1
a848cd7e 18259 ac_status=$?
ac1cb8d3
VS
18260 grep -v '^ *+' conftest.er1 >conftest.err
18261 rm -f conftest.er1
18262 cat conftest.err >&5
a848cd7e
SC
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); } &&
ac1cb8d3
VS
18265 { ac_try='test -z "$ac_c_werror_flag"
18266 || test ! -s conftest.err'
18267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268 (eval $ac_try) 2>&5
18269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; } &&
18272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
18278 ac_cv_sys_large_files=1
18279else
18280 echo "$as_me: failed program was:" >&5
18281sed 's/^/| /' conftest.$ac_ext >&5
18282
18283ac_cv_sys_large_files=no
18284fi
ac1cb8d3 18285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18286
18287
18288fi
18289echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18290echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18291
18292 if test "$ac_cv_sys_large_files" != no; then
18293 wx_largefile=yes
18294 cat >>confdefs.h <<_ACEOF
18295#define _LARGE_FILES $ac_cv_sys_large_files
18296_ACEOF
18297
18298 fi
18299
18300 fi
18301
18302 echo "$as_me:$LINENO: checking if large file support is available" >&5
18303echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18304 if test "x$wx_largefile" = "xyes"; then
18305 cat >>confdefs.h <<\_ACEOF
18306#define HAVE_LARGEFILE_SUPPORT 1
18307_ACEOF
18308
18309 fi
18310 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18311echo "${ECHO_T}$wx_largefile" >&6
18312fi
18313
18314
18315if test "x$wx_largefile" = "xyes"; then
18316 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18317 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18318 else
18319 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18320 fi
18321 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18322fi
18323
18324echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18325echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18326if test "${ac_cv_c_bigendian+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18328else
18329 ac_cv_c_bigendian=unknown
18330# See if sys/param.h defines the BYTE_ORDER macro.
18331cat >conftest.$ac_ext <<_ACEOF
18332/* confdefs.h. */
18333_ACEOF
18334cat confdefs.h >>conftest.$ac_ext
18335cat >>conftest.$ac_ext <<_ACEOF
18336/* end confdefs.h. */
18337#include <sys/types.h>
18338#include <sys/param.h>
18339int
18340main ()
18341{
18342
18343#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18344 bogus endian macros
18345#endif
18346 ;
18347 return 0;
18348}
18349_ACEOF
18350rm -f conftest.$ac_objext
18351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18352 (eval $ac_compile) 2>conftest.er1
a848cd7e 18353 ac_status=$?
ac1cb8d3
VS
18354 grep -v '^ *+' conftest.er1 >conftest.err
18355 rm -f conftest.er1
18356 cat conftest.err >&5
a848cd7e
SC
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); } &&
ac1cb8d3
VS
18359 { ac_try='test -z "$ac_c_werror_flag"
18360 || test ! -s conftest.err'
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18369 ac_status=$?
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; }; then
18372 # It does; now see whether it defined to BIG_ENDIAN or not.
18373cat >conftest.$ac_ext <<_ACEOF
18374/* confdefs.h. */
18375_ACEOF
18376cat confdefs.h >>conftest.$ac_ext
18377cat >>conftest.$ac_ext <<_ACEOF
18378/* end confdefs.h. */
18379#include <sys/types.h>
18380#include <sys/param.h>
18381int
18382main ()
18383{
18384
18385#if BYTE_ORDER != BIG_ENDIAN
18386 not big endian
18387#endif
18388 ;
18389 return 0;
18390}
18391_ACEOF
18392rm -f conftest.$ac_objext
18393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18394 (eval $ac_compile) 2>conftest.er1
a848cd7e 18395 ac_status=$?
ac1cb8d3
VS
18396 grep -v '^ *+' conftest.er1 >conftest.err
18397 rm -f conftest.er1
18398 cat conftest.err >&5
a848cd7e
SC
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } &&
ac1cb8d3
VS
18401 { ac_try='test -z "$ac_c_werror_flag"
18402 || test ! -s conftest.err'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; }; then
18414 ac_cv_c_bigendian=yes
18415else
18416 echo "$as_me: failed program was:" >&5
18417sed 's/^/| /' conftest.$ac_ext >&5
18418
18419ac_cv_c_bigendian=no
18420fi
ac1cb8d3 18421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18422else
18423 echo "$as_me: failed program was:" >&5
18424sed 's/^/| /' conftest.$ac_ext >&5
18425
18426fi
ac1cb8d3 18427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18428if test $ac_cv_c_bigendian = unknown; then
18429if test "$cross_compiling" = yes; then
18430 ac_cv_c_bigendian=unknown
18431else
18432 cat >conftest.$ac_ext <<_ACEOF
18433/* confdefs.h. */
18434_ACEOF
18435cat confdefs.h >>conftest.$ac_ext
18436cat >>conftest.$ac_ext <<_ACEOF
18437/* end confdefs.h. */
18438main () {
18439 /* Are we little or big endian? From Harbison&Steele. */
18440 union
18441 {
18442 long l;
18443 char c[sizeof (long)];
18444 } u;
18445 u.l = 1;
18446 exit (u.c[sizeof (long) - 1] == 1);
18447}
18448_ACEOF
18449rm -f conftest$ac_exeext
18450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18451 (eval $ac_link) 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18457 ac_status=$?
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; }; then
18460 ac_cv_c_bigendian=no
18461else
18462 echo "$as_me: program exited with status $ac_status" >&5
18463echo "$as_me: failed program was:" >&5
18464sed 's/^/| /' conftest.$ac_ext >&5
18465
18466( exit $ac_status )
18467ac_cv_c_bigendian=yes
18468fi
ac1cb8d3 18469rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18470fi
18471fi
18472fi
18473echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18474echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18475if test $ac_cv_c_bigendian = unknown; then
18476 { 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
18477echo "$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;}
18478fi
18479if test $ac_cv_c_bigendian = yes; then
18480 cat >>confdefs.h <<\_ACEOF
18481#define WORDS_BIGENDIAN 1
18482_ACEOF
18483
18484fi
18485
18486
18487ac_ext=cc
18488ac_cpp='$CXXCPP $CPPFLAGS'
18489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18492echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18493echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18494if test -z "$CXXCPP"; then
18495 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497else
18498 # Double quotes because CXXCPP needs to be expanded
18499 for CXXCPP in "$CXX -E" "/lib/cpp"
18500 do
18501 ac_preproc_ok=false
18502for ac_cxx_preproc_warn_flag in '' yes
18503do
18504 # Use a header file that comes with gcc, so configuring glibc
18505 # with a fresh cross-compiler works.
18506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18507 # <limits.h> exists even on freestanding compilers.
18508 # On the NeXT, cc -E runs the code through the compiler's parser,
18509 # not just through cpp. "Syntax error" is here to catch this case.
18510 cat >conftest.$ac_ext <<_ACEOF
18511/* confdefs.h. */
18512_ACEOF
18513cat confdefs.h >>conftest.$ac_ext
18514cat >>conftest.$ac_ext <<_ACEOF
18515/* end confdefs.h. */
18516#ifdef __STDC__
18517# include <limits.h>
18518#else
18519# include <assert.h>
18520#endif
ac1cb8d3 18521 Syntax error
a848cd7e
SC
18522_ACEOF
18523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18525 ac_status=$?
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } >/dev/null; then
18531 if test -s conftest.err; then
18532 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18533 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18534 else
18535 ac_cpp_err=
18536 fi
18537else
18538 ac_cpp_err=yes
18539fi
18540if test -z "$ac_cpp_err"; then
18541 :
18542else
18543 echo "$as_me: failed program was:" >&5
18544sed 's/^/| /' conftest.$ac_ext >&5
18545
18546 # Broken: fails on valid input.
18547continue
18548fi
18549rm -f conftest.err conftest.$ac_ext
18550
18551 # OK, works on sane cases. Now check whether non-existent headers
18552 # can be detected and how.
18553 cat >conftest.$ac_ext <<_ACEOF
18554/* confdefs.h. */
18555_ACEOF
18556cat confdefs.h >>conftest.$ac_ext
18557cat >>conftest.$ac_ext <<_ACEOF
18558/* end confdefs.h. */
18559#include <ac_nonexistent.h>
18560_ACEOF
18561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18563 ac_status=$?
18564 grep -v '^ *+' conftest.er1 >conftest.err
18565 rm -f conftest.er1
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } >/dev/null; then
18569 if test -s conftest.err; then
18570 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18571 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18572 else
18573 ac_cpp_err=
18574 fi
18575else
18576 ac_cpp_err=yes
18577fi
18578if test -z "$ac_cpp_err"; then
18579 # Broken: success on invalid input.
18580continue
18581else
18582 echo "$as_me: failed program was:" >&5
18583sed 's/^/| /' conftest.$ac_ext >&5
18584
18585 # Passes both tests.
18586ac_preproc_ok=:
18587break
18588fi
18589rm -f conftest.err conftest.$ac_ext
18590
18591done
18592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18593rm -f conftest.err conftest.$ac_ext
18594if $ac_preproc_ok; then
18595 break
18596fi
18597
18598 done
18599 ac_cv_prog_CXXCPP=$CXXCPP
18600
18601fi
18602 CXXCPP=$ac_cv_prog_CXXCPP
18603else
18604 ac_cv_prog_CXXCPP=$CXXCPP
18605fi
18606echo "$as_me:$LINENO: result: $CXXCPP" >&5
18607echo "${ECHO_T}$CXXCPP" >&6
18608ac_preproc_ok=false
18609for ac_cxx_preproc_warn_flag in '' yes
18610do
18611 # Use a header file that comes with gcc, so configuring glibc
18612 # with a fresh cross-compiler works.
18613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18614 # <limits.h> exists even on freestanding compilers.
18615 # On the NeXT, cc -E runs the code through the compiler's parser,
18616 # not just through cpp. "Syntax error" is here to catch this case.
18617 cat >conftest.$ac_ext <<_ACEOF
18618/* confdefs.h. */
18619_ACEOF
18620cat confdefs.h >>conftest.$ac_ext
18621cat >>conftest.$ac_ext <<_ACEOF
18622/* end confdefs.h. */
18623#ifdef __STDC__
18624# include <limits.h>
18625#else
18626# include <assert.h>
18627#endif
ac1cb8d3 18628 Syntax error
a848cd7e
SC
18629_ACEOF
18630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18632 ac_status=$?
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } >/dev/null; then
18638 if test -s conftest.err; then
18639 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18640 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18641 else
18642 ac_cpp_err=
18643 fi
18644else
18645 ac_cpp_err=yes
18646fi
18647if test -z "$ac_cpp_err"; then
18648 :
18649else
18650 echo "$as_me: failed program was:" >&5
18651sed 's/^/| /' conftest.$ac_ext >&5
18652
18653 # Broken: fails on valid input.
18654continue
18655fi
18656rm -f conftest.err conftest.$ac_ext
18657
18658 # OK, works on sane cases. Now check whether non-existent headers
18659 # can be detected and how.
18660 cat >conftest.$ac_ext <<_ACEOF
18661/* confdefs.h. */
18662_ACEOF
18663cat confdefs.h >>conftest.$ac_ext
18664cat >>conftest.$ac_ext <<_ACEOF
18665/* end confdefs.h. */
18666#include <ac_nonexistent.h>
18667_ACEOF
18668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18670 ac_status=$?
18671 grep -v '^ *+' conftest.er1 >conftest.err
18672 rm -f conftest.er1
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } >/dev/null; then
18676 if test -s conftest.err; then
18677 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18678 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18679 else
18680 ac_cpp_err=
18681 fi
18682else
18683 ac_cpp_err=yes
18684fi
18685if test -z "$ac_cpp_err"; then
18686 # Broken: success on invalid input.
18687continue
18688else
18689 echo "$as_me: failed program was:" >&5
18690sed 's/^/| /' conftest.$ac_ext >&5
18691
18692 # Passes both tests.
18693ac_preproc_ok=:
18694break
18695fi
18696rm -f conftest.err conftest.$ac_ext
18697
18698done
18699# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18700rm -f conftest.err conftest.$ac_ext
18701if $ac_preproc_ok; then
18702 :
18703else
18704 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18705See \`config.log' for more details." >&5
18706echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18707See \`config.log' for more details." >&2;}
18708 { (exit 1); exit 1; }; }
18709fi
18710
18711ac_ext=cc
18712ac_cpp='$CXXCPP $CPPFLAGS'
18713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18716
18717
18718
18719
18720
18721 ac_ext=cc
18722ac_cpp='$CXXCPP $CPPFLAGS'
18723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18726
18727
18728
18729for ac_header in iostream
18730do
18731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18732if eval "test \"\${$as_ac_Header+set}\" = set"; then
18733 echo "$as_me:$LINENO: checking for $ac_header" >&5
18734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18735if eval "test \"\${$as_ac_Header+set}\" = set"; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18737fi
18738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18739echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18740else
18741 # Is the header compilable?
18742echo "$as_me:$LINENO: checking $ac_header usability" >&5
18743echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18744cat >conftest.$ac_ext <<_ACEOF
18745/* confdefs.h. */
18746_ACEOF
18747cat confdefs.h >>conftest.$ac_ext
18748cat >>conftest.$ac_ext <<_ACEOF
18749/* end confdefs.h. */
18750$ac_includes_default
18751#include <$ac_header>
18752_ACEOF
18753rm -f conftest.$ac_objext
18754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18755 (eval $ac_compile) 2>conftest.er1
a848cd7e 18756 ac_status=$?
ac1cb8d3
VS
18757 grep -v '^ *+' conftest.er1 >conftest.err
18758 rm -f conftest.er1
18759 cat conftest.err >&5
a848cd7e
SC
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } &&
ac1cb8d3
VS
18762 { ac_try='test -z "$ac_cxx_werror_flag"
18763 || test ! -s conftest.err'
18764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765 (eval $ac_try) 2>&5
18766 ac_status=$?
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; } &&
18769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771 (eval $ac_try) 2>&5
18772 ac_status=$?
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; }; then
18775 ac_header_compiler=yes
18776else
18777 echo "$as_me: failed program was:" >&5
18778sed 's/^/| /' conftest.$ac_ext >&5
18779
18780ac_header_compiler=no
18781fi
ac1cb8d3 18782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18784echo "${ECHO_T}$ac_header_compiler" >&6
18785
18786# Is the header present?
18787echo "$as_me:$LINENO: checking $ac_header presence" >&5
18788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18789cat >conftest.$ac_ext <<_ACEOF
18790/* confdefs.h. */
18791_ACEOF
18792cat confdefs.h >>conftest.$ac_ext
18793cat >>conftest.$ac_ext <<_ACEOF
18794/* end confdefs.h. */
18795#include <$ac_header>
18796_ACEOF
18797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18799 ac_status=$?
18800 grep -v '^ *+' conftest.er1 >conftest.err
18801 rm -f conftest.er1
18802 cat conftest.err >&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } >/dev/null; then
18805 if test -s conftest.err; then
18806 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18807 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18808 else
18809 ac_cpp_err=
18810 fi
18811else
18812 ac_cpp_err=yes
18813fi
18814if test -z "$ac_cpp_err"; then
18815 ac_header_preproc=yes
18816else
18817 echo "$as_me: failed program was:" >&5
18818sed 's/^/| /' conftest.$ac_ext >&5
18819
18820 ac_header_preproc=no
18821fi
18822rm -f conftest.err conftest.$ac_ext
18823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18824echo "${ECHO_T}$ac_header_preproc" >&6
18825
18826# So? What about this header?
ac1cb8d3
VS
18827case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18828 yes:no: )
a848cd7e
SC
18829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18830echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18832echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18833 ac_header_preproc=yes
a848cd7e 18834 ;;
ac1cb8d3 18835 no:yes:* )
a848cd7e
SC
18836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18837echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18839echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18841echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18843echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18845echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18847echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18848 (
18849 cat <<\_ASBOX
ac1cb8d3
VS
18850## ----------------------------------------- ##
18851## Report this to wx-dev@lists.wxwidgets.org ##
18852## ----------------------------------------- ##
a848cd7e
SC
18853_ASBOX
18854 ) |
18855 sed "s/^/$as_me: WARNING: /" >&2
18856 ;;
18857esac
18858echo "$as_me:$LINENO: checking for $ac_header" >&5
18859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18860if eval "test \"\${$as_ac_Header+set}\" = set"; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
18862else
ac1cb8d3 18863 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18864fi
18865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18867
18868fi
18869if test `eval echo '${'$as_ac_Header'}'` = yes; then
18870 cat >>confdefs.h <<_ACEOF
18871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18872_ACEOF
18873
18874fi
18875
18876done
18877
18878
18879 if test "$ac_cv_header_iostream" = "yes" ; then
18880 :
18881 else
18882 cat >>confdefs.h <<\_ACEOF
18883#define wxUSE_IOSTREAMH 1
18884_ACEOF
18885
18886 fi
18887
18888 ac_ext=c
18889ac_cpp='$CPP $CPPFLAGS'
18890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18892ac_compiler_gnu=$ac_cv_c_compiler_gnu
18893
18894
18895
18896
18897 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18898echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18899if test "${wx_cv_cpp_bool+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18901else
18902
18903
18904
18905 ac_ext=cc
18906ac_cpp='$CXXCPP $CPPFLAGS'
18907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18910
18911
18912 cat >conftest.$ac_ext <<_ACEOF
18913/* confdefs.h. */
18914_ACEOF
18915cat confdefs.h >>conftest.$ac_ext
18916cat >>conftest.$ac_ext <<_ACEOF
18917/* end confdefs.h. */
18918
18919
18920int
18921main ()
18922{
18923
18924 bool b = true;
18925
18926 return 0;
18927
18928 ;
18929 return 0;
18930}
18931_ACEOF
18932rm -f conftest.$ac_objext
18933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18934 (eval $ac_compile) 2>conftest.er1
a848cd7e 18935 ac_status=$?
ac1cb8d3
VS
18936 grep -v '^ *+' conftest.er1 >conftest.err
18937 rm -f conftest.er1
18938 cat conftest.err >&5
a848cd7e
SC
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } &&
ac1cb8d3
VS
18941 { ac_try='test -z "$ac_cxx_werror_flag"
18942 || test ! -s conftest.err'
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954
18955 wx_cv_cpp_bool=yes
18956
18957else
18958 echo "$as_me: failed program was:" >&5
18959sed 's/^/| /' conftest.$ac_ext >&5
18960
18961
18962 wx_cv_cpp_bool=no
18963
18964
18965fi
ac1cb8d3 18966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18967
18968 ac_ext=c
18969ac_cpp='$CPP $CPPFLAGS'
18970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18972ac_compiler_gnu=$ac_cv_c_compiler_gnu
18973
18974
18975fi
18976echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18977echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18978
18979 if test "$wx_cv_cpp_bool" = "yes"; then
18980 cat >>confdefs.h <<\_ACEOF
18981#define HAVE_BOOL 1
18982_ACEOF
18983
18984 fi
18985
18986
18987
18988 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18989echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18990if test "${wx_cv_explicit+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18992else
18993
18994
18995
18996 ac_ext=cc
18997ac_cpp='$CXXCPP $CPPFLAGS'
18998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19001
19002
19003 cat >conftest.$ac_ext <<_ACEOF
19004/* confdefs.h. */
19005_ACEOF
19006cat confdefs.h >>conftest.$ac_ext
19007cat >>conftest.$ac_ext <<_ACEOF
19008/* end confdefs.h. */
19009
19010 class Foo { public: explicit Foo(int) {} };
19011
19012int
19013main ()
19014{
19015
19016 return 0;
19017
19018 ;
19019 return 0;
19020}
19021_ACEOF
19022rm -f conftest.$ac_objext
19023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19024 (eval $ac_compile) 2>conftest.er1
a848cd7e 19025 ac_status=$?
ac1cb8d3
VS
19026 grep -v '^ *+' conftest.er1 >conftest.err
19027 rm -f conftest.er1
19028 cat conftest.err >&5
a848cd7e
SC
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } &&
ac1cb8d3
VS
19031 { ac_try='test -z "$ac_cxx_werror_flag"
19032 || test ! -s conftest.err'
19033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19034 (eval $ac_try) 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; } &&
19038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; }; then
19044
19045 cat >conftest.$ac_ext <<_ACEOF
19046/* confdefs.h. */
19047_ACEOF
19048cat confdefs.h >>conftest.$ac_ext
19049cat >>conftest.$ac_ext <<_ACEOF
19050/* end confdefs.h. */
19051
19052 class Foo { public: explicit Foo(int) {} };
19053 static void TakeFoo(const Foo& foo) { }
19054
19055int
19056main ()
19057{
19058
19059 TakeFoo(17);
19060 return 0;
19061
19062 ;
19063 return 0;
19064}
19065_ACEOF
19066rm -f conftest.$ac_objext
19067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19068 (eval $ac_compile) 2>conftest.er1
a848cd7e 19069 ac_status=$?
ac1cb8d3
VS
19070 grep -v '^ *+' conftest.er1 >conftest.err
19071 rm -f conftest.er1
19072 cat conftest.err >&5
a848cd7e
SC
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
ac1cb8d3
VS
19075 { ac_try='test -z "$ac_cxx_werror_flag"
19076 || test ! -s conftest.err'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19079 ac_status=$?
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; } &&
19082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
19088 wx_cv_explicit=no
19089else
19090 echo "$as_me: failed program was:" >&5
19091sed 's/^/| /' conftest.$ac_ext >&5
19092
19093wx_cv_explicit=yes
19094
19095fi
ac1cb8d3 19096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19097
19098else
19099 echo "$as_me: failed program was:" >&5
19100sed 's/^/| /' conftest.$ac_ext >&5
19101
19102wx_cv_explicit=no
19103
19104fi
ac1cb8d3 19105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19106
19107 ac_ext=c
19108ac_cpp='$CPP $CPPFLAGS'
19109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19111ac_compiler_gnu=$ac_cv_c_compiler_gnu
19112
19113
19114fi
19115echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19116echo "${ECHO_T}$wx_cv_explicit" >&6
19117
19118 if test "$wx_cv_explicit" = "yes"; then
19119 cat >>confdefs.h <<\_ACEOF
19120#define HAVE_EXPLICIT 1
19121_ACEOF
19122
19123 fi
19124
19125
19126echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19127echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19128if test "${ac_cv_cxx_const_cast+set}" = set; then
19129 echo $ECHO_N "(cached) $ECHO_C" >&6
19130else
19131
19132
19133 ac_ext=cc
19134ac_cpp='$CXXCPP $CPPFLAGS'
19135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19138
19139 cat >conftest.$ac_ext <<_ACEOF
19140/* confdefs.h. */
19141_ACEOF
19142cat confdefs.h >>conftest.$ac_ext
19143cat >>conftest.$ac_ext <<_ACEOF
19144/* end confdefs.h. */
19145
19146int
19147main ()
19148{
19149int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19150 ;
19151 return 0;
19152}
19153_ACEOF
19154rm -f conftest.$ac_objext
19155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19156 (eval $ac_compile) 2>conftest.er1
a848cd7e 19157 ac_status=$?
ac1cb8d3
VS
19158 grep -v '^ *+' conftest.er1 >conftest.err
19159 rm -f conftest.er1
19160 cat conftest.err >&5
a848cd7e
SC
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } &&
ac1cb8d3
VS
19163 { ac_try='test -z "$ac_cxx_werror_flag"
19164 || test ! -s conftest.err'
19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; } &&
19170 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; }; then
19176 ac_cv_cxx_const_cast=yes
19177else
19178 echo "$as_me: failed program was:" >&5
19179sed 's/^/| /' conftest.$ac_ext >&5
19180
19181ac_cv_cxx_const_cast=no
19182fi
ac1cb8d3 19183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19184 ac_ext=c
19185ac_cpp='$CPP $CPPFLAGS'
19186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19188ac_compiler_gnu=$ac_cv_c_compiler_gnu
19189
19190
19191fi
19192echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19193echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19194if test "$ac_cv_cxx_const_cast" = yes; then
19195
19196cat >>confdefs.h <<\_ACEOF
19197#define HAVE_CONST_CAST
19198_ACEOF
19199
19200fi
19201
19202echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19203echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19204if test "${ac_cv_cxx_static_cast+set}" = set; then
19205 echo $ECHO_N "(cached) $ECHO_C" >&6
19206else
19207
19208
19209 ac_ext=cc
19210ac_cpp='$CXXCPP $CPPFLAGS'
19211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19214
19215 cat >conftest.$ac_ext <<_ACEOF
19216/* confdefs.h. */
19217_ACEOF
19218cat confdefs.h >>conftest.$ac_ext
19219cat >>conftest.$ac_ext <<_ACEOF
19220/* end confdefs.h. */
19221#include <typeinfo>
19222class Base { public : Base () {} virtual void f () = 0; };
19223class Derived : public Base { public : Derived () {} virtual void f () {} };
19224int g (Derived&) { return 0; }
19225int
19226main ()
19227{
19228
19229Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19230 ;
19231 return 0;
19232}
19233_ACEOF
19234rm -f conftest.$ac_objext
19235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19236 (eval $ac_compile) 2>conftest.er1
a848cd7e 19237 ac_status=$?
ac1cb8d3
VS
19238 grep -v '^ *+' conftest.er1 >conftest.err
19239 rm -f conftest.er1
19240 cat conftest.err >&5
a848cd7e
SC
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } &&
ac1cb8d3
VS
19243 { ac_try='test -z "$ac_cxx_werror_flag"
19244 || test ! -s conftest.err'
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19247 ac_status=$?
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; } &&
19250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19253 ac_status=$?
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; }; then
19256 ac_cv_cxx_static_cast=yes
19257else
19258 echo "$as_me: failed program was:" >&5
19259sed 's/^/| /' conftest.$ac_ext >&5
19260
19261ac_cv_cxx_static_cast=no
19262fi
ac1cb8d3 19263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19264 ac_ext=c
19265ac_cpp='$CPP $CPPFLAGS'
19266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19268ac_compiler_gnu=$ac_cv_c_compiler_gnu
19269
19270
19271fi
19272echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19273echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19274if test "$ac_cv_cxx_static_cast" = yes; then
19275
19276cat >>confdefs.h <<\_ACEOF
19277#define HAVE_STATIC_CAST
19278_ACEOF
19279
19280fi
19281
19282
19283if test "$wxUSE_STL" = "yes"; then
19284 ac_ext=cc
19285ac_cpp='$CXXCPP $CPPFLAGS'
19286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19289
19290
19291 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19292echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19293 cat >conftest.$ac_ext <<_ACEOF
19294/* confdefs.h. */
19295_ACEOF
19296cat confdefs.h >>conftest.$ac_ext
19297cat >>conftest.$ac_ext <<_ACEOF
19298/* end confdefs.h. */
19299#include <string>
19300 #include <functional>
19301 #include <algorithm>
19302 #include <vector>
19303 #include <list>
19304int
19305main ()
19306{
19307std::vector<int> moo;
19308 std::list<int> foo;
19309 std::vector<int>::iterator it =
19310 std::find_if(moo.begin(), moo.end(),
19311 std::bind2nd(std::less<int>(), 3));
19312 ;
19313 return 0;
19314}
19315_ACEOF
19316rm -f conftest.$ac_objext
19317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19318 (eval $ac_compile) 2>conftest.er1
a848cd7e 19319 ac_status=$?
ac1cb8d3
VS
19320 grep -v '^ *+' conftest.er1 >conftest.err
19321 rm -f conftest.er1
19322 cat conftest.err >&5
a848cd7e
SC
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
ac1cb8d3
VS
19325 { ac_try='test -z "$ac_cxx_werror_flag"
19326 || test ! -s conftest.err'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19338 echo "$as_me:$LINENO: result: yes" >&5
19339echo "${ECHO_T}yes" >&6
19340else
19341 echo "$as_me: failed program was:" >&5
19342sed 's/^/| /' conftest.$ac_ext >&5
19343
19344echo "$as_me:$LINENO: result: no" >&5
19345echo "${ECHO_T}no" >&6
19346 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19347echo "$as_me: error: Basic STL functionality missing" >&2;}
19348 { (exit 1); exit 1; }; }
19349fi
ac1cb8d3 19350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19351
19352 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19353echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19354 cat >conftest.$ac_ext <<_ACEOF
19355/* confdefs.h. */
19356_ACEOF
19357cat confdefs.h >>conftest.$ac_ext
19358cat >>conftest.$ac_ext <<_ACEOF
19359/* end confdefs.h. */
19360#include <string>
19361int
19362main ()
19363{
19364std::wstring foo;
19365 ;
19366 return 0;
19367}
19368_ACEOF
19369rm -f conftest.$ac_objext
19370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19371 (eval $ac_compile) 2>conftest.er1
a848cd7e 19372 ac_status=$?
ac1cb8d3
VS
19373 grep -v '^ *+' conftest.er1 >conftest.err
19374 rm -f conftest.er1
19375 cat conftest.err >&5
a848cd7e
SC
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
ac1cb8d3
VS
19378 { ac_try='test -z "$ac_cxx_werror_flag"
19379 || test ! -s conftest.err'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 echo "$as_me:$LINENO: result: yes" >&5
19392echo "${ECHO_T}yes" >&6
19393 cat >>confdefs.h <<\_ACEOF
19394#define HAVE_STD_WSTRING 1
19395_ACEOF
19396
19397else
19398 echo "$as_me: failed program was:" >&5
19399sed 's/^/| /' conftest.$ac_ext >&5
19400
19401echo "$as_me:$LINENO: result: no" >&5
19402echo "${ECHO_T}no" >&6
19403fi
ac1cb8d3 19404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19405
19406 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19407echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19408 cat >conftest.$ac_ext <<_ACEOF
19409/* confdefs.h. */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
19413/* end confdefs.h. */
19414#include <string>
19415int
19416main ()
19417{
19418std::string foo, bar;
19419 foo.compare(bar);
19420 foo.compare(1, 1, bar);
19421 foo.compare(1, 1, bar, 1, 1);
19422 foo.compare("");
19423 foo.compare(1, 1, "");
19424 foo.compare(1, 1, "", 2);
19425 ;
19426 return 0;
19427}
19428_ACEOF
19429rm -f conftest.$ac_objext
19430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19431 (eval $ac_compile) 2>conftest.er1
a848cd7e 19432 ac_status=$?
ac1cb8d3
VS
19433 grep -v '^ *+' conftest.er1 >conftest.err
19434 rm -f conftest.er1
19435 cat conftest.err >&5
a848cd7e
SC
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
ac1cb8d3
VS
19438 { ac_try='test -z "$ac_cxx_werror_flag"
19439 || test ! -s conftest.err'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; } &&
19445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447 (eval $ac_try) 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; }; then
19451 echo "$as_me:$LINENO: result: yes" >&5
19452echo "${ECHO_T}yes" >&6
19453 cat >>confdefs.h <<\_ACEOF
19454#define HAVE_STD_STRING_COMPARE 1
19455_ACEOF
19456
19457else
19458 echo "$as_me: failed program was:" >&5
19459sed 's/^/| /' conftest.$ac_ext >&5
19460
19461echo "$as_me:$LINENO: result: no" >&5
19462echo "${ECHO_T}no" >&6
19463fi
ac1cb8d3 19464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19465
19466 if test "${ac_cv_header_hash_map+set}" = set; then
19467 echo "$as_me:$LINENO: checking for hash_map" >&5
19468echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19469if test "${ac_cv_header_hash_map+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19471fi
19472echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19473echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19474else
19475 # Is the header compilable?
19476echo "$as_me:$LINENO: checking hash_map usability" >&5
19477echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19478cat >conftest.$ac_ext <<_ACEOF
19479/* confdefs.h. */
19480_ACEOF
19481cat confdefs.h >>conftest.$ac_ext
19482cat >>conftest.$ac_ext <<_ACEOF
19483/* end confdefs.h. */
19484$ac_includes_default
19485#include <hash_map>
19486_ACEOF
19487rm -f conftest.$ac_objext
19488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19489 (eval $ac_compile) 2>conftest.er1
bdcade0a 19490 ac_status=$?
ac1cb8d3
VS
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
bdcade0a
MB
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
ac1cb8d3
VS
19496 { ac_try='test -z "$ac_cxx_werror_flag"
19497 || test ! -s conftest.err'
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; } &&
19503 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; }; then
19509 ac_header_compiler=yes
19510else
19511 echo "$as_me: failed program was:" >&5
19512sed 's/^/| /' conftest.$ac_ext >&5
19513
19514ac_header_compiler=no
19515fi
ac1cb8d3 19516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19517echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19518echo "${ECHO_T}$ac_header_compiler" >&6
19519
19520# Is the header present?
19521echo "$as_me:$LINENO: checking hash_map presence" >&5
19522echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19523cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h. */
19529#include <hash_map>
19530_ACEOF
19531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19533 ac_status=$?
19534 grep -v '^ *+' conftest.er1 >conftest.err
19535 rm -f conftest.er1
19536 cat conftest.err >&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } >/dev/null; then
19539 if test -s conftest.err; then
19540 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19541 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19542 else
19543 ac_cpp_err=
19544 fi
19545else
19546 ac_cpp_err=yes
19547fi
19548if test -z "$ac_cpp_err"; then
19549 ac_header_preproc=yes
19550else
19551 echo "$as_me: failed program was:" >&5
19552sed 's/^/| /' conftest.$ac_ext >&5
19553
19554 ac_header_preproc=no
19555fi
19556rm -f conftest.err conftest.$ac_ext
19557echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19558echo "${ECHO_T}$ac_header_preproc" >&6
19559
19560# So? What about this header?
ac1cb8d3
VS
19561case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19562 yes:no: )
bdcade0a
MB
19563 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19564echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19565 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19566echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19567 ac_header_preproc=yes
bdcade0a 19568 ;;
ac1cb8d3 19569 no:yes:* )
bdcade0a
MB
19570 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19571echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19572 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19573echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19574 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19575echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19576 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19577echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19578 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19579echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19580 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19581echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19582 (
19583 cat <<\_ASBOX
ac1cb8d3
VS
19584## ----------------------------------------- ##
19585## Report this to wx-dev@lists.wxwidgets.org ##
19586## ----------------------------------------- ##
bdcade0a
MB
19587_ASBOX
19588 ) |
19589 sed "s/^/$as_me: WARNING: /" >&2
19590 ;;
19591esac
19592echo "$as_me:$LINENO: checking for hash_map" >&5
19593echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19594if test "${ac_cv_header_hash_map+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19596else
19597 ac_cv_header_hash_map=$ac_header_preproc
19598fi
19599echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19600echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19601
19602fi
19603if test $ac_cv_header_hash_map = yes; then
19604 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19605echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19607/* confdefs.h. */
19608_ACEOF
19609cat confdefs.h >>conftest.$ac_ext
19610cat >>conftest.$ac_ext <<_ACEOF
19611/* end confdefs.h. */
19612#include <hash_map>
19613 #include <hash_set>
19614int
19615main ()
19616{
19617std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19618 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19619 ;
19620 return 0;
19621}
19622_ACEOF
19623rm -f conftest.$ac_objext
19624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19625 (eval $ac_compile) 2>conftest.er1
bdcade0a 19626 ac_status=$?
ac1cb8d3
VS
19627 grep -v '^ *+' conftest.er1 >conftest.err
19628 rm -f conftest.er1
19629 cat conftest.err >&5
bdcade0a
MB
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } &&
ac1cb8d3
VS
19632 { ac_try='test -z "$ac_cxx_werror_flag"
19633 || test ! -s conftest.err'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
19645 echo "$as_me:$LINENO: result: yes" >&5
19646echo "${ECHO_T}yes" >&6
19647 cat >>confdefs.h <<\_ACEOF
19648#define HAVE_HASH_MAP 1
19649_ACEOF
19650
19651 cat >>confdefs.h <<\_ACEOF
19652#define HAVE_STD_HASH_MAP 1
19653_ACEOF
19654
19655else
19656 echo "$as_me: failed program was:" >&5
19657sed 's/^/| /' conftest.$ac_ext >&5
19658
19659echo "$as_me:$LINENO: result: no" >&5
19660echo "${ECHO_T}no" >&6
19661fi
ac1cb8d3 19662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19663
19664fi
19665
19666
19667
19668 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19669 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19670echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19671if test "${ac_cv_header_ext_hash_map+set}" = set; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19673fi
19674echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19675echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19676else
19677 # Is the header compilable?
19678echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19679echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19680cat >conftest.$ac_ext <<_ACEOF
19681/* confdefs.h. */
19682_ACEOF
19683cat confdefs.h >>conftest.$ac_ext
19684cat >>conftest.$ac_ext <<_ACEOF
19685/* end confdefs.h. */
19686$ac_includes_default
19687#include <ext/hash_map>
19688_ACEOF
19689rm -f conftest.$ac_objext
19690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19691 (eval $ac_compile) 2>conftest.er1
bdcade0a 19692 ac_status=$?
ac1cb8d3
VS
19693 grep -v '^ *+' conftest.er1 >conftest.err
19694 rm -f conftest.er1
19695 cat conftest.err >&5
bdcade0a
MB
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } &&
ac1cb8d3
VS
19698 { ac_try='test -z "$ac_cxx_werror_flag"
19699 || test ! -s conftest.err'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; } &&
19705 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; }; then
19711 ac_header_compiler=yes
19712else
19713 echo "$as_me: failed program was:" >&5
19714sed 's/^/| /' conftest.$ac_ext >&5
19715
19716ac_header_compiler=no
19717fi
ac1cb8d3 19718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19719echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19720echo "${ECHO_T}$ac_header_compiler" >&6
19721
19722# Is the header present?
19723echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19724echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19725cat >conftest.$ac_ext <<_ACEOF
19726/* confdefs.h. */
19727_ACEOF
19728cat confdefs.h >>conftest.$ac_ext
19729cat >>conftest.$ac_ext <<_ACEOF
19730/* end confdefs.h. */
19731#include <ext/hash_map>
19732_ACEOF
19733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19735 ac_status=$?
19736 grep -v '^ *+' conftest.er1 >conftest.err
19737 rm -f conftest.er1
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } >/dev/null; then
19741 if test -s conftest.err; then
19742 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19743 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19744 else
19745 ac_cpp_err=
19746 fi
19747else
19748 ac_cpp_err=yes
19749fi
19750if test -z "$ac_cpp_err"; then
19751 ac_header_preproc=yes
19752else
19753 echo "$as_me: failed program was:" >&5
19754sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 ac_header_preproc=no
19757fi
19758rm -f conftest.err conftest.$ac_ext
19759echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19760echo "${ECHO_T}$ac_header_preproc" >&6
19761
19762# So? What about this header?
ac1cb8d3
VS
19763case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19764 yes:no: )
bdcade0a
MB
19765 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19766echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19767 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19768echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19769 ac_header_preproc=yes
bdcade0a 19770 ;;
ac1cb8d3 19771 no:yes:* )
bdcade0a
MB
19772 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19773echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19774 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19775echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19776 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19777echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19778 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19779echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19780 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19781echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19782 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19783echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19784 (
19785 cat <<\_ASBOX
ac1cb8d3
VS
19786## ----------------------------------------- ##
19787## Report this to wx-dev@lists.wxwidgets.org ##
19788## ----------------------------------------- ##
bdcade0a
MB
19789_ASBOX
19790 ) |
19791 sed "s/^/$as_me: WARNING: /" >&2
19792 ;;
19793esac
19794echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19795echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19796if test "${ac_cv_header_ext_hash_map+set}" = set; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19798else
19799 ac_cv_header_ext_hash_map=$ac_header_preproc
19800fi
19801echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19802echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19803
19804fi
19805if test $ac_cv_header_ext_hash_map = yes; then
19806 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19807echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19808 cat >conftest.$ac_ext <<_ACEOF
19809/* confdefs.h. */
19810_ACEOF
19811cat confdefs.h >>conftest.$ac_ext
19812cat >>conftest.$ac_ext <<_ACEOF
19813/* end confdefs.h. */
19814#include <ext/hash_map>
19815 #include <ext/hash_set>
19816int
19817main ()
19818{
19819__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19820 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19821 ;
19822 return 0;
19823}
19824_ACEOF
19825rm -f conftest.$ac_objext
19826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19827 (eval $ac_compile) 2>conftest.er1
bdcade0a 19828 ac_status=$?
ac1cb8d3
VS
19829 grep -v '^ *+' conftest.er1 >conftest.err
19830 rm -f conftest.er1
19831 cat conftest.err >&5
bdcade0a
MB
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } &&
ac1cb8d3
VS
19834 { ac_try='test -z "$ac_cxx_werror_flag"
19835 || test ! -s conftest.err'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; } &&
19841 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; }; then
19847 echo "$as_me:$LINENO: result: yes" >&5
19848echo "${ECHO_T}yes" >&6
19849 cat >>confdefs.h <<\_ACEOF
19850#define HAVE_EXT_HASH_MAP 1
19851_ACEOF
19852
19853 cat >>confdefs.h <<\_ACEOF
19854#define HAVE_GNU_CXX_HASH_MAP 1
19855_ACEOF
19856
19857else
19858 echo "$as_me: failed program was:" >&5
19859sed 's/^/| /' conftest.$ac_ext >&5
19860
19861echo "$as_me:$LINENO: result: no" >&5
19862echo "${ECHO_T}no" >&6
19863fi
ac1cb8d3 19864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19865
19866fi
19867
19868
a848cd7e
SC
19869
19870 ac_ext=c
19871ac_cpp='$CPP $CPPFLAGS'
19872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19874ac_compiler_gnu=$ac_cv_c_compiler_gnu
19875
19876fi
19877
19878
19879SEARCH_INCLUDE="\
19880 /usr/local/include \
19881 \
19882 /usr/Motif-2.1/include \
19883 /usr/Motif-1.2/include \
19884 /usr/include/Motif1.2 \
19885 /opt/xpm/include/X11 \
19886 /opt/GBxpm/include/ \
19887 /opt/GBxpm/X11/include/ \
19888 \
19889 /usr/dt/include \
19890 /usr/openwin/include \
19891 \
19892 /usr/include/Xm \
19893 \
19894 /usr/X11R6/include \
19895 /usr/X11R6.4/include \
19896 /usr/X11R5/include \
19897 /usr/X11R4/include \
19898 \
19899 /usr/include/X11R6 \
19900 /usr/include/X11R5 \
19901 /usr/include/X11R4 \
19902 \
19903 /usr/local/X11R6/include \
19904 /usr/local/X11R5/include \
19905 /usr/local/X11R4/include \
19906 \
19907 /usr/local/include/X11R6 \
19908 /usr/local/include/X11R5 \
19909 /usr/local/include/X11R4 \
19910 \
19911 /usr/X11/include \
19912 /usr/include/X11 \
19913 /usr/local/X11/include \
19914 /usr/local/include/X11 \
19915 \
19916 /usr/X386/include \
19917 /usr/x386/include \
19918 /usr/XFree86/include/X11 \
19919 \
19920 X:/XFree86/include \
19921 X:/XFree86/include/X11 \
19922 \
19923 /usr/include/gtk \
19924 /usr/local/include/gtk \
19925 /usr/include/glib \
19926 /usr/local/include/glib \
19927 \
19928 /usr/include/qt \
19929 /usr/local/include/qt \
19930 \
19931 /usr/local/arm/3.3.2/include \
19932 \
19933 /usr/include/windows \
19934 /usr/include/wine \
19935 /usr/local/include/wine \
19936 \
19937 /usr/unsupported/include \
19938 /usr/athena/include \
19939 /usr/local/x11r5/include \
19940 /usr/lpp/Xamples/include \
19941 \
19942 /usr/openwin/share/include"
19943
19944SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19945
19946
19947cat >confcache <<\_ACEOF
19948# This file is a shell script that caches the results of configure
19949# tests run on this system so they can be shared between configure
19950# scripts and configure runs, see configure's option --config-cache.
19951# It is not useful on other systems. If it contains results you don't
19952# want to keep, you may remove or edit it.
19953#
19954# config.status only pays attention to the cache file if you give it
19955# the --recheck option to rerun configure.
19956#
19957# `ac_cv_env_foo' variables (set or unset) will be overridden when
19958# loading this file, other *unset* `ac_cv_foo' will be assigned the
19959# following values.
19960
19961_ACEOF
19962
19963# The following way of writing the cache mishandles newlines in values,
19964# but we know of no workaround that is simple, portable, and efficient.
19965# So, don't put newlines in cache variables' values.
19966# Ultrix sh set writes to stderr and can't be redirected directly,
19967# and sets the high bit in the cache file unless we assign to the vars.
19968{
19969 (set) 2>&1 |
19970 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19971 *ac_space=\ *)
19972 # `set' does not quote correctly, so add quotes (double-quote
19973 # substitution turns \\\\ into \\, and sed turns \\ into \).
19974 sed -n \
ac1cb8d3
VS
19975 "s/'/'\\\\''/g;
19976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
19977 ;;
19978 *)
19979 # `set' quotes correctly as required by POSIX, so do not add quotes.
19980 sed -n \
ac1cb8d3 19981 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
19982 ;;
19983 esac;
19984} |
19985 sed '
19986 t clear
19987 : clear
19988 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19989 t end
19990 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19991 : end' >>confcache
19992if diff $cache_file confcache >/dev/null 2>&1; then :; else
19993 if test -w $cache_file; then
19994 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19995 cat confcache >$cache_file
19996 else
19997 echo "not updating unwritable cache $cache_file"
19998 fi
19999fi
20000rm -f confcache
20001
20002if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20003 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20004echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20005if test "${wx_cv_lib_glibc21+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20007else
20008
20009 cat >conftest.$ac_ext <<_ACEOF
20010/* confdefs.h. */
20011_ACEOF
20012cat confdefs.h >>conftest.$ac_ext
20013cat >>conftest.$ac_ext <<_ACEOF
20014/* end confdefs.h. */
20015#include <features.h>
20016int
20017main ()
20018{
20019
20020 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20021 #error not glibc2.1
20022 #endif
20023
20024 ;
20025 return 0;
20026}
20027_ACEOF
20028rm -f conftest.$ac_objext
20029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20030 (eval $ac_compile) 2>conftest.er1
a848cd7e 20031 ac_status=$?
ac1cb8d3
VS
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
a848cd7e
SC
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
ac1cb8d3
VS
20037 { ac_try='test -z "$ac_c_werror_flag"
20038 || test ! -s conftest.err'
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20041 ac_status=$?
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; } &&
20044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; }; then
20050
20051 wx_cv_lib_glibc21=yes
20052
20053else
20054 echo "$as_me: failed program was:" >&5
20055sed 's/^/| /' conftest.$ac_ext >&5
20056
20057
20058 wx_cv_lib_glibc21=no
20059
20060
20061fi
ac1cb8d3 20062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20063
20064fi
20065echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20066echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20067 if test "$wx_cv_lib_glibc21" = "yes"; then
20068 cat >>confdefs.h <<\_ACEOF
20069#define wxHAVE_GLIBC2 1
20070_ACEOF
20071
20072 fi
20073fi
20074
20075if test "x$wx_cv_lib_glibc21" = "xyes"; then
20076 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20077 cat >>confdefs.h <<\_ACEOF
20078#define _GNU_SOURCE 1
20079_ACEOF
20080
20081 fi
20082fi
20083
20084
20085
20086if test "$wxUSE_REGEX" != "no"; then
20087 cat >>confdefs.h <<\_ACEOF
20088#define wxUSE_REGEX 1
20089_ACEOF
20090
20091
20092 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20093 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20094echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20095 wxUSE_REGEX=builtin
20096 fi
20097
20098 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20099 if test "${ac_cv_header_regex_h+set}" = set; then
20100 echo "$as_me:$LINENO: checking for regex.h" >&5
20101echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20102if test "${ac_cv_header_regex_h+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20104fi
20105echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20106echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20107else
20108 # Is the header compilable?
20109echo "$as_me:$LINENO: checking regex.h usability" >&5
20110echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20111cat >conftest.$ac_ext <<_ACEOF
20112/* confdefs.h. */
20113_ACEOF
20114cat confdefs.h >>conftest.$ac_ext
20115cat >>conftest.$ac_ext <<_ACEOF
20116/* end confdefs.h. */
20117$ac_includes_default
20118#include <regex.h>
20119_ACEOF
20120rm -f conftest.$ac_objext
20121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20122 (eval $ac_compile) 2>conftest.er1
a848cd7e 20123 ac_status=$?
ac1cb8d3
VS
20124 grep -v '^ *+' conftest.er1 >conftest.err
20125 rm -f conftest.er1
20126 cat conftest.err >&5
a848cd7e
SC
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } &&
ac1cb8d3
VS
20129 { ac_try='test -z "$ac_c_werror_flag"
20130 || test ! -s conftest.err'
20131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132 (eval $ac_try) 2>&5
20133 ac_status=$?
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; } &&
20136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20138 (eval $ac_try) 2>&5
20139 ac_status=$?
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); }; }; then
20142 ac_header_compiler=yes
20143else
20144 echo "$as_me: failed program was:" >&5
20145sed 's/^/| /' conftest.$ac_ext >&5
20146
20147ac_header_compiler=no
20148fi
ac1cb8d3 20149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20150echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20151echo "${ECHO_T}$ac_header_compiler" >&6
20152
20153# Is the header present?
20154echo "$as_me:$LINENO: checking regex.h presence" >&5
20155echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20156cat >conftest.$ac_ext <<_ACEOF
20157/* confdefs.h. */
20158_ACEOF
20159cat confdefs.h >>conftest.$ac_ext
20160cat >>conftest.$ac_ext <<_ACEOF
20161/* end confdefs.h. */
20162#include <regex.h>
20163_ACEOF
20164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20166 ac_status=$?
20167 grep -v '^ *+' conftest.er1 >conftest.err
20168 rm -f conftest.er1
20169 cat conftest.err >&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } >/dev/null; then
20172 if test -s conftest.err; then
20173 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20175 else
20176 ac_cpp_err=
20177 fi
20178else
20179 ac_cpp_err=yes
20180fi
20181if test -z "$ac_cpp_err"; then
20182 ac_header_preproc=yes
20183else
20184 echo "$as_me: failed program was:" >&5
20185sed 's/^/| /' conftest.$ac_ext >&5
20186
20187 ac_header_preproc=no
20188fi
20189rm -f conftest.err conftest.$ac_ext
20190echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20191echo "${ECHO_T}$ac_header_preproc" >&6
20192
20193# So? What about this header?
ac1cb8d3
VS
20194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20195 yes:no: )
a848cd7e
SC
20196 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20197echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20198 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20199echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20200 ac_header_preproc=yes
a848cd7e 20201 ;;
ac1cb8d3 20202 no:yes:* )
a848cd7e
SC
20203 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20204echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20205 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20206echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20207 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20208echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20209 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20210echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20211 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20212echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20213 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20214echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20215 (
20216 cat <<\_ASBOX
ac1cb8d3
VS
20217## ----------------------------------------- ##
20218## Report this to wx-dev@lists.wxwidgets.org ##
20219## ----------------------------------------- ##
a848cd7e
SC
20220_ASBOX
20221 ) |
20222 sed "s/^/$as_me: WARNING: /" >&2
20223 ;;
20224esac
20225echo "$as_me:$LINENO: checking for regex.h" >&5
20226echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20227if test "${ac_cv_header_regex_h+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20229else
20230 ac_cv_header_regex_h=$ac_header_preproc
20231fi
20232echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20233echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20234
20235fi
20236if test $ac_cv_header_regex_h = yes; then
20237
20238for ac_func in regcomp
20239do
20240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20241echo "$as_me:$LINENO: checking for $ac_func" >&5
20242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20243if eval "test \"\${$as_ac_var+set}\" = set"; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20245else
20246 cat >conftest.$ac_ext <<_ACEOF
20247/* confdefs.h. */
20248_ACEOF
20249cat confdefs.h >>conftest.$ac_ext
20250cat >>conftest.$ac_ext <<_ACEOF
20251/* end confdefs.h. */
ac1cb8d3
VS
20252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20254#define $ac_func innocuous_$ac_func
20255
a848cd7e
SC
20256/* System header to define __stub macros and hopefully few prototypes,
20257 which can conflict with char $ac_func (); below.
20258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20259 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20260
a848cd7e
SC
20261#ifdef __STDC__
20262# include <limits.h>
20263#else
20264# include <assert.h>
20265#endif
ac1cb8d3
VS
20266
20267#undef $ac_func
20268
a848cd7e
SC
20269/* Override any gcc2 internal prototype to avoid an error. */
20270#ifdef __cplusplus
20271extern "C"
20272{
20273#endif
20274/* We use char because int might match the return type of a gcc2
20275 builtin and then its argument prototype would still apply. */
20276char $ac_func ();
20277/* The GNU C library defines this for functions which it implements
20278 to always fail with ENOSYS. Some functions are actually named
20279 something starting with __ and the normal name is an alias. */
20280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20281choke me
20282#else
20283char (*f) () = $ac_func;
20284#endif
20285#ifdef __cplusplus
20286}
20287#endif
20288
20289int
20290main ()
20291{
20292return f != $ac_func;
20293 ;
20294 return 0;
20295}
20296_ACEOF
20297rm -f conftest.$ac_objext conftest$ac_exeext
20298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20299 (eval $ac_link) 2>conftest.er1
a848cd7e 20300 ac_status=$?
ac1cb8d3
VS
20301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
a848cd7e
SC
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } &&
ac1cb8d3
VS
20306 { ac_try='test -z "$ac_c_werror_flag"
20307 || test ! -s conftest.err'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; } &&
20313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; }; then
20319 eval "$as_ac_var=yes"
20320else
20321 echo "$as_me: failed program was:" >&5
20322sed 's/^/| /' conftest.$ac_ext >&5
20323
20324eval "$as_ac_var=no"
20325fi
ac1cb8d3
VS
20326rm -f conftest.err conftest.$ac_objext \
20327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20328fi
20329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20330echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20331if test `eval echo '${'$as_ac_var'}'` = yes; then
20332 cat >>confdefs.h <<_ACEOF
20333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20334_ACEOF
20335
20336fi
20337done
20338
20339fi
20340
20341
20342
20343 if test "x$ac_cv_func_regcomp" != "xyes"; then
20344 if test "$wxUSE_REGEX" = "sys" ; then
20345 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20346echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20347 { (exit 1); exit 1; }; }
20348 else
20349 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20350echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20351 wxUSE_REGEX=builtin
20352 fi
20353 else
20354 wxUSE_REGEX=sys
20355 cat >>confdefs.h <<\_ACEOF
20356#define WX_NO_REGEX_ADVANCED 1
20357_ACEOF
20358
20359 fi
20360 fi
20361fi
20362
20363
20364ZLIB_LINK=
20365if test "$wxUSE_ZLIB" != "no" ; then
20366 cat >>confdefs.h <<\_ACEOF
20367#define wxUSE_ZLIB 1
20368_ACEOF
20369
20370
20371 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20372 if test "$USE_DARWIN" = 1; then
20373 system_zlib_h_ok="yes"
20374 else
20375 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20376echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20377if test "${ac_cv_header_zlib_h+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20379else
20380 if test "$cross_compiling" = yes; then
20381 unset ac_cv_header_zlib_h
20382
20383else
20384 cat >conftest.$ac_ext <<_ACEOF
20385/* confdefs.h. */
20386_ACEOF
20387cat confdefs.h >>conftest.$ac_ext
20388cat >>conftest.$ac_ext <<_ACEOF
20389/* end confdefs.h. */
20390
20391 #include <zlib.h>
20392 #include <stdio.h>
20393
20394 int main()
20395 {
20396 FILE *f=fopen("conftestval", "w");
20397 if (!f) exit(1);
20398 fprintf(f, "%s",
20399 ZLIB_VERSION[0] == '1' &&
20400 (ZLIB_VERSION[2] > '1' ||
20401 (ZLIB_VERSION[2] == '1' &&
20402 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20403 exit(0);
20404 }
20405
20406_ACEOF
20407rm -f conftest$ac_exeext
20408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20409 (eval $ac_link) 2>&5
20410 ac_status=$?
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20415 ac_status=$?
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; }; then
20418 ac_cv_header_zlib_h=`cat conftestval`
20419else
20420 echo "$as_me: program exited with status $ac_status" >&5
20421echo "$as_me: failed program was:" >&5
20422sed 's/^/| /' conftest.$ac_ext >&5
20423
20424( exit $ac_status )
20425ac_cv_header_zlib_h=no
20426fi
ac1cb8d3 20427rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20428fi
20429
20430fi
20431echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20432echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20433 if test "${ac_cv_header_zlib_h+set}" = set; then
20434 echo "$as_me:$LINENO: checking for zlib.h" >&5
20435echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20436if test "${ac_cv_header_zlib_h+set}" = set; then
20437 echo $ECHO_N "(cached) $ECHO_C" >&6
20438fi
20439echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20440echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20441else
20442 # Is the header compilable?
20443echo "$as_me:$LINENO: checking zlib.h usability" >&5
20444echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20445cat >conftest.$ac_ext <<_ACEOF
20446/* confdefs.h. */
20447_ACEOF
20448cat confdefs.h >>conftest.$ac_ext
20449cat >>conftest.$ac_ext <<_ACEOF
20450/* end confdefs.h. */
20451$ac_includes_default
20452#include <zlib.h>
20453_ACEOF
20454rm -f conftest.$ac_objext
20455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20456 (eval $ac_compile) 2>conftest.er1
a848cd7e 20457 ac_status=$?
ac1cb8d3
VS
20458 grep -v '^ *+' conftest.er1 >conftest.err
20459 rm -f conftest.er1
20460 cat conftest.err >&5
a848cd7e
SC
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } &&
ac1cb8d3
VS
20463 { ac_try='test -z "$ac_c_werror_flag"
20464 || test ! -s conftest.err'
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; } &&
20470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; }; then
20476 ac_header_compiler=yes
20477else
20478 echo "$as_me: failed program was:" >&5
20479sed 's/^/| /' conftest.$ac_ext >&5
20480
20481ac_header_compiler=no
20482fi
ac1cb8d3 20483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20484echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20485echo "${ECHO_T}$ac_header_compiler" >&6
20486
20487# Is the header present?
20488echo "$as_me:$LINENO: checking zlib.h presence" >&5
20489echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20490cat >conftest.$ac_ext <<_ACEOF
20491/* confdefs.h. */
20492_ACEOF
20493cat confdefs.h >>conftest.$ac_ext
20494cat >>conftest.$ac_ext <<_ACEOF
20495/* end confdefs.h. */
20496#include <zlib.h>
20497_ACEOF
20498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20500 ac_status=$?
20501 grep -v '^ *+' conftest.er1 >conftest.err
20502 rm -f conftest.er1
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } >/dev/null; then
20506 if test -s conftest.err; then
20507 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20509 else
20510 ac_cpp_err=
20511 fi
20512else
20513 ac_cpp_err=yes
20514fi
20515if test -z "$ac_cpp_err"; then
20516 ac_header_preproc=yes
20517else
20518 echo "$as_me: failed program was:" >&5
20519sed 's/^/| /' conftest.$ac_ext >&5
20520
20521 ac_header_preproc=no
20522fi
20523rm -f conftest.err conftest.$ac_ext
20524echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20525echo "${ECHO_T}$ac_header_preproc" >&6
20526
20527# So? What about this header?
ac1cb8d3
VS
20528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20529 yes:no: )
a848cd7e
SC
20530 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20531echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20532 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20533echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20534 ac_header_preproc=yes
a848cd7e 20535 ;;
ac1cb8d3 20536 no:yes:* )
a848cd7e
SC
20537 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20538echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20539 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20540echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20541 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20542echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20543 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20544echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20545 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20546echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20547 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20548echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20549 (
20550 cat <<\_ASBOX
ac1cb8d3
VS
20551## ----------------------------------------- ##
20552## Report this to wx-dev@lists.wxwidgets.org ##
20553## ----------------------------------------- ##
a848cd7e
SC
20554_ASBOX
20555 ) |
20556 sed "s/^/$as_me: WARNING: /" >&2
20557 ;;
20558esac
20559echo "$as_me:$LINENO: checking for zlib.h" >&5
20560echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20561if test "${ac_cv_header_zlib_h+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563else
20564 ac_cv_header_zlib_h=$ac_header_preproc
20565fi
20566echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20567echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20568
20569fi
20570
20571
20572
20573 system_zlib_h_ok=$ac_cv_header_zlib_h
20574 fi
20575
20576 if test "$system_zlib_h_ok" = "yes"; then
20577 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20578echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20579if test "${ac_cv_lib_z_deflate+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20581else
20582 ac_check_lib_save_LIBS=$LIBS
20583LIBS="-lz $LIBS"
20584cat >conftest.$ac_ext <<_ACEOF
20585/* confdefs.h. */
20586_ACEOF
20587cat confdefs.h >>conftest.$ac_ext
20588cat >>conftest.$ac_ext <<_ACEOF
20589/* end confdefs.h. */
20590
20591/* Override any gcc2 internal prototype to avoid an error. */
20592#ifdef __cplusplus
20593extern "C"
20594#endif
20595/* We use char because int might match the return type of a gcc2
20596 builtin and then its argument prototype would still apply. */
20597char deflate ();
20598int
20599main ()
20600{
20601deflate ();
20602 ;
20603 return 0;
20604}
20605_ACEOF
20606rm -f conftest.$ac_objext conftest$ac_exeext
20607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20608 (eval $ac_link) 2>conftest.er1
a848cd7e 20609 ac_status=$?
ac1cb8d3
VS
20610 grep -v '^ *+' conftest.er1 >conftest.err
20611 rm -f conftest.er1
20612 cat conftest.err >&5
a848cd7e
SC
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
ac1cb8d3
VS
20615 { ac_try='test -z "$ac_c_werror_flag"
20616 || test ! -s conftest.err'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; } &&
20622 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20625 ac_status=$?
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 ac_cv_lib_z_deflate=yes
20629else
20630 echo "$as_me: failed program was:" >&5
20631sed 's/^/| /' conftest.$ac_ext >&5
20632
20633ac_cv_lib_z_deflate=no
20634fi
ac1cb8d3
VS
20635rm -f conftest.err conftest.$ac_objext \
20636 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20637LIBS=$ac_check_lib_save_LIBS
20638fi
20639echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20640echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20641if test $ac_cv_lib_z_deflate = yes; then
20642 ZLIB_LINK=" -lz"
20643fi
20644
20645 fi
20646
20647 if test "x$ZLIB_LINK" = "x" ; then
20648 if test "$wxUSE_ZLIB" = "sys" ; then
20649 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20650echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20651 { (exit 1); exit 1; }; }
20652 else
20653 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20654echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20655 wxUSE_ZLIB=builtin
20656 fi
20657 else
20658 wxUSE_ZLIB=sys
20659 fi
20660 fi
20661fi
20662
20663
20664PNG_LINK=
20665if test "$wxUSE_LIBPNG" != "no" ; then
20666 cat >>confdefs.h <<\_ACEOF
20667#define wxUSE_LIBPNG 1
20668_ACEOF
20669
20670
20671 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20672 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20673echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20674 wxUSE_LIBPNG=sys
20675 fi
20676
20677 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20678 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20679echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20680 wxUSE_LIBPNG=builtin
20681 fi
20682
20683 if test "$wxUSE_MGL" != 1 ; then
20684 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20685 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20686echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20687if test "${ac_cv_header_png_h+set}" = set; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20689else
20690 if test "$cross_compiling" = yes; then
20691 unset ac_cv_header_png_h
20692
20693else
20694 cat >conftest.$ac_ext <<_ACEOF
20695/* confdefs.h. */
20696_ACEOF
20697cat confdefs.h >>conftest.$ac_ext
20698cat >>conftest.$ac_ext <<_ACEOF
20699/* end confdefs.h. */
20700
20701 #include <png.h>
20702 #include <stdio.h>
20703
20704 int main()
20705 {
20706 FILE *f=fopen("conftestval", "w");
20707 if (!f) exit(1);
20708 fprintf(f, "%s",
20709 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20710 exit(0);
20711 }
20712
20713_ACEOF
20714rm -f conftest$ac_exeext
20715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20716 (eval $ac_link) 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20722 ac_status=$?
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 ac_cv_header_png_h=`cat conftestval`
20726else
20727 echo "$as_me: program exited with status $ac_status" >&5
20728echo "$as_me: failed program was:" >&5
20729sed 's/^/| /' conftest.$ac_ext >&5
20730
20731( exit $ac_status )
20732ac_cv_header_png_h=no
20733fi
ac1cb8d3 20734rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20735fi
20736
20737fi
20738echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20739echo "${ECHO_T}$ac_cv_header_png_h" >&6
20740 if test "${ac_cv_header_png_h+set}" = set; then
20741 echo "$as_me:$LINENO: checking for png.h" >&5
20742echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20743if test "${ac_cv_header_png_h+set}" = set; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20745fi
20746echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20747echo "${ECHO_T}$ac_cv_header_png_h" >&6
20748else
20749 # Is the header compilable?
20750echo "$as_me:$LINENO: checking png.h usability" >&5
20751echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20752cat >conftest.$ac_ext <<_ACEOF
20753/* confdefs.h. */
20754_ACEOF
20755cat confdefs.h >>conftest.$ac_ext
20756cat >>conftest.$ac_ext <<_ACEOF
20757/* end confdefs.h. */
20758$ac_includes_default
20759#include <png.h>
20760_ACEOF
20761rm -f conftest.$ac_objext
20762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20763 (eval $ac_compile) 2>conftest.er1
a848cd7e 20764 ac_status=$?
ac1cb8d3
VS
20765 grep -v '^ *+' conftest.er1 >conftest.err
20766 rm -f conftest.er1
20767 cat conftest.err >&5
a848cd7e
SC
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } &&
ac1cb8d3
VS
20770 { ac_try='test -z "$ac_c_werror_flag"
20771 || test ! -s conftest.err'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; } &&
20777 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20780 ac_status=$?
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20783 ac_header_compiler=yes
20784else
20785 echo "$as_me: failed program was:" >&5
20786sed 's/^/| /' conftest.$ac_ext >&5
20787
20788ac_header_compiler=no
20789fi
ac1cb8d3 20790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20791echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20792echo "${ECHO_T}$ac_header_compiler" >&6
20793
20794# Is the header present?
20795echo "$as_me:$LINENO: checking png.h presence" >&5
20796echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20797cat >conftest.$ac_ext <<_ACEOF
20798/* confdefs.h. */
20799_ACEOF
20800cat confdefs.h >>conftest.$ac_ext
20801cat >>conftest.$ac_ext <<_ACEOF
20802/* end confdefs.h. */
20803#include <png.h>
20804_ACEOF
20805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20807 ac_status=$?
20808 grep -v '^ *+' conftest.er1 >conftest.err
20809 rm -f conftest.er1
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } >/dev/null; then
20813 if test -s conftest.err; then
20814 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20816 else
20817 ac_cpp_err=
20818 fi
20819else
20820 ac_cpp_err=yes
20821fi
20822if test -z "$ac_cpp_err"; then
20823 ac_header_preproc=yes
20824else
20825 echo "$as_me: failed program was:" >&5
20826sed 's/^/| /' conftest.$ac_ext >&5
20827
20828 ac_header_preproc=no
20829fi
20830rm -f conftest.err conftest.$ac_ext
20831echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20832echo "${ECHO_T}$ac_header_preproc" >&6
20833
20834# So? What about this header?
ac1cb8d3
VS
20835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20836 yes:no: )
a848cd7e
SC
20837 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20838echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20839 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20840echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20841 ac_header_preproc=yes
a848cd7e 20842 ;;
ac1cb8d3 20843 no:yes:* )
a848cd7e
SC
20844 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20845echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20846 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20847echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20848 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20849echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20850 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20851echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20852 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20853echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20854 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20855echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20856 (
20857 cat <<\_ASBOX
ac1cb8d3
VS
20858## ----------------------------------------- ##
20859## Report this to wx-dev@lists.wxwidgets.org ##
20860## ----------------------------------------- ##
a848cd7e
SC
20861_ASBOX
20862 ) |
20863 sed "s/^/$as_me: WARNING: /" >&2
20864 ;;
20865esac
20866echo "$as_me:$LINENO: checking for png.h" >&5
20867echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20868if test "${ac_cv_header_png_h+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20870else
20871 ac_cv_header_png_h=$ac_header_preproc
20872fi
20873echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20874echo "${ECHO_T}$ac_cv_header_png_h" >&6
20875
20876fi
20877
20878
20879
20880 if test "$ac_cv_header_png_h" = "yes"; then
20881 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20882echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20883if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20885else
20886 ac_check_lib_save_LIBS=$LIBS
20887LIBS="-lpng -lz -lm $LIBS"
20888cat >conftest.$ac_ext <<_ACEOF
20889/* confdefs.h. */
20890_ACEOF
20891cat confdefs.h >>conftest.$ac_ext
20892cat >>conftest.$ac_ext <<_ACEOF
20893/* end confdefs.h. */
20894
20895/* Override any gcc2 internal prototype to avoid an error. */
20896#ifdef __cplusplus
20897extern "C"
20898#endif
20899/* We use char because int might match the return type of a gcc2
20900 builtin and then its argument prototype would still apply. */
20901char png_check_sig ();
20902int
20903main ()
20904{
20905png_check_sig ();
20906 ;
20907 return 0;
20908}
20909_ACEOF
20910rm -f conftest.$ac_objext conftest$ac_exeext
20911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20912 (eval $ac_link) 2>conftest.er1
a848cd7e 20913 ac_status=$?
ac1cb8d3
VS
20914 grep -v '^ *+' conftest.er1 >conftest.err
20915 rm -f conftest.er1
20916 cat conftest.err >&5
a848cd7e
SC
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } &&
ac1cb8d3
VS
20919 { ac_try='test -z "$ac_c_werror_flag"
20920 || test ! -s conftest.err'
20921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20922 (eval $ac_try) 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'
a848cd7e
SC
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 ac_cv_lib_png_png_check_sig=yes
20933else
20934 echo "$as_me: failed program was:" >&5
20935sed 's/^/| /' conftest.$ac_ext >&5
20936
20937ac_cv_lib_png_png_check_sig=no
20938fi
ac1cb8d3
VS
20939rm -f conftest.err conftest.$ac_objext \
20940 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20941LIBS=$ac_check_lib_save_LIBS
20942fi
20943echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20944echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20945if test $ac_cv_lib_png_png_check_sig = yes; then
20946 PNG_LINK=" -lpng -lz"
20947fi
20948
20949 fi
20950
20951 if test "x$PNG_LINK" = "x" ; then
20952 if test "$wxUSE_LIBPNG" = "sys" ; then
20953 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20954echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20955 { (exit 1); exit 1; }; }
20956 else
20957 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20958echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20959 wxUSE_LIBPNG=builtin
20960 fi
20961 else
20962 wxUSE_LIBPNG=sys
20963 fi
20964 fi
20965 fi
20966
20967 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20968fi
20969
20970
20971JPEG_LINK=
20972if test "$wxUSE_LIBJPEG" != "no" ; then
20973 cat >>confdefs.h <<\_ACEOF
20974#define wxUSE_LIBJPEG 1
20975_ACEOF
20976
20977
20978 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20979 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20980echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20981 wxUSE_LIBJPEG=sys
20982 fi
20983
20984 if test "$wxUSE_MGL" != 1 ; then
20985 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20986 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20987echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20988 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20989 echo $ECHO_N "(cached) $ECHO_C" >&6
20990else
20991 cat >conftest.$ac_ext <<_ACEOF
20992/* confdefs.h. */
20993_ACEOF
20994cat confdefs.h >>conftest.$ac_ext
20995cat >>conftest.$ac_ext <<_ACEOF
20996/* end confdefs.h. */
20997
20998 #undef HAVE_STDLIB_H
20999 #include <stdio.h>
21000 #include <jpeglib.h>
21001
21002int
21003main ()
21004{
21005
21006
21007 ;
21008 return 0;
21009}
21010_ACEOF
21011rm -f conftest.$ac_objext
21012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21013 (eval $ac_compile) 2>conftest.er1
a848cd7e 21014 ac_status=$?
ac1cb8d3
VS
21015 grep -v '^ *+' conftest.er1 >conftest.err
21016 rm -f conftest.er1
21017 cat conftest.err >&5
a848cd7e
SC
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } &&
ac1cb8d3
VS
21020 { ac_try='test -z "$ac_c_werror_flag"
21021 || test ! -s conftest.err'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; } &&
21027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 ac_cv_header_jpeglib_h=yes
21034else
21035 echo "$as_me: failed program was:" >&5
21036sed 's/^/| /' conftest.$ac_ext >&5
21037
21038ac_cv_header_jpeglib_h=no
21039
21040fi
ac1cb8d3 21041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21042
21043fi
21044
21045 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21046echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21047
21048 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21049 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21050echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21051if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21053else
21054 ac_check_lib_save_LIBS=$LIBS
21055LIBS="-ljpeg $LIBS"
21056cat >conftest.$ac_ext <<_ACEOF
21057/* confdefs.h. */
21058_ACEOF
21059cat confdefs.h >>conftest.$ac_ext
21060cat >>conftest.$ac_ext <<_ACEOF
21061/* end confdefs.h. */
21062
21063/* Override any gcc2 internal prototype to avoid an error. */
21064#ifdef __cplusplus
21065extern "C"
21066#endif
21067/* We use char because int might match the return type of a gcc2
21068 builtin and then its argument prototype would still apply. */
21069char jpeg_read_header ();
21070int
21071main ()
21072{
21073jpeg_read_header ();
21074 ;
21075 return 0;
21076}
21077_ACEOF
21078rm -f conftest.$ac_objext conftest$ac_exeext
21079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21080 (eval $ac_link) 2>conftest.er1
a848cd7e 21081 ac_status=$?
ac1cb8d3
VS
21082 grep -v '^ *+' conftest.er1 >conftest.err
21083 rm -f conftest.er1
21084 cat conftest.err >&5
a848cd7e
SC
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } &&
ac1cb8d3
VS
21087 { ac_try='test -z "$ac_c_werror_flag"
21088 || test ! -s conftest.err'
21089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090 (eval $ac_try) 2>&5
21091 ac_status=$?
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; } &&
21094 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096 (eval $ac_try) 2>&5
21097 ac_status=$?
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; }; then
21100 ac_cv_lib_jpeg_jpeg_read_header=yes
21101else
21102 echo "$as_me: failed program was:" >&5
21103sed 's/^/| /' conftest.$ac_ext >&5
21104
21105ac_cv_lib_jpeg_jpeg_read_header=no
21106fi
ac1cb8d3
VS
21107rm -f conftest.err conftest.$ac_objext \
21108 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21109LIBS=$ac_check_lib_save_LIBS
21110fi
21111echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21112echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21113if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21114 JPEG_LINK=" -ljpeg"
21115fi
21116
21117 fi
21118
21119 if test "x$JPEG_LINK" = "x" ; then
21120 if test "$wxUSE_LIBJPEG" = "sys" ; then
21121 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21122echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21123 { (exit 1); exit 1; }; }
21124 else
21125 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21126echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21127 wxUSE_LIBJPEG=builtin
21128 fi
21129 else
21130 wxUSE_LIBJPEG=sys
21131 fi
21132 fi
21133 fi
21134fi
21135
21136
21137TIFF_LINK=
21138TIFF_PREREQ_LINKS=-lm
21139if test "$wxUSE_LIBTIFF" != "no" ; then
21140 cat >>confdefs.h <<\_ACEOF
21141#define wxUSE_LIBTIFF 1
21142_ACEOF
21143
21144
21145 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21146 if test "$wxUSE_LIBJPEG" = "sys"; then
21147 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21148 fi
21149 if test "$wxUSE_ZLIB" = "sys"; then
21150 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21151 fi
21152 if test "${ac_cv_header_tiffio_h+set}" = set; then
21153 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21154echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21155if test "${ac_cv_header_tiffio_h+set}" = set; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21157fi
21158echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21159echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21160else
21161 # Is the header compilable?
21162echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21163echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21164cat >conftest.$ac_ext <<_ACEOF
21165/* confdefs.h. */
21166_ACEOF
21167cat confdefs.h >>conftest.$ac_ext
21168cat >>conftest.$ac_ext <<_ACEOF
21169/* end confdefs.h. */
21170$ac_includes_default
21171#include <tiffio.h>
21172_ACEOF
21173rm -f conftest.$ac_objext
21174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21175 (eval $ac_compile) 2>conftest.er1
a848cd7e 21176 ac_status=$?
ac1cb8d3
VS
21177 grep -v '^ *+' conftest.er1 >conftest.err
21178 rm -f conftest.er1
21179 cat conftest.err >&5
a848cd7e
SC
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } &&
ac1cb8d3
VS
21182 { ac_try='test -z "$ac_c_werror_flag"
21183 || test ! -s conftest.err'
21184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21186 ac_status=$?
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; } &&
21189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21192 ac_status=$?
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21195 ac_header_compiler=yes
21196else
21197 echo "$as_me: failed program was:" >&5
21198sed 's/^/| /' conftest.$ac_ext >&5
21199
21200ac_header_compiler=no
21201fi
ac1cb8d3 21202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21203echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21204echo "${ECHO_T}$ac_header_compiler" >&6
21205
21206# Is the header present?
21207echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21208echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21209cat >conftest.$ac_ext <<_ACEOF
21210/* confdefs.h. */
21211_ACEOF
21212cat confdefs.h >>conftest.$ac_ext
21213cat >>conftest.$ac_ext <<_ACEOF
21214/* end confdefs.h. */
21215#include <tiffio.h>
21216_ACEOF
21217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21219 ac_status=$?
21220 grep -v '^ *+' conftest.er1 >conftest.err
21221 rm -f conftest.er1
21222 cat conftest.err >&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } >/dev/null; then
21225 if test -s conftest.err; then
21226 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21228 else
21229 ac_cpp_err=
21230 fi
21231else
21232 ac_cpp_err=yes
21233fi
21234if test -z "$ac_cpp_err"; then
21235 ac_header_preproc=yes
21236else
21237 echo "$as_me: failed program was:" >&5
21238sed 's/^/| /' conftest.$ac_ext >&5
21239
21240 ac_header_preproc=no
21241fi
21242rm -f conftest.err conftest.$ac_ext
21243echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21244echo "${ECHO_T}$ac_header_preproc" >&6
21245
21246# So? What about this header?
ac1cb8d3
VS
21247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21248 yes:no: )
a848cd7e
SC
21249 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21250echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21251 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21252echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21253 ac_header_preproc=yes
a848cd7e 21254 ;;
ac1cb8d3 21255 no:yes:* )
a848cd7e
SC
21256 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21257echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21258 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21259echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21260 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21261echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21262 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21263echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21264 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21265echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21266 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21267echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21268 (
21269 cat <<\_ASBOX
ac1cb8d3
VS
21270## ----------------------------------------- ##
21271## Report this to wx-dev@lists.wxwidgets.org ##
21272## ----------------------------------------- ##
a848cd7e
SC
21273_ASBOX
21274 ) |
21275 sed "s/^/$as_me: WARNING: /" >&2
21276 ;;
21277esac
21278echo "$as_me:$LINENO: checking for tiffio.h" >&5
21279echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21280if test "${ac_cv_header_tiffio_h+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282else
21283 ac_cv_header_tiffio_h=$ac_header_preproc
21284fi
21285echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21286echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21287
21288fi
21289if test $ac_cv_header_tiffio_h = yes; then
21290
21291 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21292echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21293if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21294 echo $ECHO_N "(cached) $ECHO_C" >&6
21295else
21296 ac_check_lib_save_LIBS=$LIBS
21297LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21298cat >conftest.$ac_ext <<_ACEOF
21299/* confdefs.h. */
21300_ACEOF
21301cat confdefs.h >>conftest.$ac_ext
21302cat >>conftest.$ac_ext <<_ACEOF
21303/* end confdefs.h. */
21304
21305/* Override any gcc2 internal prototype to avoid an error. */
21306#ifdef __cplusplus
21307extern "C"
21308#endif
21309/* We use char because int might match the return type of a gcc2
21310 builtin and then its argument prototype would still apply. */
21311char TIFFError ();
21312int
21313main ()
21314{
21315TIFFError ();
21316 ;
21317 return 0;
21318}
21319_ACEOF
21320rm -f conftest.$ac_objext conftest$ac_exeext
21321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21322 (eval $ac_link) 2>conftest.er1
a848cd7e 21323 ac_status=$?
ac1cb8d3
VS
21324 grep -v '^ *+' conftest.er1 >conftest.err
21325 rm -f conftest.er1
21326 cat conftest.err >&5
a848cd7e
SC
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); } &&
ac1cb8d3
VS
21329 { ac_try='test -z "$ac_c_werror_flag"
21330 || test ! -s conftest.err'
21331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332 (eval $ac_try) 2>&5
21333 ac_status=$?
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; } &&
21336 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 (eval $ac_try) 2>&5
21339 ac_status=$?
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); }; }; then
21342 ac_cv_lib_tiff_TIFFError=yes
21343else
21344 echo "$as_me: failed program was:" >&5
21345sed 's/^/| /' conftest.$ac_ext >&5
21346
21347ac_cv_lib_tiff_TIFFError=no
21348fi
ac1cb8d3
VS
21349rm -f conftest.err conftest.$ac_objext \
21350 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21351LIBS=$ac_check_lib_save_LIBS
21352fi
21353echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21354echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21355if test $ac_cv_lib_tiff_TIFFError = yes; then
21356 TIFF_LINK=" -ltiff"
21357fi
21358
21359
21360
21361fi
21362
21363
21364
21365 if test "x$TIFF_LINK" = "x" ; then
21366 if test "$wxUSE_LIBTIFF" = "sys" ; then
21367 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21368echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21369 { (exit 1); exit 1; }; }
21370 else
21371 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21372echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21373 wxUSE_LIBTIFF=builtin
21374 fi
21375 else
21376 wxUSE_LIBTIFF=sys
21377 fi
21378 fi
21379fi
21380
21381
21382if test "$wxUSE_EXPAT" != "no"; then
21383 wxUSE_XML=yes
21384 cat >>confdefs.h <<\_ACEOF
21385#define wxUSE_EXPAT 1
21386_ACEOF
21387
21388 cat >>confdefs.h <<\_ACEOF
21389#define wxUSE_XML 1
21390_ACEOF
21391
21392
21393 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21394 if test "${ac_cv_header_expat_h+set}" = set; then
21395 echo "$as_me:$LINENO: checking for expat.h" >&5
21396echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21397if test "${ac_cv_header_expat_h+set}" = set; then
21398 echo $ECHO_N "(cached) $ECHO_C" >&6
21399fi
21400echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21401echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21402else
21403 # Is the header compilable?
21404echo "$as_me:$LINENO: checking expat.h usability" >&5
21405echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21406cat >conftest.$ac_ext <<_ACEOF
21407/* confdefs.h. */
21408_ACEOF
21409cat confdefs.h >>conftest.$ac_ext
21410cat >>conftest.$ac_ext <<_ACEOF
21411/* end confdefs.h. */
21412$ac_includes_default
21413#include <expat.h>
21414_ACEOF
21415rm -f conftest.$ac_objext
21416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21417 (eval $ac_compile) 2>conftest.er1
a848cd7e 21418 ac_status=$?
ac1cb8d3
VS
21419 grep -v '^ *+' conftest.er1 >conftest.err
21420 rm -f conftest.er1
21421 cat conftest.err >&5
a848cd7e
SC
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } &&
ac1cb8d3
VS
21424 { ac_try='test -z "$ac_c_werror_flag"
21425 || test ! -s conftest.err'
21426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427 (eval $ac_try) 2>&5
21428 ac_status=$?
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); }; } &&
21431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21433 (eval $ac_try) 2>&5
21434 ac_status=$?
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); }; }; then
21437 ac_header_compiler=yes
21438else
21439 echo "$as_me: failed program was:" >&5
21440sed 's/^/| /' conftest.$ac_ext >&5
21441
21442ac_header_compiler=no
21443fi
ac1cb8d3 21444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21445echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21446echo "${ECHO_T}$ac_header_compiler" >&6
21447
21448# Is the header present?
21449echo "$as_me:$LINENO: checking expat.h presence" >&5
21450echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21451cat >conftest.$ac_ext <<_ACEOF
21452/* confdefs.h. */
21453_ACEOF
21454cat confdefs.h >>conftest.$ac_ext
21455cat >>conftest.$ac_ext <<_ACEOF
21456/* end confdefs.h. */
21457#include <expat.h>
21458_ACEOF
21459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21461 ac_status=$?
21462 grep -v '^ *+' conftest.er1 >conftest.err
21463 rm -f conftest.er1
21464 cat conftest.err >&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); } >/dev/null; then
21467 if test -s conftest.err; then
21468 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21470 else
21471 ac_cpp_err=
21472 fi
21473else
21474 ac_cpp_err=yes
21475fi
21476if test -z "$ac_cpp_err"; then
21477 ac_header_preproc=yes
21478else
21479 echo "$as_me: failed program was:" >&5
21480sed 's/^/| /' conftest.$ac_ext >&5
21481
21482 ac_header_preproc=no
21483fi
21484rm -f conftest.err conftest.$ac_ext
21485echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21486echo "${ECHO_T}$ac_header_preproc" >&6
21487
21488# So? What about this header?
ac1cb8d3
VS
21489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21490 yes:no: )
a848cd7e
SC
21491 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21492echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21493 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21494echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21495 ac_header_preproc=yes
a848cd7e 21496 ;;
ac1cb8d3 21497 no:yes:* )
a848cd7e
SC
21498 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21499echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21500 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21501echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21502 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21503echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21505echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21506 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21507echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21508 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21509echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21510 (
21511 cat <<\_ASBOX
ac1cb8d3
VS
21512## ----------------------------------------- ##
21513## Report this to wx-dev@lists.wxwidgets.org ##
21514## ----------------------------------------- ##
a848cd7e
SC
21515_ASBOX
21516 ) |
21517 sed "s/^/$as_me: WARNING: /" >&2
21518 ;;
21519esac
21520echo "$as_me:$LINENO: checking for expat.h" >&5
21521echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21522if test "${ac_cv_header_expat_h+set}" = set; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21524else
21525 ac_cv_header_expat_h=$ac_header_preproc
21526fi
21527echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21528echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21529
21530fi
21531if test $ac_cv_header_expat_h = yes; then
21532 found_expat_h=1
21533fi
21534
21535
21536 if test "x$found_expat_h" = "x1"; then
21537 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21538echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21539if test "${wx_cv_expat_is_not_broken+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21541else
21542
21543
21544
21545 ac_ext=cc
21546ac_cpp='$CXXCPP $CPPFLAGS'
21547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21550
21551 cat >conftest.$ac_ext <<_ACEOF
21552/* confdefs.h. */
21553_ACEOF
21554cat confdefs.h >>conftest.$ac_ext
21555cat >>conftest.$ac_ext <<_ACEOF
21556/* end confdefs.h. */
21557#include <expat.h>
21558int
21559main ()
21560{
21561
21562 ;
21563 return 0;
21564}
21565_ACEOF
21566rm -f conftest.$ac_objext
21567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21568 (eval $ac_compile) 2>conftest.er1
a848cd7e 21569 ac_status=$?
ac1cb8d3
VS
21570 grep -v '^ *+' conftest.er1 >conftest.err
21571 rm -f conftest.er1
21572 cat conftest.err >&5
a848cd7e
SC
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
ac1cb8d3
VS
21575 { ac_try='test -z "$ac_cxx_werror_flag"
21576 || test ! -s conftest.err'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21579 ac_status=$?
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; } &&
21582 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }; then
21588 wx_cv_expat_is_not_broken=yes
21589else
21590 echo "$as_me: failed program was:" >&5
21591sed 's/^/| /' conftest.$ac_ext >&5
21592
21593wx_cv_expat_is_not_broken=no
21594
21595fi
ac1cb8d3 21596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21597 ac_ext=c
21598ac_cpp='$CPP $CPPFLAGS'
21599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21601ac_compiler_gnu=$ac_cv_c_compiler_gnu
21602
21603
21604
21605fi
21606echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21607echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21608 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21609 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21610echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21611if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21613else
21614 ac_check_lib_save_LIBS=$LIBS
21615LIBS="-lexpat $LIBS"
21616cat >conftest.$ac_ext <<_ACEOF
21617/* confdefs.h. */
21618_ACEOF
21619cat confdefs.h >>conftest.$ac_ext
21620cat >>conftest.$ac_ext <<_ACEOF
21621/* end confdefs.h. */
21622
21623/* Override any gcc2 internal prototype to avoid an error. */
21624#ifdef __cplusplus
21625extern "C"
21626#endif
21627/* We use char because int might match the return type of a gcc2
21628 builtin and then its argument prototype would still apply. */
21629char XML_ParserCreate ();
21630int
21631main ()
21632{
21633XML_ParserCreate ();
21634 ;
21635 return 0;
21636}
21637_ACEOF
21638rm -f conftest.$ac_objext conftest$ac_exeext
21639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21640 (eval $ac_link) 2>conftest.er1
a848cd7e 21641 ac_status=$?
ac1cb8d3
VS
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
a848cd7e
SC
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } &&
ac1cb8d3
VS
21647 { ac_try='test -z "$ac_c_werror_flag"
21648 || test ! -s conftest.err'
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21651 ac_status=$?
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; } &&
21654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; }; then
21660 ac_cv_lib_expat_XML_ParserCreate=yes
21661else
21662 echo "$as_me: failed program was:" >&5
21663sed 's/^/| /' conftest.$ac_ext >&5
21664
21665ac_cv_lib_expat_XML_ParserCreate=no
21666fi
ac1cb8d3
VS
21667rm -f conftest.err conftest.$ac_objext \
21668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21669LIBS=$ac_check_lib_save_LIBS
21670fi
21671echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21672echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21673if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21674 EXPAT_LINK=" -lexpat"
21675fi
21676
21677 fi
21678 fi
21679 if test "x$EXPAT_LINK" = "x" ; then
21680 if test "$wxUSE_EXPAT" = "sys" ; then
21681 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21682echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21683 { (exit 1); exit 1; }; }
21684 else
21685 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21686echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21687 wxUSE_EXPAT=builtin
21688 fi
21689 else
21690 wxUSE_EXPAT=sys
21691 fi
21692 fi
21693 if test "$wxUSE_EXPAT" = "builtin" ; then
21694
21695
21696subdirs="$subdirs src/expat"
21697
21698 fi
21699fi
21700
21701
21702
21703if test "$wxUSE_LIBMSPACK" != "no"; then
21704
21705 if test "${ac_cv_header_mspack_h+set}" = set; then
21706 echo "$as_me:$LINENO: checking for mspack.h" >&5
21707echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21708if test "${ac_cv_header_mspack_h+set}" = set; then
21709 echo $ECHO_N "(cached) $ECHO_C" >&6
21710fi
21711echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21712echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21713else
21714 # Is the header compilable?
21715echo "$as_me:$LINENO: checking mspack.h usability" >&5
21716echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21717cat >conftest.$ac_ext <<_ACEOF
21718/* confdefs.h. */
21719_ACEOF
21720cat confdefs.h >>conftest.$ac_ext
21721cat >>conftest.$ac_ext <<_ACEOF
21722/* end confdefs.h. */
21723$ac_includes_default
21724#include <mspack.h>
21725_ACEOF
21726rm -f conftest.$ac_objext
21727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21728 (eval $ac_compile) 2>conftest.er1
a848cd7e 21729 ac_status=$?
ac1cb8d3
VS
21730 grep -v '^ *+' conftest.er1 >conftest.err
21731 rm -f conftest.er1
21732 cat conftest.err >&5
a848cd7e
SC
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } &&
ac1cb8d3
VS
21735 { ac_try='test -z "$ac_c_werror_flag"
21736 || test ! -s conftest.err'
21737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21738 (eval $ac_try) 2>&5
21739 ac_status=$?
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); }; } &&
21742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744 (eval $ac_try) 2>&5
21745 ac_status=$?
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; }; then
21748 ac_header_compiler=yes
21749else
21750 echo "$as_me: failed program was:" >&5
21751sed 's/^/| /' conftest.$ac_ext >&5
21752
21753ac_header_compiler=no
21754fi
ac1cb8d3 21755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21757echo "${ECHO_T}$ac_header_compiler" >&6
21758
21759# Is the header present?
21760echo "$as_me:$LINENO: checking mspack.h presence" >&5
21761echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21762cat >conftest.$ac_ext <<_ACEOF
21763/* confdefs.h. */
21764_ACEOF
21765cat confdefs.h >>conftest.$ac_ext
21766cat >>conftest.$ac_ext <<_ACEOF
21767/* end confdefs.h. */
21768#include <mspack.h>
21769_ACEOF
21770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21772 ac_status=$?
21773 grep -v '^ *+' conftest.er1 >conftest.err
21774 rm -f conftest.er1
21775 cat conftest.err >&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } >/dev/null; then
21778 if test -s conftest.err; then
21779 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21781 else
21782 ac_cpp_err=
21783 fi
21784else
21785 ac_cpp_err=yes
21786fi
21787if test -z "$ac_cpp_err"; then
21788 ac_header_preproc=yes
21789else
21790 echo "$as_me: failed program was:" >&5
21791sed 's/^/| /' conftest.$ac_ext >&5
21792
21793 ac_header_preproc=no
21794fi
21795rm -f conftest.err conftest.$ac_ext
21796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21797echo "${ECHO_T}$ac_header_preproc" >&6
21798
21799# So? What about this header?
ac1cb8d3
VS
21800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21801 yes:no: )
a848cd7e
SC
21802 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21803echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21804 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21805echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21806 ac_header_preproc=yes
a848cd7e 21807 ;;
ac1cb8d3 21808 no:yes:* )
a848cd7e
SC
21809 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21810echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21811 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21812echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21813 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21814echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21815 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21816echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21817 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21818echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21819 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21820echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21821 (
21822 cat <<\_ASBOX
ac1cb8d3
VS
21823## ----------------------------------------- ##
21824## Report this to wx-dev@lists.wxwidgets.org ##
21825## ----------------------------------------- ##
a848cd7e
SC
21826_ASBOX
21827 ) |
21828 sed "s/^/$as_me: WARNING: /" >&2
21829 ;;
21830esac
21831echo "$as_me:$LINENO: checking for mspack.h" >&5
21832echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21833if test "${ac_cv_header_mspack_h+set}" = set; then
21834 echo $ECHO_N "(cached) $ECHO_C" >&6
21835else
21836 ac_cv_header_mspack_h=$ac_header_preproc
21837fi
21838echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21839echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21840
21841fi
21842if test $ac_cv_header_mspack_h = yes; then
21843 found_mspack_h=1
21844fi
21845
21846
21847 if test "x$found_mspack_h" = "x1"; then
21848 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21849echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21850if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21852else
21853 ac_check_lib_save_LIBS=$LIBS
21854LIBS="-lmspack $LIBS"
21855cat >conftest.$ac_ext <<_ACEOF
21856/* confdefs.h. */
21857_ACEOF
21858cat confdefs.h >>conftest.$ac_ext
21859cat >>conftest.$ac_ext <<_ACEOF
21860/* end confdefs.h. */
21861
21862/* Override any gcc2 internal prototype to avoid an error. */
21863#ifdef __cplusplus
21864extern "C"
21865#endif
21866/* We use char because int might match the return type of a gcc2
21867 builtin and then its argument prototype would still apply. */
21868char mspack_create_chm_decompressor ();
21869int
21870main ()
21871{
21872mspack_create_chm_decompressor ();
21873 ;
21874 return 0;
21875}
21876_ACEOF
21877rm -f conftest.$ac_objext conftest$ac_exeext
21878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21879 (eval $ac_link) 2>conftest.er1
a848cd7e 21880 ac_status=$?
ac1cb8d3
VS
21881 grep -v '^ *+' conftest.er1 >conftest.err
21882 rm -f conftest.er1
21883 cat conftest.err >&5
a848cd7e
SC
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } &&
ac1cb8d3
VS
21886 { ac_try='test -z "$ac_c_werror_flag"
21887 || test ! -s conftest.err'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21890 ac_status=$?
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; } &&
21893 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21900else
21901 echo "$as_me: failed program was:" >&5
21902sed 's/^/| /' conftest.$ac_ext >&5
21903
21904ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21905fi
ac1cb8d3
VS
21906rm -f conftest.err conftest.$ac_objext \
21907 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21908LIBS=$ac_check_lib_save_LIBS
21909fi
21910echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21911echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21912if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21913 MSPACK_LINK=" -lmspack"
21914fi
21915
21916 fi
21917 if test "x$MSPACK_LINK" = "x" ; then
21918 wxUSE_LIBMSPACK=no
21919 else
21920 cat >>confdefs.h <<\_ACEOF
21921#define wxUSE_LIBMSPACK 1
21922_ACEOF
21923
21924 fi
21925fi
21926
21927
21928
21929AFMINSTALL=
21930WIN32INSTALL=
21931
21932TOOLKIT=
21933TOOLKIT_INCLUDE=
21934WIDGET_SET=
21935
21936if test "$USE_WIN32" = 1 ; then
21937
21938for ac_header in w32api.h
21939do
21940as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21941if eval "test \"\${$as_ac_Header+set}\" = set"; then
21942 echo "$as_me:$LINENO: checking for $ac_header" >&5
21943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21944if eval "test \"\${$as_ac_Header+set}\" = set"; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21946fi
21947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21949else
21950 # Is the header compilable?
21951echo "$as_me:$LINENO: checking $ac_header usability" >&5
21952echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21953cat >conftest.$ac_ext <<_ACEOF
21954/* confdefs.h. */
21955_ACEOF
21956cat confdefs.h >>conftest.$ac_ext
21957cat >>conftest.$ac_ext <<_ACEOF
21958/* end confdefs.h. */
21959$ac_includes_default
21960#include <$ac_header>
21961_ACEOF
21962rm -f conftest.$ac_objext
21963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21964 (eval $ac_compile) 2>conftest.er1
a848cd7e 21965 ac_status=$?
ac1cb8d3
VS
21966 grep -v '^ *+' conftest.er1 >conftest.err
21967 rm -f conftest.er1
21968 cat conftest.err >&5
a848cd7e
SC
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } &&
ac1cb8d3
VS
21971 { ac_try='test -z "$ac_c_werror_flag"
21972 || test ! -s conftest.err'
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21975 ac_status=$?
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; } &&
21978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980 (eval $ac_try) 2>&5
21981 ac_status=$?
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); }; }; then
21984 ac_header_compiler=yes
21985else
21986 echo "$as_me: failed program was:" >&5
21987sed 's/^/| /' conftest.$ac_ext >&5
21988
21989ac_header_compiler=no
21990fi
ac1cb8d3 21991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21993echo "${ECHO_T}$ac_header_compiler" >&6
21994
21995# Is the header present?
21996echo "$as_me:$LINENO: checking $ac_header presence" >&5
21997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21998cat >conftest.$ac_ext <<_ACEOF
21999/* confdefs.h. */
22000_ACEOF
22001cat confdefs.h >>conftest.$ac_ext
22002cat >>conftest.$ac_ext <<_ACEOF
22003/* end confdefs.h. */
22004#include <$ac_header>
22005_ACEOF
22006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22008 ac_status=$?
22009 grep -v '^ *+' conftest.er1 >conftest.err
22010 rm -f conftest.er1
22011 cat conftest.err >&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } >/dev/null; then
22014 if test -s conftest.err; then
22015 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22017 else
22018 ac_cpp_err=
22019 fi
22020else
22021 ac_cpp_err=yes
22022fi
22023if test -z "$ac_cpp_err"; then
22024 ac_header_preproc=yes
22025else
22026 echo "$as_me: failed program was:" >&5
22027sed 's/^/| /' conftest.$ac_ext >&5
22028
22029 ac_header_preproc=no
22030fi
22031rm -f conftest.err conftest.$ac_ext
22032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22033echo "${ECHO_T}$ac_header_preproc" >&6
22034
22035# So? What about this header?
ac1cb8d3
VS
22036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22037 yes:no: )
a848cd7e
SC
22038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22039echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22041echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22042 ac_header_preproc=yes
a848cd7e 22043 ;;
ac1cb8d3 22044 no:yes:* )
a848cd7e
SC
22045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22050echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22052echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22054echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22056echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22057 (
22058 cat <<\_ASBOX
ac1cb8d3
VS
22059## ----------------------------------------- ##
22060## Report this to wx-dev@lists.wxwidgets.org ##
22061## ----------------------------------------- ##
a848cd7e
SC
22062_ASBOX
22063 ) |
22064 sed "s/^/$as_me: WARNING: /" >&2
22065 ;;
22066esac
22067echo "$as_me:$LINENO: checking for $ac_header" >&5
22068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22069if eval "test \"\${$as_ac_Header+set}\" = set"; then
22070 echo $ECHO_N "(cached) $ECHO_C" >&6
22071else
ac1cb8d3 22072 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22073fi
22074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22076
22077fi
22078if test `eval echo '${'$as_ac_Header'}'` = yes; then
22079 cat >>confdefs.h <<_ACEOF
22080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22081_ACEOF
22082
22083fi
22084
22085done
22086
22087 if test "${ac_cv_header_windows_h+set}" = set; then
22088 echo "$as_me:$LINENO: checking for windows.h" >&5
22089echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22090if test "${ac_cv_header_windows_h+set}" = set; then
22091 echo $ECHO_N "(cached) $ECHO_C" >&6
22092fi
22093echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22094echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22095else
22096 # Is the header compilable?
22097echo "$as_me:$LINENO: checking windows.h usability" >&5
22098echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22099cat >conftest.$ac_ext <<_ACEOF
22100/* confdefs.h. */
22101_ACEOF
22102cat confdefs.h >>conftest.$ac_ext
22103cat >>conftest.$ac_ext <<_ACEOF
22104/* end confdefs.h. */
22105$ac_includes_default
22106#include <windows.h>
22107_ACEOF
22108rm -f conftest.$ac_objext
22109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22110 (eval $ac_compile) 2>conftest.er1
a848cd7e 22111 ac_status=$?
ac1cb8d3
VS
22112 grep -v '^ *+' conftest.er1 >conftest.err
22113 rm -f conftest.er1
22114 cat conftest.err >&5
a848cd7e
SC
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } &&
ac1cb8d3
VS
22117 { ac_try='test -z "$ac_c_werror_flag"
22118 || test ! -s conftest.err'
22119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22120 (eval $ac_try) 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; } &&
22124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22126 (eval $ac_try) 2>&5
22127 ac_status=$?
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; }; then
22130 ac_header_compiler=yes
22131else
22132 echo "$as_me: failed program was:" >&5
22133sed 's/^/| /' conftest.$ac_ext >&5
22134
22135ac_header_compiler=no
22136fi
ac1cb8d3 22137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22138echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22139echo "${ECHO_T}$ac_header_compiler" >&6
22140
22141# Is the header present?
22142echo "$as_me:$LINENO: checking windows.h presence" >&5
22143echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22144cat >conftest.$ac_ext <<_ACEOF
22145/* confdefs.h. */
22146_ACEOF
22147cat confdefs.h >>conftest.$ac_ext
22148cat >>conftest.$ac_ext <<_ACEOF
22149/* end confdefs.h. */
22150#include <windows.h>
22151_ACEOF
22152if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22154 ac_status=$?
22155 grep -v '^ *+' conftest.er1 >conftest.err
22156 rm -f conftest.er1
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } >/dev/null; then
22160 if test -s conftest.err; then
22161 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22163 else
22164 ac_cpp_err=
22165 fi
22166else
22167 ac_cpp_err=yes
22168fi
22169if test -z "$ac_cpp_err"; then
22170 ac_header_preproc=yes
22171else
22172 echo "$as_me: failed program was:" >&5
22173sed 's/^/| /' conftest.$ac_ext >&5
22174
22175 ac_header_preproc=no
22176fi
22177rm -f conftest.err conftest.$ac_ext
22178echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22179echo "${ECHO_T}$ac_header_preproc" >&6
22180
22181# So? What about this header?
ac1cb8d3
VS
22182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22183 yes:no: )
a848cd7e
SC
22184 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22185echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22186 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22187echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22188 ac_header_preproc=yes
a848cd7e 22189 ;;
ac1cb8d3 22190 no:yes:* )
a848cd7e
SC
22191 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22192echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22193 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22194echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22195 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22196echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22197 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22198echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22199 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22200echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22201 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22202echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22203 (
22204 cat <<\_ASBOX
ac1cb8d3
VS
22205## ----------------------------------------- ##
22206## Report this to wx-dev@lists.wxwidgets.org ##
22207## ----------------------------------------- ##
a848cd7e
SC
22208_ASBOX
22209 ) |
22210 sed "s/^/$as_me: WARNING: /" >&2
22211 ;;
22212esac
22213echo "$as_me:$LINENO: checking for windows.h" >&5
22214echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22215if test "${ac_cv_header_windows_h+set}" = set; then
22216 echo $ECHO_N "(cached) $ECHO_C" >&6
22217else
22218 ac_cv_header_windows_h=$ac_header_preproc
22219fi
22220echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22221echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22222
22223fi
22224if test $ac_cv_header_windows_h = yes; then
22225 :
22226else
22227
22228 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22229echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22230 { (exit 1); exit 1; }; }
22231
22232fi
22233
22234
22235
22236 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22237
22238 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22239 LIBS="$LIBS -loleacc"
22240 fi
22241
22242 case "${host}" in
22243 *-*-cygwin* )
22244 LIBS="$LIBS -lkernel32 -luser32"
22245 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22246 esac
22247
22248 if test "$wxUSE_ODBC" = "sys" ; then
22249 wxUSE_ODBC = "yes"
22250 fi
22251 if test "$wxUSE_ODBC" = "yes" ; then
22252 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22253 cat >>confdefs.h <<\_ACEOF
22254#define wxUSE_ODBC 1
22255_ACEOF
22256
22257 fi
22258
22259 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22260 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22261
22262 WIN32INSTALL=win32install
22263fi
22264
22265if test "$wxUSE_GUI" = "yes"; then
22266 USE_GUI=1
22267
22268 GUI_TK_LIBRARY=
22269
22270 WXGTK12=
22271 WXGTK127=
22272 WXGTK20=
22273 WXGPE=
22274
22275 if test "$wxUSE_MSW" = 1 ; then
22276 TOOLKIT=MSW
22277 GUIDIST=MSW_DIST
22278
22279 case "${host}" in
22280 *-*-mingw32* )
22281 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22282 esac
22283 fi
22284
22285 if test "$wxUSE_GTK" = 1; then
22286 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22287echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22288
22289 gtk_version_cached=1
22290 if test "${wx_cv_lib_gtk+set}" = set; then
22291 echo $ECHO_N "(cached) $ECHO_C" >&6
22292else
22293
22294 gtk_version_cached=0
22295 echo "$as_me:$LINENO: result: " >&5
22296echo "${ECHO_T}" >&6
22297
22298 GTK_MODULES=
22299 if test "$wxUSE_THREADS" = "yes"; then
22300 GTK_MODULES=gthread
22301 fi
22302
22303 wx_cv_lib_gtk=
22304 if test "x$wxUSE_GTK2" = "xyes"; then
22305 # Check whether --enable-gtktest or --disable-gtktest was given.
22306if test "${enable_gtktest+set}" = set; then
22307 enableval="$enable_gtktest"
22308
22309else
22310 enable_gtktest=yes
22311fi;
22312
22313 pkg_config_args=gtk+-2.0
22314 for module in . $GTK_MODULES
22315 do
22316 case "$module" in
22317 gthread)
22318 pkg_config_args="$pkg_config_args gthread-2.0"
22319 ;;
22320 esac
22321 done
22322
22323 no_gtk=""
22324
22325 # Extract the first word of "pkg-config", so it can be a program name with args.
22326set dummy pkg-config; ac_word=$2
22327echo "$as_me:$LINENO: checking for $ac_word" >&5
22328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22329if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22330 echo $ECHO_N "(cached) $ECHO_C" >&6
22331else
22332 case $PKG_CONFIG in
22333 [\\/]* | ?:[\\/]*)
22334 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22335 ;;
22336 *)
22337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22338for as_dir in $PATH
22339do
22340 IFS=$as_save_IFS
22341 test -z "$as_dir" && as_dir=.
22342 for ac_exec_ext in '' $ac_executable_extensions; do
22343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22344 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22346 break 2
22347 fi
22348done
22349done
22350
22351 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22352 ;;
22353esac
22354fi
22355PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22356
22357if test -n "$PKG_CONFIG"; then
22358 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22359echo "${ECHO_T}$PKG_CONFIG" >&6
22360else
22361 echo "$as_me:$LINENO: result: no" >&5
22362echo "${ECHO_T}no" >&6
22363fi
22364
22365
22366 if test x$PKG_CONFIG != xno ; then
22367 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22368 :
22369 else
c2218763 22370 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22371 no_gtk=yes
22372 PKG_CONFIG=no
22373 fi
22374 else
22375 no_gtk=yes
22376 fi
22377
22378 min_gtk_version=2.0.0
22379 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22380echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22381
22382 if test x$PKG_CONFIG != xno ; then
22383 ## don't try to run the test against uninstalled libtool libs
22384 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22385 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22386 enable_gtktest=no
22387 fi
22388
22389 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22390 :
22391 else
22392 no_gtk=yes
22393 fi
22394 fi
22395
22396 if test x"$no_gtk" = x ; then
22397 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22398 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22399 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22400 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22401 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22402 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22403 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22404 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22405 if test "x$enable_gtktest" = "xyes" ; then
22406 ac_save_CFLAGS="$CFLAGS"
22407 ac_save_LIBS="$LIBS"
22408 CFLAGS="$CFLAGS $GTK_CFLAGS"
22409 LIBS="$GTK_LIBS $LIBS"
22410 rm -f conf.gtktest
22411 if test "$cross_compiling" = yes; then
22412 echo $ac_n "cross compiling; assumed OK... $ac_c"
22413else
22414 cat >conftest.$ac_ext <<_ACEOF
22415/* confdefs.h. */
22416_ACEOF
22417cat confdefs.h >>conftest.$ac_ext
22418cat >>conftest.$ac_ext <<_ACEOF
22419/* end confdefs.h. */
22420
22421#include <gtk/gtk.h>
22422#include <stdio.h>
22423#include <stdlib.h>
22424
22425int
22426main ()
22427{
22428 int major, minor, micro;
22429 char *tmp_version;
22430
22431 system ("touch conf.gtktest");
22432
22433 /* HP/UX 9 (%@#!) writes to sscanf strings */
22434 tmp_version = g_strdup("$min_gtk_version");
22435 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22436 printf("%s, bad version string\n", "$min_gtk_version");
22437 exit(1);
22438 }
22439
22440 if ((gtk_major_version != $gtk_config_major_version) ||
22441 (gtk_minor_version != $gtk_config_minor_version) ||
22442 (gtk_micro_version != $gtk_config_micro_version))
22443 {
22444 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22445 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22446 gtk_major_version, gtk_minor_version, gtk_micro_version);
22447 printf ("*** was found! If pkg-config was correct, then it is best\n");
22448 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22449 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22450 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22451 printf("*** required on your system.\n");
22452 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22453 printf("*** to point to the correct configuration files\n");
22454 }
22455 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22456 (gtk_minor_version != GTK_MINOR_VERSION) ||
22457 (gtk_micro_version != GTK_MICRO_VERSION))
22458 {
22459 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22460 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22461 printf("*** library (version %d.%d.%d)\n",
22462 gtk_major_version, gtk_minor_version, gtk_micro_version);
22463 }
22464 else
22465 {
22466 if ((gtk_major_version > major) ||
22467 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22468 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22469 {
22470 return 0;
22471 }
22472 else
22473 {
22474 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22475 gtk_major_version, gtk_minor_version, gtk_micro_version);
22476 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22477 major, minor, micro);
22478 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22479 printf("***\n");
22480 printf("*** If you have already installed a sufficiently new version, this error\n");
22481 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22482 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22483 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22484 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22485 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22486 printf("*** so that the correct libraries are found at run-time))\n");
22487 }
22488 }
22489 return 1;
22490}
22491
22492_ACEOF
22493rm -f conftest$ac_exeext
22494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22495 (eval $ac_link) 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500 (eval $ac_try) 2>&5
22501 ac_status=$?
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; }; then
22504 :
22505else
22506 echo "$as_me: program exited with status $ac_status" >&5
22507echo "$as_me: failed program was:" >&5
22508sed 's/^/| /' conftest.$ac_ext >&5
22509
22510( exit $ac_status )
22511no_gtk=yes
22512fi
ac1cb8d3 22513rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22514fi
22515 CFLAGS="$ac_save_CFLAGS"
22516 LIBS="$ac_save_LIBS"
22517 fi
22518 fi
22519 if test "x$no_gtk" = x ; then
22520 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22521echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22522 wx_cv_lib_gtk=2.0
22523 else
22524 echo "$as_me:$LINENO: result: no" >&5
22525echo "${ECHO_T}no" >&6
22526 if test "$PKG_CONFIG" = "no" ; then
22527 echo "*** A new enough version of pkg-config was not found."
22528 echo "*** See http://pkgconfig.sourceforge.net"
22529 else
22530 if test -f conf.gtktest ; then
22531 :
22532 else
22533 echo "*** Could not run GTK+ test program, checking why..."
22534 ac_save_CFLAGS="$CFLAGS"
22535 ac_save_LIBS="$LIBS"
22536 CFLAGS="$CFLAGS $GTK_CFLAGS"
22537 LIBS="$LIBS $GTK_LIBS"
22538 cat >conftest.$ac_ext <<_ACEOF
22539/* confdefs.h. */
22540_ACEOF
22541cat confdefs.h >>conftest.$ac_ext
22542cat >>conftest.$ac_ext <<_ACEOF
22543/* end confdefs.h. */
22544
22545#include <gtk/gtk.h>
22546#include <stdio.h>
22547
22548int
22549main ()
22550{
22551 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22552 ;
22553 return 0;
22554}
22555_ACEOF
22556rm -f conftest.$ac_objext conftest$ac_exeext
22557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22558 (eval $ac_link) 2>conftest.er1
a848cd7e 22559 ac_status=$?
ac1cb8d3
VS
22560 grep -v '^ *+' conftest.er1 >conftest.err
22561 rm -f conftest.er1
22562 cat conftest.err >&5
a848cd7e
SC
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); } &&
ac1cb8d3
VS
22565 { ac_try='test -z "$ac_c_werror_flag"
22566 || test ! -s conftest.err'
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; } &&
22572 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; }; then
22578 echo "*** The test program compiled, but did not run. This usually means"
22579 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22580 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22581 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22582 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22583 echo "*** is required on your system"
22584 echo "***"
22585 echo "*** If you have an old version installed, it is best to remove it, although"
22586 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22587else
22588 echo "$as_me: failed program was:" >&5
22589sed 's/^/| /' conftest.$ac_ext >&5
22590
22591 echo "*** The test program failed to compile or link. See the file config.log for the"
22592 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22593fi
ac1cb8d3
VS
22594rm -f conftest.err conftest.$ac_objext \
22595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22596 CFLAGS="$ac_save_CFLAGS"
22597 LIBS="$ac_save_LIBS"
22598 fi
22599 fi
22600 GTK_CFLAGS=""
22601 GTK_LIBS=""
22602 :
22603 fi
22604
22605
22606 rm -f conf.gtktest
22607
22608 else
22609
22610# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22611if test "${with_gtk_prefix+set}" = set; then
22612 withval="$with_gtk_prefix"
22613 gtk_config_prefix="$withval"
22614else
22615 gtk_config_prefix=""
22616fi;
22617
22618# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22619if test "${with_gtk_exec_prefix+set}" = set; then
22620 withval="$with_gtk_exec_prefix"
22621 gtk_config_exec_prefix="$withval"
22622else
22623 gtk_config_exec_prefix=""
22624fi;
22625# Check whether --enable-gtktest or --disable-gtktest was given.
22626if test "${enable_gtktest+set}" = set; then
22627 enableval="$enable_gtktest"
22628
22629else
22630 enable_gtktest=yes
22631fi;
22632
22633 for module in . $GTK_MODULES
22634 do
22635 case "$module" in
22636 gthread)
22637 gtk_config_args="$gtk_config_args gthread"
22638 ;;
22639 esac
22640 done
22641
22642 if test x$gtk_config_exec_prefix != x ; then
22643 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22644 if test x${GTK_CONFIG+set} != xset ; then
22645 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22646 fi
22647 fi
22648 if test x$gtk_config_prefix != x ; then
22649 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22650 if test x${GTK_CONFIG+set} != xset ; then
22651 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22652 fi
22653 fi
22654
22655 # Extract the first word of "gtk-config", so it can be a program name with args.
22656set dummy gtk-config; ac_word=$2
22657echo "$as_me:$LINENO: checking for $ac_word" >&5
22658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22659if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22661else
22662 case $GTK_CONFIG in
22663 [\\/]* | ?:[\\/]*)
22664 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22665 ;;
22666 *)
22667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22668for as_dir in $PATH
22669do
22670 IFS=$as_save_IFS
22671 test -z "$as_dir" && as_dir=.
22672 for ac_exec_ext in '' $ac_executable_extensions; do
22673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22674 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22676 break 2
22677 fi
22678done
22679done
22680
22681 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22682 ;;
22683esac
22684fi
22685GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22686
22687if test -n "$GTK_CONFIG"; then
22688 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22689echo "${ECHO_T}$GTK_CONFIG" >&6
22690else
22691 echo "$as_me:$LINENO: result: no" >&5
22692echo "${ECHO_T}no" >&6
22693fi
22694
22695 min_gtk_version=1.2.7
22696 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22697echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22698 no_gtk=""
22699 if test "$GTK_CONFIG" = "no" ; then
22700 no_gtk=yes
22701 else
22702 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22703 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22704 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22705 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22706 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22707 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22708 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22709 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22710 if test "x$enable_gtktest" = "xyes" ; then
22711 ac_save_CFLAGS="$CFLAGS"
22712 ac_save_LIBS="$LIBS"
22713 CFLAGS="$CFLAGS $GTK_CFLAGS"
22714 LIBS="$GTK_LIBS $LIBS"
22715 rm -f conf.gtktest
22716 if test "$cross_compiling" = yes; then
22717 echo $ac_n "cross compiling; assumed OK... $ac_c"
22718else
22719 cat >conftest.$ac_ext <<_ACEOF
22720/* confdefs.h. */
22721_ACEOF
22722cat confdefs.h >>conftest.$ac_ext
22723cat >>conftest.$ac_ext <<_ACEOF
22724/* end confdefs.h. */
22725
22726#include <gtk/gtk.h>
22727#include <stdio.h>
22728#include <stdlib.h>
22729
22730int
22731main ()
22732{
22733 int major, minor, micro;
22734 char *tmp_version;
22735
22736 system ("touch conf.gtktest");
22737
22738 /* HP/UX 9 (%@#!) writes to sscanf strings */
22739 tmp_version = g_strdup("$min_gtk_version");
22740 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22741 printf("%s, bad version string\n", "$min_gtk_version");
22742 exit(1);
22743 }
22744
22745 if ((gtk_major_version != $gtk_config_major_version) ||
22746 (gtk_minor_version != $gtk_config_minor_version) ||
22747 (gtk_micro_version != $gtk_config_micro_version))
22748 {
22749 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22750 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22751 gtk_major_version, gtk_minor_version, gtk_micro_version);
22752 printf ("*** was found! If gtk-config was correct, then it is best\n");
22753 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22754 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22755 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22756 printf("*** required on your system.\n");
22757 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22758 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22759 printf("*** before re-running configure\n");
22760 }
22761#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22762 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22763 (gtk_minor_version != GTK_MINOR_VERSION) ||
22764 (gtk_micro_version != GTK_MICRO_VERSION))
22765 {
22766 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22767 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22768 printf("*** library (version %d.%d.%d)\n",
22769 gtk_major_version, gtk_minor_version, gtk_micro_version);
22770 }
22771#endif /* defined (GTK_MAJOR_VERSION) ... */
22772 else
22773 {
22774 if ((gtk_major_version > major) ||
22775 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22776 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22777 {
22778 return 0;
22779 }
22780 else
22781 {
22782 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22783 gtk_major_version, gtk_minor_version, gtk_micro_version);
22784 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22785 major, minor, micro);
22786 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22787 printf("***\n");
22788 printf("*** If you have already installed a sufficiently new version, this error\n");
22789 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22790 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22791 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22792 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22793 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22794 printf("*** so that the correct libraries are found at run-time))\n");
22795 }
22796 }
22797 return 1;
22798}
22799
22800_ACEOF
22801rm -f conftest$ac_exeext
22802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22803 (eval $ac_link) 2>&5
22804 ac_status=$?
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808 (eval $ac_try) 2>&5
22809 ac_status=$?
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; }; then
22812 :
22813else
22814 echo "$as_me: program exited with status $ac_status" >&5
22815echo "$as_me: failed program was:" >&5
22816sed 's/^/| /' conftest.$ac_ext >&5
22817
22818( exit $ac_status )
22819no_gtk=yes
22820fi
ac1cb8d3 22821rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22822fi
22823 CFLAGS="$ac_save_CFLAGS"
22824 LIBS="$ac_save_LIBS"
22825 fi
22826 fi
22827 if test "x$no_gtk" = x ; then
22828 echo "$as_me:$LINENO: result: yes" >&5
22829echo "${ECHO_T}yes" >&6
22830 wx_cv_lib_gtk=1.2.7
22831 else
22832 echo "$as_me:$LINENO: result: no" >&5
22833echo "${ECHO_T}no" >&6
22834 if test "$GTK_CONFIG" = "no" ; then
22835 echo "*** The gtk-config script installed by GTK could not be found"
22836 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22837 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22838 echo "*** full path to gtk-config."
22839 else
22840 if test -f conf.gtktest ; then
22841 :
22842 else
22843 echo "*** Could not run GTK test program, checking why..."
22844 CFLAGS="$CFLAGS $GTK_CFLAGS"
22845 LIBS="$LIBS $GTK_LIBS"
22846 cat >conftest.$ac_ext <<_ACEOF
22847/* confdefs.h. */
22848_ACEOF
22849cat confdefs.h >>conftest.$ac_ext
22850cat >>conftest.$ac_ext <<_ACEOF
22851/* end confdefs.h. */
22852
22853#include <gtk/gtk.h>
22854#include <stdio.h>
22855
22856int
22857main ()
22858{
22859 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22860 ;
22861 return 0;
22862}
22863_ACEOF
22864rm -f conftest.$ac_objext conftest$ac_exeext
22865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22866 (eval $ac_link) 2>conftest.er1
a848cd7e 22867 ac_status=$?
ac1cb8d3
VS
22868 grep -v '^ *+' conftest.er1 >conftest.err
22869 rm -f conftest.er1
22870 cat conftest.err >&5
a848cd7e
SC
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); } &&
ac1cb8d3
VS
22873 { ac_try='test -z "$ac_c_werror_flag"
22874 || test ! -s conftest.err'
22875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22876 (eval $ac_try) 2>&5
22877 ac_status=$?
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); }; } &&
22880 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22882 (eval $ac_try) 2>&5
22883 ac_status=$?
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); }; }; then
22886 echo "*** The test program compiled, but did not run. This usually means"
22887 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22888 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22889 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22890 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22891 echo "*** is required on your system"
22892 echo "***"
22893 echo "*** If you have an old version installed, it is best to remove it, although"
22894 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22895 echo "***"
22896 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22897 echo "*** came with the system with the command"
22898 echo "***"
22899 echo "*** rpm --erase --nodeps gtk gtk-devel"
22900else
22901 echo "$as_me: failed program was:" >&5
22902sed 's/^/| /' conftest.$ac_ext >&5
22903
22904 echo "*** The test program failed to compile or link. See the file config.log for the"
22905 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22906 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22907 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22908fi
ac1cb8d3
VS
22909rm -f conftest.err conftest.$ac_objext \
22910 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22911 CFLAGS="$ac_save_CFLAGS"
22912 LIBS="$ac_save_LIBS"
22913 fi
22914 fi
22915 GTK_CFLAGS=""
22916 GTK_LIBS=""
22917 :
22918 fi
22919
22920
22921 rm -f conf.gtktest
22922
22923
22924 if test -z "$wx_cv_lib_gtk"; then
22925
22926# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22927if test "${with_gtk_prefix+set}" = set; then
22928 withval="$with_gtk_prefix"
22929 gtk_config_prefix="$withval"
22930else
22931 gtk_config_prefix=""
22932fi;
22933
22934# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22935if test "${with_gtk_exec_prefix+set}" = set; then
22936 withval="$with_gtk_exec_prefix"
22937 gtk_config_exec_prefix="$withval"
22938else
22939 gtk_config_exec_prefix=""
22940fi;
22941# Check whether --enable-gtktest or --disable-gtktest was given.
22942if test "${enable_gtktest+set}" = set; then
22943 enableval="$enable_gtktest"
22944
22945else
22946 enable_gtktest=yes
22947fi;
22948
22949 for module in . $GTK_MODULES
22950 do
22951 case "$module" in
22952 gthread)
22953 gtk_config_args="$gtk_config_args gthread"
22954 ;;
22955 esac
22956 done
22957
22958 if test x$gtk_config_exec_prefix != x ; then
22959 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22960 if test x${GTK_CONFIG+set} != xset ; then
22961 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22962 fi
22963 fi
22964 if test x$gtk_config_prefix != x ; then
22965 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22966 if test x${GTK_CONFIG+set} != xset ; then
22967 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22968 fi
22969 fi
22970
22971 # Extract the first word of "gtk-config", so it can be a program name with args.
22972set dummy gtk-config; ac_word=$2
22973echo "$as_me:$LINENO: checking for $ac_word" >&5
22974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22975if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22977else
22978 case $GTK_CONFIG in
22979 [\\/]* | ?:[\\/]*)
22980 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22981 ;;
22982 *)
22983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22984for as_dir in $PATH
22985do
22986 IFS=$as_save_IFS
22987 test -z "$as_dir" && as_dir=.
22988 for ac_exec_ext in '' $ac_executable_extensions; do
22989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22990 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22992 break 2
22993 fi
22994done
22995done
22996
22997 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22998 ;;
22999esac
23000fi
23001GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23002
23003if test -n "$GTK_CONFIG"; then
23004 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23005echo "${ECHO_T}$GTK_CONFIG" >&6
23006else
23007 echo "$as_me:$LINENO: result: no" >&5
23008echo "${ECHO_T}no" >&6
23009fi
23010
23011 min_gtk_version=1.2.3
23012 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23013echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23014 no_gtk=""
23015 if test "$GTK_CONFIG" = "no" ; then
23016 no_gtk=yes
23017 else
23018 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23019 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23020 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23021 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23022 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23023 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23024 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23025 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23026 if test "x$enable_gtktest" = "xyes" ; then
23027 ac_save_CFLAGS="$CFLAGS"
23028 ac_save_LIBS="$LIBS"
23029 CFLAGS="$CFLAGS $GTK_CFLAGS"
23030 LIBS="$GTK_LIBS $LIBS"
23031 rm -f conf.gtktest
23032 if test "$cross_compiling" = yes; then
23033 echo $ac_n "cross compiling; assumed OK... $ac_c"
23034else
23035 cat >conftest.$ac_ext <<_ACEOF
23036/* confdefs.h. */
23037_ACEOF
23038cat confdefs.h >>conftest.$ac_ext
23039cat >>conftest.$ac_ext <<_ACEOF
23040/* end confdefs.h. */
23041
23042#include <gtk/gtk.h>
23043#include <stdio.h>
23044#include <stdlib.h>
23045
23046int
23047main ()
23048{
23049 int major, minor, micro;
23050 char *tmp_version;
23051
23052 system ("touch conf.gtktest");
23053
23054 /* HP/UX 9 (%@#!) writes to sscanf strings */
23055 tmp_version = g_strdup("$min_gtk_version");
23056 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23057 printf("%s, bad version string\n", "$min_gtk_version");
23058 exit(1);
23059 }
23060
23061 if ((gtk_major_version != $gtk_config_major_version) ||
23062 (gtk_minor_version != $gtk_config_minor_version) ||
23063 (gtk_micro_version != $gtk_config_micro_version))
23064 {
23065 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23066 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23067 gtk_major_version, gtk_minor_version, gtk_micro_version);
23068 printf ("*** was found! If gtk-config was correct, then it is best\n");
23069 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23070 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23071 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23072 printf("*** required on your system.\n");
23073 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23074 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23075 printf("*** before re-running configure\n");
23076 }
23077#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23078 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23079 (gtk_minor_version != GTK_MINOR_VERSION) ||
23080 (gtk_micro_version != GTK_MICRO_VERSION))
23081 {
23082 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23083 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23084 printf("*** library (version %d.%d.%d)\n",
23085 gtk_major_version, gtk_minor_version, gtk_micro_version);
23086 }
23087#endif /* defined (GTK_MAJOR_VERSION) ... */
23088 else
23089 {
23090 if ((gtk_major_version > major) ||
23091 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23092 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23093 {
23094 return 0;
23095 }
23096 else
23097 {
23098 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23099 gtk_major_version, gtk_minor_version, gtk_micro_version);
23100 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23101 major, minor, micro);
23102 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23103 printf("***\n");
23104 printf("*** If you have already installed a sufficiently new version, this error\n");
23105 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23106 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23107 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23108 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23109 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23110 printf("*** so that the correct libraries are found at run-time))\n");
23111 }
23112 }
23113 return 1;
23114}
23115
23116_ACEOF
23117rm -f conftest$ac_exeext
23118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23119 (eval $ac_link) 2>&5
23120 ac_status=$?
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23124 (eval $ac_try) 2>&5
23125 ac_status=$?
23126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); }; }; then
23128 :
23129else
23130 echo "$as_me: program exited with status $ac_status" >&5
23131echo "$as_me: failed program was:" >&5
23132sed 's/^/| /' conftest.$ac_ext >&5
23133
23134( exit $ac_status )
23135no_gtk=yes
23136fi
ac1cb8d3 23137rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23138fi
23139 CFLAGS="$ac_save_CFLAGS"
23140 LIBS="$ac_save_LIBS"
23141 fi
23142 fi
23143 if test "x$no_gtk" = x ; then
23144 echo "$as_me:$LINENO: result: yes" >&5
23145echo "${ECHO_T}yes" >&6
23146 wx_cv_lib_gtk=1.2.3
23147 else
23148 echo "$as_me:$LINENO: result: no" >&5
23149echo "${ECHO_T}no" >&6
23150 if test "$GTK_CONFIG" = "no" ; then
23151 echo "*** The gtk-config script installed by GTK could not be found"
23152 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23153 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23154 echo "*** full path to gtk-config."
23155 else
23156 if test -f conf.gtktest ; then
23157 :
23158 else
23159 echo "*** Could not run GTK test program, checking why..."
23160 CFLAGS="$CFLAGS $GTK_CFLAGS"
23161 LIBS="$LIBS $GTK_LIBS"
23162 cat >conftest.$ac_ext <<_ACEOF
23163/* confdefs.h. */
23164_ACEOF
23165cat confdefs.h >>conftest.$ac_ext
23166cat >>conftest.$ac_ext <<_ACEOF
23167/* end confdefs.h. */
23168
23169#include <gtk/gtk.h>
23170#include <stdio.h>
23171
23172int
23173main ()
23174{
23175 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23176 ;
23177 return 0;
23178}
23179_ACEOF
23180rm -f conftest.$ac_objext conftest$ac_exeext
23181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23182 (eval $ac_link) 2>conftest.er1
a848cd7e 23183 ac_status=$?
ac1cb8d3
VS
23184 grep -v '^ *+' conftest.er1 >conftest.err
23185 rm -f conftest.er1
23186 cat conftest.err >&5
a848cd7e
SC
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } &&
ac1cb8d3
VS
23189 { ac_try='test -z "$ac_c_werror_flag"
23190 || test ! -s conftest.err'
23191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23192 (eval $ac_try) 2>&5
23193 ac_status=$?
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); }; } &&
23196 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198 (eval $ac_try) 2>&5
23199 ac_status=$?
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); }; }; then
23202 echo "*** The test program compiled, but did not run. This usually means"
23203 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23204 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23205 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23206 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23207 echo "*** is required on your system"
23208 echo "***"
23209 echo "*** If you have an old version installed, it is best to remove it, although"
23210 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23211 echo "***"
23212 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23213 echo "*** came with the system with the command"
23214 echo "***"
23215 echo "*** rpm --erase --nodeps gtk gtk-devel"
23216else
23217 echo "$as_me: failed program was:" >&5
23218sed 's/^/| /' conftest.$ac_ext >&5
23219
23220 echo "*** The test program failed to compile or link. See the file config.log for the"
23221 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23222 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23223 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23224fi
ac1cb8d3
VS
23225rm -f conftest.err conftest.$ac_objext \
23226 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23227 CFLAGS="$ac_save_CFLAGS"
23228 LIBS="$ac_save_LIBS"
23229 fi
23230 fi
23231 GTK_CFLAGS=""
23232 GTK_LIBS=""
23233 :
23234 fi
23235
23236
23237 rm -f conf.gtktest
23238
23239 fi
23240 fi
23241
23242 if test -z "$wx_cv_lib_gtk"; then
23243 wx_cv_lib_gtk=none
23244 else
23245 wx_cv_cflags_gtk=$GTK_CFLAGS
23246 wx_cv_libs_gtk=$GTK_LIBS
23247 fi
23248
23249
23250fi
23251
23252
23253 if test "$gtk_version_cached" = 1; then
23254 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23255echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23256 fi
23257
23258 case "$wx_cv_lib_gtk" in
23259 2.0) WXGTK20=1
23260 TOOLKIT_VERSION=2
23261 ;;
23262 1.2.7) WXGTK127=1
23263 WXGTK12=1
23264 ;;
23265 1.2.3) WXGTK12=1
23266 ;;
23267 *) { { echo "$as_me:$LINENO: error:
23268Please check that gtk-config is in path, the directory
23269where GTK+ libraries are installed (returned by
23270'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23271equivalent variable and GTK+ is version 1.2.3 or above.
23272 " >&5
23273echo "$as_me: error:
23274Please check that gtk-config is in path, the directory
23275where GTK+ libraries are installed (returned by
23276'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23277equivalent variable and GTK+ is version 1.2.3 or above.
23278 " >&2;}
23279 { (exit 1); exit 1; }; }
23280 ;;
23281 esac
23282
23283 if test "$WXGTK20" = 1; then
23284 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23285
23286 succeeded=no
23287
23288 if test -z "$PKG_CONFIG"; then
23289 # Extract the first word of "pkg-config", so it can be a program name with args.
23290set dummy pkg-config; ac_word=$2
23291echo "$as_me:$LINENO: checking for $ac_word" >&5
23292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23293if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23295else
23296 case $PKG_CONFIG in
23297 [\\/]* | ?:[\\/]*)
23298 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23299 ;;
23300 *)
23301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23302for as_dir in $PATH
23303do
23304 IFS=$as_save_IFS
23305 test -z "$as_dir" && as_dir=.
23306 for ac_exec_ext in '' $ac_executable_extensions; do
23307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23308 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23310 break 2
23311 fi
23312done
23313done
23314
23315 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23316 ;;
23317esac
23318fi
23319PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23320
23321if test -n "$PKG_CONFIG"; then
23322 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23323echo "${ECHO_T}$PKG_CONFIG" >&6
23324else
23325 echo "$as_me:$LINENO: result: no" >&5
23326echo "${ECHO_T}no" >&6
23327fi
23328
23329 fi
23330
23331 if test "$PKG_CONFIG" = "no" ; then
23332 echo "*** The pkg-config script could not be found. Make sure it is"
23333 echo "*** in your path, or set the PKG_CONFIG environment variable"
23334 echo "*** to the full path to pkg-config."
23335 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23336 else
23337 PKG_CONFIG_MIN_VERSION=0.9.0
23338 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23339 echo "$as_me:$LINENO: checking for pangoft2" >&5
23340echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23341
23342 if $PKG_CONFIG --exists "pangoft2" ; then
23343 echo "$as_me:$LINENO: result: yes" >&5
23344echo "${ECHO_T}yes" >&6
23345 succeeded=yes
23346
23347 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23348echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23349 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23350 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23351echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23352
23353 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23354echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23355 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23356 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23357echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23358 else
23359 PANGOFT2_CFLAGS=""
23360 PANGOFT2_LIBS=""
23361 ## If we have a custom action on failure, don't print errors, but
23362 ## do set a variable so people can do so.
23363 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23364
23365 fi
23366
23367
23368
23369 else
23370 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23371 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23372 fi
23373 fi
23374
23375 if test $succeeded = yes; then
23376
23377 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23378 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23379
23380 else
23381
23382 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23383echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23384 wxUSE_PRINTING_ARCHITECTURE="no"
23385
23386
23387 fi
23388
23389 fi
304205f1
VS
23390
23391 save_CFLAGS="$CFLAGS"
23392 save_LIBS="$LIBS"
23393 CFLAGS="$CFLAGS $GTK_CFLAGS"
23394 LIBS="$LIBS $GTK_LIBS"
23395
23396for ac_func in pango_font_family_is_monospace
23397do
23398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23399echo "$as_me:$LINENO: checking for $ac_func" >&5
23400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23401if eval "test \"\${$as_ac_var+set}\" = set"; then
23402 echo $ECHO_N "(cached) $ECHO_C" >&6
23403else
23404 cat >conftest.$ac_ext <<_ACEOF
23405/* confdefs.h. */
23406_ACEOF
23407cat confdefs.h >>conftest.$ac_ext
23408cat >>conftest.$ac_ext <<_ACEOF
23409/* end confdefs.h. */
23410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23412#define $ac_func innocuous_$ac_func
23413
23414/* System header to define __stub macros and hopefully few prototypes,
23415 which can conflict with char $ac_func (); below.
23416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23417 <limits.h> exists even on freestanding compilers. */
23418
23419#ifdef __STDC__
23420# include <limits.h>
23421#else
23422# include <assert.h>
23423#endif
23424
23425#undef $ac_func
23426
23427/* Override any gcc2 internal prototype to avoid an error. */
23428#ifdef __cplusplus
23429extern "C"
23430{
23431#endif
23432/* We use char because int might match the return type of a gcc2
23433 builtin and then its argument prototype would still apply. */
23434char $ac_func ();
23435/* The GNU C library defines this for functions which it implements
23436 to always fail with ENOSYS. Some functions are actually named
23437 something starting with __ and the normal name is an alias. */
23438#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23439choke me
23440#else
23441char (*f) () = $ac_func;
23442#endif
23443#ifdef __cplusplus
23444}
23445#endif
23446
23447int
23448main ()
23449{
23450return f != $ac_func;
23451 ;
23452 return 0;
23453}
23454_ACEOF
23455rm -f conftest.$ac_objext conftest$ac_exeext
23456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23457 (eval $ac_link) 2>conftest.er1
23458 ac_status=$?
23459 grep -v '^ *+' conftest.er1 >conftest.err
23460 rm -f conftest.er1
23461 cat conftest.err >&5
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); } &&
23464 { ac_try='test -z "$ac_c_werror_flag"
23465 || test ! -s conftest.err'
23466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467 (eval $ac_try) 2>&5
23468 ac_status=$?
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; } &&
23471 { ac_try='test -s conftest$ac_exeext'
23472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23473 (eval $ac_try) 2>&5
23474 ac_status=$?
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); }; }; then
23477 eval "$as_ac_var=yes"
23478else
23479 echo "$as_me: failed program was:" >&5
23480sed 's/^/| /' conftest.$ac_ext >&5
23481
23482eval "$as_ac_var=no"
23483fi
23484rm -f conftest.err conftest.$ac_objext \
23485 conftest$ac_exeext conftest.$ac_ext
23486fi
23487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23489if test `eval echo '${'$as_ac_var'}'` = yes; then
23490 cat >>confdefs.h <<_ACEOF
23491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23492_ACEOF
23493
23494fi
23495done
23496
23497 CFLAGS="$save_CFLAGS"
23498 LIBS="$save_LIBS"
a848cd7e
SC
23499 else
23500 if test "$wxUSE_UNICODE" = "yes"; then
23501 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23502echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23503 wxUSE_UNICODE=no
23504 fi
23505 fi
23506
23507 if test "$USE_DARWIN" != 1; then
23508
23509for ac_func in poll
23510do
23511as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23512echo "$as_me:$LINENO: checking for $ac_func" >&5
23513echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23514if eval "test \"\${$as_ac_var+set}\" = set"; then
23515 echo $ECHO_N "(cached) $ECHO_C" >&6
23516else
23517 cat >conftest.$ac_ext <<_ACEOF
23518/* confdefs.h. */
23519_ACEOF
23520cat confdefs.h >>conftest.$ac_ext
23521cat >>conftest.$ac_ext <<_ACEOF
23522/* end confdefs.h. */
ac1cb8d3
VS
23523/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23525#define $ac_func innocuous_$ac_func
23526
a848cd7e
SC
23527/* System header to define __stub macros and hopefully few prototypes,
23528 which can conflict with char $ac_func (); below.
23529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23530 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23531
a848cd7e
SC
23532#ifdef __STDC__
23533# include <limits.h>
23534#else
23535# include <assert.h>
23536#endif
ac1cb8d3
VS
23537
23538#undef $ac_func
23539
a848cd7e
SC
23540/* Override any gcc2 internal prototype to avoid an error. */
23541#ifdef __cplusplus
23542extern "C"
23543{
23544#endif
23545/* We use char because int might match the return type of a gcc2
23546 builtin and then its argument prototype would still apply. */
23547char $ac_func ();
23548/* The GNU C library defines this for functions which it implements
23549 to always fail with ENOSYS. Some functions are actually named
23550 something starting with __ and the normal name is an alias. */
23551#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23552choke me
23553#else
23554char (*f) () = $ac_func;
23555#endif
23556#ifdef __cplusplus
23557}
23558#endif
23559
23560int
23561main ()
23562{
23563return f != $ac_func;
23564 ;
23565 return 0;
23566}
23567_ACEOF
23568rm -f conftest.$ac_objext conftest$ac_exeext
23569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23570 (eval $ac_link) 2>conftest.er1
a848cd7e 23571 ac_status=$?
ac1cb8d3
VS
23572 grep -v '^ *+' conftest.er1 >conftest.err
23573 rm -f conftest.er1
23574 cat conftest.err >&5
a848cd7e
SC
23575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576 (exit $ac_status); } &&
ac1cb8d3
VS
23577 { ac_try='test -z "$ac_c_werror_flag"
23578 || test ! -s conftest.err'
23579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23580 (eval $ac_try) 2>&5
23581 ac_status=$?
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); }; } &&
23584 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586 (eval $ac_try) 2>&5
23587 ac_status=$?
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); }; }; then
23590 eval "$as_ac_var=yes"
23591else
23592 echo "$as_me: failed program was:" >&5
23593sed 's/^/| /' conftest.$ac_ext >&5
23594
23595eval "$as_ac_var=no"
23596fi
ac1cb8d3
VS
23597rm -f conftest.err conftest.$ac_objext \
23598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23599fi
23600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23601echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23602if test `eval echo '${'$as_ac_var'}'` = yes; then
23603 cat >>confdefs.h <<_ACEOF
23604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23605_ACEOF
23606
23607fi
23608done
23609
23610 fi
23611
23612 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23613 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23614
23615 AFMINSTALL=afminstall
23616 TOOLKIT=GTK
23617 GUIDIST=GTK_DIST
23618
23619 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23620echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23621if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23622 echo $ECHO_N "(cached) $ECHO_C" >&6
23623else
23624 ac_check_lib_save_LIBS=$LIBS
23625LIBS="-lgdk $LIBS"
23626cat >conftest.$ac_ext <<_ACEOF
23627/* confdefs.h. */
23628_ACEOF
23629cat confdefs.h >>conftest.$ac_ext
23630cat >>conftest.$ac_ext <<_ACEOF
23631/* end confdefs.h. */
23632
23633/* Override any gcc2 internal prototype to avoid an error. */
23634#ifdef __cplusplus
23635extern "C"
23636#endif
23637/* We use char because int might match the return type of a gcc2
23638 builtin and then its argument prototype would still apply. */
23639char gdk_im_open ();
23640int
23641main ()
23642{
23643gdk_im_open ();
23644 ;
23645 return 0;
23646}
23647_ACEOF
23648rm -f conftest.$ac_objext conftest$ac_exeext
23649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23650 (eval $ac_link) 2>conftest.er1
a848cd7e 23651 ac_status=$?
ac1cb8d3
VS
23652 grep -v '^ *+' conftest.er1 >conftest.err
23653 rm -f conftest.er1
23654 cat conftest.err >&5
a848cd7e
SC
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } &&
ac1cb8d3
VS
23657 { ac_try='test -z "$ac_c_werror_flag"
23658 || test ! -s conftest.err'
23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23661 ac_status=$?
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); }; } &&
23664 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23666 (eval $ac_try) 2>&5
23667 ac_status=$?
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); }; }; then
23670 ac_cv_lib_gdk_gdk_im_open=yes
23671else
23672 echo "$as_me: failed program was:" >&5
23673sed 's/^/| /' conftest.$ac_ext >&5
23674
23675ac_cv_lib_gdk_gdk_im_open=no
23676fi
ac1cb8d3
VS
23677rm -f conftest.err conftest.$ac_objext \
23678 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23679LIBS=$ac_check_lib_save_LIBS
23680fi
23681echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23682echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23683if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23684 cat >>confdefs.h <<\_ACEOF
23685#define HAVE_XIM 1
23686_ACEOF
23687
23688fi
23689
23690
23691
23692 if test "$wxUSE_GPE" = "yes"; then
23693 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23694echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23695
23696ac_find_libraries=
23697for ac_dir in $SEARCH_LIB /usr/lib;
23698 do
23699 for ac_extension in a so sl dylib; do
23700 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23701 ac_find_libraries=$ac_dir
23702 break 2
23703 fi
23704 done
23705 done
23706
23707 if test "$ac_find_libraries" != "" ; then
23708
23709 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23710 result=$?
23711 if test $result = 0; then
23712 ac_path_to_link=""
23713 else
23714 ac_path_to_link=" -L$ac_find_libraries"
23715 fi
23716
23717 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23718 WXGPE=1
23719 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23720echo "${ECHO_T}found at $ac_find_libraries" >&6
23721 else
23722 echo "$as_me:$LINENO: result: not found" >&5
23723echo "${ECHO_T}not found" >&6
23724 fi
23725
23726 fi
23727 fi
23728
23729 if test "$wxUSE_MGL" = 1; then
23730 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23731echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23732 if test "x$MGL_ROOT" = x ; then
23733 echo "$as_me:$LINENO: result: not found" >&5
23734echo "${ECHO_T}not found" >&6
23735 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23736echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23737 { (exit 1); exit 1; }; }
23738 else
23739 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23740echo "${ECHO_T}$MGL_ROOT" >&6
23741 fi
23742
23743 echo "$as_me:$LINENO: checking for libmgl location" >&5
23744echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23745 case "${host}" in
23746 *-*-linux* )
23747 if test "x$wxUSE_SHARED" = xyes ; then
23748 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23749 else
23750 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23751 fi
23752 ;;
23753 *-pc-msdosdjgpp )
23754 mgl_os_candidates="dos32/dj2"
23755 ;;
23756 *)
23757 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23758echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23759 { (exit 1); exit 1; }; }
23760 esac
23761
23762 mgl_lib_type=""
23763 mgl_os=""
23764
23765 for mgl_os_i in $mgl_os_candidates ; do
23766 if test "x$mgl_os" = x ; then
23767 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23768 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23769 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23770 mgl_lib_type=debug
23771 mgl_os=$mgl_os_i
23772 fi
23773 fi
23774 if test "x$mgl_lib_type" = x ; then
23775 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23776 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23777 mgl_lib_type=release
23778 mgl_os=$mgl_os_i
23779 fi
23780 fi
23781 fi
23782 done
23783
23784 if test "x$mgl_os" = x ; then
23785 echo "$as_me:$LINENO: result: not found" >&5
23786echo "${ECHO_T}not found" >&6
23787 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23788echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23789 { (exit 1); exit 1; }; }
23790 fi
23791 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23792echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23793
23794 wxUSE_UNIVERSAL="yes"
23795
23796 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23797 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23798
23799 AFMINSTALL=afminstall
23800 TOOLKIT=MGL
23801 GUIDIST=MGL_DIST
23802 fi
23803
23804 if test "$wxUSE_MICROWIN" = 1; then
23805 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23806echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23807 if test "x$MICROWINDOWS" = x ; then
23808 echo "$as_me:$LINENO: result: not found" >&5
23809echo "${ECHO_T}not found" >&6
23810 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23811echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23812 { (exit 1); exit 1; }; }
23813 else
23814 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23815echo "${ECHO_T}$MICROWINDOWS" >&6
23816 fi
23817
23818 if test -f $MICROWINDOWS/lib/libmwin.a; then
23819 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23820echo "${ECHO_T}MicroWindows' libraries found." >&6
23821 else
23822 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23823echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23824 { (exit 1); exit 1; }; }
23825 fi
23826
23827 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23828 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23829
23830 wxUSE_UNIVERSAL="yes"
23831
23832 AFMINSTALL=afminstall
23833 TOOLKIT=MICROWIN
23834 GUIDIST=MICROWIN_DIST
23835
23836 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23837 fi
23838
23839 if test "$wxUSE_X11" = 1; then
23840 echo "$as_me:$LINENO: checking for X" >&5
23841echo $ECHO_N "checking for X... $ECHO_C" >&6
23842
23843
23844# Check whether --with-x or --without-x was given.
23845if test "${with_x+set}" = set; then
23846 withval="$with_x"
23847
23848fi;
23849# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23850if test "x$with_x" = xno; then
23851 # The user explicitly disabled X.
23852 have_x=disabled
23853else
23854 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23855 # Both variables are already set.
23856 have_x=yes
23857 else
23858 if test "${ac_cv_have_x+set}" = set; then
23859 echo $ECHO_N "(cached) $ECHO_C" >&6
23860else
23861 # One or both of the vars are not set, and there is no cached value.
23862ac_x_includes=no ac_x_libraries=no
23863rm -fr conftest.dir
23864if mkdir conftest.dir; then
23865 cd conftest.dir
23866 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23867 cat >Imakefile <<'_ACEOF'
23868acfindx:
23869 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23870_ACEOF
23871 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23873 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23874 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23875 for ac_extension in a so sl; do
23876 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
23877 test -f $ac_im_libdir/libX11.$ac_extension; then
23878 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
23879 fi
23880 done
23881 # Screen out bogus values from the imake configuration. They are
23882 # bogus both because they are the default anyway, and because
23883 # using them would break gcc on systems where it needs fixed includes.
23884 case $ac_im_incroot in
23885 /usr/include) ;;
23886 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23887 esac
23888 case $ac_im_usrlibdir in
23889 /usr/lib | /lib) ;;
23890 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23891 esac
23892 fi
23893 cd ..
23894 rm -fr conftest.dir
23895fi
23896
23897# Standard set of common directories for X headers.
23898# Check X11 before X11Rn because it is often a symlink to the current release.
23899ac_x_header_dirs='
23900/usr/X11/include
23901/usr/X11R6/include
23902/usr/X11R5/include
23903/usr/X11R4/include
23904
23905/usr/include/X11
23906/usr/include/X11R6
23907/usr/include/X11R5
23908/usr/include/X11R4
23909
23910/usr/local/X11/include
23911/usr/local/X11R6/include
23912/usr/local/X11R5/include
23913/usr/local/X11R4/include
23914
23915/usr/local/include/X11
23916/usr/local/include/X11R6
23917/usr/local/include/X11R5
23918/usr/local/include/X11R4
23919
23920/usr/X386/include
23921/usr/x386/include
23922/usr/XFree86/include/X11
23923
23924/usr/include
23925/usr/local/include
23926/usr/unsupported/include
23927/usr/athena/include
23928/usr/local/x11r5/include
23929/usr/lpp/Xamples/include
23930
23931/usr/openwin/include
23932/usr/openwin/share/include'
23933
23934if test "$ac_x_includes" = no; then
23935 # Guess where to find include files, by looking for Intrinsic.h.
23936 # First, try using that file with no special directory specified.
23937 cat >conftest.$ac_ext <<_ACEOF
23938/* confdefs.h. */
23939_ACEOF
23940cat confdefs.h >>conftest.$ac_ext
23941cat >>conftest.$ac_ext <<_ACEOF
23942/* end confdefs.h. */
23943#include <X11/Intrinsic.h>
23944_ACEOF
23945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23947 ac_status=$?
23948 grep -v '^ *+' conftest.er1 >conftest.err
23949 rm -f conftest.er1
23950 cat conftest.err >&5
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); } >/dev/null; then
23953 if test -s conftest.err; then
23954 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23956 else
23957 ac_cpp_err=
23958 fi
23959else
23960 ac_cpp_err=yes
23961fi
23962if test -z "$ac_cpp_err"; then
23963 # We can compile using X headers with no special include directory.
23964ac_x_includes=
23965else
23966 echo "$as_me: failed program was:" >&5
23967sed 's/^/| /' conftest.$ac_ext >&5
23968
23969 for ac_dir in $ac_x_header_dirs; do
23970 if test -r "$ac_dir/X11/Intrinsic.h"; then
23971 ac_x_includes=$ac_dir
23972 break
23973 fi
23974done
23975fi
23976rm -f conftest.err conftest.$ac_ext
23977fi # $ac_x_includes = no
23978
23979if test "$ac_x_libraries" = no; then
23980 # Check for the libraries.
23981 # See if we find them without any special options.
23982 # Don't add to $LIBS permanently.
23983 ac_save_LIBS=$LIBS
23984 LIBS="-lXt $LIBS"
23985 cat >conftest.$ac_ext <<_ACEOF
23986/* confdefs.h. */
23987_ACEOF
23988cat confdefs.h >>conftest.$ac_ext
23989cat >>conftest.$ac_ext <<_ACEOF
23990/* end confdefs.h. */
23991#include <X11/Intrinsic.h>
23992int
23993main ()
23994{
23995XtMalloc (0)
23996 ;
23997 return 0;
23998}
23999_ACEOF
24000rm -f conftest.$ac_objext conftest$ac_exeext
24001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24002 (eval $ac_link) 2>conftest.er1
a848cd7e 24003 ac_status=$?
ac1cb8d3
VS
24004 grep -v '^ *+' conftest.er1 >conftest.err
24005 rm -f conftest.er1
24006 cat conftest.err >&5
a848cd7e
SC
24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); } &&
ac1cb8d3
VS
24009 { ac_try='test -z "$ac_c_werror_flag"
24010 || test ! -s conftest.err'
24011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24012 (eval $ac_try) 2>&5
24013 ac_status=$?
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); }; } &&
24016 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24018 (eval $ac_try) 2>&5
24019 ac_status=$?
24020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021 (exit $ac_status); }; }; then
24022 LIBS=$ac_save_LIBS
24023# We can link X programs with no special library path.
24024ac_x_libraries=
24025else
24026 echo "$as_me: failed program was:" >&5
24027sed 's/^/| /' conftest.$ac_ext >&5
24028
24029LIBS=$ac_save_LIBS
24030for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24031do
24032 # Don't even attempt the hair of trying to link an X program!
24033 for ac_extension in a so sl; do
24034 if test -r $ac_dir/libXt.$ac_extension; then
24035 ac_x_libraries=$ac_dir
24036 break 2
24037 fi
24038 done
24039done
24040fi
ac1cb8d3
VS
24041rm -f conftest.err conftest.$ac_objext \
24042 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24043fi # $ac_x_libraries = no
24044
24045if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24046 # Didn't find X anywhere. Cache the known absence of X.
24047 ac_cv_have_x="have_x=no"
24048else
24049 # Record where we found X for the cache.
24050 ac_cv_have_x="have_x=yes \
ac1cb8d3 24051 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24052fi
24053fi
24054
24055 fi
24056 eval "$ac_cv_have_x"
24057fi # $with_x != no
24058
24059if test "$have_x" != yes; then
24060 echo "$as_me:$LINENO: result: $have_x" >&5
24061echo "${ECHO_T}$have_x" >&6
24062 no_x=yes
24063else
24064 # If each of the values was on the command line, it overrides each guess.
24065 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24066 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24067 # Update the cache value to reflect the command line values.
24068 ac_cv_have_x="have_x=yes \
24069 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24070 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24071echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
24072fi
24073
24074if test "$no_x" = yes; then
24075 # Not all programs may use this symbol, but it does not hurt to define it.
24076
24077cat >>confdefs.h <<\_ACEOF
24078#define X_DISPLAY_MISSING 1
24079_ACEOF
24080
24081 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24082else
24083 if test -n "$x_includes"; then
24084 X_CFLAGS="$X_CFLAGS -I$x_includes"
24085 fi
24086
24087 # It would also be nice to do this for all -L options, not just this one.
24088 if test -n "$x_libraries"; then
24089 X_LIBS="$X_LIBS -L$x_libraries"
24090 # For Solaris; some versions of Sun CC require a space after -R and
24091 # others require no space. Words are not sufficient . . . .
24092 case `(uname -sr) 2>/dev/null` in
24093 "SunOS 5"*)
24094 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24095echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24096 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24097 cat >conftest.$ac_ext <<_ACEOF
24098/* confdefs.h. */
24099_ACEOF
24100cat confdefs.h >>conftest.$ac_ext
24101cat >>conftest.$ac_ext <<_ACEOF
24102/* end confdefs.h. */
24103
24104int
24105main ()
24106{
24107
24108 ;
24109 return 0;
24110}
24111_ACEOF
24112rm -f conftest.$ac_objext conftest$ac_exeext
24113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24114 (eval $ac_link) 2>conftest.er1
a848cd7e 24115 ac_status=$?
ac1cb8d3
VS
24116 grep -v '^ *+' conftest.er1 >conftest.err
24117 rm -f conftest.er1
24118 cat conftest.err >&5
a848cd7e
SC
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); } &&
ac1cb8d3
VS
24121 { ac_try='test -z "$ac_c_werror_flag"
24122 || test ! -s conftest.err'
24123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124 (eval $ac_try) 2>&5
24125 ac_status=$?
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); }; } &&
24128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; }; then
24134 ac_R_nospace=yes
24135else
24136 echo "$as_me: failed program was:" >&5
24137sed 's/^/| /' conftest.$ac_ext >&5
24138
24139ac_R_nospace=no
24140fi
ac1cb8d3
VS
24141rm -f conftest.err conftest.$ac_objext \
24142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24143 if test $ac_R_nospace = yes; then
24144 echo "$as_me:$LINENO: result: no" >&5
24145echo "${ECHO_T}no" >&6
24146 X_LIBS="$X_LIBS -R$x_libraries"
24147 else
24148 LIBS="$ac_xsave_LIBS -R $x_libraries"
24149 cat >conftest.$ac_ext <<_ACEOF
24150/* confdefs.h. */
24151_ACEOF
24152cat confdefs.h >>conftest.$ac_ext
24153cat >>conftest.$ac_ext <<_ACEOF
24154/* end confdefs.h. */
24155
24156int
24157main ()
24158{
24159
24160 ;
24161 return 0;
24162}
24163_ACEOF
24164rm -f conftest.$ac_objext conftest$ac_exeext
24165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24166 (eval $ac_link) 2>conftest.er1
a848cd7e 24167 ac_status=$?
ac1cb8d3
VS
24168 grep -v '^ *+' conftest.er1 >conftest.err
24169 rm -f conftest.er1
24170 cat conftest.err >&5
a848cd7e
SC
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); } &&
ac1cb8d3
VS
24173 { ac_try='test -z "$ac_c_werror_flag"
24174 || test ! -s conftest.err'
24175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24176 (eval $ac_try) 2>&5
24177 ac_status=$?
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); }; } &&
24180 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24182 (eval $ac_try) 2>&5
24183 ac_status=$?
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); }; }; then
24186 ac_R_space=yes
24187else
24188 echo "$as_me: failed program was:" >&5
24189sed 's/^/| /' conftest.$ac_ext >&5
24190
24191ac_R_space=no
24192fi
ac1cb8d3
VS
24193rm -f conftest.err conftest.$ac_objext \
24194 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24195 if test $ac_R_space = yes; then
24196 echo "$as_me:$LINENO: result: yes" >&5
24197echo "${ECHO_T}yes" >&6
24198 X_LIBS="$X_LIBS -R $x_libraries"
24199 else
24200 echo "$as_me:$LINENO: result: neither works" >&5
24201echo "${ECHO_T}neither works" >&6
24202 fi
24203 fi
24204 LIBS=$ac_xsave_LIBS
24205 esac
24206 fi
24207
24208 # Check for system-dependent libraries X programs must link with.
24209 # Do this before checking for the system-independent R6 libraries
24210 # (-lICE), since we may need -lsocket or whatever for X linking.
24211
24212 if test "$ISC" = yes; then
24213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24214 else
24215 # Martyn Johnson says this is needed for Ultrix, if the X
24216 # libraries were built with DECnet support. And Karl Berry says
24217 # the Alpha needs dnet_stub (dnet does not exist).
24218 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24219 cat >conftest.$ac_ext <<_ACEOF
24220/* confdefs.h. */
24221_ACEOF
24222cat confdefs.h >>conftest.$ac_ext
24223cat >>conftest.$ac_ext <<_ACEOF
24224/* end confdefs.h. */
24225
24226/* Override any gcc2 internal prototype to avoid an error. */
24227#ifdef __cplusplus
24228extern "C"
24229#endif
24230/* We use char because int might match the return type of a gcc2
24231 builtin and then its argument prototype would still apply. */
24232char XOpenDisplay ();
24233int
24234main ()
24235{
24236XOpenDisplay ();
24237 ;
24238 return 0;
24239}
24240_ACEOF
24241rm -f conftest.$ac_objext conftest$ac_exeext
24242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24243 (eval $ac_link) 2>conftest.er1
a848cd7e 24244 ac_status=$?
ac1cb8d3
VS
24245 grep -v '^ *+' conftest.er1 >conftest.err
24246 rm -f conftest.er1
24247 cat conftest.err >&5
a848cd7e
SC
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); } &&
ac1cb8d3
VS
24250 { ac_try='test -z "$ac_c_werror_flag"
24251 || test ! -s conftest.err'
24252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24253 (eval $ac_try) 2>&5
24254 ac_status=$?
24255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); }; } &&
24257 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259 (eval $ac_try) 2>&5
24260 ac_status=$?
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); }; }; then
24263 :
24264else
24265 echo "$as_me: failed program was:" >&5
24266sed 's/^/| /' conftest.$ac_ext >&5
24267
24268echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24269echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24270if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24271 echo $ECHO_N "(cached) $ECHO_C" >&6
24272else
24273 ac_check_lib_save_LIBS=$LIBS
24274LIBS="-ldnet $LIBS"
24275cat >conftest.$ac_ext <<_ACEOF
24276/* confdefs.h. */
24277_ACEOF
24278cat confdefs.h >>conftest.$ac_ext
24279cat >>conftest.$ac_ext <<_ACEOF
24280/* end confdefs.h. */
24281
24282/* Override any gcc2 internal prototype to avoid an error. */
24283#ifdef __cplusplus
24284extern "C"
24285#endif
24286/* We use char because int might match the return type of a gcc2
24287 builtin and then its argument prototype would still apply. */
24288char dnet_ntoa ();
24289int
24290main ()
24291{
24292dnet_ntoa ();
24293 ;
24294 return 0;
24295}
24296_ACEOF
24297rm -f conftest.$ac_objext conftest$ac_exeext
24298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24299 (eval $ac_link) 2>conftest.er1
a848cd7e 24300 ac_status=$?
ac1cb8d3
VS
24301 grep -v '^ *+' conftest.er1 >conftest.err
24302 rm -f conftest.er1
24303 cat conftest.err >&5
a848cd7e
SC
24304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); } &&
ac1cb8d3
VS
24306 { ac_try='test -z "$ac_c_werror_flag"
24307 || test ! -s conftest.err'
24308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24309 (eval $ac_try) 2>&5
24310 ac_status=$?
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); }; } &&
24313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24315 (eval $ac_try) 2>&5
24316 ac_status=$?
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); }; }; then
24319 ac_cv_lib_dnet_dnet_ntoa=yes
24320else
24321 echo "$as_me: failed program was:" >&5
24322sed 's/^/| /' conftest.$ac_ext >&5
24323
24324ac_cv_lib_dnet_dnet_ntoa=no
24325fi
ac1cb8d3
VS
24326rm -f conftest.err conftest.$ac_objext \
24327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24328LIBS=$ac_check_lib_save_LIBS
24329fi
24330echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24331echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24332if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24333 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24334fi
24335
24336 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24337 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24338echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24339if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24340 echo $ECHO_N "(cached) $ECHO_C" >&6
24341else
24342 ac_check_lib_save_LIBS=$LIBS
24343LIBS="-ldnet_stub $LIBS"
24344cat >conftest.$ac_ext <<_ACEOF
24345/* confdefs.h. */
24346_ACEOF
24347cat confdefs.h >>conftest.$ac_ext
24348cat >>conftest.$ac_ext <<_ACEOF
24349/* end confdefs.h. */
24350
24351/* Override any gcc2 internal prototype to avoid an error. */
24352#ifdef __cplusplus
24353extern "C"
24354#endif
24355/* We use char because int might match the return type of a gcc2
24356 builtin and then its argument prototype would still apply. */
24357char dnet_ntoa ();
24358int
24359main ()
24360{
24361dnet_ntoa ();
24362 ;
24363 return 0;
24364}
24365_ACEOF
24366rm -f conftest.$ac_objext conftest$ac_exeext
24367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24368 (eval $ac_link) 2>conftest.er1
a848cd7e 24369 ac_status=$?
ac1cb8d3
VS
24370 grep -v '^ *+' conftest.er1 >conftest.err
24371 rm -f conftest.er1
24372 cat conftest.err >&5
a848cd7e
SC
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); } &&
ac1cb8d3
VS
24375 { ac_try='test -z "$ac_c_werror_flag"
24376 || test ! -s conftest.err'
24377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24378 (eval $ac_try) 2>&5
24379 ac_status=$?
24380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); }; } &&
24382 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384 (eval $ac_try) 2>&5
24385 ac_status=$?
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; }; then
24388 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24389else
24390 echo "$as_me: failed program was:" >&5
24391sed 's/^/| /' conftest.$ac_ext >&5
24392
24393ac_cv_lib_dnet_stub_dnet_ntoa=no
24394fi
ac1cb8d3
VS
24395rm -f conftest.err conftest.$ac_objext \
24396 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24397LIBS=$ac_check_lib_save_LIBS
24398fi
24399echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24400echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24401if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24402 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24403fi
24404
24405 fi
24406fi
ac1cb8d3
VS
24407rm -f conftest.err conftest.$ac_objext \
24408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24409 LIBS="$ac_xsave_LIBS"
24410
24411 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24412 # to get the SysV transport functions.
24413 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24414 # needs -lnsl.
24415 # The nsl library prevents programs from opening the X display
24416 # on Irix 5.2, according to T.E. Dickey.
24417 # The functions gethostbyname, getservbyname, and inet_addr are
24418 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24419 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24420echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24421if test "${ac_cv_func_gethostbyname+set}" = set; then
24422 echo $ECHO_N "(cached) $ECHO_C" >&6
24423else
24424 cat >conftest.$ac_ext <<_ACEOF
24425/* confdefs.h. */
24426_ACEOF
24427cat confdefs.h >>conftest.$ac_ext
24428cat >>conftest.$ac_ext <<_ACEOF
24429/* end confdefs.h. */
ac1cb8d3
VS
24430/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24432#define gethostbyname innocuous_gethostbyname
24433
a848cd7e
SC
24434/* System header to define __stub macros and hopefully few prototypes,
24435 which can conflict with char gethostbyname (); below.
24436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24437 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24438
a848cd7e
SC
24439#ifdef __STDC__
24440# include <limits.h>
24441#else
24442# include <assert.h>
24443#endif
ac1cb8d3
VS
24444
24445#undef gethostbyname
24446
a848cd7e
SC
24447/* Override any gcc2 internal prototype to avoid an error. */
24448#ifdef __cplusplus
24449extern "C"
24450{
24451#endif
24452/* We use char because int might match the return type of a gcc2
24453 builtin and then its argument prototype would still apply. */
24454char gethostbyname ();
24455/* The GNU C library defines this for functions which it implements
24456 to always fail with ENOSYS. Some functions are actually named
24457 something starting with __ and the normal name is an alias. */
24458#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24459choke me
24460#else
24461char (*f) () = gethostbyname;
24462#endif
24463#ifdef __cplusplus
24464}
24465#endif
24466
24467int
24468main ()
24469{
24470return f != gethostbyname;
24471 ;
24472 return 0;
24473}
24474_ACEOF
24475rm -f conftest.$ac_objext conftest$ac_exeext
24476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24477 (eval $ac_link) 2>conftest.er1
a848cd7e 24478 ac_status=$?
ac1cb8d3
VS
24479 grep -v '^ *+' conftest.er1 >conftest.err
24480 rm -f conftest.er1
24481 cat conftest.err >&5
a848cd7e
SC
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); } &&
ac1cb8d3
VS
24484 { ac_try='test -z "$ac_c_werror_flag"
24485 || test ! -s conftest.err'
24486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24487 (eval $ac_try) 2>&5
24488 ac_status=$?
24489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); }; } &&
24491 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24493 (eval $ac_try) 2>&5
24494 ac_status=$?
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); }; }; then
24497 ac_cv_func_gethostbyname=yes
24498else
24499 echo "$as_me: failed program was:" >&5
24500sed 's/^/| /' conftest.$ac_ext >&5
24501
24502ac_cv_func_gethostbyname=no
24503fi
ac1cb8d3
VS
24504rm -f conftest.err conftest.$ac_objext \
24505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24506fi
24507echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24508echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24509
24510 if test $ac_cv_func_gethostbyname = no; then
24511 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24512echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24513if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24514 echo $ECHO_N "(cached) $ECHO_C" >&6
24515else
24516 ac_check_lib_save_LIBS=$LIBS
24517LIBS="-lnsl $LIBS"
24518cat >conftest.$ac_ext <<_ACEOF
24519/* confdefs.h. */
24520_ACEOF
24521cat confdefs.h >>conftest.$ac_ext
24522cat >>conftest.$ac_ext <<_ACEOF
24523/* end confdefs.h. */
24524
24525/* Override any gcc2 internal prototype to avoid an error. */
24526#ifdef __cplusplus
24527extern "C"
24528#endif
24529/* We use char because int might match the return type of a gcc2
24530 builtin and then its argument prototype would still apply. */
24531char gethostbyname ();
24532int
24533main ()
24534{
24535gethostbyname ();
24536 ;
24537 return 0;
24538}
24539_ACEOF
24540rm -f conftest.$ac_objext conftest$ac_exeext
24541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24542 (eval $ac_link) 2>conftest.er1
24543 ac_status=$?
24544 grep -v '^ *+' conftest.er1 >conftest.err
24545 rm -f conftest.er1
24546 cat conftest.err >&5
24547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); } &&
24549 { ac_try='test -z "$ac_c_werror_flag"
24550 || test ! -s conftest.err'
24551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24552 (eval $ac_try) 2>&5
24553 ac_status=$?
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); }; } &&
24556 { ac_try='test -s conftest$ac_exeext'
24557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24558 (eval $ac_try) 2>&5
24559 ac_status=$?
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); }; }; then
24562 ac_cv_lib_nsl_gethostbyname=yes
24563else
24564 echo "$as_me: failed program was:" >&5
24565sed 's/^/| /' conftest.$ac_ext >&5
24566
24567ac_cv_lib_nsl_gethostbyname=no
24568fi
24569rm -f conftest.err conftest.$ac_objext \
24570 conftest$ac_exeext conftest.$ac_ext
24571LIBS=$ac_check_lib_save_LIBS
24572fi
24573echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24574echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24575if test $ac_cv_lib_nsl_gethostbyname = yes; then
24576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24577fi
24578
24579 if test $ac_cv_lib_nsl_gethostbyname = no; then
24580 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24581echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24582if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24583 echo $ECHO_N "(cached) $ECHO_C" >&6
24584else
24585 ac_check_lib_save_LIBS=$LIBS
24586LIBS="-lbsd $LIBS"
24587cat >conftest.$ac_ext <<_ACEOF
24588/* confdefs.h. */
24589_ACEOF
24590cat confdefs.h >>conftest.$ac_ext
24591cat >>conftest.$ac_ext <<_ACEOF
24592/* end confdefs.h. */
24593
24594/* Override any gcc2 internal prototype to avoid an error. */
24595#ifdef __cplusplus
24596extern "C"
24597#endif
24598/* We use char because int might match the return type of a gcc2
24599 builtin and then its argument prototype would still apply. */
24600char gethostbyname ();
24601int
24602main ()
24603{
24604gethostbyname ();
24605 ;
24606 return 0;
24607}
24608_ACEOF
24609rm -f conftest.$ac_objext conftest$ac_exeext
24610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24611 (eval $ac_link) 2>conftest.er1
a848cd7e 24612 ac_status=$?
ac1cb8d3
VS
24613 grep -v '^ *+' conftest.er1 >conftest.err
24614 rm -f conftest.er1
24615 cat conftest.err >&5
a848cd7e
SC
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } &&
ac1cb8d3
VS
24618 { ac_try='test -z "$ac_c_werror_flag"
24619 || test ! -s conftest.err'
a848cd7e
SC
24620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24621 (eval $ac_try) 2>&5
24622 ac_status=$?
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24624 (exit $ac_status); }; } &&
24625 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24627 (eval $ac_try) 2>&5
24628 ac_status=$?
24629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); }; }; then
24631 ac_cv_lib_bsd_gethostbyname=yes
24632else
24633 echo "$as_me: failed program was:" >&5
24634sed 's/^/| /' conftest.$ac_ext >&5
24635
24636ac_cv_lib_bsd_gethostbyname=no
24637fi
ac1cb8d3
VS
24638rm -f conftest.err conftest.$ac_objext \
24639 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24640LIBS=$ac_check_lib_save_LIBS
24641fi
24642echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24643echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24644if test $ac_cv_lib_bsd_gethostbyname = yes; then
24645 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24646fi
24647
24648 fi
24649 fi
24650
24651 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24652 # socket/setsockopt and other routines are undefined under SCO ODT
24653 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24654 # on later versions), says Simon Leinen: it contains gethostby*
24655 # variants that don't use the name server (or something). -lsocket
24656 # must be given before -lnsl if both are needed. We assume that
24657 # if connect needs -lnsl, so does gethostbyname.
24658 echo "$as_me:$LINENO: checking for connect" >&5
24659echo $ECHO_N "checking for connect... $ECHO_C" >&6
24660if test "${ac_cv_func_connect+set}" = set; then
24661 echo $ECHO_N "(cached) $ECHO_C" >&6
24662else
24663 cat >conftest.$ac_ext <<_ACEOF
24664/* confdefs.h. */
24665_ACEOF
24666cat confdefs.h >>conftest.$ac_ext
24667cat >>conftest.$ac_ext <<_ACEOF
24668/* end confdefs.h. */
ac1cb8d3
VS
24669/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24671#define connect innocuous_connect
24672
a848cd7e
SC
24673/* System header to define __stub macros and hopefully few prototypes,
24674 which can conflict with char connect (); below.
24675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24676 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24677
a848cd7e
SC
24678#ifdef __STDC__
24679# include <limits.h>
24680#else
24681# include <assert.h>
24682#endif
ac1cb8d3
VS
24683
24684#undef connect
24685
a848cd7e
SC
24686/* Override any gcc2 internal prototype to avoid an error. */
24687#ifdef __cplusplus
24688extern "C"
24689{
24690#endif
24691/* We use char because int might match the return type of a gcc2
24692 builtin and then its argument prototype would still apply. */
24693char connect ();
24694/* The GNU C library defines this for functions which it implements
24695 to always fail with ENOSYS. Some functions are actually named
24696 something starting with __ and the normal name is an alias. */
24697#if defined (__stub_connect) || defined (__stub___connect)
24698choke me
24699#else
24700char (*f) () = connect;
24701#endif
24702#ifdef __cplusplus
24703}
24704#endif
24705
24706int
24707main ()
24708{
24709return f != connect;
24710 ;
24711 return 0;
24712}
24713_ACEOF
24714rm -f conftest.$ac_objext conftest$ac_exeext
24715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24716 (eval $ac_link) 2>conftest.er1
a848cd7e 24717 ac_status=$?
ac1cb8d3
VS
24718 grep -v '^ *+' conftest.er1 >conftest.err
24719 rm -f conftest.er1
24720 cat conftest.err >&5
a848cd7e
SC
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); } &&
ac1cb8d3
VS
24723 { ac_try='test -z "$ac_c_werror_flag"
24724 || test ! -s conftest.err'
24725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726 (eval $ac_try) 2>&5
24727 ac_status=$?
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); }; } &&
24730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732 (eval $ac_try) 2>&5
24733 ac_status=$?
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; }; then
24736 ac_cv_func_connect=yes
24737else
24738 echo "$as_me: failed program was:" >&5
24739sed 's/^/| /' conftest.$ac_ext >&5
24740
24741ac_cv_func_connect=no
24742fi
ac1cb8d3
VS
24743rm -f conftest.err conftest.$ac_objext \
24744 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24745fi
24746echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24747echo "${ECHO_T}$ac_cv_func_connect" >&6
24748
24749 if test $ac_cv_func_connect = no; then
24750 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24751echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24752if test "${ac_cv_lib_socket_connect+set}" = set; then
24753 echo $ECHO_N "(cached) $ECHO_C" >&6
24754else
24755 ac_check_lib_save_LIBS=$LIBS
24756LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24757cat >conftest.$ac_ext <<_ACEOF
24758/* confdefs.h. */
24759_ACEOF
24760cat confdefs.h >>conftest.$ac_ext
24761cat >>conftest.$ac_ext <<_ACEOF
24762/* end confdefs.h. */
24763
24764/* Override any gcc2 internal prototype to avoid an error. */
24765#ifdef __cplusplus
24766extern "C"
24767#endif
24768/* We use char because int might match the return type of a gcc2
24769 builtin and then its argument prototype would still apply. */
24770char connect ();
24771int
24772main ()
24773{
24774connect ();
24775 ;
24776 return 0;
24777}
24778_ACEOF
24779rm -f conftest.$ac_objext conftest$ac_exeext
24780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24781 (eval $ac_link) 2>conftest.er1
a848cd7e 24782 ac_status=$?
ac1cb8d3
VS
24783 grep -v '^ *+' conftest.er1 >conftest.err
24784 rm -f conftest.er1
24785 cat conftest.err >&5
a848cd7e
SC
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } &&
ac1cb8d3
VS
24788 { ac_try='test -z "$ac_c_werror_flag"
24789 || test ! -s conftest.err'
24790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24791 (eval $ac_try) 2>&5
24792 ac_status=$?
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); }; } &&
24795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24797 (eval $ac_try) 2>&5
24798 ac_status=$?
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; }; then
24801 ac_cv_lib_socket_connect=yes
24802else
24803 echo "$as_me: failed program was:" >&5
24804sed 's/^/| /' conftest.$ac_ext >&5
24805
24806ac_cv_lib_socket_connect=no
24807fi
ac1cb8d3
VS
24808rm -f conftest.err conftest.$ac_objext \
24809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24810LIBS=$ac_check_lib_save_LIBS
24811fi
24812echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24813echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24814if test $ac_cv_lib_socket_connect = yes; then
24815 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24816fi
24817
24818 fi
24819
24820 # Guillermo Gomez says -lposix is necessary on A/UX.
24821 echo "$as_me:$LINENO: checking for remove" >&5
24822echo $ECHO_N "checking for remove... $ECHO_C" >&6
24823if test "${ac_cv_func_remove+set}" = set; then
24824 echo $ECHO_N "(cached) $ECHO_C" >&6
24825else
24826 cat >conftest.$ac_ext <<_ACEOF
24827/* confdefs.h. */
24828_ACEOF
24829cat confdefs.h >>conftest.$ac_ext
24830cat >>conftest.$ac_ext <<_ACEOF
24831/* end confdefs.h. */
ac1cb8d3
VS
24832/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24834#define remove innocuous_remove
24835
a848cd7e
SC
24836/* System header to define __stub macros and hopefully few prototypes,
24837 which can conflict with char remove (); below.
24838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24839 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24840
a848cd7e
SC
24841#ifdef __STDC__
24842# include <limits.h>
24843#else
24844# include <assert.h>
24845#endif
ac1cb8d3
VS
24846
24847#undef remove
24848
a848cd7e
SC
24849/* Override any gcc2 internal prototype to avoid an error. */
24850#ifdef __cplusplus
24851extern "C"
24852{
24853#endif
24854/* We use char because int might match the return type of a gcc2
24855 builtin and then its argument prototype would still apply. */
24856char remove ();
24857/* The GNU C library defines this for functions which it implements
24858 to always fail with ENOSYS. Some functions are actually named
24859 something starting with __ and the normal name is an alias. */
24860#if defined (__stub_remove) || defined (__stub___remove)
24861choke me
24862#else
24863char (*f) () = remove;
24864#endif
24865#ifdef __cplusplus
24866}
24867#endif
24868
24869int
24870main ()
24871{
24872return f != remove;
24873 ;
24874 return 0;
24875}
24876_ACEOF
24877rm -f conftest.$ac_objext conftest$ac_exeext
24878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24879 (eval $ac_link) 2>conftest.er1
a848cd7e 24880 ac_status=$?
ac1cb8d3
VS
24881 grep -v '^ *+' conftest.er1 >conftest.err
24882 rm -f conftest.er1
24883 cat conftest.err >&5
a848cd7e
SC
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); } &&
ac1cb8d3
VS
24886 { ac_try='test -z "$ac_c_werror_flag"
24887 || test ! -s conftest.err'
24888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24889 (eval $ac_try) 2>&5
24890 ac_status=$?
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); }; } &&
24893 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24895 (eval $ac_try) 2>&5
24896 ac_status=$?
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); }; }; then
24899 ac_cv_func_remove=yes
24900else
24901 echo "$as_me: failed program was:" >&5
24902sed 's/^/| /' conftest.$ac_ext >&5
24903
24904ac_cv_func_remove=no
24905fi
ac1cb8d3
VS
24906rm -f conftest.err conftest.$ac_objext \
24907 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24908fi
24909echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24910echo "${ECHO_T}$ac_cv_func_remove" >&6
24911
24912 if test $ac_cv_func_remove = no; then
24913 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24914echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24915if test "${ac_cv_lib_posix_remove+set}" = set; then
24916 echo $ECHO_N "(cached) $ECHO_C" >&6
24917else
24918 ac_check_lib_save_LIBS=$LIBS
24919LIBS="-lposix $LIBS"
24920cat >conftest.$ac_ext <<_ACEOF
24921/* confdefs.h. */
24922_ACEOF
24923cat confdefs.h >>conftest.$ac_ext
24924cat >>conftest.$ac_ext <<_ACEOF
24925/* end confdefs.h. */
24926
24927/* Override any gcc2 internal prototype to avoid an error. */
24928#ifdef __cplusplus
24929extern "C"
24930#endif
24931/* We use char because int might match the return type of a gcc2
24932 builtin and then its argument prototype would still apply. */
24933char remove ();
24934int
24935main ()
24936{
24937remove ();
24938 ;
24939 return 0;
24940}
24941_ACEOF
24942rm -f conftest.$ac_objext conftest$ac_exeext
24943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24944 (eval $ac_link) 2>conftest.er1
a848cd7e 24945 ac_status=$?
ac1cb8d3
VS
24946 grep -v '^ *+' conftest.er1 >conftest.err
24947 rm -f conftest.er1
24948 cat conftest.err >&5
a848cd7e
SC
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } &&
ac1cb8d3
VS
24951 { ac_try='test -z "$ac_c_werror_flag"
24952 || test ! -s conftest.err'
24953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954 (eval $ac_try) 2>&5
24955 ac_status=$?
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }; } &&
24958 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960 (eval $ac_try) 2>&5
24961 ac_status=$?
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); }; }; then
24964 ac_cv_lib_posix_remove=yes
24965else
24966 echo "$as_me: failed program was:" >&5
24967sed 's/^/| /' conftest.$ac_ext >&5
24968
24969ac_cv_lib_posix_remove=no
24970fi
ac1cb8d3
VS
24971rm -f conftest.err conftest.$ac_objext \
24972 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24973LIBS=$ac_check_lib_save_LIBS
24974fi
24975echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24976echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24977if test $ac_cv_lib_posix_remove = yes; then
24978 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24979fi
24980
24981 fi
24982
24983 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24984 echo "$as_me:$LINENO: checking for shmat" >&5
24985echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24986if test "${ac_cv_func_shmat+set}" = set; then
24987 echo $ECHO_N "(cached) $ECHO_C" >&6
24988else
24989 cat >conftest.$ac_ext <<_ACEOF
24990/* confdefs.h. */
24991_ACEOF
24992cat confdefs.h >>conftest.$ac_ext
24993cat >>conftest.$ac_ext <<_ACEOF
24994/* end confdefs.h. */
ac1cb8d3
VS
24995/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24997#define shmat innocuous_shmat
24998
a848cd7e
SC
24999/* System header to define __stub macros and hopefully few prototypes,
25000 which can conflict with char shmat (); below.
25001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25002 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25003
a848cd7e
SC
25004#ifdef __STDC__
25005# include <limits.h>
25006#else
25007# include <assert.h>
25008#endif
ac1cb8d3
VS
25009
25010#undef shmat
25011
a848cd7e
SC
25012/* Override any gcc2 internal prototype to avoid an error. */
25013#ifdef __cplusplus
25014extern "C"
25015{
25016#endif
25017/* We use char because int might match the return type of a gcc2
25018 builtin and then its argument prototype would still apply. */
25019char shmat ();
25020/* The GNU C library defines this for functions which it implements
25021 to always fail with ENOSYS. Some functions are actually named
25022 something starting with __ and the normal name is an alias. */
25023#if defined (__stub_shmat) || defined (__stub___shmat)
25024choke me
25025#else
25026char (*f) () = shmat;
25027#endif
25028#ifdef __cplusplus
25029}
25030#endif
25031
25032int
25033main ()
25034{
25035return f != shmat;
25036 ;
25037 return 0;
25038}
25039_ACEOF
25040rm -f conftest.$ac_objext conftest$ac_exeext
25041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25042 (eval $ac_link) 2>conftest.er1
a848cd7e 25043 ac_status=$?
ac1cb8d3
VS
25044 grep -v '^ *+' conftest.er1 >conftest.err
25045 rm -f conftest.er1
25046 cat conftest.err >&5
a848cd7e
SC
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); } &&
ac1cb8d3
VS
25049 { ac_try='test -z "$ac_c_werror_flag"
25050 || test ! -s conftest.err'
25051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25052 (eval $ac_try) 2>&5
25053 ac_status=$?
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); }; } &&
25056 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058 (eval $ac_try) 2>&5
25059 ac_status=$?
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); }; }; then
25062 ac_cv_func_shmat=yes
25063else
25064 echo "$as_me: failed program was:" >&5
25065sed 's/^/| /' conftest.$ac_ext >&5
25066
25067ac_cv_func_shmat=no
25068fi
ac1cb8d3
VS
25069rm -f conftest.err conftest.$ac_objext \
25070 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25071fi
25072echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25073echo "${ECHO_T}$ac_cv_func_shmat" >&6
25074
25075 if test $ac_cv_func_shmat = no; then
25076 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25077echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25078if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25079 echo $ECHO_N "(cached) $ECHO_C" >&6
25080else
25081 ac_check_lib_save_LIBS=$LIBS
25082LIBS="-lipc $LIBS"
25083cat >conftest.$ac_ext <<_ACEOF
25084/* confdefs.h. */
25085_ACEOF
25086cat confdefs.h >>conftest.$ac_ext
25087cat >>conftest.$ac_ext <<_ACEOF
25088/* end confdefs.h. */
25089
25090/* Override any gcc2 internal prototype to avoid an error. */
25091#ifdef __cplusplus
25092extern "C"
25093#endif
25094/* We use char because int might match the return type of a gcc2
25095 builtin and then its argument prototype would still apply. */
25096char shmat ();
25097int
25098main ()
25099{
25100shmat ();
25101 ;
25102 return 0;
25103}
25104_ACEOF
25105rm -f conftest.$ac_objext conftest$ac_exeext
25106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25107 (eval $ac_link) 2>conftest.er1
a848cd7e 25108 ac_status=$?
ac1cb8d3
VS
25109 grep -v '^ *+' conftest.er1 >conftest.err
25110 rm -f conftest.er1
25111 cat conftest.err >&5
a848cd7e
SC
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } &&
ac1cb8d3
VS
25114 { ac_try='test -z "$ac_c_werror_flag"
25115 || test ! -s conftest.err'
25116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25117 (eval $ac_try) 2>&5
25118 ac_status=$?
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); }; } &&
25121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25123 (eval $ac_try) 2>&5
25124 ac_status=$?
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); }; }; then
25127 ac_cv_lib_ipc_shmat=yes
25128else
25129 echo "$as_me: failed program was:" >&5
25130sed 's/^/| /' conftest.$ac_ext >&5
25131
25132ac_cv_lib_ipc_shmat=no
25133fi
ac1cb8d3
VS
25134rm -f conftest.err conftest.$ac_objext \
25135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25136LIBS=$ac_check_lib_save_LIBS
25137fi
25138echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25139echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25140if test $ac_cv_lib_ipc_shmat = yes; then
25141 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25142fi
25143
25144 fi
25145 fi
25146
25147 # Check for libraries that X11R6 Xt/Xaw programs need.
25148 ac_save_LDFLAGS=$LDFLAGS
25149 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25150 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25151 # check for ICE first), but we must link in the order -lSM -lICE or
25152 # we get undefined symbols. So assume we have SM if we have ICE.
25153 # These have to be linked with before -lX11, unlike the other
25154 # libraries we check for below, so use a different variable.
25155 # John Interrante, Karl Berry
25156 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25157echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25158if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25159 echo $ECHO_N "(cached) $ECHO_C" >&6
25160else
25161 ac_check_lib_save_LIBS=$LIBS
25162LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25163cat >conftest.$ac_ext <<_ACEOF
25164/* confdefs.h. */
25165_ACEOF
25166cat confdefs.h >>conftest.$ac_ext
25167cat >>conftest.$ac_ext <<_ACEOF
25168/* end confdefs.h. */
25169
25170/* Override any gcc2 internal prototype to avoid an error. */
25171#ifdef __cplusplus
25172extern "C"
25173#endif
25174/* We use char because int might match the return type of a gcc2
25175 builtin and then its argument prototype would still apply. */
25176char IceConnectionNumber ();
25177int
25178main ()
25179{
25180IceConnectionNumber ();
25181 ;
25182 return 0;
25183}
25184_ACEOF
25185rm -f conftest.$ac_objext conftest$ac_exeext
25186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25187 (eval $ac_link) 2>conftest.er1
a848cd7e 25188 ac_status=$?
ac1cb8d3
VS
25189 grep -v '^ *+' conftest.er1 >conftest.err
25190 rm -f conftest.er1
25191 cat conftest.err >&5
a848cd7e
SC
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); } &&
ac1cb8d3
VS
25194 { ac_try='test -z "$ac_c_werror_flag"
25195 || test ! -s conftest.err'
25196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25197 (eval $ac_try) 2>&5
25198 ac_status=$?
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); }; } &&
25201 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25204 ac_status=$?
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; }; then
25207 ac_cv_lib_ICE_IceConnectionNumber=yes
25208else
25209 echo "$as_me: failed program was:" >&5
25210sed 's/^/| /' conftest.$ac_ext >&5
25211
25212ac_cv_lib_ICE_IceConnectionNumber=no
25213fi
ac1cb8d3
VS
25214rm -f conftest.err conftest.$ac_objext \
25215 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25216LIBS=$ac_check_lib_save_LIBS
25217fi
25218echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25219echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25220if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25221 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25222fi
25223
25224 LDFLAGS=$ac_save_LDFLAGS
25225
25226fi
25227
25228
25229 if test "$no_x" = "yes"; then
25230 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25231echo "$as_me: error: X11 not found" >&2;}
25232 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25233 fi
25234
25235 GUI_TK_LIBRARY="$X_LIBS"
25236 TOOLKIT_INCLUDE="$X_CFLAGS"
25237 AFMINSTALL=afminstall
25238 COMPILED_X_PROGRAM=0
25239
25240 if test "$wxUSE_NANOX" = "yes"; then
25241 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25242echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25243 if test "x$MICROWIN" = x ; then
25244 echo "$as_me:$LINENO: result: not found" >&5
25245echo "${ECHO_T}not found" >&6
25246 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25247echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25248 { (exit 1); exit 1; }; }
25249 else
25250 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25251echo "${ECHO_T}$MICROWIN" >&6
25252 cat >>confdefs.h <<\_ACEOF
25253#define wxUSE_NANOX 1
25254_ACEOF
25255
25256 fi
25257 fi
25258
25259 if test "$wxUSE_UNICODE" = "yes"; then
25260
25261 succeeded=no
25262
25263 if test -z "$PKG_CONFIG"; then
25264 # Extract the first word of "pkg-config", so it can be a program name with args.
25265set dummy pkg-config; ac_word=$2
25266echo "$as_me:$LINENO: checking for $ac_word" >&5
25267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25268if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25270else
25271 case $PKG_CONFIG in
25272 [\\/]* | ?:[\\/]*)
25273 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25274 ;;
25275 *)
25276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25277for as_dir in $PATH
25278do
25279 IFS=$as_save_IFS
25280 test -z "$as_dir" && as_dir=.
25281 for ac_exec_ext in '' $ac_executable_extensions; do
25282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25283 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25285 break 2
25286 fi
25287done
25288done
25289
25290 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25291 ;;
25292esac
25293fi
25294PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25295
25296if test -n "$PKG_CONFIG"; then
25297 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25298echo "${ECHO_T}$PKG_CONFIG" >&6
25299else
25300 echo "$as_me:$LINENO: result: no" >&5
25301echo "${ECHO_T}no" >&6
25302fi
25303
25304 fi
25305
25306 if test "$PKG_CONFIG" = "no" ; then
25307 echo "*** The pkg-config script could not be found. Make sure it is"
25308 echo "*** in your path, or set the PKG_CONFIG environment variable"
25309 echo "*** to the full path to pkg-config."
25310 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25311 else
25312 PKG_CONFIG_MIN_VERSION=0.9.0
25313 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25314 echo "$as_me:$LINENO: checking for pangox" >&5
25315echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25316
25317 if $PKG_CONFIG --exists "pangox" ; then
25318 echo "$as_me:$LINENO: result: yes" >&5
25319echo "${ECHO_T}yes" >&6
25320 succeeded=yes
25321
25322 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25323echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25324 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25325 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25326echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25327
25328 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25329echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25330 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25331 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25332echo "${ECHO_T}$PANGOX_LIBS" >&6
25333 else
25334 PANGOX_CFLAGS=""
25335 PANGOX_LIBS=""
25336 ## If we have a custom action on failure, don't print errors, but
25337 ## do set a variable so people can do so.
25338 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25339
25340 fi
25341
25342
25343
25344 else
25345 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25346 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25347 fi
25348 fi
25349
25350 if test $succeeded = yes; then
25351
25352 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25353 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25354
25355 else
25356
25357 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25358echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25359 { (exit 1); exit 1; }; }
25360
25361
25362 fi
25363
25364
25365 succeeded=no
25366
25367 if test -z "$PKG_CONFIG"; then
25368 # Extract the first word of "pkg-config", so it can be a program name with args.
25369set dummy pkg-config; ac_word=$2
25370echo "$as_me:$LINENO: checking for $ac_word" >&5
25371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25372if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25373 echo $ECHO_N "(cached) $ECHO_C" >&6
25374else
25375 case $PKG_CONFIG in
25376 [\\/]* | ?:[\\/]*)
25377 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25378 ;;
25379 *)
25380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25381for as_dir in $PATH
25382do
25383 IFS=$as_save_IFS
25384 test -z "$as_dir" && as_dir=.
25385 for ac_exec_ext in '' $ac_executable_extensions; do
25386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25387 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25389 break 2
25390 fi
25391done
25392done
25393
25394 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25395 ;;
25396esac
25397fi
25398PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25399
25400if test -n "$PKG_CONFIG"; then
25401 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25402echo "${ECHO_T}$PKG_CONFIG" >&6
25403else
25404 echo "$as_me:$LINENO: result: no" >&5
25405echo "${ECHO_T}no" >&6
25406fi
25407
25408 fi
25409
25410 if test "$PKG_CONFIG" = "no" ; then
25411 echo "*** The pkg-config script could not be found. Make sure it is"
25412 echo "*** in your path, or set the PKG_CONFIG environment variable"
25413 echo "*** to the full path to pkg-config."
25414 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25415 else
25416 PKG_CONFIG_MIN_VERSION=0.9.0
25417 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25418 echo "$as_me:$LINENO: checking for pangoft2" >&5
25419echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25420
25421 if $PKG_CONFIG --exists "pangoft2" ; then
25422 echo "$as_me:$LINENO: result: yes" >&5
25423echo "${ECHO_T}yes" >&6
25424 succeeded=yes
25425
25426 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25427echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25428 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25429 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25430echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25431
25432 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25433echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25434 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25435 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25436echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25437 else
25438 PANGOFT2_CFLAGS=""
25439 PANGOFT2_LIBS=""
25440 ## If we have a custom action on failure, don't print errors, but
25441 ## do set a variable so people can do so.
25442 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25443
25444 fi
25445
25446
25447
25448 else
25449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25451 fi
25452 fi
25453
25454 if test $succeeded = yes; then
25455
25456 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25457 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25458
25459 else
25460
25461 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25462echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25463 wxUSE_PRINTING_ARCHITECTURE="no"
25464
25465
25466 fi
25467
25468
25469 succeeded=no
25470
25471 if test -z "$PKG_CONFIG"; then
25472 # Extract the first word of "pkg-config", so it can be a program name with args.
25473set dummy pkg-config; ac_word=$2
25474echo "$as_me:$LINENO: checking for $ac_word" >&5
25475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25476if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25477 echo $ECHO_N "(cached) $ECHO_C" >&6
25478else
25479 case $PKG_CONFIG in
25480 [\\/]* | ?:[\\/]*)
25481 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25482 ;;
25483 *)
25484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25485for as_dir in $PATH
25486do
25487 IFS=$as_save_IFS
25488 test -z "$as_dir" && as_dir=.
25489 for ac_exec_ext in '' $ac_executable_extensions; do
25490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25491 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25493 break 2
25494 fi
25495done
25496done
25497
25498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25499 ;;
25500esac
25501fi
25502PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25503
25504if test -n "$PKG_CONFIG"; then
25505 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25506echo "${ECHO_T}$PKG_CONFIG" >&6
25507else
25508 echo "$as_me:$LINENO: result: no" >&5
25509echo "${ECHO_T}no" >&6
25510fi
25511
25512 fi
25513
25514 if test "$PKG_CONFIG" = "no" ; then
25515 echo "*** The pkg-config script could not be found. Make sure it is"
25516 echo "*** in your path, or set the PKG_CONFIG environment variable"
25517 echo "*** to the full path to pkg-config."
25518 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25519 else
25520 PKG_CONFIG_MIN_VERSION=0.9.0
25521 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25522 echo "$as_me:$LINENO: checking for pangoxft" >&5
25523echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25524
25525 if $PKG_CONFIG --exists "pangoxft" ; then
25526 echo "$as_me:$LINENO: result: yes" >&5
25527echo "${ECHO_T}yes" >&6
25528 succeeded=yes
25529
25530 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25531echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25532 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25533 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25534echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25535
25536 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25537echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25538 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25539 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25540echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25541 else
25542 PANGOXFT_CFLAGS=""
25543 PANGOXFT_LIBS=""
25544 ## If we have a custom action on failure, don't print errors, but
25545 ## do set a variable so people can do so.
25546 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25547
25548 fi
25549
25550
25551
25552 else
25553 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25554 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25555 fi
25556 fi
25557
25558 if test $succeeded = yes; then
25559
25560 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25561 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25562
25563 else
25564
25565 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25566echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25567
25568
25569 fi
25570
304205f1
VS
25571 save_CFLAGS="$CFLAGS"
25572 save_LIBS="$LIBS"
25573 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25574 LIBS="$LIBS $PANGOX_LIBS"
25575
25576for ac_func in pango_font_family_is_monospace
25577do
25578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25579echo "$as_me:$LINENO: checking for $ac_func" >&5
25580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25581if eval "test \"\${$as_ac_var+set}\" = set"; then
25582 echo $ECHO_N "(cached) $ECHO_C" >&6
25583else
25584 cat >conftest.$ac_ext <<_ACEOF
25585/* confdefs.h. */
25586_ACEOF
25587cat confdefs.h >>conftest.$ac_ext
25588cat >>conftest.$ac_ext <<_ACEOF
25589/* end confdefs.h. */
25590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25592#define $ac_func innocuous_$ac_func
25593
25594/* System header to define __stub macros and hopefully few prototypes,
25595 which can conflict with char $ac_func (); below.
25596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25597 <limits.h> exists even on freestanding compilers. */
25598
25599#ifdef __STDC__
25600# include <limits.h>
25601#else
25602# include <assert.h>
25603#endif
25604
25605#undef $ac_func
25606
25607/* Override any gcc2 internal prototype to avoid an error. */
25608#ifdef __cplusplus
25609extern "C"
25610{
25611#endif
25612/* We use char because int might match the return type of a gcc2
25613 builtin and then its argument prototype would still apply. */
25614char $ac_func ();
25615/* The GNU C library defines this for functions which it implements
25616 to always fail with ENOSYS. Some functions are actually named
25617 something starting with __ and the normal name is an alias. */
25618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25619choke me
25620#else
25621char (*f) () = $ac_func;
25622#endif
25623#ifdef __cplusplus
25624}
25625#endif
25626
25627int
25628main ()
25629{
25630return f != $ac_func;
25631 ;
25632 return 0;
25633}
25634_ACEOF
25635rm -f conftest.$ac_objext conftest$ac_exeext
25636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25637 (eval $ac_link) 2>conftest.er1
25638 ac_status=$?
25639 grep -v '^ *+' conftest.er1 >conftest.err
25640 rm -f conftest.er1
25641 cat conftest.err >&5
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); } &&
25644 { ac_try='test -z "$ac_c_werror_flag"
25645 || test ! -s conftest.err'
25646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647 (eval $ac_try) 2>&5
25648 ac_status=$?
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); }; } &&
25651 { ac_try='test -s conftest$ac_exeext'
25652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25653 (eval $ac_try) 2>&5
25654 ac_status=$?
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); }; }; then
25657 eval "$as_ac_var=yes"
25658else
25659 echo "$as_me: failed program was:" >&5
25660sed 's/^/| /' conftest.$ac_ext >&5
25661
25662eval "$as_ac_var=no"
25663fi
25664rm -f conftest.err conftest.$ac_objext \
25665 conftest$ac_exeext conftest.$ac_ext
25666fi
25667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25668echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25669if test `eval echo '${'$as_ac_var'}'` = yes; then
25670 cat >>confdefs.h <<_ACEOF
25671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25672_ACEOF
25673
25674fi
25675done
25676
25677 CFLAGS="$save_CFLAGS"
25678 LIBS="$save_LIBS"
a848cd7e
SC
25679 fi
25680
25681 wxUSE_UNIVERSAL="yes"
25682
25683 if test "$wxUSE_NANOX" = "yes"; then
25684 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25685 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"
25686 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25687 else
25688 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25689 fi
25690
25691 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25692 TOOLKIT=X11
25693 GUIDIST=X11_DIST
25694 fi
25695
25696 if test "$wxUSE_MOTIF" = 1; then
25697 if test "$no_x" = yes; then
25698 # Not all programs may use this symbol, but it does not hurt to define it.
25699
25700cat >>confdefs.h <<\_ACEOF
25701#define X_DISPLAY_MISSING 1
25702_ACEOF
25703
25704 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25705else
25706 if test -n "$x_includes"; then
25707 X_CFLAGS="$X_CFLAGS -I$x_includes"
25708 fi
25709
25710 # It would also be nice to do this for all -L options, not just this one.
25711 if test -n "$x_libraries"; then
25712 X_LIBS="$X_LIBS -L$x_libraries"
25713 # For Solaris; some versions of Sun CC require a space after -R and
25714 # others require no space. Words are not sufficient . . . .
25715 case `(uname -sr) 2>/dev/null` in
25716 "SunOS 5"*)
25717 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25718echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25719 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25720 cat >conftest.$ac_ext <<_ACEOF
25721/* confdefs.h. */
25722_ACEOF
25723cat confdefs.h >>conftest.$ac_ext
25724cat >>conftest.$ac_ext <<_ACEOF
25725/* end confdefs.h. */
25726
25727int
25728main ()
25729{
25730
25731 ;
25732 return 0;
25733}
25734_ACEOF
25735rm -f conftest.$ac_objext conftest$ac_exeext
25736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25737 (eval $ac_link) 2>conftest.er1
a848cd7e 25738 ac_status=$?
ac1cb8d3
VS
25739 grep -v '^ *+' conftest.er1 >conftest.err
25740 rm -f conftest.er1
25741 cat conftest.err >&5
a848cd7e
SC
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } &&
ac1cb8d3
VS
25744 { ac_try='test -z "$ac_c_werror_flag"
25745 || test ! -s conftest.err'
25746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25747 (eval $ac_try) 2>&5
25748 ac_status=$?
25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); }; } &&
25751 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25753 (eval $ac_try) 2>&5
25754 ac_status=$?
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); }; }; then
25757 ac_R_nospace=yes
25758else
25759 echo "$as_me: failed program was:" >&5
25760sed 's/^/| /' conftest.$ac_ext >&5
25761
25762ac_R_nospace=no
25763fi
ac1cb8d3
VS
25764rm -f conftest.err conftest.$ac_objext \
25765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25766 if test $ac_R_nospace = yes; then
25767 echo "$as_me:$LINENO: result: no" >&5
25768echo "${ECHO_T}no" >&6
25769 X_LIBS="$X_LIBS -R$x_libraries"
25770 else
25771 LIBS="$ac_xsave_LIBS -R $x_libraries"
25772 cat >conftest.$ac_ext <<_ACEOF
25773/* confdefs.h. */
25774_ACEOF
25775cat confdefs.h >>conftest.$ac_ext
25776cat >>conftest.$ac_ext <<_ACEOF
25777/* end confdefs.h. */
25778
25779int
25780main ()
25781{
25782
25783 ;
25784 return 0;
25785}
25786_ACEOF
25787rm -f conftest.$ac_objext conftest$ac_exeext
25788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25789 (eval $ac_link) 2>conftest.er1
a848cd7e 25790 ac_status=$?
ac1cb8d3
VS
25791 grep -v '^ *+' conftest.er1 >conftest.err
25792 rm -f conftest.er1
25793 cat conftest.err >&5
a848cd7e
SC
25794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795 (exit $ac_status); } &&
ac1cb8d3
VS
25796 { ac_try='test -z "$ac_c_werror_flag"
25797 || test ! -s conftest.err'
25798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25799 (eval $ac_try) 2>&5
25800 ac_status=$?
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); }; } &&
25803 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25805 (eval $ac_try) 2>&5
25806 ac_status=$?
25807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808 (exit $ac_status); }; }; then
25809 ac_R_space=yes
25810else
25811 echo "$as_me: failed program was:" >&5
25812sed 's/^/| /' conftest.$ac_ext >&5
25813
25814ac_R_space=no
25815fi
ac1cb8d3
VS
25816rm -f conftest.err conftest.$ac_objext \
25817 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25818 if test $ac_R_space = yes; then
25819 echo "$as_me:$LINENO: result: yes" >&5
25820echo "${ECHO_T}yes" >&6
25821 X_LIBS="$X_LIBS -R $x_libraries"
25822 else
25823 echo "$as_me:$LINENO: result: neither works" >&5
25824echo "${ECHO_T}neither works" >&6
25825 fi
25826 fi
25827 LIBS=$ac_xsave_LIBS
25828 esac
25829 fi
25830
25831 # Check for system-dependent libraries X programs must link with.
25832 # Do this before checking for the system-independent R6 libraries
25833 # (-lICE), since we may need -lsocket or whatever for X linking.
25834
25835 if test "$ISC" = yes; then
25836 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25837 else
25838 # Martyn Johnson says this is needed for Ultrix, if the X
25839 # libraries were built with DECnet support. And Karl Berry says
25840 # the Alpha needs dnet_stub (dnet does not exist).
25841 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25842 cat >conftest.$ac_ext <<_ACEOF
25843/* confdefs.h. */
25844_ACEOF
25845cat confdefs.h >>conftest.$ac_ext
25846cat >>conftest.$ac_ext <<_ACEOF
25847/* end confdefs.h. */
25848
25849/* Override any gcc2 internal prototype to avoid an error. */
25850#ifdef __cplusplus
25851extern "C"
25852#endif
25853/* We use char because int might match the return type of a gcc2
25854 builtin and then its argument prototype would still apply. */
25855char XOpenDisplay ();
25856int
25857main ()
25858{
25859XOpenDisplay ();
25860 ;
25861 return 0;
25862}
25863_ACEOF
25864rm -f conftest.$ac_objext conftest$ac_exeext
25865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25866 (eval $ac_link) 2>conftest.er1
a848cd7e 25867 ac_status=$?
ac1cb8d3
VS
25868 grep -v '^ *+' conftest.er1 >conftest.err
25869 rm -f conftest.er1
25870 cat conftest.err >&5
a848cd7e
SC
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); } &&
ac1cb8d3
VS
25873 { ac_try='test -z "$ac_c_werror_flag"
25874 || test ! -s conftest.err'
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25877 ac_status=$?
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; } &&
25880 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25882 (eval $ac_try) 2>&5
25883 ac_status=$?
25884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); }; }; then
25886 :
25887else
25888 echo "$as_me: failed program was:" >&5
25889sed 's/^/| /' conftest.$ac_ext >&5
25890
25891echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25892echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25893if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25894 echo $ECHO_N "(cached) $ECHO_C" >&6
25895else
25896 ac_check_lib_save_LIBS=$LIBS
25897LIBS="-ldnet $LIBS"
25898cat >conftest.$ac_ext <<_ACEOF
25899/* confdefs.h. */
25900_ACEOF
25901cat confdefs.h >>conftest.$ac_ext
25902cat >>conftest.$ac_ext <<_ACEOF
25903/* end confdefs.h. */
25904
25905/* Override any gcc2 internal prototype to avoid an error. */
25906#ifdef __cplusplus
25907extern "C"
25908#endif
25909/* We use char because int might match the return type of a gcc2
25910 builtin and then its argument prototype would still apply. */
25911char dnet_ntoa ();
25912int
25913main ()
25914{
25915dnet_ntoa ();
25916 ;
25917 return 0;
25918}
25919_ACEOF
25920rm -f conftest.$ac_objext conftest$ac_exeext
25921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25922 (eval $ac_link) 2>conftest.er1
a848cd7e 25923 ac_status=$?
ac1cb8d3
VS
25924 grep -v '^ *+' conftest.er1 >conftest.err
25925 rm -f conftest.er1
25926 cat conftest.err >&5
a848cd7e
SC
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); } &&
ac1cb8d3
VS
25929 { ac_try='test -z "$ac_c_werror_flag"
25930 || test ! -s conftest.err'
25931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25932 (eval $ac_try) 2>&5
25933 ac_status=$?
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); }; } &&
25936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25938 (eval $ac_try) 2>&5
25939 ac_status=$?
25940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941 (exit $ac_status); }; }; then
25942 ac_cv_lib_dnet_dnet_ntoa=yes
25943else
25944 echo "$as_me: failed program was:" >&5
25945sed 's/^/| /' conftest.$ac_ext >&5
25946
25947ac_cv_lib_dnet_dnet_ntoa=no
25948fi
ac1cb8d3
VS
25949rm -f conftest.err conftest.$ac_objext \
25950 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25951LIBS=$ac_check_lib_save_LIBS
25952fi
25953echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25954echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25955if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25956 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25957fi
25958
25959 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25960 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25961echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25962if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25963 echo $ECHO_N "(cached) $ECHO_C" >&6
25964else
25965 ac_check_lib_save_LIBS=$LIBS
25966LIBS="-ldnet_stub $LIBS"
25967cat >conftest.$ac_ext <<_ACEOF
25968/* confdefs.h. */
25969_ACEOF
25970cat confdefs.h >>conftest.$ac_ext
25971cat >>conftest.$ac_ext <<_ACEOF
25972/* end confdefs.h. */
25973
25974/* Override any gcc2 internal prototype to avoid an error. */
25975#ifdef __cplusplus
25976extern "C"
25977#endif
25978/* We use char because int might match the return type of a gcc2
25979 builtin and then its argument prototype would still apply. */
25980char dnet_ntoa ();
25981int
25982main ()
25983{
25984dnet_ntoa ();
25985 ;
25986 return 0;
25987}
25988_ACEOF
25989rm -f conftest.$ac_objext conftest$ac_exeext
25990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25991 (eval $ac_link) 2>conftest.er1
a848cd7e 25992 ac_status=$?
ac1cb8d3
VS
25993 grep -v '^ *+' conftest.er1 >conftest.err
25994 rm -f conftest.er1
25995 cat conftest.err >&5
a848cd7e
SC
25996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997 (exit $ac_status); } &&
ac1cb8d3
VS
25998 { ac_try='test -z "$ac_c_werror_flag"
25999 || test ! -s conftest.err'
26000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26001 (eval $ac_try) 2>&5
26002 ac_status=$?
26003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004 (exit $ac_status); }; } &&
26005 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26007 (eval $ac_try) 2>&5
26008 ac_status=$?
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); }; }; then
26011 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26012else
26013 echo "$as_me: failed program was:" >&5
26014sed 's/^/| /' conftest.$ac_ext >&5
26015
26016ac_cv_lib_dnet_stub_dnet_ntoa=no
26017fi
ac1cb8d3
VS
26018rm -f conftest.err conftest.$ac_objext \
26019 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26020LIBS=$ac_check_lib_save_LIBS
26021fi
26022echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26023echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26024if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26025 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26026fi
26027
26028 fi
26029fi
ac1cb8d3
VS
26030rm -f conftest.err conftest.$ac_objext \
26031 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26032 LIBS="$ac_xsave_LIBS"
26033
26034 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26035 # to get the SysV transport functions.
26036 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26037 # needs -lnsl.
26038 # The nsl library prevents programs from opening the X display
26039 # on Irix 5.2, according to T.E. Dickey.
26040 # The functions gethostbyname, getservbyname, and inet_addr are
26041 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26042 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26043echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26044if test "${ac_cv_func_gethostbyname+set}" = set; then
26045 echo $ECHO_N "(cached) $ECHO_C" >&6
26046else
26047 cat >conftest.$ac_ext <<_ACEOF
26048/* confdefs.h. */
26049_ACEOF
26050cat confdefs.h >>conftest.$ac_ext
26051cat >>conftest.$ac_ext <<_ACEOF
26052/* end confdefs.h. */
ac1cb8d3
VS
26053/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26055#define gethostbyname innocuous_gethostbyname
26056
a848cd7e
SC
26057/* System header to define __stub macros and hopefully few prototypes,
26058 which can conflict with char gethostbyname (); below.
26059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26060 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26061
a848cd7e
SC
26062#ifdef __STDC__
26063# include <limits.h>
26064#else
26065# include <assert.h>
26066#endif
ac1cb8d3
VS
26067
26068#undef gethostbyname
26069
a848cd7e
SC
26070/* Override any gcc2 internal prototype to avoid an error. */
26071#ifdef __cplusplus
26072extern "C"
26073{
26074#endif
26075/* We use char because int might match the return type of a gcc2
26076 builtin and then its argument prototype would still apply. */
26077char gethostbyname ();
26078/* The GNU C library defines this for functions which it implements
26079 to always fail with ENOSYS. Some functions are actually named
26080 something starting with __ and the normal name is an alias. */
26081#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26082choke me
26083#else
26084char (*f) () = gethostbyname;
26085#endif
26086#ifdef __cplusplus
26087}
26088#endif
26089
26090int
26091main ()
26092{
26093return f != gethostbyname;
26094 ;
26095 return 0;
26096}
26097_ACEOF
26098rm -f conftest.$ac_objext conftest$ac_exeext
26099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26100 (eval $ac_link) 2>conftest.er1
a848cd7e 26101 ac_status=$?
ac1cb8d3
VS
26102 grep -v '^ *+' conftest.er1 >conftest.err
26103 rm -f conftest.er1
26104 cat conftest.err >&5
a848cd7e
SC
26105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); } &&
ac1cb8d3
VS
26107 { ac_try='test -z "$ac_c_werror_flag"
26108 || test ! -s conftest.err'
26109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26110 (eval $ac_try) 2>&5
26111 ac_status=$?
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); }; } &&
26114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116 (eval $ac_try) 2>&5
26117 ac_status=$?
26118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119 (exit $ac_status); }; }; then
26120 ac_cv_func_gethostbyname=yes
26121else
26122 echo "$as_me: failed program was:" >&5
26123sed 's/^/| /' conftest.$ac_ext >&5
26124
26125ac_cv_func_gethostbyname=no
26126fi
ac1cb8d3
VS
26127rm -f conftest.err conftest.$ac_objext \
26128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26129fi
26130echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26131echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26132
26133 if test $ac_cv_func_gethostbyname = no; then
26134 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26135echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26136if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26137 echo $ECHO_N "(cached) $ECHO_C" >&6
26138else
26139 ac_check_lib_save_LIBS=$LIBS
26140LIBS="-lnsl $LIBS"
26141cat >conftest.$ac_ext <<_ACEOF
26142/* confdefs.h. */
26143_ACEOF
26144cat confdefs.h >>conftest.$ac_ext
26145cat >>conftest.$ac_ext <<_ACEOF
26146/* end confdefs.h. */
26147
26148/* Override any gcc2 internal prototype to avoid an error. */
26149#ifdef __cplusplus
26150extern "C"
26151#endif
26152/* We use char because int might match the return type of a gcc2
26153 builtin and then its argument prototype would still apply. */
26154char gethostbyname ();
26155int
26156main ()
26157{
26158gethostbyname ();
26159 ;
26160 return 0;
26161}
26162_ACEOF
26163rm -f conftest.$ac_objext conftest$ac_exeext
26164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26165 (eval $ac_link) 2>conftest.er1
a848cd7e 26166 ac_status=$?
ac1cb8d3
VS
26167 grep -v '^ *+' conftest.er1 >conftest.err
26168 rm -f conftest.er1
26169 cat conftest.err >&5
a848cd7e
SC
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); } &&
ac1cb8d3
VS
26172 { ac_try='test -z "$ac_c_werror_flag"
26173 || test ! -s conftest.err'
26174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175 (eval $ac_try) 2>&5
26176 ac_status=$?
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); }; } &&
26179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181 (eval $ac_try) 2>&5
26182 ac_status=$?
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; }; then
26185 ac_cv_lib_nsl_gethostbyname=yes
26186else
26187 echo "$as_me: failed program was:" >&5
26188sed 's/^/| /' conftest.$ac_ext >&5
26189
26190ac_cv_lib_nsl_gethostbyname=no
26191fi
ac1cb8d3
VS
26192rm -f conftest.err conftest.$ac_objext \
26193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26194LIBS=$ac_check_lib_save_LIBS
26195fi
26196echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26197echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26198if test $ac_cv_lib_nsl_gethostbyname = yes; then
26199 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26200fi
26201
26202 if test $ac_cv_lib_nsl_gethostbyname = no; then
ac1cb8d3 26203 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
a848cd7e
SC
26204echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26205if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26206 echo $ECHO_N "(cached) $ECHO_C" >&6
26207else
26208 ac_check_lib_save_LIBS=$LIBS
26209LIBS="-lbsd $LIBS"
26210cat >conftest.$ac_ext <<_ACEOF
26211/* confdefs.h. */
26212_ACEOF
26213cat confdefs.h >>conftest.$ac_ext
26214cat >>conftest.$ac_ext <<_ACEOF
26215/* end confdefs.h. */
26216
26217/* Override any gcc2 internal prototype to avoid an error. */
26218#ifdef __cplusplus
26219extern "C"
26220#endif
26221/* We use char because int might match the return type of a gcc2
26222 builtin and then its argument prototype would still apply. */
26223char gethostbyname ();
26224int
26225main ()
26226{
26227gethostbyname ();
26228 ;
26229 return 0;
26230}
26231_ACEOF
26232rm -f conftest.$ac_objext conftest$ac_exeext
26233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26234 (eval $ac_link) 2>conftest.er1
a848cd7e 26235 ac_status=$?
ac1cb8d3
VS
26236 grep -v '^ *+' conftest.er1 >conftest.err
26237 rm -f conftest.er1
26238 cat conftest.err >&5
a848cd7e
SC
26239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240 (exit $ac_status); } &&
ac1cb8d3
VS
26241 { ac_try='test -z "$ac_c_werror_flag"
26242 || test ! -s conftest.err'
26243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26244 (eval $ac_try) 2>&5
26245 ac_status=$?
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); }; } &&
26248 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250 (eval $ac_try) 2>&5
26251 ac_status=$?
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); }; }; then
26254 ac_cv_lib_bsd_gethostbyname=yes
26255else
26256 echo "$as_me: failed program was:" >&5
26257sed 's/^/| /' conftest.$ac_ext >&5
26258
26259ac_cv_lib_bsd_gethostbyname=no
26260fi
ac1cb8d3
VS
26261rm -f conftest.err conftest.$ac_objext \
26262 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26263LIBS=$ac_check_lib_save_LIBS
26264fi
26265echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26266echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26267if test $ac_cv_lib_bsd_gethostbyname = yes; then
26268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26269fi
26270
26271 fi
26272 fi
26273
26274 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26275 # socket/setsockopt and other routines are undefined under SCO ODT
26276 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26277 # on later versions), says Simon Leinen: it contains gethostby*
26278 # variants that don't use the name server (or something). -lsocket
26279 # must be given before -lnsl if both are needed. We assume that
26280 # if connect needs -lnsl, so does gethostbyname.
26281 echo "$as_me:$LINENO: checking for connect" >&5
26282echo $ECHO_N "checking for connect... $ECHO_C" >&6
26283if test "${ac_cv_func_connect+set}" = set; then
26284 echo $ECHO_N "(cached) $ECHO_C" >&6
26285else
26286 cat >conftest.$ac_ext <<_ACEOF
26287/* confdefs.h. */
26288_ACEOF
26289cat confdefs.h >>conftest.$ac_ext
26290cat >>conftest.$ac_ext <<_ACEOF
26291/* end confdefs.h. */
ac1cb8d3
VS
26292/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26294#define connect innocuous_connect
26295
a848cd7e
SC
26296/* System header to define __stub macros and hopefully few prototypes,
26297 which can conflict with char connect (); below.
26298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26299 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26300
a848cd7e
SC
26301#ifdef __STDC__
26302# include <limits.h>
26303#else
26304# include <assert.h>
26305#endif
ac1cb8d3
VS
26306
26307#undef connect
26308
a848cd7e
SC
26309/* Override any gcc2 internal prototype to avoid an error. */
26310#ifdef __cplusplus
26311extern "C"
26312{
26313#endif
26314/* We use char because int might match the return type of a gcc2
26315 builtin and then its argument prototype would still apply. */
26316char connect ();
26317/* The GNU C library defines this for functions which it implements
26318 to always fail with ENOSYS. Some functions are actually named
26319 something starting with __ and the normal name is an alias. */
26320#if defined (__stub_connect) || defined (__stub___connect)
26321choke me
26322#else
26323char (*f) () = connect;
26324#endif
26325#ifdef __cplusplus
26326}
26327#endif
26328
26329int
26330main ()
26331{
26332return f != connect;
26333 ;
26334 return 0;
26335}
26336_ACEOF
26337rm -f conftest.$ac_objext conftest$ac_exeext
26338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26339 (eval $ac_link) 2>conftest.er1
a848cd7e 26340 ac_status=$?
ac1cb8d3
VS
26341 grep -v '^ *+' conftest.er1 >conftest.err
26342 rm -f conftest.er1
26343 cat conftest.err >&5
a848cd7e
SC
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } &&
ac1cb8d3
VS
26346 { ac_try='test -z "$ac_c_werror_flag"
26347 || test ! -s conftest.err'
26348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26349 (eval $ac_try) 2>&5
26350 ac_status=$?
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); }; } &&
26353 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26355 (eval $ac_try) 2>&5
26356 ac_status=$?
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); }; }; then
26359 ac_cv_func_connect=yes
26360else
26361 echo "$as_me: failed program was:" >&5
26362sed 's/^/| /' conftest.$ac_ext >&5
26363
26364ac_cv_func_connect=no
26365fi
ac1cb8d3
VS
26366rm -f conftest.err conftest.$ac_objext \
26367 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26368fi
26369echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26370echo "${ECHO_T}$ac_cv_func_connect" >&6
26371
26372 if test $ac_cv_func_connect = no; then
26373 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26374echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26375if test "${ac_cv_lib_socket_connect+set}" = set; then
26376 echo $ECHO_N "(cached) $ECHO_C" >&6
26377else
26378 ac_check_lib_save_LIBS=$LIBS
26379LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26380cat >conftest.$ac_ext <<_ACEOF
26381/* confdefs.h. */
26382_ACEOF
26383cat confdefs.h >>conftest.$ac_ext
26384cat >>conftest.$ac_ext <<_ACEOF
26385/* end confdefs.h. */
26386
26387/* Override any gcc2 internal prototype to avoid an error. */
26388#ifdef __cplusplus
26389extern "C"
26390#endif
26391/* We use char because int might match the return type of a gcc2
26392 builtin and then its argument prototype would still apply. */
26393char connect ();
26394int
26395main ()
26396{
26397connect ();
26398 ;
26399 return 0;
26400}
26401_ACEOF
26402rm -f conftest.$ac_objext conftest$ac_exeext
26403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26404 (eval $ac_link) 2>conftest.er1
a848cd7e 26405 ac_status=$?
ac1cb8d3
VS
26406 grep -v '^ *+' conftest.er1 >conftest.err
26407 rm -f conftest.er1
26408 cat conftest.err >&5
a848cd7e
SC
26409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410 (exit $ac_status); } &&
ac1cb8d3
VS
26411 { ac_try='test -z "$ac_c_werror_flag"
26412 || test ! -s conftest.err'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26415 ac_status=$?
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; } &&
26418 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420 (eval $ac_try) 2>&5
26421 ac_status=$?
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); }; }; then
26424 ac_cv_lib_socket_connect=yes
26425else
26426 echo "$as_me: failed program was:" >&5
26427sed 's/^/| /' conftest.$ac_ext >&5
26428
26429ac_cv_lib_socket_connect=no
26430fi
ac1cb8d3
VS
26431rm -f conftest.err conftest.$ac_objext \
26432 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26433LIBS=$ac_check_lib_save_LIBS
26434fi
26435echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26436echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26437if test $ac_cv_lib_socket_connect = yes; then
26438 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26439fi
26440
26441 fi
26442
26443 # Guillermo Gomez says -lposix is necessary on A/UX.
26444 echo "$as_me:$LINENO: checking for remove" >&5
26445echo $ECHO_N "checking for remove... $ECHO_C" >&6
26446if test "${ac_cv_func_remove+set}" = set; then
26447 echo $ECHO_N "(cached) $ECHO_C" >&6
26448else
26449 cat >conftest.$ac_ext <<_ACEOF
26450/* confdefs.h. */
26451_ACEOF
26452cat confdefs.h >>conftest.$ac_ext
26453cat >>conftest.$ac_ext <<_ACEOF
26454/* end confdefs.h. */
ac1cb8d3
VS
26455/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26457#define remove innocuous_remove
26458
a848cd7e
SC
26459/* System header to define __stub macros and hopefully few prototypes,
26460 which can conflict with char remove (); below.
26461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26462 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26463
a848cd7e
SC
26464#ifdef __STDC__
26465# include <limits.h>
26466#else
26467# include <assert.h>
26468#endif
ac1cb8d3
VS
26469
26470#undef remove
26471
a848cd7e
SC
26472/* Override any gcc2 internal prototype to avoid an error. */
26473#ifdef __cplusplus
26474extern "C"
26475{
26476#endif
26477/* We use char because int might match the return type of a gcc2
26478 builtin and then its argument prototype would still apply. */
26479char remove ();
26480/* The GNU C library defines this for functions which it implements
26481 to always fail with ENOSYS. Some functions are actually named
26482 something starting with __ and the normal name is an alias. */
26483#if defined (__stub_remove) || defined (__stub___remove)
26484choke me
26485#else
26486char (*f) () = remove;
26487#endif
26488#ifdef __cplusplus
26489}
26490#endif
26491
26492int
26493main ()
26494{
26495return f != remove;
26496 ;
26497 return 0;
26498}
26499_ACEOF
26500rm -f conftest.$ac_objext conftest$ac_exeext
26501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26502 (eval $ac_link) 2>conftest.er1
a848cd7e 26503 ac_status=$?
ac1cb8d3
VS
26504 grep -v '^ *+' conftest.er1 >conftest.err
26505 rm -f conftest.er1
26506 cat conftest.err >&5
a848cd7e
SC
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } &&
ac1cb8d3
VS
26509 { ac_try='test -z "$ac_c_werror_flag"
26510 || test ! -s conftest.err'
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; } &&
26516 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26519 ac_status=$?
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; }; then
26522 ac_cv_func_remove=yes
26523else
26524 echo "$as_me: failed program was:" >&5
26525sed 's/^/| /' conftest.$ac_ext >&5
26526
26527ac_cv_func_remove=no
26528fi
ac1cb8d3
VS
26529rm -f conftest.err conftest.$ac_objext \
26530 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26531fi
26532echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26533echo "${ECHO_T}$ac_cv_func_remove" >&6
26534
26535 if test $ac_cv_func_remove = no; then
26536 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26537echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26538if test "${ac_cv_lib_posix_remove+set}" = set; then
26539 echo $ECHO_N "(cached) $ECHO_C" >&6
26540else
26541 ac_check_lib_save_LIBS=$LIBS
26542LIBS="-lposix $LIBS"
26543cat >conftest.$ac_ext <<_ACEOF
26544/* confdefs.h. */
26545_ACEOF
26546cat confdefs.h >>conftest.$ac_ext
26547cat >>conftest.$ac_ext <<_ACEOF
26548/* end confdefs.h. */
26549
26550/* Override any gcc2 internal prototype to avoid an error. */
26551#ifdef __cplusplus
26552extern "C"
26553#endif
26554/* We use char because int might match the return type of a gcc2
26555 builtin and then its argument prototype would still apply. */
26556char remove ();
26557int
26558main ()
26559{
26560remove ();
26561 ;
26562 return 0;
26563}
26564_ACEOF
26565rm -f conftest.$ac_objext conftest$ac_exeext
26566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26567 (eval $ac_link) 2>conftest.er1
a848cd7e 26568 ac_status=$?
ac1cb8d3
VS
26569 grep -v '^ *+' conftest.er1 >conftest.err
26570 rm -f conftest.er1
26571 cat conftest.err >&5
a848cd7e
SC
26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } &&
ac1cb8d3
VS
26574 { ac_try='test -z "$ac_c_werror_flag"
26575 || test ! -s conftest.err'
26576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26577 (eval $ac_try) 2>&5
26578 ac_status=$?
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); }; } &&
26581 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583 (eval $ac_try) 2>&5
26584 ac_status=$?
26585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586 (exit $ac_status); }; }; then
26587 ac_cv_lib_posix_remove=yes
26588else
26589 echo "$as_me: failed program was:" >&5
26590sed 's/^/| /' conftest.$ac_ext >&5
26591
26592ac_cv_lib_posix_remove=no
26593fi
ac1cb8d3
VS
26594rm -f conftest.err conftest.$ac_objext \
26595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26596LIBS=$ac_check_lib_save_LIBS
26597fi
26598echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26599echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26600if test $ac_cv_lib_posix_remove = yes; then
26601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26602fi
26603
26604 fi
26605
26606 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26607 echo "$as_me:$LINENO: checking for shmat" >&5
26608echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26609if test "${ac_cv_func_shmat+set}" = set; then
26610 echo $ECHO_N "(cached) $ECHO_C" >&6
26611else
26612 cat >conftest.$ac_ext <<_ACEOF
26613/* confdefs.h. */
26614_ACEOF
26615cat confdefs.h >>conftest.$ac_ext
26616cat >>conftest.$ac_ext <<_ACEOF
26617/* end confdefs.h. */
ac1cb8d3
VS
26618/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26620#define shmat innocuous_shmat
26621
a848cd7e
SC
26622/* System header to define __stub macros and hopefully few prototypes,
26623 which can conflict with char shmat (); below.
26624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26625 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26626
a848cd7e
SC
26627#ifdef __STDC__
26628# include <limits.h>
26629#else
26630# include <assert.h>
26631#endif
ac1cb8d3
VS
26632
26633#undef shmat
26634
a848cd7e
SC
26635/* Override any gcc2 internal prototype to avoid an error. */
26636#ifdef __cplusplus
26637extern "C"
26638{
26639#endif
26640/* We use char because int might match the return type of a gcc2
26641 builtin and then its argument prototype would still apply. */
26642char shmat ();
26643/* The GNU C library defines this for functions which it implements
26644 to always fail with ENOSYS. Some functions are actually named
26645 something starting with __ and the normal name is an alias. */
26646#if defined (__stub_shmat) || defined (__stub___shmat)
26647choke me
26648#else
26649char (*f) () = shmat;
26650#endif
26651#ifdef __cplusplus
26652}
26653#endif
26654
26655int
26656main ()
26657{
26658return f != shmat;
26659 ;
26660 return 0;
26661}
26662_ACEOF
26663rm -f conftest.$ac_objext conftest$ac_exeext
26664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26665 (eval $ac_link) 2>conftest.er1
a848cd7e 26666 ac_status=$?
ac1cb8d3
VS
26667 grep -v '^ *+' conftest.er1 >conftest.err
26668 rm -f conftest.er1
26669 cat conftest.err >&5
a848cd7e
SC
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); } &&
ac1cb8d3
VS
26672 { ac_try='test -z "$ac_c_werror_flag"
26673 || test ! -s conftest.err'
26674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26675 (eval $ac_try) 2>&5
26676 ac_status=$?
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); }; } &&
26679 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26681 (eval $ac_try) 2>&5
26682 ac_status=$?
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); }; }; then
26685 ac_cv_func_shmat=yes
26686else
26687 echo "$as_me: failed program was:" >&5
26688sed 's/^/| /' conftest.$ac_ext >&5
26689
26690ac_cv_func_shmat=no
26691fi
ac1cb8d3
VS
26692rm -f conftest.err conftest.$ac_objext \
26693 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26694fi
26695echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26696echo "${ECHO_T}$ac_cv_func_shmat" >&6
26697
26698 if test $ac_cv_func_shmat = no; then
26699 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26700echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26701if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26702 echo $ECHO_N "(cached) $ECHO_C" >&6
26703else
26704 ac_check_lib_save_LIBS=$LIBS
26705LIBS="-lipc $LIBS"
26706cat >conftest.$ac_ext <<_ACEOF
26707/* confdefs.h. */
26708_ACEOF
26709cat confdefs.h >>conftest.$ac_ext
26710cat >>conftest.$ac_ext <<_ACEOF
26711/* end confdefs.h. */
26712
26713/* Override any gcc2 internal prototype to avoid an error. */
26714#ifdef __cplusplus
26715extern "C"
26716#endif
26717/* We use char because int might match the return type of a gcc2
26718 builtin and then its argument prototype would still apply. */
26719char shmat ();
26720int
26721main ()
26722{
26723shmat ();
26724 ;
26725 return 0;
26726}
26727_ACEOF
26728rm -f conftest.$ac_objext conftest$ac_exeext
26729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26730 (eval $ac_link) 2>conftest.er1
a848cd7e 26731 ac_status=$?
ac1cb8d3
VS
26732 grep -v '^ *+' conftest.er1 >conftest.err
26733 rm -f conftest.er1
26734 cat conftest.err >&5
a848cd7e
SC
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); } &&
ac1cb8d3
VS
26737 { ac_try='test -z "$ac_c_werror_flag"
26738 || test ! -s conftest.err'
26739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26740 (eval $ac_try) 2>&5
26741 ac_status=$?
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); }; } &&
26744 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26746 (eval $ac_try) 2>&5
26747 ac_status=$?
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); }; }; then
26750 ac_cv_lib_ipc_shmat=yes
26751else
26752 echo "$as_me: failed program was:" >&5
26753sed 's/^/| /' conftest.$ac_ext >&5
26754
26755ac_cv_lib_ipc_shmat=no
26756fi
ac1cb8d3
VS
26757rm -f conftest.err conftest.$ac_objext \
26758 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26759LIBS=$ac_check_lib_save_LIBS
26760fi
26761echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26762echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26763if test $ac_cv_lib_ipc_shmat = yes; then
26764 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26765fi
26766
26767 fi
26768 fi
26769
26770 # Check for libraries that X11R6 Xt/Xaw programs need.
26771 ac_save_LDFLAGS=$LDFLAGS
26772 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26773 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26774 # check for ICE first), but we must link in the order -lSM -lICE or
26775 # we get undefined symbols. So assume we have SM if we have ICE.
26776 # These have to be linked with before -lX11, unlike the other
26777 # libraries we check for below, so use a different variable.
26778 # John Interrante, Karl Berry
26779 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26780echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26781if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26782 echo $ECHO_N "(cached) $ECHO_C" >&6
26783else
26784 ac_check_lib_save_LIBS=$LIBS
26785LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26786cat >conftest.$ac_ext <<_ACEOF
26787/* confdefs.h. */
26788_ACEOF
26789cat confdefs.h >>conftest.$ac_ext
26790cat >>conftest.$ac_ext <<_ACEOF
26791/* end confdefs.h. */
26792
26793/* Override any gcc2 internal prototype to avoid an error. */
26794#ifdef __cplusplus
26795extern "C"
26796#endif
26797/* We use char because int might match the return type of a gcc2
26798 builtin and then its argument prototype would still apply. */
26799char IceConnectionNumber ();
26800int
26801main ()
26802{
26803IceConnectionNumber ();
26804 ;
26805 return 0;
26806}
26807_ACEOF
26808rm -f conftest.$ac_objext conftest$ac_exeext
26809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26810 (eval $ac_link) 2>conftest.er1
a848cd7e 26811 ac_status=$?
ac1cb8d3
VS
26812 grep -v '^ *+' conftest.er1 >conftest.err
26813 rm -f conftest.er1
26814 cat conftest.err >&5
a848cd7e
SC
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); } &&
ac1cb8d3
VS
26817 { ac_try='test -z "$ac_c_werror_flag"
26818 || test ! -s conftest.err'
26819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820 (eval $ac_try) 2>&5
26821 ac_status=$?
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; } &&
26824 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26826 (eval $ac_try) 2>&5
26827 ac_status=$?
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); }; }; then
26830 ac_cv_lib_ICE_IceConnectionNumber=yes
26831else
26832 echo "$as_me: failed program was:" >&5
26833sed 's/^/| /' conftest.$ac_ext >&5
26834
26835ac_cv_lib_ICE_IceConnectionNumber=no
26836fi
ac1cb8d3
VS
26837rm -f conftest.err conftest.$ac_objext \
26838 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26839LIBS=$ac_check_lib_save_LIBS
26840fi
26841echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26842echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26843if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26844 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26845fi
26846
26847 LDFLAGS=$ac_save_LDFLAGS
26848
26849fi
26850
26851
26852 if test "$no_x" = "yes"; then
26853 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26854echo "$as_me: error: X11 not found" >&2;}
26855 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26856 fi
26857
26858 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
26859 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
26860 AFMINSTALL=afminstall
26861 COMPILED_X_PROGRAM=0
26862
26863 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26864echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
26865
26866ac_find_includes=
26867for ac_dir in $SEARCH_INCLUDE /usr/include;
26868 do
26869 if test -f "$ac_dir/Xm/Xm.h"; then
26870 ac_find_includes=$ac_dir
26871 break
26872 fi
26873 done
26874
26875 if test "$ac_find_includes" != "" ; then
26876 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26877echo "${ECHO_T}found in $ac_find_includes" >&6
26878
26879 if test "x$ac_find_includes" = "x/usr/include"; then
26880 ac_path_to_include=""
26881 else
26882 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26883 result=$?
26884 if test $result = 0; then
26885 ac_path_to_include=""
26886 else
26887 ac_path_to_include=" -I$ac_find_includes"
26888 fi
26889 fi
26890
26891 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26892 else
26893 cat >conftest.$ac_ext <<_ACEOF
26894/* confdefs.h. */
26895_ACEOF
26896cat confdefs.h >>conftest.$ac_ext
26897cat >>conftest.$ac_ext <<_ACEOF
26898/* end confdefs.h. */
26899
26900 #include <Xm/Xm.h>
26901
26902int
26903main ()
26904{
26905
26906 int version;
26907 version = xmUseVersion;
26908
26909 ;
26910 return 0;
26911}
26912_ACEOF
26913rm -f conftest.$ac_objext
26914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26915 (eval $ac_compile) 2>conftest.er1
a848cd7e 26916 ac_status=$?
ac1cb8d3
VS
26917 grep -v '^ *+' conftest.er1 >conftest.err
26918 rm -f conftest.er1
26919 cat conftest.err >&5
a848cd7e
SC
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); } &&
ac1cb8d3
VS
26922 { ac_try='test -z "$ac_c_werror_flag"
26923 || test ! -s conftest.err'
26924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26925 (eval $ac_try) 2>&5
26926 ac_status=$?
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); }; } &&
26929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26931 (eval $ac_try) 2>&5
26932 ac_status=$?
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); }; }; then
26935
26936 echo "$as_me:$LINENO: result: found in default search path" >&5
26937echo "${ECHO_T}found in default search path" >&6
26938 COMPILED_X_PROGRAM=1
26939
26940else
26941 echo "$as_me: failed program was:" >&5
26942sed 's/^/| /' conftest.$ac_ext >&5
26943
26944
26945 echo "$as_me:$LINENO: result: no" >&5
26946echo "${ECHO_T}no" >&6
26947 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26948echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26949 { (exit 1); exit 1; }; }
26950
26951
26952fi
ac1cb8d3 26953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26954 fi
26955
26956 if test "$COMPILED_X_PROGRAM" = 0; then
26957 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26958echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26959
26960ac_find_libraries=
26961for ac_dir in $SEARCH_LIB /usr/lib;
26962 do
26963 for ac_extension in a so sl dylib; do
26964 if test -f "$ac_dir/libXm.$ac_extension"; then
26965 ac_find_libraries=$ac_dir
26966 break 2
26967 fi
26968 done
26969 done
26970
26971 if test "$ac_find_libraries" != "" ; then
26972 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26973echo "${ECHO_T}found at $ac_find_libraries" >&6
26974
26975
26976 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26977 result=$?
26978 if test $result = 0; then
26979 ac_path_to_link=""
26980 else
26981 ac_path_to_link=" -L$ac_find_libraries"
26982 fi
26983
26984 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26985 else
26986 save_CFLAGS=$CFLAGS
26987 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26988
26989 cat >conftest.$ac_ext <<_ACEOF
26990/* confdefs.h. */
26991_ACEOF
26992cat confdefs.h >>conftest.$ac_ext
26993cat >>conftest.$ac_ext <<_ACEOF
26994/* end confdefs.h. */
26995
26996 #include <Xm/Xm.h>
26997
26998int
26999main ()
27000{
27001
27002 int version;
27003 version = xmUseVersion;
27004
27005 ;
27006 return 0;
27007}
27008_ACEOF
27009rm -f conftest.$ac_objext
27010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27011 (eval $ac_compile) 2>conftest.er1
a848cd7e 27012 ac_status=$?
ac1cb8d3
VS
27013 grep -v '^ *+' conftest.er1 >conftest.err
27014 rm -f conftest.er1
27015 cat conftest.err >&5
a848cd7e
SC
27016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017 (exit $ac_status); } &&
ac1cb8d3
VS
27018 { ac_try='test -z "$ac_c_werror_flag"
27019 || test ! -s conftest.err'
27020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021 (eval $ac_try) 2>&5
27022 ac_status=$?
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); }; } &&
27025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027 (eval $ac_try) 2>&5
27028 ac_status=$?
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; }; then
27031
27032 echo "$as_me:$LINENO: result: found in default search path" >&5
27033echo "${ECHO_T}found in default search path" >&6
27034 COMPILED_X_PROGRAM=1
27035
27036else
27037 echo "$as_me: failed program was:" >&5
27038sed 's/^/| /' conftest.$ac_ext >&5
27039
27040
27041 echo "$as_me:$LINENO: result: no" >&5
27042echo "${ECHO_T}no" >&6
27043 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27044echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27045 { (exit 1); exit 1; }; }
27046
27047
27048fi
ac1cb8d3 27049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27050
27051 CFLAGS=$save_CFLAGS
27052 fi
27053 fi
27054
27055 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27056echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27057 libp_link=""
27058 libsm_ice_link=""
27059 libs_found=0
27060 for libp in "" " -lXp"; do
27061 if test "$libs_found" = "0"; then
27062 for libsm_ice in "" " -lSM -lICE"; do
27063 if test "$libs_found" = "0"; then
27064 save_LIBS="$LIBS"
27065 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27066 save_CFLAGS=$CFLAGS
27067 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27068
27069 cat >conftest.$ac_ext <<_ACEOF
27070/* confdefs.h. */
27071_ACEOF
27072cat confdefs.h >>conftest.$ac_ext
27073cat >>conftest.$ac_ext <<_ACEOF
27074/* end confdefs.h. */
27075
27076 #include <Xm/Xm.h>
27077 #include <Xm/List.h>
27078
27079int
27080main ()
27081{
27082
27083 XmString string = NULL;
27084 Widget w = NULL;
27085 int position = 0;
27086 XmListAddItem(w, string, position);
27087
27088 ;
27089 return 0;
27090}
27091_ACEOF
27092rm -f conftest.$ac_objext conftest$ac_exeext
27093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27094 (eval $ac_link) 2>conftest.er1
a848cd7e 27095 ac_status=$?
ac1cb8d3
VS
27096 grep -v '^ *+' conftest.er1 >conftest.err
27097 rm -f conftest.er1
27098 cat conftest.err >&5
a848cd7e
SC
27099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100 (exit $ac_status); } &&
ac1cb8d3
VS
27101 { ac_try='test -z "$ac_c_werror_flag"
27102 || test ! -s conftest.err'
27103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27104 (eval $ac_try) 2>&5
27105 ac_status=$?
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); }; } &&
27108 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27110 (eval $ac_try) 2>&5
27111 ac_status=$?
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; }; then
27114
27115 libp_link="$libp"
27116 libsm_ice_link="$libsm_ice"
27117 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27118echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27119 libs_found=1
27120
27121else
27122 echo "$as_me: failed program was:" >&5
27123sed 's/^/| /' conftest.$ac_ext >&5
27124
27125
27126
27127fi
ac1cb8d3
VS
27128rm -f conftest.err conftest.$ac_objext \
27129 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27130
27131 LIBS="$save_LIBS"
27132 CFLAGS=$save_CFLAGS
27133 fi
27134 done
27135 fi
27136 done
27137
27138 if test "$libs_found" = "0"; then
27139 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27140echo "${ECHO_T}can't find the right libraries" >&6
27141 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27142echo "$as_me: error: can't link a simple motif program" >&2;}
27143 { (exit 1); exit 1; }; }
27144 fi
27145
27146 save_CFLAGS=$CFLAGS
27147 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27148 echo "$as_me:$LINENO: checking for Motif 2" >&5
27149echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27150 cat >conftest.$ac_ext <<_ACEOF
27151/* confdefs.h. */
27152_ACEOF
27153cat confdefs.h >>conftest.$ac_ext
27154cat >>conftest.$ac_ext <<_ACEOF
27155/* end confdefs.h. */
27156
27157 #include <Xm/Xm.h>
27158
27159int
27160main ()
27161{
27162
27163 #if XmVersion < 2000
27164 #error "Not Motif 2"
27165 #endif
27166
27167 ;
27168 return 0;
27169}
27170_ACEOF
27171rm -f conftest.$ac_objext
27172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27173 (eval $ac_compile) 2>conftest.er1
a848cd7e 27174 ac_status=$?
ac1cb8d3
VS
27175 grep -v '^ *+' conftest.er1 >conftest.err
27176 rm -f conftest.er1
27177 cat conftest.err >&5
a848cd7e
SC
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); } &&
ac1cb8d3
VS
27180 { ac_try='test -z "$ac_c_werror_flag"
27181 || test ! -s conftest.err'
27182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183 (eval $ac_try) 2>&5
27184 ac_status=$?
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; } &&
27187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189 (eval $ac_try) 2>&5
27190 ac_status=$?
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); }; }; then
27193
27194 cat >>confdefs.h <<\_ACEOF
27195#define __WXMOTIF20__ 1
27196_ACEOF
27197
27198 echo "$as_me:$LINENO: result: found" >&5
27199echo "${ECHO_T}found" >&6
27200
27201else
27202 echo "$as_me: failed program was:" >&5
27203sed 's/^/| /' conftest.$ac_ext >&5
27204
27205
27206 cat >>confdefs.h <<\_ACEOF
27207#define __WXMOTIF20__ 0
27208_ACEOF
27209
27210 echo "$as_me:$LINENO: result: not found" >&5
27211echo "${ECHO_T}not found" >&6
27212
27213fi
ac1cb8d3 27214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27215 CFLAGS=$save_CFLAGS
27216
27217 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
27218 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
27219 TOOLKIT=MOTIF
27220 GUIDIST=MOTIF_DIST
27221 fi
27222
27223 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
27224 if test "$wxUSE_LIBXPM" = "sys"; then
27225 echo "$as_me:$LINENO: checking for Xpm library" >&5
27226echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27227
27228ac_find_libraries=
27229for ac_dir in $SEARCH_LIB /usr/lib;
27230 do
27231 for ac_extension in a so sl dylib; do
27232 if test -f "$ac_dir/libXpm.$ac_extension"; then
27233 ac_find_libraries=$ac_dir
27234 break 2
27235 fi
27236 done
27237 done
27238
27239 if test "$ac_find_libraries" != "" ; then
27240
27241 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27242 result=$?
27243 if test $result = 0; then
27244 ac_path_to_link=""
27245 else
27246 ac_path_to_link=" -L$ac_find_libraries"
27247 fi
27248
27249 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27250 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27251echo "${ECHO_T}found at $ac_find_libraries" >&6
27252
27253 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27254echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27255if test "${wx_cv_x11_xpm_h+set}" = set; then
27256 echo $ECHO_N "(cached) $ECHO_C" >&6
27257else
27258
27259 save_CFLAGS=$CFLAGS
27260 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27261
27262 cat >conftest.$ac_ext <<_ACEOF
27263/* confdefs.h. */
27264_ACEOF
27265cat confdefs.h >>conftest.$ac_ext
27266cat >>conftest.$ac_ext <<_ACEOF
27267/* end confdefs.h. */
27268
27269 #include <X11/xpm.h>
27270
27271int
27272main ()
27273{
27274
27275 int version;
27276 version = XpmLibraryVersion();
27277
27278 ;
27279 return 0;
27280}
27281_ACEOF
27282rm -f conftest.$ac_objext
27283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27284 (eval $ac_compile) 2>conftest.er1
a848cd7e 27285 ac_status=$?
ac1cb8d3
VS
27286 grep -v '^ *+' conftest.er1 >conftest.err
27287 rm -f conftest.er1
27288 cat conftest.err >&5
a848cd7e
SC
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); } &&
ac1cb8d3
VS
27291 { ac_try='test -z "$ac_c_werror_flag"
27292 || test ! -s conftest.err'
27293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27294 (eval $ac_try) 2>&5
27295 ac_status=$?
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); }; } &&
27298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27300 (eval $ac_try) 2>&5
27301 ac_status=$?
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); }; }; then
27304 wx_cv_x11_xpm_h=yes
27305else
27306 echo "$as_me: failed program was:" >&5
27307sed 's/^/| /' conftest.$ac_ext >&5
27308
27309wx_cv_x11_xpm_h=no
27310
27311fi
ac1cb8d3 27312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27313
27314 CFLAGS=$save_CFLAGS
27315
27316
27317fi
27318echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27319echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27320
27321 if test $wx_cv_x11_xpm_h = "yes"; then
27322 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27323 cat >>confdefs.h <<\_ACEOF
27324#define wxHAVE_LIB_XPM 1
27325_ACEOF
27326
27327 else
27328 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27329echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27330 fi
27331 fi
27332
27333 fi
27334
27335 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27336echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27337if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27338 echo $ECHO_N "(cached) $ECHO_C" >&6
27339else
27340 ac_check_lib_save_LIBS=$LIBS
27341LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27342cat >conftest.$ac_ext <<_ACEOF
27343/* confdefs.h. */
27344_ACEOF
27345cat confdefs.h >>conftest.$ac_ext
27346cat >>conftest.$ac_ext <<_ACEOF
27347/* end confdefs.h. */
27348
27349/* Override any gcc2 internal prototype to avoid an error. */
27350#ifdef __cplusplus
27351extern "C"
27352#endif
27353/* We use char because int might match the return type of a gcc2
27354 builtin and then its argument prototype would still apply. */
27355char XShapeQueryExtension ();
27356int
27357main ()
27358{
27359XShapeQueryExtension ();
27360 ;
27361 return 0;
27362}
27363_ACEOF
27364rm -f conftest.$ac_objext conftest$ac_exeext
27365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27366 (eval $ac_link) 2>conftest.er1
a848cd7e 27367 ac_status=$?
ac1cb8d3
VS
27368 grep -v '^ *+' conftest.er1 >conftest.err
27369 rm -f conftest.er1
27370 cat conftest.err >&5
a848cd7e
SC
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); } &&
ac1cb8d3
VS
27373 { ac_try='test -z "$ac_c_werror_flag"
27374 || test ! -s conftest.err'
27375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27376 (eval $ac_try) 2>&5
27377 ac_status=$?
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); }; } &&
27380 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27382 (eval $ac_try) 2>&5
27383 ac_status=$?
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); }; }; then
27386 ac_cv_lib_Xext_XShapeQueryExtension=yes
27387else
27388 echo "$as_me: failed program was:" >&5
27389sed 's/^/| /' conftest.$ac_ext >&5
27390
27391ac_cv_lib_Xext_XShapeQueryExtension=no
27392fi
ac1cb8d3
VS
27393rm -f conftest.err conftest.$ac_objext \
27394 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27395LIBS=$ac_check_lib_save_LIBS
27396fi
27397echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27398echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27399if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27400
27401 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27402 wxHAVE_XEXT_LIB=1
27403
27404fi
27405
27406
27407 if test "$wxHAVE_XEXT_LIB" = 1; then
27408 save_CFLAGS="$CFLAGS"
27409 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27410
27411 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
27412echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
27413 cat >conftest.$ac_ext <<_ACEOF
27414/* confdefs.h. */
27415_ACEOF
27416cat confdefs.h >>conftest.$ac_ext
27417cat >>conftest.$ac_ext <<_ACEOF
27418/* end confdefs.h. */
27419
27420 #include <X11/Xlib.h>
27421 #include <X11/extensions/shape.h>
27422
27423int
27424main ()
27425{
27426
27427 int dummy1, dummy2;
27428 XShapeQueryExtension((Display*)NULL,
27429 (int*)NULL, (int*)NULL);
27430
27431 ;
27432 return 0;
27433}
27434_ACEOF
27435rm -f conftest.$ac_objext
27436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27437 (eval $ac_compile) 2>conftest.er1
a848cd7e 27438 ac_status=$?
ac1cb8d3
VS
27439 grep -v '^ *+' conftest.er1 >conftest.err
27440 rm -f conftest.er1
27441 cat conftest.err >&5
a848cd7e
SC
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); } &&
ac1cb8d3
VS
27444 { ac_try='test -z "$ac_c_werror_flag"
27445 || test ! -s conftest.err'
27446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27447 (eval $ac_try) 2>&5
27448 ac_status=$?
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); }; } &&
27451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27453 (eval $ac_try) 2>&5
27454 ac_status=$?
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; }; then
27457
27458 cat >>confdefs.h <<\_ACEOF
27459#define HAVE_XSHAPE 1
27460_ACEOF
27461
27462 echo "$as_me:$LINENO: result: found" >&5
27463echo "${ECHO_T}found" >&6
27464
27465else
27466 echo "$as_me: failed program was:" >&5
27467sed 's/^/| /' conftest.$ac_ext >&5
27468
27469
27470 echo "$as_me:$LINENO: result: not found" >&5
27471echo "${ECHO_T}not found" >&6
27472
27473fi
ac1cb8d3 27474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27475 CFLAGS="$save_CFLAGS"
27476
27477 fi
27478 fi
27479
27480 if test "$wxUSE_MAC" = 1; then
27481 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
27482echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
27483 if test "$GCC" = yes; then
27484 echo "$as_me:$LINENO: result: gcc" >&5
27485echo "${ECHO_T}gcc" >&6
27486 CPPFLAGS_PASCAL="-fpascal-strings"
27487 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
27488 echo "$as_me:$LINENO: result: xlc" >&5
27489echo "${ECHO_T}xlc" >&6
27490 CPPFLAGS_PASCAL="-qmacpstr"
27491 else
27492 echo "$as_me:$LINENO: result: none" >&5
27493echo "${ECHO_T}none" >&6
27494 fi
27495
27496 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
27497
27498 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
27499 TOOLKIT=MAC
27500 GUIDIST=MACX_DIST
27501 WXBASEPORT="_carbon"
27502 fi
27503
27504 if test "$wxUSE_COCOA" = 1; then
27505 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
27506 TOOLKIT=COCOA
27507 GUIDIST=COCOA_DIST
27508 fi
27509
27510 if test "$wxUSE_PM" = 1; then
27511 TOOLKIT=PM
de59c161
RD
27512 GUIDIST=PM_DIST
27513 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
27514echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
27515if test "${wx_cv_spbcdata+set}" = set; then
27516 echo $ECHO_N "(cached) $ECHO_C" >&6
27517else
27518
27519 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
27520/* confdefs.h. */
27521_ACEOF
27522cat confdefs.h >>conftest.$ac_ext
27523cat >>conftest.$ac_ext <<_ACEOF
27524/* end confdefs.h. */
27525
27526 #define INCL_PM
27527 #include <os2.h>
27528
27529int
27530main ()
27531{
27532
27533 SPBCDATA test;
27534
27535 ;
27536 return 0;
27537}
27538_ACEOF
27539rm -f conftest.$ac_objext
27540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27541 (eval $ac_compile) 2>conftest.er1
de59c161 27542 ac_status=$?
ac1cb8d3
VS
27543 grep -v '^ *+' conftest.er1 >conftest.err
27544 rm -f conftest.er1
27545 cat conftest.err >&5
de59c161
RD
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); } &&
ac1cb8d3
VS
27548 { ac_try='test -z "$ac_c_werror_flag"
27549 || test ! -s conftest.err'
27550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27551 (eval $ac_try) 2>&5
27552 ac_status=$?
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); }; } &&
27555 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
27556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27557 (eval $ac_try) 2>&5
27558 ac_status=$?
27559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560 (exit $ac_status); }; }; then
27561 wx_cv_spbcdata=yes
27562else
27563 echo "$as_me: failed program was:" >&5
27564sed 's/^/| /' conftest.$ac_ext >&5
27565
27566wx_cv_spbcdata=no
27567
27568fi
ac1cb8d3 27569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
27570
27571
27572fi
27573echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
27574echo "${ECHO_T}$wx_cv_spbcdata" >&6
27575
27576 if test $wx_cv_spbcdata = "yes"; then
27577 cat >>confdefs.h <<\_ACEOF
27578#define HAVE_SPBCDATA 1
27579_ACEOF
27580
27581 fi
a848cd7e
SC
27582 fi
27583
27584 if test "$TOOLKIT" = "PM" ; then
27585 TOOLKIT_DIR="os2"
27586 else
27587 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
27588 fi
27589
27590 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
27591
27592 if test "$wxUSE_UNIVERSAL" = "yes"; then
27593 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
27594
27595 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
27596 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
27597
27598 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
27599 if test "$wxUSE_X11" = 1; then
27600 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
27601 else
27602 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
27603 fi
27604 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
27605 WIDGET_SET=univ
27606 else
27607 ALL_OBJECTS="\$(GUIOBJS)"
27608 ALL_SOURCES="\$(ALL_SOURCES)"
27609 ALL_HEADERS="\$(ALL_HEADERS)"
27610 fi
27611
27612 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
27613
27614 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
27615 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
27616 fi
27617
27618 if test "$wxUSE_HTML" = "yes"; then
27619 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
27620 fi
27621
27622 if test "$wxUSE_LIBJPEG" = "builtin" ; then
27623 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
27624 fi
27625 if test "$wxUSE_LIBTIFF" = "builtin" ; then
27626 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
27627 fi
27628 if test "$wxUSE_LIBPNG" = "builtin" ; then
27629 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
27630 fi
27631
27632 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
27633 DISTDIR="wx\$(TOOLKIT)"
27634else
27635 USE_GUI=0
27636
27637 TOOLKIT_DIR="base"
27638
27639 if test "$USE_WIN32" = 1 ; then
27640 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
27641 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
27642
27643 TOOLKIT="MSW"
27644 else
27645 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
27646 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
27647 fi
27648
27649 ALL_SOURCES="\$(ALL_SOURCES)"
27650 ALL_HEADERS="\$(ALL_HEADERS)"
27651
27652 PORT_FILES="\${top_srcdir}/src/files.lst"
27653
27654 GUIDIST="BASE_DIST"
27655 DISTDIR="wxBase"
27656fi
27657
27658
27659
27660
27661IODBC_C_SRC=""
27662
27663
27664if test "$TOOLKIT" != "MSW" ; then
27665
27666 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
27667
27668 if test "${ac_cv_header_sql_h+set}" = set; then
27669 echo "$as_me:$LINENO: checking for sql.h" >&5
27670echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27671if test "${ac_cv_header_sql_h+set}" = set; then
27672 echo $ECHO_N "(cached) $ECHO_C" >&6
27673fi
27674echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27675echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27676else
27677 # Is the header compilable?
27678echo "$as_me:$LINENO: checking sql.h usability" >&5
27679echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
27680cat >conftest.$ac_ext <<_ACEOF
27681/* confdefs.h. */
27682_ACEOF
27683cat confdefs.h >>conftest.$ac_ext
27684cat >>conftest.$ac_ext <<_ACEOF
27685/* end confdefs.h. */
27686$ac_includes_default
27687#include <sql.h>
27688_ACEOF
27689rm -f conftest.$ac_objext
27690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27691 (eval $ac_compile) 2>conftest.er1
a848cd7e 27692 ac_status=$?
ac1cb8d3
VS
27693 grep -v '^ *+' conftest.er1 >conftest.err
27694 rm -f conftest.er1
27695 cat conftest.err >&5
a848cd7e
SC
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); } &&
ac1cb8d3
VS
27698 { ac_try='test -z "$ac_c_werror_flag"
27699 || test ! -s conftest.err'
27700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27701 (eval $ac_try) 2>&5
27702 ac_status=$?
27703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704 (exit $ac_status); }; } &&
27705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27707 (eval $ac_try) 2>&5
27708 ac_status=$?
27709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); }; }; then
27711 ac_header_compiler=yes
27712else
27713 echo "$as_me: failed program was:" >&5
27714sed 's/^/| /' conftest.$ac_ext >&5
27715
27716ac_header_compiler=no
27717fi
ac1cb8d3 27718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27719echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27720echo "${ECHO_T}$ac_header_compiler" >&6
27721
27722# Is the header present?
27723echo "$as_me:$LINENO: checking sql.h presence" >&5
27724echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27725cat >conftest.$ac_ext <<_ACEOF
27726/* confdefs.h. */
27727_ACEOF
27728cat confdefs.h >>conftest.$ac_ext
27729cat >>conftest.$ac_ext <<_ACEOF
27730/* end confdefs.h. */
27731#include <sql.h>
27732_ACEOF
27733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27735 ac_status=$?
27736 grep -v '^ *+' conftest.er1 >conftest.err
27737 rm -f conftest.er1
27738 cat conftest.err >&5
27739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740 (exit $ac_status); } >/dev/null; then
27741 if test -s conftest.err; then
27742 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27744 else
27745 ac_cpp_err=
27746 fi
27747else
27748 ac_cpp_err=yes
27749fi
27750if test -z "$ac_cpp_err"; then
27751 ac_header_preproc=yes
27752else
27753 echo "$as_me: failed program was:" >&5
27754sed 's/^/| /' conftest.$ac_ext >&5
27755
27756 ac_header_preproc=no
27757fi
27758rm -f conftest.err conftest.$ac_ext
27759echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27760echo "${ECHO_T}$ac_header_preproc" >&6
27761
27762# So? What about this header?
ac1cb8d3
VS
27763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27764 yes:no: )
a848cd7e
SC
27765 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27766echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27767 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27768echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27769 ac_header_preproc=yes
a848cd7e 27770 ;;
ac1cb8d3 27771 no:yes:* )
a848cd7e
SC
27772 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27773echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27774 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27775echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27776 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27777echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27778 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27779echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27780 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27781echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27782 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27783echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27784 (
27785 cat <<\_ASBOX
ac1cb8d3
VS
27786## ----------------------------------------- ##
27787## Report this to wx-dev@lists.wxwidgets.org ##
27788## ----------------------------------------- ##
a848cd7e
SC
27789_ASBOX
27790 ) |
27791 sed "s/^/$as_me: WARNING: /" >&2
27792 ;;
27793esac
27794echo "$as_me:$LINENO: checking for sql.h" >&5
27795echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27796if test "${ac_cv_header_sql_h+set}" = set; then
27797 echo $ECHO_N "(cached) $ECHO_C" >&6
27798else
27799 ac_cv_header_sql_h=$ac_header_preproc
27800fi
27801echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27802echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27803
27804fi
27805if test $ac_cv_header_sql_h = yes; then
27806 found_sql_h=1
27807fi
27808
27809
27810 if test "x$found_sql_h" = "x1" ; then
27811 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27812echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27813if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27814 echo $ECHO_N "(cached) $ECHO_C" >&6
27815else
27816 ac_check_lib_save_LIBS=$LIBS
27817LIBS="-liodbc $LIBS"
27818cat >conftest.$ac_ext <<_ACEOF
27819/* confdefs.h. */
27820_ACEOF
27821cat confdefs.h >>conftest.$ac_ext
27822cat >>conftest.$ac_ext <<_ACEOF
27823/* end confdefs.h. */
27824
27825/* Override any gcc2 internal prototype to avoid an error. */
27826#ifdef __cplusplus
27827extern "C"
27828#endif
27829/* We use char because int might match the return type of a gcc2
27830 builtin and then its argument prototype would still apply. */
27831char SQLAllocEnv ();
27832int
27833main ()
27834{
27835SQLAllocEnv ();
27836 ;
27837 return 0;
27838}
27839_ACEOF
27840rm -f conftest.$ac_objext conftest$ac_exeext
27841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27842 (eval $ac_link) 2>conftest.er1
a848cd7e 27843 ac_status=$?
ac1cb8d3
VS
27844 grep -v '^ *+' conftest.er1 >conftest.err
27845 rm -f conftest.er1
27846 cat conftest.err >&5
a848cd7e
SC
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } &&
ac1cb8d3
VS
27849 { ac_try='test -z "$ac_c_werror_flag"
27850 || test ! -s conftest.err'
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); }; } &&
27856 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858 (eval $ac_try) 2>&5
27859 ac_status=$?
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; }; then
27862 ac_cv_lib_iodbc_SQLAllocEnv=yes
27863else
27864 echo "$as_me: failed program was:" >&5
27865sed 's/^/| /' conftest.$ac_ext >&5
27866
27867ac_cv_lib_iodbc_SQLAllocEnv=no
27868fi
ac1cb8d3
VS
27869rm -f conftest.err conftest.$ac_objext \
27870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27871LIBS=$ac_check_lib_save_LIBS
27872fi
27873echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27874echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27875if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27876 ODBC_LINK=" -liodbc"
27877else
27878
27879 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27880echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27881if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27882 echo $ECHO_N "(cached) $ECHO_C" >&6
27883else
27884 ac_check_lib_save_LIBS=$LIBS
27885LIBS="-lunixodbc $LIBS"
27886cat >conftest.$ac_ext <<_ACEOF
27887/* confdefs.h. */
27888_ACEOF
27889cat confdefs.h >>conftest.$ac_ext
27890cat >>conftest.$ac_ext <<_ACEOF
27891/* end confdefs.h. */
27892
27893/* Override any gcc2 internal prototype to avoid an error. */
27894#ifdef __cplusplus
27895extern "C"
27896#endif
27897/* We use char because int might match the return type of a gcc2
27898 builtin and then its argument prototype would still apply. */
27899char SQLAllocEnv ();
27900int
27901main ()
27902{
27903SQLAllocEnv ();
27904 ;
27905 return 0;
27906}
27907_ACEOF
27908rm -f conftest.$ac_objext conftest$ac_exeext
27909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27910 (eval $ac_link) 2>conftest.er1
a848cd7e 27911 ac_status=$?
ac1cb8d3
VS
27912 grep -v '^ *+' conftest.er1 >conftest.err
27913 rm -f conftest.er1
27914 cat conftest.err >&5
a848cd7e
SC
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); } &&
ac1cb8d3
VS
27917 { ac_try='test -z "$ac_c_werror_flag"
27918 || test ! -s conftest.err'
27919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27920 (eval $ac_try) 2>&5
27921 ac_status=$?
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); }; } &&
27924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27926 (eval $ac_try) 2>&5
27927 ac_status=$?
27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929 (exit $ac_status); }; }; then
27930 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27931else
27932 echo "$as_me: failed program was:" >&5
27933sed 's/^/| /' conftest.$ac_ext >&5
27934
27935ac_cv_lib_unixodbc_SQLAllocEnv=no
27936fi
ac1cb8d3
VS
27937rm -f conftest.err conftest.$ac_objext \
27938 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27939LIBS=$ac_check_lib_save_LIBS
27940fi
27941echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27942echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27943if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27944 ODBC_LINK=" -lunixodbc"
27945else
27946
27947 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27948echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27949if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27950 echo $ECHO_N "(cached) $ECHO_C" >&6
27951else
27952 ac_check_lib_save_LIBS=$LIBS
27953LIBS="-lodbc $LIBS"
27954cat >conftest.$ac_ext <<_ACEOF
27955/* confdefs.h. */
27956_ACEOF
27957cat confdefs.h >>conftest.$ac_ext
27958cat >>conftest.$ac_ext <<_ACEOF
27959/* end confdefs.h. */
27960
27961/* Override any gcc2 internal prototype to avoid an error. */
27962#ifdef __cplusplus
27963extern "C"
27964#endif
27965/* We use char because int might match the return type of a gcc2
27966 builtin and then its argument prototype would still apply. */
27967char SQLAllocEnv ();
27968int
27969main ()
27970{
27971SQLAllocEnv ();
27972 ;
27973 return 0;
27974}
27975_ACEOF
27976rm -f conftest.$ac_objext conftest$ac_exeext
27977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27978 (eval $ac_link) 2>conftest.er1
a848cd7e 27979 ac_status=$?
ac1cb8d3
VS
27980 grep -v '^ *+' conftest.er1 >conftest.err
27981 rm -f conftest.er1
27982 cat conftest.err >&5
a848cd7e
SC
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
ac1cb8d3
VS
27985 { ac_try='test -z "$ac_c_werror_flag"
27986 || test ! -s conftest.err'
27987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27988 (eval $ac_try) 2>&5
27989 ac_status=$?
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; } &&
27992 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994 (eval $ac_try) 2>&5
27995 ac_status=$?
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; }; then
27998 ac_cv_lib_odbc_SQLAllocEnv=yes
27999else
28000 echo "$as_me: failed program was:" >&5
28001sed 's/^/| /' conftest.$ac_ext >&5
28002
28003ac_cv_lib_odbc_SQLAllocEnv=no
28004fi
ac1cb8d3
VS
28005rm -f conftest.err conftest.$ac_objext \
28006 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28007LIBS=$ac_check_lib_save_LIBS
28008fi
28009echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28010echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28011if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28012 ODBC_LINK=" -lodbc"
28013fi
28014
28015
28016fi
28017
28018
28019fi
28020
28021 fi
28022 if test "x$ODBC_LINK" = "x" ; then
28023 if test "$wxUSE_ODBC" = "sys" ; then
28024 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28025echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28026 { (exit 1); exit 1; }; }
28027 else
28028 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28029echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28030 wxUSE_ODBC=builtin
28031 fi
28032 else
28033 wxUSE_ODBC=sys
28034 fi
28035 fi
28036 if test "$wxUSE_ODBC" != "no" ; then
28037 cat >>confdefs.h <<\_ACEOF
28038#define wxUSE_ODBC 1
28039_ACEOF
28040
28041 if test "$wxUSE_ODBC" = "builtin" ; then
28042 cat >>confdefs.h <<\_ACEOF
28043#define wxUSE_BUILTIN_IODBC 1
28044_ACEOF
28045
28046 fi
28047 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28048
28049 WXODBCFLAG="-D_IODBC_"
28050 fi
28051fi
28052
28053if test "$wxUSE_REGEX" = "builtin" ; then
28054 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
28055fi
28056if test "$wxUSE_ZLIB" = "builtin" ; then
28057 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
28058fi
28059
01cb68df 28060
a848cd7e 28061if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28062 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28063 echo "$as_me:$LINENO: checking for Xinerama" >&5
28064echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28065
28066ac_find_libraries=
28067for ac_dir in $SEARCH_LIB /usr/lib;
28068 do
28069 for ac_extension in a so sl dylib; do
28070 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28071 ac_find_libraries=$ac_dir
28072 break 2
28073 fi
28074 done
28075 done
28076
28077 if test "$ac_find_libraries" != "" ; then
28078
28079 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28080 result=$?
28081 if test $result = 0; then
28082 ac_path_to_link=""
28083 else
28084 ac_path_to_link=" -L$ac_find_libraries"
28085 fi
28086
28087 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28088 LDFLAGS="$LDFLAGS $ac_path_to_link"
28089 fi
28090 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28091 echo "$as_me:$LINENO: result: yes" >&5
28092echo "${ECHO_T}yes" >&6
28093
28094 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28095echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28096
28097ac_find_libraries=
28098for ac_dir in $SEARCH_LIB /usr/lib;
28099 do
28100 for ac_extension in a so sl dylib; do
28101 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28102 ac_find_libraries=$ac_dir
28103 break 2
28104 fi
28105 done
28106 done
28107
28108 if test "$ac_find_libraries" != "" ; then
28109 echo "$as_me:$LINENO: result: yes" >&5
28110echo "${ECHO_T}yes" >&6
28111
28112for ac_header in X11/extensions/xf86vmode.h
28113do
28114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28115echo "$as_me:$LINENO: checking for $ac_header" >&5
28116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28117if eval "test \"\${$as_ac_Header+set}\" = set"; then
28118 echo $ECHO_N "(cached) $ECHO_C" >&6
28119else
28120 cat >conftest.$ac_ext <<_ACEOF
28121/* confdefs.h. */
28122_ACEOF
28123cat confdefs.h >>conftest.$ac_ext
28124cat >>conftest.$ac_ext <<_ACEOF
28125/* end confdefs.h. */
28126
28127 #if HAVE_X11_XLIB_H
28128 #include <X11/Xlib.h>
28129 #endif
28130
28131
28132#include <$ac_header>
28133_ACEOF
28134rm -f conftest.$ac_objext
28135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28136 (eval $ac_compile) 2>conftest.er1
a848cd7e 28137 ac_status=$?
ac1cb8d3
VS
28138 grep -v '^ *+' conftest.er1 >conftest.err
28139 rm -f conftest.er1
28140 cat conftest.err >&5
a848cd7e
SC
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); } &&
ac1cb8d3
VS
28143 { ac_try='test -z "$ac_c_werror_flag"
28144 || test ! -s conftest.err'
28145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146 (eval $ac_try) 2>&5
28147 ac_status=$?
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); }; } &&
28150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152 (eval $ac_try) 2>&5
28153 ac_status=$?
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
28156 eval "$as_ac_Header=yes"
28157else
28158 echo "$as_me: failed program was:" >&5
28159sed 's/^/| /' conftest.$ac_ext >&5
28160
28161eval "$as_ac_Header=no"
28162fi
ac1cb8d3 28163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28164fi
28165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28167if test `eval echo '${'$as_ac_Header'}'` = yes; then
28168 cat >>confdefs.h <<_ACEOF
28169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28170_ACEOF
28171
28172 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28173
28174fi
28175
28176done
28177
28178 else
28179 echo "$as_me:$LINENO: result: no" >&5
28180echo "${ECHO_T}no" >&6
28181 fi
28182
28183 else
28184 echo "$as_me:$LINENO: result: no" >&5
28185echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28186 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28187echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28188 wxUSE_DISPLAY="no"
28189 fi
01cb68df
RG
28190 elif test "$wxUSE_MSW" = 1; then
28191
28192
28193for ac_header in multimon.h ddraw.h
28194do
28195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28196if eval "test \"\${$as_ac_Header+set}\" = set"; then
28197 echo "$as_me:$LINENO: checking for $ac_header" >&5
28198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28199if eval "test \"\${$as_ac_Header+set}\" = set"; then
28200 echo $ECHO_N "(cached) $ECHO_C" >&6
28201fi
28202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28204else
28205 # Is the header compilable?
28206echo "$as_me:$LINENO: checking $ac_header usability" >&5
28207echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28208cat >conftest.$ac_ext <<_ACEOF
28209/* confdefs.h. */
28210_ACEOF
28211cat confdefs.h >>conftest.$ac_ext
28212cat >>conftest.$ac_ext <<_ACEOF
28213/* end confdefs.h. */
28214$ac_includes_default
28215#include <$ac_header>
28216_ACEOF
28217rm -f conftest.$ac_objext
28218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28219 (eval $ac_compile) 2>conftest.er1
01cb68df 28220 ac_status=$?
ac1cb8d3
VS
28221 grep -v '^ *+' conftest.er1 >conftest.err
28222 rm -f conftest.er1
28223 cat conftest.err >&5
01cb68df
RG
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); } &&
ac1cb8d3
VS
28226 { ac_try='test -z "$ac_c_werror_flag"
28227 || test ! -s conftest.err'
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); }; } &&
28233 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235 (eval $ac_try) 2>&5
28236 ac_status=$?
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); }; }; then
28239 ac_header_compiler=yes
28240else
28241 echo "$as_me: failed program was:" >&5
28242sed 's/^/| /' conftest.$ac_ext >&5
28243
28244ac_header_compiler=no
28245fi
ac1cb8d3 28246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28247echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28248echo "${ECHO_T}$ac_header_compiler" >&6
28249
28250# Is the header present?
28251echo "$as_me:$LINENO: checking $ac_header presence" >&5
28252echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28253cat >conftest.$ac_ext <<_ACEOF
28254/* confdefs.h. */
28255_ACEOF
28256cat confdefs.h >>conftest.$ac_ext
28257cat >>conftest.$ac_ext <<_ACEOF
28258/* end confdefs.h. */
28259#include <$ac_header>
28260_ACEOF
28261if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28263 ac_status=$?
28264 grep -v '^ *+' conftest.er1 >conftest.err
28265 rm -f conftest.er1
28266 cat conftest.err >&5
28267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 (exit $ac_status); } >/dev/null; then
28269 if test -s conftest.err; then
28270 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
28272 else
28273 ac_cpp_err=
28274 fi
28275else
28276 ac_cpp_err=yes
28277fi
28278if test -z "$ac_cpp_err"; then
28279 ac_header_preproc=yes
28280else
28281 echo "$as_me: failed program was:" >&5
28282sed 's/^/| /' conftest.$ac_ext >&5
28283
28284 ac_header_preproc=no
28285fi
28286rm -f conftest.err conftest.$ac_ext
28287echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28288echo "${ECHO_T}$ac_header_preproc" >&6
28289
28290# So? What about this header?
ac1cb8d3
VS
28291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28292 yes:no: )
01cb68df
RG
28293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28294echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28296echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28297 ac_header_preproc=yes
01cb68df 28298 ;;
ac1cb8d3 28299 no:yes:* )
01cb68df
RG
28300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28301echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28303echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28305echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28307echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
28308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28309echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28311echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
28312 (
28313 cat <<\_ASBOX
ac1cb8d3
VS
28314## ----------------------------------------- ##
28315## Report this to wx-dev@lists.wxwidgets.org ##
28316## ----------------------------------------- ##
01cb68df
RG
28317_ASBOX
28318 ) |
28319 sed "s/^/$as_me: WARNING: /" >&2
28320 ;;
28321esac
28322echo "$as_me:$LINENO: checking for $ac_header" >&5
28323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28324if eval "test \"\${$as_ac_Header+set}\" = set"; then
28325 echo $ECHO_N "(cached) $ECHO_C" >&6
28326else
ac1cb8d3 28327 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
28328fi
28329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28331
28332fi
28333if test `eval echo '${'$as_ac_Header'}'` = yes; then
28334 cat >>confdefs.h <<_ACEOF
28335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28336_ACEOF
28337
28338else
28339
28340 wxUSE_DISPLAY="no"
dcc1b6ad
VS
28341 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
28342echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28343
28344fi
28345
28346done
28347
a848cd7e
SC
28348 fi
28349fi
28350
28351
28352USE_OPENGL=0
28353if test "$wxUSE_OPENGL" = "yes"; then
28354 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28355 OPENGL_LIBS="-framework OpenGL -framework AGL"
28356 elif test "$wxUSE_MSW" = 1; then
28357 OPENGL_LIBS="-lopengl32 -lglu32"
28358 else
28359
28360
28361ac_find_includes=
28362for ac_dir in $SEARCH_INCLUDE /usr/include;
28363 do
28364 if test -f "$ac_dir/GL/gl.h"; then
28365 ac_find_includes=$ac_dir
28366 break
28367 fi
28368 done
28369
28370 if test "$ac_find_includes" != "" ; then
28371 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28372echo "${ECHO_T}found in $ac_find_includes" >&6
28373
28374 if test "x$ac_find_includes" = "x/usr/include"; then
28375 ac_path_to_include=""
28376 else
28377 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28378 result=$?
28379 if test $result = 0; then
28380 ac_path_to_include=""
28381 else
28382 ac_path_to_include=" -I$ac_find_includes"
28383 fi
28384 fi
28385
28386 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28387 fi
28388
28389 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28390 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28391echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28392if test "${ac_cv_header_GL_gl_h+set}" = set; then
28393 echo $ECHO_N "(cached) $ECHO_C" >&6
28394fi
28395echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28396echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28397else
28398 # Is the header compilable?
28399echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28400echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28401cat >conftest.$ac_ext <<_ACEOF
28402/* confdefs.h. */
28403_ACEOF
28404cat confdefs.h >>conftest.$ac_ext
28405cat >>conftest.$ac_ext <<_ACEOF
28406/* end confdefs.h. */
28407$ac_includes_default
28408#include <GL/gl.h>
28409_ACEOF
28410rm -f conftest.$ac_objext
28411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28412 (eval $ac_compile) 2>conftest.er1
a848cd7e 28413 ac_status=$?
ac1cb8d3
VS
28414 grep -v '^ *+' conftest.er1 >conftest.err
28415 rm -f conftest.er1
28416 cat conftest.err >&5
a848cd7e
SC
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); } &&
ac1cb8d3
VS
28419 { ac_try='test -z "$ac_c_werror_flag"
28420 || test ! -s conftest.err'
28421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28422 (eval $ac_try) 2>&5
28423 ac_status=$?
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); }; } &&
28426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28428 (eval $ac_try) 2>&5
28429 ac_status=$?
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); }; }; then
28432 ac_header_compiler=yes
28433else
28434 echo "$as_me: failed program was:" >&5
28435sed 's/^/| /' conftest.$ac_ext >&5
28436
28437ac_header_compiler=no
28438fi
ac1cb8d3 28439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28440echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28441echo "${ECHO_T}$ac_header_compiler" >&6
28442
28443# Is the header present?
28444echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28445echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28446cat >conftest.$ac_ext <<_ACEOF
28447/* confdefs.h. */
28448_ACEOF
28449cat confdefs.h >>conftest.$ac_ext
28450cat >>conftest.$ac_ext <<_ACEOF
28451/* end confdefs.h. */
28452#include <GL/gl.h>
28453_ACEOF
28454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28456 ac_status=$?
28457 grep -v '^ *+' conftest.er1 >conftest.err
28458 rm -f conftest.er1
28459 cat conftest.err >&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); } >/dev/null; then
28462 if test -s conftest.err; then
28463 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28465 else
28466 ac_cpp_err=
28467 fi
28468else
28469 ac_cpp_err=yes
28470fi
28471if test -z "$ac_cpp_err"; then
28472 ac_header_preproc=yes
28473else
28474 echo "$as_me: failed program was:" >&5
28475sed 's/^/| /' conftest.$ac_ext >&5
28476
28477 ac_header_preproc=no
28478fi
28479rm -f conftest.err conftest.$ac_ext
28480echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28481echo "${ECHO_T}$ac_header_preproc" >&6
28482
28483# So? What about this header?
ac1cb8d3
VS
28484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28485 yes:no: )
a848cd7e
SC
28486 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28487echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28488 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28489echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28490 ac_header_preproc=yes
a848cd7e 28491 ;;
ac1cb8d3 28492 no:yes:* )
a848cd7e
SC
28493 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28494echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28495 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28496echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28497 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28498echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28499 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28500echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28501 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28502echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28503 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28504echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28505 (
28506 cat <<\_ASBOX
ac1cb8d3
VS
28507## ----------------------------------------- ##
28508## Report this to wx-dev@lists.wxwidgets.org ##
28509## ----------------------------------------- ##
a848cd7e
SC
28510_ASBOX
28511 ) |
28512 sed "s/^/$as_me: WARNING: /" >&2
28513 ;;
28514esac
28515echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28516echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28517if test "${ac_cv_header_GL_gl_h+set}" = set; then
28518 echo $ECHO_N "(cached) $ECHO_C" >&6
28519else
28520 ac_cv_header_GL_gl_h=$ac_header_preproc
28521fi
28522echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28523echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28524
28525fi
28526if test $ac_cv_header_GL_gl_h = yes; then
28527
28528 found_gl=0
28529
28530 echo "$as_me:$LINENO: checking for -lGL" >&5
28531echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28532
28533ac_find_libraries=
28534for ac_dir in $SEARCH_LIB /usr/lib;
28535 do
28536 for ac_extension in a so sl dylib; do
28537 if test -f "$ac_dir/libGL.$ac_extension"; then
28538 ac_find_libraries=$ac_dir
28539 break 2
28540 fi
28541 done
28542 done
28543
28544 if test "$ac_find_libraries" != "" ; then
28545
28546 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28547 result=$?
28548 if test $result = 0; then
28549 ac_path_to_link=""
28550 else
28551 ac_path_to_link=" -L$ac_find_libraries"
28552 fi
28553
28554 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28555 LDFLAGS_GL="$ac_path_to_link"
28556 fi
28557
28558
28559ac_find_libraries=
28560for ac_dir in $SEARCH_LIB /usr/lib;
28561 do
28562 for ac_extension in a so sl dylib; do
28563 if test -f "$ac_dir/libGLU.$ac_extension"; then
28564 ac_find_libraries=$ac_dir
28565 break 2
28566 fi
28567 done
28568 done
28569
28570 if test "$ac_find_libraries" != "" ; then
28571
28572 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28573 result=$?
28574 if test $result = 0; then
28575 ac_path_to_link=""
28576 else
28577 ac_path_to_link=" -L$ac_find_libraries"
28578 fi
28579
28580 if test "$ac_path_to_link" != " -L/usr/lib" -a \
28581 "$ac_path_to_link" != "$LDFLAGS_GL"; then
28582 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
28583 fi
28584
28585 found_gl=1
28586 OPENGL_LIBS="-lGL -lGLU"
28587 echo "$as_me:$LINENO: result: yes" >&5
28588echo "${ECHO_T}yes" >&6
28589 fi
28590 fi
28591
28592 if test "$found_gl" != 1; then
28593 echo "$as_me:$LINENO: result: no" >&5
28594echo "${ECHO_T}no" >&6
28595 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
28596echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
28597
28598ac_find_libraries=
28599for ac_dir in $SEARCH_LIB /usr/lib;
28600 do
28601 for ac_extension in a so sl dylib; do
28602 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
28603 ac_find_libraries=$ac_dir
28604 break 2
28605 fi
28606 done
28607 done
28608
28609 if test "$ac_find_libraries" != "" ; then
28610
28611 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28612 result=$?
28613 if test $result = 0; then
28614 ac_path_to_link=""
28615 else
28616 ac_path_to_link=" -L$ac_find_libraries"
28617 fi
28618
28619 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
28620 OPENGL_LIBS="-lMesaGL -lMesaGLU"
28621 echo "$as_me:$LINENO: result: yes" >&5
28622echo "${ECHO_T}yes" >&6
28623 else
28624 echo "$as_me:$LINENO: result: no" >&5
28625echo "${ECHO_T}no" >&6
28626 fi
28627 fi
28628
28629fi
28630
28631
28632
28633 if test "x$OPENGL_LIBS" = "x"; then
28634 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
28635echo "$as_me: error: OpenGL libraries not available" >&2;}
28636 { (exit 1); exit 1; }; }
28637 fi
28638 fi
28639
28640 if test "$wxUSE_OPENGL" = "yes"; then
28641 USE_OPENGL=1
28642 cat >>confdefs.h <<\_ACEOF
28643#define wxUSE_OPENGL 1
28644_ACEOF
28645
28646 cat >>confdefs.h <<\_ACEOF
28647#define wxUSE_GLCANVAS 1
28648_ACEOF
28649
28650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
28651 fi
28652fi
28653
28654if test -z "$TOOLKIT_VPATH" ; then
28655 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
28656fi
28657
28658if test -n "$TOOLKIT" ; then
28659 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28660fi
28661
28662UNICODE=0
28663lib_unicode_suffix=
28664if test "$wxUSE_UNICODE" = "yes"; then
28665 lib_unicode_suffix=u
28666 UNICODE=1
28667fi
28668
28669lib_debug_suffix=
28670DEBUG_FLAG=0
28671if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28672 lib_debug_suffix=d
28673 DEBUG_FLAG=1
28674fi
28675
28676DEBUG_INFO=0
28677if test "$wxUSE_DEBUG_INFO" = "yes"; then
28678 DEBUG_INFO=1
28679fi
28680
28681WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
28682
28683TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
28684TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
28685
28686if test "$cross_compiling" = "yes"; then
28687 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
28688 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
28689 HOST_SUFFIX="-${host_alias}"
28690fi
28691
28692WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
28693WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
28694WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
28695WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
28696
28697WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
28698WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
28699
28700WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
28701WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
28702WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
28703WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
28704
28705case "${host}" in
28706 *-*-cygwin* | *-*-mingw32* )
28707 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
28708 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
28709 ;;
28710
28711 *-*-darwin* )
28712
28713 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
28714 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
28715
28716 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
28717 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
28718 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
28719 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
28720
28721 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28722 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
28723 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
28724 fi
28725 ;;
28726esac
28727
28728WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
28729WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
28730
28731WXCONFIG_LIBS="-l${WX_LIBRARY}"
28732WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
28733
28734if test "$wxUSE_OPENGL" = "yes"; then
28735 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
28736 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
28737fi
28738
28739
28740
28741if test "$wxUSE_SHARED" = "yes"; then
28742 case "${host}" in
28743 *-pc-msdosdjgpp )
28744 wxUSE_SHARED=no
28745 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28746echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28747 ;;
28748 esac
28749fi
28750
28751SHARED=0
28752if test "$wxUSE_SHARED" = "yes"; then
28753 SHARED=1
28754
28755
28756 found_versioning=no
28757
28758
28759 if test $found_versioning = no ; then
28760 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28761echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28762if test "${wx_cv_version_script+set}" = set; then
28763 echo $ECHO_N "(cached) $ECHO_C" >&6
28764else
28765
28766 echo "VER_1 { *; };" >conftest.sym
28767 echo "int main() { return 0; }" >conftest.cpp
28768
28769 if { ac_try='
28770 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28771 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28773 (eval $ac_try) 2>&5
28774 ac_status=$?
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); }; } ; then
28777 if test -s conftest.stderr ; then
28778 wx_cv_version_script=no
28779 else
28780 wx_cv_version_script=yes
28781 fi
28782 else
28783 wx_cv_version_script=no
28784 fi
28785 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28786
28787fi
28788echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28789echo "${ECHO_T}$wx_cv_version_script" >&6
28790 if test $wx_cv_version_script = yes ; then
28791 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28792 fi
28793 fi
28794
28795
28796 case "${host}" in
28797 *-*-linux* | *-*-gnu* )
28798 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
28799 ;;
28800
28801 *-*-solaris2* )
28802 if test "$GCC" = yes ; then
28803 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28804
28805 saveLdflags="$LDFLAGS"
28806 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28807 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28808echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28809 cat >conftest.$ac_ext <<_ACEOF
28810/* confdefs.h. */
28811_ACEOF
28812cat confdefs.h >>conftest.$ac_ext
28813cat >>conftest.$ac_ext <<_ACEOF
28814/* end confdefs.h. */
28815
28816int
28817main ()
28818{
28819
28820 ;
28821 return 0;
28822}
28823_ACEOF
28824rm -f conftest.$ac_objext conftest$ac_exeext
28825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28826 (eval $ac_link) 2>conftest.er1
a848cd7e 28827 ac_status=$?
ac1cb8d3
VS
28828 grep -v '^ *+' conftest.er1 >conftest.err
28829 rm -f conftest.er1
28830 cat conftest.err >&5
a848cd7e
SC
28831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 (exit $ac_status); } &&
ac1cb8d3
VS
28833 { ac_try='test -z "$ac_c_werror_flag"
28834 || test ! -s conftest.err'
28835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28836 (eval $ac_try) 2>&5
28837 ac_status=$?
28838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839 (exit $ac_status); }; } &&
28840 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28842 (eval $ac_try) 2>&5
28843 ac_status=$?
28844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845 (exit $ac_status); }; }; then
28846
28847 echo "$as_me:$LINENO: result: yes" >&5
28848echo "${ECHO_T}yes" >&6
28849 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
28850
28851else
28852 echo "$as_me: failed program was:" >&5
28853sed 's/^/| /' conftest.$ac_ext >&5
28854
28855
28856 echo "$as_me:$LINENO: result: no" >&5
28857echo "${ECHO_T}no" >&6
28858 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28859echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28860 LDFLAGS="$saveLdflags -Wl,-R,/"
28861 cat >conftest.$ac_ext <<_ACEOF
28862/* confdefs.h. */
28863_ACEOF
28864cat confdefs.h >>conftest.$ac_ext
28865cat >>conftest.$ac_ext <<_ACEOF
28866/* end confdefs.h. */
28867
28868int
28869main ()
28870{
28871
28872 ;
28873 return 0;
28874}
28875_ACEOF
28876rm -f conftest.$ac_objext conftest$ac_exeext
28877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28878 (eval $ac_link) 2>conftest.er1
a848cd7e 28879 ac_status=$?
ac1cb8d3
VS
28880 grep -v '^ *+' conftest.er1 >conftest.err
28881 rm -f conftest.er1
28882 cat conftest.err >&5
a848cd7e
SC
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); } &&
ac1cb8d3
VS
28885 { ac_try='test -z "$ac_c_werror_flag"
28886 || test ! -s conftest.err'
28887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28888 (eval $ac_try) 2>&5
28889 ac_status=$?
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); }; } &&
28892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28894 (eval $ac_try) 2>&5
28895 ac_status=$?
28896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897 (exit $ac_status); }; }; then
28898
28899 echo "$as_me:$LINENO: result: yes" >&5
28900echo "${ECHO_T}yes" >&6
28901 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28902else
28903 echo "$as_me: failed program was:" >&5
28904sed 's/^/| /' conftest.$ac_ext >&5
28905
28906
28907 echo "$as_me:$LINENO: result: no" >&5
28908echo "${ECHO_T}no" >&6
28909
28910fi
ac1cb8d3
VS
28911rm -f conftest.err conftest.$ac_objext \
28912 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28913
28914fi
ac1cb8d3
VS
28915rm -f conftest.err conftest.$ac_objext \
28916 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28917 LDFLAGS="$saveLdflags"
28918 else
28919 SHARED_LD="${CXX} -G -o"
28920 PIC_FLAG="-KPIC"
28921 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
28922 fi
28923 ;;
28924
28925 powerpc-*-darwin* )
28926 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28927 cat <<EOF >change-install-names
28928#!/bin/sh
28929libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28930inst_cmd="install_name_tool "
28931for i in \${libnames} ; do
28932 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28933done
28934\${inst_cmd} \${3}
28935EOF
28936 chmod +x change-install-names
28937 ;;
28938
28939 *-*-cygwin* | *-*-mingw32* )
28940 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28941 ;;
28942
28943 esac
28944
28945 if test "x$WX_TARGET_LIBRARY" = "x"; then
28946 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
28947 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
28948 fi
28949
28950 WX_TARGET_LIBRARY_TYPE="so"
28951 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
28952fi
28953
28954if test "$wxUSE_SHARED" = "no"; then
28955
28956 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
28957 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28958 fi
28959
28960 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
28961 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28962 fi
28963
28964 if test "$wxUSE_OPENGL" = "yes"; then
28965 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
28966 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
28967 else
28968 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
28969 fi
28970
28971 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
28972 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
28973
28974 WX_TARGET_LIBRARY_TYPE="a"
28975 INSTALL_LIBRARY='$(INSTALL_DATA)'
28976
28977 STATIC_FLAG="yes"
28978else
28979 STATIC_FLAG="no"
28980fi
28981
28982if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
28983 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
28984 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
28985 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
28986
28987 # Extract the first word of "Rez", so it can be a program name with args.
28988set dummy Rez; ac_word=$2
28989echo "$as_me:$LINENO: checking for $ac_word" >&5
28990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28991if test "${ac_cv_prog_RESCOMP+set}" = set; then
28992 echo $ECHO_N "(cached) $ECHO_C" >&6
28993else
28994 if test -n "$RESCOMP"; then
28995 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28996else
28997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28998for as_dir in $PATH
28999do
29000 IFS=$as_save_IFS
29001 test -z "$as_dir" && as_dir=.
29002 for ac_exec_ext in '' $ac_executable_extensions; do
29003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29004 ac_cv_prog_RESCOMP="Rez"
29005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29006 break 2
29007 fi
29008done
29009done
29010
29011 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29012fi
29013fi
29014RESCOMP=$ac_cv_prog_RESCOMP
29015if test -n "$RESCOMP"; then
29016 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29017echo "${ECHO_T}$RESCOMP" >&6
29018else
29019 echo "$as_me:$LINENO: result: no" >&5
29020echo "${ECHO_T}no" >&6
29021fi
29022
29023 # Extract the first word of "DeRez", so it can be a program name with args.
29024set dummy DeRez; ac_word=$2
29025echo "$as_me:$LINENO: checking for $ac_word" >&5
29026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29027if test "${ac_cv_prog_DEREZ+set}" = set; then
29028 echo $ECHO_N "(cached) $ECHO_C" >&6
29029else
29030 if test -n "$DEREZ"; then
29031 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29032else
29033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29034for as_dir in $PATH
29035do
29036 IFS=$as_save_IFS
29037 test -z "$as_dir" && as_dir=.
29038 for ac_exec_ext in '' $ac_executable_extensions; do
29039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29040 ac_cv_prog_DEREZ="DeRez"
29041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29042 break 2
29043 fi
29044done
29045done
29046
29047 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29048fi
29049fi
29050DEREZ=$ac_cv_prog_DEREZ
29051if test -n "$DEREZ"; then
29052 echo "$as_me:$LINENO: result: $DEREZ" >&5
29053echo "${ECHO_T}$DEREZ" >&6
29054else
29055 echo "$as_me:$LINENO: result: no" >&5
29056echo "${ECHO_T}no" >&6
29057fi
29058
29059 # Extract the first word of "SetFile", so it can be a program name with args.
29060set dummy SetFile; ac_word=$2
29061echo "$as_me:$LINENO: checking for $ac_word" >&5
29062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29063if test "${ac_cv_prog_SETFILE+set}" = set; then
29064 echo $ECHO_N "(cached) $ECHO_C" >&6
29065else
29066 if test -n "$SETFILE"; then
29067 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29068else
29069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29070for as_dir in $PATH
29071do
29072 IFS=$as_save_IFS
29073 test -z "$as_dir" && as_dir=.
29074 for ac_exec_ext in '' $ac_executable_extensions; do
29075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29076 ac_cv_prog_SETFILE="SetFile"
29077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29078 break 2
29079 fi
29080done
29081done
29082
29083 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29084fi
29085fi
29086SETFILE=$ac_cv_prog_SETFILE
29087if test -n "$SETFILE"; then
29088 echo "$as_me:$LINENO: result: $SETFILE" >&5
29089echo "${ECHO_T}$SETFILE" >&6
29090else
29091 echo "$as_me:$LINENO: result: no" >&5
29092echo "${ECHO_T}no" >&6
29093fi
29094
29095
29096 MACSETFILE="\$(SETFILE)"
29097
29098 if test "$wxUSE_MAC" = 1; then
29099 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29100
29101 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29102 else
29103 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29104 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29105 fi
29106else
29107 MACSETFILE="@#"
29108 MACRESWXCONFIG="#"
29109
29110 if test "$wxUSE_PM" = 1; then
29111 MACRESCOMP="emxbind -ep"
29112 else
29113 MACRESCOMP="@#"
29114 fi
29115fi
29116
29117
29118
29119echo "$as_me:$LINENO: checking for mode_t" >&5
29120echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29121if test "${ac_cv_type_mode_t+set}" = set; then
29122 echo $ECHO_N "(cached) $ECHO_C" >&6
29123else
29124 cat >conftest.$ac_ext <<_ACEOF
29125/* confdefs.h. */
29126_ACEOF
29127cat confdefs.h >>conftest.$ac_ext
29128cat >>conftest.$ac_ext <<_ACEOF
29129/* end confdefs.h. */
29130$ac_includes_default
29131int
29132main ()
29133{
29134if ((mode_t *) 0)
29135 return 0;
29136if (sizeof (mode_t))
29137 return 0;
29138 ;
29139 return 0;
29140}
29141_ACEOF
29142rm -f conftest.$ac_objext
29143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29144 (eval $ac_compile) 2>conftest.er1
a848cd7e 29145 ac_status=$?
ac1cb8d3
VS
29146 grep -v '^ *+' conftest.er1 >conftest.err
29147 rm -f conftest.er1
29148 cat conftest.err >&5
a848cd7e
SC
29149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150 (exit $ac_status); } &&
ac1cb8d3
VS
29151 { ac_try='test -z "$ac_c_werror_flag"
29152 || test ! -s conftest.err'
29153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29154 (eval $ac_try) 2>&5
29155 ac_status=$?
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; } &&
29158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29160 (eval $ac_try) 2>&5
29161 ac_status=$?
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; }; then
29164 ac_cv_type_mode_t=yes
29165else
29166 echo "$as_me: failed program was:" >&5
29167sed 's/^/| /' conftest.$ac_ext >&5
29168
29169ac_cv_type_mode_t=no
29170fi
ac1cb8d3 29171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29172fi
29173echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29174echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29175if test $ac_cv_type_mode_t = yes; then
29176 :
29177else
29178
29179cat >>confdefs.h <<_ACEOF
29180#define mode_t int
29181_ACEOF
29182
29183fi
29184
29185echo "$as_me:$LINENO: checking for off_t" >&5
29186echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29187if test "${ac_cv_type_off_t+set}" = set; then
29188 echo $ECHO_N "(cached) $ECHO_C" >&6
29189else
29190 cat >conftest.$ac_ext <<_ACEOF
29191/* confdefs.h. */
29192_ACEOF
29193cat confdefs.h >>conftest.$ac_ext
29194cat >>conftest.$ac_ext <<_ACEOF
29195/* end confdefs.h. */
29196$ac_includes_default
29197int
29198main ()
29199{
29200if ((off_t *) 0)
29201 return 0;
29202if (sizeof (off_t))
29203 return 0;
29204 ;
29205 return 0;
29206}
29207_ACEOF
29208rm -f conftest.$ac_objext
29209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29210 (eval $ac_compile) 2>conftest.er1
a848cd7e 29211 ac_status=$?
ac1cb8d3
VS
29212 grep -v '^ *+' conftest.er1 >conftest.err
29213 rm -f conftest.er1
29214 cat conftest.err >&5
a848cd7e
SC
29215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216 (exit $ac_status); } &&
ac1cb8d3
VS
29217 { ac_try='test -z "$ac_c_werror_flag"
29218 || test ! -s conftest.err'
29219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29220 (eval $ac_try) 2>&5
29221 ac_status=$?
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); }; } &&
29224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29226 (eval $ac_try) 2>&5
29227 ac_status=$?
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); }; }; then
29230 ac_cv_type_off_t=yes
29231else
29232 echo "$as_me: failed program was:" >&5
29233sed 's/^/| /' conftest.$ac_ext >&5
29234
29235ac_cv_type_off_t=no
29236fi
ac1cb8d3 29237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29238fi
29239echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29240echo "${ECHO_T}$ac_cv_type_off_t" >&6
29241if test $ac_cv_type_off_t = yes; then
29242 :
29243else
29244
29245cat >>confdefs.h <<_ACEOF
29246#define off_t long
29247_ACEOF
29248
29249fi
29250
29251echo "$as_me:$LINENO: checking for pid_t" >&5
29252echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29253if test "${ac_cv_type_pid_t+set}" = set; then
29254 echo $ECHO_N "(cached) $ECHO_C" >&6
29255else
29256 cat >conftest.$ac_ext <<_ACEOF
29257/* confdefs.h. */
29258_ACEOF
29259cat confdefs.h >>conftest.$ac_ext
29260cat >>conftest.$ac_ext <<_ACEOF
29261/* end confdefs.h. */
29262$ac_includes_default
29263int
29264main ()
29265{
29266if ((pid_t *) 0)
29267 return 0;
29268if (sizeof (pid_t))
29269 return 0;
29270 ;
29271 return 0;
29272}
29273_ACEOF
29274rm -f conftest.$ac_objext
29275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29276 (eval $ac_compile) 2>conftest.er1
a848cd7e 29277 ac_status=$?
ac1cb8d3
VS
29278 grep -v '^ *+' conftest.er1 >conftest.err
29279 rm -f conftest.er1
29280 cat conftest.err >&5
a848cd7e
SC
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); } &&
ac1cb8d3
VS
29283 { ac_try='test -z "$ac_c_werror_flag"
29284 || test ! -s conftest.err'
29285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29286 (eval $ac_try) 2>&5
29287 ac_status=$?
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289 (exit $ac_status); }; } &&
29290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29292 (eval $ac_try) 2>&5
29293 ac_status=$?
29294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); }; }; then
29296 ac_cv_type_pid_t=yes
29297else
29298 echo "$as_me: failed program was:" >&5
29299sed 's/^/| /' conftest.$ac_ext >&5
29300
29301ac_cv_type_pid_t=no
29302fi
ac1cb8d3 29303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29304fi
29305echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29306echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29307if test $ac_cv_type_pid_t = yes; then
29308 :
29309else
29310
29311cat >>confdefs.h <<_ACEOF
29312#define pid_t int
29313_ACEOF
29314
29315fi
29316
29317echo "$as_me:$LINENO: checking for size_t" >&5
29318echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29319if test "${ac_cv_type_size_t+set}" = set; then
29320 echo $ECHO_N "(cached) $ECHO_C" >&6
29321else
29322 cat >conftest.$ac_ext <<_ACEOF
29323/* confdefs.h. */
29324_ACEOF
29325cat confdefs.h >>conftest.$ac_ext
29326cat >>conftest.$ac_ext <<_ACEOF
29327/* end confdefs.h. */
29328$ac_includes_default
29329int
29330main ()
29331{
29332if ((size_t *) 0)
29333 return 0;
29334if (sizeof (size_t))
29335 return 0;
29336 ;
29337 return 0;
29338}
29339_ACEOF
29340rm -f conftest.$ac_objext
29341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29342 (eval $ac_compile) 2>conftest.er1
a848cd7e 29343 ac_status=$?
ac1cb8d3
VS
29344 grep -v '^ *+' conftest.er1 >conftest.err
29345 rm -f conftest.er1
29346 cat conftest.err >&5
a848cd7e
SC
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); } &&
ac1cb8d3
VS
29349 { ac_try='test -z "$ac_c_werror_flag"
29350 || test ! -s conftest.err'
29351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352 (eval $ac_try) 2>&5
29353 ac_status=$?
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; } &&
29356 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358 (eval $ac_try) 2>&5
29359 ac_status=$?
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); }; }; then
29362 ac_cv_type_size_t=yes
29363else
29364 echo "$as_me: failed program was:" >&5
29365sed 's/^/| /' conftest.$ac_ext >&5
29366
29367ac_cv_type_size_t=no
29368fi
ac1cb8d3 29369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29370fi
29371echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29372echo "${ECHO_T}$ac_cv_type_size_t" >&6
29373if test $ac_cv_type_size_t = yes; then
29374 :
29375else
29376
29377cat >>confdefs.h <<_ACEOF
29378#define size_t unsigned
29379_ACEOF
29380
29381fi
29382
29383echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29384echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29385if test "${ac_cv_type_uid_t+set}" = set; then
29386 echo $ECHO_N "(cached) $ECHO_C" >&6
29387else
29388 cat >conftest.$ac_ext <<_ACEOF
29389/* confdefs.h. */
29390_ACEOF
29391cat confdefs.h >>conftest.$ac_ext
29392cat >>conftest.$ac_ext <<_ACEOF
29393/* end confdefs.h. */
29394#include <sys/types.h>
29395
29396_ACEOF
29397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29398 $EGREP "uid_t" >/dev/null 2>&1; then
29399 ac_cv_type_uid_t=yes
29400else
29401 ac_cv_type_uid_t=no
29402fi
29403rm -f conftest*
29404
29405fi
29406echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29407echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29408if test $ac_cv_type_uid_t = no; then
29409
29410cat >>confdefs.h <<\_ACEOF
29411#define uid_t int
29412_ACEOF
29413
29414
29415cat >>confdefs.h <<\_ACEOF
29416#define gid_t int
29417_ACEOF
29418
29419fi
29420
29421
29422
29423
29424ac_ext=cc
29425ac_cpp='$CXXCPP $CPPFLAGS'
29426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29429
29430echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
29431echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
29432if test "${wx_cv_size_t_is_uint+set}" = set; then
29433 echo $ECHO_N "(cached) $ECHO_C" >&6
29434else
29435
29436 cat >conftest.$ac_ext <<_ACEOF
29437/* confdefs.h. */
29438_ACEOF
29439cat confdefs.h >>conftest.$ac_ext
29440cat >>conftest.$ac_ext <<_ACEOF
29441/* end confdefs.h. */
29442#include <stddef.h>
29443int
29444main ()
29445{
29446
29447 return 0; }
29448
29449 struct Foo { void foo(size_t); void foo(unsigned int); };
29450
29451 int bar() {
29452
29453 ;
29454 return 0;
29455}
29456_ACEOF
29457rm -f conftest.$ac_objext
29458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29459 (eval $ac_compile) 2>conftest.er1
a848cd7e 29460 ac_status=$?
ac1cb8d3
VS
29461 grep -v '^ *+' conftest.er1 >conftest.err
29462 rm -f conftest.er1
29463 cat conftest.err >&5
a848cd7e
SC
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); } &&
ac1cb8d3
VS
29466 { ac_try='test -z "$ac_cxx_werror_flag"
29467 || test ! -s conftest.err'
29468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29469 (eval $ac_try) 2>&5
29470 ac_status=$?
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); }; } &&
29473 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29475 (eval $ac_try) 2>&5
29476 ac_status=$?
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); }; }; then
29479 wx_cv_size_t_is_uint=no
29480else
29481 echo "$as_me: failed program was:" >&5
29482sed 's/^/| /' conftest.$ac_ext >&5
29483
29484wx_cv_size_t_is_uint=yes
29485
29486fi
ac1cb8d3 29487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29488
29489
29490fi
29491echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
29492echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
29493
29494if test "$wx_cv_size_t_is_uint" = "yes"; then
29495 cat >>confdefs.h <<\_ACEOF
29496#define wxSIZE_T_IS_UINT 1
29497_ACEOF
29498
29499else
29500 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
29501echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
29502if test "${wx_cv_size_t_is_ulong+set}" = set; then
29503 echo $ECHO_N "(cached) $ECHO_C" >&6
29504else
29505 cat >conftest.$ac_ext <<_ACEOF
29506/* confdefs.h. */
29507_ACEOF
29508cat confdefs.h >>conftest.$ac_ext
29509cat >>conftest.$ac_ext <<_ACEOF
29510/* end confdefs.h. */
29511#include <stddef.h>
29512int
29513main ()
29514{
29515
29516 return 0; }
29517
29518 struct Foo { void foo(size_t); void foo(unsigned long); };
29519
29520 int bar() {
29521
29522 ;
29523 return 0;
29524}
29525_ACEOF
29526rm -f conftest.$ac_objext
29527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29528 (eval $ac_compile) 2>conftest.er1
a848cd7e 29529 ac_status=$?
ac1cb8d3
VS
29530 grep -v '^ *+' conftest.er1 >conftest.err
29531 rm -f conftest.er1
29532 cat conftest.err >&5
a848cd7e
SC
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); } &&
ac1cb8d3
VS
29535 { ac_try='test -z "$ac_cxx_werror_flag"
29536 || test ! -s conftest.err'
29537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538 (eval $ac_try) 2>&5
29539 ac_status=$?
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); }; } &&
29542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29544 (eval $ac_try) 2>&5
29545 ac_status=$?
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; }; then
29548 wx_cv_size_t_is_ulong=no
29549else
29550 echo "$as_me: failed program was:" >&5
29551sed 's/^/| /' conftest.$ac_ext >&5
29552
29553wx_cv_size_t_is_ulong=yes
29554
29555fi
ac1cb8d3 29556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29557
29558fi
29559echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
29560echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
29561
29562 if test "$wx_cv_size_t_is_ulong" = "yes"; then
29563 cat >>confdefs.h <<\_ACEOF
29564#define wxSIZE_T_IS_ULONG 1
29565_ACEOF
29566
29567 fi
29568fi
29569
29570ac_ext=c
29571ac_cpp='$CPP $CPPFLAGS'
29572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29574ac_compiler_gnu=$ac_cv_c_compiler_gnu
29575
29576
29577
29578echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
29579echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
29580if test "${wx_cv_struct_pw_gecos+set}" = set; then
29581 echo $ECHO_N "(cached) $ECHO_C" >&6
29582else
29583
29584 cat >conftest.$ac_ext <<_ACEOF
29585/* confdefs.h. */
29586_ACEOF
29587cat confdefs.h >>conftest.$ac_ext
29588cat >>conftest.$ac_ext <<_ACEOF
29589/* end confdefs.h. */
29590#include <pwd.h>
29591int
29592main ()
29593{
29594
29595 char *p;
29596 struct passwd *pw;
29597 p = pw->pw_gecos;
29598
29599 ;
29600 return 0;
29601}
29602_ACEOF
29603rm -f conftest.$ac_objext
29604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29605 (eval $ac_compile) 2>conftest.er1
a848cd7e 29606 ac_status=$?
ac1cb8d3
VS
29607 grep -v '^ *+' conftest.er1 >conftest.err
29608 rm -f conftest.er1
29609 cat conftest.err >&5
a848cd7e
SC
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); } &&
ac1cb8d3
VS
29612 { ac_try='test -z "$ac_c_werror_flag"
29613 || test ! -s conftest.err'
29614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615 (eval $ac_try) 2>&5
29616 ac_status=$?
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); }; } &&
29619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625
29626 wx_cv_struct_pw_gecos=yes
29627
29628else
29629 echo "$as_me: failed program was:" >&5
29630sed 's/^/| /' conftest.$ac_ext >&5
29631
29632
29633 wx_cv_struct_pw_gecos=no
29634
29635
29636fi
ac1cb8d3 29637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29638
29639
29640fi
29641echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
29642echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
29643
29644if test "$wx_cv_struct_pw_gecos" = "yes"; then
29645 cat >>confdefs.h <<\_ACEOF
29646#define HAVE_PW_GECOS 1
29647_ACEOF
29648
29649fi
29650
29651
29652if test "$wx_cv_sizeof_wchar_t" != "0"; then
29653 cat >>confdefs.h <<\_ACEOF
29654#define wxUSE_WCHAR_T 1
29655_ACEOF
29656
29657
29658 WCSLEN_FOUND=0
29659 WCHAR_LINK=
29660
29661for ac_func in wcslen
29662do
29663as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29664echo "$as_me:$LINENO: checking for $ac_func" >&5
29665echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29666if eval "test \"\${$as_ac_var+set}\" = set"; then
29667 echo $ECHO_N "(cached) $ECHO_C" >&6
29668else
29669 cat >conftest.$ac_ext <<_ACEOF
29670/* confdefs.h. */
29671_ACEOF
29672cat confdefs.h >>conftest.$ac_ext
29673cat >>conftest.$ac_ext <<_ACEOF
29674/* end confdefs.h. */
ac1cb8d3
VS
29675/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29677#define $ac_func innocuous_$ac_func
29678
a848cd7e
SC
29679/* System header to define __stub macros and hopefully few prototypes,
29680 which can conflict with char $ac_func (); below.
29681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29682 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29683
a848cd7e
SC
29684#ifdef __STDC__
29685# include <limits.h>
29686#else
29687# include <assert.h>
29688#endif
ac1cb8d3
VS
29689
29690#undef $ac_func
29691
a848cd7e
SC
29692/* Override any gcc2 internal prototype to avoid an error. */
29693#ifdef __cplusplus
29694extern "C"
29695{
29696#endif
29697/* We use char because int might match the return type of a gcc2
29698 builtin and then its argument prototype would still apply. */
29699char $ac_func ();
29700/* The GNU C library defines this for functions which it implements
29701 to always fail with ENOSYS. Some functions are actually named
29702 something starting with __ and the normal name is an alias. */
29703#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29704choke me
29705#else
29706char (*f) () = $ac_func;
29707#endif
29708#ifdef __cplusplus
29709}
29710#endif
29711
29712int
29713main ()
29714{
29715return f != $ac_func;
29716 ;
29717 return 0;
29718}
29719_ACEOF
29720rm -f conftest.$ac_objext conftest$ac_exeext
29721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29722 (eval $ac_link) 2>conftest.er1
a848cd7e 29723 ac_status=$?
ac1cb8d3
VS
29724 grep -v '^ *+' conftest.er1 >conftest.err
29725 rm -f conftest.er1
29726 cat conftest.err >&5
a848cd7e
SC
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); } &&
ac1cb8d3
VS
29729 { ac_try='test -z "$ac_c_werror_flag"
29730 || test ! -s conftest.err'
29731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29732 (eval $ac_try) 2>&5
29733 ac_status=$?
29734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); }; } &&
29736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29738 (eval $ac_try) 2>&5
29739 ac_status=$?
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); }; }; then
29742 eval "$as_ac_var=yes"
29743else
29744 echo "$as_me: failed program was:" >&5
29745sed 's/^/| /' conftest.$ac_ext >&5
29746
29747eval "$as_ac_var=no"
29748fi
ac1cb8d3
VS
29749rm -f conftest.err conftest.$ac_objext \
29750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29751fi
29752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29753echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29754if test `eval echo '${'$as_ac_var'}'` = yes; then
29755 cat >>confdefs.h <<_ACEOF
29756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29757_ACEOF
29758 WCSLEN_FOUND=1
29759fi
29760done
29761
29762
29763 if test "$WCSLEN_FOUND" = 0; then
29764 if test "$TOOLKIT" = "MSW"; then
29765 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29766echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29767if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29768 echo $ECHO_N "(cached) $ECHO_C" >&6
29769else
29770 ac_check_lib_save_LIBS=$LIBS
29771LIBS="-lmsvcrt $LIBS"
29772cat >conftest.$ac_ext <<_ACEOF
29773/* confdefs.h. */
29774_ACEOF
29775cat confdefs.h >>conftest.$ac_ext
29776cat >>conftest.$ac_ext <<_ACEOF
29777/* end confdefs.h. */
29778
29779/* Override any gcc2 internal prototype to avoid an error. */
29780#ifdef __cplusplus
29781extern "C"
29782#endif
29783/* We use char because int might match the return type of a gcc2
29784 builtin and then its argument prototype would still apply. */
29785char wcslen ();
29786int
29787main ()
29788{
29789wcslen ();
29790 ;
29791 return 0;
29792}
29793_ACEOF
29794rm -f conftest.$ac_objext conftest$ac_exeext
29795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29796 (eval $ac_link) 2>conftest.er1
a848cd7e 29797 ac_status=$?
ac1cb8d3
VS
29798 grep -v '^ *+' conftest.er1 >conftest.err
29799 rm -f conftest.er1
29800 cat conftest.err >&5
a848cd7e
SC
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); } &&
ac1cb8d3
VS
29803 { ac_try='test -z "$ac_c_werror_flag"
29804 || test ! -s conftest.err'
29805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29806 (eval $ac_try) 2>&5
29807 ac_status=$?
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); }; } &&
29810 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29812 (eval $ac_try) 2>&5
29813 ac_status=$?
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); }; }; then
29816 ac_cv_lib_msvcrt_wcslen=yes
29817else
29818 echo "$as_me: failed program was:" >&5
29819sed 's/^/| /' conftest.$ac_ext >&5
29820
29821ac_cv_lib_msvcrt_wcslen=no
29822fi
ac1cb8d3
VS
29823rm -f conftest.err conftest.$ac_objext \
29824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29825LIBS=$ac_check_lib_save_LIBS
29826fi
29827echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29828echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29829if test $ac_cv_lib_msvcrt_wcslen = yes; then
29830 WCHAR_OK=1
29831fi
29832
29833 else
29834 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29835echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29836if test "${ac_cv_lib_w_wcslen+set}" = set; then
29837 echo $ECHO_N "(cached) $ECHO_C" >&6
29838else
29839 ac_check_lib_save_LIBS=$LIBS
29840LIBS="-lw $LIBS"
29841cat >conftest.$ac_ext <<_ACEOF
29842/* confdefs.h. */
29843_ACEOF
29844cat confdefs.h >>conftest.$ac_ext
29845cat >>conftest.$ac_ext <<_ACEOF
29846/* end confdefs.h. */
29847
29848/* Override any gcc2 internal prototype to avoid an error. */
29849#ifdef __cplusplus
29850extern "C"
29851#endif
29852/* We use char because int might match the return type of a gcc2
29853 builtin and then its argument prototype would still apply. */
29854char wcslen ();
29855int
29856main ()
29857{
29858wcslen ();
29859 ;
29860 return 0;
29861}
29862_ACEOF
29863rm -f conftest.$ac_objext conftest$ac_exeext
29864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29865 (eval $ac_link) 2>conftest.er1
a848cd7e 29866 ac_status=$?
ac1cb8d3
VS
29867 grep -v '^ *+' conftest.er1 >conftest.err
29868 rm -f conftest.er1
29869 cat conftest.err >&5
a848cd7e
SC
29870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 (exit $ac_status); } &&
ac1cb8d3
VS
29872 { ac_try='test -z "$ac_c_werror_flag"
29873 || test ! -s conftest.err'
29874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29875 (eval $ac_try) 2>&5
29876 ac_status=$?
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); }; } &&
29879 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29881 (eval $ac_try) 2>&5
29882 ac_status=$?
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); }; }; then
29885 ac_cv_lib_w_wcslen=yes
29886else
29887 echo "$as_me: failed program was:" >&5
29888sed 's/^/| /' conftest.$ac_ext >&5
29889
29890ac_cv_lib_w_wcslen=no
29891fi
ac1cb8d3
VS
29892rm -f conftest.err conftest.$ac_objext \
29893 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29894LIBS=$ac_check_lib_save_LIBS
29895fi
29896echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29897echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29898if test $ac_cv_lib_w_wcslen = yes; then
29899
29900 WCHAR_LINK=" -lw"
29901 WCSLEN_FOUND=1
29902
29903fi
29904
29905 fi
29906 fi
29907
29908 if test "$WCSLEN_FOUND" = 1; then
29909 cat >>confdefs.h <<\_ACEOF
29910#define HAVE_WCSLEN 1
29911_ACEOF
29912
29913 fi
29914
473276a9
VS
29915 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29916 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29917 fi
29918
a848cd7e
SC
29919
29920for ac_func in wcsrtombs
29921do
29922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29923echo "$as_me:$LINENO: checking for $ac_func" >&5
29924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29925if eval "test \"\${$as_ac_var+set}\" = set"; then
29926 echo $ECHO_N "(cached) $ECHO_C" >&6
29927else
29928 cat >conftest.$ac_ext <<_ACEOF
29929/* confdefs.h. */
29930_ACEOF
29931cat confdefs.h >>conftest.$ac_ext
29932cat >>conftest.$ac_ext <<_ACEOF
29933/* end confdefs.h. */
ac1cb8d3
VS
29934/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29936#define $ac_func innocuous_$ac_func
29937
a848cd7e
SC
29938/* System header to define __stub macros and hopefully few prototypes,
29939 which can conflict with char $ac_func (); below.
29940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29941 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29942
a848cd7e
SC
29943#ifdef __STDC__
29944# include <limits.h>
29945#else
29946# include <assert.h>
29947#endif
ac1cb8d3
VS
29948
29949#undef $ac_func
29950
a848cd7e
SC
29951/* Override any gcc2 internal prototype to avoid an error. */
29952#ifdef __cplusplus
29953extern "C"
29954{
29955#endif
29956/* We use char because int might match the return type of a gcc2
29957 builtin and then its argument prototype would still apply. */
29958char $ac_func ();
29959/* The GNU C library defines this for functions which it implements
29960 to always fail with ENOSYS. Some functions are actually named
29961 something starting with __ and the normal name is an alias. */
29962#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29963choke me
29964#else
29965char (*f) () = $ac_func;
29966#endif
29967#ifdef __cplusplus
29968}
29969#endif
29970
29971int
29972main ()
29973{
29974return f != $ac_func;
29975 ;
29976 return 0;
29977}
29978_ACEOF
29979rm -f conftest.$ac_objext conftest$ac_exeext
29980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29981 (eval $ac_link) 2>conftest.er1
a848cd7e 29982 ac_status=$?
ac1cb8d3
VS
29983 grep -v '^ *+' conftest.er1 >conftest.err
29984 rm -f conftest.er1
29985 cat conftest.err >&5
a848cd7e
SC
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); } &&
ac1cb8d3
VS
29988 { ac_try='test -z "$ac_c_werror_flag"
29989 || test ! -s conftest.err'
29990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29991 (eval $ac_try) 2>&5
29992 ac_status=$?
29993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29994 (exit $ac_status); }; } &&
29995 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29997 (eval $ac_try) 2>&5
29998 ac_status=$?
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); }; }; then
30001 eval "$as_ac_var=yes"
30002else
30003 echo "$as_me: failed program was:" >&5
30004sed 's/^/| /' conftest.$ac_ext >&5
30005
30006eval "$as_ac_var=no"
30007fi
ac1cb8d3
VS
30008rm -f conftest.err conftest.$ac_objext \
30009 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30010fi
30011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30012echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30013if test `eval echo '${'$as_ac_var'}'` = yes; then
30014 cat >>confdefs.h <<_ACEOF
30015#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30016_ACEOF
30017
30018fi
30019done
30020
30021else
30022 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30023echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30024fi
30025
30026
30027
30028ac_ext=cc
30029ac_cpp='$CXXCPP $CPPFLAGS'
30030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30033
30034
30035
30036for ac_func in vsnprintf
30037do
30038as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30039echo "$as_me:$LINENO: checking for $ac_func" >&5
30040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30041if eval "test \"\${$as_ac_var+set}\" = set"; then
30042 echo $ECHO_N "(cached) $ECHO_C" >&6
30043else
30044 cat >conftest.$ac_ext <<_ACEOF
30045/* confdefs.h. */
30046_ACEOF
30047cat confdefs.h >>conftest.$ac_ext
30048cat >>conftest.$ac_ext <<_ACEOF
30049/* end confdefs.h. */
ac1cb8d3
VS
30050/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30052#define $ac_func innocuous_$ac_func
30053
a848cd7e
SC
30054/* System header to define __stub macros and hopefully few prototypes,
30055 which can conflict with char $ac_func (); below.
30056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30057 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30058
a848cd7e
SC
30059#ifdef __STDC__
30060# include <limits.h>
30061#else
30062# include <assert.h>
30063#endif
ac1cb8d3
VS
30064
30065#undef $ac_func
30066
a848cd7e
SC
30067/* Override any gcc2 internal prototype to avoid an error. */
30068#ifdef __cplusplus
30069extern "C"
30070{
30071#endif
30072/* We use char because int might match the return type of a gcc2
30073 builtin and then its argument prototype would still apply. */
30074char $ac_func ();
30075/* The GNU C library defines this for functions which it implements
30076 to always fail with ENOSYS. Some functions are actually named
30077 something starting with __ and the normal name is an alias. */
30078#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30079choke me
30080#else
30081char (*f) () = $ac_func;
30082#endif
30083#ifdef __cplusplus
30084}
30085#endif
30086
30087int
30088main ()
30089{
30090return f != $ac_func;
30091 ;
30092 return 0;
30093}
30094_ACEOF
30095rm -f conftest.$ac_objext conftest$ac_exeext
30096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30097 (eval $ac_link) 2>conftest.er1
a848cd7e 30098 ac_status=$?
ac1cb8d3
VS
30099 grep -v '^ *+' conftest.er1 >conftest.err
30100 rm -f conftest.er1
30101 cat conftest.err >&5
a848cd7e
SC
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); } &&
ac1cb8d3
VS
30104 { ac_try='test -z "$ac_cxx_werror_flag"
30105 || test ! -s conftest.err'
30106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107 (eval $ac_try) 2>&5
30108 ac_status=$?
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; } &&
30111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30113 (eval $ac_try) 2>&5
30114 ac_status=$?
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); }; }; then
30117 eval "$as_ac_var=yes"
30118else
30119 echo "$as_me: failed program was:" >&5
30120sed 's/^/| /' conftest.$ac_ext >&5
30121
30122eval "$as_ac_var=no"
30123fi
ac1cb8d3
VS
30124rm -f conftest.err conftest.$ac_objext \
30125 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30126fi
30127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30128echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30129if test `eval echo '${'$as_ac_var'}'` = yes; then
30130 cat >>confdefs.h <<_ACEOF
30131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30132_ACEOF
30133
30134fi
30135done
30136
30137
30138if test "$ac_cv_func_vsnprintf" = "yes"; then
30139 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30140echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30141if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30142 echo $ECHO_N "(cached) $ECHO_C" >&6
30143else
30144
30145 cat >conftest.$ac_ext <<_ACEOF
30146/* confdefs.h. */
30147_ACEOF
30148cat confdefs.h >>conftest.$ac_ext
30149cat >>conftest.$ac_ext <<_ACEOF
30150/* end confdefs.h. */
30151
30152 #include <stdio.h>
30153 #include <stdarg.h>
30154
30155int
30156main ()
30157{
30158
30159 char *buf;
30160 va_list ap;
30161 vsnprintf(buf, 10u, "%s", ap);
30162
30163 ;
30164 return 0;
30165}
30166_ACEOF
30167rm -f conftest.$ac_objext
30168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30169 (eval $ac_compile) 2>conftest.er1
a848cd7e 30170 ac_status=$?
ac1cb8d3
VS
30171 grep -v '^ *+' conftest.er1 >conftest.err
30172 rm -f conftest.er1
30173 cat conftest.err >&5
a848cd7e
SC
30174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); } &&
ac1cb8d3
VS
30176 { ac_try='test -z "$ac_cxx_werror_flag"
30177 || test ! -s conftest.err'
30178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30179 (eval $ac_try) 2>&5
30180 ac_status=$?
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); }; } &&
30183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30185 (eval $ac_try) 2>&5
30186 ac_status=$?
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); }; }; then
30189 wx_cv_func_vsnprintf_decl=yes
30190else
30191 echo "$as_me: failed program was:" >&5
30192sed 's/^/| /' conftest.$ac_ext >&5
30193
30194wx_cv_func_vsnprintf_decl=no
30195
30196fi
ac1cb8d3 30197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30198
30199
30200fi
30201echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30202echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30203
30204 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30205 cat >>confdefs.h <<\_ACEOF
30206#define HAVE_VSNPRINTF_DECL 1
30207_ACEOF
30208
30209 fi
30210fi
30211
30212if test "$wxUSE_UNICODE" = yes; then
30213
30214
30215
fbe47c7b
VS
30216
30217
30218
30219for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
30220do
30221as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30222echo "$as_me:$LINENO: checking for $ac_func" >&5
30223echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30224if eval "test \"\${$as_ac_var+set}\" = set"; then
30225 echo $ECHO_N "(cached) $ECHO_C" >&6
30226else
30227 cat >conftest.$ac_ext <<_ACEOF
30228/* confdefs.h. */
30229_ACEOF
30230cat confdefs.h >>conftest.$ac_ext
30231cat >>conftest.$ac_ext <<_ACEOF
30232/* end confdefs.h. */
ac1cb8d3
VS
30233/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30235#define $ac_func innocuous_$ac_func
30236
a848cd7e
SC
30237/* System header to define __stub macros and hopefully few prototypes,
30238 which can conflict with char $ac_func (); below.
30239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30240 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30241
a848cd7e
SC
30242#ifdef __STDC__
30243# include <limits.h>
30244#else
30245# include <assert.h>
30246#endif
ac1cb8d3
VS
30247
30248#undef $ac_func
30249
a848cd7e
SC
30250/* Override any gcc2 internal prototype to avoid an error. */
30251#ifdef __cplusplus
30252extern "C"
30253{
30254#endif
30255/* We use char because int might match the return type of a gcc2
30256 builtin and then its argument prototype would still apply. */
30257char $ac_func ();
30258/* The GNU C library defines this for functions which it implements
30259 to always fail with ENOSYS. Some functions are actually named
30260 something starting with __ and the normal name is an alias. */
30261#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30262choke me
30263#else
30264char (*f) () = $ac_func;
30265#endif
30266#ifdef __cplusplus
30267}
30268#endif
30269
30270int
30271main ()
30272{
30273return f != $ac_func;
30274 ;
30275 return 0;
30276}
30277_ACEOF
30278rm -f conftest.$ac_objext conftest$ac_exeext
30279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30280 (eval $ac_link) 2>conftest.er1
a848cd7e 30281 ac_status=$?
ac1cb8d3
VS
30282 grep -v '^ *+' conftest.er1 >conftest.err
30283 rm -f conftest.er1
30284 cat conftest.err >&5
a848cd7e
SC
30285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286 (exit $ac_status); } &&
ac1cb8d3
VS
30287 { ac_try='test -z "$ac_cxx_werror_flag"
30288 || test ! -s conftest.err'
30289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30290 (eval $ac_try) 2>&5
30291 ac_status=$?
30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); }; } &&
30294 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30296 (eval $ac_try) 2>&5
30297 ac_status=$?
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); }; }; then
30300 eval "$as_ac_var=yes"
30301else
30302 echo "$as_me: failed program was:" >&5
30303sed 's/^/| /' conftest.$ac_ext >&5
30304
30305eval "$as_ac_var=no"
30306fi
ac1cb8d3
VS
30307rm -f conftest.err conftest.$ac_objext \
30308 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30309fi
30310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30311echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30312if test `eval echo '${'$as_ac_var'}'` = yes; then
30313 cat >>confdefs.h <<_ACEOF
30314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30315_ACEOF
30316
30317fi
30318done
30319
30320
30321 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30322echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30323 cat >conftest.$ac_ext <<_ACEOF
30324/* confdefs.h. */
30325_ACEOF
30326cat confdefs.h >>conftest.$ac_ext
30327cat >>conftest.$ac_ext <<_ACEOF
30328/* end confdefs.h. */
30329#include <wchar.h>
30330int
30331main ()
30332{
30333&_vsnwprintf;
30334 ;
30335 return 0;
30336}
30337_ACEOF
30338rm -f conftest.$ac_objext
30339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30340 (eval $ac_compile) 2>conftest.er1
a848cd7e 30341 ac_status=$?
ac1cb8d3
VS
30342 grep -v '^ *+' conftest.er1 >conftest.err
30343 rm -f conftest.er1
30344 cat conftest.err >&5
a848cd7e
SC
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346 (exit $ac_status); } &&
ac1cb8d3
VS
30347 { ac_try='test -z "$ac_cxx_werror_flag"
30348 || test ! -s conftest.err'
30349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30350 (eval $ac_try) 2>&5
30351 ac_status=$?
30352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353 (exit $ac_status); }; } &&
30354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30356 (eval $ac_try) 2>&5
30357 ac_status=$?
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); }; }; then
30360 echo "$as_me:$LINENO: result: yes" >&5
30361echo "${ECHO_T}yes" >&6
30362 cat >>confdefs.h <<\_ACEOF
30363#define HAVE__VSNWPRINTF 1
30364_ACEOF
30365
30366else
30367 echo "$as_me: failed program was:" >&5
30368sed 's/^/| /' conftest.$ac_ext >&5
30369
30370echo "$as_me:$LINENO: result: no" >&5
30371echo "${ECHO_T}no" >&6
30372fi
ac1cb8d3 30373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
30374fi
30375
30376ac_ext=c
30377ac_cpp='$CPP $CPPFLAGS'
30378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30380ac_compiler_gnu=$ac_cv_c_compiler_gnu
30381
30382
30383
30384
30385if test "$TOOLKIT" != "MSW"; then
30386
30387
30388
30389
30390ac_ext=cc
30391ac_cpp='$CXXCPP $CPPFLAGS'
30392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30395
30396
30397
30398
30399# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
30400if test "${with_libiconv_prefix+set}" = set; then
30401 withval="$with_libiconv_prefix"
30402
30403 for dir in `echo "$withval" | tr : ' '`; do
30404 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
30405 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
30406 done
30407
30408fi;
30409
30410 echo "$as_me:$LINENO: checking for iconv" >&5
30411echo $ECHO_N "checking for iconv... $ECHO_C" >&6
30412if test "${am_cv_func_iconv+set}" = set; then
30413 echo $ECHO_N "(cached) $ECHO_C" >&6
30414else
30415
30416 am_cv_func_iconv="no, consider installing GNU libiconv"
30417 am_cv_lib_iconv=no
30418 cat >conftest.$ac_ext <<_ACEOF
30419/* confdefs.h. */
30420_ACEOF
30421cat confdefs.h >>conftest.$ac_ext
30422cat >>conftest.$ac_ext <<_ACEOF
30423/* end confdefs.h. */
30424#include <stdlib.h>
30425#include <iconv.h>
30426int
30427main ()
30428{
30429iconv_t cd = iconv_open("","");
30430 iconv(cd,NULL,NULL,NULL,NULL);
30431 iconv_close(cd);
30432 ;
30433 return 0;
30434}
30435_ACEOF
30436rm -f conftest.$ac_objext conftest$ac_exeext
30437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30438 (eval $ac_link) 2>conftest.er1
a848cd7e 30439 ac_status=$?
ac1cb8d3
VS
30440 grep -v '^ *+' conftest.er1 >conftest.err
30441 rm -f conftest.er1
30442 cat conftest.err >&5
a848cd7e
SC
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); } &&
ac1cb8d3
VS
30445 { ac_try='test -z "$ac_cxx_werror_flag"
30446 || test ! -s conftest.err'
30447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30448 (eval $ac_try) 2>&5
30449 ac_status=$?
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); }; } &&
30452 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30454 (eval $ac_try) 2>&5
30455 ac_status=$?
30456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457 (exit $ac_status); }; }; then
30458 am_cv_func_iconv=yes
30459else
30460 echo "$as_me: failed program was:" >&5
30461sed 's/^/| /' conftest.$ac_ext >&5
30462
30463fi
ac1cb8d3
VS
30464rm -f conftest.err conftest.$ac_objext \
30465 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30466 if test "$am_cv_func_iconv" != yes; then
30467 am_save_LIBS="$LIBS"
30468 LIBS="$LIBS -liconv"
30469 cat >conftest.$ac_ext <<_ACEOF
30470/* confdefs.h. */
30471_ACEOF
30472cat confdefs.h >>conftest.$ac_ext
30473cat >>conftest.$ac_ext <<_ACEOF
30474/* end confdefs.h. */
30475#include <stdlib.h>
30476#include <iconv.h>
30477int
30478main ()
30479{
30480iconv_t cd = iconv_open("","");
30481 iconv(cd,NULL,NULL,NULL,NULL);
30482 iconv_close(cd);
30483 ;
30484 return 0;
30485}
30486_ACEOF
30487rm -f conftest.$ac_objext conftest$ac_exeext
30488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30489 (eval $ac_link) 2>conftest.er1
a848cd7e 30490 ac_status=$?
ac1cb8d3
VS
30491 grep -v '^ *+' conftest.er1 >conftest.err
30492 rm -f conftest.er1
30493 cat conftest.err >&5
a848cd7e
SC
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); } &&
ac1cb8d3
VS
30496 { ac_try='test -z "$ac_cxx_werror_flag"
30497 || test ! -s conftest.err'
30498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30499 (eval $ac_try) 2>&5
30500 ac_status=$?
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); }; } &&
30503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30505 (eval $ac_try) 2>&5
30506 ac_status=$?
30507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); }; }; then
30509 am_cv_lib_iconv=yes
30510 am_cv_func_iconv=yes
30511else
30512 echo "$as_me: failed program was:" >&5
30513sed 's/^/| /' conftest.$ac_ext >&5
30514
30515fi
ac1cb8d3
VS
30516rm -f conftest.err conftest.$ac_objext \
30517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30518 LIBS="$am_save_LIBS"
30519 fi
30520
30521fi
30522echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
30523echo "${ECHO_T}$am_cv_func_iconv" >&6
30524 if test "$am_cv_func_iconv" = yes; then
30525
30526cat >>confdefs.h <<\_ACEOF
30527#define HAVE_ICONV 1
30528_ACEOF
30529
30530 echo "$as_me:$LINENO: checking if iconv needs const" >&5
30531echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
30532if test "${wx_cv_func_iconv_const+set}" = set; then
30533 echo $ECHO_N "(cached) $ECHO_C" >&6
30534else
30535 cat >conftest.$ac_ext <<_ACEOF
30536/* confdefs.h. */
30537_ACEOF
30538cat confdefs.h >>conftest.$ac_ext
30539cat >>conftest.$ac_ext <<_ACEOF
30540/* end confdefs.h. */
30541
30542#include <stdlib.h>
30543#include <iconv.h>
30544extern
30545#ifdef __cplusplus
30546"C"
30547#endif
30548#if defined(__STDC__) || defined(__cplusplus)
30549size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
30550#else
30551size_t iconv();
30552#endif
30553
30554int
30555main ()
30556{
30557
30558 ;
30559 return 0;
30560}
30561_ACEOF
30562rm -f conftest.$ac_objext
30563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30564 (eval $ac_compile) 2>conftest.er1
a848cd7e 30565 ac_status=$?
ac1cb8d3
VS
30566 grep -v '^ *+' conftest.er1 >conftest.err
30567 rm -f conftest.er1
30568 cat conftest.err >&5
a848cd7e
SC
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); } &&
ac1cb8d3
VS
30571 { ac_try='test -z "$ac_cxx_werror_flag"
30572 || test ! -s conftest.err'
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); }; } &&
30578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30580 (eval $ac_try) 2>&5
30581 ac_status=$?
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); }; }; then
30584 wx_cv_func_iconv_const="no"
30585else
30586 echo "$as_me: failed program was:" >&5
30587sed 's/^/| /' conftest.$ac_ext >&5
30588
30589wx_cv_func_iconv_const="yes"
30590
30591fi
ac1cb8d3 30592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30593
30594fi
30595echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
30596echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
30597
30598 iconv_const=
30599 if test "x$wx_cv_func_iconv_const" = "xyes"; then
30600 iconv_const="const"
30601 fi
30602
30603
30604cat >>confdefs.h <<_ACEOF
30605#define ICONV_CONST $iconv_const
30606_ACEOF
30607
30608 fi
30609 LIBICONV=
30610 if test "$am_cv_lib_iconv" = yes; then
30611 LIBICONV="-liconv"
30612 fi
30613
30614
30615LIBS="$LIBICONV $LIBS"
30616ac_ext=c
30617ac_cpp='$CPP $CPPFLAGS'
30618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30620ac_compiler_gnu=$ac_cv_c_compiler_gnu
30621
30622
30623if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30624
30625for ac_func in sigaction
30626do
30627as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30628echo "$as_me:$LINENO: checking for $ac_func" >&5
30629echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30630if eval "test \"\${$as_ac_var+set}\" = set"; then
30631 echo $ECHO_N "(cached) $ECHO_C" >&6
30632else
30633 cat >conftest.$ac_ext <<_ACEOF
30634/* confdefs.h. */
30635_ACEOF
30636cat confdefs.h >>conftest.$ac_ext
30637cat >>conftest.$ac_ext <<_ACEOF
30638/* end confdefs.h. */
ac1cb8d3
VS
30639/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30641#define $ac_func innocuous_$ac_func
30642
a848cd7e
SC
30643/* System header to define __stub macros and hopefully few prototypes,
30644 which can conflict with char $ac_func (); below.
30645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30646 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30647
a848cd7e
SC
30648#ifdef __STDC__
30649# include <limits.h>
30650#else
30651# include <assert.h>
30652#endif
ac1cb8d3
VS
30653
30654#undef $ac_func
30655
a848cd7e
SC
30656/* Override any gcc2 internal prototype to avoid an error. */
30657#ifdef __cplusplus
30658extern "C"
30659{
30660#endif
30661/* We use char because int might match the return type of a gcc2
30662 builtin and then its argument prototype would still apply. */
30663char $ac_func ();
30664/* The GNU C library defines this for functions which it implements
30665 to always fail with ENOSYS. Some functions are actually named
30666 something starting with __ and the normal name is an alias. */
30667#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30668choke me
30669#else
30670char (*f) () = $ac_func;
30671#endif
30672#ifdef __cplusplus
30673}
30674#endif
30675
30676int
30677main ()
30678{
30679return f != $ac_func;
30680 ;
30681 return 0;
30682}
30683_ACEOF
30684rm -f conftest.$ac_objext conftest$ac_exeext
30685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30686 (eval $ac_link) 2>conftest.er1
a848cd7e 30687 ac_status=$?
ac1cb8d3
VS
30688 grep -v '^ *+' conftest.er1 >conftest.err
30689 rm -f conftest.er1
30690 cat conftest.err >&5
a848cd7e
SC
30691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692 (exit $ac_status); } &&
ac1cb8d3
VS
30693 { ac_try='test -z "$ac_c_werror_flag"
30694 || test ! -s conftest.err'
30695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30696 (eval $ac_try) 2>&5
30697 ac_status=$?
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); }; } &&
30700 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30702 (eval $ac_try) 2>&5
30703 ac_status=$?
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); }; }; then
30706 eval "$as_ac_var=yes"
30707else
30708 echo "$as_me: failed program was:" >&5
30709sed 's/^/| /' conftest.$ac_ext >&5
30710
30711eval "$as_ac_var=no"
30712fi
ac1cb8d3
VS
30713rm -f conftest.err conftest.$ac_objext \
30714 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30715fi
30716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30717echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30718if test `eval echo '${'$as_ac_var'}'` = yes; then
30719 cat >>confdefs.h <<_ACEOF
30720#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30721_ACEOF
30722
30723fi
30724done
30725
30726
30727 if test "$ac_cv_func_sigaction" = "no"; then
30728 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30729echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30730 wxUSE_ON_FATAL_EXCEPTION=no
30731 fi
30732
30733 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30734
30735
30736 ac_ext=cc
30737ac_cpp='$CXXCPP $CPPFLAGS'
30738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30741
30742
30743 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30744echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30745if test "${wx_cv_type_sa_handler+set}" = set; then
30746 echo $ECHO_N "(cached) $ECHO_C" >&6
30747else
30748
30749 cat >conftest.$ac_ext <<_ACEOF
30750/* confdefs.h. */
30751_ACEOF
30752cat confdefs.h >>conftest.$ac_ext
30753cat >>conftest.$ac_ext <<_ACEOF
30754/* end confdefs.h. */
30755#include <signal.h>
30756int
30757main ()
30758{
30759
30760 extern void testSigHandler(int);
30761
30762 struct sigaction sa;
30763 sa.sa_handler = testSigHandler;
30764
30765 ;
30766 return 0;
30767}
30768_ACEOF
30769rm -f conftest.$ac_objext
30770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30771 (eval $ac_compile) 2>conftest.er1
a848cd7e 30772 ac_status=$?
ac1cb8d3
VS
30773 grep -v '^ *+' conftest.er1 >conftest.err
30774 rm -f conftest.er1
30775 cat conftest.err >&5
a848cd7e
SC
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); } &&
ac1cb8d3
VS
30778 { ac_try='test -z "$ac_cxx_werror_flag"
30779 || test ! -s conftest.err'
30780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30781 (eval $ac_try) 2>&5
30782 ac_status=$?
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); }; } &&
30785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30787 (eval $ac_try) 2>&5
30788 ac_status=$?
30789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790 (exit $ac_status); }; }; then
30791
30792 wx_cv_type_sa_handler=int
30793
30794else
30795 echo "$as_me: failed program was:" >&5
30796sed 's/^/| /' conftest.$ac_ext >&5
30797
30798
30799 wx_cv_type_sa_handler=void
30800
30801fi
ac1cb8d3 30802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30803
30804fi
30805echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30806echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30807
30808 ac_ext=c
30809ac_cpp='$CPP $CPPFLAGS'
30810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30812ac_compiler_gnu=$ac_cv_c_compiler_gnu
30813
30814
30815 cat >>confdefs.h <<_ACEOF
30816#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30817_ACEOF
30818
30819 fi
30820fi
30821
30822
30823
30824for ac_func in mkstemp mktemp
30825do
30826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30827echo "$as_me:$LINENO: checking for $ac_func" >&5
30828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30829if eval "test \"\${$as_ac_var+set}\" = set"; then
30830 echo $ECHO_N "(cached) $ECHO_C" >&6
30831else
30832 cat >conftest.$ac_ext <<_ACEOF
30833/* confdefs.h. */
30834_ACEOF
30835cat confdefs.h >>conftest.$ac_ext
30836cat >>conftest.$ac_ext <<_ACEOF
30837/* end confdefs.h. */
ac1cb8d3
VS
30838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30840#define $ac_func innocuous_$ac_func
30841
a848cd7e
SC
30842/* System header to define __stub macros and hopefully few prototypes,
30843 which can conflict with char $ac_func (); below.
30844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30845 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30846
a848cd7e
SC
30847#ifdef __STDC__
30848# include <limits.h>
30849#else
30850# include <assert.h>
30851#endif
ac1cb8d3
VS
30852
30853#undef $ac_func
30854
a848cd7e
SC
30855/* Override any gcc2 internal prototype to avoid an error. */
30856#ifdef __cplusplus
30857extern "C"
30858{
30859#endif
30860/* We use char because int might match the return type of a gcc2
30861 builtin and then its argument prototype would still apply. */
30862char $ac_func ();
30863/* The GNU C library defines this for functions which it implements
30864 to always fail with ENOSYS. Some functions are actually named
30865 something starting with __ and the normal name is an alias. */
30866#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30867choke me
30868#else
30869char (*f) () = $ac_func;
30870#endif
30871#ifdef __cplusplus
30872}
30873#endif
30874
30875int
30876main ()
30877{
30878return f != $ac_func;
30879 ;
30880 return 0;
30881}
30882_ACEOF
30883rm -f conftest.$ac_objext conftest$ac_exeext
30884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30885 (eval $ac_link) 2>conftest.er1
a848cd7e 30886 ac_status=$?
ac1cb8d3
VS
30887 grep -v '^ *+' conftest.er1 >conftest.err
30888 rm -f conftest.er1
30889 cat conftest.err >&5
a848cd7e
SC
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); } &&
ac1cb8d3
VS
30892 { ac_try='test -z "$ac_c_werror_flag"
30893 || test ! -s conftest.err'
30894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30895 (eval $ac_try) 2>&5
30896 ac_status=$?
30897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); }; } &&
30899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30901 (eval $ac_try) 2>&5
30902 ac_status=$?
30903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904 (exit $ac_status); }; }; then
30905 eval "$as_ac_var=yes"
30906else
30907 echo "$as_me: failed program was:" >&5
30908sed 's/^/| /' conftest.$ac_ext >&5
30909
30910eval "$as_ac_var=no"
30911fi
ac1cb8d3
VS
30912rm -f conftest.err conftest.$ac_objext \
30913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30914fi
30915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30917if test `eval echo '${'$as_ac_var'}'` = yes; then
30918 cat >>confdefs.h <<_ACEOF
30919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30920_ACEOF
30921 break
30922fi
30923done
30924
30925
30926echo "$as_me:$LINENO: checking for statfs" >&5
30927echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30928if test "${wx_cv_func_statfs+set}" = set; then
30929 echo $ECHO_N "(cached) $ECHO_C" >&6
30930else
30931 cat >conftest.$ac_ext <<_ACEOF
30932/* confdefs.h. */
30933_ACEOF
30934cat confdefs.h >>conftest.$ac_ext
30935cat >>conftest.$ac_ext <<_ACEOF
30936/* end confdefs.h. */
30937
30938 #if defined(__BSD__)
30939 #include <sys/param.h>
30940 #include <sys/mount.h>
30941 #else
30942 #include <sys/vfs.h>
30943 #endif
30944
30945int
30946main ()
30947{
30948
30949 long l;
30950 struct statfs fs;
30951 statfs("/", &fs);
30952 l = fs.f_bsize;
30953 l += fs.f_blocks;
30954 l += fs.f_bavail;
30955
30956 ;
30957 return 0;
30958}
30959_ACEOF
30960rm -f conftest.$ac_objext
30961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30962 (eval $ac_compile) 2>conftest.er1
a848cd7e 30963 ac_status=$?
ac1cb8d3
VS
30964 grep -v '^ *+' conftest.er1 >conftest.err
30965 rm -f conftest.er1
30966 cat conftest.err >&5
a848cd7e
SC
30967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968 (exit $ac_status); } &&
ac1cb8d3
VS
30969 { ac_try='test -z "$ac_c_werror_flag"
30970 || test ! -s conftest.err'
30971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30972 (eval $ac_try) 2>&5
30973 ac_status=$?
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); }; } &&
30976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30978 (eval $ac_try) 2>&5
30979 ac_status=$?
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); }; }; then
30982
30983 wx_cv_func_statfs=yes
30984
30985else
30986 echo "$as_me: failed program was:" >&5
30987sed 's/^/| /' conftest.$ac_ext >&5
30988
30989
30990 wx_cv_func_statfs=no
30991
30992
30993fi
ac1cb8d3 30994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30995
30996fi
30997echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30998echo "${ECHO_T}$wx_cv_func_statfs" >&6
30999
31000if test "$wx_cv_func_statfs" = "yes"; then
31001 wx_cv_type_statvfs_t="struct statfs"
31002 cat >>confdefs.h <<\_ACEOF
31003#define HAVE_STATFS 1
31004_ACEOF
31005
31006else
31007 echo "$as_me:$LINENO: checking for statvfs" >&5
31008echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31009if test "${wx_cv_func_statvfs+set}" = set; then
31010 echo $ECHO_N "(cached) $ECHO_C" >&6
31011else
31012 cat >conftest.$ac_ext <<_ACEOF
31013/* confdefs.h. */
31014_ACEOF
31015cat confdefs.h >>conftest.$ac_ext
31016cat >>conftest.$ac_ext <<_ACEOF
31017/* end confdefs.h. */
31018
31019 #include <stddef.h>
31020 #include <sys/statvfs.h>
31021
31022int
31023main ()
31024{
31025
31026 statvfs("/", NULL);
31027
31028 ;
31029 return 0;
31030}
31031_ACEOF
31032rm -f conftest.$ac_objext
31033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31034 (eval $ac_compile) 2>conftest.er1
a848cd7e 31035 ac_status=$?
ac1cb8d3
VS
31036 grep -v '^ *+' conftest.er1 >conftest.err
31037 rm -f conftest.er1
31038 cat conftest.err >&5
a848cd7e
SC
31039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040 (exit $ac_status); } &&
ac1cb8d3
VS
31041 { ac_try='test -z "$ac_c_werror_flag"
31042 || test ! -s conftest.err'
31043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31044 (eval $ac_try) 2>&5
31045 ac_status=$?
31046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047 (exit $ac_status); }; } &&
31048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31050 (eval $ac_try) 2>&5
31051 ac_status=$?
31052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053 (exit $ac_status); }; }; then
31054 wx_cv_func_statvfs=yes
31055else
31056 echo "$as_me: failed program was:" >&5
31057sed 's/^/| /' conftest.$ac_ext >&5
31058
31059wx_cv_func_statvfs=no
31060
31061fi
ac1cb8d3 31062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31063
31064fi
31065echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31066echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31067
31068 if test "$wx_cv_func_statvfs" = "yes"; then
31069
31070
31071 ac_ext=cc
31072ac_cpp='$CXXCPP $CPPFLAGS'
31073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31076
31077
31078 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31079echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31080if test "${wx_cv_type_statvfs_t+set}" = set; then
31081 echo $ECHO_N "(cached) $ECHO_C" >&6
31082else
31083 cat >conftest.$ac_ext <<_ACEOF
31084/* confdefs.h. */
31085_ACEOF
31086cat confdefs.h >>conftest.$ac_ext
31087cat >>conftest.$ac_ext <<_ACEOF
31088/* end confdefs.h. */
31089
31090 #include <sys/statvfs.h>
31091
31092int
31093main ()
31094{
31095
31096 long l;
31097 statvfs_t fs;
31098 statvfs("/", &fs);
31099 l = fs.f_bsize;
31100 l += fs.f_blocks;
31101 l += fs.f_bavail;
31102
31103 ;
31104 return 0;
31105}
31106_ACEOF
31107rm -f conftest.$ac_objext
31108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31109 (eval $ac_compile) 2>conftest.er1
a848cd7e 31110 ac_status=$?
ac1cb8d3
VS
31111 grep -v '^ *+' conftest.er1 >conftest.err
31112 rm -f conftest.er1
31113 cat conftest.err >&5
a848cd7e
SC
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); } &&
ac1cb8d3
VS
31116 { ac_try='test -z "$ac_cxx_werror_flag"
31117 || test ! -s conftest.err'
31118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31119 (eval $ac_try) 2>&5
31120 ac_status=$?
31121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122 (exit $ac_status); }; } &&
31123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31125 (eval $ac_try) 2>&5
31126 ac_status=$?
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128 (exit $ac_status); }; }; then
31129 wx_cv_type_statvfs_t=statvfs_t
31130else
31131 echo "$as_me: failed program was:" >&5
31132sed 's/^/| /' conftest.$ac_ext >&5
31133
31134
31135 cat >conftest.$ac_ext <<_ACEOF
31136/* confdefs.h. */
31137_ACEOF
31138cat confdefs.h >>conftest.$ac_ext
31139cat >>conftest.$ac_ext <<_ACEOF
31140/* end confdefs.h. */
31141
31142 #include <sys/statvfs.h>
31143
31144int
31145main ()
31146{
31147
31148 long l;
31149 struct statvfs fs;
31150 statvfs("/", &fs);
31151 l = fs.f_bsize;
31152 l += fs.f_blocks;
31153 l += fs.f_bavail;
31154
31155 ;
31156 return 0;
31157}
31158_ACEOF
31159rm -f conftest.$ac_objext
31160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31161 (eval $ac_compile) 2>conftest.er1
a848cd7e 31162 ac_status=$?
ac1cb8d3
VS
31163 grep -v '^ *+' conftest.er1 >conftest.err
31164 rm -f conftest.er1
31165 cat conftest.err >&5
a848cd7e
SC
31166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31167 (exit $ac_status); } &&
ac1cb8d3
VS
31168 { ac_try='test -z "$ac_cxx_werror_flag"
31169 || test ! -s conftest.err'
31170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31171 (eval $ac_try) 2>&5
31172 ac_status=$?
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); }; } &&
31175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31177 (eval $ac_try) 2>&5
31178 ac_status=$?
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); }; }; then
31181 wx_cv_type_statvfs_t="struct statvfs"
31182else
31183 echo "$as_me: failed program was:" >&5
31184sed 's/^/| /' conftest.$ac_ext >&5
31185
31186wx_cv_type_statvfs_t="unknown"
31187
31188fi
ac1cb8d3 31189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31190
31191
31192fi
ac1cb8d3 31193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31194
31195fi
31196echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
31197echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
31198
31199 ac_ext=c
31200ac_cpp='$CPP $CPPFLAGS'
31201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31203ac_compiler_gnu=$ac_cv_c_compiler_gnu
31204
31205
31206 if test "$wx_cv_type_statvfs_t" != "unknown"; then
31207 cat >>confdefs.h <<\_ACEOF
31208#define HAVE_STATVFS 1
31209_ACEOF
31210
31211 fi
31212 else
31213 wx_cv_type_statvfs_t="unknown"
31214 fi
31215fi
31216
31217if test "$wx_cv_type_statvfs_t" != "unknown"; then
31218 cat >>confdefs.h <<_ACEOF
31219#define WX_STATFS_T $wx_cv_type_statvfs_t
31220_ACEOF
31221
31222else
31223 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
31224echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
31225fi
31226
31227if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
31228
31229
31230for ac_func in fcntl flock
31231do
31232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31233echo "$as_me:$LINENO: checking for $ac_func" >&5
31234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31235if eval "test \"\${$as_ac_var+set}\" = set"; then
31236 echo $ECHO_N "(cached) $ECHO_C" >&6
31237else
31238 cat >conftest.$ac_ext <<_ACEOF
31239/* confdefs.h. */
31240_ACEOF
31241cat confdefs.h >>conftest.$ac_ext
31242cat >>conftest.$ac_ext <<_ACEOF
31243/* end confdefs.h. */
ac1cb8d3
VS
31244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31246#define $ac_func innocuous_$ac_func
31247
a848cd7e
SC
31248/* System header to define __stub macros and hopefully few prototypes,
31249 which can conflict with char $ac_func (); below.
31250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31251 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31252
a848cd7e
SC
31253#ifdef __STDC__
31254# include <limits.h>
31255#else
31256# include <assert.h>
31257#endif
ac1cb8d3
VS
31258
31259#undef $ac_func
31260
a848cd7e
SC
31261/* Override any gcc2 internal prototype to avoid an error. */
31262#ifdef __cplusplus
31263extern "C"
31264{
31265#endif
31266/* We use char because int might match the return type of a gcc2
31267 builtin and then its argument prototype would still apply. */
31268char $ac_func ();
31269/* The GNU C library defines this for functions which it implements
31270 to always fail with ENOSYS. Some functions are actually named
31271 something starting with __ and the normal name is an alias. */
31272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31273choke me
31274#else
31275char (*f) () = $ac_func;
31276#endif
31277#ifdef __cplusplus
31278}
31279#endif
31280
31281int
31282main ()
31283{
31284return f != $ac_func;
31285 ;
31286 return 0;
31287}
31288_ACEOF
31289rm -f conftest.$ac_objext conftest$ac_exeext
31290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31291 (eval $ac_link) 2>conftest.er1
a848cd7e 31292 ac_status=$?
ac1cb8d3
VS
31293 grep -v '^ *+' conftest.er1 >conftest.err
31294 rm -f conftest.er1
31295 cat conftest.err >&5
a848cd7e
SC
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); } &&
ac1cb8d3
VS
31298 { ac_try='test -z "$ac_c_werror_flag"
31299 || test ! -s conftest.err'
31300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31301 (eval $ac_try) 2>&5
31302 ac_status=$?
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); }; } &&
31305 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31307 (eval $ac_try) 2>&5
31308 ac_status=$?
31309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 (exit $ac_status); }; }; then
31311 eval "$as_ac_var=yes"
31312else
31313 echo "$as_me: failed program was:" >&5
31314sed 's/^/| /' conftest.$ac_ext >&5
31315
31316eval "$as_ac_var=no"
31317fi
ac1cb8d3
VS
31318rm -f conftest.err conftest.$ac_objext \
31319 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31320fi
31321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31323if test `eval echo '${'$as_ac_var'}'` = yes; then
31324 cat >>confdefs.h <<_ACEOF
31325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31326_ACEOF
31327 break
31328fi
31329done
31330
31331
31332 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
31333 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
31334echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
31335 wxUSE_SNGLINST_CHECKER=no
31336 fi
31337fi
31338
31339
31340for ac_func in timegm
31341do
31342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31343echo "$as_me:$LINENO: checking for $ac_func" >&5
31344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31345if eval "test \"\${$as_ac_var+set}\" = set"; then
31346 echo $ECHO_N "(cached) $ECHO_C" >&6
31347else
31348 cat >conftest.$ac_ext <<_ACEOF
31349/* confdefs.h. */
31350_ACEOF
31351cat confdefs.h >>conftest.$ac_ext
31352cat >>conftest.$ac_ext <<_ACEOF
31353/* end confdefs.h. */
ac1cb8d3
VS
31354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31356#define $ac_func innocuous_$ac_func
31357
a848cd7e
SC
31358/* System header to define __stub macros and hopefully few prototypes,
31359 which can conflict with char $ac_func (); below.
31360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31361 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31362
a848cd7e
SC
31363#ifdef __STDC__
31364# include <limits.h>
31365#else
31366# include <assert.h>
31367#endif
ac1cb8d3
VS
31368
31369#undef $ac_func
31370
a848cd7e
SC
31371/* Override any gcc2 internal prototype to avoid an error. */
31372#ifdef __cplusplus
31373extern "C"
31374{
31375#endif
31376/* We use char because int might match the return type of a gcc2
31377 builtin and then its argument prototype would still apply. */
31378char $ac_func ();
31379/* The GNU C library defines this for functions which it implements
31380 to always fail with ENOSYS. Some functions are actually named
31381 something starting with __ and the normal name is an alias. */
31382#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31383choke me
31384#else
31385char (*f) () = $ac_func;
31386#endif
31387#ifdef __cplusplus
31388}
31389#endif
31390
31391int
31392main ()
31393{
31394return f != $ac_func;
31395 ;
31396 return 0;
31397}
31398_ACEOF
31399rm -f conftest.$ac_objext conftest$ac_exeext
31400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31401 (eval $ac_link) 2>conftest.er1
a848cd7e 31402 ac_status=$?
ac1cb8d3
VS
31403 grep -v '^ *+' conftest.er1 >conftest.err
31404 rm -f conftest.er1
31405 cat conftest.err >&5
a848cd7e
SC
31406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407 (exit $ac_status); } &&
ac1cb8d3
VS
31408 { ac_try='test -z "$ac_c_werror_flag"
31409 || test ! -s conftest.err'
31410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31411 (eval $ac_try) 2>&5
31412 ac_status=$?
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 (exit $ac_status); }; } &&
31415 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31417 (eval $ac_try) 2>&5
31418 ac_status=$?
31419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420 (exit $ac_status); }; }; then
31421 eval "$as_ac_var=yes"
31422else
31423 echo "$as_me: failed program was:" >&5
31424sed 's/^/| /' conftest.$ac_ext >&5
31425
31426eval "$as_ac_var=no"
31427fi
ac1cb8d3
VS
31428rm -f conftest.err conftest.$ac_objext \
31429 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31430fi
31431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31432echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31433if test `eval echo '${'$as_ac_var'}'` = yes; then
31434 cat >>confdefs.h <<_ACEOF
31435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31436_ACEOF
31437
31438fi
31439done
31440
31441
31442
31443
31444for ac_func in putenv setenv
31445do
31446as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31447echo "$as_me:$LINENO: checking for $ac_func" >&5
31448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31449if eval "test \"\${$as_ac_var+set}\" = set"; then
31450 echo $ECHO_N "(cached) $ECHO_C" >&6
31451else
31452 cat >conftest.$ac_ext <<_ACEOF
31453/* confdefs.h. */
31454_ACEOF
31455cat confdefs.h >>conftest.$ac_ext
31456cat >>conftest.$ac_ext <<_ACEOF
31457/* end confdefs.h. */
ac1cb8d3
VS
31458/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31460#define $ac_func innocuous_$ac_func
31461
a848cd7e
SC
31462/* System header to define __stub macros and hopefully few prototypes,
31463 which can conflict with char $ac_func (); below.
31464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31465 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31466
a848cd7e
SC
31467#ifdef __STDC__
31468# include <limits.h>
31469#else
31470# include <assert.h>
31471#endif
ac1cb8d3
VS
31472
31473#undef $ac_func
31474
a848cd7e
SC
31475/* Override any gcc2 internal prototype to avoid an error. */
31476#ifdef __cplusplus
31477extern "C"
31478{
31479#endif
31480/* We use char because int might match the return type of a gcc2
31481 builtin and then its argument prototype would still apply. */
31482char $ac_func ();
31483/* The GNU C library defines this for functions which it implements
31484 to always fail with ENOSYS. Some functions are actually named
31485 something starting with __ and the normal name is an alias. */
31486#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31487choke me
31488#else
31489char (*f) () = $ac_func;
31490#endif
31491#ifdef __cplusplus
31492}
31493#endif
31494
31495int
31496main ()
31497{
31498return f != $ac_func;
31499 ;
31500 return 0;
31501}
31502_ACEOF
31503rm -f conftest.$ac_objext conftest$ac_exeext
31504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31505 (eval $ac_link) 2>conftest.er1
a848cd7e 31506 ac_status=$?
ac1cb8d3
VS
31507 grep -v '^ *+' conftest.er1 >conftest.err
31508 rm -f conftest.er1
31509 cat conftest.err >&5
a848cd7e
SC
31510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511 (exit $ac_status); } &&
ac1cb8d3
VS
31512 { ac_try='test -z "$ac_c_werror_flag"
31513 || test ! -s conftest.err'
31514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31515 (eval $ac_try) 2>&5
31516 ac_status=$?
31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518 (exit $ac_status); }; } &&
31519 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31521 (eval $ac_try) 2>&5
31522 ac_status=$?
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); }; }; then
31525 eval "$as_ac_var=yes"
31526else
31527 echo "$as_me: failed program was:" >&5
31528sed 's/^/| /' conftest.$ac_ext >&5
31529
31530eval "$as_ac_var=no"
31531fi
ac1cb8d3
VS
31532rm -f conftest.err conftest.$ac_objext \
31533 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31534fi
31535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31536echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31537if test `eval echo '${'$as_ac_var'}'` = yes; then
31538 cat >>confdefs.h <<_ACEOF
31539#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31540_ACEOF
31541 break
31542fi
31543done
31544
31545
31546HAVE_SOME_SLEEP_FUNC=0
31547if test "$USE_BEOS" = 1; then
31548 cat >>confdefs.h <<\_ACEOF
31549#define HAVE_SLEEP 1
31550_ACEOF
31551
31552 HAVE_SOME_SLEEP_FUNC=1
31553fi
31554
31555if test "$USE_DARWIN" = 1; then
31556 cat >>confdefs.h <<\_ACEOF
31557#define HAVE_USLEEP 1
31558_ACEOF
31559
31560 HAVE_SOME_SLEEP_FUNC=1
31561fi
31562
31563if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
31564 POSIX4_LINK=
31565
31566for ac_func in nanosleep
31567do
31568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31569echo "$as_me:$LINENO: checking for $ac_func" >&5
31570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31571if eval "test \"\${$as_ac_var+set}\" = set"; then
31572 echo $ECHO_N "(cached) $ECHO_C" >&6
31573else
31574 cat >conftest.$ac_ext <<_ACEOF
31575/* confdefs.h. */
31576_ACEOF
31577cat confdefs.h >>conftest.$ac_ext
31578cat >>conftest.$ac_ext <<_ACEOF
31579/* end confdefs.h. */
ac1cb8d3
VS
31580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31582#define $ac_func innocuous_$ac_func
31583
a848cd7e
SC
31584/* System header to define __stub macros and hopefully few prototypes,
31585 which can conflict with char $ac_func (); below.
31586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31587 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31588
a848cd7e
SC
31589#ifdef __STDC__
31590# include <limits.h>
31591#else
31592# include <assert.h>
31593#endif
ac1cb8d3
VS
31594
31595#undef $ac_func
31596
a848cd7e
SC
31597/* Override any gcc2 internal prototype to avoid an error. */
31598#ifdef __cplusplus
31599extern "C"
31600{
31601#endif
31602/* We use char because int might match the return type of a gcc2
31603 builtin and then its argument prototype would still apply. */
31604char $ac_func ();
31605/* The GNU C library defines this for functions which it implements
31606 to always fail with ENOSYS. Some functions are actually named
31607 something starting with __ and the normal name is an alias. */
31608#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31609choke me
31610#else
31611char (*f) () = $ac_func;
31612#endif
31613#ifdef __cplusplus
31614}
31615#endif
31616
31617int
31618main ()
31619{
31620return f != $ac_func;
31621 ;
31622 return 0;
31623}
31624_ACEOF
31625rm -f conftest.$ac_objext conftest$ac_exeext
31626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31627 (eval $ac_link) 2>conftest.er1
a848cd7e 31628 ac_status=$?
ac1cb8d3
VS
31629 grep -v '^ *+' conftest.er1 >conftest.err
31630 rm -f conftest.er1
31631 cat conftest.err >&5
a848cd7e
SC
31632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633 (exit $ac_status); } &&
ac1cb8d3
VS
31634 { ac_try='test -z "$ac_c_werror_flag"
31635 || test ! -s conftest.err'
31636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31637 (eval $ac_try) 2>&5
31638 ac_status=$?
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); }; } &&
31641 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31643 (eval $ac_try) 2>&5
31644 ac_status=$?
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); }; }; then
31647 eval "$as_ac_var=yes"
31648else
31649 echo "$as_me: failed program was:" >&5
31650sed 's/^/| /' conftest.$ac_ext >&5
31651
31652eval "$as_ac_var=no"
31653fi
ac1cb8d3
VS
31654rm -f conftest.err conftest.$ac_objext \
31655 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31656fi
31657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31658echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31659if test `eval echo '${'$as_ac_var'}'` = yes; then
31660 cat >>confdefs.h <<_ACEOF
31661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31662_ACEOF
31663 cat >>confdefs.h <<\_ACEOF
31664#define HAVE_NANOSLEEP 1
31665_ACEOF
31666
31667else
31668
31669 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31670echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31671if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31672 echo $ECHO_N "(cached) $ECHO_C" >&6
31673else
31674 ac_check_lib_save_LIBS=$LIBS
31675LIBS="-lposix4 $LIBS"
31676cat >conftest.$ac_ext <<_ACEOF
31677/* confdefs.h. */
31678_ACEOF
31679cat confdefs.h >>conftest.$ac_ext
31680cat >>conftest.$ac_ext <<_ACEOF
31681/* end confdefs.h. */
31682
31683/* Override any gcc2 internal prototype to avoid an error. */
31684#ifdef __cplusplus
31685extern "C"
31686#endif
31687/* We use char because int might match the return type of a gcc2
31688 builtin and then its argument prototype would still apply. */
31689char nanosleep ();
31690int
31691main ()
31692{
31693nanosleep ();
31694 ;
31695 return 0;
31696}
31697_ACEOF
31698rm -f conftest.$ac_objext conftest$ac_exeext
31699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31700 (eval $ac_link) 2>conftest.er1
a848cd7e 31701 ac_status=$?
ac1cb8d3
VS
31702 grep -v '^ *+' conftest.er1 >conftest.err
31703 rm -f conftest.er1
31704 cat conftest.err >&5
a848cd7e
SC
31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); } &&
ac1cb8d3
VS
31707 { ac_try='test -z "$ac_c_werror_flag"
31708 || test ! -s conftest.err'
31709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31710 (eval $ac_try) 2>&5
31711 ac_status=$?
31712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713 (exit $ac_status); }; } &&
31714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31716 (eval $ac_try) 2>&5
31717 ac_status=$?
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); }; }; then
31720 ac_cv_lib_posix4_nanosleep=yes
31721else
31722 echo "$as_me: failed program was:" >&5
31723sed 's/^/| /' conftest.$ac_ext >&5
31724
31725ac_cv_lib_posix4_nanosleep=no
31726fi
ac1cb8d3
VS
31727rm -f conftest.err conftest.$ac_objext \
31728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31729LIBS=$ac_check_lib_save_LIBS
31730fi
31731echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31732echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31733if test $ac_cv_lib_posix4_nanosleep = yes; then
31734
31735 cat >>confdefs.h <<\_ACEOF
31736#define HAVE_NANOSLEEP 1
31737_ACEOF
31738
31739 POSIX4_LINK=" -lposix4"
31740
31741else
31742
31743
31744for ac_func in usleep
31745do
31746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31747echo "$as_me:$LINENO: checking for $ac_func" >&5
31748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31749if eval "test \"\${$as_ac_var+set}\" = set"; then
31750 echo $ECHO_N "(cached) $ECHO_C" >&6
31751else
31752 cat >conftest.$ac_ext <<_ACEOF
31753/* confdefs.h. */
31754_ACEOF
31755cat confdefs.h >>conftest.$ac_ext
31756cat >>conftest.$ac_ext <<_ACEOF
31757/* end confdefs.h. */
ac1cb8d3
VS
31758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31760#define $ac_func innocuous_$ac_func
31761
a848cd7e
SC
31762/* System header to define __stub macros and hopefully few prototypes,
31763 which can conflict with char $ac_func (); below.
31764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31765 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31766
a848cd7e
SC
31767#ifdef __STDC__
31768# include <limits.h>
31769#else
31770# include <assert.h>
31771#endif
ac1cb8d3
VS
31772
31773#undef $ac_func
31774
a848cd7e
SC
31775/* Override any gcc2 internal prototype to avoid an error. */
31776#ifdef __cplusplus
31777extern "C"
31778{
31779#endif
31780/* We use char because int might match the return type of a gcc2
31781 builtin and then its argument prototype would still apply. */
31782char $ac_func ();
31783/* The GNU C library defines this for functions which it implements
31784 to always fail with ENOSYS. Some functions are actually named
31785 something starting with __ and the normal name is an alias. */
31786#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31787choke me
31788#else
31789char (*f) () = $ac_func;
31790#endif
31791#ifdef __cplusplus
31792}
31793#endif
31794
31795int
31796main ()
31797{
31798return f != $ac_func;
31799 ;
31800 return 0;
31801}
31802_ACEOF
31803rm -f conftest.$ac_objext conftest$ac_exeext
31804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31805 (eval $ac_link) 2>conftest.er1
a848cd7e 31806 ac_status=$?
ac1cb8d3
VS
31807 grep -v '^ *+' conftest.er1 >conftest.err
31808 rm -f conftest.er1
31809 cat conftest.err >&5
a848cd7e
SC
31810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); } &&
ac1cb8d3
VS
31812 { ac_try='test -z "$ac_c_werror_flag"
31813 || test ! -s conftest.err'
31814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31815 (eval $ac_try) 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'
a848cd7e
SC
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 eval "$as_ac_var=yes"
31826else
31827 echo "$as_me: failed program was:" >&5
31828sed 's/^/| /' conftest.$ac_ext >&5
31829
31830eval "$as_ac_var=no"
31831fi
ac1cb8d3
VS
31832rm -f conftest.err conftest.$ac_objext \
31833 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31834fi
31835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31836echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31837if test `eval echo '${'$as_ac_var'}'` = yes; then
31838 cat >>confdefs.h <<_ACEOF
31839#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31840_ACEOF
31841 cat >>confdefs.h <<\_ACEOF
31842#define HAVE_USLEEP 1
31843_ACEOF
31844
31845else
31846 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31847echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31848
31849fi
31850done
31851
31852
31853
31854fi
31855
31856
31857
31858fi
31859done
31860
31861fi
31862
31863
31864
31865for ac_func in uname gethostname
31866do
31867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31868echo "$as_me:$LINENO: checking for $ac_func" >&5
31869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31870if eval "test \"\${$as_ac_var+set}\" = set"; then
31871 echo $ECHO_N "(cached) $ECHO_C" >&6
31872else
31873 cat >conftest.$ac_ext <<_ACEOF
31874/* confdefs.h. */
31875_ACEOF
31876cat confdefs.h >>conftest.$ac_ext
31877cat >>conftest.$ac_ext <<_ACEOF
31878/* end confdefs.h. */
ac1cb8d3
VS
31879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31881#define $ac_func innocuous_$ac_func
31882
a848cd7e
SC
31883/* System header to define __stub macros and hopefully few prototypes,
31884 which can conflict with char $ac_func (); below.
31885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31886 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31887
a848cd7e
SC
31888#ifdef __STDC__
31889# include <limits.h>
31890#else
31891# include <assert.h>
31892#endif
ac1cb8d3
VS
31893
31894#undef $ac_func
31895
a848cd7e
SC
31896/* Override any gcc2 internal prototype to avoid an error. */
31897#ifdef __cplusplus
31898extern "C"
31899{
31900#endif
31901/* We use char because int might match the return type of a gcc2
31902 builtin and then its argument prototype would still apply. */
31903char $ac_func ();
31904/* The GNU C library defines this for functions which it implements
31905 to always fail with ENOSYS. Some functions are actually named
31906 something starting with __ and the normal name is an alias. */
31907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31908choke me
31909#else
31910char (*f) () = $ac_func;
31911#endif
31912#ifdef __cplusplus
31913}
31914#endif
31915
31916int
31917main ()
31918{
31919return f != $ac_func;
31920 ;
31921 return 0;
31922}
31923_ACEOF
31924rm -f conftest.$ac_objext conftest$ac_exeext
31925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31926 (eval $ac_link) 2>conftest.er1
a848cd7e 31927 ac_status=$?
ac1cb8d3
VS
31928 grep -v '^ *+' conftest.er1 >conftest.err
31929 rm -f conftest.er1
31930 cat conftest.err >&5
a848cd7e
SC
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); } &&
ac1cb8d3
VS
31933 { ac_try='test -z "$ac_c_werror_flag"
31934 || test ! -s conftest.err'
31935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936 (eval $ac_try) 2>&5
31937 ac_status=$?
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); }; } &&
31940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31942 (eval $ac_try) 2>&5
31943 ac_status=$?
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); }; }; then
31946 eval "$as_ac_var=yes"
31947else
31948 echo "$as_me: failed program was:" >&5
31949sed 's/^/| /' conftest.$ac_ext >&5
31950
31951eval "$as_ac_var=no"
31952fi
ac1cb8d3
VS
31953rm -f conftest.err conftest.$ac_objext \
31954 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31955fi
31956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31957echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31958if test `eval echo '${'$as_ac_var'}'` = yes; then
31959 cat >>confdefs.h <<_ACEOF
31960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31961_ACEOF
31962 break
31963fi
31964done
31965
31966
31967
31968
31969ac_ext=cc
31970ac_cpp='$CXXCPP $CPPFLAGS'
31971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31974
31975
31976
31977for ac_func in strtok_r
31978do
31979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31980echo "$as_me:$LINENO: checking for $ac_func" >&5
31981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31982if eval "test \"\${$as_ac_var+set}\" = set"; then
31983 echo $ECHO_N "(cached) $ECHO_C" >&6
31984else
31985 cat >conftest.$ac_ext <<_ACEOF
31986/* confdefs.h. */
31987_ACEOF
31988cat confdefs.h >>conftest.$ac_ext
31989cat >>conftest.$ac_ext <<_ACEOF
31990/* end confdefs.h. */
ac1cb8d3
VS
31991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31993#define $ac_func innocuous_$ac_func
31994
a848cd7e
SC
31995/* System header to define __stub macros and hopefully few prototypes,
31996 which can conflict with char $ac_func (); below.
31997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31998 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31999
a848cd7e
SC
32000#ifdef __STDC__
32001# include <limits.h>
32002#else
32003# include <assert.h>
32004#endif
ac1cb8d3
VS
32005
32006#undef $ac_func
32007
a848cd7e
SC
32008/* Override any gcc2 internal prototype to avoid an error. */
32009#ifdef __cplusplus
32010extern "C"
32011{
32012#endif
32013/* We use char because int might match the return type of a gcc2
32014 builtin and then its argument prototype would still apply. */
32015char $ac_func ();
32016/* The GNU C library defines this for functions which it implements
32017 to always fail with ENOSYS. Some functions are actually named
32018 something starting with __ and the normal name is an alias. */
32019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32020choke me
32021#else
32022char (*f) () = $ac_func;
32023#endif
32024#ifdef __cplusplus
32025}
32026#endif
32027
32028int
32029main ()
32030{
32031return f != $ac_func;
32032 ;
32033 return 0;
32034}
32035_ACEOF
32036rm -f conftest.$ac_objext conftest$ac_exeext
32037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32038 (eval $ac_link) 2>conftest.er1
a848cd7e 32039 ac_status=$?
ac1cb8d3
VS
32040 grep -v '^ *+' conftest.er1 >conftest.err
32041 rm -f conftest.er1
32042 cat conftest.err >&5
a848cd7e
SC
32043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32044 (exit $ac_status); } &&
ac1cb8d3
VS
32045 { ac_try='test -z "$ac_cxx_werror_flag"
32046 || test ! -s conftest.err'
32047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32048 (eval $ac_try) 2>&5
32049 ac_status=$?
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); }; } &&
32052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32054 (eval $ac_try) 2>&5
32055 ac_status=$?
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); }; }; then
32058 eval "$as_ac_var=yes"
32059else
32060 echo "$as_me: failed program was:" >&5
32061sed 's/^/| /' conftest.$ac_ext >&5
32062
32063eval "$as_ac_var=no"
32064fi
ac1cb8d3
VS
32065rm -f conftest.err conftest.$ac_objext \
32066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32067fi
32068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32069echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32070if test `eval echo '${'$as_ac_var'}'` = yes; then
32071 cat >>confdefs.h <<_ACEOF
32072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32073_ACEOF
32074
32075fi
32076done
32077
32078
32079ac_ext=c
32080ac_cpp='$CPP $CPPFLAGS'
32081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32083ac_compiler_gnu=$ac_cv_c_compiler_gnu
32084
32085
32086INET_LINK=
32087
32088for ac_func in inet_addr
32089do
32090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32091echo "$as_me:$LINENO: checking for $ac_func" >&5
32092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32093if eval "test \"\${$as_ac_var+set}\" = set"; then
32094 echo $ECHO_N "(cached) $ECHO_C" >&6
32095else
32096 cat >conftest.$ac_ext <<_ACEOF
32097/* confdefs.h. */
32098_ACEOF
32099cat confdefs.h >>conftest.$ac_ext
32100cat >>conftest.$ac_ext <<_ACEOF
32101/* end confdefs.h. */
ac1cb8d3
VS
32102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32104#define $ac_func innocuous_$ac_func
32105
a848cd7e
SC
32106/* System header to define __stub macros and hopefully few prototypes,
32107 which can conflict with char $ac_func (); below.
32108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32109 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32110
a848cd7e
SC
32111#ifdef __STDC__
32112# include <limits.h>
32113#else
32114# include <assert.h>
32115#endif
ac1cb8d3
VS
32116
32117#undef $ac_func
32118
a848cd7e
SC
32119/* Override any gcc2 internal prototype to avoid an error. */
32120#ifdef __cplusplus
32121extern "C"
32122{
32123#endif
32124/* We use char because int might match the return type of a gcc2
32125 builtin and then its argument prototype would still apply. */
32126char $ac_func ();
32127/* The GNU C library defines this for functions which it implements
32128 to always fail with ENOSYS. Some functions are actually named
32129 something starting with __ and the normal name is an alias. */
32130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32131choke me
32132#else
32133char (*f) () = $ac_func;
32134#endif
32135#ifdef __cplusplus
32136}
32137#endif
32138
32139int
32140main ()
32141{
32142return f != $ac_func;
32143 ;
32144 return 0;
32145}
32146_ACEOF
32147rm -f conftest.$ac_objext conftest$ac_exeext
32148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32149 (eval $ac_link) 2>conftest.er1
a848cd7e 32150 ac_status=$?
ac1cb8d3
VS
32151 grep -v '^ *+' conftest.er1 >conftest.err
32152 rm -f conftest.er1
32153 cat conftest.err >&5
a848cd7e
SC
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); } &&
ac1cb8d3
VS
32156 { ac_try='test -z "$ac_c_werror_flag"
32157 || test ! -s conftest.err'
32158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32159 (eval $ac_try) 2>&5
32160 ac_status=$?
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); }; } &&
32163 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32165 (eval $ac_try) 2>&5
32166 ac_status=$?
32167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168 (exit $ac_status); }; }; then
32169 eval "$as_ac_var=yes"
32170else
32171 echo "$as_me: failed program was:" >&5
32172sed 's/^/| /' conftest.$ac_ext >&5
32173
32174eval "$as_ac_var=no"
32175fi
ac1cb8d3
VS
32176rm -f conftest.err conftest.$ac_objext \
32177 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32178fi
32179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32181if test `eval echo '${'$as_ac_var'}'` = yes; then
32182 cat >>confdefs.h <<_ACEOF
32183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32184_ACEOF
32185 cat >>confdefs.h <<\_ACEOF
32186#define HAVE_INET_ADDR 1
32187_ACEOF
32188
32189else
32190
32191 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32192echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32193if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32194 echo $ECHO_N "(cached) $ECHO_C" >&6
32195else
32196 ac_check_lib_save_LIBS=$LIBS
32197LIBS="-lnsl $LIBS"
32198cat >conftest.$ac_ext <<_ACEOF
32199/* confdefs.h. */
32200_ACEOF
32201cat confdefs.h >>conftest.$ac_ext
32202cat >>conftest.$ac_ext <<_ACEOF
32203/* end confdefs.h. */
32204
32205/* Override any gcc2 internal prototype to avoid an error. */
32206#ifdef __cplusplus
32207extern "C"
32208#endif
32209/* We use char because int might match the return type of a gcc2
32210 builtin and then its argument prototype would still apply. */
32211char inet_addr ();
32212int
32213main ()
32214{
32215inet_addr ();
32216 ;
32217 return 0;
32218}
32219_ACEOF
32220rm -f conftest.$ac_objext conftest$ac_exeext
32221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32222 (eval $ac_link) 2>conftest.er1
a848cd7e 32223 ac_status=$?
ac1cb8d3
VS
32224 grep -v '^ *+' conftest.er1 >conftest.err
32225 rm -f conftest.er1
32226 cat conftest.err >&5
a848cd7e
SC
32227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228 (exit $ac_status); } &&
ac1cb8d3
VS
32229 { ac_try='test -z "$ac_c_werror_flag"
32230 || test ! -s conftest.err'
32231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32232 (eval $ac_try) 2>&5
32233 ac_status=$?
32234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32235 (exit $ac_status); }; } &&
32236 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32238 (eval $ac_try) 2>&5
32239 ac_status=$?
32240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241 (exit $ac_status); }; }; then
32242 ac_cv_lib_nsl_inet_addr=yes
32243else
32244 echo "$as_me: failed program was:" >&5
32245sed 's/^/| /' conftest.$ac_ext >&5
32246
32247ac_cv_lib_nsl_inet_addr=no
32248fi
ac1cb8d3
VS
32249rm -f conftest.err conftest.$ac_objext \
32250 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32251LIBS=$ac_check_lib_save_LIBS
32252fi
32253echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
32254echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
32255if test $ac_cv_lib_nsl_inet_addr = yes; then
32256 INET_LINK="nsl"
32257else
32258
32259 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
32260echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
32261if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
32262 echo $ECHO_N "(cached) $ECHO_C" >&6
32263else
32264 ac_check_lib_save_LIBS=$LIBS
32265LIBS="-lresolv $LIBS"
32266cat >conftest.$ac_ext <<_ACEOF
32267/* confdefs.h. */
32268_ACEOF
32269cat confdefs.h >>conftest.$ac_ext
32270cat >>conftest.$ac_ext <<_ACEOF
32271/* end confdefs.h. */
32272
32273/* Override any gcc2 internal prototype to avoid an error. */
32274#ifdef __cplusplus
32275extern "C"
32276#endif
32277/* We use char because int might match the return type of a gcc2
32278 builtin and then its argument prototype would still apply. */
32279char inet_addr ();
32280int
32281main ()
32282{
32283inet_addr ();
32284 ;
32285 return 0;
32286}
32287_ACEOF
32288rm -f conftest.$ac_objext conftest$ac_exeext
32289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32290 (eval $ac_link) 2>conftest.er1
a848cd7e 32291 ac_status=$?
ac1cb8d3
VS
32292 grep -v '^ *+' conftest.er1 >conftest.err
32293 rm -f conftest.er1
32294 cat conftest.err >&5
a848cd7e
SC
32295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296 (exit $ac_status); } &&
ac1cb8d3
VS
32297 { ac_try='test -z "$ac_c_werror_flag"
32298 || test ! -s conftest.err'
32299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32300 (eval $ac_try) 2>&5
32301 ac_status=$?
32302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303 (exit $ac_status); }; } &&
32304 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32306 (eval $ac_try) 2>&5
32307 ac_status=$?
32308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); }; }; then
32310 ac_cv_lib_resolv_inet_addr=yes
32311else
32312 echo "$as_me: failed program was:" >&5
32313sed 's/^/| /' conftest.$ac_ext >&5
32314
32315ac_cv_lib_resolv_inet_addr=no
32316fi
ac1cb8d3
VS
32317rm -f conftest.err conftest.$ac_objext \
32318 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32319LIBS=$ac_check_lib_save_LIBS
32320fi
32321echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
32322echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
32323if test $ac_cv_lib_resolv_inet_addr = yes; then
32324 INET_LINK="resolv"
32325else
32326
32327 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
32328echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
32329if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
32330 echo $ECHO_N "(cached) $ECHO_C" >&6
32331else
32332 ac_check_lib_save_LIBS=$LIBS
32333LIBS="-lsocket $LIBS"
32334cat >conftest.$ac_ext <<_ACEOF
32335/* confdefs.h. */
32336_ACEOF
32337cat confdefs.h >>conftest.$ac_ext
32338cat >>conftest.$ac_ext <<_ACEOF
32339/* end confdefs.h. */
32340
32341/* Override any gcc2 internal prototype to avoid an error. */
32342#ifdef __cplusplus
32343extern "C"
32344#endif
32345/* We use char because int might match the return type of a gcc2
32346 builtin and then its argument prototype would still apply. */
32347char inet_addr ();
32348int
32349main ()
32350{
32351inet_addr ();
32352 ;
32353 return 0;
32354}
32355_ACEOF
32356rm -f conftest.$ac_objext conftest$ac_exeext
32357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32358 (eval $ac_link) 2>conftest.er1
a848cd7e 32359 ac_status=$?
ac1cb8d3
VS
32360 grep -v '^ *+' conftest.er1 >conftest.err
32361 rm -f conftest.er1
32362 cat conftest.err >&5
a848cd7e
SC
32363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364 (exit $ac_status); } &&
ac1cb8d3
VS
32365 { ac_try='test -z "$ac_c_werror_flag"
32366 || test ! -s conftest.err'
32367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32368 (eval $ac_try) 2>&5
32369 ac_status=$?
32370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371 (exit $ac_status); }; } &&
32372 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32374 (eval $ac_try) 2>&5
32375 ac_status=$?
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); }; }; then
32378 ac_cv_lib_socket_inet_addr=yes
32379else
32380 echo "$as_me: failed program was:" >&5
32381sed 's/^/| /' conftest.$ac_ext >&5
32382
32383ac_cv_lib_socket_inet_addr=no
32384fi
ac1cb8d3
VS
32385rm -f conftest.err conftest.$ac_objext \
32386 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32387LIBS=$ac_check_lib_save_LIBS
32388fi
32389echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
32390echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
32391if test $ac_cv_lib_socket_inet_addr = yes; then
32392 INET_LINK="socket"
32393
32394fi
32395
32396
32397
32398fi
32399
32400
32401
32402fi
32403
32404
32405
32406fi
32407done
32408
32409
32410
32411for ac_func in inet_aton
32412do
32413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32414echo "$as_me:$LINENO: checking for $ac_func" >&5
32415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32416if eval "test \"\${$as_ac_var+set}\" = set"; then
32417 echo $ECHO_N "(cached) $ECHO_C" >&6
32418else
32419 cat >conftest.$ac_ext <<_ACEOF
32420/* confdefs.h. */
32421_ACEOF
32422cat confdefs.h >>conftest.$ac_ext
32423cat >>conftest.$ac_ext <<_ACEOF
32424/* end confdefs.h. */
ac1cb8d3
VS
32425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32427#define $ac_func innocuous_$ac_func
32428
a848cd7e
SC
32429/* System header to define __stub macros and hopefully few prototypes,
32430 which can conflict with char $ac_func (); below.
32431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32432 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32433
a848cd7e
SC
32434#ifdef __STDC__
32435# include <limits.h>
32436#else
32437# include <assert.h>
32438#endif
ac1cb8d3
VS
32439
32440#undef $ac_func
32441
a848cd7e
SC
32442/* Override any gcc2 internal prototype to avoid an error. */
32443#ifdef __cplusplus
32444extern "C"
32445{
32446#endif
32447/* We use char because int might match the return type of a gcc2
32448 builtin and then its argument prototype would still apply. */
32449char $ac_func ();
32450/* The GNU C library defines this for functions which it implements
32451 to always fail with ENOSYS. Some functions are actually named
32452 something starting with __ and the normal name is an alias. */
32453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32454choke me
32455#else
32456char (*f) () = $ac_func;
32457#endif
32458#ifdef __cplusplus
32459}
32460#endif
32461
32462int
32463main ()
32464{
32465return f != $ac_func;
32466 ;
32467 return 0;
32468}
32469_ACEOF
32470rm -f conftest.$ac_objext conftest$ac_exeext
32471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32472 (eval $ac_link) 2>conftest.er1
a848cd7e 32473 ac_status=$?
ac1cb8d3
VS
32474 grep -v '^ *+' conftest.er1 >conftest.err
32475 rm -f conftest.er1
32476 cat conftest.err >&5
a848cd7e
SC
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); } &&
ac1cb8d3
VS
32479 { ac_try='test -z "$ac_c_werror_flag"
32480 || test ! -s conftest.err'
32481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32482 (eval $ac_try) 2>&5
32483 ac_status=$?
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); }; } &&
32486 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32488 (eval $ac_try) 2>&5
32489 ac_status=$?
32490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491 (exit $ac_status); }; }; then
32492 eval "$as_ac_var=yes"
32493else
32494 echo "$as_me: failed program was:" >&5
32495sed 's/^/| /' conftest.$ac_ext >&5
32496
32497eval "$as_ac_var=no"
32498fi
ac1cb8d3
VS
32499rm -f conftest.err conftest.$ac_objext \
32500 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32501fi
32502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32503echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32504if test `eval echo '${'$as_ac_var'}'` = yes; then
32505 cat >>confdefs.h <<_ACEOF
32506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32507_ACEOF
32508 cat >>confdefs.h <<\_ACEOF
32509#define HAVE_INET_ATON 1
32510_ACEOF
32511
32512else
32513
32514 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
32515echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
32516echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
32517if eval "test \"\${$as_ac_Lib+set}\" = set"; then
32518 echo $ECHO_N "(cached) $ECHO_C" >&6
32519else
32520 ac_check_lib_save_LIBS=$LIBS
32521LIBS="-l$INET_LINK $LIBS"
32522cat >conftest.$ac_ext <<_ACEOF
32523/* confdefs.h. */
32524_ACEOF
32525cat confdefs.h >>conftest.$ac_ext
32526cat >>conftest.$ac_ext <<_ACEOF
32527/* end confdefs.h. */
32528
32529/* Override any gcc2 internal prototype to avoid an error. */
32530#ifdef __cplusplus
32531extern "C"
32532#endif
32533/* We use char because int might match the return type of a gcc2
32534 builtin and then its argument prototype would still apply. */
32535char inet_aton ();
32536int
32537main ()
32538{
32539inet_aton ();
32540 ;
32541 return 0;
32542}
32543_ACEOF
32544rm -f conftest.$ac_objext conftest$ac_exeext
32545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32546 (eval $ac_link) 2>conftest.er1
a848cd7e 32547 ac_status=$?
ac1cb8d3
VS
32548 grep -v '^ *+' conftest.er1 >conftest.err
32549 rm -f conftest.er1
32550 cat conftest.err >&5
a848cd7e
SC
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); } &&
ac1cb8d3
VS
32553 { ac_try='test -z "$ac_c_werror_flag"
32554 || test ! -s conftest.err'
32555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32556 (eval $ac_try) 2>&5
32557 ac_status=$?
32558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32559 (exit $ac_status); }; } &&
32560 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32562 (eval $ac_try) 2>&5
32563 ac_status=$?
32564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32565 (exit $ac_status); }; }; then
32566 eval "$as_ac_Lib=yes"
32567else
32568 echo "$as_me: failed program was:" >&5
32569sed 's/^/| /' conftest.$ac_ext >&5
32570
32571eval "$as_ac_Lib=no"
32572fi
ac1cb8d3
VS
32573rm -f conftest.err conftest.$ac_objext \
32574 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32575LIBS=$ac_check_lib_save_LIBS
32576fi
32577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
32578echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
32579if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32580 cat >>confdefs.h <<\_ACEOF
32581#define HAVE_INET_ATON 1
32582_ACEOF
32583
32584fi
32585
32586
32587fi
32588done
32589
32590
32591if test "x$INET_LINK" != "x"; then
32592 cat >>confdefs.h <<\_ACEOF
32593#define HAVE_INET_ADDR 1
32594_ACEOF
32595
32596 INET_LINK=" -l$INET_LINK"
32597fi
32598
32599fi
32600
32601
32602
32603EXTRALIBS_ESD=
32604echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32605echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32606if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32607 echo $ECHO_N "(cached) $ECHO_C" >&6
32608else
32609 ac_check_lib_save_LIBS=$LIBS
32610LIBS="-lesd $LIBS"
32611cat >conftest.$ac_ext <<_ACEOF
32612/* confdefs.h. */
32613_ACEOF
32614cat confdefs.h >>conftest.$ac_ext
32615cat >>conftest.$ac_ext <<_ACEOF
32616/* end confdefs.h. */
32617
32618/* Override any gcc2 internal prototype to avoid an error. */
32619#ifdef __cplusplus
32620extern "C"
32621#endif
32622/* We use char because int might match the return type of a gcc2
32623 builtin and then its argument prototype would still apply. */
32624char esd_close ();
32625int
32626main ()
32627{
32628esd_close ();
32629 ;
32630 return 0;
32631}
32632_ACEOF
32633rm -f conftest.$ac_objext conftest$ac_exeext
32634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32635 (eval $ac_link) 2>conftest.er1
a848cd7e 32636 ac_status=$?
ac1cb8d3
VS
32637 grep -v '^ *+' conftest.er1 >conftest.err
32638 rm -f conftest.er1
32639 cat conftest.err >&5
a848cd7e
SC
32640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641 (exit $ac_status); } &&
ac1cb8d3
VS
32642 { ac_try='test -z "$ac_c_werror_flag"
32643 || test ! -s conftest.err'
32644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645 (eval $ac_try) 2>&5
32646 ac_status=$?
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; } &&
32649 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32651 (eval $ac_try) 2>&5
32652 ac_status=$?
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); }; }; then
32655 ac_cv_lib_esd_esd_close=yes
32656else
32657 echo "$as_me: failed program was:" >&5
32658sed 's/^/| /' conftest.$ac_ext >&5
32659
32660ac_cv_lib_esd_esd_close=no
32661fi
ac1cb8d3
VS
32662rm -f conftest.err conftest.$ac_objext \
32663 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32664LIBS=$ac_check_lib_save_LIBS
32665fi
32666echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32667echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32668if test $ac_cv_lib_esd_esd_close = yes; then
32669
32670
32671for ac_header in esd.h
32672do
32673as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32674if eval "test \"\${$as_ac_Header+set}\" = set"; then
32675 echo "$as_me:$LINENO: checking for $ac_header" >&5
32676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32677if eval "test \"\${$as_ac_Header+set}\" = set"; then
32678 echo $ECHO_N "(cached) $ECHO_C" >&6
32679fi
32680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32682else
32683 # Is the header compilable?
32684echo "$as_me:$LINENO: checking $ac_header usability" >&5
32685echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32686cat >conftest.$ac_ext <<_ACEOF
32687/* confdefs.h. */
32688_ACEOF
32689cat confdefs.h >>conftest.$ac_ext
32690cat >>conftest.$ac_ext <<_ACEOF
32691/* end confdefs.h. */
32692$ac_includes_default
32693#include <$ac_header>
32694_ACEOF
32695rm -f conftest.$ac_objext
32696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32697 (eval $ac_compile) 2>conftest.er1
a848cd7e 32698 ac_status=$?
ac1cb8d3
VS
32699 grep -v '^ *+' conftest.er1 >conftest.err
32700 rm -f conftest.er1
32701 cat conftest.err >&5
a848cd7e
SC
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); } &&
ac1cb8d3
VS
32704 { ac_try='test -z "$ac_c_werror_flag"
32705 || test ! -s conftest.err'
32706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32707 (eval $ac_try) 2>&5
32708 ac_status=$?
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); }; } &&
32711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32713 (eval $ac_try) 2>&5
32714 ac_status=$?
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); }; }; then
32717 ac_header_compiler=yes
32718else
32719 echo "$as_me: failed program was:" >&5
32720sed 's/^/| /' conftest.$ac_ext >&5
32721
32722ac_header_compiler=no
32723fi
ac1cb8d3 32724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32725echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32726echo "${ECHO_T}$ac_header_compiler" >&6
32727
32728# Is the header present?
32729echo "$as_me:$LINENO: checking $ac_header presence" >&5
32730echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32731cat >conftest.$ac_ext <<_ACEOF
32732/* confdefs.h. */
32733_ACEOF
32734cat confdefs.h >>conftest.$ac_ext
32735cat >>conftest.$ac_ext <<_ACEOF
32736/* end confdefs.h. */
32737#include <$ac_header>
32738_ACEOF
32739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32741 ac_status=$?
32742 grep -v '^ *+' conftest.er1 >conftest.err
32743 rm -f conftest.er1
32744 cat conftest.err >&5
32745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 (exit $ac_status); } >/dev/null; then
32747 if test -s conftest.err; then
32748 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32750 else
32751 ac_cpp_err=
32752 fi
32753else
32754 ac_cpp_err=yes
32755fi
32756if test -z "$ac_cpp_err"; then
32757 ac_header_preproc=yes
32758else
32759 echo "$as_me: failed program was:" >&5
32760sed 's/^/| /' conftest.$ac_ext >&5
32761
32762 ac_header_preproc=no
32763fi
32764rm -f conftest.err conftest.$ac_ext
32765echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32766echo "${ECHO_T}$ac_header_preproc" >&6
32767
32768# So? What about this header?
ac1cb8d3
VS
32769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32770 yes:no: )
a848cd7e
SC
32771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32772echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32774echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32775 ac_header_preproc=yes
a848cd7e 32776 ;;
ac1cb8d3 32777 no:yes:* )
a848cd7e
SC
32778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32779echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32781echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32783echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32785echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32787echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32789echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32790 (
32791 cat <<\_ASBOX
ac1cb8d3
VS
32792## ----------------------------------------- ##
32793## Report this to wx-dev@lists.wxwidgets.org ##
32794## ----------------------------------------- ##
a848cd7e
SC
32795_ASBOX
32796 ) |
32797 sed "s/^/$as_me: WARNING: /" >&2
32798 ;;
32799esac
32800echo "$as_me:$LINENO: checking for $ac_header" >&5
32801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32802if eval "test \"\${$as_ac_Header+set}\" = set"; then
32803 echo $ECHO_N "(cached) $ECHO_C" >&6
32804else
ac1cb8d3 32805 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32806fi
32807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32809
32810fi
32811if test `eval echo '${'$as_ac_Header'}'` = yes; then
32812 cat >>confdefs.h <<_ACEOF
32813#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32814_ACEOF
32815
32816 EXTRALIBS_ESD="-lesd"
32817
32818fi
32819
32820done
32821
32822
32823fi
32824
32825
32826
32827echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32828echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32829cat >conftest.$ac_ext <<_ACEOF
32830/* confdefs.h. */
32831_ACEOF
32832cat confdefs.h >>conftest.$ac_ext
32833cat >>conftest.$ac_ext <<_ACEOF
32834/* end confdefs.h. */
32835#ifdef __linux__
32836 #include <linux/cdrom.h>
32837 #else
32838 /* For Solaris */
32839 #include <sys/cdio.h>
32840 #endif
32841
32842int
32843main ()
32844{
32845struct cdrom_tocentry entry, old_entry;
32846 ;
32847 return 0;
32848}
32849_ACEOF
32850rm -f conftest.$ac_objext
32851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32852 (eval $ac_compile) 2>conftest.er1
a848cd7e 32853 ac_status=$?
ac1cb8d3
VS
32854 grep -v '^ *+' conftest.er1 >conftest.err
32855 rm -f conftest.er1
32856 cat conftest.err >&5
a848cd7e
SC
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); } &&
ac1cb8d3
VS
32859 { ac_try='test -z "$ac_c_werror_flag"
32860 || test ! -s conftest.err'
32861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32862 (eval $ac_try) 2>&5
32863 ac_status=$?
32864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865 (exit $ac_status); }; } &&
32866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32868 (eval $ac_try) 2>&5
32869 ac_status=$?
32870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871 (exit $ac_status); }; }; then
32872 echo "$as_me:$LINENO: result: yes" >&5
32873echo "${ECHO_T}yes" >&6
32874 cat >>confdefs.h <<\_ACEOF
32875#define HAVE_KNOWN_CDROM_INTERFACE 1
32876_ACEOF
32877
32878else
32879 echo "$as_me: failed program was:" >&5
32880sed 's/^/| /' conftest.$ac_ext >&5
32881
32882echo "$as_me:$LINENO: result: no" >&5
32883echo "${ECHO_T}no" >&6
32884fi
ac1cb8d3 32885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32886
32887
32888cat >confcache <<\_ACEOF
32889# This file is a shell script that caches the results of configure
32890# tests run on this system so they can be shared between configure
32891# scripts and configure runs, see configure's option --config-cache.
32892# It is not useful on other systems. If it contains results you don't
32893# want to keep, you may remove or edit it.
32894#
32895# config.status only pays attention to the cache file if you give it
32896# the --recheck option to rerun configure.
32897#
32898# `ac_cv_env_foo' variables (set or unset) will be overridden when
32899# loading this file, other *unset* `ac_cv_foo' will be assigned the
32900# following values.
32901
32902_ACEOF
32903
32904# The following way of writing the cache mishandles newlines in values,
32905# but we know of no workaround that is simple, portable, and efficient.
32906# So, don't put newlines in cache variables' values.
32907# Ultrix sh set writes to stderr and can't be redirected directly,
32908# and sets the high bit in the cache file unless we assign to the vars.
32909{
32910 (set) 2>&1 |
32911 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32912 *ac_space=\ *)
32913 # `set' does not quote correctly, so add quotes (double-quote
32914 # substitution turns \\\\ into \\, and sed turns \\ into \).
32915 sed -n \
ac1cb8d3
VS
32916 "s/'/'\\\\''/g;
32917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32918 ;;
32919 *)
32920 # `set' quotes correctly as required by POSIX, so do not add quotes.
32921 sed -n \
ac1cb8d3 32922 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32923 ;;
32924 esac;
32925} |
32926 sed '
32927 t clear
32928 : clear
32929 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32930 t end
32931 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32932 : end' >>confcache
32933if diff $cache_file confcache >/dev/null 2>&1; then :; else
32934 if test -w $cache_file; then
32935 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32936 cat confcache >$cache_file
32937 else
32938 echo "not updating unwritable cache $cache_file"
32939 fi
32940fi
32941rm -f confcache
32942
32943
32944CPP_MT_FLAG=
32945if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32946
32947
32948 THREADS_LINK=
32949 THREADS_CFLAGS=
32950
32951 if test "$wxUSE_THREADS" = "yes" ; then
32952 if test "$USE_BEOS" = 1; then
32953 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32954echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32955 wxUSE_THREADS="no"
32956 fi
32957 fi
32958
32959 if test "$wxUSE_THREADS" = "yes" ; then
32960
32961
32962 THREAD_OPTS="-pthread"
32963 case "${host}" in
32964 *-*-solaris2* | *-*-sunos4* )
32965 if test "x$GCC" = "xyes"; then
32966 THREAD_OPTS="-pthreads $THREAD_OPTS"
32967 else
32968 THREAD_OPTS="-mt $THREAD_OPTS"
32969 fi
32970 ;;
32971 *-*-freebsd*)
32972 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32973 ;;
32974 *-*-darwin* | *-*-cygwin* )
32975 THREAD_OPTS=""
32976 ;;
32977 *-*-aix*)
32978 THREAD_OPTS="pthreads"
32979 ;;
32980 *-hp-hpux* )
32981 if test "x$GCC" != "xyes"; then
32982 THREAD_OPTS=""
32983 fi
32984 ;;
32985
32986 *-*-irix* )
32987 if test "x$GCC" = "xyes"; then
32988 THREAD_OPTS=""
32989 fi
32990 ;;
32991
32992 *-*-*UnixWare*)
32993 if test "x$GCC" != "xyes"; then
32994 THREAD_OPTS="-Ethread"
32995 fi
32996 ;;
32997 esac
32998
32999 THREAD_OPTS="$THREAD_OPTS pthread none"
33000
33001 THREADS_OK=no
33002 for flag in $THREAD_OPTS; do
33003 case $flag in
33004 none)
33005 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33006echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33007 ;;
33008
33009 -*)
33010 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33011echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33012 THREADS_CFLAGS="$flag"
33013 ;;
33014
33015 *)
33016 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33017echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33018 THREADS_LINK="-l$flag"
33019 ;;
33020 esac
33021
33022 save_LIBS="$LIBS"
33023 save_CFLAGS="$CFLAGS"
33024 LIBS="$THREADS_LINK $LIBS"
33025 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33026
33027 cat >conftest.$ac_ext <<_ACEOF
33028/* confdefs.h. */
33029_ACEOF
33030cat confdefs.h >>conftest.$ac_ext
33031cat >>conftest.$ac_ext <<_ACEOF
33032/* end confdefs.h. */
33033#include <pthread.h>
33034int
33035main ()
33036{
33037pthread_create(0,0,0,0);
33038 ;
33039 return 0;
33040}
33041_ACEOF
33042rm -f conftest.$ac_objext conftest$ac_exeext
33043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33044 (eval $ac_link) 2>conftest.er1
a848cd7e 33045 ac_status=$?
ac1cb8d3
VS
33046 grep -v '^ *+' conftest.er1 >conftest.err
33047 rm -f conftest.er1
33048 cat conftest.err >&5
a848cd7e
SC
33049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050 (exit $ac_status); } &&
ac1cb8d3
VS
33051 { ac_try='test -z "$ac_c_werror_flag"
33052 || test ! -s conftest.err'
33053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33054 (eval $ac_try) 2>&5
33055 ac_status=$?
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); }; } &&
33058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33060 (eval $ac_try) 2>&5
33061 ac_status=$?
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; }; then
33064 THREADS_OK=yes
33065else
33066 echo "$as_me: failed program was:" >&5
33067sed 's/^/| /' conftest.$ac_ext >&5
33068
33069fi
ac1cb8d3
VS
33070rm -f conftest.err conftest.$ac_objext \
33071 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33072
33073 LIBS="$save_LIBS"
33074 CFLAGS="$save_CFLAGS"
33075
33076 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33077echo "${ECHO_T}$THREADS_OK" >&6
33078 if test "x$THREADS_OK" = "xyes"; then
33079 break;
33080 fi
33081
33082 THREADS_LINK=""
33083 THREADS_CFLAGS=""
33084 done
33085
33086 if test "x$THREADS_OK" != "xyes"; then
33087 wxUSE_THREADS=no
33088 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33089echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33090 else
33091 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33092 LIBS="$THREADS_LINK $LIBS"
33093
33094 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33095echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33096 flag=no
33097 case "${host}" in
33098 *-aix*)
33099 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33100 flag="-D_THREAD_SAFE"
33101 ;;
33102 *-freebsd*)
33103 flag="-D_THREAD_SAFE"
33104 ;;
33105 *-hp-hpux* )
33106 flag="-D_REENTRANT"
33107 if test "x$GCC" != "xyes"; then
33108 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
33109
33110 LIBS="$LIBS -lcma"
a848cd7e
SC
33111 fi
33112 ;;
33113 *solaris* | alpha*-osf*)
33114 flag="-D_REENTRANT"
33115 ;;
33116 esac
33117 echo "$as_me:$LINENO: result: ${flag}" >&5
33118echo "${ECHO_T}${flag}" >&6
33119 if test "x$flag" != xno; then
33120 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33121 fi
33122
33123 if test "x$THREADS_CFLAGS" != "x"; then
33124 CFLAGS="$CFLAGS $THREADS_CFLAGS"
33125 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33126 fi
33127 fi
33128 fi
33129
33130 if test "$wxUSE_THREADS" = "yes" ; then
33131
33132for ac_func in thr_setconcurrency
33133do
33134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33135echo "$as_me:$LINENO: checking for $ac_func" >&5
33136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33137if eval "test \"\${$as_ac_var+set}\" = set"; then
33138 echo $ECHO_N "(cached) $ECHO_C" >&6
33139else
33140 cat >conftest.$ac_ext <<_ACEOF
33141/* confdefs.h. */
33142_ACEOF
33143cat confdefs.h >>conftest.$ac_ext
33144cat >>conftest.$ac_ext <<_ACEOF
33145/* end confdefs.h. */
ac1cb8d3
VS
33146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33148#define $ac_func innocuous_$ac_func
33149
a848cd7e
SC
33150/* System header to define __stub macros and hopefully few prototypes,
33151 which can conflict with char $ac_func (); below.
33152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33153 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33154
a848cd7e
SC
33155#ifdef __STDC__
33156# include <limits.h>
33157#else
33158# include <assert.h>
33159#endif
ac1cb8d3
VS
33160
33161#undef $ac_func
33162
a848cd7e
SC
33163/* Override any gcc2 internal prototype to avoid an error. */
33164#ifdef __cplusplus
33165extern "C"
33166{
33167#endif
33168/* We use char because int might match the return type of a gcc2
33169 builtin and then its argument prototype would still apply. */
33170char $ac_func ();
33171/* The GNU C library defines this for functions which it implements
33172 to always fail with ENOSYS. Some functions are actually named
33173 something starting with __ and the normal name is an alias. */
33174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33175choke me
33176#else
33177char (*f) () = $ac_func;
33178#endif
33179#ifdef __cplusplus
33180}
33181#endif
33182
33183int
33184main ()
33185{
33186return f != $ac_func;
33187 ;
33188 return 0;
33189}
33190_ACEOF
33191rm -f conftest.$ac_objext conftest$ac_exeext
33192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33193 (eval $ac_link) 2>conftest.er1
a848cd7e 33194 ac_status=$?
ac1cb8d3
VS
33195 grep -v '^ *+' conftest.er1 >conftest.err
33196 rm -f conftest.er1
33197 cat conftest.err >&5
a848cd7e
SC
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); } &&
ac1cb8d3
VS
33200 { ac_try='test -z "$ac_c_werror_flag"
33201 || test ! -s conftest.err'
33202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33203 (eval $ac_try) 2>&5
33204 ac_status=$?
33205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33206 (exit $ac_status); }; } &&
33207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33209 (eval $ac_try) 2>&5
33210 ac_status=$?
33211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33212 (exit $ac_status); }; }; then
33213 eval "$as_ac_var=yes"
33214else
33215 echo "$as_me: failed program was:" >&5
33216sed 's/^/| /' conftest.$ac_ext >&5
33217
33218eval "$as_ac_var=no"
33219fi
ac1cb8d3
VS
33220rm -f conftest.err conftest.$ac_objext \
33221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33222fi
33223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33225if test `eval echo '${'$as_ac_var'}'` = yes; then
33226 cat >>confdefs.h <<_ACEOF
33227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33228_ACEOF
33229
33230fi
33231done
33232
33233
33234
33235for ac_header in sched.h
33236do
33237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33238if eval "test \"\${$as_ac_Header+set}\" = set"; then
33239 echo "$as_me:$LINENO: checking for $ac_header" >&5
33240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33241if eval "test \"\${$as_ac_Header+set}\" = set"; then
33242 echo $ECHO_N "(cached) $ECHO_C" >&6
33243fi
33244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33246else
33247 # Is the header compilable?
33248echo "$as_me:$LINENO: checking $ac_header usability" >&5
33249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33250cat >conftest.$ac_ext <<_ACEOF
33251/* confdefs.h. */
33252_ACEOF
33253cat confdefs.h >>conftest.$ac_ext
33254cat >>conftest.$ac_ext <<_ACEOF
33255/* end confdefs.h. */
33256$ac_includes_default
33257#include <$ac_header>
33258_ACEOF
33259rm -f conftest.$ac_objext
33260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33261 (eval $ac_compile) 2>conftest.er1
a848cd7e 33262 ac_status=$?
ac1cb8d3
VS
33263 grep -v '^ *+' conftest.er1 >conftest.err
33264 rm -f conftest.er1
33265 cat conftest.err >&5
a848cd7e
SC
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); } &&
ac1cb8d3
VS
33268 { ac_try='test -z "$ac_c_werror_flag"
33269 || test ! -s conftest.err'
33270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33271 (eval $ac_try) 2>&5
33272 ac_status=$?
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; } &&
33275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33277 (eval $ac_try) 2>&5
33278 ac_status=$?
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); }; }; then
33281 ac_header_compiler=yes
33282else
33283 echo "$as_me: failed program was:" >&5
33284sed 's/^/| /' conftest.$ac_ext >&5
33285
33286ac_header_compiler=no
33287fi
ac1cb8d3 33288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33290echo "${ECHO_T}$ac_header_compiler" >&6
33291
33292# Is the header present?
33293echo "$as_me:$LINENO: checking $ac_header presence" >&5
33294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33295cat >conftest.$ac_ext <<_ACEOF
33296/* confdefs.h. */
33297_ACEOF
33298cat confdefs.h >>conftest.$ac_ext
33299cat >>conftest.$ac_ext <<_ACEOF
33300/* end confdefs.h. */
33301#include <$ac_header>
33302_ACEOF
33303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33305 ac_status=$?
33306 grep -v '^ *+' conftest.er1 >conftest.err
33307 rm -f conftest.er1
33308 cat conftest.err >&5
33309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310 (exit $ac_status); } >/dev/null; then
33311 if test -s conftest.err; then
33312 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33314 else
33315 ac_cpp_err=
33316 fi
33317else
33318 ac_cpp_err=yes
33319fi
33320if test -z "$ac_cpp_err"; then
33321 ac_header_preproc=yes
33322else
33323 echo "$as_me: failed program was:" >&5
33324sed 's/^/| /' conftest.$ac_ext >&5
33325
33326 ac_header_preproc=no
33327fi
33328rm -f conftest.err conftest.$ac_ext
33329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33330echo "${ECHO_T}$ac_header_preproc" >&6
33331
33332# So? What about this header?
ac1cb8d3
VS
33333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33334 yes:no: )
a848cd7e
SC
33335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33339 ac_header_preproc=yes
a848cd7e 33340 ;;
ac1cb8d3 33341 no:yes:* )
a848cd7e
SC
33342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33345echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33349echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33354 (
33355 cat <<\_ASBOX
ac1cb8d3
VS
33356## ----------------------------------------- ##
33357## Report this to wx-dev@lists.wxwidgets.org ##
33358## ----------------------------------------- ##
a848cd7e
SC
33359_ASBOX
33360 ) |
33361 sed "s/^/$as_me: WARNING: /" >&2
33362 ;;
33363esac
33364echo "$as_me:$LINENO: checking for $ac_header" >&5
33365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33366if eval "test \"\${$as_ac_Header+set}\" = set"; then
33367 echo $ECHO_N "(cached) $ECHO_C" >&6
33368else
ac1cb8d3 33369 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33370fi
33371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33373
33374fi
33375if test `eval echo '${'$as_ac_Header'}'` = yes; then
33376 cat >>confdefs.h <<_ACEOF
33377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33378_ACEOF
33379
33380fi
33381
33382done
33383
33384 if test "$ac_cv_header_sched_h" = "yes"; then
33385 echo "$as_me:$LINENO: checking for sched_yield" >&5
33386echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
33387if test "${ac_cv_func_sched_yield+set}" = set; then
33388 echo $ECHO_N "(cached) $ECHO_C" >&6
33389else
33390 cat >conftest.$ac_ext <<_ACEOF
33391/* confdefs.h. */
33392_ACEOF
33393cat confdefs.h >>conftest.$ac_ext
33394cat >>conftest.$ac_ext <<_ACEOF
33395/* end confdefs.h. */
ac1cb8d3
VS
33396/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
33397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33398#define sched_yield innocuous_sched_yield
33399
a848cd7e
SC
33400/* System header to define __stub macros and hopefully few prototypes,
33401 which can conflict with char sched_yield (); below.
33402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33403 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33404
a848cd7e
SC
33405#ifdef __STDC__
33406# include <limits.h>
33407#else
33408# include <assert.h>
33409#endif
ac1cb8d3
VS
33410
33411#undef sched_yield
33412
a848cd7e
SC
33413/* Override any gcc2 internal prototype to avoid an error. */
33414#ifdef __cplusplus
33415extern "C"
33416{
33417#endif
33418/* We use char because int might match the return type of a gcc2
33419 builtin and then its argument prototype would still apply. */
33420char sched_yield ();
33421/* The GNU C library defines this for functions which it implements
33422 to always fail with ENOSYS. Some functions are actually named
33423 something starting with __ and the normal name is an alias. */
33424#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
33425choke me
33426#else
33427char (*f) () = sched_yield;
33428#endif
33429#ifdef __cplusplus
33430}
33431#endif
33432
33433int
33434main ()
33435{
33436return f != sched_yield;
33437 ;
33438 return 0;
33439}
33440_ACEOF
33441rm -f conftest.$ac_objext conftest$ac_exeext
33442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33443 (eval $ac_link) 2>conftest.er1
a848cd7e 33444 ac_status=$?
ac1cb8d3
VS
33445 grep -v '^ *+' conftest.er1 >conftest.err
33446 rm -f conftest.er1
33447 cat conftest.err >&5
a848cd7e
SC
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); } &&
ac1cb8d3
VS
33450 { ac_try='test -z "$ac_c_werror_flag"
33451 || test ! -s conftest.err'
33452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33453 (eval $ac_try) 2>&5
33454 ac_status=$?
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); }; } &&
33457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33459 (eval $ac_try) 2>&5
33460 ac_status=$?
33461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462 (exit $ac_status); }; }; then
33463 ac_cv_func_sched_yield=yes
33464else
33465 echo "$as_me: failed program was:" >&5
33466sed 's/^/| /' conftest.$ac_ext >&5
33467
33468ac_cv_func_sched_yield=no
33469fi
ac1cb8d3
VS
33470rm -f conftest.err conftest.$ac_objext \
33471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33472fi
33473echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
33474echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
33475if test $ac_cv_func_sched_yield = yes; then
33476 cat >>confdefs.h <<\_ACEOF
33477#define HAVE_SCHED_YIELD 1
33478_ACEOF
33479
33480else
33481
33482 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
33483echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
33484if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
33485 echo $ECHO_N "(cached) $ECHO_C" >&6
33486else
33487 ac_check_lib_save_LIBS=$LIBS
33488LIBS="-lposix4 $LIBS"
33489cat >conftest.$ac_ext <<_ACEOF
33490/* confdefs.h. */
33491_ACEOF
33492cat confdefs.h >>conftest.$ac_ext
33493cat >>conftest.$ac_ext <<_ACEOF
33494/* end confdefs.h. */
33495
33496/* Override any gcc2 internal prototype to avoid an error. */
33497#ifdef __cplusplus
33498extern "C"
33499#endif
33500/* We use char because int might match the return type of a gcc2
33501 builtin and then its argument prototype would still apply. */
33502char sched_yield ();
33503int
33504main ()
33505{
33506sched_yield ();
33507 ;
33508 return 0;
33509}
33510_ACEOF
33511rm -f conftest.$ac_objext conftest$ac_exeext
33512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33513 (eval $ac_link) 2>conftest.er1
a848cd7e 33514 ac_status=$?
ac1cb8d3
VS
33515 grep -v '^ *+' conftest.er1 >conftest.err
33516 rm -f conftest.er1
33517 cat conftest.err >&5
a848cd7e
SC
33518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33519 (exit $ac_status); } &&
ac1cb8d3
VS
33520 { ac_try='test -z "$ac_c_werror_flag"
33521 || test ! -s conftest.err'
33522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33523 (eval $ac_try) 2>&5
33524 ac_status=$?
33525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33526 (exit $ac_status); }; } &&
33527 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33529 (eval $ac_try) 2>&5
33530 ac_status=$?
33531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532 (exit $ac_status); }; }; then
33533 ac_cv_lib_posix4_sched_yield=yes
33534else
33535 echo "$as_me: failed program was:" >&5
33536sed 's/^/| /' conftest.$ac_ext >&5
33537
33538ac_cv_lib_posix4_sched_yield=no
33539fi
ac1cb8d3
VS
33540rm -f conftest.err conftest.$ac_objext \
33541 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33542LIBS=$ac_check_lib_save_LIBS
33543fi
33544echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
33545echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
33546if test $ac_cv_lib_posix4_sched_yield = yes; then
33547 cat >>confdefs.h <<\_ACEOF
33548#define HAVE_SCHED_YIELD 1
33549_ACEOF
33550 POSIX4_LINK=" -lposix4"
33551else
33552 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
33553echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
33554
33555fi
33556
33557
33558
33559fi
33560
33561 fi
33562
33563 HAVE_PRIOR_FUNCS=0
33564 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
33565echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
33566if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
33567 echo $ECHO_N "(cached) $ECHO_C" >&6
33568else
33569 cat >conftest.$ac_ext <<_ACEOF
33570/* confdefs.h. */
33571_ACEOF
33572cat confdefs.h >>conftest.$ac_ext
33573cat >>conftest.$ac_ext <<_ACEOF
33574/* end confdefs.h. */
ac1cb8d3
VS
33575/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
33576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33577#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
33578
a848cd7e
SC
33579/* System header to define __stub macros and hopefully few prototypes,
33580 which can conflict with char pthread_attr_getschedpolicy (); below.
33581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33582 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33583
a848cd7e
SC
33584#ifdef __STDC__
33585# include <limits.h>
33586#else
33587# include <assert.h>
33588#endif
ac1cb8d3
VS
33589
33590#undef pthread_attr_getschedpolicy
33591
a848cd7e
SC
33592/* Override any gcc2 internal prototype to avoid an error. */
33593#ifdef __cplusplus
33594extern "C"
33595{
33596#endif
33597/* We use char because int might match the return type of a gcc2
33598 builtin and then its argument prototype would still apply. */
33599char pthread_attr_getschedpolicy ();
33600/* The GNU C library defines this for functions which it implements
33601 to always fail with ENOSYS. Some functions are actually named
33602 something starting with __ and the normal name is an alias. */
33603#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
33604choke me
33605#else
33606char (*f) () = pthread_attr_getschedpolicy;
33607#endif
33608#ifdef __cplusplus
33609}
33610#endif
33611
33612int
33613main ()
33614{
33615return f != pthread_attr_getschedpolicy;
33616 ;
33617 return 0;
33618}
33619_ACEOF
33620rm -f conftest.$ac_objext conftest$ac_exeext
33621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33622 (eval $ac_link) 2>conftest.er1
a848cd7e 33623 ac_status=$?
ac1cb8d3
VS
33624 grep -v '^ *+' conftest.er1 >conftest.err
33625 rm -f conftest.er1
33626 cat conftest.err >&5
a848cd7e
SC
33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628 (exit $ac_status); } &&
ac1cb8d3
VS
33629 { ac_try='test -z "$ac_c_werror_flag"
33630 || test ! -s conftest.err'
33631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33632 (eval $ac_try) 2>&5
33633 ac_status=$?
33634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635 (exit $ac_status); }; } &&
33636 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33638 (eval $ac_try) 2>&5
33639 ac_status=$?
33640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641 (exit $ac_status); }; }; then
33642 ac_cv_func_pthread_attr_getschedpolicy=yes
33643else
33644 echo "$as_me: failed program was:" >&5
33645sed 's/^/| /' conftest.$ac_ext >&5
33646
33647ac_cv_func_pthread_attr_getschedpolicy=no
33648fi
ac1cb8d3
VS
33649rm -f conftest.err conftest.$ac_objext \
33650 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33651fi
33652echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33653echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33654if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33655 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33656echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33657if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33658 echo $ECHO_N "(cached) $ECHO_C" >&6
33659else
33660 cat >conftest.$ac_ext <<_ACEOF
33661/* confdefs.h. */
33662_ACEOF
33663cat confdefs.h >>conftest.$ac_ext
33664cat >>conftest.$ac_ext <<_ACEOF
33665/* end confdefs.h. */
ac1cb8d3
VS
33666/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33668#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33669
a848cd7e
SC
33670/* System header to define __stub macros and hopefully few prototypes,
33671 which can conflict with char pthread_attr_setschedparam (); below.
33672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33673 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33674
a848cd7e
SC
33675#ifdef __STDC__
33676# include <limits.h>
33677#else
33678# include <assert.h>
33679#endif
ac1cb8d3
VS
33680
33681#undef pthread_attr_setschedparam
33682
a848cd7e
SC
33683/* Override any gcc2 internal prototype to avoid an error. */
33684#ifdef __cplusplus
33685extern "C"
33686{
33687#endif
33688/* We use char because int might match the return type of a gcc2
33689 builtin and then its argument prototype would still apply. */
33690char pthread_attr_setschedparam ();
33691/* The GNU C library defines this for functions which it implements
33692 to always fail with ENOSYS. Some functions are actually named
33693 something starting with __ and the normal name is an alias. */
33694#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33695choke me
33696#else
33697char (*f) () = pthread_attr_setschedparam;
33698#endif
33699#ifdef __cplusplus
33700}
33701#endif
33702
33703int
33704main ()
33705{
33706return f != pthread_attr_setschedparam;
33707 ;
33708 return 0;
33709}
33710_ACEOF
33711rm -f conftest.$ac_objext conftest$ac_exeext
33712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33713 (eval $ac_link) 2>conftest.er1
a848cd7e 33714 ac_status=$?
ac1cb8d3
VS
33715 grep -v '^ *+' conftest.er1 >conftest.err
33716 rm -f conftest.er1
33717 cat conftest.err >&5
a848cd7e
SC
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); } &&
ac1cb8d3
VS
33720 { ac_try='test -z "$ac_c_werror_flag"
33721 || test ! -s conftest.err'
33722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723 (eval $ac_try) 2>&5
33724 ac_status=$?
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); }; } &&
33727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33729 (eval $ac_try) 2>&5
33730 ac_status=$?
33731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33732 (exit $ac_status); }; }; then
33733 ac_cv_func_pthread_attr_setschedparam=yes
33734else
33735 echo "$as_me: failed program was:" >&5
33736sed 's/^/| /' conftest.$ac_ext >&5
33737
33738ac_cv_func_pthread_attr_setschedparam=no
33739fi
ac1cb8d3
VS
33740rm -f conftest.err conftest.$ac_objext \
33741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33742fi
33743echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33744echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33745if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33746 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33747echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33748if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33749 echo $ECHO_N "(cached) $ECHO_C" >&6
33750else
33751 cat >conftest.$ac_ext <<_ACEOF
33752/* confdefs.h. */
33753_ACEOF
33754cat confdefs.h >>conftest.$ac_ext
33755cat >>conftest.$ac_ext <<_ACEOF
33756/* end confdefs.h. */
ac1cb8d3
VS
33757/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33759#define sched_get_priority_max innocuous_sched_get_priority_max
33760
a848cd7e
SC
33761/* System header to define __stub macros and hopefully few prototypes,
33762 which can conflict with char sched_get_priority_max (); below.
33763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33764 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33765
a848cd7e
SC
33766#ifdef __STDC__
33767# include <limits.h>
33768#else
33769# include <assert.h>
33770#endif
ac1cb8d3
VS
33771
33772#undef sched_get_priority_max
33773
a848cd7e
SC
33774/* Override any gcc2 internal prototype to avoid an error. */
33775#ifdef __cplusplus
33776extern "C"
33777{
33778#endif
33779/* We use char because int might match the return type of a gcc2
33780 builtin and then its argument prototype would still apply. */
33781char sched_get_priority_max ();
33782/* The GNU C library defines this for functions which it implements
33783 to always fail with ENOSYS. Some functions are actually named
33784 something starting with __ and the normal name is an alias. */
33785#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33786choke me
33787#else
33788char (*f) () = sched_get_priority_max;
33789#endif
33790#ifdef __cplusplus
33791}
33792#endif
33793
33794int
33795main ()
33796{
33797return f != sched_get_priority_max;
33798 ;
33799 return 0;
33800}
33801_ACEOF
33802rm -f conftest.$ac_objext conftest$ac_exeext
33803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33804 (eval $ac_link) 2>conftest.er1
a848cd7e 33805 ac_status=$?
ac1cb8d3
VS
33806 grep -v '^ *+' conftest.er1 >conftest.err
33807 rm -f conftest.er1
33808 cat conftest.err >&5
a848cd7e
SC
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); } &&
ac1cb8d3
VS
33811 { ac_try='test -z "$ac_c_werror_flag"
33812 || test ! -s conftest.err'
33813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33814 (eval $ac_try) 2>&5
33815 ac_status=$?
33816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817 (exit $ac_status); }; } &&
33818 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33820 (eval $ac_try) 2>&5
33821 ac_status=$?
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); }; }; then
33824 ac_cv_func_sched_get_priority_max=yes
33825else
33826 echo "$as_me: failed program was:" >&5
33827sed 's/^/| /' conftest.$ac_ext >&5
33828
33829ac_cv_func_sched_get_priority_max=no
33830fi
ac1cb8d3
VS
33831rm -f conftest.err conftest.$ac_objext \
33832 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33833fi
33834echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33835echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33836if test $ac_cv_func_sched_get_priority_max = yes; then
33837 HAVE_PRIOR_FUNCS=1
33838else
33839 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33840echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33841if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33842 echo $ECHO_N "(cached) $ECHO_C" >&6
33843else
33844 ac_check_lib_save_LIBS=$LIBS
33845LIBS="-lposix4 $LIBS"
33846cat >conftest.$ac_ext <<_ACEOF
33847/* confdefs.h. */
33848_ACEOF
33849cat confdefs.h >>conftest.$ac_ext
33850cat >>conftest.$ac_ext <<_ACEOF
33851/* end confdefs.h. */
33852
33853/* Override any gcc2 internal prototype to avoid an error. */
33854#ifdef __cplusplus
33855extern "C"
33856#endif
33857/* We use char because int might match the return type of a gcc2
33858 builtin and then its argument prototype would still apply. */
33859char sched_get_priority_max ();
33860int
33861main ()
33862{
33863sched_get_priority_max ();
33864 ;
33865 return 0;
33866}
33867_ACEOF
33868rm -f conftest.$ac_objext conftest$ac_exeext
33869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33870 (eval $ac_link) 2>conftest.er1
a848cd7e 33871 ac_status=$?
ac1cb8d3
VS
33872 grep -v '^ *+' conftest.er1 >conftest.err
33873 rm -f conftest.er1
33874 cat conftest.err >&5
a848cd7e
SC
33875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876 (exit $ac_status); } &&
ac1cb8d3
VS
33877 { ac_try='test -z "$ac_c_werror_flag"
33878 || test ! -s conftest.err'
33879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33880 (eval $ac_try) 2>&5
33881 ac_status=$?
33882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883 (exit $ac_status); }; } &&
33884 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33886 (eval $ac_try) 2>&5
33887 ac_status=$?
33888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889 (exit $ac_status); }; }; then
33890 ac_cv_lib_posix4_sched_get_priority_max=yes
33891else
33892 echo "$as_me: failed program was:" >&5
33893sed 's/^/| /' conftest.$ac_ext >&5
33894
33895ac_cv_lib_posix4_sched_get_priority_max=no
33896fi
ac1cb8d3
VS
33897rm -f conftest.err conftest.$ac_objext \
33898 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33899LIBS=$ac_check_lib_save_LIBS
33900fi
33901echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33902echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33903if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33904
33905 HAVE_PRIOR_FUNCS=1
33906 POSIX4_LINK=" -lposix4"
33907
33908fi
33909
33910
33911fi
33912
33913
33914fi
33915
33916
33917fi
33918
33919
33920 if test "$HAVE_PRIOR_FUNCS" = 1; then
33921 cat >>confdefs.h <<\_ACEOF
33922#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33923_ACEOF
33924
33925 else
33926 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33927echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33928 fi
33929
33930 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33931echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33932if test "${ac_cv_func_pthread_cancel+set}" = set; then
33933 echo $ECHO_N "(cached) $ECHO_C" >&6
33934else
33935 cat >conftest.$ac_ext <<_ACEOF
33936/* confdefs.h. */
33937_ACEOF
33938cat confdefs.h >>conftest.$ac_ext
33939cat >>conftest.$ac_ext <<_ACEOF
33940/* end confdefs.h. */
ac1cb8d3
VS
33941/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33943#define pthread_cancel innocuous_pthread_cancel
33944
a848cd7e
SC
33945/* System header to define __stub macros and hopefully few prototypes,
33946 which can conflict with char pthread_cancel (); below.
33947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33948 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33949
a848cd7e
SC
33950#ifdef __STDC__
33951# include <limits.h>
33952#else
33953# include <assert.h>
33954#endif
ac1cb8d3
VS
33955
33956#undef pthread_cancel
33957
a848cd7e
SC
33958/* Override any gcc2 internal prototype to avoid an error. */
33959#ifdef __cplusplus
33960extern "C"
33961{
33962#endif
33963/* We use char because int might match the return type of a gcc2
33964 builtin and then its argument prototype would still apply. */
33965char pthread_cancel ();
33966/* The GNU C library defines this for functions which it implements
33967 to always fail with ENOSYS. Some functions are actually named
33968 something starting with __ and the normal name is an alias. */
33969#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33970choke me
33971#else
33972char (*f) () = pthread_cancel;
33973#endif
33974#ifdef __cplusplus
33975}
33976#endif
33977
33978int
33979main ()
33980{
33981return f != pthread_cancel;
33982 ;
33983 return 0;
33984}
33985_ACEOF
33986rm -f conftest.$ac_objext conftest$ac_exeext
33987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33988 (eval $ac_link) 2>conftest.er1
a848cd7e 33989 ac_status=$?
ac1cb8d3
VS
33990 grep -v '^ *+' conftest.er1 >conftest.err
33991 rm -f conftest.er1
33992 cat conftest.err >&5
a848cd7e
SC
33993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994 (exit $ac_status); } &&
ac1cb8d3
VS
33995 { ac_try='test -z "$ac_c_werror_flag"
33996 || test ! -s conftest.err'
33997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33998 (eval $ac_try) 2>&5
33999 ac_status=$?
34000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34001 (exit $ac_status); }; } &&
34002 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34004 (eval $ac_try) 2>&5
34005 ac_status=$?
34006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007 (exit $ac_status); }; }; then
34008 ac_cv_func_pthread_cancel=yes
34009else
34010 echo "$as_me: failed program was:" >&5
34011sed 's/^/| /' conftest.$ac_ext >&5
34012
34013ac_cv_func_pthread_cancel=no
34014fi
ac1cb8d3
VS
34015rm -f conftest.err conftest.$ac_objext \
34016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34017fi
34018echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34019echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34020if test $ac_cv_func_pthread_cancel = yes; then
34021 cat >>confdefs.h <<\_ACEOF
34022#define HAVE_PTHREAD_CANCEL 1
34023_ACEOF
34024
34025else
34026 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34027echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34028fi
34029
34030
34031
34032
34033 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34034echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34035if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34036 echo $ECHO_N "(cached) $ECHO_C" >&6
34037else
34038
34039 cat >conftest.$ac_ext <<_ACEOF
34040/* confdefs.h. */
34041_ACEOF
34042cat confdefs.h >>conftest.$ac_ext
34043cat >>conftest.$ac_ext <<_ACEOF
34044/* end confdefs.h. */
34045#include <pthread.h>
34046int
34047main ()
34048{
34049
34050 pthread_mutexattr_t attr;
34051 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34052
34053 ;
34054 return 0;
34055}
34056_ACEOF
34057rm -f conftest.$ac_objext
34058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34059 (eval $ac_compile) 2>conftest.er1
a848cd7e 34060 ac_status=$?
ac1cb8d3
VS
34061 grep -v '^ *+' conftest.er1 >conftest.err
34062 rm -f conftest.er1
34063 cat conftest.err >&5
a848cd7e
SC
34064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065 (exit $ac_status); } &&
ac1cb8d3
VS
34066 { ac_try='test -z "$ac_c_werror_flag"
34067 || test ! -s conftest.err'
34068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34069 (eval $ac_try) 2>&5
34070 ac_status=$?
34071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34072 (exit $ac_status); }; } &&
34073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34075 (eval $ac_try) 2>&5
34076 ac_status=$?
34077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078 (exit $ac_status); }; }; then
34079
34080 wx_cv_type_pthread_mutexattr_t=yes
34081
34082else
34083 echo "$as_me: failed program was:" >&5
34084sed 's/^/| /' conftest.$ac_ext >&5
34085
34086
34087 wx_cv_type_pthread_mutexattr_t=no
34088
34089
34090fi
ac1cb8d3 34091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34092
34093fi
34094echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34095echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34096
34097 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34098 cat >>confdefs.h <<\_ACEOF
34099#define HAVE_PTHREAD_MUTEXATTR_T 1
34100_ACEOF
34101
34102 else
34103 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34104echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34105if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34106 echo $ECHO_N "(cached) $ECHO_C" >&6
34107else
34108
34109 cat >conftest.$ac_ext <<_ACEOF
34110/* confdefs.h. */
34111_ACEOF
34112cat confdefs.h >>conftest.$ac_ext
34113cat >>conftest.$ac_ext <<_ACEOF
34114/* end confdefs.h. */
34115#include <pthread.h>
34116int
34117main ()
34118{
34119
34120 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34121
34122 ;
34123 return 0;
34124}
34125_ACEOF
34126rm -f conftest.$ac_objext
34127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34128 (eval $ac_compile) 2>conftest.er1
a848cd7e 34129 ac_status=$?
ac1cb8d3
VS
34130 grep -v '^ *+' conftest.er1 >conftest.err
34131 rm -f conftest.er1
34132 cat conftest.err >&5
a848cd7e
SC
34133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134 (exit $ac_status); } &&
ac1cb8d3
VS
34135 { ac_try='test -z "$ac_c_werror_flag"
34136 || test ! -s conftest.err'
34137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34138 (eval $ac_try) 2>&5
34139 ac_status=$?
34140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34141 (exit $ac_status); }; } &&
34142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34144 (eval $ac_try) 2>&5
34145 ac_status=$?
34146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147 (exit $ac_status); }; }; then
34148
34149 wx_cv_type_pthread_rec_mutex_init=yes
34150
34151else
34152 echo "$as_me: failed program was:" >&5
34153sed 's/^/| /' conftest.$ac_ext >&5
34154
34155
34156 wx_cv_type_pthread_rec_mutex_init=no
34157
34158
34159fi
ac1cb8d3 34160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34161
34162fi
34163echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34164echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34165 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34166 cat >>confdefs.h <<\_ACEOF
34167#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34168_ACEOF
34169
34170 else
34171 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34172echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34173 fi
34174 fi
34175 fi
34176
34177else
34178 if test "$wxUSE_THREADS" = "yes" ; then
34179 case "${host}" in
34180 *-*-mingw32* )
34181 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34182echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34183if test "${wx_cv_cflags_mthread+set}" = set; then
34184 echo $ECHO_N "(cached) $ECHO_C" >&6
34185else
34186
34187 CFLAGS_OLD="$CFLAGS"
34188 CFLAGS="$CFLAGS -mthreads"
34189 cat >conftest.$ac_ext <<_ACEOF
34190/* confdefs.h. */
34191_ACEOF
34192cat confdefs.h >>conftest.$ac_ext
34193cat >>conftest.$ac_ext <<_ACEOF
34194/* end confdefs.h. */
34195
34196int
34197main ()
34198{
34199
34200 ;
34201 return 0;
34202}
34203_ACEOF
34204rm -f conftest.$ac_objext
34205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34206 (eval $ac_compile) 2>conftest.er1
a848cd7e 34207 ac_status=$?
ac1cb8d3
VS
34208 grep -v '^ *+' conftest.er1 >conftest.err
34209 rm -f conftest.er1
34210 cat conftest.err >&5
a848cd7e
SC
34211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212 (exit $ac_status); } &&
ac1cb8d3
VS
34213 { ac_try='test -z "$ac_c_werror_flag"
34214 || test ! -s conftest.err'
34215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34216 (eval $ac_try) 2>&5
34217 ac_status=$?
34218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219 (exit $ac_status); }; } &&
34220 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34222 (eval $ac_try) 2>&5
34223 ac_status=$?
34224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225 (exit $ac_status); }; }; then
34226 wx_cv_cflags_mthread=yes
34227else
34228 echo "$as_me: failed program was:" >&5
34229sed 's/^/| /' conftest.$ac_ext >&5
34230
34231wx_cv_cflags_mthread=no
34232
34233fi
ac1cb8d3 34234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34235
34236
34237fi
34238echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34239echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34240
34241 if test "$wx_cv_cflags_mthread" = "yes"; then
34242 CXXFLAGS="$CXXFLAGS -mthreads"
34243 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
34244 LDFLAGS="$LDFLAGS -mthreads"
34245 else
34246 CFLAGS="$CFLAGS_OLD"
34247 fi
34248 ;;
34249 *-pc-os2*emx )
34250 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
34251 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
34252 LDFLAGS="$LDFLAGS -Zmt"
34253 ;;
34254 esac
34255 fi
34256fi
34257
34258if test "$wxUSE_THREADS" = "yes"; then
34259 cat >>confdefs.h <<\_ACEOF
34260#define wxUSE_THREADS 1
34261_ACEOF
34262
34263
34264 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
34265else
34266 if test "$ac_cv_func_strtok_r" = "yes"; then
34267 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
34268echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
34269 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
34270 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
34271 echo "$as_me:$LINENO: result: yes" >&5
34272echo "${ECHO_T}yes" >&6
34273 else
34274 echo "$as_me:$LINENO: result: no" >&5
34275echo "${ECHO_T}no" >&6
34276 fi
34277 fi
34278fi
34279
34280if test "$WXGTK20" = 1 ; then
34281 cat >>confdefs.h <<_ACEOF
34282#define __WXGTK20__ $WXGTK20
34283_ACEOF
34284
34285 WXGTK12=1
34286fi
34287
34288if test "$WXGTK12" = 1 ; then
34289 cat >>confdefs.h <<_ACEOF
34290#define __WXGTK12__ $WXGTK12
34291_ACEOF
34292
34293fi
34294
34295if test "$WXGTK127" = 1 ; then
34296 cat >>confdefs.h <<_ACEOF
34297#define __WXGTK127__ $WXGTK127
34298_ACEOF
34299
34300fi
34301
34302if test "$WXGPE" = 1 ; then
34303 cat >>confdefs.h <<_ACEOF
34304#define __WXGPE__ $WXGPE
34305_ACEOF
34306
34307fi
34308
34309WXDEBUG=
34310
34311if test "$wxUSE_DEBUG_INFO" = "yes" ; then
34312 WXDEBUG="-g"
34313 wxUSE_OPTIMISE=no
34314fi
34315
34316if test "$wxUSE_DEBUG_GDB" = "yes" ; then
34317 wxUSE_DEBUG_INFO=yes
34318 WXDEBUG="-ggdb"
34319fi
34320
34321if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
34322 cat >>confdefs.h <<\_ACEOF
34323#define WXDEBUG 1
34324_ACEOF
34325
34326 WXDEBUG_DEFINE="-D__WXDEBUG__"
34327else
34328 if test "$wxUSE_GTK" = 1 ; then
34329 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
34330 fi
34331fi
34332
34333if test "$wxUSE_MEM_TRACING" = "yes" ; then
34334 cat >>confdefs.h <<\_ACEOF
34335#define wxUSE_MEMORY_TRACING 1
34336_ACEOF
34337
34338 cat >>confdefs.h <<\_ACEOF
34339#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
34340_ACEOF
34341
34342 cat >>confdefs.h <<\_ACEOF
34343#define wxUSE_DEBUG_NEW_ALWAYS 1
34344_ACEOF
34345
34346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
34347fi
34348
34349if test "$wxUSE_DMALLOC" = "yes" ; then
34350 DMALLOC_LIBS="-ldmalloc"
34351fi
34352
34353PROFILE=
34354if test "$wxUSE_PROFILE" = "yes" ; then
34355 PROFILE=" -pg"
34356fi
34357
34358CODE_GEN_FLAGS=
34359CODE_GEN_FLAGS_CXX=
34360if test "$GCC" = "yes" ; then
34361 if test "$wxUSE_NO_RTTI" = "yes" ; then
34362 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
34363 fi
34364 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
34365 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
34366 fi
34367 if test "$wxUSE_PERMISSIVE" = "yes" ; then
34368 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
34369 fi
34370
34371 case "${host}" in
34372 powerpc*-*-aix* )
34373 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
34374 ;;
34375 *-hppa* )
34376 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
34377 ;;
34378 esac
34379fi
34380
34381OPTIMISE=
34382if test "$wxUSE_OPTIMISE" = "no" ; then
34383 if test "$GCC" = yes ; then
34384 OPTIMISE="-O0"
34385 fi
34386else
34387 if test "$GCC" = yes ; then
34388 OPTIMISE="-O2"
34389
34390 case "${host}" in
34391 i586-*-*|i686-*-* )
34392 OPTIMISE="${OPTIMISE} "
34393 ;;
34394 esac
34395 else
34396 OPTIMISE="-O"
34397 fi
34398fi
34399
34400
34401if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
34402 cat >>confdefs.h <<\_ACEOF
34403#define WXWIN_COMPATIBILITY_2_2 1
34404_ACEOF
34405
34406
34407 WXWIN_COMPATIBILITY_2_4="yes"
34408fi
34409
34410if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
34411 cat >>confdefs.h <<\_ACEOF
34412#define WXWIN_COMPATIBILITY_2_4 1
34413_ACEOF
34414
34415fi
34416
34417
34418if test "$wxUSE_GUI" = "yes"; then
34419 cat >>confdefs.h <<\_ACEOF
34420#define wxUSE_GUI 1
34421_ACEOF
34422
34423
34424 else
34425 cat >>confdefs.h <<\_ACEOF
34426#define wxUSE_NOGUI 1
34427_ACEOF
34428
34429fi
34430
34431
34432if test "$wxUSE_UNIX" = "yes"; then
34433 cat >>confdefs.h <<\_ACEOF
34434#define wxUSE_UNIX 1
34435_ACEOF
34436
34437fi
34438
34439
34440if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34441
34442 HAVE_DL_FUNCS=0
34443 HAVE_SHL_FUNCS=0
34444 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34445 if test "$USE_DARWIN" = 1; then
34446 HAVE_DL_FUNCS=1
34447 else
34448
34449for ac_func in dlopen
34450do
34451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34452echo "$as_me:$LINENO: checking for $ac_func" >&5
34453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34454if eval "test \"\${$as_ac_var+set}\" = set"; then
34455 echo $ECHO_N "(cached) $ECHO_C" >&6
34456else
34457 cat >conftest.$ac_ext <<_ACEOF
34458/* confdefs.h. */
34459_ACEOF
34460cat confdefs.h >>conftest.$ac_ext
34461cat >>conftest.$ac_ext <<_ACEOF
34462/* end confdefs.h. */
ac1cb8d3
VS
34463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34465#define $ac_func innocuous_$ac_func
34466
a848cd7e
SC
34467/* System header to define __stub macros and hopefully few prototypes,
34468 which can conflict with char $ac_func (); below.
34469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34470 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34471
a848cd7e
SC
34472#ifdef __STDC__
34473# include <limits.h>
34474#else
34475# include <assert.h>
34476#endif
ac1cb8d3
VS
34477
34478#undef $ac_func
34479
a848cd7e
SC
34480/* Override any gcc2 internal prototype to avoid an error. */
34481#ifdef __cplusplus
34482extern "C"
34483{
34484#endif
34485/* We use char because int might match the return type of a gcc2
34486 builtin and then its argument prototype would still apply. */
34487char $ac_func ();
34488/* The GNU C library defines this for functions which it implements
34489 to always fail with ENOSYS. Some functions are actually named
34490 something starting with __ and the normal name is an alias. */
34491#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34492choke me
34493#else
34494char (*f) () = $ac_func;
34495#endif
34496#ifdef __cplusplus
34497}
34498#endif
34499
34500int
34501main ()
34502{
34503return f != $ac_func;
34504 ;
34505 return 0;
34506}
34507_ACEOF
34508rm -f conftest.$ac_objext conftest$ac_exeext
34509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34510 (eval $ac_link) 2>conftest.er1
a848cd7e 34511 ac_status=$?
ac1cb8d3
VS
34512 grep -v '^ *+' conftest.er1 >conftest.err
34513 rm -f conftest.er1
34514 cat conftest.err >&5
a848cd7e
SC
34515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516 (exit $ac_status); } &&
ac1cb8d3
VS
34517 { ac_try='test -z "$ac_c_werror_flag"
34518 || test ! -s conftest.err'
34519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34520 (eval $ac_try) 2>&5
34521 ac_status=$?
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); }; } &&
34524 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34526 (eval $ac_try) 2>&5
34527 ac_status=$?
34528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34529 (exit $ac_status); }; }; then
34530 eval "$as_ac_var=yes"
34531else
34532 echo "$as_me: failed program was:" >&5
34533sed 's/^/| /' conftest.$ac_ext >&5
34534
34535eval "$as_ac_var=no"
34536fi
ac1cb8d3
VS
34537rm -f conftest.err conftest.$ac_objext \
34538 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34539fi
34540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34541echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34542if test `eval echo '${'$as_ac_var'}'` = yes; then
34543 cat >>confdefs.h <<_ACEOF
34544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34545_ACEOF
34546
34547 cat >>confdefs.h <<\_ACEOF
34548#define HAVE_DLOPEN 1
34549_ACEOF
34550
34551 HAVE_DL_FUNCS=1
34552
34553else
34554
34555 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34556echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34557if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34558 echo $ECHO_N "(cached) $ECHO_C" >&6
34559else
34560 ac_check_lib_save_LIBS=$LIBS
34561LIBS="-ldl $LIBS"
34562cat >conftest.$ac_ext <<_ACEOF
34563/* confdefs.h. */
34564_ACEOF
34565cat confdefs.h >>conftest.$ac_ext
34566cat >>conftest.$ac_ext <<_ACEOF
34567/* end confdefs.h. */
34568
34569/* Override any gcc2 internal prototype to avoid an error. */
34570#ifdef __cplusplus
34571extern "C"
34572#endif
34573/* We use char because int might match the return type of a gcc2
34574 builtin and then its argument prototype would still apply. */
34575char dlopen ();
34576int
34577main ()
34578{
34579dlopen ();
34580 ;
34581 return 0;
34582}
34583_ACEOF
34584rm -f conftest.$ac_objext conftest$ac_exeext
34585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34586 (eval $ac_link) 2>conftest.er1
a848cd7e 34587 ac_status=$?
ac1cb8d3
VS
34588 grep -v '^ *+' conftest.er1 >conftest.err
34589 rm -f conftest.er1
34590 cat conftest.err >&5
a848cd7e
SC
34591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592 (exit $ac_status); } &&
ac1cb8d3
VS
34593 { ac_try='test -z "$ac_c_werror_flag"
34594 || test ! -s conftest.err'
34595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34596 (eval $ac_try) 2>&5
34597 ac_status=$?
34598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599 (exit $ac_status); }; } &&
34600 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34602 (eval $ac_try) 2>&5
34603 ac_status=$?
34604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605 (exit $ac_status); }; }; then
34606 ac_cv_lib_dl_dlopen=yes
34607else
34608 echo "$as_me: failed program was:" >&5
34609sed 's/^/| /' conftest.$ac_ext >&5
34610
34611ac_cv_lib_dl_dlopen=no
34612fi
ac1cb8d3
VS
34613rm -f conftest.err conftest.$ac_objext \
34614 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34615LIBS=$ac_check_lib_save_LIBS
34616fi
34617echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34618echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34619if test $ac_cv_lib_dl_dlopen = yes; then
34620
34621 cat >>confdefs.h <<\_ACEOF
34622#define HAVE_DLOPEN 1
34623_ACEOF
34624
34625 HAVE_DL_FUNCS=1
34626 DL_LINK=" -ldl$DL_LINK"
34627
34628else
34629
34630
34631for ac_func in shl_load
34632do
34633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34634echo "$as_me:$LINENO: checking for $ac_func" >&5
34635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34636if eval "test \"\${$as_ac_var+set}\" = set"; then
34637 echo $ECHO_N "(cached) $ECHO_C" >&6
34638else
34639 cat >conftest.$ac_ext <<_ACEOF
34640/* confdefs.h. */
34641_ACEOF
34642cat confdefs.h >>conftest.$ac_ext
34643cat >>conftest.$ac_ext <<_ACEOF
34644/* end confdefs.h. */
ac1cb8d3
VS
34645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34647#define $ac_func innocuous_$ac_func
34648
a848cd7e
SC
34649/* System header to define __stub macros and hopefully few prototypes,
34650 which can conflict with char $ac_func (); below.
34651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34652 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34653
a848cd7e
SC
34654#ifdef __STDC__
34655# include <limits.h>
34656#else
34657# include <assert.h>
34658#endif
ac1cb8d3
VS
34659
34660#undef $ac_func
34661
a848cd7e
SC
34662/* Override any gcc2 internal prototype to avoid an error. */
34663#ifdef __cplusplus
34664extern "C"
34665{
34666#endif
34667/* We use char because int might match the return type of a gcc2
34668 builtin and then its argument prototype would still apply. */
34669char $ac_func ();
34670/* The GNU C library defines this for functions which it implements
34671 to always fail with ENOSYS. Some functions are actually named
34672 something starting with __ and the normal name is an alias. */
34673#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34674choke me
34675#else
34676char (*f) () = $ac_func;
34677#endif
34678#ifdef __cplusplus
34679}
34680#endif
34681
34682int
34683main ()
34684{
34685return f != $ac_func;
34686 ;
34687 return 0;
34688}
34689_ACEOF
34690rm -f conftest.$ac_objext conftest$ac_exeext
34691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34692 (eval $ac_link) 2>conftest.er1
a848cd7e 34693 ac_status=$?
ac1cb8d3
VS
34694 grep -v '^ *+' conftest.er1 >conftest.err
34695 rm -f conftest.er1
34696 cat conftest.err >&5
a848cd7e
SC
34697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34698 (exit $ac_status); } &&
ac1cb8d3
VS
34699 { ac_try='test -z "$ac_c_werror_flag"
34700 || test ! -s conftest.err'
34701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34702 (eval $ac_try) 2>&5
34703 ac_status=$?
34704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705 (exit $ac_status); }; } &&
34706 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34708 (eval $ac_try) 2>&5
34709 ac_status=$?
34710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34711 (exit $ac_status); }; }; then
34712 eval "$as_ac_var=yes"
34713else
34714 echo "$as_me: failed program was:" >&5
34715sed 's/^/| /' conftest.$ac_ext >&5
34716
34717eval "$as_ac_var=no"
34718fi
ac1cb8d3
VS
34719rm -f conftest.err conftest.$ac_objext \
34720 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34721fi
34722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34724if test `eval echo '${'$as_ac_var'}'` = yes; then
34725 cat >>confdefs.h <<_ACEOF
34726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34727_ACEOF
34728
34729 cat >>confdefs.h <<\_ACEOF
34730#define HAVE_SHL_LOAD 1
34731_ACEOF
34732
34733 HAVE_SHL_FUNCS=1
34734
34735else
34736
34737 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34738echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34739if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34740 echo $ECHO_N "(cached) $ECHO_C" >&6
34741else
34742 ac_check_lib_save_LIBS=$LIBS
34743LIBS="-lshl_load $LIBS"
34744cat >conftest.$ac_ext <<_ACEOF
34745/* confdefs.h. */
34746_ACEOF
34747cat confdefs.h >>conftest.$ac_ext
34748cat >>conftest.$ac_ext <<_ACEOF
34749/* end confdefs.h. */
34750
34751/* Override any gcc2 internal prototype to avoid an error. */
34752#ifdef __cplusplus
34753extern "C"
34754#endif
34755/* We use char because int might match the return type of a gcc2
34756 builtin and then its argument prototype would still apply. */
34757char dld ();
34758int
34759main ()
34760{
34761dld ();
34762 ;
34763 return 0;
34764}
34765_ACEOF
34766rm -f conftest.$ac_objext conftest$ac_exeext
34767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34768 (eval $ac_link) 2>conftest.er1
a848cd7e 34769 ac_status=$?
ac1cb8d3
VS
34770 grep -v '^ *+' conftest.er1 >conftest.err
34771 rm -f conftest.er1
34772 cat conftest.err >&5
a848cd7e
SC
34773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34774 (exit $ac_status); } &&
ac1cb8d3
VS
34775 { ac_try='test -z "$ac_c_werror_flag"
34776 || test ! -s conftest.err'
34777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34778 (eval $ac_try) 2>&5
34779 ac_status=$?
34780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34781 (exit $ac_status); }; } &&
34782 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34784 (eval $ac_try) 2>&5
34785 ac_status=$?
34786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34787 (exit $ac_status); }; }; then
34788 ac_cv_lib_shl_load_dld=yes
34789else
34790 echo "$as_me: failed program was:" >&5
34791sed 's/^/| /' conftest.$ac_ext >&5
34792
34793ac_cv_lib_shl_load_dld=no
34794fi
ac1cb8d3
VS
34795rm -f conftest.err conftest.$ac_objext \
34796 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34797LIBS=$ac_check_lib_save_LIBS
34798fi
34799echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34800echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34801if test $ac_cv_lib_shl_load_dld = yes; then
34802
34803 HAVE_SHL_FUNCS=1
34804 DL_LINK=" -ldld$DL_LINK"
34805
34806fi
34807
34808
34809fi
34810done
34811
34812
34813fi
34814
34815
34816fi
34817done
34818
34819
34820 if test "$HAVE_DL_FUNCS" = 1; then
34821
34822for ac_func in dlerror
34823do
34824as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34825echo "$as_me:$LINENO: checking for $ac_func" >&5
34826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34827if eval "test \"\${$as_ac_var+set}\" = set"; then
34828 echo $ECHO_N "(cached) $ECHO_C" >&6
34829else
34830 cat >conftest.$ac_ext <<_ACEOF
34831/* confdefs.h. */
34832_ACEOF
34833cat confdefs.h >>conftest.$ac_ext
34834cat >>conftest.$ac_ext <<_ACEOF
34835/* end confdefs.h. */
ac1cb8d3
VS
34836/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34838#define $ac_func innocuous_$ac_func
34839
a848cd7e
SC
34840/* System header to define __stub macros and hopefully few prototypes,
34841 which can conflict with char $ac_func (); below.
34842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34843 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34844
a848cd7e
SC
34845#ifdef __STDC__
34846# include <limits.h>
34847#else
34848# include <assert.h>
34849#endif
ac1cb8d3
VS
34850
34851#undef $ac_func
34852
a848cd7e
SC
34853/* Override any gcc2 internal prototype to avoid an error. */
34854#ifdef __cplusplus
34855extern "C"
34856{
34857#endif
34858/* We use char because int might match the return type of a gcc2
34859 builtin and then its argument prototype would still apply. */
34860char $ac_func ();
34861/* The GNU C library defines this for functions which it implements
34862 to always fail with ENOSYS. Some functions are actually named
34863 something starting with __ and the normal name is an alias. */
34864#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34865choke me
34866#else
34867char (*f) () = $ac_func;
34868#endif
34869#ifdef __cplusplus
34870}
34871#endif
34872
34873int
34874main ()
34875{
34876return f != $ac_func;
34877 ;
34878 return 0;
34879}
34880_ACEOF
34881rm -f conftest.$ac_objext conftest$ac_exeext
34882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34883 (eval $ac_link) 2>conftest.er1
a848cd7e 34884 ac_status=$?
ac1cb8d3
VS
34885 grep -v '^ *+' conftest.er1 >conftest.err
34886 rm -f conftest.er1
34887 cat conftest.err >&5
a848cd7e
SC
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); } &&
ac1cb8d3
VS
34890 { ac_try='test -z "$ac_c_werror_flag"
34891 || test ! -s conftest.err'
34892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34893 (eval $ac_try) 2>&5
34894 ac_status=$?
34895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896 (exit $ac_status); }; } &&
34897 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34899 (eval $ac_try) 2>&5
34900 ac_status=$?
34901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902 (exit $ac_status); }; }; then
34903 eval "$as_ac_var=yes"
34904else
34905 echo "$as_me: failed program was:" >&5
34906sed 's/^/| /' conftest.$ac_ext >&5
34907
34908eval "$as_ac_var=no"
34909fi
ac1cb8d3
VS
34910rm -f conftest.err conftest.$ac_objext \
34911 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34912fi
34913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34914echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34915if test `eval echo '${'$as_ac_var'}'` = yes; then
34916 cat >>confdefs.h <<_ACEOF
34917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34918_ACEOF
34919 cat >>confdefs.h <<\_ACEOF
34920#define HAVE_DLERROR 1
34921_ACEOF
34922
34923else
34924
34925 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34926echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34927if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34928 echo $ECHO_N "(cached) $ECHO_C" >&6
34929else
34930 ac_check_lib_save_LIBS=$LIBS
34931LIBS="-ldl $LIBS"
34932cat >conftest.$ac_ext <<_ACEOF
34933/* confdefs.h. */
34934_ACEOF
34935cat confdefs.h >>conftest.$ac_ext
34936cat >>conftest.$ac_ext <<_ACEOF
34937/* end confdefs.h. */
34938
34939/* Override any gcc2 internal prototype to avoid an error. */
34940#ifdef __cplusplus
34941extern "C"
34942#endif
34943/* We use char because int might match the return type of a gcc2
34944 builtin and then its argument prototype would still apply. */
34945char dlerror ();
34946int
34947main ()
34948{
34949dlerror ();
34950 ;
34951 return 0;
34952}
34953_ACEOF
34954rm -f conftest.$ac_objext conftest$ac_exeext
34955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34956 (eval $ac_link) 2>conftest.er1
a848cd7e 34957 ac_status=$?
ac1cb8d3
VS
34958 grep -v '^ *+' conftest.er1 >conftest.err
34959 rm -f conftest.er1
34960 cat conftest.err >&5
a848cd7e
SC
34961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962 (exit $ac_status); } &&
ac1cb8d3
VS
34963 { ac_try='test -z "$ac_c_werror_flag"
34964 || test ! -s conftest.err'
34965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34966 (eval $ac_try) 2>&5
34967 ac_status=$?
34968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969 (exit $ac_status); }; } &&
34970 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34972 (eval $ac_try) 2>&5
34973 ac_status=$?
34974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975 (exit $ac_status); }; }; then
34976 ac_cv_lib_dl_dlerror=yes
34977else
34978 echo "$as_me: failed program was:" >&5
34979sed 's/^/| /' conftest.$ac_ext >&5
34980
34981ac_cv_lib_dl_dlerror=no
34982fi
ac1cb8d3
VS
34983rm -f conftest.err conftest.$ac_objext \
34984 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34985LIBS=$ac_check_lib_save_LIBS
34986fi
34987echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34988echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34989if test $ac_cv_lib_dl_dlerror = yes; then
34990 cat >>confdefs.h <<\_ACEOF
34991#define HAVE_DLERROR 1
34992_ACEOF
34993
34994fi
34995
34996
34997
34998fi
34999done
35000
35001 fi
35002 fi
35003
35004 if test "$HAVE_DL_FUNCS" = 0; then
35005 if test "$HAVE_SHL_FUNCS" = 0; then
35006 if test "$USE_UNIX" = 1; then
35007 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35008echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35009 wxUSE_DYNAMIC_LOADER=no
35010 wxUSE_DYNLIB_CLASS=no
35011 else
35012 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35013echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35014 fi
35015 fi
35016 fi
35017 fi
35018fi
35019
35020if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35021 cat >>confdefs.h <<\_ACEOF
35022#define wxUSE_DYNAMIC_LOADER 1
35023_ACEOF
35024
35025fi
35026if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35027 cat >>confdefs.h <<\_ACEOF
35028#define wxUSE_DYNLIB_CLASS 1
35029_ACEOF
35030
35031fi
35032
35033
35034
35035if test "$wxUSE_PLUGINS" = "yes" ; then
35036 if test "$wxUSE_SHARED" = "no" ; then
35037 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35038echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35039 wxUSE_PLUGINS=no
35040 fi
35041 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35042 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35043echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35044 wxUSE_PLUGINS=no
35045 fi
35046 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35047 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35048echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35049 wxUSE_PLUGINS=no
35050 fi
35051 if test "$wxUSE_PLUGINS" = "yes" ; then
35052 cat >>confdefs.h <<\_ACEOF
35053#define wxUSE_PLUGINS 1
35054_ACEOF
35055
35056 fi
35057fi
35058
35059
35060if test "$wxUSE_STL" = "yes"; then
35061 cat >>confdefs.h <<\_ACEOF
35062#define wxUSE_STL 1
35063_ACEOF
35064
35065fi
35066
35067if test "$wxUSE_APPLE_IEEE" = "yes"; then
35068 cat >>confdefs.h <<\_ACEOF
35069#define wxUSE_APPLE_IEEE 1
35070_ACEOF
35071
35072fi
35073
35074if test "$wxUSE_TIMER" = "yes"; then
35075 cat >>confdefs.h <<\_ACEOF
35076#define wxUSE_TIMER 1
35077_ACEOF
35078
35079fi
35080
35081WITH_PLUGIN_SDL=0
35082if test "$wxUSE_SOUND" = "yes"; then
35083 if test "$USE_UNIX" = "1" ; then
35084
35085for ac_header in sys/soundcard.h
35086do
35087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35088if eval "test \"\${$as_ac_Header+set}\" = set"; then
35089 echo "$as_me:$LINENO: checking for $ac_header" >&5
35090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35091if eval "test \"\${$as_ac_Header+set}\" = set"; then
35092 echo $ECHO_N "(cached) $ECHO_C" >&6
35093fi
35094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35096else
35097 # Is the header compilable?
35098echo "$as_me:$LINENO: checking $ac_header usability" >&5
35099echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35100cat >conftest.$ac_ext <<_ACEOF
35101/* confdefs.h. */
35102_ACEOF
35103cat confdefs.h >>conftest.$ac_ext
35104cat >>conftest.$ac_ext <<_ACEOF
35105/* end confdefs.h. */
35106$ac_includes_default
35107#include <$ac_header>
35108_ACEOF
35109rm -f conftest.$ac_objext
35110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35111 (eval $ac_compile) 2>conftest.er1
a848cd7e 35112 ac_status=$?
ac1cb8d3
VS
35113 grep -v '^ *+' conftest.er1 >conftest.err
35114 rm -f conftest.er1
35115 cat conftest.err >&5
a848cd7e
SC
35116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117 (exit $ac_status); } &&
ac1cb8d3
VS
35118 { ac_try='test -z "$ac_c_werror_flag"
35119 || test ! -s conftest.err'
35120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35121 (eval $ac_try) 2>&5
35122 ac_status=$?
35123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124 (exit $ac_status); }; } &&
35125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35127 (eval $ac_try) 2>&5
35128 ac_status=$?
35129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); }; }; then
35131 ac_header_compiler=yes
35132else
35133 echo "$as_me: failed program was:" >&5
35134sed 's/^/| /' conftest.$ac_ext >&5
35135
35136ac_header_compiler=no
35137fi
ac1cb8d3 35138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35139echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35140echo "${ECHO_T}$ac_header_compiler" >&6
35141
35142# Is the header present?
35143echo "$as_me:$LINENO: checking $ac_header presence" >&5
35144echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35145cat >conftest.$ac_ext <<_ACEOF
35146/* confdefs.h. */
35147_ACEOF
35148cat confdefs.h >>conftest.$ac_ext
35149cat >>conftest.$ac_ext <<_ACEOF
35150/* end confdefs.h. */
35151#include <$ac_header>
35152_ACEOF
35153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35155 ac_status=$?
35156 grep -v '^ *+' conftest.er1 >conftest.err
35157 rm -f conftest.er1
35158 cat conftest.err >&5
35159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35160 (exit $ac_status); } >/dev/null; then
35161 if test -s conftest.err; then
35162 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35164 else
35165 ac_cpp_err=
35166 fi
35167else
35168 ac_cpp_err=yes
35169fi
35170if test -z "$ac_cpp_err"; then
35171 ac_header_preproc=yes
35172else
35173 echo "$as_me: failed program was:" >&5
35174sed 's/^/| /' conftest.$ac_ext >&5
35175
35176 ac_header_preproc=no
35177fi
35178rm -f conftest.err conftest.$ac_ext
35179echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35180echo "${ECHO_T}$ac_header_preproc" >&6
35181
35182# So? What about this header?
ac1cb8d3
VS
35183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35184 yes:no: )
a848cd7e
SC
35185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35189 ac_header_preproc=yes
a848cd7e 35190 ;;
ac1cb8d3 35191 no:yes:* )
a848cd7e
SC
35192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35195echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35199echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35204 (
35205 cat <<\_ASBOX
ac1cb8d3
VS
35206## ----------------------------------------- ##
35207## Report this to wx-dev@lists.wxwidgets.org ##
35208## ----------------------------------------- ##
a848cd7e
SC
35209_ASBOX
35210 ) |
35211 sed "s/^/$as_me: WARNING: /" >&2
35212 ;;
35213esac
35214echo "$as_me:$LINENO: checking for $ac_header" >&5
35215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35216if eval "test \"\${$as_ac_Header+set}\" = set"; then
35217 echo $ECHO_N "(cached) $ECHO_C" >&6
35218else
ac1cb8d3 35219 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35220fi
35221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35223
35224fi
35225if test `eval echo '${'$as_ac_Header'}'` = yes; then
35226 cat >>confdefs.h <<_ACEOF
35227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35228_ACEOF
35229
35230fi
35231
35232done
35233
35234
35235 if test "$wxUSE_LIBSDL" != "no"; then
35236
35237# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35238if test "${with_sdl_prefix+set}" = set; then
35239 withval="$with_sdl_prefix"
35240 sdl_prefix="$withval"
35241else
35242 sdl_prefix=""
35243fi;
35244
35245# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
35246if test "${with_sdl_exec_prefix+set}" = set; then
35247 withval="$with_sdl_exec_prefix"
35248 sdl_exec_prefix="$withval"
35249else
35250 sdl_exec_prefix=""
35251fi;
35252# Check whether --enable-sdltest or --disable-sdltest was given.
35253if test "${enable_sdltest+set}" = set; then
35254 enableval="$enable_sdltest"
35255
35256else
35257 enable_sdltest=yes
35258fi;
35259
35260 if test x$sdl_exec_prefix != x ; then
35261 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
35262 if test x${SDL_CONFIG+set} != xset ; then
35263 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
35264 fi
35265 fi
35266 if test x$sdl_prefix != x ; then
35267 sdl_args="$sdl_args --prefix=$sdl_prefix"
35268 if test x${SDL_CONFIG+set} != xset ; then
35269 SDL_CONFIG=$sdl_prefix/bin/sdl-config
35270 fi
35271 fi
35272
35273
35274 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
35275 # Extract the first word of "sdl-config", so it can be a program name with args.
35276set dummy sdl-config; ac_word=$2
35277echo "$as_me:$LINENO: checking for $ac_word" >&5
35278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35279if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
35280 echo $ECHO_N "(cached) $ECHO_C" >&6
35281else
35282 case $SDL_CONFIG in
35283 [\\/]* | ?:[\\/]*)
35284 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
35285 ;;
35286 *)
35287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35288for as_dir in $PATH
35289do
35290 IFS=$as_save_IFS
35291 test -z "$as_dir" && as_dir=.
35292 for ac_exec_ext in '' $ac_executable_extensions; do
35293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35294 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35296 break 2
35297 fi
35298done
35299done
35300
35301 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
35302 ;;
35303esac
35304fi
35305SDL_CONFIG=$ac_cv_path_SDL_CONFIG
35306
35307if test -n "$SDL_CONFIG"; then
35308 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
35309echo "${ECHO_T}$SDL_CONFIG" >&6
35310else
35311 echo "$as_me:$LINENO: result: no" >&5
35312echo "${ECHO_T}no" >&6
35313fi
35314
35315 min_sdl_version=1.2.0
35316 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
35317echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
35318 no_sdl=""
35319 if test "$SDL_CONFIG" = "no" ; then
35320 no_sdl=yes
35321 else
35322 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
35323 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
35324
35325 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
35326 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
35327 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
35328 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
35329 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
35330 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
35331 if test "x$enable_sdltest" = "xyes" ; then
35332 ac_save_CFLAGS="$CFLAGS"
35333 ac_save_LIBS="$LIBS"
35334 CFLAGS="$CFLAGS $SDL_CFLAGS"
35335 LIBS="$LIBS $SDL_LIBS"
35336 rm -f conf.sdltest
35337 if test "$cross_compiling" = yes; then
35338 echo $ac_n "cross compiling; assumed OK... $ac_c"
35339else
35340 cat >conftest.$ac_ext <<_ACEOF
35341/* confdefs.h. */
35342_ACEOF
35343cat confdefs.h >>conftest.$ac_ext
35344cat >>conftest.$ac_ext <<_ACEOF
35345/* end confdefs.h. */
35346
35347#include <stdio.h>
35348#include <stdlib.h>
35349#include <string.h>
35350#include "SDL.h"
35351
35352char*
35353my_strdup (char *str)
35354{
35355 char *new_str;
35356
35357 if (str)
35358 {
35359 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
35360 strcpy (new_str, str);
35361 }
35362 else
35363 new_str = NULL;
35364
35365 return new_str;
35366}
35367
35368int main (int argc, char *argv[])
35369{
35370 int major, minor, micro;
35371 char *tmp_version;
35372
35373 /* This hangs on some systems (?)
35374 system ("touch conf.sdltest");
35375 */
35376 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
35377
35378 /* HP/UX 9 (%@#!) writes to sscanf strings */
35379 tmp_version = my_strdup("$min_sdl_version");
35380 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
35381 printf("%s, bad version string\n", "$min_sdl_version");
35382 exit(1);
35383 }
35384
35385 if (($sdl_major_version > major) ||
35386 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
35387 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
35388 {
35389 return 0;
35390 }
35391 else
35392 {
35393 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
35394 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
35395 printf("*** best to upgrade to the required version.\n");
35396 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
35397 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
35398 printf("*** config.cache before re-running configure\n");
35399 return 1;
35400 }
35401}
35402
35403
35404_ACEOF
35405rm -f conftest$ac_exeext
35406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35407 (eval $ac_link) 2>&5
35408 ac_status=$?
35409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35412 (eval $ac_try) 2>&5
35413 ac_status=$?
35414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415 (exit $ac_status); }; }; then
35416 :
35417else
35418 echo "$as_me: program exited with status $ac_status" >&5
35419echo "$as_me: failed program was:" >&5
35420sed 's/^/| /' conftest.$ac_ext >&5
35421
35422( exit $ac_status )
35423no_sdl=yes
35424fi
ac1cb8d3 35425rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35426fi
35427 CFLAGS="$ac_save_CFLAGS"
35428 LIBS="$ac_save_LIBS"
35429 fi
35430 fi
35431 if test "x$no_sdl" = x ; then
35432 echo "$as_me:$LINENO: result: yes" >&5
35433echo "${ECHO_T}yes" >&6
35434
35435 EXTRALIBS_SDL="$SDL_LIBS"
35436 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
35437 cat >>confdefs.h <<\_ACEOF
35438#define wxUSE_LIBSDL 1
35439_ACEOF
35440
35441
35442 else
35443 echo "$as_me:$LINENO: result: no" >&5
35444echo "${ECHO_T}no" >&6
35445 if test "$SDL_CONFIG" = "no" ; then
35446 echo "*** The sdl-config script installed by SDL could not be found"
35447 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
35448 echo "*** your path, or set the SDL_CONFIG environment variable to the"
35449 echo "*** full path to sdl-config."
35450 else
35451 if test -f conf.sdltest ; then
35452 :
35453 else
35454 echo "*** Could not run SDL test program, checking why..."
35455 CFLAGS="$CFLAGS $SDL_CFLAGS"
35456 LIBS="$LIBS $SDL_LIBS"
35457 cat >conftest.$ac_ext <<_ACEOF
35458/* confdefs.h. */
35459_ACEOF
35460cat confdefs.h >>conftest.$ac_ext
35461cat >>conftest.$ac_ext <<_ACEOF
35462/* end confdefs.h. */
35463
35464#include <stdio.h>
35465#include "SDL.h"
35466
35467int main(int argc, char *argv[])
35468{ return 0; }
35469#undef main
35470#define main K_and_R_C_main
35471
35472int
35473main ()
35474{
35475 return 0;
35476 ;
35477 return 0;
35478}
35479_ACEOF
35480rm -f conftest.$ac_objext conftest$ac_exeext
35481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35482 (eval $ac_link) 2>conftest.er1
a848cd7e 35483 ac_status=$?
ac1cb8d3
VS
35484 grep -v '^ *+' conftest.er1 >conftest.err
35485 rm -f conftest.er1
35486 cat conftest.err >&5
a848cd7e
SC
35487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35488 (exit $ac_status); } &&
ac1cb8d3
VS
35489 { ac_try='test -z "$ac_c_werror_flag"
35490 || test ! -s conftest.err'
35491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35492 (eval $ac_try) 2>&5
35493 ac_status=$?
35494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495 (exit $ac_status); }; } &&
35496 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35498 (eval $ac_try) 2>&5
35499 ac_status=$?
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); }; }; then
35502 echo "*** The test program compiled, but did not run. This usually means"
35503 echo "*** that the run-time linker is not finding SDL or finding the wrong"
35504 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
35505 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
35506 echo "*** to the installed location Also, make sure you have run ldconfig if that"
35507 echo "*** is required on your system"
35508 echo "***"
35509 echo "*** If you have an old version installed, it is best to remove it, although"
35510 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
35511else
35512 echo "$as_me: failed program was:" >&5
35513sed 's/^/| /' conftest.$ac_ext >&5
35514
35515 echo "*** The test program failed to compile or link. See the file config.log for the"
35516 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
35517 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
35518 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
35519fi
ac1cb8d3
VS
35520rm -f conftest.err conftest.$ac_objext \
35521 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35522 CFLAGS="$ac_save_CFLAGS"
35523 LIBS="$ac_save_LIBS"
35524 fi
35525 fi
35526 SDL_CFLAGS=""
35527 SDL_LIBS=""
35528 wxUSE_LIBSDL="no"
35529 fi
35530
35531
35532 rm -f conf.sdltest
35533
35534 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
35535 WITH_PLUGIN_SDL=1
35536 fi
35537 fi
35538 fi
35539
35540 cat >>confdefs.h <<\_ACEOF
35541#define wxUSE_SOUND 1
35542_ACEOF
35543
35544 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
35545fi
35546
35547if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35548 cat >>confdefs.h <<\_ACEOF
35549#define wxUSE_CMDLINE_PARSER 1
35550_ACEOF
35551
35552fi
35553
35554if test "$wxUSE_STOPWATCH" = "yes"; then
35555 cat >>confdefs.h <<\_ACEOF
35556#define wxUSE_STOPWATCH 1
35557_ACEOF
35558
35559fi
35560
35561if test "$wxUSE_DATETIME" = "yes"; then
35562 cat >>confdefs.h <<\_ACEOF
35563#define wxUSE_DATETIME 1
35564_ACEOF
35565
35566fi
35567
35568if test "$wxUSE_FILE" = "yes"; then
35569 cat >>confdefs.h <<\_ACEOF
35570#define wxUSE_FILE 1
35571_ACEOF
35572
35573fi
35574
35575if test "$wxUSE_FFILE" = "yes"; then
35576 cat >>confdefs.h <<\_ACEOF
35577#define wxUSE_FFILE 1
35578_ACEOF
35579
35580fi
35581
35582if test "$wxUSE_FILESYSTEM" = "yes"; then
35583 cat >>confdefs.h <<\_ACEOF
35584#define wxUSE_FILESYSTEM 1
35585_ACEOF
35586
35587fi
35588
35589if test "$wxUSE_FS_ZIP" = "yes"; then
35590 cat >>confdefs.h <<\_ACEOF
35591#define wxUSE_FS_ZIP 1
35592_ACEOF
35593
35594fi
35595
35596if test "$wxUSE_ZIPSTREAM" = "yes"; then
35597 cat >>confdefs.h <<\_ACEOF
35598#define wxUSE_ZIPSTREAM 1
35599_ACEOF
35600
35601fi
35602
a848cd7e
SC
35603if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35604 cat >>confdefs.h <<\_ACEOF
35605#define wxUSE_ON_FATAL_EXCEPTION 1
35606_ACEOF
35607
35608fi
35609
35610if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35611 cat >>confdefs.h <<\_ACEOF
35612#define wxUSE_SNGLINST_CHECKER 1
35613_ACEOF
35614
35615fi
35616
35617if test "$wxUSE_BUSYINFO" = "yes"; then
35618 cat >>confdefs.h <<\_ACEOF
35619#define wxUSE_BUSYINFO 1
35620_ACEOF
35621
35622fi
35623
35624if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35625 cat >>confdefs.h <<\_ACEOF
35626#define wxUSE_STD_IOSTREAM 1
35627_ACEOF
35628
35629fi
35630
35631if test "$wxUSE_TEXTBUFFER" = "yes"; then
35632 cat >>confdefs.h <<\_ACEOF
35633#define wxUSE_TEXTBUFFER 1
35634_ACEOF
35635
35636fi
35637
35638if test "$wxUSE_TEXTFILE" = "yes"; then
35639 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35640 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35641echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35642 else
35643 cat >>confdefs.h <<\_ACEOF
35644#define wxUSE_TEXTFILE 1
35645_ACEOF
35646
35647 fi
35648fi
35649
35650if test "$wxUSE_CONFIG" = "yes" ; then
35651 if test "$wxUSE_TEXTFILE" != "yes"; then
35652 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35653echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35654 else
35655 cat >>confdefs.h <<\_ACEOF
35656#define wxUSE_CONFIG 1
35657_ACEOF
35658
35659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35660 fi
35661fi
35662
35663if test "$wxUSE_INTL" = "yes" ; then
35664 if test "$wxUSE_FILE" != "yes"; then
35665 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35666echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35667 else
35668 cat >>confdefs.h <<\_ACEOF
35669#define wxUSE_INTL 1
35670_ACEOF
35671
35672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35673 GUIDIST="$GUIDIST INTL_DIST"
35674 fi
35675fi
35676
35677if test "$wxUSE_LOG" = "yes"; then
35678 cat >>confdefs.h <<\_ACEOF
35679#define wxUSE_LOG 1
35680_ACEOF
35681
35682
35683 if test "$wxUSE_LOGGUI" = "yes"; then
35684 cat >>confdefs.h <<\_ACEOF
35685#define wxUSE_LOGGUI 1
35686_ACEOF
35687
35688 fi
35689
35690 if test "$wxUSE_LOGWINDOW" = "yes"; then
35691 cat >>confdefs.h <<\_ACEOF
35692#define wxUSE_LOGWINDOW 1
35693_ACEOF
35694
35695 fi
35696
35697 if test "$wxUSE_LOGDIALOG" = "yes"; then
35698 cat >>confdefs.h <<\_ACEOF
35699#define wxUSE_LOG_DIALOG 1
35700_ACEOF
35701
35702 fi
35703fi
35704
35705if test "$wxUSE_LONGLONG" = "yes"; then
35706 cat >>confdefs.h <<\_ACEOF
35707#define wxUSE_LONGLONG 1
35708_ACEOF
35709
35710fi
35711
35712if test "$wxUSE_GEOMETRY" = "yes"; then
35713 cat >>confdefs.h <<\_ACEOF
35714#define wxUSE_GEOMETRY 1
35715_ACEOF
35716
35717fi
35718
35719if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
35720 cat >>confdefs.h <<\_ACEOF
35721#define wxUSE_DIALUP_MANAGER 1
35722_ACEOF
35723
35724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
35725fi
35726
35727if test "$wxUSE_STREAMS" = "yes" ; then
35728 cat >>confdefs.h <<\_ACEOF
35729#define wxUSE_STREAMS 1
35730_ACEOF
35731
35732fi
35733
35734
35735if test "$wxUSE_DATETIME" = "yes"; then
35736
35737for ac_func in strptime
35738do
35739as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35740echo "$as_me:$LINENO: checking for $ac_func" >&5
35741echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35742if eval "test \"\${$as_ac_var+set}\" = set"; then
35743 echo $ECHO_N "(cached) $ECHO_C" >&6
35744else
35745 cat >conftest.$ac_ext <<_ACEOF
35746/* confdefs.h. */
35747_ACEOF
35748cat confdefs.h >>conftest.$ac_ext
35749cat >>conftest.$ac_ext <<_ACEOF
35750/* end confdefs.h. */
ac1cb8d3
VS
35751/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35753#define $ac_func innocuous_$ac_func
35754
a848cd7e
SC
35755/* System header to define __stub macros and hopefully few prototypes,
35756 which can conflict with char $ac_func (); below.
35757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35758 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35759
a848cd7e
SC
35760#ifdef __STDC__
35761# include <limits.h>
35762#else
35763# include <assert.h>
35764#endif
ac1cb8d3
VS
35765
35766#undef $ac_func
35767
a848cd7e
SC
35768/* Override any gcc2 internal prototype to avoid an error. */
35769#ifdef __cplusplus
35770extern "C"
35771{
35772#endif
35773/* We use char because int might match the return type of a gcc2
35774 builtin and then its argument prototype would still apply. */
35775char $ac_func ();
35776/* The GNU C library defines this for functions which it implements
35777 to always fail with ENOSYS. Some functions are actually named
35778 something starting with __ and the normal name is an alias. */
35779#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35780choke me
35781#else
35782char (*f) () = $ac_func;
35783#endif
35784#ifdef __cplusplus
35785}
35786#endif
35787
35788int
35789main ()
35790{
35791return f != $ac_func;
35792 ;
35793 return 0;
35794}
35795_ACEOF
35796rm -f conftest.$ac_objext conftest$ac_exeext
35797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35798 (eval $ac_link) 2>conftest.er1
a848cd7e 35799 ac_status=$?
ac1cb8d3
VS
35800 grep -v '^ *+' conftest.er1 >conftest.err
35801 rm -f conftest.er1
35802 cat conftest.err >&5
a848cd7e
SC
35803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804 (exit $ac_status); } &&
ac1cb8d3
VS
35805 { ac_try='test -z "$ac_c_werror_flag"
35806 || test ! -s conftest.err'
35807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35808 (eval $ac_try) 2>&5
35809 ac_status=$?
35810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35811 (exit $ac_status); }; } &&
35812 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35814 (eval $ac_try) 2>&5
35815 ac_status=$?
35816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817 (exit $ac_status); }; }; then
35818 eval "$as_ac_var=yes"
35819else
35820 echo "$as_me: failed program was:" >&5
35821sed 's/^/| /' conftest.$ac_ext >&5
35822
35823eval "$as_ac_var=no"
35824fi
ac1cb8d3
VS
35825rm -f conftest.err conftest.$ac_objext \
35826 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35827fi
35828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35829echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35830if test `eval echo '${'$as_ac_var'}'` = yes; then
35831 cat >>confdefs.h <<_ACEOF
35832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35833_ACEOF
35834
35835fi
35836done
35837
35838
35839 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35840echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35841if test "${wx_cv_var_timezone+set}" = set; then
35842 echo $ECHO_N "(cached) $ECHO_C" >&6
35843else
35844
35845 cat >conftest.$ac_ext <<_ACEOF
35846/* confdefs.h. */
35847_ACEOF
35848cat confdefs.h >>conftest.$ac_ext
35849cat >>conftest.$ac_ext <<_ACEOF
35850/* end confdefs.h. */
35851
35852 #include <time.h>
35853
35854int
35855main ()
35856{
35857
35858 int tz;
35859 tz = timezone;
35860
35861 ;
35862 return 0;
35863}
35864_ACEOF
35865rm -f conftest.$ac_objext
35866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35867 (eval $ac_compile) 2>conftest.er1
a848cd7e 35868 ac_status=$?
ac1cb8d3
VS
35869 grep -v '^ *+' conftest.er1 >conftest.err
35870 rm -f conftest.er1
35871 cat conftest.err >&5
a848cd7e
SC
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); } &&
ac1cb8d3
VS
35874 { ac_try='test -z "$ac_c_werror_flag"
35875 || test ! -s conftest.err'
35876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35877 (eval $ac_try) 2>&5
35878 ac_status=$?
35879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); }; } &&
35881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35883 (eval $ac_try) 2>&5
35884 ac_status=$?
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); }; }; then
35887
35888 wx_cv_var_timezone=timezone
35889
35890else
35891 echo "$as_me: failed program was:" >&5
35892sed 's/^/| /' conftest.$ac_ext >&5
35893
35894
35895 cat >conftest.$ac_ext <<_ACEOF
35896/* confdefs.h. */
35897_ACEOF
35898cat confdefs.h >>conftest.$ac_ext
35899cat >>conftest.$ac_ext <<_ACEOF
35900/* end confdefs.h. */
35901
35902 #include <time.h>
35903
35904int
35905main ()
35906{
35907
35908 int tz;
35909 tz = _timezone;
35910
35911 ;
35912 return 0;
35913}
35914_ACEOF
35915rm -f conftest.$ac_objext
35916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35917 (eval $ac_compile) 2>conftest.er1
a848cd7e 35918 ac_status=$?
ac1cb8d3
VS
35919 grep -v '^ *+' conftest.er1 >conftest.err
35920 rm -f conftest.er1
35921 cat conftest.err >&5
a848cd7e
SC
35922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35923 (exit $ac_status); } &&
ac1cb8d3
VS
35924 { ac_try='test -z "$ac_c_werror_flag"
35925 || test ! -s conftest.err'
35926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35927 (eval $ac_try) 2>&5
35928 ac_status=$?
35929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930 (exit $ac_status); }; } &&
35931 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35933 (eval $ac_try) 2>&5
35934 ac_status=$?
35935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936 (exit $ac_status); }; }; then
35937
35938 wx_cv_var_timezone=_timezone
35939
35940else
35941 echo "$as_me: failed program was:" >&5
35942sed 's/^/| /' conftest.$ac_ext >&5
35943
35944
35945 cat >conftest.$ac_ext <<_ACEOF
35946/* confdefs.h. */
35947_ACEOF
35948cat confdefs.h >>conftest.$ac_ext
35949cat >>conftest.$ac_ext <<_ACEOF
35950/* end confdefs.h. */
35951
35952 #include <time.h>
35953
35954int
35955main ()
35956{
35957
35958 int tz;
35959 tz = __timezone;
35960
35961 ;
35962 return 0;
35963}
35964_ACEOF
35965rm -f conftest.$ac_objext
35966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35967 (eval $ac_compile) 2>conftest.er1
a848cd7e 35968 ac_status=$?
ac1cb8d3
VS
35969 grep -v '^ *+' conftest.er1 >conftest.err
35970 rm -f conftest.er1
35971 cat conftest.err >&5
a848cd7e
SC
35972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35973 (exit $ac_status); } &&
ac1cb8d3
VS
35974 { ac_try='test -z "$ac_c_werror_flag"
35975 || test ! -s conftest.err'
35976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35977 (eval $ac_try) 2>&5
35978 ac_status=$?
35979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35980 (exit $ac_status); }; } &&
35981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35983 (eval $ac_try) 2>&5
35984 ac_status=$?
35985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35986 (exit $ac_status); }; }; then
35987
35988 wx_cv_var_timezone=__timezone
35989
35990else
35991 echo "$as_me: failed program was:" >&5
35992sed 's/^/| /' conftest.$ac_ext >&5
35993
35994
35995 if test "$USE_DOS" = 0 ; then
35996 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35997echo "$as_me: WARNING: no timezone variable" >&2;}
35998 fi
35999
36000
36001fi
ac1cb8d3 36002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36003
36004
36005fi
ac1cb8d3 36006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36007
36008
36009fi
ac1cb8d3 36010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36011
36012
36013fi
36014echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
36015echo "${ECHO_T}$wx_cv_var_timezone" >&6
36016
36017 if test "x$wx_cv_var_timezone" != x ; then
36018 cat >>confdefs.h <<_ACEOF
36019#define WX_TIMEZONE $wx_cv_var_timezone
36020_ACEOF
36021
36022 fi
36023
36024
36025for ac_func in localtime
36026do
36027as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36028echo "$as_me:$LINENO: checking for $ac_func" >&5
36029echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36030if eval "test \"\${$as_ac_var+set}\" = set"; then
36031 echo $ECHO_N "(cached) $ECHO_C" >&6
36032else
36033 cat >conftest.$ac_ext <<_ACEOF
36034/* confdefs.h. */
36035_ACEOF
36036cat confdefs.h >>conftest.$ac_ext
36037cat >>conftest.$ac_ext <<_ACEOF
36038/* end confdefs.h. */
ac1cb8d3
VS
36039/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36041#define $ac_func innocuous_$ac_func
36042
a848cd7e
SC
36043/* System header to define __stub macros and hopefully few prototypes,
36044 which can conflict with char $ac_func (); below.
36045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36046 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36047
a848cd7e
SC
36048#ifdef __STDC__
36049# include <limits.h>
36050#else
36051# include <assert.h>
36052#endif
ac1cb8d3
VS
36053
36054#undef $ac_func
36055
a848cd7e
SC
36056/* Override any gcc2 internal prototype to avoid an error. */
36057#ifdef __cplusplus
36058extern "C"
36059{
36060#endif
36061/* We use char because int might match the return type of a gcc2
36062 builtin and then its argument prototype would still apply. */
36063char $ac_func ();
36064/* The GNU C library defines this for functions which it implements
36065 to always fail with ENOSYS. Some functions are actually named
36066 something starting with __ and the normal name is an alias. */
36067#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36068choke me
36069#else
36070char (*f) () = $ac_func;
36071#endif
36072#ifdef __cplusplus
36073}
36074#endif
36075
36076int
36077main ()
36078{
36079return f != $ac_func;
36080 ;
36081 return 0;
36082}
36083_ACEOF
36084rm -f conftest.$ac_objext conftest$ac_exeext
36085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36086 (eval $ac_link) 2>conftest.er1
a848cd7e 36087 ac_status=$?
ac1cb8d3
VS
36088 grep -v '^ *+' conftest.er1 >conftest.err
36089 rm -f conftest.er1
36090 cat conftest.err >&5
a848cd7e
SC
36091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36092 (exit $ac_status); } &&
ac1cb8d3
VS
36093 { ac_try='test -z "$ac_c_werror_flag"
36094 || test ! -s conftest.err'
36095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36096 (eval $ac_try) 2>&5
36097 ac_status=$?
36098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099 (exit $ac_status); }; } &&
36100 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36102 (eval $ac_try) 2>&5
36103 ac_status=$?
36104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36105 (exit $ac_status); }; }; then
36106 eval "$as_ac_var=yes"
36107else
36108 echo "$as_me: failed program was:" >&5
36109sed 's/^/| /' conftest.$ac_ext >&5
36110
36111eval "$as_ac_var=no"
36112fi
ac1cb8d3
VS
36113rm -f conftest.err conftest.$ac_objext \
36114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36115fi
36116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36117echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36118if test `eval echo '${'$as_ac_var'}'` = yes; then
36119 cat >>confdefs.h <<_ACEOF
36120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36121_ACEOF
36122
36123fi
36124done
36125
36126
36127 if test "$ac_cv_func_localtime" = "yes"; then
36128 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
36129echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
36130if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
36131 echo $ECHO_N "(cached) $ECHO_C" >&6
36132else
36133
36134 cat >conftest.$ac_ext <<_ACEOF
36135/* confdefs.h. */
36136_ACEOF
36137cat confdefs.h >>conftest.$ac_ext
36138cat >>conftest.$ac_ext <<_ACEOF
36139/* end confdefs.h. */
36140
36141 #include <time.h>
36142
36143int
36144main ()
36145{
36146
36147 struct tm tm;
36148 tm.tm_gmtoff++;
36149
36150 ;
36151 return 0;
36152}
36153_ACEOF
36154rm -f conftest.$ac_objext
36155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36156 (eval $ac_compile) 2>conftest.er1
a848cd7e 36157 ac_status=$?
ac1cb8d3
VS
36158 grep -v '^ *+' conftest.er1 >conftest.err
36159 rm -f conftest.er1
36160 cat conftest.err >&5
a848cd7e
SC
36161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36162 (exit $ac_status); } &&
ac1cb8d3
VS
36163 { ac_try='test -z "$ac_c_werror_flag"
36164 || test ! -s conftest.err'
36165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36166 (eval $ac_try) 2>&5
36167 ac_status=$?
36168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36169 (exit $ac_status); }; } &&
36170 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36172 (eval $ac_try) 2>&5
36173 ac_status=$?
36174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36175 (exit $ac_status); }; }; then
36176
36177 wx_cv_struct_tm_has_gmtoff=yes
36178
36179else
36180 echo "$as_me: failed program was:" >&5
36181sed 's/^/| /' conftest.$ac_ext >&5
36182
36183wx_cv_struct_tm_has_gmtoff=no
36184
36185fi
ac1cb8d3 36186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36187
36188fi
36189echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
36190echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
36191 fi
36192
36193 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
36194 cat >>confdefs.h <<\_ACEOF
36195#define WX_GMTOFF_IN_TM 1
36196_ACEOF
36197
36198 fi
36199
36200
36201
36202for ac_func in gettimeofday ftime
36203do
36204as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36205echo "$as_me:$LINENO: checking for $ac_func" >&5
36206echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36207if eval "test \"\${$as_ac_var+set}\" = set"; then
36208 echo $ECHO_N "(cached) $ECHO_C" >&6
36209else
36210 cat >conftest.$ac_ext <<_ACEOF
36211/* confdefs.h. */
36212_ACEOF
36213cat confdefs.h >>conftest.$ac_ext
36214cat >>conftest.$ac_ext <<_ACEOF
36215/* end confdefs.h. */
ac1cb8d3
VS
36216/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36218#define $ac_func innocuous_$ac_func
36219
a848cd7e
SC
36220/* System header to define __stub macros and hopefully few prototypes,
36221 which can conflict with char $ac_func (); below.
36222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36223 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36224
a848cd7e
SC
36225#ifdef __STDC__
36226# include <limits.h>
36227#else
36228# include <assert.h>
36229#endif
ac1cb8d3
VS
36230
36231#undef $ac_func
36232
a848cd7e
SC
36233/* Override any gcc2 internal prototype to avoid an error. */
36234#ifdef __cplusplus
36235extern "C"
36236{
36237#endif
36238/* We use char because int might match the return type of a gcc2
36239 builtin and then its argument prototype would still apply. */
36240char $ac_func ();
36241/* The GNU C library defines this for functions which it implements
36242 to always fail with ENOSYS. Some functions are actually named
36243 something starting with __ and the normal name is an alias. */
36244#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36245choke me
36246#else
36247char (*f) () = $ac_func;
36248#endif
36249#ifdef __cplusplus
36250}
36251#endif
36252
36253int
36254main ()
36255{
36256return f != $ac_func;
36257 ;
36258 return 0;
36259}
36260_ACEOF
36261rm -f conftest.$ac_objext conftest$ac_exeext
36262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36263 (eval $ac_link) 2>conftest.er1
a848cd7e 36264 ac_status=$?
ac1cb8d3
VS
36265 grep -v '^ *+' conftest.er1 >conftest.err
36266 rm -f conftest.er1
36267 cat conftest.err >&5
a848cd7e
SC
36268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269 (exit $ac_status); } &&
ac1cb8d3
VS
36270 { ac_try='test -z "$ac_c_werror_flag"
36271 || test ! -s conftest.err'
36272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273 (eval $ac_try) 2>&5
36274 ac_status=$?
36275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276 (exit $ac_status); }; } &&
36277 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279 (eval $ac_try) 2>&5
36280 ac_status=$?
36281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282 (exit $ac_status); }; }; then
36283 eval "$as_ac_var=yes"
36284else
36285 echo "$as_me: failed program was:" >&5
36286sed 's/^/| /' conftest.$ac_ext >&5
36287
36288eval "$as_ac_var=no"
36289fi
ac1cb8d3
VS
36290rm -f conftest.err conftest.$ac_objext \
36291 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36292fi
36293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36294echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36295if test `eval echo '${'$as_ac_var'}'` = yes; then
36296 cat >>confdefs.h <<_ACEOF
36297#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36298_ACEOF
36299 break
36300fi
36301done
36302
36303
36304 if test "$ac_cv_func_gettimeofday" = "yes"; then
36305 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
36306echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
36307if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
36308 echo $ECHO_N "(cached) $ECHO_C" >&6
36309else
36310
36311
36312
36313 ac_ext=cc
36314ac_cpp='$CXXCPP $CPPFLAGS'
36315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36318
36319
36320 cat >conftest.$ac_ext <<_ACEOF
36321/* confdefs.h. */
36322_ACEOF
36323cat confdefs.h >>conftest.$ac_ext
36324cat >>conftest.$ac_ext <<_ACEOF
36325/* end confdefs.h. */
36326
36327 #include <sys/time.h>
36328 #include <unistd.h>
36329
36330int
36331main ()
36332{
36333
36334 struct timeval tv;
36335 gettimeofday(&tv, NULL);
36336
36337 ;
36338 return 0;
36339}
36340_ACEOF
36341rm -f conftest.$ac_objext
36342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36343 (eval $ac_compile) 2>conftest.er1
a848cd7e 36344 ac_status=$?
ac1cb8d3
VS
36345 grep -v '^ *+' conftest.er1 >conftest.err
36346 rm -f conftest.er1
36347 cat conftest.err >&5
a848cd7e
SC
36348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36349 (exit $ac_status); } &&
ac1cb8d3
VS
36350 { ac_try='test -z "$ac_cxx_werror_flag"
36351 || test ! -s conftest.err'
36352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36353 (eval $ac_try) 2>&5
36354 ac_status=$?
36355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356 (exit $ac_status); }; } &&
36357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36359 (eval $ac_try) 2>&5
36360 ac_status=$?
36361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36362 (exit $ac_status); }; }; then
36363 wx_cv_func_gettimeofday_has_2_args=yes
36364else
36365 echo "$as_me: failed program was:" >&5
36366sed 's/^/| /' conftest.$ac_ext >&5
36367
36368cat >conftest.$ac_ext <<_ACEOF
36369/* confdefs.h. */
36370_ACEOF
36371cat confdefs.h >>conftest.$ac_ext
36372cat >>conftest.$ac_ext <<_ACEOF
36373/* end confdefs.h. */
36374
36375 #include <sys/time.h>
36376 #include <unistd.h>
36377
36378int
36379main ()
36380{
36381
36382 struct timeval tv;
36383 gettimeofday(&tv);
36384
36385 ;
36386 return 0;
36387}
36388_ACEOF
36389rm -f conftest.$ac_objext
36390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36391 (eval $ac_compile) 2>conftest.er1
a848cd7e 36392 ac_status=$?
ac1cb8d3
VS
36393 grep -v '^ *+' conftest.er1 >conftest.err
36394 rm -f conftest.er1
36395 cat conftest.err >&5
a848cd7e
SC
36396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36397 (exit $ac_status); } &&
ac1cb8d3
VS
36398 { ac_try='test -z "$ac_cxx_werror_flag"
36399 || test ! -s conftest.err'
36400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36401 (eval $ac_try) 2>&5
36402 ac_status=$?
36403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404 (exit $ac_status); }; } &&
36405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36407 (eval $ac_try) 2>&5
36408 ac_status=$?
36409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36410 (exit $ac_status); }; }; then
36411 wx_cv_func_gettimeofday_has_2_args=no
36412else
36413 echo "$as_me: failed program was:" >&5
36414sed 's/^/| /' conftest.$ac_ext >&5
36415
36416
36417 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
36418echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
36419 wx_cv_func_gettimeofday_has_2_args=unknown
36420
36421
36422fi
ac1cb8d3 36423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36424
36425fi
ac1cb8d3 36426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36427 ac_ext=c
36428ac_cpp='$CPP $CPPFLAGS'
36429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36431ac_compiler_gnu=$ac_cv_c_compiler_gnu
36432
36433
36434fi
36435echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
36436echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
36437
36438 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
36439 cat >>confdefs.h <<\_ACEOF
36440#define WX_GETTIMEOFDAY_NO_TZ 1
36441_ACEOF
36442
36443 fi
36444 fi
36445
36446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
36447fi
36448
36449
36450if test "$wxUSE_SOCKETS" = "yes"; then
36451 if test "$wxUSE_MGL" = "1"; then
36452 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
36453echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
36454 wxUSE_SOCKETS="no"
36455 fi
36456fi
36457
36458if test "$wxUSE_SOCKETS" = "yes"; then
36459 if test "$TOOLKIT" != "MSW"; then
36460 echo "$as_me:$LINENO: checking for socket" >&5
36461echo $ECHO_N "checking for socket... $ECHO_C" >&6
36462if test "${ac_cv_func_socket+set}" = set; then
36463 echo $ECHO_N "(cached) $ECHO_C" >&6
36464else
36465 cat >conftest.$ac_ext <<_ACEOF
36466/* confdefs.h. */
36467_ACEOF
36468cat confdefs.h >>conftest.$ac_ext
36469cat >>conftest.$ac_ext <<_ACEOF
36470/* end confdefs.h. */
ac1cb8d3
VS
36471/* Define socket to an innocuous variant, in case <limits.h> declares socket.
36472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36473#define socket innocuous_socket
36474
a848cd7e
SC
36475/* System header to define __stub macros and hopefully few prototypes,
36476 which can conflict with char socket (); below.
36477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36478 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36479
a848cd7e
SC
36480#ifdef __STDC__
36481# include <limits.h>
36482#else
36483# include <assert.h>
36484#endif
ac1cb8d3
VS
36485
36486#undef socket
36487
a848cd7e
SC
36488/* Override any gcc2 internal prototype to avoid an error. */
36489#ifdef __cplusplus
36490extern "C"
36491{
36492#endif
36493/* We use char because int might match the return type of a gcc2
36494 builtin and then its argument prototype would still apply. */
36495char socket ();
36496/* The GNU C library defines this for functions which it implements
36497 to always fail with ENOSYS. Some functions are actually named
36498 something starting with __ and the normal name is an alias. */
36499#if defined (__stub_socket) || defined (__stub___socket)
36500choke me
36501#else
36502char (*f) () = socket;
36503#endif
36504#ifdef __cplusplus
36505}
36506#endif
36507
36508int
36509main ()
36510{
36511return f != socket;
36512 ;
36513 return 0;
36514}
36515_ACEOF
36516rm -f conftest.$ac_objext conftest$ac_exeext
36517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36518 (eval $ac_link) 2>conftest.er1
a848cd7e 36519 ac_status=$?
ac1cb8d3
VS
36520 grep -v '^ *+' conftest.er1 >conftest.err
36521 rm -f conftest.er1
36522 cat conftest.err >&5
a848cd7e
SC
36523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524 (exit $ac_status); } &&
ac1cb8d3
VS
36525 { ac_try='test -z "$ac_c_werror_flag"
36526 || test ! -s conftest.err'
36527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36528 (eval $ac_try) 2>&5
36529 ac_status=$?
36530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36531 (exit $ac_status); }; } &&
36532 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36534 (eval $ac_try) 2>&5
36535 ac_status=$?
36536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36537 (exit $ac_status); }; }; then
36538 ac_cv_func_socket=yes
36539else
36540 echo "$as_me: failed program was:" >&5
36541sed 's/^/| /' conftest.$ac_ext >&5
36542
36543ac_cv_func_socket=no
36544fi
ac1cb8d3
VS
36545rm -f conftest.err conftest.$ac_objext \
36546 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36547fi
36548echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36549echo "${ECHO_T}$ac_cv_func_socket" >&6
36550if test $ac_cv_func_socket = yes; then
36551 :
36552else
36553
36554 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36555echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36556if test "${ac_cv_lib_socket_socket+set}" = set; then
36557 echo $ECHO_N "(cached) $ECHO_C" >&6
36558else
36559 ac_check_lib_save_LIBS=$LIBS
36560LIBS="-lsocket $LIBS"
36561cat >conftest.$ac_ext <<_ACEOF
36562/* confdefs.h. */
36563_ACEOF
36564cat confdefs.h >>conftest.$ac_ext
36565cat >>conftest.$ac_ext <<_ACEOF
36566/* end confdefs.h. */
36567
36568/* Override any gcc2 internal prototype to avoid an error. */
36569#ifdef __cplusplus
36570extern "C"
36571#endif
36572/* We use char because int might match the return type of a gcc2
36573 builtin and then its argument prototype would still apply. */
36574char socket ();
36575int
36576main ()
36577{
36578socket ();
36579 ;
36580 return 0;
36581}
36582_ACEOF
36583rm -f conftest.$ac_objext conftest$ac_exeext
36584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36585 (eval $ac_link) 2>conftest.er1
a848cd7e 36586 ac_status=$?
ac1cb8d3
VS
36587 grep -v '^ *+' conftest.er1 >conftest.err
36588 rm -f conftest.er1
36589 cat conftest.err >&5
a848cd7e
SC
36590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36591 (exit $ac_status); } &&
ac1cb8d3
VS
36592 { ac_try='test -z "$ac_c_werror_flag"
36593 || test ! -s conftest.err'
36594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36595 (eval $ac_try) 2>&5
36596 ac_status=$?
36597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36598 (exit $ac_status); }; } &&
36599 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36601 (eval $ac_try) 2>&5
36602 ac_status=$?
36603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36604 (exit $ac_status); }; }; then
36605 ac_cv_lib_socket_socket=yes
36606else
36607 echo "$as_me: failed program was:" >&5
36608sed 's/^/| /' conftest.$ac_ext >&5
36609
36610ac_cv_lib_socket_socket=no
36611fi
ac1cb8d3
VS
36612rm -f conftest.err conftest.$ac_objext \
36613 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36614LIBS=$ac_check_lib_save_LIBS
36615fi
36616echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36617echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36618if test $ac_cv_lib_socket_socket = yes; then
36619 if test "$INET_LINK" != " -lsocket"; then
36620 INET_LINK="$INET_LINK -lsocket"
36621 fi
36622else
36623
36624 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36625echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36626 wxUSE_SOCKETS=no
36627
36628
36629fi
36630
36631
36632
36633fi
36634
36635 fi
36636fi
36637
36638if test "$wxUSE_SOCKETS" = "yes" ; then
36639 if test "$TOOLKIT" != "MSW"; then
36640 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
36641echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36642if test "${wx_cv_type_getsockname3+set}" = set; then
36643 echo $ECHO_N "(cached) $ECHO_C" >&6
36644else
36645
36646 cat >conftest.$ac_ext <<_ACEOF
36647/* confdefs.h. */
36648_ACEOF
36649cat confdefs.h >>conftest.$ac_ext
36650cat >>conftest.$ac_ext <<_ACEOF
36651/* end confdefs.h. */
36652
36653 #include <sys/types.h>
36654 #include <sys/socket.h>
36655
36656int
36657main ()
36658{
36659
36660 socklen_t len;
36661 getsockname(0, 0, &len);
36662
36663 ;
36664 return 0;
36665}
36666_ACEOF
36667rm -f conftest.$ac_objext
36668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36669 (eval $ac_compile) 2>conftest.er1
a848cd7e 36670 ac_status=$?
ac1cb8d3
VS
36671 grep -v '^ *+' conftest.er1 >conftest.err
36672 rm -f conftest.er1
36673 cat conftest.err >&5
a848cd7e
SC
36674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675 (exit $ac_status); } &&
ac1cb8d3
VS
36676 { ac_try='test -z "$ac_c_werror_flag"
36677 || test ! -s conftest.err'
36678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36679 (eval $ac_try) 2>&5
36680 ac_status=$?
36681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682 (exit $ac_status); }; } &&
36683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36685 (eval $ac_try) 2>&5
36686 ac_status=$?
36687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688 (exit $ac_status); }; }; then
36689 wx_cv_type_getsockname3=socklen_t
36690else
36691 echo "$as_me: failed program was:" >&5
36692sed 's/^/| /' conftest.$ac_ext >&5
36693
36694
36695 CFLAGS_OLD="$CFLAGS"
36696 if test "$GCC" = yes ; then
36697 CFLAGS="$CFLAGS -Werror"
36698 fi
36699
36700 cat >conftest.$ac_ext <<_ACEOF
36701/* confdefs.h. */
36702_ACEOF
36703cat confdefs.h >>conftest.$ac_ext
36704cat >>conftest.$ac_ext <<_ACEOF
36705/* end confdefs.h. */
36706
36707 #include <sys/types.h>
36708 #include <sys/socket.h>
36709
36710int
36711main ()
36712{
36713
36714 size_t len;
36715 getsockname(0, 0, &len);
36716
36717 ;
36718 return 0;
36719}
36720_ACEOF
36721rm -f conftest.$ac_objext
36722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36723 (eval $ac_compile) 2>conftest.er1
a848cd7e 36724 ac_status=$?
ac1cb8d3
VS
36725 grep -v '^ *+' conftest.er1 >conftest.err
36726 rm -f conftest.er1
36727 cat conftest.err >&5
a848cd7e
SC
36728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36729 (exit $ac_status); } &&
ac1cb8d3
VS
36730 { ac_try='test -z "$ac_c_werror_flag"
36731 || test ! -s conftest.err'
36732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36733 (eval $ac_try) 2>&5
36734 ac_status=$?
36735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36736 (exit $ac_status); }; } &&
36737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36739 (eval $ac_try) 2>&5
36740 ac_status=$?
36741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36742 (exit $ac_status); }; }; then
36743 wx_cv_type_getsockname3=size_t
36744else
36745 echo "$as_me: failed program was:" >&5
36746sed 's/^/| /' conftest.$ac_ext >&5
36747
36748cat >conftest.$ac_ext <<_ACEOF
36749/* confdefs.h. */
36750_ACEOF
36751cat confdefs.h >>conftest.$ac_ext
36752cat >>conftest.$ac_ext <<_ACEOF
36753/* end confdefs.h. */
36754
36755 #include <sys/types.h>
36756 #include <sys/socket.h>
36757
36758int
36759main ()
36760{
36761
36762 int len;
36763 getsockname(0, 0, &len);
36764
36765 ;
36766 return 0;
36767}
36768_ACEOF
36769rm -f conftest.$ac_objext
36770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36771 (eval $ac_compile) 2>conftest.er1
a848cd7e 36772 ac_status=$?
ac1cb8d3
VS
36773 grep -v '^ *+' conftest.er1 >conftest.err
36774 rm -f conftest.er1
36775 cat conftest.err >&5
a848cd7e
SC
36776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36777 (exit $ac_status); } &&
ac1cb8d3
VS
36778 { ac_try='test -z "$ac_c_werror_flag"
36779 || test ! -s conftest.err'
36780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36781 (eval $ac_try) 2>&5
36782 ac_status=$?
36783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36784 (exit $ac_status); }; } &&
36785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36787 (eval $ac_try) 2>&5
36788 ac_status=$?
36789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36790 (exit $ac_status); }; }; then
36791 wx_cv_type_getsockname3=int
36792else
36793 echo "$as_me: failed program was:" >&5
36794sed 's/^/| /' conftest.$ac_ext >&5
36795
36796wx_cv_type_getsockname3=unknown
36797
36798fi
ac1cb8d3 36799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36800
36801fi
ac1cb8d3 36802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36803
36804 CFLAGS="$CFLAGS_OLD"
36805
36806
36807fi
ac1cb8d3 36808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36809
36810fi
36811echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36812echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36813
36814 if test "$wx_cv_type_getsockname3" = "unknown"; then
36815 wxUSE_SOCKETS=no
36816 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36817echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36818 else
36819 cat >>confdefs.h <<_ACEOF
36820#define SOCKLEN_T $wx_cv_type_getsockname3
36821_ACEOF
36822
36823 fi
36824 fi
36825fi
36826
36827if test "$wxUSE_SOCKETS" = "yes" ; then
36828 cat >>confdefs.h <<\_ACEOF
36829#define wxUSE_SOCKETS 1
36830_ACEOF
36831
36832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36833fi
36834
36835if test "$wxUSE_PROTOCOL" = "yes"; then
36836 if test "$wxUSE_SOCKETS" != "yes"; then
36837 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36838echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36839 wxUSE_PROTOCOL=no
36840 fi
36841fi
36842
36843if test "$wxUSE_PROTOCOL" = "yes"; then
36844 cat >>confdefs.h <<\_ACEOF
36845#define wxUSE_PROTOCOL 1
36846_ACEOF
36847
36848
36849 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36850 cat >>confdefs.h <<\_ACEOF
36851#define wxUSE_PROTOCOL_HTTP 1
36852_ACEOF
36853
36854 fi
36855 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36856 cat >>confdefs.h <<\_ACEOF
36857#define wxUSE_PROTOCOL_FTP 1
36858_ACEOF
36859
36860 fi
36861 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36862 cat >>confdefs.h <<\_ACEOF
36863#define wxUSE_PROTOCOL_FILE 1
36864_ACEOF
36865
36866 fi
36867else
36868 if test "$wxUSE_FS_INET" = "yes"; then
36869 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36870echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36871 wxUSE_FS_INET="no"
36872 fi
36873fi
36874
36875if test "$wxUSE_URL" = "yes"; then
36876 if test "$wxUSE_PROTOCOL" != "yes"; then
36877 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36878echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36879 wxUSE_URL=no
36880 fi
36881 if test "$wxUSE_URL" = "yes"; then
36882 cat >>confdefs.h <<\_ACEOF
36883#define wxUSE_URL 1
36884_ACEOF
36885
36886 fi
36887fi
36888
36889if test "$wxUSE_FS_INET" = "yes"; then
36890 cat >>confdefs.h <<\_ACEOF
36891#define wxUSE_FS_INET 1
36892_ACEOF
36893
36894fi
36895
36896
36897if test "$wxUSE_GUI" = "yes"; then
36898
36899 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36900 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36901echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36902 wxUSE_JOYSTICK=no
36903 fi
36904
36905 if test "$TOOLKIT" != "MSW"; then
36906 if test "$wxUSE_JOYSTICK" = "yes"; then
36907
36908for ac_header in linux/joystick.h
36909do
36910as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36911if eval "test \"\${$as_ac_Header+set}\" = set"; then
36912 echo "$as_me:$LINENO: checking for $ac_header" >&5
36913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36914if eval "test \"\${$as_ac_Header+set}\" = set"; then
36915 echo $ECHO_N "(cached) $ECHO_C" >&6
36916fi
36917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36919else
36920 # Is the header compilable?
36921echo "$as_me:$LINENO: checking $ac_header usability" >&5
36922echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36923cat >conftest.$ac_ext <<_ACEOF
36924/* confdefs.h. */
36925_ACEOF
36926cat confdefs.h >>conftest.$ac_ext
36927cat >>conftest.$ac_ext <<_ACEOF
36928/* end confdefs.h. */
36929$ac_includes_default
36930#include <$ac_header>
36931_ACEOF
36932rm -f conftest.$ac_objext
36933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36934 (eval $ac_compile) 2>conftest.er1
a848cd7e 36935 ac_status=$?
ac1cb8d3
VS
36936 grep -v '^ *+' conftest.er1 >conftest.err
36937 rm -f conftest.er1
36938 cat conftest.err >&5
a848cd7e
SC
36939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36940 (exit $ac_status); } &&
ac1cb8d3
VS
36941 { ac_try='test -z "$ac_c_werror_flag"
36942 || test ! -s conftest.err'
36943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36944 (eval $ac_try) 2>&5
36945 ac_status=$?
36946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36947 (exit $ac_status); }; } &&
36948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36950 (eval $ac_try) 2>&5
36951 ac_status=$?
36952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953 (exit $ac_status); }; }; then
36954 ac_header_compiler=yes
36955else
36956 echo "$as_me: failed program was:" >&5
36957sed 's/^/| /' conftest.$ac_ext >&5
36958
36959ac_header_compiler=no
36960fi
ac1cb8d3 36961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36962echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36963echo "${ECHO_T}$ac_header_compiler" >&6
36964
36965# Is the header present?
36966echo "$as_me:$LINENO: checking $ac_header presence" >&5
36967echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36968cat >conftest.$ac_ext <<_ACEOF
36969/* confdefs.h. */
36970_ACEOF
36971cat confdefs.h >>conftest.$ac_ext
36972cat >>conftest.$ac_ext <<_ACEOF
36973/* end confdefs.h. */
36974#include <$ac_header>
36975_ACEOF
36976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36978 ac_status=$?
36979 grep -v '^ *+' conftest.er1 >conftest.err
36980 rm -f conftest.er1
36981 cat conftest.err >&5
36982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983 (exit $ac_status); } >/dev/null; then
36984 if test -s conftest.err; then
36985 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36987 else
36988 ac_cpp_err=
36989 fi
36990else
36991 ac_cpp_err=yes
36992fi
36993if test -z "$ac_cpp_err"; then
36994 ac_header_preproc=yes
36995else
36996 echo "$as_me: failed program was:" >&5
36997sed 's/^/| /' conftest.$ac_ext >&5
36998
36999 ac_header_preproc=no
37000fi
37001rm -f conftest.err conftest.$ac_ext
37002echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37003echo "${ECHO_T}$ac_header_preproc" >&6
37004
37005# So? What about this header?
ac1cb8d3
VS
37006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37007 yes:no: )
a848cd7e
SC
37008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37009echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37011echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37012 ac_header_preproc=yes
a848cd7e 37013 ;;
ac1cb8d3 37014 no:yes:* )
a848cd7e
SC
37015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37016echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37018echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37020echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37022echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37024echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37026echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37027 (
37028 cat <<\_ASBOX
ac1cb8d3
VS
37029## ----------------------------------------- ##
37030## Report this to wx-dev@lists.wxwidgets.org ##
37031## ----------------------------------------- ##
a848cd7e
SC
37032_ASBOX
37033 ) |
37034 sed "s/^/$as_me: WARNING: /" >&2
37035 ;;
37036esac
37037echo "$as_me:$LINENO: checking for $ac_header" >&5
37038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37039if eval "test \"\${$as_ac_Header+set}\" = set"; then
37040 echo $ECHO_N "(cached) $ECHO_C" >&6
37041else
ac1cb8d3 37042 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37043fi
37044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37046
37047fi
37048if test `eval echo '${'$as_ac_Header'}'` = yes; then
37049 cat >>confdefs.h <<_ACEOF
37050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37051_ACEOF
37052
37053fi
37054
37055done
37056
37057 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
37058 wxUSE_JOYSTICK=no
37059 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
37060echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
37061 fi
37062 fi
37063 fi
37064
37065 if test "$wxUSE_JOYSTICK" = "yes"; then
37066 cat >>confdefs.h <<\_ACEOF
37067#define wxUSE_JOYSTICK 1
37068_ACEOF
37069
37070 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
37071 fi
37072fi
37073
37074
37075
37076if test "$wxUSE_FONTMAP" = "yes" ; then
37077 cat >>confdefs.h <<\_ACEOF
37078#define wxUSE_FONTMAP 1
37079_ACEOF
37080
37081fi
37082
37083if test "$wxUSE_UNICODE" = "yes" ; then
37084 cat >>confdefs.h <<\_ACEOF
37085#define wxUSE_UNICODE 1
37086_ACEOF
37087
37088
37089 if test "$USE_WIN32" != 1; then
37090 wxUSE_UNICODE_MSLU=no
37091 fi
37092
37093 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
37094 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
37095echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
37096if test "${ac_cv_lib_unicows_main+set}" = set; then
37097 echo $ECHO_N "(cached) $ECHO_C" >&6
37098else
37099 ac_check_lib_save_LIBS=$LIBS
37100LIBS="-lunicows $LIBS"
37101cat >conftest.$ac_ext <<_ACEOF
37102/* confdefs.h. */
37103_ACEOF
37104cat confdefs.h >>conftest.$ac_ext
37105cat >>conftest.$ac_ext <<_ACEOF
37106/* end confdefs.h. */
37107
37108
37109int
37110main ()
37111{
37112main ();
37113 ;
37114 return 0;
37115}
37116_ACEOF
37117rm -f conftest.$ac_objext conftest$ac_exeext
37118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37119 (eval $ac_link) 2>conftest.er1
a848cd7e 37120 ac_status=$?
ac1cb8d3
VS
37121 grep -v '^ *+' conftest.er1 >conftest.err
37122 rm -f conftest.er1
37123 cat conftest.err >&5
a848cd7e
SC
37124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125 (exit $ac_status); } &&
ac1cb8d3
VS
37126 { ac_try='test -z "$ac_c_werror_flag"
37127 || test ! -s conftest.err'
37128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37129 (eval $ac_try) 2>&5
37130 ac_status=$?
37131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132 (exit $ac_status); }; } &&
37133 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37135 (eval $ac_try) 2>&5
37136 ac_status=$?
37137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138 (exit $ac_status); }; }; then
37139 ac_cv_lib_unicows_main=yes
37140else
37141 echo "$as_me: failed program was:" >&5
37142sed 's/^/| /' conftest.$ac_ext >&5
37143
37144ac_cv_lib_unicows_main=no
37145fi
ac1cb8d3
VS
37146rm -f conftest.err conftest.$ac_objext \
37147 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37148LIBS=$ac_check_lib_save_LIBS
37149fi
37150echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
37151echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
37152if test $ac_cv_lib_unicows_main = yes; then
37153
37154 cat >>confdefs.h <<\_ACEOF
37155#define wxUSE_UNICODE_MSLU 1
37156_ACEOF
37157
37158
37159else
37160
37161 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37162 Applications will only run on Windows NT/2000/XP!" >&5
37163echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37164 Applications will only run on Windows NT/2000/XP!" >&2;}
37165 wxUSE_UNICODE_MSLU=no
37166
37167fi
37168
37169 fi
37170fi
37171
37172if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
37173 cat >>confdefs.h <<\_ACEOF
37174#define wxUSE_EXPERIMENTAL_PRINTF 1
37175_ACEOF
37176
37177fi
37178
37179
37180if test "$wxUSE_POSTSCRIPT" = "yes" ; then
37181 cat >>confdefs.h <<\_ACEOF
37182#define wxUSE_POSTSCRIPT 1
37183_ACEOF
37184
37185fi
37186
37187cat >>confdefs.h <<\_ACEOF
37188#define wxUSE_AFM_FOR_POSTSCRIPT 1
37189_ACEOF
37190
37191
37192cat >>confdefs.h <<\_ACEOF
37193#define wxUSE_NORMALIZED_PS_FONTS 1
37194_ACEOF
37195
37196
37197
37198if test "$wxUSE_CONSTRAINTS" = "yes"; then
37199 cat >>confdefs.h <<\_ACEOF
37200#define wxUSE_CONSTRAINTS 1
37201_ACEOF
37202
37203 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
37204fi
37205
8a7b1113
VZ
37206if test "$wxUSE_MDI" = "yes"; then
37207 cat >>confdefs.h <<\_ACEOF
37208#define wxUSE_MDI 1
37209_ACEOF
37210
37211
37212 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37213 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37214#define wxUSE_MDI_ARCHITECTURE 1
37215_ACEOF
37216
8a7b1113
VZ
37217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
37218 fi
a848cd7e
SC
37219fi
37220
37221if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
37222 cat >>confdefs.h <<\_ACEOF
37223#define wxUSE_DOC_VIEW_ARCHITECTURE 1
37224_ACEOF
37225
37226 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
37227 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37228 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
37229 fi
37230fi
37231
37232if test "$wxUSE_HELP" = "yes"; then
37233 cat >>confdefs.h <<\_ACEOF
37234#define wxUSE_HELP 1
37235_ACEOF
37236
37237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
37238
37239 if test "$wxUSE_MSW" = 1; then
37240 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
37241 cat >>confdefs.h <<\_ACEOF
37242#define wxUSE_MS_HTML_HELP 1
37243_ACEOF
37244
37245 fi
37246 fi
37247
37248 if test "$wxUSE_WXHTML_HELP" = "yes"; then
37249 if test "$wxUSE_HTML" = "yes"; then
37250 cat >>confdefs.h <<\_ACEOF
37251#define wxUSE_WXHTML_HELP 1
37252_ACEOF
37253
37254 else
37255 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
37256echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
37257 wxUSE_WXHTML_HELP=no
37258 fi
37259 fi
37260fi
37261
37262if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37263 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37264 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
37265echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
37266 else
37267 cat >>confdefs.h <<\_ACEOF
37268#define wxUSE_PRINTING_ARCHITECTURE 1
37269_ACEOF
37270
37271 fi
37272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
37273fi
37274
37275if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
37276 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
37277echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
37278 { (exit 1); exit 1; }; }
37279fi
37280
37281
37282if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
37283 -o "$wxUSE_CLIPBOARD" = "yes" \
37284 -o "$wxUSE_OLE" = "yes" \
37285 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
37286
37287for ac_header in ole2.h
37288do
37289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37290if eval "test \"\${$as_ac_Header+set}\" = set"; then
37291 echo "$as_me:$LINENO: checking for $ac_header" >&5
37292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37293if eval "test \"\${$as_ac_Header+set}\" = set"; then
37294 echo $ECHO_N "(cached) $ECHO_C" >&6
37295fi
37296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37298else
37299 # Is the header compilable?
37300echo "$as_me:$LINENO: checking $ac_header usability" >&5
37301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37302cat >conftest.$ac_ext <<_ACEOF
37303/* confdefs.h. */
37304_ACEOF
37305cat confdefs.h >>conftest.$ac_ext
37306cat >>conftest.$ac_ext <<_ACEOF
37307/* end confdefs.h. */
37308$ac_includes_default
37309#include <$ac_header>
37310_ACEOF
37311rm -f conftest.$ac_objext
37312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37313 (eval $ac_compile) 2>conftest.er1
a848cd7e 37314 ac_status=$?
ac1cb8d3
VS
37315 grep -v '^ *+' conftest.er1 >conftest.err
37316 rm -f conftest.er1
37317 cat conftest.err >&5
a848cd7e
SC
37318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37319 (exit $ac_status); } &&
ac1cb8d3
VS
37320 { ac_try='test -z "$ac_c_werror_flag"
37321 || test ! -s conftest.err'
37322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37323 (eval $ac_try) 2>&5
37324 ac_status=$?
37325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326 (exit $ac_status); }; } &&
37327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37329 (eval $ac_try) 2>&5
37330 ac_status=$?
37331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37332 (exit $ac_status); }; }; then
37333 ac_header_compiler=yes
37334else
37335 echo "$as_me: failed program was:" >&5
37336sed 's/^/| /' conftest.$ac_ext >&5
37337
37338ac_header_compiler=no
37339fi
ac1cb8d3 37340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37341echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37342echo "${ECHO_T}$ac_header_compiler" >&6
37343
37344# Is the header present?
37345echo "$as_me:$LINENO: checking $ac_header presence" >&5
37346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37347cat >conftest.$ac_ext <<_ACEOF
37348/* confdefs.h. */
37349_ACEOF
37350cat confdefs.h >>conftest.$ac_ext
37351cat >>conftest.$ac_ext <<_ACEOF
37352/* end confdefs.h. */
37353#include <$ac_header>
37354_ACEOF
37355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37357 ac_status=$?
37358 grep -v '^ *+' conftest.er1 >conftest.err
37359 rm -f conftest.er1
37360 cat conftest.err >&5
37361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362 (exit $ac_status); } >/dev/null; then
37363 if test -s conftest.err; then
37364 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37366 else
37367 ac_cpp_err=
37368 fi
37369else
37370 ac_cpp_err=yes
37371fi
37372if test -z "$ac_cpp_err"; then
37373 ac_header_preproc=yes
37374else
37375 echo "$as_me: failed program was:" >&5
37376sed 's/^/| /' conftest.$ac_ext >&5
37377
37378 ac_header_preproc=no
37379fi
37380rm -f conftest.err conftest.$ac_ext
37381echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37382echo "${ECHO_T}$ac_header_preproc" >&6
37383
37384# So? What about this header?
ac1cb8d3
VS
37385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37386 yes:no: )
a848cd7e
SC
37387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37390echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37391 ac_header_preproc=yes
a848cd7e 37392 ;;
ac1cb8d3 37393 no:yes:* )
a848cd7e
SC
37394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37397echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37399echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37401echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37406 (
37407 cat <<\_ASBOX
ac1cb8d3
VS
37408## ----------------------------------------- ##
37409## Report this to wx-dev@lists.wxwidgets.org ##
37410## ----------------------------------------- ##
a848cd7e
SC
37411_ASBOX
37412 ) |
37413 sed "s/^/$as_me: WARNING: /" >&2
37414 ;;
37415esac
37416echo "$as_me:$LINENO: checking for $ac_header" >&5
37417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37418if eval "test \"\${$as_ac_Header+set}\" = set"; then
37419 echo $ECHO_N "(cached) $ECHO_C" >&6
37420else
ac1cb8d3 37421 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37422fi
37423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37425
37426fi
37427if test `eval echo '${'$as_ac_Header'}'` = yes; then
37428 cat >>confdefs.h <<_ACEOF
37429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37430_ACEOF
37431
37432fi
37433
37434done
37435
37436
37437 if test "$ac_cv_header_ole2_h" = "yes" ; then
37438 if test "$GCC" = yes ; then
37439
37440
37441 ac_ext=cc
37442ac_cpp='$CXXCPP $CPPFLAGS'
37443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37446
37447
37448 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
37449echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
37450 cat >conftest.$ac_ext <<_ACEOF
37451/* confdefs.h. */
37452_ACEOF
37453cat confdefs.h >>conftest.$ac_ext
37454cat >>conftest.$ac_ext <<_ACEOF
37455/* end confdefs.h. */
37456#include <windows.h>
37457 #include <ole2.h>
37458int
37459main ()
37460{
37461
37462 ;
37463 return 0;
37464}
37465_ACEOF
37466rm -f conftest.$ac_objext
37467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37468 (eval $ac_compile) 2>conftest.er1
a848cd7e 37469 ac_status=$?
ac1cb8d3
VS
37470 grep -v '^ *+' conftest.er1 >conftest.err
37471 rm -f conftest.er1
37472 cat conftest.err >&5
a848cd7e
SC
37473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37474 (exit $ac_status); } &&
ac1cb8d3
VS
37475 { ac_try='test -z "$ac_cxx_werror_flag"
37476 || test ! -s conftest.err'
37477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37478 (eval $ac_try) 2>&5
37479 ac_status=$?
37480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37481 (exit $ac_status); }; } &&
37482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37484 (eval $ac_try) 2>&5
37485 ac_status=$?
37486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37487 (exit $ac_status); }; }; then
37488 echo "$as_me:$LINENO: result: no" >&5
37489echo "${ECHO_T}no" >&6
37490else
37491 echo "$as_me: failed program was:" >&5
37492sed 's/^/| /' conftest.$ac_ext >&5
37493
37494echo "$as_me:$LINENO: result: yes" >&5
37495echo "${ECHO_T}yes" >&6
37496 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
37497fi
ac1cb8d3 37498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37499 ac_ext=c
37500ac_cpp='$CPP $CPPFLAGS'
37501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37503ac_compiler_gnu=$ac_cv_c_compiler_gnu
37504
37505 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
37506 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
37507 if test "$wxUSE_OLE" = "yes" ; then
37508 cat >>confdefs.h <<\_ACEOF
37509#define wxUSE_OLE 1
37510_ACEOF
37511
37512 fi
37513 fi
37514
37515 if test "$wxUSE_DATAOBJ" = "yes" ; then
37516 cat >>confdefs.h <<\_ACEOF
37517#define wxUSE_DATAOBJ 1
37518_ACEOF
37519
37520 fi
37521 else
37522 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
37523echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
37524
37525 wxUSE_CLIPBOARD=no
37526 wxUSE_DRAG_AND_DROP=no
37527 wxUSE_DATAOBJ=no
37528 wxUSE_OLE=no
37529 fi
37530
37531 if test "$wxUSE_METAFILE" = "yes"; then
37532 cat >>confdefs.h <<\_ACEOF
37533#define wxUSE_METAFILE 1
37534_ACEOF
37535
37536
37537 cat >>confdefs.h <<\_ACEOF
37538#define wxUSE_ENH_METAFILE 1
37539_ACEOF
37540
37541 fi
37542fi
37543
37544if test "$wxUSE_IPC" = "yes"; then
37545 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
37546 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37547echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
37548 fi
37549
37550 cat >>confdefs.h <<\_ACEOF
37551#define wxUSE_IPC 1
37552_ACEOF
37553
37554fi
37555
37556if test "$wxUSE_CLIPBOARD" = "yes"; then
37557 if test "$wxUSE_MGL" = 1; then
37558 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37559echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37560 wxUSE_CLIPBOARD=no
37561 fi
37562
37563 if test "$wxUSE_CLIPBOARD" = "yes"; then
37564 cat >>confdefs.h <<\_ACEOF
37565#define wxUSE_CLIPBOARD 1
37566_ACEOF
37567
37568
37569 cat >>confdefs.h <<\_ACEOF
37570#define wxUSE_DATAOBJ 1
37571_ACEOF
37572
37573 fi
37574fi
37575
37576if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37577 if test "$wxUSE_GTK" = 1; then
37578 if test "$WXGTK12" != 1; then
37579 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37580echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37581 wxUSE_DRAG_AND_DROP=no
37582 fi
37583 fi
37584
37585 if test "$wxUSE_MOTIF" = 1; then
37586 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37587echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37588 wxUSE_DRAG_AND_DROP=no
37589 fi
37590
37591 if test "$wxUSE_X11" = 1; then
37592 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37593echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37594 wxUSE_DRAG_AND_DROP=no
37595 fi
37596
37597 if test "$wxUSE_MGL" = 1; then
37598 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37599echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37600 wxUSE_DRAG_AND_DROP=no
37601 fi
37602
37603 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37604 cat >>confdefs.h <<\_ACEOF
37605#define wxUSE_DRAG_AND_DROP 1
37606_ACEOF
37607
37608 fi
37609
37610fi
37611
37612if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37614fi
37615
37616if test "$wxUSE_SPLINES" = "yes" ; then
37617 cat >>confdefs.h <<\_ACEOF
37618#define wxUSE_SPLINES 1
37619_ACEOF
37620
37621fi
37622
37623
37624USES_CONTROLS=0
37625if test "$wxUSE_CONTROLS" = "yes"; then
37626 USES_CONTROLS=1
37627fi
37628
37629if test "$wxUSE_ACCEL" = "yes"; then
37630 cat >>confdefs.h <<\_ACEOF
37631#define wxUSE_ACCEL 1
37632_ACEOF
37633
37634 USES_CONTROLS=1
37635fi
37636
37637if test "$wxUSE_BUTTON" = "yes"; then
37638 cat >>confdefs.h <<\_ACEOF
37639#define wxUSE_BUTTON 1
37640_ACEOF
37641
37642 USES_CONTROLS=1
37643fi
37644
37645if test "$wxUSE_BMPBUTTON" = "yes"; then
37646 cat >>confdefs.h <<\_ACEOF
37647#define wxUSE_BMPBUTTON 1
37648_ACEOF
37649
37650 USES_CONTROLS=1
37651fi
37652
37653if test "$wxUSE_CALCTRL" = "yes"; then
37654 cat >>confdefs.h <<\_ACEOF
37655#define wxUSE_CALENDARCTRL 1
37656_ACEOF
37657
37658 USES_CONTROLS=1
37659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37660fi
37661
37662if test "$wxUSE_CARET" = "yes"; then
37663 cat >>confdefs.h <<\_ACEOF
37664#define wxUSE_CARET 1
37665_ACEOF
37666
37667 USES_CONTROLS=1
37668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37669fi
37670
37671if test "$wxUSE_COMBOBOX" = "yes"; then
37672 cat >>confdefs.h <<\_ACEOF
37673#define wxUSE_COMBOBOX 1
37674_ACEOF
37675
37676 USES_CONTROLS=1
37677fi
37678
37679if test "$wxUSE_CHOICE" = "yes"; then
37680 cat >>confdefs.h <<\_ACEOF
37681#define wxUSE_CHOICE 1
37682_ACEOF
37683
37684 USES_CONTROLS=1
37685fi
37686
37687if test "$wxUSE_CHECKBOX" = "yes"; then
37688 cat >>confdefs.h <<\_ACEOF
37689#define wxUSE_CHECKBOX 1
37690_ACEOF
37691
37692 USES_CONTROLS=1
37693fi
37694
37695if test "$wxUSE_CHECKLST" = "yes"; then
37696 cat >>confdefs.h <<\_ACEOF
37697#define wxUSE_CHECKLISTBOX 1
37698_ACEOF
37699
37700 USES_CONTROLS=1
37701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37702fi
37703
37704if test "$wxUSE_DISPLAY" = "yes"; then
37705 cat >>confdefs.h <<\_ACEOF
37706#define wxUSE_DISPLAY 1
37707_ACEOF
37708
37709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37710fi
37711
37712if test "$wxUSE_GAUGE" = "yes"; then
37713 cat >>confdefs.h <<\_ACEOF
37714#define wxUSE_GAUGE 1
37715_ACEOF
37716
37717 USES_CONTROLS=1
37718fi
37719
37720if test "$wxUSE_GRID" = "yes"; then
37721 cat >>confdefs.h <<\_ACEOF
37722#define wxUSE_GRID 1
37723_ACEOF
37724
37725 USES_CONTROLS=1
37726 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37727fi
37728
37729if test "$wxUSE_IMAGLIST" = "yes"; then
37730 cat >>confdefs.h <<\_ACEOF
37731#define wxUSE_IMAGLIST 1
37732_ACEOF
37733
37734fi
37735
37736if test "$wxUSE_LISTBOOK" = "yes"; then
37737 cat >>confdefs.h <<\_ACEOF
37738#define wxUSE_LISTBOOK 1
37739_ACEOF
37740
37741 USES_CONTROLS=1
37742fi
37743
37744if test "$wxUSE_LISTBOX" = "yes"; then
37745 cat >>confdefs.h <<\_ACEOF
37746#define wxUSE_LISTBOX 1
37747_ACEOF
37748
37749 USES_CONTROLS=1
37750fi
37751
37752if test "$wxUSE_LISTCTRL" = "yes"; then
37753 if test "$wxUSE_IMAGLIST" = "yes"; then
37754 cat >>confdefs.h <<\_ACEOF
37755#define wxUSE_LISTCTRL 1
37756_ACEOF
37757
37758 USES_CONTROLS=1
37759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37760 else
37761 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37762echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37763 fi
37764fi
37765
37766if test "$wxUSE_NOTEBOOK" = "yes"; then
37767 cat >>confdefs.h <<\_ACEOF
37768#define wxUSE_NOTEBOOK 1
37769_ACEOF
37770
37771 USES_CONTROLS=1
37772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37773fi
37774
37775
37776if test "$wxUSE_RADIOBOX" = "yes"; then
37777 cat >>confdefs.h <<\_ACEOF
37778#define wxUSE_RADIOBOX 1
37779_ACEOF
37780
37781 USES_CONTROLS=1
37782fi
37783
37784if test "$wxUSE_RADIOBTN" = "yes"; then
37785 cat >>confdefs.h <<\_ACEOF
37786#define wxUSE_RADIOBTN 1
37787_ACEOF
37788
37789 USES_CONTROLS=1
37790fi
37791
37792if test "$wxUSE_SASH" = "yes"; then
37793 cat >>confdefs.h <<\_ACEOF
37794#define wxUSE_SASH 1
37795_ACEOF
37796
37797 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37798fi
37799
37800if test "$wxUSE_SCROLLBAR" = "yes"; then
37801 cat >>confdefs.h <<\_ACEOF
37802#define wxUSE_SCROLLBAR 1
37803_ACEOF
37804
37805 USES_CONTROLS=1
37806 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37807fi
37808
37809if test "$wxUSE_SLIDER" = "yes"; then
37810 cat >>confdefs.h <<\_ACEOF
37811#define wxUSE_SLIDER 1
37812_ACEOF
37813
37814 USES_CONTROLS=1
37815fi
37816
37817if test "$wxUSE_SPINBTN" = "yes"; then
37818 cat >>confdefs.h <<\_ACEOF
37819#define wxUSE_SPINBTN 1
37820_ACEOF
37821
37822 USES_CONTROLS=1
37823fi
37824
37825if test "$wxUSE_SPINCTRL" = "yes"; then
37826 cat >>confdefs.h <<\_ACEOF
37827#define wxUSE_SPINCTRL 1
37828_ACEOF
37829
37830 USES_CONTROLS=1
37831fi
37832
37833if test "$wxUSE_SPLITTER" = "yes"; then
37834 cat >>confdefs.h <<\_ACEOF
37835#define wxUSE_SPLITTER 1
37836_ACEOF
37837
37838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37839fi
37840
37841if test "$wxUSE_STATBMP" = "yes"; then
37842 cat >>confdefs.h <<\_ACEOF
37843#define wxUSE_STATBMP 1
37844_ACEOF
37845
37846 USES_CONTROLS=1
37847fi
37848
37849if test "$wxUSE_STATBOX" = "yes"; then
37850 cat >>confdefs.h <<\_ACEOF
37851#define wxUSE_STATBOX 1
37852_ACEOF
37853
37854 USES_CONTROLS=1
37855fi
37856
37857if test "$wxUSE_STATTEXT" = "yes"; then
37858 cat >>confdefs.h <<\_ACEOF
37859#define wxUSE_STATTEXT 1
37860_ACEOF
37861
37862 USES_CONTROLS=1
37863fi
37864
37865if test "$wxUSE_STATLINE" = "yes"; then
37866 cat >>confdefs.h <<\_ACEOF
37867#define wxUSE_STATLINE 1
37868_ACEOF
37869
37870 USES_CONTROLS=1
37871fi
37872
37873if test "$wxUSE_STATUSBAR" = "yes"; then
37874 cat >>confdefs.h <<\_ACEOF
37875#define wxUSE_STATUSBAR 1
37876_ACEOF
37877
37878 USES_CONTROLS=1
37879
37880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37881fi
37882
37883if test "$wxUSE_TABDIALOG" = "yes"; then
37884 cat >>confdefs.h <<\_ACEOF
37885#define wxUSE_TAB_DIALOG 1
37886_ACEOF
37887
37888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37889fi
37890
37891if test "$wxUSE_TEXTCTRL" = "yes"; then
37892 cat >>confdefs.h <<\_ACEOF
37893#define wxUSE_TEXTCTRL 1
37894_ACEOF
37895
37896 USES_CONTROLS=1
37897 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37898fi
37899
37900if test "$wxUSE_TOGGLEBTN" = "yes"; then
37901 if test "$wxUSE_COCOA" = 1 ; then
37902 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37903echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37904 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37905 else
37906 if test "$wxUSE_PM" = 1; then
37907 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37908echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37909 wxUSE_TOGGLEBTN=no
37910 fi
a848cd7e
SC
37911 fi
37912 if test "$wxUSE_UNIVERSAL" = "yes"; then
37913 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37914echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37915 wxUSE_TOGGLEBTN=no
37916 fi
37917
37918 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37919 cat >>confdefs.h <<\_ACEOF
37920#define wxUSE_TOGGLEBTN 1
37921_ACEOF
37922
37923 USES_CONTROLS=1
37924 fi
37925fi
37926
37927if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37928 cat >>confdefs.h <<\_ACEOF
37929#define wxUSE_TOOLBAR_SIMPLE 1
37930_ACEOF
37931
37932 wxUSE_TOOLBAR="yes"
37933 USES_CONTROLS=1
37934fi
37935
37936if test "$wxUSE_TOOLBAR" = "yes"; then
37937 cat >>confdefs.h <<\_ACEOF
37938#define wxUSE_TOOLBAR 1
37939_ACEOF
37940
37941 USES_CONTROLS=1
37942
37943 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37944 wxUSE_TOOLBAR_NATIVE="yes"
37945 fi
37946
37947 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37948 cat >>confdefs.h <<\_ACEOF
37949#define wxUSE_TOOLBAR_NATIVE 1
37950_ACEOF
37951
37952 USES_CONTROLS=1
37953 fi
37954
37955 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37956fi
37957
37958if test "$wxUSE_TOOLTIPS" = "yes"; then
37959 if test "$wxUSE_MOTIF" = 1; then
37960 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37961echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37962 else
37963 if test "$wxUSE_UNIVERSAL" = "yes"; then
37964 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37965echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37966 else
37967 cat >>confdefs.h <<\_ACEOF
37968#define wxUSE_TOOLTIPS 1
37969_ACEOF
37970
37971 fi
37972 fi
37973fi
37974
37975if test "$wxUSE_TREECTRL" = "yes"; then
37976 if test "$wxUSE_IMAGLIST" = "yes"; then
37977 cat >>confdefs.h <<\_ACEOF
37978#define wxUSE_TREECTRL 1
37979_ACEOF
37980
37981 USES_CONTROLS=1
37982 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37983 else
37984 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37985echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37986 fi
37987fi
37988
37989if test "$wxUSE_POPUPWIN" = "yes"; then
37990 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37991 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37992echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37993 else
37994 if test "$wxUSE_PM" = 1; then
37995 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37996echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37997 else
37998 cat >>confdefs.h <<\_ACEOF
37999#define wxUSE_POPUPWIN 1
38000_ACEOF
38001
38002
38003 USES_CONTROLS=1
38004 fi
38005 fi
38006fi
38007
38008if test "$wxUSE_TIPWINDOW" = "yes"; then
38009 if test "$wxUSE_PM" = 1; then
38010 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
38011echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
38012 else
38013 cat >>confdefs.h <<\_ACEOF
38014#define wxUSE_TIPWINDOW 1
38015_ACEOF
38016
38017 fi
38018fi
38019
38020if test "$USES_CONTROLS" = 1; then
38021 cat >>confdefs.h <<\_ACEOF
38022#define wxUSE_CONTROLS 1
38023_ACEOF
38024
38025fi
38026
38027
38028if test "$wxUSE_ACCESSIBILITY" = "yes"; then
38029 cat >>confdefs.h <<\_ACEOF
38030#define wxUSE_ACCESSIBILITY 1
38031_ACEOF
38032
38033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
38034fi
38035
38036if test "$wxUSE_DRAGIMAGE" = "yes"; then
38037 cat >>confdefs.h <<\_ACEOF
38038#define wxUSE_DRAGIMAGE 1
38039_ACEOF
38040
38041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
38042fi
38043
38044if test "$wxUSE_EXCEPTIONS" = "yes"; then
38045 cat >>confdefs.h <<\_ACEOF
38046#define wxUSE_EXCEPTIONS 1
38047_ACEOF
38048
38049fi
38050
38051USE_HTML=0
38052if test "$wxUSE_HTML" = "yes"; then
38053 cat >>confdefs.h <<\_ACEOF
38054#define wxUSE_HTML 1
38055_ACEOF
38056
38057 USE_HTML=1
38058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
38059 if test "$wxUSE_MAC" = 1; then
38060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
38061 fi
a848cd7e
SC
38062fi
38063
646b6ec1
VS
38064if test "$wxUSE_WEBKIT" = "yes"; then
38065 cat >>confdefs.h <<\_ACEOF
38066#define wxUSE_WEBKIT 1
38067_ACEOF
38068
38069fi
38070
a848cd7e
SC
38071if test "$wxUSE_MENUS" = "yes"; then
38072 cat >>confdefs.h <<\_ACEOF
38073#define wxUSE_MENUS 1
38074_ACEOF
38075
38076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
38077fi
38078
38079if test "$wxUSE_METAFILE" = "yes"; then
38080 cat >>confdefs.h <<\_ACEOF
38081#define wxUSE_METAFILE 1
38082_ACEOF
38083
38084fi
38085
38086if test "$wxUSE_MIMETYPE" = "yes"; then
38087 cat >>confdefs.h <<\_ACEOF
38088#define wxUSE_MIMETYPE 1
38089_ACEOF
38090
38091fi
38092
38093if test "$wxUSE_MINIFRAME" = "yes"; then
38094 cat >>confdefs.h <<\_ACEOF
38095#define wxUSE_MINIFRAME 1
38096_ACEOF
38097
38098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
38099fi
38100
38101if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
38102 cat >>confdefs.h <<\_ACEOF
38103#define wxUSE_SYSTEM_OPTIONS 1
38104_ACEOF
38105
38106 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
38107 "$TOOLKIT" = "MOTIF"; then
38108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
38109 fi
38110fi
38111
38112
38113if test "$wxUSE_VALIDATORS" = "yes"; then
38114 cat >>confdefs.h <<\_ACEOF
38115#define wxUSE_VALIDATORS 1
38116_ACEOF
38117
38118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
38119fi
38120
38121if test "$wxUSE_PALETTE" = "yes" ; then
38122 cat >>confdefs.h <<\_ACEOF
38123#define wxUSE_PALETTE 1
38124_ACEOF
38125
38126fi
38127
38128if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
38129 LIBS=" -lunicows $LIBS"
38130fi
38131
38132
38133if test "$wxUSE_IMAGE" = "yes" ; then
38134 cat >>confdefs.h <<\_ACEOF
38135#define wxUSE_IMAGE 1
38136_ACEOF
38137
38138
38139 if test "$wxUSE_GIF" = "yes" ; then
38140 cat >>confdefs.h <<\_ACEOF
38141#define wxUSE_GIF 1
38142_ACEOF
38143
38144 fi
38145
38146 if test "$wxUSE_PCX" = "yes" ; then
38147 cat >>confdefs.h <<\_ACEOF
38148#define wxUSE_PCX 1
38149_ACEOF
38150
38151 fi
38152
38153 if test "$wxUSE_IFF" = "yes" ; then
38154 cat >>confdefs.h <<\_ACEOF
38155#define wxUSE_IFF 1
38156_ACEOF
38157
38158 fi
38159
38160 if test "$wxUSE_PNM" = "yes" ; then
38161 cat >>confdefs.h <<\_ACEOF
38162#define wxUSE_PNM 1
38163_ACEOF
38164
38165 fi
38166
38167 if test "$wxUSE_XPM" = "yes" ; then
38168 cat >>confdefs.h <<\_ACEOF
38169#define wxUSE_XPM 1
38170_ACEOF
38171
38172 fi
38173
38174 if test "$wxUSE_ICO_CUR" = "yes" ; then
38175 cat >>confdefs.h <<\_ACEOF
38176#define wxUSE_ICO_CUR 1
38177_ACEOF
38178
38179 fi
38180fi
38181
38182
38183if test "$wxUSE_CHOICEDLG" = "yes"; then
38184 cat >>confdefs.h <<\_ACEOF
38185#define wxUSE_CHOICEDLG 1
38186_ACEOF
38187
38188fi
38189
38190if test "$wxUSE_COLOURDLG" = "yes"; then
38191 cat >>confdefs.h <<\_ACEOF
38192#define wxUSE_COLOURDLG 1
38193_ACEOF
38194
38195fi
38196
38197if test "$wxUSE_FILEDLG" = "yes"; then
38198 cat >>confdefs.h <<\_ACEOF
38199#define wxUSE_FILEDLG 1
38200_ACEOF
38201
38202fi
38203
38204if test "$wxUSE_FINDREPLDLG" = "yes"; then
38205 cat >>confdefs.h <<\_ACEOF
38206#define wxUSE_FINDREPLDLG 1
38207_ACEOF
38208
38209fi
38210
38211if test "$wxUSE_FONTDLG" = "yes"; then
38212 cat >>confdefs.h <<\_ACEOF
38213#define wxUSE_FONTDLG 1
38214_ACEOF
38215
38216fi
38217
38218if test "$wxUSE_DIRDLG" = "yes"; then
38219 if test "$wxUSE_TREECTRL" != "yes"; then
38220 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
38221echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
38222 else
38223 cat >>confdefs.h <<\_ACEOF
38224#define wxUSE_DIRDLG 1
38225_ACEOF
38226
38227 fi
38228fi
38229
38230if test "$wxUSE_MSGDLG" = "yes"; then
38231 cat >>confdefs.h <<\_ACEOF
38232#define wxUSE_MSGDLG 1
38233_ACEOF
38234
38235fi
38236
38237if test "$wxUSE_NUMBERDLG" = "yes"; then
38238 cat >>confdefs.h <<\_ACEOF
38239#define wxUSE_NUMBERDLG 1
38240_ACEOF
38241
38242fi
38243
38244if test "$wxUSE_PROGRESSDLG" = "yes"; then
38245 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38246 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
38247echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
38248 else
38249 cat >>confdefs.h <<\_ACEOF
38250#define wxUSE_PROGRESSDLG 1
38251_ACEOF
38252
38253 fi
38254fi
38255
38256if test "$wxUSE_SPLASH" = "yes"; then
38257 cat >>confdefs.h <<\_ACEOF
38258#define wxUSE_SPLASH 1
38259_ACEOF
38260
38261fi
38262
38263if test "$wxUSE_STARTUP_TIPS" = "yes"; then
38264 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38265 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
38266echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
38267 else
38268 cat >>confdefs.h <<\_ACEOF
38269#define wxUSE_STARTUP_TIPS 1
38270_ACEOF
38271
38272 fi
38273fi
38274
38275if test "$wxUSE_TEXTDLG" = "yes"; then
38276 cat >>confdefs.h <<\_ACEOF
38277#define wxUSE_TEXTDLG 1
38278_ACEOF
38279
38280fi
38281
38282if test "$wxUSE_WIZARDDLG" = "yes"; then
38283 cat >>confdefs.h <<\_ACEOF
38284#define wxUSE_WIZARDDLG 1
38285_ACEOF
38286
38287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
38288fi
38289
38290
38291if test "$cross_compiling" = "yes"; then
38292 OSINFO="\"$host\""
38293else
38294 OSINFO=`uname -s -r -m`
38295 OSINFO="\"$OSINFO\""
38296fi
38297
38298cat >>confdefs.h <<_ACEOF
38299#define WXWIN_OS_DESCRIPTION $OSINFO
38300_ACEOF
38301
38302
38303
38304if test "x$prefix" != "xNONE"; then
38305 wxPREFIX=$prefix
38306else
38307 wxPREFIX=$ac_default_prefix
38308fi
38309
38310cat >>confdefs.h <<_ACEOF
38311#define wxINSTALL_PREFIX "$wxPREFIX"
38312_ACEOF
38313
38314
38315top_builddir_wxconfig=`pwd`
38316
38317
38318
38319CORE_BASE_LIBS="net base"
38320CORE_GUI_LIBS="adv core"
38321
38322if test "$wxUSE_XML" = "yes" ; then
38323 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
38324fi
38325if test "$wxUSE_ODBC" != "no" ; then
38326 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
38327 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
38328fi
38329if test "$wxUSE_HTML" = "yes" ; then
38330 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
38331fi
38332
38333if test "$wxUSE_GUI" != "yes"; then
38334 CORE_GUI_LIBS=""
38335fi
38336
38337
38338
38339
38340
38341
38342
38343
38344if test "$wxUSE_MAC" = 1 ; then
de59c161 38345 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework WebKit -framework System"
a848cd7e
SC
38346fi
38347if test "$wxUSE_COCOA" = 1 ; then
38348 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
38349fi
38350
38351
38352LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
38353
38354have_cos=0
38355have_floor=0
38356
38357for ac_func in cos
38358do
38359as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38360echo "$as_me:$LINENO: checking for $ac_func" >&5
38361echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38362if eval "test \"\${$as_ac_var+set}\" = set"; then
38363 echo $ECHO_N "(cached) $ECHO_C" >&6
38364else
38365 cat >conftest.$ac_ext <<_ACEOF
38366/* confdefs.h. */
38367_ACEOF
38368cat confdefs.h >>conftest.$ac_ext
38369cat >>conftest.$ac_ext <<_ACEOF
38370/* end confdefs.h. */
ac1cb8d3
VS
38371/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38373#define $ac_func innocuous_$ac_func
38374
a848cd7e
SC
38375/* System header to define __stub macros and hopefully few prototypes,
38376 which can conflict with char $ac_func (); below.
38377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38378 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38379
a848cd7e
SC
38380#ifdef __STDC__
38381# include <limits.h>
38382#else
38383# include <assert.h>
38384#endif
ac1cb8d3
VS
38385
38386#undef $ac_func
38387
a848cd7e
SC
38388/* Override any gcc2 internal prototype to avoid an error. */
38389#ifdef __cplusplus
38390extern "C"
38391{
38392#endif
38393/* We use char because int might match the return type of a gcc2
38394 builtin and then its argument prototype would still apply. */
38395char $ac_func ();
38396/* The GNU C library defines this for functions which it implements
38397 to always fail with ENOSYS. Some functions are actually named
38398 something starting with __ and the normal name is an alias. */
38399#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38400choke me
38401#else
38402char (*f) () = $ac_func;
38403#endif
38404#ifdef __cplusplus
38405}
38406#endif
38407
38408int
38409main ()
38410{
38411return f != $ac_func;
38412 ;
38413 return 0;
38414}
38415_ACEOF
38416rm -f conftest.$ac_objext conftest$ac_exeext
38417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38418 (eval $ac_link) 2>conftest.er1
a848cd7e 38419 ac_status=$?
ac1cb8d3
VS
38420 grep -v '^ *+' conftest.er1 >conftest.err
38421 rm -f conftest.er1
38422 cat conftest.err >&5
a848cd7e
SC
38423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424 (exit $ac_status); } &&
ac1cb8d3
VS
38425 { ac_try='test -z "$ac_c_werror_flag"
38426 || test ! -s conftest.err'
38427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38428 (eval $ac_try) 2>&5
38429 ac_status=$?
38430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38431 (exit $ac_status); }; } &&
38432 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38434 (eval $ac_try) 2>&5
38435 ac_status=$?
38436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38437 (exit $ac_status); }; }; then
38438 eval "$as_ac_var=yes"
38439else
38440 echo "$as_me: failed program was:" >&5
38441sed 's/^/| /' conftest.$ac_ext >&5
38442
38443eval "$as_ac_var=no"
38444fi
ac1cb8d3
VS
38445rm -f conftest.err conftest.$ac_objext \
38446 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38447fi
38448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38449echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38450if test `eval echo '${'$as_ac_var'}'` = yes; then
38451 cat >>confdefs.h <<_ACEOF
38452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38453_ACEOF
38454 have_cos=1
38455fi
38456done
38457
38458
38459for ac_func in floor
38460do
38461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38462echo "$as_me:$LINENO: checking for $ac_func" >&5
38463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38464if eval "test \"\${$as_ac_var+set}\" = set"; then
38465 echo $ECHO_N "(cached) $ECHO_C" >&6
38466else
38467 cat >conftest.$ac_ext <<_ACEOF
38468/* confdefs.h. */
38469_ACEOF
38470cat confdefs.h >>conftest.$ac_ext
38471cat >>conftest.$ac_ext <<_ACEOF
38472/* end confdefs.h. */
ac1cb8d3
VS
38473/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38475#define $ac_func innocuous_$ac_func
38476
a848cd7e
SC
38477/* System header to define __stub macros and hopefully few prototypes,
38478 which can conflict with char $ac_func (); below.
38479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38480 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38481
a848cd7e
SC
38482#ifdef __STDC__
38483# include <limits.h>
38484#else
38485# include <assert.h>
38486#endif
ac1cb8d3
VS
38487
38488#undef $ac_func
38489
a848cd7e
SC
38490/* Override any gcc2 internal prototype to avoid an error. */
38491#ifdef __cplusplus
38492extern "C"
38493{
38494#endif
38495/* We use char because int might match the return type of a gcc2
38496 builtin and then its argument prototype would still apply. */
38497char $ac_func ();
38498/* The GNU C library defines this for functions which it implements
38499 to always fail with ENOSYS. Some functions are actually named
38500 something starting with __ and the normal name is an alias. */
38501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38502choke me
38503#else
38504char (*f) () = $ac_func;
38505#endif
38506#ifdef __cplusplus
38507}
38508#endif
38509
38510int
38511main ()
38512{
38513return f != $ac_func;
38514 ;
38515 return 0;
38516}
38517_ACEOF
38518rm -f conftest.$ac_objext conftest$ac_exeext
38519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38520 (eval $ac_link) 2>conftest.er1
a848cd7e 38521 ac_status=$?
ac1cb8d3
VS
38522 grep -v '^ *+' conftest.er1 >conftest.err
38523 rm -f conftest.er1
38524 cat conftest.err >&5
a848cd7e
SC
38525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38526 (exit $ac_status); } &&
ac1cb8d3
VS
38527 { ac_try='test -z "$ac_c_werror_flag"
38528 || test ! -s conftest.err'
38529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38530 (eval $ac_try) 2>&5
38531 ac_status=$?
38532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533 (exit $ac_status); }; } &&
38534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38536 (eval $ac_try) 2>&5
38537 ac_status=$?
38538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38539 (exit $ac_status); }; }; then
38540 eval "$as_ac_var=yes"
38541else
38542 echo "$as_me: failed program was:" >&5
38543sed 's/^/| /' conftest.$ac_ext >&5
38544
38545eval "$as_ac_var=no"
38546fi
ac1cb8d3
VS
38547rm -f conftest.err conftest.$ac_objext \
38548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38549fi
38550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38551echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38552if test `eval echo '${'$as_ac_var'}'` = yes; then
38553 cat >>confdefs.h <<_ACEOF
38554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38555_ACEOF
38556 have_floor=1
38557fi
38558done
38559
38560echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
38561echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
38562if test "$have_cos" = 1 -a "$have_floor" = 1; then
38563 echo "$as_me:$LINENO: result: yes" >&5
38564echo "${ECHO_T}yes" >&6
38565else
38566 echo "$as_me:$LINENO: result: no" >&5
38567echo "${ECHO_T}no" >&6
38568 LIBS="$LIBS -lm"
38569 # use different functions to avoid configure caching
38570 have_sin=0
38571 have_ceil=0
38572
38573for ac_func in sin
38574do
38575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38576echo "$as_me:$LINENO: checking for $ac_func" >&5
38577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38578if eval "test \"\${$as_ac_var+set}\" = set"; then
38579 echo $ECHO_N "(cached) $ECHO_C" >&6
38580else
38581 cat >conftest.$ac_ext <<_ACEOF
38582/* confdefs.h. */
38583_ACEOF
38584cat confdefs.h >>conftest.$ac_ext
38585cat >>conftest.$ac_ext <<_ACEOF
38586/* end confdefs.h. */
ac1cb8d3
VS
38587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38589#define $ac_func innocuous_$ac_func
38590
a848cd7e
SC
38591/* System header to define __stub macros and hopefully few prototypes,
38592 which can conflict with char $ac_func (); below.
38593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38594 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38595
a848cd7e
SC
38596#ifdef __STDC__
38597# include <limits.h>
38598#else
38599# include <assert.h>
38600#endif
ac1cb8d3
VS
38601
38602#undef $ac_func
38603
a848cd7e
SC
38604/* Override any gcc2 internal prototype to avoid an error. */
38605#ifdef __cplusplus
38606extern "C"
38607{
38608#endif
38609/* We use char because int might match the return type of a gcc2
38610 builtin and then its argument prototype would still apply. */
38611char $ac_func ();
38612/* The GNU C library defines this for functions which it implements
38613 to always fail with ENOSYS. Some functions are actually named
38614 something starting with __ and the normal name is an alias. */
38615#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38616choke me
38617#else
38618char (*f) () = $ac_func;
38619#endif
38620#ifdef __cplusplus
38621}
38622#endif
38623
38624int
38625main ()
38626{
38627return f != $ac_func;
38628 ;
38629 return 0;
38630}
38631_ACEOF
38632rm -f conftest.$ac_objext conftest$ac_exeext
38633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38634 (eval $ac_link) 2>conftest.er1
a848cd7e 38635 ac_status=$?
ac1cb8d3
VS
38636 grep -v '^ *+' conftest.er1 >conftest.err
38637 rm -f conftest.er1
38638 cat conftest.err >&5
a848cd7e
SC
38639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38640 (exit $ac_status); } &&
ac1cb8d3
VS
38641 { ac_try='test -z "$ac_c_werror_flag"
38642 || test ! -s conftest.err'
38643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38644 (eval $ac_try) 2>&5
38645 ac_status=$?
38646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38647 (exit $ac_status); }; } &&
38648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38650 (eval $ac_try) 2>&5
38651 ac_status=$?
38652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38653 (exit $ac_status); }; }; then
38654 eval "$as_ac_var=yes"
38655else
38656 echo "$as_me: failed program was:" >&5
38657sed 's/^/| /' conftest.$ac_ext >&5
38658
38659eval "$as_ac_var=no"
38660fi
ac1cb8d3
VS
38661rm -f conftest.err conftest.$ac_objext \
38662 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38663fi
38664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38665echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38666if test `eval echo '${'$as_ac_var'}'` = yes; then
38667 cat >>confdefs.h <<_ACEOF
38668#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38669_ACEOF
38670 have_sin=1
38671fi
38672done
38673
38674
38675for ac_func in ceil
38676do
38677as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38678echo "$as_me:$LINENO: checking for $ac_func" >&5
38679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38680if eval "test \"\${$as_ac_var+set}\" = set"; then
38681 echo $ECHO_N "(cached) $ECHO_C" >&6
38682else
38683 cat >conftest.$ac_ext <<_ACEOF
38684/* confdefs.h. */
38685_ACEOF
38686cat confdefs.h >>conftest.$ac_ext
38687cat >>conftest.$ac_ext <<_ACEOF
38688/* end confdefs.h. */
ac1cb8d3
VS
38689/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38691#define $ac_func innocuous_$ac_func
38692
a848cd7e
SC
38693/* System header to define __stub macros and hopefully few prototypes,
38694 which can conflict with char $ac_func (); below.
38695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38696 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38697
a848cd7e
SC
38698#ifdef __STDC__
38699# include <limits.h>
38700#else
38701# include <assert.h>
38702#endif
ac1cb8d3
VS
38703
38704#undef $ac_func
38705
a848cd7e
SC
38706/* Override any gcc2 internal prototype to avoid an error. */
38707#ifdef __cplusplus
38708extern "C"
38709{
38710#endif
38711/* We use char because int might match the return type of a gcc2
38712 builtin and then its argument prototype would still apply. */
38713char $ac_func ();
38714/* The GNU C library defines this for functions which it implements
38715 to always fail with ENOSYS. Some functions are actually named
38716 something starting with __ and the normal name is an alias. */
38717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38718choke me
38719#else
38720char (*f) () = $ac_func;
38721#endif
38722#ifdef __cplusplus
38723}
38724#endif
38725
38726int
38727main ()
38728{
38729return f != $ac_func;
38730 ;
38731 return 0;
38732}
38733_ACEOF
38734rm -f conftest.$ac_objext conftest$ac_exeext
38735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38736 (eval $ac_link) 2>conftest.er1
a848cd7e 38737 ac_status=$?
ac1cb8d3
VS
38738 grep -v '^ *+' conftest.er1 >conftest.err
38739 rm -f conftest.er1
38740 cat conftest.err >&5
a848cd7e
SC
38741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38742 (exit $ac_status); } &&
ac1cb8d3
VS
38743 { ac_try='test -z "$ac_c_werror_flag"
38744 || test ! -s conftest.err'
38745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38746 (eval $ac_try) 2>&5
38747 ac_status=$?
38748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749 (exit $ac_status); }; } &&
38750 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38752 (eval $ac_try) 2>&5
38753 ac_status=$?
38754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755 (exit $ac_status); }; }; then
38756 eval "$as_ac_var=yes"
38757else
38758 echo "$as_me: failed program was:" >&5
38759sed 's/^/| /' conftest.$ac_ext >&5
38760
38761eval "$as_ac_var=no"
38762fi
ac1cb8d3
VS
38763rm -f conftest.err conftest.$ac_objext \
38764 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38765fi
38766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38767echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38768if test `eval echo '${'$as_ac_var'}'` = yes; then
38769 cat >>confdefs.h <<_ACEOF
38770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38771_ACEOF
38772 have_ceil=1
38773fi
38774done
38775
38776 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
38777echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38778 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38779 echo "$as_me:$LINENO: result: yes" >&5
38780echo "${ECHO_T}yes" >&6
38781 else
38782 echo "$as_me:$LINENO: result: no" >&5
38783echo "${ECHO_T}no" >&6
38784 # not sure we should warn the user, crash, etc.
38785 fi
38786fi
38787
38788if test "$wxUSE_GUI" = "yes"; then
38789
38790
38791 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38792 drawing dynamic erase event exec font image \
38793 minimal propsize rotate shaped widgets render"
38794
38795 if test "$wxUSE_MONOLITHIC" != "yes"; then
38796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38797 fi
38798else
38799 SAMPLES_SUBDIRS="console"
38800fi
38801
38802
38803INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
38804-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38805
38806if test "$GXX" = yes ; then
38807 CXXWARNINGS="-Wall"
38808 fi
38809
38810EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38811
38812CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
38813CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
38814CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
38815
38816
38817LIBS=`echo $LIBS | sed 's/ \+/ /g'`
38818EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38819EXTRALIBS_XML="$EXPAT_LINK"
38820EXTRALIBS_HTML="$MSPACK_LINK"
38821EXTRALIBS_ODBC="$ODBC_LINK"
38822if test "$wxUSE_GUI" = "yes"; then
38823 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
38824fi
38825if test "$wxUSE_OPENGL" = "yes"; then
38826 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38827fi
38828
38829LDFLAGS="$LDFLAGS $PROFILE"
38830
38831if test "$wxUSE_GTK" = 1; then
38832 WXCONFIG_INCLUDE=
38833else
38834 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38835fi
38836
38837WXCONFIG_EXTRALIBS="$LIBS"
38838
38839if test "$wxUSE_REGEX" = "builtin" ; then
38840 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38841fi
38842if test "$wxUSE_EXPAT" = "builtin" ; then
38843 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38844fi
38845if test "$wxUSE_ODBC" = "builtin" ; then
38846 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38847fi
38848if test "$wxUSE_LIBTIFF" = "builtin" ; then
38849 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38850fi
38851if test "$wxUSE_LIBJPEG" = "builtin" ; then
38852 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38853fi
38854if test "$wxUSE_LIBPNG" = "builtin" ; then
38855 wxconfig_3rdparty="$wxconfig_3rdparty png"
38856fi
38857if test "$wxUSE_ZLIB" = "builtin" ; then
38858 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38859fi
38860if test "$wxUSE_ODBC" = "builtin" ; then
38861 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38862fi
38863
38864for i in $wxconfig_3rdparty ; do
38865 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
38866done
38867
38868
38869if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38870 WXUNIV=1
38871else
38872 WXUNIV=0
38873fi
38874
38875
38876
38877
38878
38879
38880
38881
38882
38883if test $wxUSE_MONOLITHIC = "yes" ; then
38884 MONOLITHIC=1
38885else
38886 MONOLITHIC=0
38887fi
38888
38889if test $wxUSE_PLUGINS = "yes" ; then
38890 USE_PLUGINS=1
38891else
38892 USE_PLUGINS=0
38893fi
38894
38895if test $wxUSE_ODBC != "no" ; then
38896 USE_ODBC=1
38897else
38898 USE_ODBC=0
38899fi
38900
38901if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38902 OFFICIAL_BUILD=1
38903else
38904 OFFICIAL_BUILD=0
38905fi
38906
38907
38908
38909
38910
38911
38912
38913
38914
38915
38916
38917
38918
38919
38920
38921
38922
38923
38924
38925
38926
38927TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38928
38929
38930
38931
38932
38933
38934
38935
38936
38937 if test "x$BAKEFILE_HOST" = "x"; then
38938 BAKEFILE_HOST="${host}"
38939 fi
38940
38941 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38942
38943 if test -n "$ac_tool_prefix"; then
38944 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38945set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38946echo "$as_me:$LINENO: checking for $ac_word" >&5
38947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38948if test "${ac_cv_prog_RANLIB+set}" = set; then
38949 echo $ECHO_N "(cached) $ECHO_C" >&6
38950else
38951 if test -n "$RANLIB"; then
38952 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38953else
38954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38955for as_dir in $PATH
38956do
38957 IFS=$as_save_IFS
38958 test -z "$as_dir" && as_dir=.
38959 for ac_exec_ext in '' $ac_executable_extensions; do
38960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38961 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38963 break 2
38964 fi
38965done
38966done
38967
38968fi
38969fi
38970RANLIB=$ac_cv_prog_RANLIB
38971if test -n "$RANLIB"; then
38972 echo "$as_me:$LINENO: result: $RANLIB" >&5
38973echo "${ECHO_T}$RANLIB" >&6
38974else
38975 echo "$as_me:$LINENO: result: no" >&5
38976echo "${ECHO_T}no" >&6
38977fi
38978
38979fi
38980if test -z "$ac_cv_prog_RANLIB"; then
38981 ac_ct_RANLIB=$RANLIB
38982 # Extract the first word of "ranlib", so it can be a program name with args.
38983set dummy ranlib; ac_word=$2
38984echo "$as_me:$LINENO: checking for $ac_word" >&5
38985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38986if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38987 echo $ECHO_N "(cached) $ECHO_C" >&6
38988else
38989 if test -n "$ac_ct_RANLIB"; then
38990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38991else
38992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38993for as_dir in $PATH
38994do
38995 IFS=$as_save_IFS
38996 test -z "$as_dir" && as_dir=.
38997 for ac_exec_ext in '' $ac_executable_extensions; do
38998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38999 ac_cv_prog_ac_ct_RANLIB="ranlib"
39000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39001 break 2
39002 fi
39003done
39004done
39005
39006 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
39007fi
39008fi
39009ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
39010if test -n "$ac_ct_RANLIB"; then
39011 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
39012echo "${ECHO_T}$ac_ct_RANLIB" >&6
39013else
39014 echo "$as_me:$LINENO: result: no" >&5
39015echo "${ECHO_T}no" >&6
39016fi
39017
39018 RANLIB=$ac_ct_RANLIB
39019else
39020 RANLIB="$ac_cv_prog_RANLIB"
39021fi
39022
39023 # Find a good install program. We prefer a C program (faster),
39024# so one script is as good as another. But avoid the broken or
39025# incompatible versions:
39026# SysV /etc/install, /usr/sbin/install
39027# SunOS /usr/etc/install
39028# IRIX /sbin/install
39029# AIX /bin/install
39030# AmigaOS /C/install, which installs bootblocks on floppy discs
39031# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
39032# AFS /usr/afsws/bin/install, which mishandles nonexistent args
39033# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 39034# OS/2's system install, which has a completely different semantic
a848cd7e
SC
39035# ./install, which can be erroneously created by make from ./install.sh.
39036echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
39037echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
39038if test -z "$INSTALL"; then
39039if test "${ac_cv_path_install+set}" = set; then
39040 echo $ECHO_N "(cached) $ECHO_C" >&6
39041else
39042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39043for as_dir in $PATH
39044do
39045 IFS=$as_save_IFS
39046 test -z "$as_dir" && as_dir=.
39047 # Account for people who put trailing slashes in PATH elements.
39048case $as_dir/ in
39049 ./ | .// | /cC/* | \
39050 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 39051 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
39052 /usr/ucb/* ) ;;
39053 *)
39054 # OSF1 and SCO ODT 3.0 have their own names for install.
39055 # Don't use installbsd from OSF since it installs stuff as root
39056 # by default.
39057 for ac_prog in ginstall scoinst install; do
39058 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
39059 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
39060 if test $ac_prog = install &&
39061 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39062 # AIX install. It has an incompatible calling convention.
39063 :
39064 elif test $ac_prog = install &&
39065 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39066 # program-specific install script used by HP pwplus--don't use.
39067 :
39068 else
39069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
39070 break 3
39071 fi
39072 fi
a848cd7e
SC
39073 done
39074 done
39075 ;;
39076esac
39077done
39078
39079
39080fi
39081 if test "${ac_cv_path_install+set}" = set; then
39082 INSTALL=$ac_cv_path_install
39083 else
39084 # As a last resort, use the slow shell script. We don't cache a
39085 # path for INSTALL within a source directory, because that will
39086 # break other packages using the cache if that directory is
39087 # removed, or if the path is relative.
39088 INSTALL=$ac_install_sh
39089 fi
39090fi
39091echo "$as_me:$LINENO: result: $INSTALL" >&5
39092echo "${ECHO_T}$INSTALL" >&6
39093
39094# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
39095# It thinks the first close brace ends the variable substitution.
39096test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
39097
39098test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
39099
39100test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39101
39102 echo "$as_me:$LINENO: checking whether ln -s works" >&5
39103echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
39104LN_S=$as_ln_s
39105if test "$LN_S" = "ln -s"; then
39106 echo "$as_me:$LINENO: result: yes" >&5
39107echo "${ECHO_T}yes" >&6
39108else
39109 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
39110echo "${ECHO_T}no, using $LN_S" >&6
39111fi
39112
39113
39114 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39115echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 39116set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
39117if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39118 echo $ECHO_N "(cached) $ECHO_C" >&6
39119else
39120 cat >conftest.make <<\_ACEOF
39121all:
39122 @echo 'ac_maketemp="$(MAKE)"'
39123_ACEOF
39124# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39125eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39126if test -n "$ac_maketemp"; then
39127 eval ac_cv_prog_make_${ac_make}_set=yes
39128else
39129 eval ac_cv_prog_make_${ac_make}_set=no
39130fi
39131rm -f conftest.make
39132fi
39133if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39134 echo "$as_me:$LINENO: result: yes" >&5
39135echo "${ECHO_T}yes" >&6
39136 SET_MAKE=
39137else
39138 echo "$as_me:$LINENO: result: no" >&5
39139echo "${ECHO_T}no" >&6
39140 SET_MAKE="MAKE=${MAKE-make}"
39141fi
39142
39143
39144
39145 if test -n "$ac_tool_prefix"; then
39146 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
39147set dummy ${ac_tool_prefix}ar; ac_word=$2
39148echo "$as_me:$LINENO: checking for $ac_word" >&5
39149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39150if test "${ac_cv_prog_AR+set}" = set; then
39151 echo $ECHO_N "(cached) $ECHO_C" >&6
39152else
39153 if test -n "$AR"; then
39154 ac_cv_prog_AR="$AR" # Let the user override the test.
39155else
39156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39157for as_dir in $PATH
39158do
39159 IFS=$as_save_IFS
39160 test -z "$as_dir" && as_dir=.
39161 for ac_exec_ext in '' $ac_executable_extensions; do
39162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39163 ac_cv_prog_AR="${ac_tool_prefix}ar"
39164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39165 break 2
39166 fi
39167done
39168done
39169
39170fi
39171fi
39172AR=$ac_cv_prog_AR
39173if test -n "$AR"; then
39174 echo "$as_me:$LINENO: result: $AR" >&5
39175echo "${ECHO_T}$AR" >&6
39176else
39177 echo "$as_me:$LINENO: result: no" >&5
39178echo "${ECHO_T}no" >&6
39179fi
39180
39181fi
39182if test -z "$ac_cv_prog_AR"; then
39183 ac_ct_AR=$AR
39184 # Extract the first word of "ar", so it can be a program name with args.
39185set dummy ar; ac_word=$2
39186echo "$as_me:$LINENO: checking for $ac_word" >&5
39187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39188if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
39189 echo $ECHO_N "(cached) $ECHO_C" >&6
39190else
39191 if test -n "$ac_ct_AR"; then
39192 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
39193else
39194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39195for as_dir in $PATH
39196do
39197 IFS=$as_save_IFS
39198 test -z "$as_dir" && as_dir=.
39199 for ac_exec_ext in '' $ac_executable_extensions; do
39200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39201 ac_cv_prog_ac_ct_AR="ar"
39202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39203 break 2
39204 fi
39205done
39206done
39207
39208 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
39209fi
39210fi
39211ac_ct_AR=$ac_cv_prog_ac_ct_AR
39212if test -n "$ac_ct_AR"; then
39213 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
39214echo "${ECHO_T}$ac_ct_AR" >&6
39215else
39216 echo "$as_me:$LINENO: result: no" >&5
39217echo "${ECHO_T}no" >&6
39218fi
39219
39220 AR=$ac_ct_AR
39221else
39222 AR="$ac_cv_prog_AR"
39223fi
39224
39225 if test -n "$ac_tool_prefix"; then
39226 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
39227set dummy ${ac_tool_prefix}strip; ac_word=$2
39228echo "$as_me:$LINENO: checking for $ac_word" >&5
39229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39230if test "${ac_cv_prog_STRIP+set}" = set; then
39231 echo $ECHO_N "(cached) $ECHO_C" >&6
39232else
39233 if test -n "$STRIP"; then
39234 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
39235else
39236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39237for as_dir in $PATH
39238do
39239 IFS=$as_save_IFS
39240 test -z "$as_dir" && as_dir=.
39241 for ac_exec_ext in '' $ac_executable_extensions; do
39242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39243 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
39244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39245 break 2
39246 fi
39247done
39248done
39249
39250fi
39251fi
39252STRIP=$ac_cv_prog_STRIP
39253if test -n "$STRIP"; then
39254 echo "$as_me:$LINENO: result: $STRIP" >&5
39255echo "${ECHO_T}$STRIP" >&6
39256else
39257 echo "$as_me:$LINENO: result: no" >&5
39258echo "${ECHO_T}no" >&6
39259fi
39260
39261fi
39262if test -z "$ac_cv_prog_STRIP"; then
39263 ac_ct_STRIP=$STRIP
39264 # Extract the first word of "strip", so it can be a program name with args.
39265set dummy strip; ac_word=$2
39266echo "$as_me:$LINENO: checking for $ac_word" >&5
39267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39268if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
39269 echo $ECHO_N "(cached) $ECHO_C" >&6
39270else
39271 if test -n "$ac_ct_STRIP"; then
39272 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
39273else
39274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39275for as_dir in $PATH
39276do
39277 IFS=$as_save_IFS
39278 test -z "$as_dir" && as_dir=.
39279 for ac_exec_ext in '' $ac_executable_extensions; do
39280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39281 ac_cv_prog_ac_ct_STRIP="strip"
39282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39283 break 2
39284 fi
39285done
39286done
39287
39288 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
39289fi
39290fi
39291ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
39292if test -n "$ac_ct_STRIP"; then
39293 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
39294echo "${ECHO_T}$ac_ct_STRIP" >&6
39295else
39296 echo "$as_me:$LINENO: result: no" >&5
39297echo "${ECHO_T}no" >&6
39298fi
39299
39300 STRIP=$ac_ct_STRIP
39301else
39302 STRIP="$ac_cv_prog_STRIP"
39303fi
39304
39305 if test -n "$ac_tool_prefix"; then
39306 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
39307set dummy ${ac_tool_prefix}nm; ac_word=$2
39308echo "$as_me:$LINENO: checking for $ac_word" >&5
39309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39310if test "${ac_cv_prog_NM+set}" = set; then
39311 echo $ECHO_N "(cached) $ECHO_C" >&6
39312else
39313 if test -n "$NM"; then
39314 ac_cv_prog_NM="$NM" # Let the user override the test.
39315else
39316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39317for as_dir in $PATH
39318do
39319 IFS=$as_save_IFS
39320 test -z "$as_dir" && as_dir=.
39321 for ac_exec_ext in '' $ac_executable_extensions; do
39322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39323 ac_cv_prog_NM="${ac_tool_prefix}nm"
39324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39325 break 2
39326 fi
39327done
39328done
39329
39330fi
39331fi
39332NM=$ac_cv_prog_NM
39333if test -n "$NM"; then
39334 echo "$as_me:$LINENO: result: $NM" >&5
39335echo "${ECHO_T}$NM" >&6
39336else
39337 echo "$as_me:$LINENO: result: no" >&5
39338echo "${ECHO_T}no" >&6
39339fi
39340
39341fi
39342if test -z "$ac_cv_prog_NM"; then
39343 ac_ct_NM=$NM
39344 # Extract the first word of "nm", so it can be a program name with args.
39345set dummy nm; ac_word=$2
39346echo "$as_me:$LINENO: checking for $ac_word" >&5
39347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39348if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
39349 echo $ECHO_N "(cached) $ECHO_C" >&6
39350else
39351 if test -n "$ac_ct_NM"; then
39352 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
39353else
39354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39355for as_dir in $PATH
39356do
39357 IFS=$as_save_IFS
39358 test -z "$as_dir" && as_dir=.
39359 for ac_exec_ext in '' $ac_executable_extensions; do
39360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39361 ac_cv_prog_ac_ct_NM="nm"
39362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39363 break 2
39364 fi
39365done
39366done
39367
39368 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
39369fi
39370fi
39371ac_ct_NM=$ac_cv_prog_ac_ct_NM
39372if test -n "$ac_ct_NM"; then
39373 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
39374echo "${ECHO_T}$ac_ct_NM" >&6
39375else
39376 echo "$as_me:$LINENO: result: no" >&5
39377echo "${ECHO_T}no" >&6
39378fi
39379
39380 NM=$ac_ct_NM
39381else
39382 NM="$ac_cv_prog_NM"
39383fi
39384
39385
39386 case ${BAKEFILE_HOST} in
39387 *-hp-hpux* )
39388 INSTALL_DIR="mkdir"
39389 ;;
39390 *) INSTALL_DIR="$INSTALL -d"
39391 ;;
39392 esac
39393
39394
39395 LDFLAGS_GUI=
39396 case ${BAKEFILE_HOST} in
39397 *-*-cygwin* | *-*-mingw32* )
39398 LDFLAGS_GUI="-mwindows"
39399 esac
39400
39401
39402 fi
39403
39404 echo "$as_me:$LINENO: checking if make is GNU make" >&5
39405echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
39406if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
39407 echo $ECHO_N "(cached) $ECHO_C" >&6
39408else
39409
39410 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
39411 egrep -s GNU > /dev/null); then
39412 bakefile_cv_prog_makeisgnu="yes"
39413 else
39414 bakefile_cv_prog_makeisgnu="no"
39415 fi
39416
39417fi
39418echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
39419echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
39420
39421 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
39422 IF_GNU_MAKE=""
39423 else
39424 IF_GNU_MAKE="#"
39425 fi
39426
39427
39428
39429 PLATFORM_UNIX=0
39430 PLATFORM_WIN32=0
39431 PLATFORM_MSDOS=0
39432 PLATFORM_MAC=0
39433 PLATFORM_MACOSX=0
39434 PLATFORM_OS2=0
39435
39436 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
39437 case "${BAKEFILE_HOST}" in
39438 *-*-cygwin* | *-*-mingw32* )
39439 PLATFORM_WIN32=1
39440 ;;
39441 *-pc-msdosdjgpp )
39442 PLATFORM_MSDOS=1
39443 ;;
39444 *-pc-os2_emx | *-pc-os2-emx )
39445 PLATFORM_OS2=1
39446 ;;
39447 powerpc-*-darwin* )
39448 PLATFORM_MAC=1
39449 PLATFORM_MACOSX=1
39450 ;;
39451 * )
39452 PLATFORM_UNIX=1
39453 ;;
39454 esac
39455 else
39456 case "$BAKEFILE_FORCE_PLATFORM" in
39457 win32 )
39458 PLATFORM_WIN32=1
39459 ;;
39460 msdos )
39461 PLATFORM_MSDOS=1
39462 ;;
39463 os2 )
39464 PLATFORM_OS2=1
39465 ;;
39466 darwin )
39467 PLATFORM_MAC=1
39468 PLATFORM_MACOSX=1
39469 ;;
39470 unix )
39471 PLATFORM_UNIX=1
39472 ;;
39473 * )
39474 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
39475echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
39476 { (exit 1); exit 1; }; }
39477 ;;
39478 esac
39479 fi
39480
39481
39482
39483
39484
39485
39486
39487
39488
39489 # Check whether --enable-omf or --disable-omf was given.
39490if test "${enable_omf+set}" = set; then
39491 enableval="$enable_omf"
39492 bk_os2_use_omf="$enableval"
39493fi;
39494
39495 case "${BAKEFILE_HOST}" in
39496 *-*-darwin* )
39497 CFLAGS="$CFLAGS -fno-common"
39498 CXXFLAGS="$CXXFLAGS -fno-common"
39499 ;;
39500
39501 *-pc-os2_emx | *-pc-os2-emx )
39502 if test "x$bk_os2_use_omf" = "xyes" ; then
39503 AR=emxomfar
39504 RANLIB=:
39505 LDFLAGS="-Zomf $LDFLAGS"
39506 CFLAGS="-Zomf $CFLAGS"
39507 CXXFLAGS="-Zomf $CXXFLAGS"
39508 OS2_LIBEXT="lib"
39509 else
39510 OS2_LIBEXT="a"
39511 fi
39512 ;;
39513 esac
39514
39515
39516 SO_SUFFIX="so"
39517 SO_SUFFIX_MODULE="so"
39518 EXEEXT=""
39519 LIBPREFIX="lib"
39520 LIBEXT=".a"
39521 DLLPREFIX="lib"
39522 DLLPREFIX_MODULE=""
39523 DLLIMP_SUFFIX=""
39524
39525 case "${BAKEFILE_HOST}" in
39526 *-hp-hpux* )
39527 SO_SUFFIX="sl"
39528 SO_SUFFIX_MODULE="sl"
39529 ;;
39530 *-*-aix* )
39531 SO_SUFFIX="a"
39532 SO_SUFFIX_MODULE="a"
39533 ;;
39534 *-*-cygwin* | *-*-mingw32* )
39535 SO_SUFFIX="dll"
39536 SO_SUFFIX_MODULE="dll"
39537 DLLIMP_SUFFIX="dll.a"
39538 EXEEXT=".exe"
39539 DLLPREFIX=""
39540 ;;
39541 *-pc-msdosdjgpp )
39542 EXEEXT=".exe"
39543 DLLPREFIX=""
39544 ;;
39545 *-pc-os2_emx | *-pc-os2-emx )
39546 SO_SUFFIX="dll"
39547 SO_SUFFIX_MODULE="dll"
39548 DLLIMP_SUFFIX=$OS2_LIBEXT
39549 EXEEXT=".exe"
39550 DLLPREFIX=""
39551 LIBPREFIX=""
39552 LIBEXT=".$OS2_LIBEXT"
39553 ;;
39554 powerpc-*-darwin* )
39555 SO_SUFFIX="dylib"
39556 SO_SUFFIX_MODULE="bundle"
39557 ;;
39558 esac
39559
39560 if test "x$DLLIMP_SUFFIX" = "x" ; then
39561 DLLIMP_SUFFIX="$SO_SUFFIX"
39562 fi
39563
39564
39565
39566
39567
39568
39569
39570
39571
39572
39573
39574 SHARED_LD_CC="\$(CC) -shared -o"
39575 SHARED_LD_CXX="\$(CXX) -shared -o"
39576
39577 if test "x$GCC" = "xyes"; then
39578 PIC_FLAG="-fPIC"
39579 fi
39580
39581 case "${BAKEFILE_HOST}" in
39582 *-hp-hpux* )
39583 if test "x$GCC" = "xyes"; then
39584 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
39585 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
39586 else
39587 LDFLAGS="$LDFLAGS -L/usr/lib"
39588
39589 SHARED_LD_CC="${CC} -b -o"
39590 SHARED_LD_CXX="${CXX} -b -o"
39591 PIC_FLAG="+Z"
39592 fi
39593 ;;
39594
39595 *-*-linux* )
39596 if test "x$GCC" != "xyes"; then
39597 echo "$as_me:$LINENO: checking for Intel compiler" >&5
39598echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
39599if test "${bakefile_cv_prog_icc+set}" = set; then
39600 echo $ECHO_N "(cached) $ECHO_C" >&6
39601else
39602
39603 cat >conftest.$ac_ext <<_ACEOF
39604/* confdefs.h. */
39605_ACEOF
39606cat confdefs.h >>conftest.$ac_ext
39607cat >>conftest.$ac_ext <<_ACEOF
39608/* end confdefs.h. */
39609
39610int
39611main ()
39612{
39613
39614 #ifndef __INTEL_COMPILER
39615 #error Not icc
39616 #endif
39617
39618 ;
39619 return 0;
39620}
39621_ACEOF
39622rm -f conftest.$ac_objext
39623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39624 (eval $ac_compile) 2>conftest.er1
a848cd7e 39625 ac_status=$?
ac1cb8d3
VS
39626 grep -v '^ *+' conftest.er1 >conftest.err
39627 rm -f conftest.er1
39628 cat conftest.err >&5
a848cd7e
SC
39629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39630 (exit $ac_status); } &&
ac1cb8d3
VS
39631 { ac_try='test -z "$ac_c_werror_flag"
39632 || test ! -s conftest.err'
39633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39634 (eval $ac_try) 2>&5
39635 ac_status=$?
39636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39637 (exit $ac_status); }; } &&
39638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39640 (eval $ac_try) 2>&5
39641 ac_status=$?
39642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39643 (exit $ac_status); }; }; then
39644 bakefile_cv_prog_icc=yes
39645else
39646 echo "$as_me: failed program was:" >&5
39647sed 's/^/| /' conftest.$ac_ext >&5
39648
39649bakefile_cv_prog_icc=no
39650
39651fi
ac1cb8d3 39652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39653
39654fi
39655echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
39656echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
39657 if test "$bakefile_cv_prog_icc" = "yes"; then
39658 PIC_FLAG="-KPIC"
39659 fi
39660 fi
39661 ;;
39662
39663 *-*-solaris2* )
39664 if test "x$GCC" != xyes ; then
39665 SHARED_LD_CC="${CC} -G -o"
39666 SHARED_LD_CXX="${CXX} -G -o"
39667 PIC_FLAG="-KPIC"
39668 fi
39669 ;;
39670
39671 *-*-darwin* )
39672
39673 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
39674echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
39675if test "${wx_cv_gcc31+set}" = set; then
39676 echo $ECHO_N "(cached) $ECHO_C" >&6
39677else
39678
39679 cat >conftest.$ac_ext <<_ACEOF
39680/* confdefs.h. */
39681_ACEOF
39682cat confdefs.h >>conftest.$ac_ext
39683cat >>conftest.$ac_ext <<_ACEOF
39684/* end confdefs.h. */
39685
39686int
39687main ()
39688{
39689
39690 #if (__GNUC__ < 3) || \
39691 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
39692 #error old gcc
39693 #endif
39694
39695 ;
39696 return 0;
39697}
39698_ACEOF
39699rm -f conftest.$ac_objext
39700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39701 (eval $ac_compile) 2>conftest.er1
a848cd7e 39702 ac_status=$?
ac1cb8d3
VS
39703 grep -v '^ *+' conftest.er1 >conftest.err
39704 rm -f conftest.er1
39705 cat conftest.err >&5
a848cd7e
SC
39706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39707 (exit $ac_status); } &&
ac1cb8d3
VS
39708 { ac_try='test -z "$ac_c_werror_flag"
39709 || test ! -s conftest.err'
39710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39711 (eval $ac_try) 2>&5
39712 ac_status=$?
39713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714 (exit $ac_status); }; } &&
39715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39717 (eval $ac_try) 2>&5
39718 ac_status=$?
39719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39720 (exit $ac_status); }; }; then
39721
39722 wx_cv_gcc31=yes
39723
39724else
39725 echo "$as_me: failed program was:" >&5
39726sed 's/^/| /' conftest.$ac_ext >&5
39727
39728
39729 wx_cv_gcc31=no
39730
39731
39732fi
ac1cb8d3 39733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39734
39735fi
39736echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
39737echo "${ECHO_T}$wx_cv_gcc31" >&6
39738 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
39739
39740D='$'
39741cat <<EOF >shared-ld-sh
a848cd7e
SC
39742#!/bin/sh
39743#-----------------------------------------------------------------------------
39744#-- Name: distrib/mac/shared-ld-sh
39745#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
39746#-- Author: Gilles Depeyrot
39747#-- Copyright: (c) 2002 Gilles Depeyrot
39748#-- Licence: any use permitted
39749#-----------------------------------------------------------------------------
39750
39751verbose=0
39752args=""
39753objects=""
39754linking_flag="-dynamiclib"
39755
473276a9
VS
39756while test ${D}# -gt 0; do
39757 case ${D}1 in
a848cd7e
SC
39758
39759 -v)
39760 verbose=1
39761 ;;
39762
39763 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39764 # collect these options and values
473276a9 39765 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
39766 shift
39767 ;;
39768
39769 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39770 # collect these options
473276a9 39771 args="${D}{args} ${D}1"
a848cd7e
SC
39772 ;;
39773
39774 -dynamiclib|-bundle)
473276a9 39775 linking_flag="${D}1"
a848cd7e
SC
39776 ;;
39777
39778 -*)
473276a9 39779 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
39780 exit 1
39781 ;;
39782
39783 *.o | *.a | *.dylib)
39784 # collect object files
473276a9 39785 objects="${D}{objects} ${D}1"
a848cd7e
SC
39786 ;;
39787
39788 *)
473276a9 39789 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
39790 exit 1
39791 ;;
39792
39793 esac
39794 shift
39795done
39796
39797#
39798# Link one module containing all the others
39799#
473276a9
VS
39800if test ${D}{verbose} = 1; then
39801 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39802fi
473276a9
VS
39803c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39804status=${D}?
39805if test ${D}{status} != 0; then
39806 exit ${D}{status}
a848cd7e
SC
39807fi
39808
39809#
39810# Link the shared library from the single module created
39811#
473276a9
VS
39812if test ${D}{verbose} = 1; then
39813 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39814fi
473276a9
VS
39815c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39816status=${D}?
39817if test ${D}{status} != 0; then
39818 exit ${D}{status}
a848cd7e
SC
39819fi
39820
39821#
39822# Remove intermediate module
39823#
473276a9 39824rm -f master.${D}${D}.o
a848cd7e
SC
39825
39826exit 0
39827EOF
473276a9 39828
a848cd7e
SC
39829 chmod +x shared-ld-sh
39830
39831 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39832 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39833 SHARED_LD_CXX="$SHARED_LD_CC"
39834 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39835 else
39836 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39837 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39838 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39839 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39840 fi
39841
39842 PIC_FLAG="-dynamic -fPIC"
39843 ;;
39844
39845 *-*-aix* )
39846 if test "x$GCC" != "xyes"; then
39847 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39848set dummy makeC++SharedLib; ac_word=$2
39849echo "$as_me:$LINENO: checking for $ac_word" >&5
39850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39851if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39852 echo $ECHO_N "(cached) $ECHO_C" >&6
39853else
39854 if test -n "$AIX_CXX_LD"; then
39855 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39856else
39857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39858for as_dir in $PATH
39859do
39860 IFS=$as_save_IFS
39861 test -z "$as_dir" && as_dir=.
39862 for ac_exec_ext in '' $ac_executable_extensions; do
39863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39864 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39866 break 2
39867 fi
39868done
39869done
39870
39871 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39872fi
39873fi
39874AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39875if test -n "$AIX_CXX_LD"; then
39876 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39877echo "${ECHO_T}$AIX_CXX_LD" >&6
39878else
39879 echo "$as_me:$LINENO: result: no" >&5
39880echo "${ECHO_T}no" >&6
39881fi
39882
39883 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39884 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39885 fi
39886 ;;
39887
39888 *-*-beos* )
39889 SHARED_LD_CC="${LD} -shared -o"
39890 SHARED_LD_CXX="${LD} -shared -o"
39891 ;;
39892
39893 *-*-irix* )
39894 if test "x$GCC" != "xyes"; then
39895 PIC_FLAG="-KPIC"
39896 fi
39897 ;;
39898
39899 *-*-cygwin* | *-*-mingw32* )
39900 PIC_FLAG=""
39901 ;;
39902
39903 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39904 SHARED_LD_CC="`pwd`/dllar.sh -o"
39905 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39906 PIC_FLAG=""
473276a9
VS
39907
39908D='$'
39909cat <<EOF >dllar.sh
39910#!/bin/sh
39911#
39912# dllar - a tool to build both a .dll and an .a file
39913# from a set of object (.o) files for EMX/OS2.
39914#
39915# Written by Andrew Zabolotny, bit@freya.etu.ru
39916# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39917#
39918# This script will accept a set of files on the command line.
39919# All the public symbols from the .o files will be exported into
39920# a .DEF file, then linker will be run (through gcc) against them to
39921# build a shared library consisting of all given .o files. All libraries
39922# (.a) will be first decompressed into component .o files then act as
39923# described above. You can optionally give a description (-d "description")
39924# which will be put into .DLL. To see the list of accepted options (as well
39925# as command-line format) simply run this program without options. The .DLL
39926# is built to be imported by name (there is no guarantee that new versions
39927# of the library you build will have same ordinals for same symbols).
39928#
39929# dllar is free software; you can redistribute it and/or modify
39930# it under the terms of the GNU General Public License as published by
39931# the Free Software Foundation; either version 2, or (at your option)
39932# any later version.
39933#
39934# dllar is distributed in the hope that it will be useful,
39935# but WITHOUT ANY WARRANTY; without even the implied warranty of
39936# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39937# GNU General Public License for more details.
39938#
39939# You should have received a copy of the GNU General Public License
39940# along with dllar; see the file COPYING. If not, write to the Free
39941# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39942# 02111-1307, USA.
39943
39944# To successfuly run this program you will need:
39945# - Current drive should have LFN support (HPFS, ext2, network, etc)
39946# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39947# - gcc
39948# (used to build the .dll)
39949# - emxexp
39950# (used to create .def file from .o files)
39951# - emximp
39952# (used to create .a file from .def file)
39953# - GNU text utilites (cat, sort, uniq)
39954# used to process emxexp output
39955# - GNU file utilities (mv, rm)
39956# - GNU sed
39957# - lxlite (optional, see flag below)
39958# (used for general .dll cleanup)
39959#
39960
39961flag_USE_LXLITE=1;
39962
39963#
39964# helper functions
39965# basnam, variant of basename, which does _not_ remove the path, _iff_
39966# second argument (suffix to remove) is given
39967basnam(){
39968 case ${D}# in
39969 1)
39970 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
39971 ;;
39972 2)
39973 echo ${D}1 | sed 's/'${D}2'${D}//'
39974 ;;
39975 *)
39976 echo "error in basnam ${D}*"
39977 exit 8
39978 ;;
39979 esac
39980}
39981
39982# Cleanup temporary files and output
39983CleanUp() {
39984 cd ${D}curDir
39985 for i in ${D}inputFiles ; do
39986 case ${D}i in
39987 *!)
39988 rm -rf \`basnam ${D}i !\`
39989 ;;
39990 *)
39991 ;;
39992 esac
39993 done
39994
39995 # Kill result in case of failure as there is just to many stupid make/nmake
39996 # things out there which doesn't do this.
39997 if ${D}# -eq 0 ; then
39998 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39999 fi
40000}
40001
40002# Print usage and exit script with rc=1.
40003PrintHelp() {
40004 echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name'
40005 echo ' -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"'
40006 echo ' -ord[inals] -exclude "symbol(s)"'
40007 echo ' -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]'
40008 echo ' *.o *.a'
40009 echo '*> "output_file" should have no extension.'
40010 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
40011 echo ' The import library name is derived from this and is set to "name".a,'
40012 echo ' unless overridden by -import'
40013 echo '*> "importlib_name" should have no extension.'
40014 echo ' If it has the .o, or .a extension, it is automatically removed.'
40015 echo ' This name is used as the import library name and may be longer and'
40016 echo ' more descriptive than the DLL name which has to follow the old '
40017 echo ' 8.3 convention of FAT.'
40018 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
40019 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
40020 echo ' These flags will be put at the start of GCC command line.'
40021 echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.'
40022 echo '*> -exclude defines symbols which will not be exported. You can define'
40023 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
40024 echo ' If the last character of a symbol is "*", all symbols beginning'
40025 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
40026 echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or'
40027 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
40028 echo '*> -nocrtdll switch will disable linking the library against emx''s'
40029 echo ' C runtime DLLs.'
40030 echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.'
40031 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
40032 echo ' unchanged to GCC at the end of command line.'
40033 echo '*> If you create a DLL from a library and you do not specify -o,'
40034 echo ' the basename for DLL and import library will be set to library name,'
40035 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
40036 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
40037 echo ' library will be renamed into gcc_s.a.'
40038 echo '--------'
40039 echo 'Example:'
40040 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
40041 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
40042 CleanUp
40043 exit 1
40044}
40045
40046# Execute a command.
40047# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
40048# @Uses Whatever CleanUp() uses.
40049doCommand() {
40050 echo "${D}*"
40051 eval ${D}*
40052 rcCmd=${D}?
40053
40054 if ${D}rcCmd -ne 0 ; then
40055 echo "command failed, exit code="${D}rcCmd
40056 CleanUp
40057 exit ${D}rcCmd
40058 fi
40059}
40060
40061# main routine
40062# setup globals
40063cmdLine=${D}*
40064outFile=""
40065outimpFile=""
40066inputFiles=""
40067description=""
40068CC=gcc.exe
40069CFLAGS="-s -Zcrtdll"
40070EXTRA_CFLAGS=""
40071EXPORT_BY_ORDINALS=0
40072exclude_symbols=""
40073library_flags=""
40074curDir=\`pwd\`
40075curDirS=curDir
40076case ${D}curDirS in
40077*/)
40078 ;;
40079*)
40080 curDirS=${D}{curDirS}"/"
40081 ;;
40082esac
40083# Parse commandline
40084libsToLink=0
40085while ${D}1 ; do
40086 case ${D}1 in
40087 -ord*)
40088 EXPORT_BY_ORDINALS=1;
40089 ;;
40090 -o*)
40091 shift
40092 outFile=${D}1
40093 ;;
40094 -i*)
40095 shift
40096 outimpFile=${D}1
40097 ;;
40098 -d*)
40099 shift
40100 description=${D}1
40101 ;;
40102 -f*)
40103 shift
40104 CFLAGS=${D}1
40105 ;;
40106 -c*)
40107 shift
40108 CC=${D}1
40109 ;;
40110 -h*)
40111 PrintHelp
40112 ;;
40113 -ex*)
40114 shift
40115 exclude_symbols=${D}{exclude_symbols}${D}1" "
40116 ;;
40117 -libf*)
40118 shift
40119 library_flags=${D}{library_flags}${D}1" "
40120 ;;
40121 -nocrt*)
40122 CFLAGS="-s"
40123 ;;
40124 -nolxl*)
40125 flag_USE_LXLITE=0
40126 ;;
40127 -* | /*)
40128 case ${D}1 in
40129 -L* | -l*)
40130 libsToLink=1
40131 ;;
40132 *)
40133 ;;
40134 esac
40135 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40136 ;;
40137 *)
40138 found=0;
40139 if ${D}libsToLink -ne 0 ; then
40140 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40141 else
40142 for file in ${D}1 ; do
40143 if -f ${D}file ; then
40144 inputFiles="${D}{inputFiles} ${D}file"
40145 found=1
40146 fi
40147 done
40148 if ${D}found -eq 0 ; then
40149 echo "ERROR: No file(s) found: "${D}1
40150 exit 8
40151 fi
40152 fi
40153 ;;
40154 esac
40155 shift
40156done # iterate cmdline words
40157
40158#
40159if -z "${D}inputFiles" ; then
40160 echo "dllar: no input files"
40161 PrintHelp
40162fi
40163
40164# Now extract all .o files from .a files
40165newInputFiles=""
40166for file in ${D}inputFiles ; do
40167 case ${D}file in
40168 *.a | *.lib)
40169 case ${D}file in
40170 *.a)
40171 suffix=".a"
40172 AR="ar"
40173 ;;
40174 *.lib)
40175 suffix=".lib"
40176 AR="emxomfar"
40177 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
40178 ;;
40179 *)
40180 ;;
40181 esac
40182 dirname=\`basnam ${D}file ${D}suffix\`"_%"
40183 mkdir ${D}dirname
40184 if ${D}? -ne 0 ; then
40185 echo "Failed to create subdirectory ./${D}dirname"
40186 CleanUp
40187 exit 8;
40188 fi
40189 # Append '!' to indicate archive
40190 newInputFiles="${D}newInputFiles ${D}{dirname}!"
40191 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
40192 cd ${D}curDir
40193 found=0;
40194 for subfile in ${D}dirname/*.o* ; do
40195 if -f ${D}subfile ; then
40196 found=1
40197 if -s ${D}subfile ; then
40198 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
40199 newInputFiles="${D}newInputFiles ${D}subfile"
40200 fi
40201 fi
40202 done
40203 if ${D}found -eq 0 ; then
40204 echo "WARNING: there are no files in archive \'${D}file\'"
40205 fi
40206 ;;
40207 *)
40208 newInputFiles="${D}{newInputFiles} ${D}file"
40209 ;;
40210 esac
40211done
40212inputFiles="${D}newInputFiles"
40213
40214# Output filename(s).
40215do_backup=0;
40216if -z ${D}outFile ; then
40217 do_backup=1;
40218 set outFile ${D}inputFiles; outFile=${D}2
40219fi
40220
40221# If it is an archive, remove the '!' and the '_%' suffixes
40222case ${D}outFile in
40223*_%!)
40224 outFile=\`basnam ${D}outFile _%!\`
40225 ;;
40226*)
40227 ;;
40228esac
40229case ${D}outFile in
40230*.dll)
40231 outFile=\`basnam ${D}outFile .dll\`
40232 ;;
40233*.DLL)
40234 outFile=\`basnam ${D}outFile .DLL\`
40235 ;;
40236*.o)
40237 outFile=\`basnam ${D}outFile .o\`
40238 ;;
40239*.obj)
40240 outFile=\`basnam ${D}outFile .obj\`
40241 ;;
40242*.a)
40243 outFile=\`basnam ${D}outFile .a\`
40244 ;;
40245*.lib)
40246 outFile=\`basnam ${D}outFile .lib\`
40247 ;;
40248*)
40249 ;;
40250esac
40251case ${D}outimpFile in
40252*.a)
40253 outimpFile=\`basnam ${D}outimpFile .a\`
40254 ;;
40255*.lib)
40256 outimpFile=\`basnam ${D}outimpFile .lib\`
40257 ;;
40258*)
40259 ;;
40260esac
40261if -z ${D}outimpFile ; then
40262 outimpFile=${D}outFile
40263fi
40264defFile="${D}{outFile}.def"
40265arcFile="${D}{outimpFile}.a"
40266arcFile2="${D}{outimpFile}.lib"
40267dllFile="${D}outFile"
40268# Add suffix to dllFile later, first we need a version to use as
40269# name in .def file.
40270
40271if ${D}do_backup -ne 0 ; then
40272 if -f ${D}arcFile ; then
40273 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
40274 fi
40275 if -f ${D}arcFile2 ; then
40276 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
40277 fi
40278fi
40279
40280# Extract public symbols from all the object files.
40281tmpdefFile=${D}{defFile}_%
40282rm -f ${D}tmpdefFile
40283for file in ${D}inputFiles ; do
40284 case ${D}file in
40285 *!)
40286 ;;
40287 *)
40288 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
40289 ;;
40290 esac
40291done
40292
40293# Create the def file.
40294rm -f ${D}defFile
40295echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
40296dllFile="${D}dllFile.dll"
40297if -n ${D}description ; then
40298 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
40299fi
40300echo "EXPORTS" >> ${D}defFile
40301
40302doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
40303grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
40304
40305# Checks if the export is ok or not.
40306for word in ${D}exclude_symbols; do
40307 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
40308 mv ${D}{tmpdefFile}% ${D}tmpdefFile
40309done
40310
40311
40312if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
40313 sed "=" < ${D}tmpdefFile | \
40314 sed '
40315 N
40316 : loop
40317 s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/
40318 t loop
40319 ' > ${D}{tmpdefFile}%
40320 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
40321else
40322 rm -f ${D}{tmpdefFile}%
40323fi
40324cat ${D}tmpdefFile >> ${D}defFile
40325rm -f ${D}tmpdefFile
40326
40327# Do linking, create implib, and apply lxlite.
40328gccCmdl="";
40329for file in ${D}inputFiles ; do
40330 case ${D}file in
40331 *!)
40332 ;;
40333 *)
40334 gccCmdl="${D}gccCmdl ${D}file"
40335 ;;
40336 esac
40337done
40338doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
40339touch "${D}{outFile}.dll"
40340
40341doCommand "emximp -o ${D}arcFile ${D}defFile"
40342if ${D}flag_USE_LXLITE -ne 0 ; then
40343 add_flags="";
40344 if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
40345 add_flags="-ynd"
40346 fi
40347 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
40348fi
40349doCommand "emxomf -s -l ${D}arcFile"
40350
40351# Successful exit.
40352CleanUp 1
40353exit 0
40354EOF
40355
40356 chmod +x dllar.sh
a848cd7e
SC
40357 ;;
40358
40359 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
40360 *-*-sunos4* | \
40361 *-*-osf* | \
40362 *-*-dgux5* | \
40363 *-*-sysv5* )
40364 ;;
40365
40366 *)
40367 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
40368echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
40369 { (exit 1); exit 1; }; }
40370 esac
40371
40372 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
40373 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
40374 fi
40375 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
40376 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
40377 fi
40378
40379
40380
40381
40382
40383
40384
40385
40386 USE_SOVERSION=0
40387 USE_SOVERLINUX=0
40388 USE_SOVERSOLARIS=0
40389 USE_SOSYMLINKS=0
40390 USE_MACVERSION=0
40391 SONAME_FLAG=
40392
40393 case "${BAKEFILE_HOST}" in
40394 *-*-linux* )
40395 SONAME_FLAG="-Wl,-soname,"
40396 USE_SOVERSION=1
40397 USE_SOVERLINUX=1
40398 USE_SOSYMLINKS=1
40399 ;;
40400
40401 *-*-solaris2* )
40402 SONAME_FLAG="-h "
40403 USE_SOVERSION=1
40404 USE_SOVERSOLARIS=1
40405 USE_SOSYMLINKS=1
40406 ;;
40407
40408 *-*-darwin* )
40409 USE_MACVERSION=1
40410 USE_SOVERSION=1
40411 USE_SOSYMLINKS=1
40412 ;;
40413 esac
40414
40415
40416
40417
40418
40419
40420
40421
40422
40423 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
40424echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
40425 DEPS_TRACKING=0
40426
40427 if test "x$GCC" = "xyes"; then
40428 DEPSMODE=gcc
40429 DEPS_TRACKING=1
40430 case "${BAKEFILE_HOST}" in
40431 powerpc-*-darwin* )
40432 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
40433 ;;
40434 * )
40435 DEPSFLAG_GCC="-MMD"
40436 ;;
40437 esac
40438 echo "$as_me:$LINENO: result: gcc" >&5
40439echo "${ECHO_T}gcc" >&6
40440 else
40441 echo "$as_me:$LINENO: result: none" >&5
40442echo "${ECHO_T}none" >&6
40443 fi
40444
40445 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
40446
40447D='$'
40448cat <<EOF >bk-deps
a848cd7e
SC
40449#!/bin/sh
40450
40451# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40452# script. It is used to track C/C++ files dependencies in portable way.
40453#
40454# Permission is given to use this file in any way.
40455
473276a9 40456DEPSMODE=${DEPSMODE}
a848cd7e 40457DEPSDIR=.deps
473276a9 40458DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 40459
473276a9 40460mkdir -p ${D}DEPSDIR
a848cd7e 40461
473276a9
VS
40462if test ${D}DEPSMODE = gcc ; then
40463 ${D}* ${D}{DEPSFLAG_GCC}
40464 status=${D}?
40465 if test ${D}{status} != 0 ; then
40466 exit ${D}{status}
a848cd7e
SC
40467 fi
40468 # move created file to the location we want it in:
473276a9
VS
40469 while test ${D}# -gt 0; do
40470 case "${D}1" in
a848cd7e
SC
40471 -o )
40472 shift
473276a9 40473 objfile=${D}1
a848cd7e
SC
40474 ;;
40475 -* )
40476 ;;
40477 * )
473276a9 40478 srcfile=${D}1
a848cd7e
SC
40479 ;;
40480 esac
40481 shift
40482 done
473276a9
VS
40483 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
40484 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
40485 if test -f ${D}depfile ; then
40486 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40487 rm -f ${D}depfile
a848cd7e 40488 else
473276a9
VS
40489 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
40490 if test -f ${D}depfile ; then
40491 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40492 rm -f ${D}depfile
a848cd7e
SC
40493 fi
40494 fi
40495 exit 0
40496else
473276a9
VS
40497 ${D}*
40498 exit ${D}?
a848cd7e
SC
40499fi
40500EOF
473276a9 40501
a848cd7e
SC
40502 chmod +x bk-deps
40503 fi
40504
40505
40506
40507
40508 RESCOMP=
40509 SETFILE=
40510
40511 case ${BAKEFILE_HOST} in
40512 *-*-cygwin* | *-*-mingw32* )
40513 if test "$build" != "$host" ; then
40514 RESCOMP=$host_alias-windres
40515 else
40516 # Extract the first word of "windres", so it can be a program name with args.
40517set dummy windres; ac_word=$2
40518echo "$as_me:$LINENO: checking for $ac_word" >&5
40519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40520if test "${ac_cv_prog_RESCOMP+set}" = set; then
40521 echo $ECHO_N "(cached) $ECHO_C" >&6
40522else
40523 if test -n "$RESCOMP"; then
40524 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40525else
40526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40527for as_dir in $PATH
40528do
40529 IFS=$as_save_IFS
40530 test -z "$as_dir" && as_dir=.
40531 for ac_exec_ext in '' $ac_executable_extensions; do
40532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40533 ac_cv_prog_RESCOMP="windres"
40534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40535 break 2
40536 fi
40537done
40538done
40539
40540 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
40541fi
40542fi
40543RESCOMP=$ac_cv_prog_RESCOMP
40544if test -n "$RESCOMP"; then
40545 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40546echo "${ECHO_T}$RESCOMP" >&6
40547else
40548 echo "$as_me:$LINENO: result: no" >&5
40549echo "${ECHO_T}no" >&6
40550fi
40551
40552 fi
40553 ;;
40554
40555 *-*-darwin* )
40556 # Extract the first word of "Rez", so it can be a program name with args.
40557set dummy Rez; ac_word=$2
40558echo "$as_me:$LINENO: checking for $ac_word" >&5
40559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40560if test "${ac_cv_prog_RESCOMP+set}" = set; then
40561 echo $ECHO_N "(cached) $ECHO_C" >&6
40562else
40563 if test -n "$RESCOMP"; then
40564 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40565else
40566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40567for as_dir in $PATH
40568do
40569 IFS=$as_save_IFS
40570 test -z "$as_dir" && as_dir=.
40571 for ac_exec_ext in '' $ac_executable_extensions; do
40572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40573 ac_cv_prog_RESCOMP="Rez"
40574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40575 break 2
40576 fi
40577done
40578done
40579
40580 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
40581fi
40582fi
40583RESCOMP=$ac_cv_prog_RESCOMP
40584if test -n "$RESCOMP"; then
40585 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40586echo "${ECHO_T}$RESCOMP" >&6
40587else
40588 echo "$as_me:$LINENO: result: no" >&5
40589echo "${ECHO_T}no" >&6
40590fi
40591
40592 # Extract the first word of "SetFile", so it can be a program name with args.
40593set dummy SetFile; ac_word=$2
40594echo "$as_me:$LINENO: checking for $ac_word" >&5
40595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40596if test "${ac_cv_prog_SETFILE+set}" = set; then
40597 echo $ECHO_N "(cached) $ECHO_C" >&6
40598else
40599 if test -n "$SETFILE"; then
40600 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
40601else
40602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40603for as_dir in $PATH
40604do
40605 IFS=$as_save_IFS
40606 test -z "$as_dir" && as_dir=.
40607 for ac_exec_ext in '' $ac_executable_extensions; do
40608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40609 ac_cv_prog_SETFILE="SetFile"
40610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40611 break 2
40612 fi
40613done
40614done
40615
40616 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
40617fi
40618fi
40619SETFILE=$ac_cv_prog_SETFILE
40620if test -n "$SETFILE"; then
40621 echo "$as_me:$LINENO: result: $SETFILE" >&5
40622echo "${ECHO_T}$SETFILE" >&6
40623else
40624 echo "$as_me:$LINENO: result: no" >&5
40625echo "${ECHO_T}no" >&6
40626fi
40627
40628 ;;
40629 esac
40630
40631
40632
40633
40634
40635
dcc1b6ad 40636
4842cc59
DE
40637
40638
e835546c 40639BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
dcc1b6ad 40640
a848cd7e 40641
646b6ec1 40642
a848cd7e
SC
40643 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40644if test "${enable_precomp_headers+set}" = set; then
40645 enableval="$enable_precomp_headers"
40646 bk_use_pch="$enableval"
40647fi;
40648
40649 GCC_PCH=0
40650
40651 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40652 if test "x$GCC" = "xyes"; then
40653 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40654echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40655 cat >conftest.$ac_ext <<_ACEOF
40656/* confdefs.h. */
40657_ACEOF
40658cat confdefs.h >>conftest.$ac_ext
40659cat >>conftest.$ac_ext <<_ACEOF
40660/* end confdefs.h. */
40661
40662int
40663main ()
40664{
40665
40666 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40667 #error "no pch support"
40668 #endif
40669 #if (__GNUC__ < 3)
40670 #error "no pch support"
40671 #endif
40672 #if (__GNUC__ == 3) && \
40673 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40674 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40675 #error "no pch support"
40676 #endif
40677
40678 ;
40679 return 0;
40680}
40681_ACEOF
40682rm -f conftest.$ac_objext
40683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40684 (eval $ac_compile) 2>conftest.er1
a848cd7e 40685 ac_status=$?
ac1cb8d3
VS
40686 grep -v '^ *+' conftest.er1 >conftest.err
40687 rm -f conftest.er1
40688 cat conftest.err >&5
a848cd7e
SC
40689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40690 (exit $ac_status); } &&
ac1cb8d3
VS
40691 { ac_try='test -z "$ac_c_werror_flag"
40692 || test ! -s conftest.err'
40693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40694 (eval $ac_try) 2>&5
40695 ac_status=$?
40696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40697 (exit $ac_status); }; } &&
40698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40700 (eval $ac_try) 2>&5
40701 ac_status=$?
40702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703 (exit $ac_status); }; }; then
40704
40705 echo "$as_me:$LINENO: result: yes" >&5
40706echo "${ECHO_T}yes" >&6
40707 CPPFLAGS="-fpch-deps $CPPFLAGS"
40708 GCC_PCH=1
40709
40710else
40711 echo "$as_me: failed program was:" >&5
40712sed 's/^/| /' conftest.$ac_ext >&5
40713
40714
40715 echo "$as_me:$LINENO: result: no" >&5
40716echo "${ECHO_T}no" >&6
40717
40718fi
ac1cb8d3 40719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40720 if test $GCC_PCH = 1 ; then
40721 cat <<EOF >bk-make-pch
40722#!/bin/sh
40723
40724# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40725# script. It is used to generated precompiled headers.
40726#
40727# Permission is given to use this file in any way.
40728
40729outfile="\${1}"
40730header="\${2}"
40731shift
40732shift
40733
40734compiler=
40735headerfile=
40736while test \${#} -gt 0; do
40737 case "\${1}" in
40738 -I* )
40739 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40740 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40741 headerfile="\${incdir}/\${header}"
40742 fi
40743 ;;
40744 esac
40745 compiler="\${compiler} \${1}"
40746 shift
40747done
40748
40749if test "x\${headerfile}" = "x" ; then
40750 echo "error: can't find header \${header} in include paths" >2
40751else
40752 if test -f \${outfile} ; then
40753 rm -f \${outfile}
40754 else
40755 mkdir -p \`dirname \${outfile}\`
40756 fi
40757 depsfile=".deps/\`basename \${outfile}\`.d"
40758 mkdir -p .deps
40759 # can do this because gcc is >= 3.4:
40760 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40761 exit \${?}
40762fi
40763EOF
40764 chmod +x bk-make-pch
40765 fi
40766 fi
40767 fi
40768
40769
40770
40771
40772
dcc1b6ad
VS
40773
40774
40775 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40776if test "${enable_precomp_headers+set}" = set; then
40777 enableval="$enable_precomp_headers"
40778 bk_use_pch="$enableval"
40779fi;
40780
40781 GCC_PCH=0
40782
40783 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40784 if test "x$GCC" = "xyes"; then
40785 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40786echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40787 cat >conftest.$ac_ext <<_ACEOF
40788/* confdefs.h. */
40789_ACEOF
40790cat confdefs.h >>conftest.$ac_ext
40791cat >>conftest.$ac_ext <<_ACEOF
40792/* end confdefs.h. */
40793
40794int
40795main ()
40796{
40797
40798 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40799 #error "no pch support"
40800 #endif
40801 #if (__GNUC__ < 3)
40802 #error "no pch support"
40803 #endif
40804 #if (__GNUC__ == 3) && \
40805 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40806 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40807 #error "no pch support"
40808 #endif
40809
40810 ;
40811 return 0;
40812}
40813_ACEOF
40814rm -f conftest.$ac_objext
40815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40816 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 40817 ac_status=$?
ac1cb8d3
VS
40818 grep -v '^ *+' conftest.er1 >conftest.err
40819 rm -f conftest.er1
40820 cat conftest.err >&5
dcc1b6ad
VS
40821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40822 (exit $ac_status); } &&
ac1cb8d3
VS
40823 { ac_try='test -z "$ac_c_werror_flag"
40824 || test ! -s conftest.err'
40825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40826 (eval $ac_try) 2>&5
40827 ac_status=$?
40828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40829 (exit $ac_status); }; } &&
40830 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
40831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40832 (eval $ac_try) 2>&5
40833 ac_status=$?
40834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40835 (exit $ac_status); }; }; then
40836
40837 echo "$as_me:$LINENO: result: yes" >&5
40838echo "${ECHO_T}yes" >&6
40839 CPPFLAGS="-fpch-deps $CPPFLAGS"
40840 GCC_PCH=1
40841
40842else
40843 echo "$as_me: failed program was:" >&5
40844sed 's/^/| /' conftest.$ac_ext >&5
40845
40846
40847 echo "$as_me:$LINENO: result: no" >&5
40848echo "${ECHO_T}no" >&6
40849
40850fi
ac1cb8d3 40851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
40852 if test $GCC_PCH = 1 ; then
40853 cat <<EOF >bk-make-pch
40854#!/bin/sh
40855
40856# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40857# script. It is used to generated precompiled headers.
40858#
40859# Permission is given to use this file in any way.
40860
40861outfile="\${1}"
40862header="\${2}"
40863shift
40864shift
40865
40866compiler=
40867headerfile=
40868while test \${#} -gt 0; do
40869 case "\${1}" in
40870 -I* )
40871 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40872 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40873 headerfile="\${incdir}/\${header}"
40874 fi
40875 ;;
40876 esac
40877 compiler="\${compiler} \${1}"
40878 shift
40879done
40880
40881if test "x\${headerfile}" = "x" ; then
40882 echo "error: can't find header \${header} in include paths" >2
40883else
40884 if test -f \${outfile} ; then
40885 rm -f \${outfile}
40886 else
40887 mkdir -p \`dirname \${outfile}\`
40888 fi
40889 depsfile=".deps/\`basename \${outfile}\`.d"
40890 mkdir -p .deps
40891 # can do this because gcc is >= 3.4:
40892 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40893 exit \${?}
40894fi
40895EOF
40896 chmod +x bk-make-pch
40897 fi
40898 fi
40899 fi
40900
40901
40902
40903
a848cd7e
SC
40904 COND_BUILD_DEBUG="#"
40905 if test "x$BUILD" = "xdebug" ; then
40906 COND_BUILD_DEBUG=""
40907 fi
40908
40909 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40910 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40911 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40912 fi
40913
40914 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40915 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40916 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40917 fi
40918
40919 COND_BUILD_DEBUG_UNICODE_0="#"
40920 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40921 COND_BUILD_DEBUG_UNICODE_0=""
40922 fi
40923
40924 COND_BUILD_DEBUG_UNICODE_1="#"
40925 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40926 COND_BUILD_DEBUG_UNICODE_1=""
40927 fi
40928
40929 COND_BUILD_RELEASE="#"
40930 if test "x$BUILD" = "xrelease" ; then
40931 COND_BUILD_RELEASE=""
40932 fi
40933
40934 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40935 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40936 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40937 fi
40938
40939 COND_BUILD_RELEASE_UNICODE_0="#"
40940 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40941 COND_BUILD_RELEASE_UNICODE_0=""
40942 fi
40943
40944 COND_BUILD_RELEASE_UNICODE_1="#"
40945 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40946 COND_BUILD_RELEASE_UNICODE_1=""
40947 fi
40948
40949 COND_DEBUG_FLAG_1="#"
40950 if test "x$DEBUG_FLAG" = "x1" ; then
40951 COND_DEBUG_FLAG_1=""
40952 fi
40953
40954 COND_DEBUG_INFO_0="#"
40955 if test "x$DEBUG_INFO" = "x0" ; then
40956 COND_DEBUG_INFO_0=""
40957 fi
40958
40959 COND_DEBUG_INFO_1="#"
40960 if test "x$DEBUG_INFO" = "x1" ; then
40961 COND_DEBUG_INFO_1=""
40962 fi
40963
40964 COND_DEPS_TRACKING_0="#"
40965 if test "x$DEPS_TRACKING" = "x0" ; then
40966 COND_DEPS_TRACKING_0=""
40967 fi
40968
40969 COND_DEPS_TRACKING_1="#"
40970 if test "x$DEPS_TRACKING" = "x1" ; then
40971 COND_DEPS_TRACKING_1=""
40972 fi
40973
40974 COND_GCC_PCH_1="#"
40975 if test "x$GCC_PCH" = "x1" ; then
40976 COND_GCC_PCH_1=""
40977 fi
40978
40979 COND_MONOLITHIC_0="#"
40980 if test "x$MONOLITHIC" = "x0" ; then
40981 COND_MONOLITHIC_0=""
40982 fi
40983
40984 COND_MONOLITHIC_0_SHARED_0="#"
40985 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40986 COND_MONOLITHIC_0_SHARED_0=""
40987 fi
40988
40989 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40990 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40991 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40992 fi
40993
40994 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40995 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40996 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40997 fi
40998
40999 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
41000 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
41001 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
41002 fi
41003
41004 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
41005 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
41006 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
41007 fi
41008
41009 COND_MONOLITHIC_0_SHARED_1="#"
41010 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
41011 COND_MONOLITHIC_0_SHARED_1=""
41012 fi
41013
41014 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
41015 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
41016 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
41017 fi
41018
41019 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
41020 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41021 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
41022 fi
41023
41024 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
41025 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
41026 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
41027 fi
41028
41029 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
41030 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
41031 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
41032 fi
41033
41034 COND_MONOLITHIC_0_USE_ODBC_1="#"
41035 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
41036 COND_MONOLITHIC_0_USE_ODBC_1=""
41037 fi
41038
41039 COND_MONOLITHIC_1="#"
41040 if test "x$MONOLITHIC" = "x1" ; then
41041 COND_MONOLITHIC_1=""
41042 fi
41043
41044 COND_MONOLITHIC_1_SHARED_0="#"
41045 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
41046 COND_MONOLITHIC_1_SHARED_0=""
41047 fi
41048
41049 COND_MONOLITHIC_1_SHARED_1="#"
41050 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
41051 COND_MONOLITHIC_1_SHARED_1=""
41052 fi
41053
41054 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
41055 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
41056 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
41057 fi
41058
41059 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
41060 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
41061 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
41062 fi
41063
41064 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
41065 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41066 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41067 fi
41068
41069 COND_PLATFORM_MACOSX_1="#"
41070 if test "x$PLATFORM_MACOSX" = "x1" ; then
41071 COND_PLATFORM_MACOSX_1=""
41072 fi
41073
41074 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41075 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41076 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41077 fi
41078
41079 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41080 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41081 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41082 fi
41083
41084 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41085 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41086 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41087 fi
41088
41089 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41090 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41091 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41092 fi
41093
41094 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41095 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41096 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41097 fi
41098
41099 COND_PLATFORM_MAC_1="#"
41100 if test "x$PLATFORM_MAC" = "x1" ; then
41101 COND_PLATFORM_MAC_1=""
41102 fi
41103
41104 COND_PLATFORM_OS2_1="#"
41105 if test "x$PLATFORM_OS2" = "x1" ; then
41106 COND_PLATFORM_OS2_1=""
41107 fi
41108
41109 COND_PLATFORM_UNIX_0="#"
41110 if test "x$PLATFORM_UNIX" = "x0" ; then
41111 COND_PLATFORM_UNIX_0=""
41112 fi
41113
41114 COND_PLATFORM_UNIX_1="#"
41115 if test "x$PLATFORM_UNIX" = "x1" ; then
41116 COND_PLATFORM_UNIX_1=""
41117 fi
41118
41119 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41120 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41121 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41122 fi
41123
41124 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41125 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41126 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41127 fi
41128
41129 COND_PLATFORM_WIN32_0="#"
41130 if test "x$PLATFORM_WIN32" = "x0" ; then
41131 COND_PLATFORM_WIN32_0=""
41132 fi
41133
41134 COND_PLATFORM_WIN32_1="#"
41135 if test "x$PLATFORM_WIN32" = "x1" ; then
41136 COND_PLATFORM_WIN32_1=""
41137 fi
41138
41139 COND_SHARED_0="#"
41140 if test "x$SHARED" = "x0" ; then
41141 COND_SHARED_0=""
41142 fi
41143
41144 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41145 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41146 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41147 fi
41148
41149 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41150 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41151 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41152 fi
41153
41154 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41155 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41156 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41157 fi
41158
41159 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41160 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41161 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41162 fi
41163
41164 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41165 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41166 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41167 fi
41168
41169 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41170 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41171 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41172 fi
41173
41174 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41175 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41176 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41177 fi
41178
41179 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41180 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41181 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41182 fi
41183
41184 COND_SHARED_1="#"
41185 if test "x$SHARED" = "x1" ; then
41186 COND_SHARED_1=""
41187 fi
41188
41189 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41190 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41191 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41192 fi
41193
41194 COND_TOOLKIT_COCOA="#"
41195 if test "x$TOOLKIT" = "xCOCOA" ; then
41196 COND_TOOLKIT_COCOA=""
41197 fi
41198
41199 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41200 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41201 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41202 fi
41203
41204 COND_TOOLKIT_GTK="#"
41205 if test "x$TOOLKIT" = "xGTK" ; then
41206 COND_TOOLKIT_GTK=""
41207 fi
41208
41209 COND_TOOLKIT_GTK_USE_GUI_1="#"
41210 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41211 COND_TOOLKIT_GTK_USE_GUI_1=""
41212 fi
41213
41214 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41215 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41216 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41217 fi
41218
41219 COND_TOOLKIT_MAC="#"
41220 if test "x$TOOLKIT" = "xMAC" ; then
41221 COND_TOOLKIT_MAC=""
41222 fi
41223
41224 COND_TOOLKIT_MAC_USE_GUI_1="#"
41225 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41226 COND_TOOLKIT_MAC_USE_GUI_1=""
41227 fi
41228
41229 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41230 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41231 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41232 fi
41233
e835546c
DE
41234 COND_TOOLKIT_MAC_WXUNIV_0="#"
41235 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41236 COND_TOOLKIT_MAC_WXUNIV_0=""
41237 fi
41238
a848cd7e
SC
41239 COND_TOOLKIT_MGL="#"
41240 if test "x$TOOLKIT" = "xMGL" ; then
41241 COND_TOOLKIT_MGL=""
41242 fi
41243
41244 COND_TOOLKIT_MGL_USE_GUI_1="#"
41245 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41246 COND_TOOLKIT_MGL_USE_GUI_1=""
41247 fi
41248
41249 COND_TOOLKIT_MOTIF="#"
41250 if test "x$TOOLKIT" = "xMOTIF" ; then
41251 COND_TOOLKIT_MOTIF=""
41252 fi
41253
41254 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41255 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41256 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41257 fi
41258
41259 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41260 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41261 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41262 fi
41263
41264 COND_TOOLKIT_MSW="#"
41265 if test "x$TOOLKIT" = "xMSW" ; then
41266 COND_TOOLKIT_MSW=""
41267 fi
41268
41269 COND_TOOLKIT_MSW_USE_GUI_1="#"
41270 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41271 COND_TOOLKIT_MSW_USE_GUI_1=""
41272 fi
41273
41274 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41275 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41276 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41277 fi
41278
e835546c
DE
41279 COND_TOOLKIT_MSW_WXUNIV_0="#"
41280 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41281 COND_TOOLKIT_MSW_WXUNIV_0=""
41282 fi
41283
a848cd7e
SC
41284 COND_TOOLKIT_PM="#"
41285 if test "x$TOOLKIT" = "xPM" ; then
41286 COND_TOOLKIT_PM=""
41287 fi
41288
41289 COND_TOOLKIT_PM_USE_GUI_1="#"
41290 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41291 COND_TOOLKIT_PM_USE_GUI_1=""
41292 fi
41293
41294 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41295 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41296 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41297 fi
41298
e835546c
DE
41299 COND_TOOLKIT_PM_WXUNIV_0="#"
41300 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41301 COND_TOOLKIT_PM_WXUNIV_0=""
41302 fi
41303
3fd9c298
DE
41304 COND_TOOLKIT_WINCE="#"
41305 if test "x$TOOLKIT" = "xWINCE" ; then
41306 COND_TOOLKIT_WINCE=""
41307 fi
41308
41309 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41310 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41311 COND_TOOLKIT_WINCE_USE_GUI_1=""
41312 fi
41313
41314 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41315 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41316 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41317 fi
41318
a848cd7e
SC
41319 COND_TOOLKIT_X11="#"
41320 if test "x$TOOLKIT" = "xX11" ; then
41321 COND_TOOLKIT_X11=""
41322 fi
41323
41324 COND_TOOLKIT_X11_USE_GUI_1="#"
41325 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41326 COND_TOOLKIT_X11_USE_GUI_1=""
41327 fi
41328
41329 COND_UNICODE_1="#"
41330 if test "x$UNICODE" = "x1" ; then
41331 COND_UNICODE_1=""
41332 fi
41333
41334 COND_USE_EXCEPTIONS_0="#"
41335 if test "x$USE_EXCEPTIONS" = "x0" ; then
41336 COND_USE_EXCEPTIONS_0=""
41337 fi
41338
41339 COND_USE_EXCEPTIONS_1="#"
41340 if test "x$USE_EXCEPTIONS" = "x1" ; then
41341 COND_USE_EXCEPTIONS_1=""
41342 fi
41343
41344 COND_USE_GUI_0="#"
41345 if test "x$USE_GUI" = "x0" ; then
41346 COND_USE_GUI_0=""
41347 fi
41348
41349 COND_USE_GUI_1="#"
41350 if test "x$USE_GUI" = "x1" ; then
41351 COND_USE_GUI_1=""
41352 fi
41353
41354 COND_USE_GUI_1_WXUNIV_0="#"
41355 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41356 COND_USE_GUI_1_WXUNIV_0=""
41357 fi
41358
41359 COND_USE_GUI_1_WXUNIV_1="#"
41360 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41361 COND_USE_GUI_1_WXUNIV_1=""
41362 fi
41363
41364 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41365 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41366 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41367 fi
41368
41369 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41370 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41371 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41372 fi
41373
41374 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41375 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41376 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41377 fi
41378
41379 COND_USE_ODBC_1="#"
41380 if test "x$USE_ODBC" = "x1" ; then
41381 COND_USE_ODBC_1=""
41382 fi
41383
41384 COND_USE_PLUGINS_0="#"
41385 if test "x$USE_PLUGINS" = "x0" ; then
41386 COND_USE_PLUGINS_0=""
41387 fi
41388
41389 COND_USE_SOSYMLINKS_1="#"
41390 if test "x$USE_SOSYMLINKS" = "x1" ; then
41391 COND_USE_SOSYMLINKS_1=""
41392 fi
41393
41394 COND_USE_SOVERLINUX_1="#"
41395 if test "x$USE_SOVERLINUX" = "x1" ; then
41396 COND_USE_SOVERLINUX_1=""
41397 fi
41398
41399 COND_USE_SOVERSION_0="#"
41400 if test "x$USE_SOVERSION" = "x0" ; then
41401 COND_USE_SOVERSION_0=""
41402 fi
41403
41404 COND_USE_SOVERSOLARIS_1="#"
41405 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41406 COND_USE_SOVERSOLARIS_1=""
41407 fi
41408
41409 COND_WITH_PLUGIN_SDL_1="#"
41410 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41411 COND_WITH_PLUGIN_SDL_1=""
41412 fi
41413
41414 COND_WITH_SDL_1="#"
41415 if test "x$WITH_SDL" = "x1" ; then
41416 COND_WITH_SDL_1=""
41417 fi
41418
41419 COND_WXUNIV_1="#"
41420 if test "x$WXUNIV" = "x1" ; then
41421 COND_WXUNIV_1=""
41422 fi
41423
41424 COND_WXUSE_EXPAT_BUILTIN="#"
41425 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41426 COND_WXUSE_EXPAT_BUILTIN=""
41427 fi
41428
41429 COND_WXUSE_LIBJPEG_BUILTIN="#"
41430 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41431 COND_WXUSE_LIBJPEG_BUILTIN=""
41432 fi
41433
41434 COND_WXUSE_LIBPNG_BUILTIN="#"
41435 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41436 COND_WXUSE_LIBPNG_BUILTIN=""
41437 fi
41438
41439 COND_WXUSE_LIBTIFF_BUILTIN="#"
41440 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41441 COND_WXUSE_LIBTIFF_BUILTIN=""
41442 fi
41443
41444 COND_WXUSE_ODBC_BUILTIN="#"
41445 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41446 COND_WXUSE_ODBC_BUILTIN=""
41447 fi
41448
41449 COND_WXUSE_REGEX_BUILTIN="#"
41450 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41451 COND_WXUSE_REGEX_BUILTIN=""
41452 fi
41453
41454 COND_WXUSE_ZLIB_BUILTIN="#"
41455 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41456 COND_WXUSE_ZLIB_BUILTIN=""
41457 fi
41458
dcc1b6ad
VS
41459 COND_BUILD_DEBUG="#"
41460 if test "x$BUILD" = "xdebug" ; then
41461 COND_BUILD_DEBUG=""
41462 fi
41463
41464 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
41465 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
41466 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
41467 fi
41468
41469 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
41470 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
41471 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
41472 fi
41473
41474 COND_BUILD_DEBUG_UNICODE_0="#"
41475 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
41476 COND_BUILD_DEBUG_UNICODE_0=""
41477 fi
41478
41479 COND_BUILD_DEBUG_UNICODE_1="#"
41480 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
41481 COND_BUILD_DEBUG_UNICODE_1=""
41482 fi
41483
41484 COND_BUILD_RELEASE="#"
41485 if test "x$BUILD" = "xrelease" ; then
41486 COND_BUILD_RELEASE=""
41487 fi
41488
41489 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
41490 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
41491 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
41492 fi
41493
41494 COND_BUILD_RELEASE_UNICODE_0="#"
41495 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
41496 COND_BUILD_RELEASE_UNICODE_0=""
41497 fi
41498
41499 COND_BUILD_RELEASE_UNICODE_1="#"
41500 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
41501 COND_BUILD_RELEASE_UNICODE_1=""
41502 fi
41503
41504 COND_DEBUG_FLAG_1="#"
41505 if test "x$DEBUG_FLAG" = "x1" ; then
41506 COND_DEBUG_FLAG_1=""
41507 fi
41508
41509 COND_DEBUG_INFO_0="#"
41510 if test "x$DEBUG_INFO" = "x0" ; then
41511 COND_DEBUG_INFO_0=""
41512 fi
41513
41514 COND_DEBUG_INFO_1="#"
41515 if test "x$DEBUG_INFO" = "x1" ; then
41516 COND_DEBUG_INFO_1=""
41517 fi
41518
41519 COND_DEPS_TRACKING_0="#"
41520 if test "x$DEPS_TRACKING" = "x0" ; then
41521 COND_DEPS_TRACKING_0=""
41522 fi
41523
41524 COND_DEPS_TRACKING_1="#"
41525 if test "x$DEPS_TRACKING" = "x1" ; then
41526 COND_DEPS_TRACKING_1=""
41527 fi
41528
41529 COND_GCC_PCH_1="#"
41530 if test "x$GCC_PCH" = "x1" ; then
41531 COND_GCC_PCH_1=""
41532 fi
41533
41534 COND_MONOLITHIC_0="#"
41535 if test "x$MONOLITHIC" = "x0" ; then
41536 COND_MONOLITHIC_0=""
41537 fi
41538
41539 COND_MONOLITHIC_0_SHARED_0="#"
41540 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
41541 COND_MONOLITHIC_0_SHARED_0=""
41542 fi
41543
41544 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
41545 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
41546 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
41547 fi
41548
41549 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
41550 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41551 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
41552 fi
41553
41554 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
41555 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
41556 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
41557 fi
41558
41559 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
41560 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
41561 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
41562 fi
41563
41564 COND_MONOLITHIC_0_SHARED_1="#"
41565 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
41566 COND_MONOLITHIC_0_SHARED_1=""
41567 fi
41568
41569 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
41570 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
41571 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
41572 fi
41573
41574 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
41575 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41576 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
41577 fi
41578
41579 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
41580 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
41581 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
41582 fi
41583
41584 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
41585 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
41586 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
41587 fi
41588
41589 COND_MONOLITHIC_0_USE_ODBC_1="#"
41590 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
41591 COND_MONOLITHIC_0_USE_ODBC_1=""
41592 fi
41593
41594 COND_MONOLITHIC_1="#"
41595 if test "x$MONOLITHIC" = "x1" ; then
41596 COND_MONOLITHIC_1=""
41597 fi
41598
41599 COND_MONOLITHIC_1_SHARED_0="#"
41600 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
41601 COND_MONOLITHIC_1_SHARED_0=""
41602 fi
41603
41604 COND_MONOLITHIC_1_SHARED_1="#"
41605 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
41606 COND_MONOLITHIC_1_SHARED_1=""
41607 fi
41608
41609 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
41610 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
41611 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
41612 fi
41613
41614 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
41615 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
41616 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
41617 fi
41618
41619 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
41620 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41621 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41622 fi
41623
41624 COND_PLATFORM_MACOSX_1="#"
41625 if test "x$PLATFORM_MACOSX" = "x1" ; then
41626 COND_PLATFORM_MACOSX_1=""
41627 fi
41628
41629 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41630 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41631 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41632 fi
41633
41634 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41635 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41636 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41637 fi
41638
41639 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41640 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41641 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41642 fi
41643
41644 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41645 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41646 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41647 fi
41648
41649 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41650 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41651 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41652 fi
41653
41654 COND_PLATFORM_MAC_1="#"
41655 if test "x$PLATFORM_MAC" = "x1" ; then
41656 COND_PLATFORM_MAC_1=""
41657 fi
41658
41659 COND_PLATFORM_OS2_1="#"
41660 if test "x$PLATFORM_OS2" = "x1" ; then
41661 COND_PLATFORM_OS2_1=""
41662 fi
41663
41664 COND_PLATFORM_UNIX_0="#"
41665 if test "x$PLATFORM_UNIX" = "x0" ; then
41666 COND_PLATFORM_UNIX_0=""
41667 fi
41668
41669 COND_PLATFORM_UNIX_1="#"
41670 if test "x$PLATFORM_UNIX" = "x1" ; then
41671 COND_PLATFORM_UNIX_1=""
41672 fi
41673
41674 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41675 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41676 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41677 fi
41678
41679 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41680 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41681 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41682 fi
41683
41684 COND_PLATFORM_WIN32_0="#"
41685 if test "x$PLATFORM_WIN32" = "x0" ; then
41686 COND_PLATFORM_WIN32_0=""
41687 fi
41688
41689 COND_PLATFORM_WIN32_1="#"
41690 if test "x$PLATFORM_WIN32" = "x1" ; then
41691 COND_PLATFORM_WIN32_1=""
41692 fi
41693
41694 COND_SHARED_0="#"
41695 if test "x$SHARED" = "x0" ; then
41696 COND_SHARED_0=""
41697 fi
41698
41699 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41700 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41701 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41702 fi
41703
41704 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41705 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41706 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41707 fi
41708
41709 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41710 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41711 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41712 fi
41713
41714 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41715 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41716 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41717 fi
41718
41719 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41720 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41721 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41722 fi
41723
41724 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41725 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41726 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41727 fi
41728
41729 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41730 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41731 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41732 fi
41733
41734 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41735 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41736 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41737 fi
41738
41739 COND_SHARED_1="#"
41740 if test "x$SHARED" = "x1" ; then
41741 COND_SHARED_1=""
41742 fi
41743
41744 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41745 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41746 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41747 fi
41748
41749 COND_TOOLKIT_COCOA="#"
41750 if test "x$TOOLKIT" = "xCOCOA" ; then
41751 COND_TOOLKIT_COCOA=""
41752 fi
41753
41754 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41755 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41756 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41757 fi
41758
41759 COND_TOOLKIT_GTK="#"
41760 if test "x$TOOLKIT" = "xGTK" ; then
41761 COND_TOOLKIT_GTK=""
41762 fi
41763
41764 COND_TOOLKIT_GTK_USE_GUI_1="#"
41765 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41766 COND_TOOLKIT_GTK_USE_GUI_1=""
41767 fi
41768
41769 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41770 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41771 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41772 fi
41773
41774 COND_TOOLKIT_MAC="#"
41775 if test "x$TOOLKIT" = "xMAC" ; then
41776 COND_TOOLKIT_MAC=""
41777 fi
41778
41779 COND_TOOLKIT_MAC_USE_GUI_1="#"
41780 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41781 COND_TOOLKIT_MAC_USE_GUI_1=""
41782 fi
41783
41784 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41785 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41786 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41787 fi
41788
41789 COND_TOOLKIT_MGL="#"
41790 if test "x$TOOLKIT" = "xMGL" ; then
41791 COND_TOOLKIT_MGL=""
41792 fi
41793
41794 COND_TOOLKIT_MGL_USE_GUI_1="#"
41795 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41796 COND_TOOLKIT_MGL_USE_GUI_1=""
41797 fi
41798
41799 COND_TOOLKIT_MOTIF="#"
41800 if test "x$TOOLKIT" = "xMOTIF" ; then
41801 COND_TOOLKIT_MOTIF=""
41802 fi
41803
41804 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41805 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41806 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41807 fi
41808
41809 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41810 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41811 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41812 fi
41813
41814 COND_TOOLKIT_MSW="#"
41815 if test "x$TOOLKIT" = "xMSW" ; then
41816 COND_TOOLKIT_MSW=""
41817 fi
41818
41819 COND_TOOLKIT_MSW_USE_GUI_1="#"
41820 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41821 COND_TOOLKIT_MSW_USE_GUI_1=""
41822 fi
41823
41824 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41825 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41826 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41827 fi
41828
41829 COND_TOOLKIT_PM="#"
41830 if test "x$TOOLKIT" = "xPM" ; then
41831 COND_TOOLKIT_PM=""
41832 fi
41833
41834 COND_TOOLKIT_PM_USE_GUI_1="#"
41835 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41836 COND_TOOLKIT_PM_USE_GUI_1=""
41837 fi
41838
41839 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41840 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41841 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41842 fi
41843
41844 COND_TOOLKIT_WINCE="#"
41845 if test "x$TOOLKIT" = "xWINCE" ; then
41846 COND_TOOLKIT_WINCE=""
41847 fi
41848
41849 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41850 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41851 COND_TOOLKIT_WINCE_USE_GUI_1=""
41852 fi
41853
41854 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41855 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41856 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41857 fi
41858
41859 COND_TOOLKIT_X11="#"
41860 if test "x$TOOLKIT" = "xX11" ; then
41861 COND_TOOLKIT_X11=""
41862 fi
41863
41864 COND_TOOLKIT_X11_USE_GUI_1="#"
41865 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41866 COND_TOOLKIT_X11_USE_GUI_1=""
41867 fi
41868
41869 COND_UNICODE_1="#"
41870 if test "x$UNICODE" = "x1" ; then
41871 COND_UNICODE_1=""
41872 fi
41873
41874 COND_USE_EXCEPTIONS_0="#"
41875 if test "x$USE_EXCEPTIONS" = "x0" ; then
41876 COND_USE_EXCEPTIONS_0=""
41877 fi
41878
41879 COND_USE_EXCEPTIONS_1="#"
41880 if test "x$USE_EXCEPTIONS" = "x1" ; then
41881 COND_USE_EXCEPTIONS_1=""
41882 fi
41883
41884 COND_USE_GUI_0="#"
41885 if test "x$USE_GUI" = "x0" ; then
41886 COND_USE_GUI_0=""
41887 fi
41888
41889 COND_USE_GUI_1="#"
41890 if test "x$USE_GUI" = "x1" ; then
41891 COND_USE_GUI_1=""
41892 fi
41893
41894 COND_USE_GUI_1_WXUNIV_0="#"
41895 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41896 COND_USE_GUI_1_WXUNIV_0=""
41897 fi
41898
41899 COND_USE_GUI_1_WXUNIV_1="#"
41900 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41901 COND_USE_GUI_1_WXUNIV_1=""
41902 fi
41903
41904 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41905 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41906 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41907 fi
41908
41909 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41910 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41911 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41912 fi
41913
41914 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41915 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41916 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41917 fi
41918
41919 COND_USE_ODBC_1="#"
41920 if test "x$USE_ODBC" = "x1" ; then
41921 COND_USE_ODBC_1=""
41922 fi
41923
41924 COND_USE_PLUGINS_0="#"
41925 if test "x$USE_PLUGINS" = "x0" ; then
41926 COND_USE_PLUGINS_0=""
41927 fi
41928
41929 COND_USE_SOSYMLINKS_1="#"
41930 if test "x$USE_SOSYMLINKS" = "x1" ; then
41931 COND_USE_SOSYMLINKS_1=""
41932 fi
41933
41934 COND_USE_SOVERLINUX_1="#"
41935 if test "x$USE_SOVERLINUX" = "x1" ; then
41936 COND_USE_SOVERLINUX_1=""
41937 fi
41938
41939 COND_USE_SOVERSION_0="#"
41940 if test "x$USE_SOVERSION" = "x0" ; then
41941 COND_USE_SOVERSION_0=""
41942 fi
41943
41944 COND_USE_SOVERSOLARIS_1="#"
41945 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41946 COND_USE_SOVERSOLARIS_1=""
41947 fi
41948
41949 COND_WITH_PLUGIN_SDL_1="#"
41950 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41951 COND_WITH_PLUGIN_SDL_1=""
41952 fi
41953
41954 COND_WXUNIV_1="#"
41955 if test "x$WXUNIV" = "x1" ; then
41956 COND_WXUNIV_1=""
41957 fi
41958
41959 COND_WXUSE_EXPAT_BUILTIN="#"
41960 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41961 COND_WXUSE_EXPAT_BUILTIN=""
41962 fi
41963
41964 COND_WXUSE_LIBJPEG_BUILTIN="#"
41965 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41966 COND_WXUSE_LIBJPEG_BUILTIN=""
41967 fi
41968
41969 COND_WXUSE_LIBPNG_BUILTIN="#"
41970 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41971 COND_WXUSE_LIBPNG_BUILTIN=""
41972 fi
41973
41974 COND_WXUSE_LIBTIFF_BUILTIN="#"
41975 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41976 COND_WXUSE_LIBTIFF_BUILTIN=""
41977 fi
41978
41979 COND_WXUSE_ODBC_BUILTIN="#"
41980 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41981 COND_WXUSE_ODBC_BUILTIN=""
41982 fi
41983
41984 COND_WXUSE_REGEX_BUILTIN="#"
41985 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41986 COND_WXUSE_REGEX_BUILTIN=""
41987 fi
41988
41989 COND_WXUSE_ZLIB_BUILTIN="#"
41990 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41991 COND_WXUSE_ZLIB_BUILTIN=""
41992 fi
41993
a848cd7e
SC
41994
41995
41996
41997
41998if test $GCC_PCH = 1 ; then
41999 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
42000 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
42001else
42002 case "${host}" in
42003 powerpc-*-darwin* )
42004 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
42005 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
42006 ;;
bea8e651 42007 *-*-mingw32* )
1f344abf
VS
42008 if test "$wxUSE_STL" = "yes" -o \
42009 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
42010 "$wxUSE_NO_RTTI" != "yes"; then
42011 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
42012echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
42013 cat >conftest.$ac_ext <<_ACEOF
42014/* confdefs.h. */
42015_ACEOF
42016cat confdefs.h >>conftest.$ac_ext
42017cat >>conftest.$ac_ext <<_ACEOF
42018/* end confdefs.h. */
42019
42020int
42021main ()
42022{
1f344abf 42023#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
42024 #error "Not GCC 3.2 or greater"
42025 #endif
42026
42027 ;
42028 return 0;
42029}
42030_ACEOF
42031rm -f conftest.$ac_objext
42032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42033 (eval $ac_compile) 2>conftest.er1
bea8e651 42034 ac_status=$?
ac1cb8d3
VS
42035 grep -v '^ *+' conftest.er1 >conftest.err
42036 rm -f conftest.er1
42037 cat conftest.err >&5
bea8e651
MB
42038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42039 (exit $ac_status); } &&
ac1cb8d3
VS
42040 { ac_try='test -z "$ac_c_werror_flag"
42041 || test ! -s conftest.err'
42042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42043 (eval $ac_try) 2>&5
42044 ac_status=$?
42045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42046 (exit $ac_status); }; } &&
42047 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
42048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42049 (eval $ac_try) 2>&5
42050 ac_status=$?
42051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42052 (exit $ac_status); }; }; then
42053 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
42054 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
42055 echo "$as_me:$LINENO: result: yes" >&5
42056echo "${ECHO_T}yes" >&6
42057else
42058 echo "$as_me: failed program was:" >&5
42059sed 's/^/| /' conftest.$ac_ext >&5
42060
42061echo "$as_me:$LINENO: result: no" >&5
42062echo "${ECHO_T}no" >&6
42063fi
ac1cb8d3 42064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
42065 fi
42066 ;;
a848cd7e
SC
42067 esac
42068fi
42069
42070
42071SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
42072
42073
42074
42075
42076
42077
42078
42079
42080
42081
42082
42083
42084
42085
42086
42087
42088
42089
42090
42091
42092
42093
42094
42095
42096
42097
42098
42099
42100
42101
42102
42103
42104
42105
42106
42107
42108
42109
42110
42111
42112
42113
42114
42115
42116
42117
42118
42119
42120
42121
42122
42123
42124
42125
42126
42127
42128
42129
42130
42131
42132
42133
42134
42135
42136
42137
42138
42139
42140
42141
42142
42143
42144
42145
42146
42147
42148
42149
42150
42151
42152
42153
42154
42155
42156
42157
42158
42159
42160
42161
42162
42163
42164
42165
42166
42167
42168
42169
42170
42171
42172echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42173echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42174set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42175if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42176 echo $ECHO_N "(cached) $ECHO_C" >&6
42177else
42178 cat >conftest.make <<\_ACEOF
42179all:
42180 @echo 'ac_maketemp="$(MAKE)"'
42181_ACEOF
42182# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42183eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42184if test -n "$ac_maketemp"; then
42185 eval ac_cv_prog_make_${ac_make}_set=yes
42186else
42187 eval ac_cv_prog_make_${ac_make}_set=no
42188fi
42189rm -f conftest.make
42190fi
42191if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42192 echo "$as_me:$LINENO: result: yes" >&5
42193echo "${ECHO_T}yes" >&6
42194 SET_MAKE=
42195else
42196 echo "$as_me:$LINENO: result: no" >&5
42197echo "${ECHO_T}no" >&6
42198 SET_MAKE="MAKE=${MAKE-make}"
42199fi
42200
42201
42202if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
42203 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
42204fi
42205
42206 ac_config_headers="$ac_config_headers setup.h"
42207
42208
42209 ac_config_files="$ac_config_files wx-config version-script Makefile"
42210
42211
42212 ac_config_commands="$ac_config_commands default"
42213
42214
42215
42216if test "$wxUSE_GUI" = "yes"; then
42217 SUBDIRS="samples demos utils contrib"
42218else SUBDIRS="samples utils"
42219fi
42220
42221
42222
42223# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
42224if test "${with_cppunit_prefix+set}" = set; then
42225 withval="$with_cppunit_prefix"
42226 cppunit_config_prefix="$withval"
42227else
42228 cppunit_config_prefix=""
42229fi;
42230
42231# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
42232if test "${with_cppunit_exec_prefix+set}" = set; then
42233 withval="$with_cppunit_exec_prefix"
42234 cppunit_config_exec_prefix="$withval"
42235else
42236 cppunit_config_exec_prefix=""
42237fi;
42238
42239 if test x$cppunit_config_exec_prefix != x ; then
42240 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
42241 if test x${CPPUNIT_CONFIG+set} != xset ; then
42242 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
42243 fi
42244 fi
42245 if test x$cppunit_config_prefix != x ; then
42246 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
42247 if test x${CPPUNIT_CONFIG+set} != xset ; then
42248 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
42249 fi
42250 fi
42251
42252 # Extract the first word of "cppunit-config", so it can be a program name with args.
42253set dummy cppunit-config; ac_word=$2
42254echo "$as_me:$LINENO: checking for $ac_word" >&5
42255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42256if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
42257 echo $ECHO_N "(cached) $ECHO_C" >&6
42258else
42259 case $CPPUNIT_CONFIG in
42260 [\\/]* | ?:[\\/]*)
42261 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
42262 ;;
42263 *)
42264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42265for as_dir in $PATH
42266do
42267 IFS=$as_save_IFS
42268 test -z "$as_dir" && as_dir=.
42269 for ac_exec_ext in '' $ac_executable_extensions; do
42270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42271 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42273 break 2
42274 fi
42275done
42276done
42277
42278 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
42279 ;;
42280esac
42281fi
42282CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
42283
42284if test -n "$CPPUNIT_CONFIG"; then
42285 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
42286echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
42287else
42288 echo "$as_me:$LINENO: result: no" >&5
42289echo "${ECHO_T}no" >&6
42290fi
42291
42292 cppunit_version_min=1.8.0
42293
42294 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
42295echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
42296 no_cppunit=""
42297 if test "$CPPUNIT_CONFIG" = "no" ; then
42298 no_cppunit=yes
c2218763
VS
42299 echo "$as_me:$LINENO: result: no" >&5
42300echo "${ECHO_T}no" >&6
a848cd7e
SC
42301 else
42302 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
42303 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
42304 cppunit_version=`$CPPUNIT_CONFIG --version`
42305
42306 cppunit_major_version=`echo $cppunit_version | \
42307 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42308 cppunit_minor_version=`echo $cppunit_version | \
42309 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42310 cppunit_micro_version=`echo $cppunit_version | \
42311 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42312
42313 cppunit_major_min=`echo $cppunit_version_min | \
42314 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42315 cppunit_minor_min=`echo $cppunit_version_min | \
42316 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42317 cppunit_micro_min=`echo $cppunit_version_min | \
42318 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42319
42320 cppunit_version_proper=`expr \
42321 $cppunit_major_version \> $cppunit_major_min \| \
42322 $cppunit_major_version \= $cppunit_major_min \& \
42323 $cppunit_minor_version \> $cppunit_minor_min \| \
42324 $cppunit_major_version \= $cppunit_major_min \& \
42325 $cppunit_minor_version \= $cppunit_minor_min \& \
42326 $cppunit_micro_version \>= $cppunit_micro_min `
42327
42328 if test "$cppunit_version_proper" = "1" ; then
42329 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
42330echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
42331 else
42332 echo "$as_me:$LINENO: result: no" >&5
42333echo "${ECHO_T}no" >&6
42334 no_cppunit=yes
42335 fi
42336 fi
42337
42338 if test "x$no_cppunit" = x ; then
c2218763 42339 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
42340 else
42341 CPPUNIT_CFLAGS=""
42342 CPPUNIT_LIBS=""
c2218763 42343 :
a848cd7e
SC
42344 fi
42345
42346
42347
42348
42349
42350for subdir in `echo $SUBDIRS`; do
42351 if test -d ${srcdir}/${subdir} ; then
42352 if test "$wxUSE_GUI" = "yes"; then
42353 if test ${subdir} = "samples"; then
42354 makefiles="samples/Makefile.in $makefiles"
42355 for sample in `echo $SAMPLES_SUBDIRS`; do
42356 if test -d $srcdir/samples/$sample; then
42357 makefiles="samples/$sample/Makefile.in $makefiles"
42358 fi
42359 done
42360 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42361 fi
42362 else if test ${subdir} = "samples"; then
42363 makefiles="samples/Makefile.in samples/console/Makefile.in"
42364 elif test ${subdir} = "utils"; then
42365 makefiles="utils/HelpGen/Makefile.in \
42366 utils/HelpGen/src/Makefile.in \
42367 utils/tex2rtf/Makefile.in \
42368 utils/tex2rtf/src/Makefile.in"
42369 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42370 fi
42371 fi
42372
42373 for mkin in $makefiles ; do
42374 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
42375 ac_config_files="$ac_config_files $mk"
42376
42377 done
42378 fi
42379done
42380
42381
42382cat >confcache <<\_ACEOF
42383# This file is a shell script that caches the results of configure
42384# tests run on this system so they can be shared between configure
42385# scripts and configure runs, see configure's option --config-cache.
42386# It is not useful on other systems. If it contains results you don't
42387# want to keep, you may remove or edit it.
42388#
42389# config.status only pays attention to the cache file if you give it
42390# the --recheck option to rerun configure.
42391#
42392# `ac_cv_env_foo' variables (set or unset) will be overridden when
42393# loading this file, other *unset* `ac_cv_foo' will be assigned the
42394# following values.
42395
42396_ACEOF
42397
42398# The following way of writing the cache mishandles newlines in values,
42399# but we know of no workaround that is simple, portable, and efficient.
42400# So, don't put newlines in cache variables' values.
42401# Ultrix sh set writes to stderr and can't be redirected directly,
42402# and sets the high bit in the cache file unless we assign to the vars.
42403{
42404 (set) 2>&1 |
42405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
42406 *ac_space=\ *)
42407 # `set' does not quote correctly, so add quotes (double-quote
42408 # substitution turns \\\\ into \\, and sed turns \\ into \).
42409 sed -n \
ac1cb8d3
VS
42410 "s/'/'\\\\''/g;
42411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
42412 ;;
42413 *)
42414 # `set' quotes correctly as required by POSIX, so do not add quotes.
42415 sed -n \
ac1cb8d3 42416 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
42417 ;;
42418 esac;
42419} |
42420 sed '
42421 t clear
42422 : clear
42423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42424 t end
42425 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42426 : end' >>confcache
42427if diff $cache_file confcache >/dev/null 2>&1; then :; else
42428 if test -w $cache_file; then
42429 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
42430 cat confcache >$cache_file
42431 else
42432 echo "not updating unwritable cache $cache_file"
42433 fi
42434fi
42435rm -f confcache
42436
42437test "x$prefix" = xNONE && prefix=$ac_default_prefix
42438# Let make expand exec_prefix.
42439test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42440
42441# VPATH may cause trouble with some makes, so we remove $(srcdir),
42442# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42443# trailing colons and then remove the whole line if VPATH becomes empty
42444# (actually we leave an empty line to preserve line numbers).
42445if test "x$srcdir" = x.; then
ac1cb8d3 42446 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
42447s/:*\$(srcdir):*/:/;
42448s/:*\${srcdir}:*/:/;
42449s/:*@srcdir@:*/:/;
ac1cb8d3 42450s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 42451s/:*$//;
ac1cb8d3 42452s/^[^=]*=[ ]*$//;
a848cd7e
SC
42453}'
42454fi
42455
42456DEFS=-DHAVE_CONFIG_H
42457
42458ac_libobjs=
42459ac_ltlibobjs=
42460for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42461 # 1. Remove the extension, and $U if already installed.
42462 ac_i=`echo "$ac_i" |
ac1cb8d3 42463 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
42464 # 2. Add them.
42465 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42466 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42467done
42468LIBOBJS=$ac_libobjs
42469
42470LTLIBOBJS=$ac_ltlibobjs
42471
42472
42473
42474: ${CONFIG_STATUS=./config.status}
42475ac_clean_files_save=$ac_clean_files
42476ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42477{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42478echo "$as_me: creating $CONFIG_STATUS" >&6;}
42479cat >$CONFIG_STATUS <<_ACEOF
42480#! $SHELL
42481# Generated by $as_me.
42482# Run this file to recreate the current configuration.
42483# Compiler output produced by configure, useful for debugging
42484# configure, is in config.log if it exists.
42485
42486debug=false
42487ac_cs_recheck=false
42488ac_cs_silent=false
42489SHELL=\${CONFIG_SHELL-$SHELL}
42490_ACEOF
42491
42492cat >>$CONFIG_STATUS <<\_ACEOF
42493## --------------------- ##
42494## M4sh Initialization. ##
42495## --------------------- ##
42496
42497# Be Bourne compatible
42498if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42499 emulate sh
42500 NULLCMD=:
42501 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42502 # is contrary to our usage. Disable this feature.
42503 alias -g '${1+"$@"}'='"$@"'
42504elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42505 set -o posix
42506fi
ac1cb8d3 42507DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
42508
42509# Support unset when possible.
ac1cb8d3 42510if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
42511 as_unset=unset
42512else
42513 as_unset=false
42514fi
42515
42516
42517# Work around bugs in pre-3.0 UWIN ksh.
42518$as_unset ENV MAIL MAILPATH
42519PS1='$ '
42520PS2='> '
42521PS4='+ '
42522
42523# NLS nuisances.
42524for as_var in \
42525 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42526 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42527 LC_TELEPHONE LC_TIME
42528do
ac1cb8d3 42529 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
42530 eval $as_var=C; export $as_var
42531 else
42532 $as_unset $as_var
42533 fi
42534done
42535
42536# Required to use basename.
42537if expr a : '\(a\)' >/dev/null 2>&1; then
42538 as_expr=expr
42539else
42540 as_expr=false
42541fi
42542
42543if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42544 as_basename=basename
42545else
42546 as_basename=false
42547fi
42548
42549
42550# Name of the executable.
42551as_me=`$as_basename "$0" ||
42552$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42553 X"$0" : 'X\(//\)$' \| \
42554 X"$0" : 'X\(/\)$' \| \
42555 . : '\(.\)' 2>/dev/null ||
42556echo X/"$0" |
42557 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42558 /^X\/\(\/\/\)$/{ s//\1/; q; }
42559 /^X\/\(\/\).*/{ s//\1/; q; }
42560 s/.*/./; q'`
42561
42562
42563# PATH needs CR, and LINENO needs CR and PATH.
42564# Avoid depending upon Character Ranges.
42565as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42566as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42567as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42568as_cr_digits='0123456789'
42569as_cr_alnum=$as_cr_Letters$as_cr_digits
42570
42571# The user is always right.
42572if test "${PATH_SEPARATOR+set}" != set; then
42573 echo "#! /bin/sh" >conf$$.sh
42574 echo "exit 0" >>conf$$.sh
42575 chmod +x conf$$.sh
42576 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42577 PATH_SEPARATOR=';'
42578 else
42579 PATH_SEPARATOR=:
42580 fi
42581 rm -f conf$$.sh
42582fi
42583
42584
42585 as_lineno_1=$LINENO
42586 as_lineno_2=$LINENO
42587 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42588 test "x$as_lineno_1" != "x$as_lineno_2" &&
42589 test "x$as_lineno_3" = "x$as_lineno_2" || {
42590 # Find who we are. Look in the path if we contain no path at all
42591 # relative or not.
42592 case $0 in
42593 *[\\/]* ) as_myself=$0 ;;
42594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42595for as_dir in $PATH
42596do
42597 IFS=$as_save_IFS
42598 test -z "$as_dir" && as_dir=.
42599 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42600done
42601
42602 ;;
42603 esac
42604 # We did not find ourselves, most probably we were run as `sh COMMAND'
42605 # in which case we are not to be found in the path.
42606 if test "x$as_myself" = x; then
42607 as_myself=$0
42608 fi
42609 if test ! -f "$as_myself"; then
42610 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42611echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42612 { (exit 1); exit 1; }; }
42613 fi
42614 case $CONFIG_SHELL in
42615 '')
42616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42617for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42618do
42619 IFS=$as_save_IFS
42620 test -z "$as_dir" && as_dir=.
42621 for as_base in sh bash ksh sh5; do
42622 case $as_dir in
42623 /*)
42624 if ("$as_dir/$as_base" -c '
42625 as_lineno_1=$LINENO
42626 as_lineno_2=$LINENO
42627 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42628 test "x$as_lineno_1" != "x$as_lineno_2" &&
42629 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42630 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42631 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42632 CONFIG_SHELL=$as_dir/$as_base
42633 export CONFIG_SHELL
42634 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42635 fi;;
42636 esac
42637 done
42638done
42639;;
42640 esac
42641
42642 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42643 # uniformly replaced by the line number. The first 'sed' inserts a
42644 # line-number line before each line; the second 'sed' does the real
42645 # work. The second script uses 'N' to pair each line-number line
42646 # with the numbered line, and appends trailing '-' during
42647 # substitution so that $LINENO is not a special case at line end.
42648 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42649 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42650 sed '=' <$as_myself |
42651 sed '
42652 N
42653 s,$,-,
42654 : loop
42655 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42656 t loop
42657 s,-$,,
42658 s,^['$as_cr_digits']*\n,,
42659 ' >$as_me.lineno &&
42660 chmod +x $as_me.lineno ||
42661 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42662echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42663 { (exit 1); exit 1; }; }
42664
42665 # Don't try to exec as it changes $[0], causing all sort of problems
42666 # (the dirname of $[0] is not the place where we might find the
42667 # original and so on. Autoconf is especially sensible to this).
42668 . ./$as_me.lineno
42669 # Exit status is that of the last command.
42670 exit
42671}
42672
42673
42674case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42675 *c*,-n*) ECHO_N= ECHO_C='
42676' ECHO_T=' ' ;;
42677 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42678 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42679esac
42680
42681if expr a : '\(a\)' >/dev/null 2>&1; then
42682 as_expr=expr
42683else
42684 as_expr=false
42685fi
42686
42687rm -f conf$$ conf$$.exe conf$$.file
42688echo >conf$$.file
42689if ln -s conf$$.file conf$$ 2>/dev/null; then
42690 # We could just check for DJGPP; but this test a) works b) is more generic
42691 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42692 if test -f conf$$.exe; then
42693 # Don't use ln at all; we don't have any links
42694 as_ln_s='cp -p'
42695 else
42696 as_ln_s='ln -s'
42697 fi
42698elif ln conf$$.file conf$$ 2>/dev/null; then
42699 as_ln_s=ln
42700else
42701 as_ln_s='cp -p'
42702fi
42703rm -f conf$$ conf$$.exe conf$$.file
42704
42705if mkdir -p . 2>/dev/null; then
42706 as_mkdir_p=:
42707else
ac1cb8d3 42708 test -d ./-p && rmdir ./-p
a848cd7e
SC
42709 as_mkdir_p=false
42710fi
42711
42712as_executable_p="test -f"
42713
42714# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42715as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42716
42717# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42718as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42719
42720
42721# IFS
42722# We need space, tab and new line, in precisely that order.
42723as_nl='
42724'
42725IFS=" $as_nl"
42726
42727# CDPATH.
42728$as_unset CDPATH
42729
42730exec 6>&1
42731
42732# Open the log real soon, to keep \$[0] and so on meaningful, and to
42733# report actual input values of CONFIG_FILES etc. instead of their
42734# values after options handling. Logging --version etc. is OK.
42735exec 5>>config.log
42736{
42737 echo
42738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42739## Running $as_me. ##
42740_ASBOX
42741} >&5
42742cat >&5 <<_CSEOF
42743
77ffb593 42744This file was extended by wxWidgets $as_me 2.5.2, which was
ac1cb8d3 42745generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42746
42747 CONFIG_FILES = $CONFIG_FILES
42748 CONFIG_HEADERS = $CONFIG_HEADERS
42749 CONFIG_LINKS = $CONFIG_LINKS
42750 CONFIG_COMMANDS = $CONFIG_COMMANDS
42751 $ $0 $@
42752
42753_CSEOF
42754echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42755echo >&5
42756_ACEOF
42757
42758# Files that config.status was made for.
42759if test -n "$ac_config_files"; then
42760 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42761fi
42762
42763if test -n "$ac_config_headers"; then
42764 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42765fi
42766
42767if test -n "$ac_config_links"; then
42768 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42769fi
42770
42771if test -n "$ac_config_commands"; then
42772 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42773fi
42774
42775cat >>$CONFIG_STATUS <<\_ACEOF
42776
42777ac_cs_usage="\
42778\`$as_me' instantiates files from templates according to the
42779current configuration.
42780
42781Usage: $0 [OPTIONS] [FILE]...
42782
42783 -h, --help print this help, then exit
42784 -V, --version print version number, then exit
42785 -q, --quiet do not print progress messages
42786 -d, --debug don't remove temporary files
42787 --recheck update $as_me by reconfiguring in the same conditions
42788 --file=FILE[:TEMPLATE]
ac1cb8d3 42789 instantiate the configuration file FILE
a848cd7e 42790 --header=FILE[:TEMPLATE]
ac1cb8d3 42791 instantiate the configuration header FILE
a848cd7e
SC
42792
42793Configuration files:
42794$config_files
42795
42796Configuration headers:
42797$config_headers
42798
42799Configuration commands:
42800$config_commands
42801
42802Report bugs to <bug-autoconf@gnu.org>."
42803_ACEOF
42804
42805cat >>$CONFIG_STATUS <<_ACEOF
42806ac_cs_version="\\
77ffb593 42807wxWidgets config.status 2.5.2
ac1cb8d3 42808configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42809 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42810
ac1cb8d3 42811Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42812This config.status script is free software; the Free Software Foundation
42813gives unlimited permission to copy, distribute and modify it."
42814srcdir=$srcdir
42815INSTALL="$INSTALL"
42816_ACEOF
42817
42818cat >>$CONFIG_STATUS <<\_ACEOF
42819# If no file are specified by the user, then we need to provide default
42820# value. By we need to know if files were specified by the user.
42821ac_need_defaults=:
42822while test $# != 0
42823do
42824 case $1 in
42825 --*=*)
42826 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42827 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42828 ac_shift=:
42829 ;;
42830 -*)
42831 ac_option=$1
42832 ac_optarg=$2
42833 ac_shift=shift
42834 ;;
42835 *) # This is not an option, so the user has probably given explicit
42836 # arguments.
42837 ac_option=$1
42838 ac_need_defaults=false;;
42839 esac
42840
42841 case $ac_option in
42842 # Handling of the options.
42843_ACEOF
42844cat >>$CONFIG_STATUS <<\_ACEOF
42845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42846 ac_cs_recheck=: ;;
42847 --version | --vers* | -V )
42848 echo "$ac_cs_version"; exit 0 ;;
42849 --he | --h)
42850 # Conflict between --help and --header
42851 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42852Try \`$0 --help' for more information." >&5
42853echo "$as_me: error: ambiguous option: $1
42854Try \`$0 --help' for more information." >&2;}
42855 { (exit 1); exit 1; }; };;
42856 --help | --hel | -h )
42857 echo "$ac_cs_usage"; exit 0 ;;
42858 --debug | --d* | -d )
42859 debug=: ;;
42860 --file | --fil | --fi | --f )
42861 $ac_shift
42862 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42863 ac_need_defaults=false;;
42864 --header | --heade | --head | --hea )
42865 $ac_shift
42866 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42867 ac_need_defaults=false;;
42868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42869 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42870 ac_cs_silent=: ;;
42871
42872 # This is an error.
42873 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42874Try \`$0 --help' for more information." >&5
42875echo "$as_me: error: unrecognized option: $1
42876Try \`$0 --help' for more information." >&2;}
42877 { (exit 1); exit 1; }; } ;;
42878
42879 *) ac_config_targets="$ac_config_targets $1" ;;
42880
42881 esac
42882 shift
42883done
42884
42885ac_configure_extra_args=
42886
42887if $ac_cs_silent; then
42888 exec 6>/dev/null
42889 ac_configure_extra_args="$ac_configure_extra_args --silent"
42890fi
42891
42892_ACEOF
42893cat >>$CONFIG_STATUS <<_ACEOF
42894if \$ac_cs_recheck; then
42895 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42896 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42897fi
42898
42899_ACEOF
42900
42901cat >>$CONFIG_STATUS <<_ACEOF
42902#
42903# INIT-COMMANDS section.
42904#
42905
42906
42907 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
42908 LN_S="${LN_S}"
42909
42910
42911
42912_ACEOF
42913
42914
42915
42916cat >>$CONFIG_STATUS <<\_ACEOF
42917for ac_config_target in $ac_config_targets
42918do
42919 case "$ac_config_target" in
42920 # Handling of arguments.
42921 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
42922 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42923 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42924 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
42925 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42926 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
42927 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42928echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42929 { (exit 1); exit 1; }; };;
42930 esac
42931done
42932
42933# If the user did not use the arguments to specify the items to instantiate,
42934# then the envvar interface is used. Set only those that are not.
42935# We use the long form for the default assignment because of an extremely
42936# bizarre bug on SunOS 4.1.3.
42937if $ac_need_defaults; then
42938 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42939 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42940 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42941fi
42942
42943# Have a temporary directory for convenience. Make it in the build tree
42944# simply because there is no reason to put it here, and in addition,
42945# creating and moving files from /tmp can sometimes cause problems.
42946# Create a temporary directory, and hook for its removal unless debugging.
42947$debug ||
42948{
42949 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42950 trap '{ (exit 1); exit 1; }' 1 2 13 15
42951}
42952
42953# Create a (secure) tmp directory for tmp files.
42954
42955{
42956 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42957 test -n "$tmp" && test -d "$tmp"
42958} ||
42959{
42960 tmp=./confstat$$-$RANDOM
42961 (umask 077 && mkdir $tmp)
42962} ||
42963{
42964 echo "$me: cannot create a temporary directory in ." >&2
42965 { (exit 1); exit 1; }
42966}
42967
42968_ACEOF
42969
42970cat >>$CONFIG_STATUS <<_ACEOF
42971
42972#
42973# CONFIG_FILES section.
42974#
42975
42976# No need to generate the scripts if there are no CONFIG_FILES.
42977# This happens for instance when ./config.status config.h
42978if test -n "\$CONFIG_FILES"; then
42979 # Protect against being on the right side of a sed subst in config.status.
42980 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42981 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42982s,@SHELL@,$SHELL,;t t
42983s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42984s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42985s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42986s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42987s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42988s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42989s,@exec_prefix@,$exec_prefix,;t t
42990s,@prefix@,$prefix,;t t
42991s,@program_transform_name@,$program_transform_name,;t t
42992s,@bindir@,$bindir,;t t
42993s,@sbindir@,$sbindir,;t t
42994s,@libexecdir@,$libexecdir,;t t
42995s,@datadir@,$datadir,;t t
42996s,@sysconfdir@,$sysconfdir,;t t
42997s,@sharedstatedir@,$sharedstatedir,;t t
42998s,@localstatedir@,$localstatedir,;t t
42999s,@libdir@,$libdir,;t t
43000s,@includedir@,$includedir,;t t
43001s,@oldincludedir@,$oldincludedir,;t t
43002s,@infodir@,$infodir,;t t
43003s,@mandir@,$mandir,;t t
43004s,@build_alias@,$build_alias,;t t
43005s,@host_alias@,$host_alias,;t t
43006s,@target_alias@,$target_alias,;t t
43007s,@DEFS@,$DEFS,;t t
43008s,@ECHO_C@,$ECHO_C,;t t
43009s,@ECHO_N@,$ECHO_N,;t t
43010s,@ECHO_T@,$ECHO_T,;t t
43011s,@LIBS@,$LIBS,;t t
43012s,@build@,$build,;t t
43013s,@build_cpu@,$build_cpu,;t t
43014s,@build_vendor@,$build_vendor,;t t
43015s,@build_os@,$build_os,;t t
43016s,@host@,$host,;t t
43017s,@host_cpu@,$host_cpu,;t t
43018s,@host_vendor@,$host_vendor,;t t
43019s,@host_os@,$host_os,;t t
43020s,@target@,$target,;t t
43021s,@target_cpu@,$target_cpu,;t t
43022s,@target_vendor@,$target_vendor,;t t
43023s,@target_os@,$target_os,;t t
43024s,@CC@,$CC,;t t
43025s,@CFLAGS@,$CFLAGS,;t t
43026s,@LDFLAGS@,$LDFLAGS,;t t
43027s,@CPPFLAGS@,$CPPFLAGS,;t t
43028s,@ac_ct_CC@,$ac_ct_CC,;t t
43029s,@EXEEXT@,$EXEEXT,;t t
43030s,@OBJEXT@,$OBJEXT,;t t
43031s,@CPP@,$CPP,;t t
43032s,@EGREP@,$EGREP,;t t
43033s,@CXX@,$CXX,;t t
43034s,@CXXFLAGS@,$CXXFLAGS,;t t
43035s,@ac_ct_CXX@,$ac_ct_CXX,;t t
43036s,@RANLIB@,$RANLIB,;t t
43037s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43038s,@AR@,$AR,;t t
43039s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43040s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43041s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43042s,@STRIP@,$STRIP,;t t
43043s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
43044s,@LN_S@,$LN_S,;t t
43045s,@CXXCPP@,$CXXCPP,;t t
43046s,@subdirs@,$subdirs,;t t
43047s,@PKG_CONFIG@,$PKG_CONFIG,;t t
43048s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
43049s,@GTK_LIBS@,$GTK_LIBS,;t t
43050s,@GTK_CONFIG@,$GTK_CONFIG,;t t
43051s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
43052s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
43053s,@X_CFLAGS@,$X_CFLAGS,;t t
43054s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
43055s,@X_LIBS@,$X_LIBS,;t t
43056s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
43057s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
43058s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
43059s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
43060s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
43061s,@RESCOMP@,$RESCOMP,;t t
43062s,@DEREZ@,$DEREZ,;t t
43063s,@SETFILE@,$SETFILE,;t t
43064s,@LIBICONV@,$LIBICONV,;t t
43065s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
43066s,@SDL_CONFIG@,$SDL_CONFIG,;t t
43067s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
43068s,@SDL_LIBS@,$SDL_LIBS,;t t
43069s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
43070s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
43071s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
43072s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
43073s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
43074s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
43075s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
43076s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
43077s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
43078s,@VENDOR@,$VENDOR,;t t
43079s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
43080s,@WXUNIV@,$WXUNIV,;t t
43081s,@MONOLITHIC@,$MONOLITHIC,;t t
43082s,@USE_PLUGINS@,$USE_PLUGINS,;t t
43083s,@EXTRALIBS@,$EXTRALIBS,;t t
43084s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
43085s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
43086s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
43087s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
43088s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
43089s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
43090s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
43091s,@UNICODE@,$UNICODE,;t t
43092s,@BUILD@,$BUILD,;t t
43093s,@DEBUG_INFO@,$DEBUG_INFO,;t t
43094s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
43095s,@SHARED@,$SHARED,;t t
43096s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
43097s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
43098s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
43099s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
43100s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
43101s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
43102s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
43103s,@SET_MAKE@,$SET_MAKE,;t t
43104s,@MAKE_SET@,$MAKE_SET,;t t
43105s,@ac_ct_AR@,$ac_ct_AR,;t t
43106s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43107s,@NM@,$NM,;t t
43108s,@ac_ct_NM@,$ac_ct_NM,;t t
43109s,@INSTALL_DIR@,$INSTALL_DIR,;t t
43110s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
43111s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
43112s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
43113s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
43114s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
43115s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
43116s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
43117s,@SO_SUFFIX@,$SO_SUFFIX,;t t
43118s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
43119s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
43120s,@LIBPREFIX@,$LIBPREFIX,;t t
43121s,@LIBEXT@,$LIBEXT,;t t
43122s,@DLLPREFIX@,$DLLPREFIX,;t t
43123s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
43124s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
43125s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
43126s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
43127s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
43128s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
43129s,@PIC_FLAG@,$PIC_FLAG,;t t
43130s,@USE_SOVERSION@,$USE_SOVERSION,;t t
43131s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
43132s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
43133s,@USE_MACVERSION@,$USE_MACVERSION,;t t
43134s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
43135s,@SONAME_FLAG@,$SONAME_FLAG,;t t
43136s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
43137s,@GCC_PCH@,$GCC_PCH,;t t
43138s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
43139s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
43140s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
43141s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
43142s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
43143s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
43144s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
43145s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
43146s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
43147s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
43148s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
43149s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
43150s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
43151s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
43152s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
43153s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
43154s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
43155s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
43156s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
43157s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
43158s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
43159s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
43160s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
43161s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
43162s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
43163s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
43164s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
43165s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
43166s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
43167s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
43168s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
43169s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
43170s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
43171s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
43172s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
43173s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
43174s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
43175s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
43176s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
43177s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
43178s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
43179s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
43180s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
43181s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
43182s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
43183s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
43184s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
43185s,@COND_SHARED_0@,$COND_SHARED_0,;t t
43186s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
43187s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43188s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43189s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
43190s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
43191s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
43192s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
43193s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
43194s,@COND_SHARED_1@,$COND_SHARED_1,;t t
43195s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
43196s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
43197s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
43198s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
43199s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
43200s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
43201s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
43202s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
43203s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
e835546c 43204s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
a848cd7e
SC
43205s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
43206s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
43207s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
43208s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
43209s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
43210s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
43211s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
43212s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
e835546c 43213s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
43214s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
43215s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
43216s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
e835546c 43217s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
3fd9c298
DE
43218s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
43219s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
43220s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
43221s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
43222s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
43223s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
43224s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
43225s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
43226s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
43227s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
43228s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
43229s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
43230s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43231s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43232s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
43233s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
43234s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
43235s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
43236s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
43237s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
43238s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
43239s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
43240s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
43241s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
43242s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
43243s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
43244s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
43245s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
43246s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
43247s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
43248s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
43249s,@PATH_IFS@,$PATH_IFS,;t t
43250s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
43251s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
43252s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
43253s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
43254s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
43255s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
43256s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
43257s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
43258s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
43259s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
43260s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
43261s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
43262s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
43263s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
43264s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
43265s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
43266s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
43267s,@WX_ALL@,$WX_ALL,;t t
43268s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
43269s,@SHARED_LD@,$SHARED_LD,;t t
43270s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
43271s,@STATIC_FLAG@,$STATIC_FLAG,;t t
43272s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
43273s,@USE_GUI@,$USE_GUI,;t t
43274s,@AFMINSTALL@,$AFMINSTALL,;t t
43275s,@WIN32INSTALL@,$WIN32INSTALL,;t t
43276s,@TOOLKIT@,$TOOLKIT,;t t
43277s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
43278s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
43279s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
43280s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
43281s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
43282s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
43283s,@cross_compiling@,$cross_compiling,;t t
43284s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
43285s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
43286s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
43287s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
43288s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
43289s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
43290s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
43291s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
43292s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
43293s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
43294s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
43295s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
43296s,@ALL_HEADERS@,$ALL_HEADERS,;t t
43297s,@ALL_SOURCES@,$ALL_SOURCES,;t t
43298s,@GUIDIST@,$GUIDIST,;t t
43299s,@PORT_FILES@,$PORT_FILES,;t t
43300s,@DISTDIR@,$DISTDIR,;t t
43301s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
43302s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
43303s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
43304s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
43305s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
43306s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
43307s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
43308s,@RESFLAGS@,$RESFLAGS,;t t
43309s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
43310s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
43311s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
43312s,@LIBWXMACRES@,$LIBWXMACRES,;t t
43313s,@MACRESCOMP@,$MACRESCOMP,;t t
43314s,@MACSETFILE@,$MACSETFILE,;t t
43315s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
43316s,@GCC@,$GCC,;t t
43317s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
43318s,@DLLTOOL@,$DLLTOOL,;t t
43319s,@AS@,$AS,;t t
43320s,@LD@,$LD,;t t
43321s,@MAKEINFO@,$MAKEINFO,;t t
43322s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
43323s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
43324s,@LIBOBJS@,$LIBOBJS,;t t
43325s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43326CEOF
43327
43328_ACEOF
43329
43330 cat >>$CONFIG_STATUS <<\_ACEOF
43331 # Split the substitutions into bite-sized pieces for seds with
43332 # small command number limits, like on Digital OSF/1 and HP-UX.
43333 ac_max_sed_lines=48
43334 ac_sed_frag=1 # Number of current file.
43335 ac_beg=1 # First line for current file.
43336 ac_end=$ac_max_sed_lines # Line after last line for current file.
43337 ac_more_lines=:
43338 ac_sed_cmds=
43339 while $ac_more_lines; do
43340 if test $ac_beg -gt 1; then
43341 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43342 else
43343 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43344 fi
43345 if test ! -s $tmp/subs.frag; then
43346 ac_more_lines=false
43347 else
43348 # The purpose of the label and of the branching condition is to
43349 # speed up the sed processing (if there are no `@' at all, there
43350 # is no need to browse any of the substitutions).
43351 # These are the two extra sed commands mentioned above.
43352 (echo ':t
43353 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43354 if test -z "$ac_sed_cmds"; then
ac1cb8d3 43355 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 43356 else
ac1cb8d3 43357 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
43358 fi
43359 ac_sed_frag=`expr $ac_sed_frag + 1`
43360 ac_beg=$ac_end
43361 ac_end=`expr $ac_end + $ac_max_sed_lines`
43362 fi
43363 done
43364 if test -z "$ac_sed_cmds"; then
43365 ac_sed_cmds=cat
43366 fi
43367fi # test -n "$CONFIG_FILES"
43368
43369_ACEOF
43370cat >>$CONFIG_STATUS <<\_ACEOF
43371for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43372 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43373 case $ac_file in
43374 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43375 cat >$tmp/stdin
43376 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43377 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43378 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43379 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43380 * ) ac_file_in=$ac_file.in ;;
43381 esac
43382
43383 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43384 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43385$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43386 X"$ac_file" : 'X\(//\)[^/]' \| \
43387 X"$ac_file" : 'X\(//\)$' \| \
43388 X"$ac_file" : 'X\(/\)' \| \
43389 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43390echo X"$ac_file" |
43391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43393 /^X\(\/\/\)$/{ s//\1/; q; }
43394 /^X\(\/\).*/{ s//\1/; q; }
43395 s/.*/./; q'`
43396 { if $as_mkdir_p; then
43397 mkdir -p "$ac_dir"
43398 else
43399 as_dir="$ac_dir"
43400 as_dirs=
43401 while test ! -d "$as_dir"; do
43402 as_dirs="$as_dir $as_dirs"
43403 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43404$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43405 X"$as_dir" : 'X\(//\)[^/]' \| \
43406 X"$as_dir" : 'X\(//\)$' \| \
43407 X"$as_dir" : 'X\(/\)' \| \
43408 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43409echo X"$as_dir" |
43410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43412 /^X\(\/\/\)$/{ s//\1/; q; }
43413 /^X\(\/\).*/{ s//\1/; q; }
43414 s/.*/./; q'`
43415 done
43416 test ! -n "$as_dirs" || mkdir $as_dirs
43417 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43418echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43419 { (exit 1); exit 1; }; }; }
43420
43421 ac_builddir=.
43422
43423if test "$ac_dir" != .; then
43424 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43425 # A "../" for each directory in $ac_dir_suffix.
43426 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43427else
43428 ac_dir_suffix= ac_top_builddir=
43429fi
43430
43431case $srcdir in
43432 .) # No --srcdir option. We are building in place.
43433 ac_srcdir=.
43434 if test -z "$ac_top_builddir"; then
43435 ac_top_srcdir=.
43436 else
43437 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43438 fi ;;
43439 [\\/]* | ?:[\\/]* ) # Absolute path.
43440 ac_srcdir=$srcdir$ac_dir_suffix;
43441 ac_top_srcdir=$srcdir ;;
43442 *) # Relative path.
43443 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43444 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43445esac
ac1cb8d3
VS
43446
43447# Do not use `cd foo && pwd` to compute absolute paths, because
43448# the directories may not exist.
43449case `pwd` in
43450.) ac_abs_builddir="$ac_dir";;
43451*)
43452 case "$ac_dir" in
43453 .) ac_abs_builddir=`pwd`;;
43454 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43455 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43456 esac;;
43457esac
43458case $ac_abs_builddir in
43459.) ac_abs_top_builddir=${ac_top_builddir}.;;
43460*)
43461 case ${ac_top_builddir}. in
43462 .) ac_abs_top_builddir=$ac_abs_builddir;;
43463 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43464 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43465 esac;;
43466esac
43467case $ac_abs_builddir in
43468.) ac_abs_srcdir=$ac_srcdir;;
43469*)
43470 case $ac_srcdir in
43471 .) ac_abs_srcdir=$ac_abs_builddir;;
43472 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43473 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43474 esac;;
43475esac
43476case $ac_abs_builddir in
43477.) ac_abs_top_srcdir=$ac_top_srcdir;;
43478*)
43479 case $ac_top_srcdir in
43480 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43481 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43482 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43483 esac;;
43484esac
a848cd7e
SC
43485
43486
43487 case $INSTALL in
43488 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43489 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43490 esac
43491
dcc1b6ad
VS
43492 if test x"$ac_file" != x-; then
43493 { echo "$as_me:$LINENO: creating $ac_file" >&5
43494echo "$as_me: creating $ac_file" >&6;}
43495 rm -f "$ac_file"
43496 fi
a848cd7e
SC
43497 # Let's still pretend it is `configure' which instantiates (i.e., don't
43498 # use $as_me), people would be surprised to read:
43499 # /* config.h. Generated by config.status. */
43500 if test x"$ac_file" = x-; then
43501 configure_input=
43502 else
43503 configure_input="$ac_file. "
43504 fi
43505 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 43506 sed 's,.*/,,'` by configure."
a848cd7e
SC
43507
43508 # First look for the input files in the build tree, otherwise in the
43509 # src tree.
43510 ac_file_inputs=`IFS=:
43511 for f in $ac_file_in; do
43512 case $f in
43513 -) echo $tmp/stdin ;;
43514 [\\/$]*)
ac1cb8d3
VS
43515 # Absolute (can't be DOS-style, as IFS=:)
43516 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43517echo "$as_me: error: cannot find input file: $f" >&2;}
43518 { (exit 1); exit 1; }; }
ac1cb8d3 43519 echo "$f";;
a848cd7e 43520 *) # Relative
ac1cb8d3
VS
43521 if test -f "$f"; then
43522 # Build tree
43523 echo "$f"
43524 elif test -f "$srcdir/$f"; then
43525 # Source tree
43526 echo "$srcdir/$f"
43527 else
43528 # /dev/null tree
43529 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43530echo "$as_me: error: cannot find input file: $f" >&2;}
43531 { (exit 1); exit 1; }; }
ac1cb8d3 43532 fi;;
a848cd7e
SC
43533 esac
43534 done` || { (exit 1); exit 1; }
43535_ACEOF
43536cat >>$CONFIG_STATUS <<_ACEOF
43537 sed "$ac_vpsub
43538$extrasub
43539_ACEOF
43540cat >>$CONFIG_STATUS <<\_ACEOF
43541:t
43542/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43543s,@configure_input@,$configure_input,;t t
43544s,@srcdir@,$ac_srcdir,;t t
43545s,@abs_srcdir@,$ac_abs_srcdir,;t t
43546s,@top_srcdir@,$ac_top_srcdir,;t t
43547s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43548s,@builddir@,$ac_builddir,;t t
43549s,@abs_builddir@,$ac_abs_builddir,;t t
43550s,@top_builddir@,$ac_top_builddir,;t t
43551s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43552s,@INSTALL@,$ac_INSTALL,;t t
43553" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43554 rm -f $tmp/stdin
43555 if test x"$ac_file" != x-; then
43556 mv $tmp/out $ac_file
43557 else
43558 cat $tmp/out
43559 rm -f $tmp/out
43560 fi
43561
43562done
43563_ACEOF
43564cat >>$CONFIG_STATUS <<\_ACEOF
43565
43566#
43567# CONFIG_HEADER section.
43568#
43569
43570# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43571# NAME is the cpp macro being defined and VALUE is the value it is being given.
43572#
43573# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
43574ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43575ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
43576ac_dC=' '
43577ac_dD=',;t'
43578# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 43579ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
43580ac_uB='$,\1#\2define\3'
43581ac_uC=' '
43582ac_uD=',;t'
43583
43584for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43585 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43586 case $ac_file in
43587 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43588 cat >$tmp/stdin
43589 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43590 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43591 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43592 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43593 * ) ac_file_in=$ac_file.in ;;
43594 esac
43595
43596 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43597echo "$as_me: creating $ac_file" >&6;}
43598
43599 # First look for the input files in the build tree, otherwise in the
43600 # src tree.
43601 ac_file_inputs=`IFS=:
43602 for f in $ac_file_in; do
43603 case $f in
43604 -) echo $tmp/stdin ;;
43605 [\\/$]*)
ac1cb8d3
VS
43606 # Absolute (can't be DOS-style, as IFS=:)
43607 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43608echo "$as_me: error: cannot find input file: $f" >&2;}
43609 { (exit 1); exit 1; }; }
ac1cb8d3
VS
43610 # Do quote $f, to prevent DOS paths from being IFS'd.
43611 echo "$f";;
a848cd7e 43612 *) # Relative
ac1cb8d3
VS
43613 if test -f "$f"; then
43614 # Build tree
43615 echo "$f"
43616 elif test -f "$srcdir/$f"; then
43617 # Source tree
43618 echo "$srcdir/$f"
43619 else
43620 # /dev/null tree
43621 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43622echo "$as_me: error: cannot find input file: $f" >&2;}
43623 { (exit 1); exit 1; }; }
ac1cb8d3 43624 fi;;
a848cd7e
SC
43625 esac
43626 done` || { (exit 1); exit 1; }
43627 # Remove the trailing spaces.
ac1cb8d3 43628 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
43629
43630_ACEOF
43631
43632# Transform confdefs.h into two sed scripts, `conftest.defines' and
43633# `conftest.undefs', that substitutes the proper values into
43634# config.h.in to produce config.h. The first handles `#define'
43635# templates, and the second `#undef' templates.
43636# And first: Protect against being on the right side of a sed subst in
43637# config.status. Protect against being in an unquoted here document
43638# in config.status.
43639rm -f conftest.defines conftest.undefs
43640# Using a here document instead of a string reduces the quoting nightmare.
43641# Putting comments in sed scripts is not portable.
43642#
43643# `end' is used to avoid that the second main sed command (meant for
43644# 0-ary CPP macros) applies to n-ary macro definitions.
43645# See the Autoconf documentation for `clear'.
43646cat >confdef2sed.sed <<\_ACEOF
43647s/[\\&,]/\\&/g
43648s,[\\$`],\\&,g
43649t clear
43650: clear
ac1cb8d3 43651s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 43652t end
ac1cb8d3 43653s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
43654: end
43655_ACEOF
43656# If some macros were called several times there might be several times
43657# the same #defines, which is useless. Nevertheless, we may not want to
43658# sort them, since we want the *last* AC-DEFINE to be honored.
43659uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43660sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43661rm -f confdef2sed.sed
43662
43663# This sed command replaces #undef with comments. This is necessary, for
43664# example, in the case of _POSIX_SOURCE, which is predefined and required
43665# on some systems where configure will not decide to define it.
43666cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 43667s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
43668_ACEOF
43669
43670# Break up conftest.defines because some shells have a limit on the size
43671# of here documents, and old seds have small limits too (100 cmds).
43672echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 43673echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
43674echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43675echo ' :' >>$CONFIG_STATUS
43676rm -f conftest.tail
43677while grep . conftest.defines >/dev/null
43678do
43679 # Write a limited-size here document to $tmp/defines.sed.
43680 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43681 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43682 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43683 # Work around the forget-to-reset-the-flag bug.
43684 echo 't clr' >>$CONFIG_STATUS
43685 echo ': clr' >>$CONFIG_STATUS
43686 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43687 echo 'CEOF
43688 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43689 rm -f $tmp/in
43690 mv $tmp/out $tmp/in
43691' >>$CONFIG_STATUS
43692 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43693 rm -f conftest.defines
43694 mv conftest.tail conftest.defines
43695done
43696rm -f conftest.defines
43697echo ' fi # grep' >>$CONFIG_STATUS
43698echo >>$CONFIG_STATUS
43699
43700# Break up conftest.undefs because some shells have a limit on the size
43701# of here documents, and old seds have small limits too (100 cmds).
43702echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43703rm -f conftest.tail
43704while grep . conftest.undefs >/dev/null
43705do
43706 # Write a limited-size here document to $tmp/undefs.sed.
43707 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43708 # Speed up: don't consider the non `#undef'
ac1cb8d3 43709 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43710 # Work around the forget-to-reset-the-flag bug.
43711 echo 't clr' >>$CONFIG_STATUS
43712 echo ': clr' >>$CONFIG_STATUS
43713 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43714 echo 'CEOF
43715 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43716 rm -f $tmp/in
43717 mv $tmp/out $tmp/in
43718' >>$CONFIG_STATUS
43719 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43720 rm -f conftest.undefs
43721 mv conftest.tail conftest.undefs
43722done
43723rm -f conftest.undefs
43724
43725cat >>$CONFIG_STATUS <<\_ACEOF
43726 # Let's still pretend it is `configure' which instantiates (i.e., don't
43727 # use $as_me), people would be surprised to read:
43728 # /* config.h. Generated by config.status. */
43729 if test x"$ac_file" = x-; then
43730 echo "/* Generated by configure. */" >$tmp/config.h
43731 else
43732 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43733 fi
43734 cat $tmp/in >>$tmp/config.h
43735 rm -f $tmp/in
43736 if test x"$ac_file" != x-; then
43737 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43738 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43739echo "$as_me: $ac_file is unchanged" >&6;}
43740 else
43741 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43742$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43743 X"$ac_file" : 'X\(//\)[^/]' \| \
43744 X"$ac_file" : 'X\(//\)$' \| \
43745 X"$ac_file" : 'X\(/\)' \| \
43746 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43747echo X"$ac_file" |
43748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43750 /^X\(\/\/\)$/{ s//\1/; q; }
43751 /^X\(\/\).*/{ s//\1/; q; }
43752 s/.*/./; q'`
43753 { if $as_mkdir_p; then
43754 mkdir -p "$ac_dir"
43755 else
43756 as_dir="$ac_dir"
43757 as_dirs=
43758 while test ! -d "$as_dir"; do
43759 as_dirs="$as_dir $as_dirs"
43760 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43761$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43762 X"$as_dir" : 'X\(//\)[^/]' \| \
43763 X"$as_dir" : 'X\(//\)$' \| \
43764 X"$as_dir" : 'X\(/\)' \| \
43765 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43766echo X"$as_dir" |
43767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43769 /^X\(\/\/\)$/{ s//\1/; q; }
43770 /^X\(\/\).*/{ s//\1/; q; }
43771 s/.*/./; q'`
43772 done
43773 test ! -n "$as_dirs" || mkdir $as_dirs
43774 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43775echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43776 { (exit 1); exit 1; }; }; }
43777
43778 rm -f $ac_file
43779 mv $tmp/config.h $ac_file
43780 fi
43781 else
43782 cat $tmp/config.h
43783 rm -f $tmp/config.h
43784 fi
43785done
43786_ACEOF
43787cat >>$CONFIG_STATUS <<\_ACEOF
43788
43789#
43790# CONFIG_COMMANDS section.
43791#
43792for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43793 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43794 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43795 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43796$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43797 X"$ac_dest" : 'X\(//\)[^/]' \| \
43798 X"$ac_dest" : 'X\(//\)$' \| \
43799 X"$ac_dest" : 'X\(/\)' \| \
43800 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43801echo X"$ac_dest" |
43802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43803 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43804 /^X\(\/\/\)$/{ s//\1/; q; }
43805 /^X\(\/\).*/{ s//\1/; q; }
43806 s/.*/./; q'`
ac1cb8d3
VS
43807 { if $as_mkdir_p; then
43808 mkdir -p "$ac_dir"
43809 else
43810 as_dir="$ac_dir"
43811 as_dirs=
43812 while test ! -d "$as_dir"; do
43813 as_dirs="$as_dir $as_dirs"
43814 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43815$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43816 X"$as_dir" : 'X\(//\)[^/]' \| \
43817 X"$as_dir" : 'X\(//\)$' \| \
43818 X"$as_dir" : 'X\(/\)' \| \
43819 . : '\(.\)' 2>/dev/null ||
43820echo X"$as_dir" |
43821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43823 /^X\(\/\/\)$/{ s//\1/; q; }
43824 /^X\(\/\).*/{ s//\1/; q; }
43825 s/.*/./; q'`
43826 done
43827 test ! -n "$as_dirs" || mkdir $as_dirs
43828 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43829echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43830 { (exit 1); exit 1; }; }; }
43831
a848cd7e
SC
43832 ac_builddir=.
43833
43834if test "$ac_dir" != .; then
43835 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43836 # A "../" for each directory in $ac_dir_suffix.
43837 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43838else
43839 ac_dir_suffix= ac_top_builddir=
43840fi
43841
43842case $srcdir in
43843 .) # No --srcdir option. We are building in place.
43844 ac_srcdir=.
43845 if test -z "$ac_top_builddir"; then
43846 ac_top_srcdir=.
43847 else
43848 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43849 fi ;;
43850 [\\/]* | ?:[\\/]* ) # Absolute path.
43851 ac_srcdir=$srcdir$ac_dir_suffix;
43852 ac_top_srcdir=$srcdir ;;
43853 *) # Relative path.
43854 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43855 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43856esac
ac1cb8d3
VS
43857
43858# Do not use `cd foo && pwd` to compute absolute paths, because
43859# the directories may not exist.
43860case `pwd` in
43861.) ac_abs_builddir="$ac_dir";;
43862*)
43863 case "$ac_dir" in
43864 .) ac_abs_builddir=`pwd`;;
43865 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43866 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43867 esac;;
43868esac
43869case $ac_abs_builddir in
43870.) ac_abs_top_builddir=${ac_top_builddir}.;;
43871*)
43872 case ${ac_top_builddir}. in
43873 .) ac_abs_top_builddir=$ac_abs_builddir;;
43874 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43875 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43876 esac;;
43877esac
43878case $ac_abs_builddir in
43879.) ac_abs_srcdir=$ac_srcdir;;
43880*)
43881 case $ac_srcdir in
43882 .) ac_abs_srcdir=$ac_abs_builddir;;
43883 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43884 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43885 esac;;
43886esac
43887case $ac_abs_builddir in
43888.) ac_abs_top_srcdir=$ac_top_srcdir;;
43889*)
43890 case $ac_top_srcdir in
43891 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43892 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43893 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43894 esac;;
43895esac
a848cd7e
SC
43896
43897
43898 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43899echo "$as_me: executing $ac_dest commands" >&6;}
43900 case $ac_dest in
43901 default )
43902 if test ! -h wx-config; then
43903 chmod +x wx-config
43904 mv wx-config wx${TOOLCHAIN_NAME}-config
43905 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
43906 fi
43907
43908 if test ! -d lib; then
43909 mkdir lib
43910 fi
43911 if test ! -d lib/wx; then
43912 mkdir lib/wx
43913 fi
43914 if test ! -d lib/wx/include; then
43915 mkdir lib/wx/include
43916 fi
43917 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
43918 mkdir lib/wx/include/${TOOLCHAIN_NAME}
43919 fi
43920 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
43921 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
43922 fi
43923 if test -f setup.h; then
43924 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
43925 fi
43926 ;;
43927 esac
43928done
43929_ACEOF
43930
43931cat >>$CONFIG_STATUS <<\_ACEOF
43932
43933{ (exit 0); exit 0; }
43934_ACEOF
43935chmod +x $CONFIG_STATUS
43936ac_clean_files=$ac_clean_files_save
43937
43938
43939# configure is writing to config.log, and then calls config.status.
43940# config.status does its own redirection, appending to config.log.
43941# Unfortunately, on DOS this fails, as config.log is still kept open
43942# by configure, so config.status won't be able to write to it; its
43943# output is simply discarded. So we exec the FD to /dev/null,
43944# effectively closing config.log, so it can be properly (re)opened and
43945# appended to by config.status. When coming back to configure, we
43946# need to make the FD available again.
43947if test "$no_create" != yes; then
43948 ac_cs_success=:
43949 ac_config_status_args=
43950 test "$silent" = yes &&
43951 ac_config_status_args="$ac_config_status_args --quiet"
43952 exec 5>/dev/null
43953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43954 exec 5>>config.log
43955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43956 # would make configure fail if this is the last instruction.
43957 $ac_cs_success || { (exit 1); exit 1; }
43958fi
43959
43960#
43961# CONFIG_SUBDIRS section.
43962#
43963if test "$no_recursion" != yes; then
43964
43965 # Remove --cache-file and --srcdir arguments so they do not pile up.
43966 ac_sub_configure_args=
43967 ac_prev=
43968 for ac_arg in $ac_configure_args; do
43969 if test -n "$ac_prev"; then
43970 ac_prev=
43971 continue
43972 fi
43973 case $ac_arg in
43974 -cache-file | --cache-file | --cache-fil | --cache-fi \
43975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43976 ac_prev=cache_file ;;
43977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43979 | --c=*)
43980 ;;
43981 --config-cache | -C)
43982 ;;
43983 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43984 ac_prev=srcdir ;;
43985 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43986 ;;
43987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43988 ac_prev=prefix ;;
43989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43990 ;;
43991 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43992 esac
43993 done
43994
43995 # Always prepend --prefix to ensure using the same prefix
43996 # in subdir configurations.
43997 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43998
43999 ac_popdir=`pwd`
44000 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44001
44002 # Do not complain, so a configure script can configure whichever
44003 # parts of a large source tree are present.
44004 test -d $srcdir/$ac_dir || continue
44005
44006 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
44007echo "$as_me: configuring in $ac_dir" >&6;}
44008 { if $as_mkdir_p; then
44009 mkdir -p "$ac_dir"
44010 else
44011 as_dir="$ac_dir"
44012 as_dirs=
44013 while test ! -d "$as_dir"; do
44014 as_dirs="$as_dir $as_dirs"
44015 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44016$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44017 X"$as_dir" : 'X\(//\)[^/]' \| \
44018 X"$as_dir" : 'X\(//\)$' \| \
44019 X"$as_dir" : 'X\(/\)' \| \
44020 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44021echo X"$as_dir" |
44022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44024 /^X\(\/\/\)$/{ s//\1/; q; }
44025 /^X\(\/\).*/{ s//\1/; q; }
44026 s/.*/./; q'`
44027 done
44028 test ! -n "$as_dirs" || mkdir $as_dirs
44029 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44030echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44031 { (exit 1); exit 1; }; }; }
44032
44033 ac_builddir=.
44034
44035if test "$ac_dir" != .; then
44036 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44037 # A "../" for each directory in $ac_dir_suffix.
44038 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44039else
44040 ac_dir_suffix= ac_top_builddir=
44041fi
44042
44043case $srcdir in
44044 .) # No --srcdir option. We are building in place.
44045 ac_srcdir=.
44046 if test -z "$ac_top_builddir"; then
44047 ac_top_srcdir=.
44048 else
44049 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44050 fi ;;
44051 [\\/]* | ?:[\\/]* ) # Absolute path.
44052 ac_srcdir=$srcdir$ac_dir_suffix;
44053 ac_top_srcdir=$srcdir ;;
44054 *) # Relative path.
44055 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44056 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44057esac
ac1cb8d3
VS
44058
44059# Do not use `cd foo && pwd` to compute absolute paths, because
44060# the directories may not exist.
44061case `pwd` in
44062.) ac_abs_builddir="$ac_dir";;
44063*)
44064 case "$ac_dir" in
44065 .) ac_abs_builddir=`pwd`;;
44066 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44067 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44068 esac;;
44069esac
44070case $ac_abs_builddir in
44071.) ac_abs_top_builddir=${ac_top_builddir}.;;
44072*)
44073 case ${ac_top_builddir}. in
44074 .) ac_abs_top_builddir=$ac_abs_builddir;;
44075 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44076 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44077 esac;;
44078esac
44079case $ac_abs_builddir in
44080.) ac_abs_srcdir=$ac_srcdir;;
44081*)
44082 case $ac_srcdir in
44083 .) ac_abs_srcdir=$ac_abs_builddir;;
44084 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44085 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44086 esac;;
44087esac
44088case $ac_abs_builddir in
44089.) ac_abs_top_srcdir=$ac_top_srcdir;;
44090*)
44091 case $ac_top_srcdir in
44092 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44093 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44094 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44095 esac;;
44096esac
a848cd7e
SC
44097
44098
44099 cd $ac_dir
44100
44101 # Check for guested configure; otherwise get Cygnus style configure.
44102 if test -f $ac_srcdir/configure.gnu; then
44103 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
44104 elif test -f $ac_srcdir/configure; then
44105 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
44106 elif test -f $ac_srcdir/configure.in; then
44107 ac_sub_configure=$ac_configure
44108 else
44109 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
44110echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44111 ac_sub_configure=
44112 fi
44113
44114 # The recursion is here.
44115 if test -n "$ac_sub_configure"; then
44116 # Make the cache file name correct relative to the subdirectory.
44117 case $cache_file in
44118 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44119 *) # Relative path.
ac1cb8d3 44120 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
44121 esac
44122
44123 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
44124echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44125 # The eval makes quoting arguments work.
44126 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
44127 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
44128 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
44129echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
44130 { (exit 1); exit 1; }; }
44131 fi
44132
dcc1b6ad 44133 cd $ac_popdir
a848cd7e
SC
44134 done
44135fi
44136
44137
44138echo
77ffb593 44139echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 44140echo ""
77ffb593
JS
44141echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}"
44142echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 44143
77ffb593
JS
44144echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
44145echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
44146echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 44147
77ffb593
JS
44148echo " What level of wxWidgets compatibility should be enabled?"
44149echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
44150echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 44151
77ffb593 44152echo " Which libraries should wxWidgets use?"
a848cd7e
SC
44153echo " jpeg ${wxUSE_LIBJPEG-none}"
44154echo " png ${wxUSE_LIBPNG-none}"
44155echo " regex ${wxUSE_REGEX}"
44156echo " tiff ${wxUSE_LIBTIFF-none}"
44157if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
44158echo " xpm ${wxUSE_LIBXPM-none}"
44159fi
44160echo " zlib ${wxUSE_ZLIB}"
44161echo " odbc ${wxUSE_ODBC}"
44162echo " expat ${wxUSE_EXPAT}"
44163echo " libmspack ${wxUSE_LIBMSPACK}"
44164echo " sdl ${wxUSE_LIBSDL}"
44165
44166echo ""
44167