]> git.saurik.com Git - wxWidgets.git/blame - configure
otherwise all runloop dependent callbacks cannot work outside of the main thread
[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.
dcc1b6ad 4# Generated by GNU Autoconf 2.59 for wxWindows 2.5.1.
a848cd7e
SC
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
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
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
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
224 test -d ./-p && rmdir ./-p
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.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
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.
271PACKAGE_NAME='wxWindows'
272PACKAGE_TARNAME='wxwindows'
273PACKAGE_VERSION='2.5.1'
274PACKAGE_STRING='wxWindows 2.5.1'
275PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
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"
3fd9c298 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_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_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 \
675 localstatedir libdir includedir oldincludedir infodir mandir
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\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
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
797\`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
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
822 [$ac_default_prefix]
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
824 [PREFIX]
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
863 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
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
871 --enable-monolithic build wxWindows as single library
872 --enable-plugins build parts of wxWindows as loadable components
873 --enable-universal use wxWindows GUI controls instead of native ones
874 --enable-nanox use NanoX
875 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
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
892 --enable-compat22 enable wxWindows 2.2 compatibility
893 --disable-compat24 disable wxWindows 2.4 compatibility
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
934 --enable-wxprintfv use wxWindows implementation of vprintf()
935 --enable-zipstream use wxZipInputStream
936 --enable-gzstream use wxGzipInputStream
937 --enable-url use wxURL class
938 --enable-protocol use wxProtocol class
939 --enable-protocol-http HTTP support in wxProtocol
940 --enable-protocol-ftp FTP support in wxProtocol
941 --enable-protocol-file FILE support in wxProtocol
942 --enable-threads use threads
943 --enable-docview use document view architecture
944 --enable-help use help subsystem
945 --enable-mshtmlhelp use MS HTML Help (win32)
946 --enable-html use wxHTML sub-library
947 --enable-htmlhelp use wxHTML-based help
948 --enable-constraints use layout-constraints system
949 --enable-printarch use printing architecture
950 --enable-mdi use multiple document interface architecture
951 --enable-loggui use standard GUI logger
952 --enable-logwin use wxLogWindow
953 --enable-logdialog use wxLogDialog
954 --enable-postscript use wxPostscriptDC device context (default for gtk+)
955 --enable-prologio not available; see contrib
956 --enable-resources not available; see contrib
957 --enable-clipboard use wxClipboard class
958 --enable-dnd use Drag'n'Drop classes
959 --enable-metafile use win32 metafiles
960 --enable-controls use all usual controls
961 --enable-accel use accelerators
962 --enable-button use wxButton class
963 --enable-bmpbutton use wxBitmapButton class
964 --enable-calendar use wxCalendarCtrl class
965 --enable-caret use wxCaret class
966 --enable-checkbox use wxCheckBox class
967 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
968 --enable-choice use wxChoice class
969 --enable-combobox use wxComboBox class
970 --enable-display use wxDisplay class
971 --enable-gauge use wxGauge class
972 --enable-grid use wxGrid class
973 --enable-imaglist use wxImageList class
974 --enable-listbook use wxListbook class
975 --enable-listbox use wxListBox class
976 --enable-listctrl use wxListCtrl class
977 --enable-notebook use wxNotebook class
978 --enable-radiobox use wxRadioBox class
979 --enable-radiobtn use wxRadioButton class
980 --enable-sash use wxSashWindow class
981 --enable-scrollbar use wxScrollBar class and scrollable windows
982 --enable-slider use wxSlider class
983 --enable-spinbtn use wxSpinButton class
984 --enable-spinctrl use wxSpinCtrl class
985 --enable-splitter use wxSplitterWindow class
986 --enable-statbmp use wxStaticBitmap class
987 --enable-statbox use wxStaticBox class
988 --enable-statline use wxStaticLine class
989 --enable-stattext use wxStaticText class
990 --enable-statusbar use wxStatusBar class
991 --enable-tabdialog use wxTabControl class
992 --enable-textctrl use wxTextCtrl class
993 --enable-togglebtn use wxToggleButton class
994 --enable-toolbar use wxToolBar class
995 --enable-tbarnative use native wxToolBar class
996 --enable-tbarsmpl use wxToolBarSimple class
997 --enable-treectrl use wxTreeCtrl class
998 --enable-tipwindow use wxTipWindow class
999 --enable-popupwin use wxPopUpWindow class
1000 --enable-commondlg use all common dialogs
1001 --enable-choicedlg use wxChoiceDialog
1002 --enable-coldlg use wxColourDialog
1003 --enable-filedlg use wxFileDialog
1004 --enable-finddlg use wxFindReplaceDialog
1005 --enable-fontdlg use wxFontDialog
1006 --enable-dirdlg use wxDirDialog
1007 --enable-msgdlg use wxMessageDialog
1008 --enable-numberdlg use wxNumberEntryDialog
1009 --enable-splash use wxSplashScreen
1010 --enable-textdlg use wxTextDialog
1011 --enable-tipdlg use startup tips
1012 --enable-progressdlg use wxProgressDialog
1013 --enable-wizarddlg use wxWizard
1014 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1015 --enable-miniframe use wxMiniFrame class
1016 --enable-tooltips use wxToolTip class
1017 --enable-splines use spline drawing code
1018 --enable-validators use wxValidator and derived classes
1019 --enable-busyinfo use wxBusyInfo
1020 --enable-joystick use wxJoystick (Linux only)
1021 --enable-metafiles use wxMetaFile (Windows only)
1022 --enable-dragimage use wxDragImage
1023 --enable-accessibility enable accessibility support
1024 --enable-palette use wxPalette class
1025 --enable-image use wxImage class
1026 --enable-gif use gif images (GIF file format)
1027 --enable-pcx use pcx images (PCX file format)
1028 --enable-iff use iff images (IFF file format)
1029 --enable-pnm use pnm images (PNM file format)
1030 --enable-xpm use xpm images (XPM file format)
1031 --enable-icocur use Windows ICO and CUR formats
1032 --enable-official_build official build of wxWindows (win32 DLL only)
1033 --enable-vendor=VENDOR vendor name (win32 DLL only)
1034 --disable-largefile omit support for large files
1035 --disable-gtktest do not try to compile and run a test GTK+ program
1036 --disable-gtktest Do not try to compile and run a test GTK program
1037 --disable-sdltest Do not try to compile and run a test SDL program
1038 --enable-omf use OMF object format (OS/2)
1039 --disable-precomp-headers don't use precompiled headers even if compiler can
1040
1041Optional Packages:
1042 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1044 --with-gtk use GTK+
1045 --with-motif use Motif/Lesstif
1046 --with-mac use Mac OS X
1047 --with-cocoa use Cocoa
1048 --with-wine use Wine
1049 --with-msw use MS-Windows
1050 --with-pm use OS/2 Presentation Manager
1051 --with-mgl use SciTech MGL
1052 --with-microwin use MicroWindows
1053 --with-x11 use X11
1054 --with-libpng use libpng (PNG image format)
1055 --with-libjpeg use libjpeg (JPEG file format)
1056 --with-libtiff use libtiff (TIFF file format)
1057 --with-libxpm use libxpm (XPM file format)
1058 --with-libmspack use libmspack (CHM help files loading)
1059 --with-sdl use SDL for audio on Unix
1060 --with-opengl use OpenGL (or Mesa)
1061 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1062 --with-regex enable support for wxRegEx class
1063 --with-zlib use zlib for LZW compression
1064 --with-odbc use the IODBC and wxODBC classes
1065 --with-expat enable XML support using expat parser
1066 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1067 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1068 --with-x use the X Window System
1069 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1070 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1071 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1072 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1073 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1074
1075Some influential environment variables:
dcc1b6ad
VS
1076 CC C compiler command
1077 CFLAGS C compiler flags
1078 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1079 nonstandard directory <lib dir>
1080 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1081 headers in a nonstandard directory <include dir>
1082 CPP C preprocessor
1083 CXX C++ compiler command
1084 CXXFLAGS C++ compiler flags
1085 CXXCPP C++ preprocessor
a848cd7e
SC
1086
1087Use these variables to override the choices made by `configure' or to help
1088it to find libraries and programs with nonstandard names/locations.
1089
1090Report bugs to <wx-dev@lists.wxwindows.org>.
1091_ACEOF
1092fi
1093
1094if test "$ac_init_help" = "recursive"; then
1095 # If there are subdirs, report their specific --help.
1096 ac_popdir=`pwd`
1097 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1098 test -d $ac_dir || continue
1099 ac_builddir=.
1100
1101if test "$ac_dir" != .; then
1102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1103 # A "../" for each directory in $ac_dir_suffix.
1104 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1105else
1106 ac_dir_suffix= ac_top_builddir=
1107fi
1108
1109case $srcdir in
1110 .) # No --srcdir option. We are building in place.
1111 ac_srcdir=.
1112 if test -z "$ac_top_builddir"; then
1113 ac_top_srcdir=.
1114 else
1115 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1116 fi ;;
1117 [\\/]* | ?:[\\/]* ) # Absolute path.
1118 ac_srcdir=$srcdir$ac_dir_suffix;
1119 ac_top_srcdir=$srcdir ;;
1120 *) # Relative path.
1121 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1122 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1123esac
1124
1125# Do not use `cd foo && pwd` to compute absolute paths, because
1126# the directories may not exist.
1127case `pwd` in
1128.) ac_abs_builddir="$ac_dir";;
1129*)
1130 case "$ac_dir" in
1131 .) ac_abs_builddir=`pwd`;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1133 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1134 esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_builddir=${ac_top_builddir}.;;
1138*)
1139 case ${ac_top_builddir}. in
1140 .) ac_abs_top_builddir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1142 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1143 esac;;
1144esac
1145case $ac_abs_builddir in
1146.) ac_abs_srcdir=$ac_srcdir;;
1147*)
1148 case $ac_srcdir in
1149 .) ac_abs_srcdir=$ac_abs_builddir;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1151 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1152 esac;;
1153esac
1154case $ac_abs_builddir in
1155.) ac_abs_top_srcdir=$ac_top_srcdir;;
1156*)
1157 case $ac_top_srcdir in
1158 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1160 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1161 esac;;
1162esac
1163
1164 cd $ac_dir
1165 # Check for guested configure; otherwise get Cygnus style configure.
1166 if test -f $ac_srcdir/configure.gnu; then
1167 echo
1168 $SHELL $ac_srcdir/configure.gnu --help=recursive
1169 elif test -f $ac_srcdir/configure; then
1170 echo
1171 $SHELL $ac_srcdir/configure --help=recursive
1172 elif test -f $ac_srcdir/configure.ac ||
1173 test -f $ac_srcdir/configure.in; then
1174 echo
1175 $ac_configure --help
1176 else
1177 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 fi
dcc1b6ad 1179 cd $ac_popdir
a848cd7e
SC
1180 done
1181fi
1182
1183test -n "$ac_init_help" && exit 0
1184if $ac_init_version; then
1185 cat <<\_ACEOF
1186wxWindows configure 2.5.1
dcc1b6ad 1187generated by GNU Autoconf 2.59
a848cd7e
SC
1188
1189Copyright (C) 2003 Free Software Foundation, Inc.
1190This configure script is free software; the Free Software Foundation
1191gives unlimited permission to copy, distribute and modify it.
1192_ACEOF
1193 exit 0
1194fi
1195exec 5>config.log
1196cat >&5 <<_ACEOF
1197This file contains any messages produced by compilers while
1198running configure, to aid debugging if configure makes a mistake.
1199
1200It was created by wxWindows $as_me 2.5.1, which was
dcc1b6ad 1201generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1202
1203 $ $0 $@
1204
1205_ACEOF
1206{
1207cat <<_ASUNAME
1208## --------- ##
1209## Platform. ##
1210## --------- ##
1211
1212hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1213uname -m = `(uname -m) 2>/dev/null || echo unknown`
1214uname -r = `(uname -r) 2>/dev/null || echo unknown`
1215uname -s = `(uname -s) 2>/dev/null || echo unknown`
1216uname -v = `(uname -v) 2>/dev/null || echo unknown`
1217
1218/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1219/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1220
1221/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1222/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1223/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1224hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1225/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1226/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1227/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1228
1229_ASUNAME
1230
1231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1232for as_dir in $PATH
1233do
1234 IFS=$as_save_IFS
1235 test -z "$as_dir" && as_dir=.
1236 echo "PATH: $as_dir"
1237done
1238
1239} >&5
1240
1241cat >&5 <<_ACEOF
1242
1243
1244## ----------- ##
1245## Core tests. ##
1246## ----------- ##
1247
1248_ACEOF
1249
1250
1251# Keep a trace of the command line.
1252# Strip out --no-create and --no-recursion so they do not pile up.
1253# Strip out --silent because we don't want to record it for future runs.
1254# Also quote any args containing shell meta-characters.
1255# Make two passes to allow for proper duplicate-argument suppression.
1256ac_configure_args=
1257ac_configure_args0=
1258ac_configure_args1=
1259ac_sep=
1260ac_must_keep_next=false
1261for ac_pass in 1 2
1262do
1263 for ac_arg
1264 do
1265 case $ac_arg in
1266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268 | -silent | --silent | --silen | --sile | --sil)
1269 continue ;;
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 esac
1273 case $ac_pass in
1274 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1275 2)
1276 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1277 if test $ac_must_keep_next = true; then
1278 ac_must_keep_next=false # Got value, back to normal.
1279 else
1280 case $ac_arg in
1281 *=* | --config-cache | -C | -disable-* | --disable-* \
1282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1284 | -with-* | --with-* | -without-* | --without-* | --x)
1285 case "$ac_configure_args0 " in
1286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1287 esac
1288 ;;
1289 -* ) ac_must_keep_next=true ;;
1290 esac
1291 fi
1292 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1293 # Get rid of the leading space.
1294 ac_sep=" "
1295 ;;
1296 esac
1297 done
1298done
1299$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1300$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1301
1302# When interrupted or exit'd, cleanup temporary files, and complete
1303# config.log. We remove comments because anyway the quotes in there
1304# would cause problems or look ugly.
1305# WARNING: Be sure not to use single quotes in there, as some shells,
1306# such as our DU 5.0 friend, will then `close' the trap.
1307trap 'exit_status=$?
1308 # Save into config.log some information that might help in debugging.
1309 {
1310 echo
1311
1312 cat <<\_ASBOX
1313## ---------------- ##
1314## Cache variables. ##
1315## ---------------- ##
1316_ASBOX
1317 echo
1318 # The following way of writing the cache mishandles newlines in values,
1319{
1320 (set) 2>&1 |
1321 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1322 *ac_space=\ *)
1323 sed -n \
1324 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1326 ;;
1327 *)
1328 sed -n \
1329 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1330 ;;
1331 esac;
1332}
1333 echo
1334
1335 cat <<\_ASBOX
1336## ----------------- ##
1337## Output variables. ##
1338## ----------------- ##
1339_ASBOX
1340 echo
1341 for ac_var in $ac_subst_vars
1342 do
1343 eval ac_val=$`echo $ac_var`
1344 echo "$ac_var='"'"'$ac_val'"'"'"
1345 done | sort
1346 echo
1347
1348 if test -n "$ac_subst_files"; then
1349 cat <<\_ASBOX
1350## ------------- ##
1351## Output files. ##
1352## ------------- ##
1353_ASBOX
1354 echo
1355 for ac_var in $ac_subst_files
1356 do
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1359 done | sort
1360 echo
1361 fi
1362
1363 if test -s confdefs.h; then
1364 cat <<\_ASBOX
1365## ----------- ##
1366## confdefs.h. ##
1367## ----------- ##
1368_ASBOX
1369 echo
1370 sed "/^$/d" confdefs.h | sort
1371 echo
1372 fi
1373 test "$ac_signal" != 0 &&
1374 echo "$as_me: caught signal $ac_signal"
1375 echo "$as_me: exit $exit_status"
1376 } >&5
1377 rm -f core *.core &&
1378 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1379 exit $exit_status
1380 ' 0
1381for ac_signal in 1 2 13 15; do
1382 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1383done
1384ac_signal=0
1385
1386# confdefs.h avoids OS command line length limits that DEFS can exceed.
1387rm -rf conftest* confdefs.h
1388# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1389echo >confdefs.h
1390
1391# Predefined preprocessor variables.
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_NAME "$PACKAGE_NAME"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_VERSION "$PACKAGE_VERSION"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_STRING "$PACKAGE_STRING"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1415_ACEOF
1416
1417
1418# Let the site file select an alternate cache file if it wants to.
1419# Prefer explicitly selected file to automatically selected ones.
1420if test -z "$CONFIG_SITE"; then
1421 if test "x$prefix" != xNONE; then
1422 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1423 else
1424 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1425 fi
1426fi
1427for ac_site_file in $CONFIG_SITE; do
1428 if test -r "$ac_site_file"; then
1429 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1430echo "$as_me: loading site script $ac_site_file" >&6;}
1431 sed 's/^/| /' "$ac_site_file" >&5
1432 . "$ac_site_file"
1433 fi
1434done
1435
1436if test -r "$cache_file"; then
1437 # Some versions of bash will fail to source /dev/null (special
1438 # files actually), so we avoid doing that.
1439 if test -f "$cache_file"; then
1440 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1441echo "$as_me: loading cache $cache_file" >&6;}
1442 case $cache_file in
1443 [\\/]* | ?:[\\/]* ) . $cache_file;;
1444 *) . ./$cache_file;;
1445 esac
1446 fi
1447else
1448 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1449echo "$as_me: creating cache $cache_file" >&6;}
1450 >$cache_file
1451fi
1452
1453# Check that the precious variables saved in the cache have kept the same
1454# value.
1455ac_cache_corrupted=false
1456for ac_var in `(set) 2>&1 |
1457 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1458 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1459 eval ac_new_set=\$ac_env_${ac_var}_set
1460 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1461 eval ac_new_val="\$ac_env_${ac_var}_value"
1462 case $ac_old_set,$ac_new_set in
1463 set,)
1464 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1465echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1466 ac_cache_corrupted=: ;;
1467 ,set)
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1469echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1471 ,);;
1472 *)
1473 if test "x$ac_old_val" != "x$ac_new_val"; then
1474 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1475echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1476 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1477echo "$as_me: former value: $ac_old_val" >&2;}
1478 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1479echo "$as_me: current value: $ac_new_val" >&2;}
1480 ac_cache_corrupted=:
1481 fi;;
1482 esac
1483 # Pass precious variables to config.status.
1484 if test "$ac_new_set" = set; then
1485 case $ac_new_val in
1486 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1487 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1488 *) ac_arg=$ac_var=$ac_new_val ;;
1489 esac
1490 case " $ac_configure_args " in
1491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1492 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1493 esac
1494 fi
1495done
1496if $ac_cache_corrupted; then
1497 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1498echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1499 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1500echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1501 { (exit 1); exit 1; }; }
1502fi
1503
1504ac_ext=c
1505ac_cpp='$CPP $CPPFLAGS'
1506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1508ac_compiler_gnu=$ac_cv_c_compiler_gnu
1509
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
1539ac_aux_dir=
1540for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1541 if test -f $ac_dir/install-sh; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install-sh -c"
1544 break
1545 elif test -f $ac_dir/install.sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install.sh -c"
1548 break
1549 elif test -f $ac_dir/shtool; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 break
1553 fi
1554done
1555if test -z "$ac_aux_dir"; then
1556 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1557echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1558 { (exit 1); exit 1; }; }
1559fi
1560ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563
1564# Make sure we can run config.sub.
1565$ac_config_sub sun4 >/dev/null 2>&1 ||
1566 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1567echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1568 { (exit 1); exit 1; }; }
1569
1570echo "$as_me:$LINENO: checking build system type" >&5
1571echo $ECHO_N "checking build system type... $ECHO_C" >&6
1572if test "${ac_cv_build+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574else
1575 ac_cv_build_alias=$build_alias
1576test -z "$ac_cv_build_alias" &&
1577 ac_cv_build_alias=`$ac_config_guess`
1578test -z "$ac_cv_build_alias" &&
1579 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1580echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1581 { (exit 1); exit 1; }; }
1582ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1584echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587fi
1588echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1589echo "${ECHO_T}$ac_cv_build" >&6
1590build=$ac_cv_build
1591build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
1595
1596echo "$as_me:$LINENO: checking host system type" >&5
1597echo $ECHO_N "checking host system type... $ECHO_C" >&6
1598if test "${ac_cv_host+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601 ac_cv_host_alias=$host_alias
1602test -z "$ac_cv_host_alias" &&
1603 ac_cv_host_alias=$ac_cv_build_alias
1604ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1605 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1606echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1607 { (exit 1); exit 1; }; }
1608
1609fi
1610echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1611echo "${ECHO_T}$ac_cv_host" >&6
1612host=$ac_cv_host
1613host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1614host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1615host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1616
1617
1618echo "$as_me:$LINENO: checking target system type" >&5
1619echo $ECHO_N "checking target system type... $ECHO_C" >&6
1620if test "${ac_cv_target+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1622else
1623 ac_cv_target_alias=$target_alias
1624test "x$ac_cv_target_alias" = "x" &&
1625 ac_cv_target_alias=$ac_cv_host_alias
1626ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1628echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1630
1631fi
1632echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1633echo "${ECHO_T}$ac_cv_target" >&6
1634target=$ac_cv_target
1635target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640# The aliases save the names the user supplied, while $host etc.
1641# will get canonicalized.
1642test -n "$target_alias" &&
1643 test "$program_prefix$program_suffix$program_transform_name" = \
1644 NONENONEs,x,x, &&
1645 program_prefix=${target_alias}-
1646
1647
1648
1649WX_MAJOR_VERSION_NUMBER=2
1650WX_MINOR_VERSION_NUMBER=5
1651WX_RELEASE_NUMBER=1
1652
1653WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1654WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1655
1656WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1657
1658WX_CURRENT=1
1659WX_REVISION=0
1660WX_AGE=0
1661
1662
1663
1664USE_UNIX=1
1665USE_OS2=0
1666USE_WIN32=0
1667USE_DOS=0
1668USE_BEOS=0
1669USE_MAC=0
1670
1671USE_AIX=
1672USE_BSD= USE_DARWIN= USE_FREEBSD=
1673USE_GNU= USE_HPUX=
1674USE_LINUX=
1675USE_NETBSD=
1676USE_OPENBSD=
1677USE_OSF= USE_SGI=
1678USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1679USE_ULTRIX=
1680USE_UNIXWARE=
1681
1682USE_ALPHA=
1683
1684NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1685
1686ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1687
1688DEFAULT_wxUSE_COCOA=0
1689DEFAULT_wxUSE_GTK=0
1690DEFAULT_wxUSE_MAC=0
1691DEFAULT_wxUSE_MGL=0
1692DEFAULT_wxUSE_MICROWIN=0
1693DEFAULT_wxUSE_MOTIF=0
1694DEFAULT_wxUSE_MSW=0
1695DEFAULT_wxUSE_PM=0
1696DEFAULT_wxUSE_X11=0
1697
1698DEFAULT_DEFAULT_wxUSE_COCOA=0
1699DEFAULT_DEFAULT_wxUSE_GTK=0
1700DEFAULT_DEFAULT_wxUSE_MAC=0
1701DEFAULT_DEFAULT_wxUSE_MGL=0
1702DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1703DEFAULT_DEFAULT_wxUSE_MOTIF=0
1704DEFAULT_DEFAULT_wxUSE_MSW=0
1705DEFAULT_DEFAULT_wxUSE_PM=0
1706DEFAULT_DEFAULT_wxUSE_X11=0
1707
1708PROGRAM_EXT=
1709SO_SUFFIX=so
1710SAMPLES_RPATH_FLAG=
1711SAMPLES_RPATH_POSTLINK=
1712
1713case "${host}" in
1714 *-hp-hpux* )
1715 USE_HPUX=1
1716 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1717 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1718 SO_SUFFIX=sl
1719 cat >>confdefs.h <<\_ACEOF
1720#define __HPUX__ 1
1721_ACEOF
1722
1723 ;;
1724 *-*-linux* )
1725 USE_LINUX=1
1726 cat >>confdefs.h <<\_ACEOF
1727#define __LINUX__ 1
1728_ACEOF
1729
1730 TMP=`uname -m`
1731 if test "x$TMP" = "xalpha"; then
1732 USE_ALPHA=1
1733 cat >>confdefs.h <<\_ACEOF
1734#define __ALPHA__ 1
1735_ACEOF
1736
1737 fi
1738 DEFAULT_DEFAULT_wxUSE_GTK=1
1739 ;;
1740 *-*-gnu* | *-*-k*bsd*-gnu )
1741 USE_GNU=1
1742 TMP=`uname -m`
1743 if test "x$TMP" = "xalpha"; then
1744 USE_ALPHA=1
1745 cat >>confdefs.h <<\_ACEOF
1746#define __ALPHA__ 1
1747_ACEOF
1748
1749 fi
1750 DEFAULT_DEFAULT_wxUSE_GTK=1
1751 ;;
1752 *-*-irix5* | *-*-irix6* )
1753 USE_SGI=1
1754 USE_SVR4=1
1755 cat >>confdefs.h <<\_ACEOF
1756#define __SGI__ 1
1757_ACEOF
1758
1759 cat >>confdefs.h <<\_ACEOF
1760#define __SVR4__ 1
1761_ACEOF
1762
1763 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1764 ;;
1765 *-*-solaris2* )
1766 USE_SUN=1
1767 USE_SOLARIS=1
1768 USE_SVR4=1
1769 cat >>confdefs.h <<\_ACEOF
1770#define __SUN__ 1
1771_ACEOF
1772
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SOLARIS__ 1
1775_ACEOF
1776
1777 cat >>confdefs.h <<\_ACEOF
1778#define __SVR4__ 1
1779_ACEOF
1780
1781 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1782 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1783 ;;
1784 *-*-sunos4* )
1785 USE_SUN=1
1786 USE_SUNOS=1
1787 USE_BSD=1
1788 cat >>confdefs.h <<\_ACEOF
1789#define __SUN__ 1
1790_ACEOF
1791
1792 cat >>confdefs.h <<\_ACEOF
1793#define __SUNOS__ 1
1794_ACEOF
1795
1796 cat >>confdefs.h <<\_ACEOF
1797#define __BSD__ 1
1798_ACEOF
1799
1800 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1801 ;;
1802 *-*-freebsd*)
1803 USE_BSD=1
1804 USE_FREEBSD=1
1805 cat >>confdefs.h <<\_ACEOF
1806#define __FREEBSD__ 1
1807_ACEOF
1808
1809 cat >>confdefs.h <<\_ACEOF
1810#define __BSD__ 1
1811_ACEOF
1812
1813 DEFAULT_DEFAULT_wxUSE_GTK=1
1814 ;;
1815 *-*-openbsd*)
1816 USE_BSD=1
1817 USE_OPENBSD=1
1818 cat >>confdefs.h <<\_ACEOF
1819#define __OPENBSD__ 1
1820_ACEOF
1821
1822 cat >>confdefs.h <<\_ACEOF
1823#define __BSD__ 1
1824_ACEOF
1825
1826 DEFAULT_DEFAULT_wxUSE_GTK=1
1827 ;;
1828 *-*-netbsd*)
1829 USE_BSD=1
1830 USE_NETBSD=1
1831 cat >>confdefs.h <<\_ACEOF
1832#define __NETBSD__ 1
1833_ACEOF
1834
1835 cat >>confdefs.h <<\_ACEOF
1836#define __BSD__ 1
1837_ACEOF
1838
1839 DEFAULT_DEFAULT_wxUSE_GTK=1
1840 ;;
1841 *-*-osf* )
1842 USE_ALPHA=1
1843 USE_OSF=1
1844 cat >>confdefs.h <<\_ACEOF
1845#define __ALPHA__ 1
1846_ACEOF
1847
1848 cat >>confdefs.h <<\_ACEOF
1849#define __OSF__ 1
1850_ACEOF
1851
1852 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1853 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1854 ;;
1855 *-*-dgux5* )
1856 USE_ALPHA=1
1857 USE_SVR4=1
1858 cat >>confdefs.h <<\_ACEOF
1859#define __ALPHA__ 1
1860_ACEOF
1861
1862 cat >>confdefs.h <<\_ACEOF
1863#define __SVR4__ 1
1864_ACEOF
1865
1866 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1867 ;;
1868 *-*-sysv5* )
1869 USE_SYSV=1
1870 USE_SVR4=1
1871 cat >>confdefs.h <<\_ACEOF
1872#define __SYSV__ 1
1873_ACEOF
1874
1875 cat >>confdefs.h <<\_ACEOF
1876#define __SVR4__ 1
1877_ACEOF
1878
1879 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1880 ;;
1881 *-*-aix* )
1882 USE_AIX=1
1883 USE_SYSV=1
1884 USE_SVR4=1
1885 SO_SUFFIX=a
1886 cat >>confdefs.h <<\_ACEOF
1887#define __AIX__ 1
1888_ACEOF
1889
1890 cat >>confdefs.h <<\_ACEOF
1891#define __SYSV__ 1
1892_ACEOF
1893
1894 cat >>confdefs.h <<\_ACEOF
1895#define __SVR4__ 1
1896_ACEOF
1897
1898 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1899 ;;
1900
1901 *-*-*UnixWare*)
1902 USE_SYSV=1
1903 USE_SVR4=1
1904 USE_UNIXWARE=1
1905 cat >>confdefs.h <<\_ACEOF
1906#define __UNIXWARE__ 1
1907_ACEOF
1908
1909 ;;
1910
1911 *-*-cygwin* | *-*-mingw32* )
1912 SO_SUFFIX=dll
1913 PROGRAM_EXT=".exe"
1914 RESCOMP=windres
1915 DEFAULT_DEFAULT_wxUSE_MSW=1
1916 ;;
1917
1918 *-pc-msdosdjgpp )
1919 USE_UNIX=0
1920 USE_DOS=1
1921 cat >>confdefs.h <<\_ACEOF
1922#define __DOS__ 1
1923_ACEOF
1924
1925 PROGRAM_EXT=".exe"
1926 DEFAULT_DEFAULT_wxUSE_MGL=1
1927 LIBS="$LIBS -lstdc++"
1928 ;;
1929
1930 *-pc-os2_emx | *-pc-os2-emx )
1931 cat >>confdefs.h <<\_ACEOF
1932#define __EMX__ 1
1933_ACEOF
1934
1935 USE_OS2=1
1936 cat >>confdefs.h <<\_ACEOF
1937#define __OS2__ 1
1938_ACEOF
1939
1940 PROGRAM_EXT=".exe"
1941 DEFAULT_DEFAULT_wxUSE_PM=1
1942 CXX=gcc
1943 LDFLAGS="$LDFLAGS -Zcrtdll"
1944 ac_executable_extensions=".exe"
1945 export ac_executable_extensions
1946 ac_save_IFS="$IFS"
1947 IFS='\\'
1948 ac_TEMP_PATH=
1949 for ac_dir in $PATH; do
1950 IFS=$ac_save_IFS
1951 if test -z "$ac_TEMP_PATH"; then
1952 ac_TEMP_PATH="$ac_dir"
1953 else
1954 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1955 fi
1956 done
1957 export PATH="$ac_TEMP_PATH"
1958 unset ac_TEMP_PATH
1959 ;;
1960
1961 powerpc-*-darwin* )
1962 USE_BSD=1
1963 USE_DARWIN=1
1964 SO_SUFFIX=dylib
1965 cat >>confdefs.h <<\_ACEOF
1966#define __BSD__ 1
1967_ACEOF
1968
1969 cat >>confdefs.h <<\_ACEOF
1970#define __DARWIN__ 1
1971_ACEOF
1972
1973 cat >>confdefs.h <<\_ACEOF
1974#define __POWERPC__ 1
1975_ACEOF
1976
1977 cat >>confdefs.h <<\_ACEOF
1978#define TARGET_CARBON 1
1979_ACEOF
1980
1981 DEFAULT_DEFAULT_wxUSE_MAC=1
1982 ;;
1983
1984 *-*-beos* )
1985 USE_BEOS=1
1986 cat >>confdefs.h <<\_ACEOF
1987#define __BEOS__ 1
1988_ACEOF
1989
1990 ;;
1991
1992 *)
1993 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1994echo "$as_me: error: unknown system type ${host}." >&2;}
1995 { (exit 1); exit 1; }; }
1996esac
1997
1998
1999
2000
2001 wx_arg_cache_file="configarg.cache"
2002 echo "loading argument cache $wx_arg_cache_file"
2003 rm -f ${wx_arg_cache_file}.tmp
2004 touch ${wx_arg_cache_file}.tmp
2005 touch ${wx_arg_cache_file}
2006
2007
2008DEBUG_CONFIGURE=0
2009if test $DEBUG_CONFIGURE = 1; then
2010 DEFAULT_wxUSE_UNIVERSAL=no
2011 DEFAULT_wxUSE_STL=no
2012
2013 DEFAULT_wxUSE_NANOX=no
2014
2015 DEFAULT_wxUSE_THREADS=yes
2016
2017 DEFAULT_wxUSE_SHARED=yes
2018 DEFAULT_wxUSE_OPTIMISE=no
2019 DEFAULT_wxUSE_PROFILE=no
2020 DEFAULT_wxUSE_NO_DEPS=no
2021 DEFAULT_wxUSE_NO_RTTI=no
2022 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2023 DEFAULT_wxUSE_PERMISSIVE=no
2024 DEFAULT_wxUSE_DEBUG_FLAG=yes
2025 DEFAULT_wxUSE_DEBUG_INFO=yes
2026 DEFAULT_wxUSE_DEBUG_GDB=yes
2027 DEFAULT_wxUSE_MEM_TRACING=no
2028 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2029 DEFAULT_wxUSE_DMALLOC=no
2030 DEFAULT_wxUSE_APPLE_IEEE=no
2031
2032 DEFAULT_wxUSE_EXCEPTIONS=no
2033 DEFAULT_wxUSE_LOG=yes
2034 DEFAULT_wxUSE_LOGWINDOW=no
2035 DEFAULT_wxUSE_LOGGUI=no
2036 DEFAULT_wxUSE_LOGDIALOG=no
2037
2038 DEFAULT_wxUSE_GUI=yes
2039 DEFAULT_wxUSE_CONTROLS=no
2040
2041 DEFAULT_wxUSE_REGEX=no
2042 DEFAULT_wxUSE_XML=no
2043 DEFAULT_wxUSE_EXPAT=no
2044 DEFAULT_wxUSE_ZLIB=no
2045 DEFAULT_wxUSE_LIBPNG=no
2046 DEFAULT_wxUSE_LIBJPEG=no
2047 DEFAULT_wxUSE_LIBTIFF=no
2048 DEFAULT_wxUSE_LIBXPM=no
2049 DEFAULT_wxUSE_LIBMSPACK=no
2050 DEFAULT_wxUSE_LIBSDL=no
2051 DEFAULT_wxUSE_ODBC=no
2052 DEFAULT_wxUSE_OPENGL=no
2053
2054 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2055 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2056 DEFAULT_wxUSE_STD_IOSTREAM=no
2057 DEFAULT_wxUSE_CMDLINE_PARSER=no
2058 DEFAULT_wxUSE_DATETIME=no
2059 DEFAULT_wxUSE_TIMER=no
2060 DEFAULT_wxUSE_STOPWATCH=no
2061 DEFAULT_wxUSE_FILE=no
2062 DEFAULT_wxUSE_FFILE=no
2063 DEFAULT_wxUSE_TEXTBUFFER=no
2064 DEFAULT_wxUSE_TEXTFILE=no
2065 DEFAULT_wxUSE_SOUND=no
2066 DEFAULT_wxUSE_INTL=no
2067 DEFAULT_wxUSE_CONFIG=no
2068 DEFAULT_wxUSE_FONTMAP=no
2069 DEFAULT_wxUSE_STREAMS=no
2070 DEFAULT_wxUSE_SOCKETS=no
2071 DEFAULT_wxUSE_OLE=no
2072 DEFAULT_wxUSE_DATAOBJ=no
2073 DEFAULT_wxUSE_DIALUP_MANAGER=no
2074 DEFAULT_wxUSE_JOYSTICK=no
2075 DEFAULT_wxUSE_DYNLIB_CLASS=no
2076 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2077 DEFAULT_wxUSE_LONGLONG=no
2078 DEFAULT_wxUSE_GEOMETRY=no
2079
2080 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2081 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2082 DEFAULT_wxUSE_POSTSCRIPT=no
2083
2084 DEFAULT_wxUSE_CLIPBOARD=no
2085 DEFAULT_wxUSE_TOOLTIPS=no
2086 DEFAULT_wxUSE_DRAG_AND_DROP=no
2087 DEFAULT_wxUSE_DRAGIMAGE=no
2088 DEFAULT_wxUSE_SPLINES=no
2089
2090 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2091 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2092 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2093
2094 DEFAULT_wxUSE_RESOURCES=no
2095 DEFAULT_wxUSE_CONSTRAINTS=no
2096 DEFAULT_wxUSE_IPC=no
2097 DEFAULT_wxUSE_HELP=no
2098 DEFAULT_wxUSE_MS_HTML_HELP=no
2099 DEFAULT_wxUSE_WXHTML_HELP=no
2100 DEFAULT_wxUSE_TREELAYOUT=no
2101 DEFAULT_wxUSE_METAFILE=no
2102 DEFAULT_wxUSE_MIMETYPE=no
2103 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2104 DEFAULT_wxUSE_PROTOCOL=no
2105 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2106 DEFAULT_wxUSE_PROTOCOL_FTP=no
2107 DEFAULT_wxUSE_PROTOCOL_FILE=no
2108 DEFAULT_wxUSE_URL=no
2109
2110 DEFAULT_wxUSE_COMMONDLGS=no
2111 DEFAULT_wxUSE_CHOICEDLG=no
2112 DEFAULT_wxUSE_COLOURDLG=no
2113 DEFAULT_wxUSE_DIRDLG=no
2114 DEFAULT_wxUSE_FILEDLG=no
2115 DEFAULT_wxUSE_FINDREPLDLG=no
2116 DEFAULT_wxUSE_FONTDLG=no
2117 DEFAULT_wxUSE_MSGDLG=no
2118 DEFAULT_wxUSE_NUMBERDLG=no
2119 DEFAULT_wxUSE_TEXTDLG=no
2120 DEFAULT_wxUSE_SPLASH=no
2121 DEFAULT_wxUSE_STARTUP_TIPS=no
2122 DEFAULT_wxUSE_PROGRESSDLG=no
2123 DEFAULT_wxUSE_WIZARDDLG=no
2124
2125 DEFAULT_wxUSE_MENUS=no
2126 DEFAULT_wxUSE_MINIFRAME=no
2127 DEFAULT_wxUSE_HTML=no
2128 DEFAULT_wxUSE_FILESYSTEM=no
2129 DEFAULT_wxUSE_FS_INET=no
2130 DEFAULT_wxUSE_FS_ZIP=no
2131 DEFAULT_wxUSE_BUSYINFO=no
2132 DEFAULT_wxUSE_ZIPSTREAM=no
2133 DEFAULT_wxUSE_GZSTREAM=no
2134 DEFAULT_wxUSE_VALIDATORS=no
2135
2136 DEFAULT_wxUSE_ACCEL=no
2137 DEFAULT_wxUSE_BUTTON=no
2138 DEFAULT_wxUSE_BMPBUTTON=no
2139 DEFAULT_wxUSE_CALCTRL=no
2140 DEFAULT_wxUSE_CARET=no
2141 DEFAULT_wxUSE_CHECKBOX=no
2142 DEFAULT_wxUSE_CHECKLST=no
2143 DEFAULT_wxUSE_CHOICE=no
2144 DEFAULT_wxUSE_COMBOBOX=no
2145 DEFAULT_wxUSE_DISPLAY=no
2146 DEFAULT_wxUSE_GAUGE=no
2147 DEFAULT_wxUSE_GRID=no
2148 DEFAULT_wxUSE_IMAGLIST=no
2149 DEFAULT_wxUSE_LISTBOOK=no
2150 DEFAULT_wxUSE_LISTBOX=no
2151 DEFAULT_wxUSE_LISTCTRL=no
2152 DEFAULT_wxUSE_NOTEBOOK=no
2153 DEFAULT_wxUSE_RADIOBOX=no
2154 DEFAULT_wxUSE_RADIOBTN=no
2155 DEFAULT_wxUSE_SASH=no
2156 DEFAULT_wxUSE_SCROLLBAR=no
2157 DEFAULT_wxUSE_SLIDER=no
2158 DEFAULT_wxUSE_SPINBTN=no
2159 DEFAULT_wxUSE_SPINCTRL=no
2160 DEFAULT_wxUSE_SPLITTER=no
2161 DEFAULT_wxUSE_STATBMP=no
2162 DEFAULT_wxUSE_STATBOX=no
2163 DEFAULT_wxUSE_STATLINE=no
2164 DEFAULT_wxUSE_STATTEXT=no
2165 DEFAULT_wxUSE_STATUSBAR=yes
2166 DEFAULT_wxUSE_TABDIALOG=no
2167 DEFAULT_wxUSE_TEXTCTRL=no
2168 DEFAULT_wxUSE_TOGGLEBTN=no
2169 DEFAULT_wxUSE_TOOLBAR=no
2170 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2171 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2172 DEFAULT_wxUSE_TREECTRL=no
2173 DEFAULT_wxUSE_POPUPWIN=no
2174 DEFAULT_wxUSE_TIPWINDOW=no
2175
2176 DEFAULT_wxUSE_UNICODE=no
2177 DEFAULT_wxUSE_UNICODE_MSLU=no
2178 DEFAULT_wxUSE_WCSRTOMBS=no
2179
2180 DEFAULT_wxUSE_PALETTE=no
2181 DEFAULT_wxUSE_IMAGE=no
2182 DEFAULT_wxUSE_GIF=no
2183 DEFAULT_wxUSE_PCX=no
2184 DEFAULT_wxUSE_PNM=no
2185 DEFAULT_wxUSE_IFF=no
2186 DEFAULT_wxUSE_XPM=no
2187 DEFAULT_wxUSE_ICO_CUR=no
2188 DEFAULT_wxUSE_ACCESSIBILITY=no
2189
2190 DEFAULT_wxUSE_MONOLITHIC=no
2191 DEFAULT_wxUSE_PLUGINS=no
2192 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2193else
2194 DEFAULT_wxUSE_UNIVERSAL=no
2195 DEFAULT_wxUSE_STL=no
2196
2197 DEFAULT_wxUSE_NANOX=no
2198
2199 DEFAULT_wxUSE_THREADS=yes
2200
2201 DEFAULT_wxUSE_SHARED=yes
2202 DEFAULT_wxUSE_OPTIMISE=yes
2203 DEFAULT_wxUSE_PROFILE=no
2204 DEFAULT_wxUSE_NO_DEPS=no
2205 DEFAULT_wxUSE_NO_RTTI=no
2206 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2207 DEFAULT_wxUSE_PERMISSIVE=no
2208 DEFAULT_wxUSE_DEBUG_FLAG=no
2209 DEFAULT_wxUSE_DEBUG_INFO=no
2210 DEFAULT_wxUSE_DEBUG_GDB=no
2211 DEFAULT_wxUSE_MEM_TRACING=no
2212 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2213 DEFAULT_wxUSE_DMALLOC=no
2214 DEFAULT_wxUSE_APPLE_IEEE=yes
2215
2216 DEFAULT_wxUSE_EXCEPTIONS=yes
2217 DEFAULT_wxUSE_LOG=yes
2218 DEFAULT_wxUSE_LOGWINDOW=yes
2219 DEFAULT_wxUSE_LOGGUI=yes
2220 DEFAULT_wxUSE_LOGDIALOG=yes
2221
2222 DEFAULT_wxUSE_GUI=yes
2223
2224 DEFAULT_wxUSE_REGEX=yes
2225 DEFAULT_wxUSE_XML=yes
2226 DEFAULT_wxUSE_EXPAT=yes
2227 DEFAULT_wxUSE_ZLIB=yes
2228 DEFAULT_wxUSE_LIBPNG=yes
2229 DEFAULT_wxUSE_LIBJPEG=yes
2230 DEFAULT_wxUSE_LIBTIFF=yes
2231 DEFAULT_wxUSE_LIBXPM=yes
2232 DEFAULT_wxUSE_LIBMSPACK=yes
2233 DEFAULT_wxUSE_LIBSDL=no
2234 DEFAULT_wxUSE_ODBC=no
2235 DEFAULT_wxUSE_OPENGL=no
2236
2237 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2238 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2239 DEFAULT_wxUSE_STD_IOSTREAM=no
2240 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2241 DEFAULT_wxUSE_DATETIME=yes
2242 DEFAULT_wxUSE_TIMER=yes
2243 DEFAULT_wxUSE_STOPWATCH=yes
2244 DEFAULT_wxUSE_FILE=yes
2245 DEFAULT_wxUSE_FFILE=yes
2246 DEFAULT_wxUSE_TEXTBUFFER=yes
2247 DEFAULT_wxUSE_TEXTFILE=yes
2248 DEFAULT_wxUSE_SOUND=yes
2249 DEFAULT_wxUSE_INTL=yes
2250 DEFAULT_wxUSE_CONFIG=yes
2251 DEFAULT_wxUSE_FONTMAP=yes
2252 DEFAULT_wxUSE_STREAMS=yes
2253 DEFAULT_wxUSE_SOCKETS=yes
2254 DEFAULT_wxUSE_OLE=yes
2255 DEFAULT_wxUSE_DATAOBJ=yes
2256 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2257 DEFAULT_wxUSE_JOYSTICK=yes
2258 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2259 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2260 DEFAULT_wxUSE_LONGLONG=yes
2261 DEFAULT_wxUSE_GEOMETRY=yes
2262
2263 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2264 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2265 DEFAULT_wxUSE_POSTSCRIPT=yes
2266
2267 DEFAULT_wxUSE_CLIPBOARD=yes
2268 DEFAULT_wxUSE_TOOLTIPS=yes
2269 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2270 DEFAULT_wxUSE_DRAGIMAGE=yes
2271 DEFAULT_wxUSE_SPLINES=yes
2272
2273 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2274 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2275 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2276
2277 DEFAULT_wxUSE_RESOURCES=no
2278 DEFAULT_wxUSE_CONSTRAINTS=yes
2279 DEFAULT_wxUSE_IPC=yes
2280 DEFAULT_wxUSE_HELP=yes
2281 DEFAULT_wxUSE_MS_HTML_HELP=yes
2282 DEFAULT_wxUSE_WXHTML_HELP=yes
2283 DEFAULT_wxUSE_TREELAYOUT=yes
2284 DEFAULT_wxUSE_METAFILE=yes
2285 DEFAULT_wxUSE_MIMETYPE=yes
2286 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2287 DEFAULT_wxUSE_PROTOCOL=yes
2288 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2289 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2290 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2291 DEFAULT_wxUSE_URL=yes
2292
2293 DEFAULT_wxUSE_COMMONDLGS=yes
2294 DEFAULT_wxUSE_CHOICEDLG=yes
2295 DEFAULT_wxUSE_COLOURDLG=yes
2296 DEFAULT_wxUSE_DIRDLG=yes
2297 DEFAULT_wxUSE_FILEDLG=yes
2298 DEFAULT_wxUSE_FINDREPLDLG=yes
2299 DEFAULT_wxUSE_FONTDLG=yes
2300 DEFAULT_wxUSE_MSGDLG=yes
2301 DEFAULT_wxUSE_NUMBERDLG=yes
2302 DEFAULT_wxUSE_TEXTDLG=yes
2303 DEFAULT_wxUSE_SPLASH=yes
2304 DEFAULT_wxUSE_STARTUP_TIPS=yes
2305 DEFAULT_wxUSE_PROGRESSDLG=yes
2306 DEFAULT_wxUSE_WIZARDDLG=yes
2307
2308 DEFAULT_wxUSE_MENUS=yes
2309 DEFAULT_wxUSE_MINIFRAME=yes
2310 DEFAULT_wxUSE_HTML=yes
2311 DEFAULT_wxUSE_FILESYSTEM=yes
2312 DEFAULT_wxUSE_FS_INET=yes
2313 DEFAULT_wxUSE_FS_ZIP=yes
2314 DEFAULT_wxUSE_BUSYINFO=yes
2315 DEFAULT_wxUSE_ZIPSTREAM=yes
2316 DEFAULT_wxUSE_GZSTREAM=yes
2317 DEFAULT_wxUSE_VALIDATORS=yes
2318
2319 DEFAULT_wxUSE_ACCEL=yes
2320 DEFAULT_wxUSE_BUTTON=yes
2321 DEFAULT_wxUSE_BMPBUTTON=yes
2322 DEFAULT_wxUSE_CALCTRL=yes
2323 DEFAULT_wxUSE_CARET=yes
2324 DEFAULT_wxUSE_CHECKBOX=yes
2325 DEFAULT_wxUSE_CHECKLST=yes
2326 DEFAULT_wxUSE_CHOICE=yes
2327 DEFAULT_wxUSE_COMBOBOX=yes
2328 DEFAULT_wxUSE_DISPLAY=yes
2329 DEFAULT_wxUSE_GAUGE=yes
2330 DEFAULT_wxUSE_GRID=yes
2331 DEFAULT_wxUSE_IMAGLIST=yes
2332 DEFAULT_wxUSE_LISTBOOK=yes
2333 DEFAULT_wxUSE_LISTBOX=yes
2334 DEFAULT_wxUSE_LISTCTRL=yes
2335 DEFAULT_wxUSE_NOTEBOOK=yes
2336 DEFAULT_wxUSE_RADIOBOX=yes
2337 DEFAULT_wxUSE_RADIOBTN=yes
2338 DEFAULT_wxUSE_SASH=yes
2339 DEFAULT_wxUSE_SCROLLBAR=yes
2340 DEFAULT_wxUSE_SLIDER=yes
2341 DEFAULT_wxUSE_SPINBTN=yes
2342 DEFAULT_wxUSE_SPINCTRL=yes
2343 DEFAULT_wxUSE_SPLITTER=yes
2344 DEFAULT_wxUSE_STATBMP=yes
2345 DEFAULT_wxUSE_STATBOX=yes
2346 DEFAULT_wxUSE_STATLINE=yes
2347 DEFAULT_wxUSE_STATTEXT=yes
2348 DEFAULT_wxUSE_STATUSBAR=yes
2349 DEFAULT_wxUSE_TABDIALOG=no
2350 DEFAULT_wxUSE_TEXTCTRL=yes
2351 DEFAULT_wxUSE_TOGGLEBTN=yes
2352 DEFAULT_wxUSE_TOOLBAR=yes
2353 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2354 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2355 DEFAULT_wxUSE_TREECTRL=yes
2356 DEFAULT_wxUSE_POPUPWIN=yes
2357 DEFAULT_wxUSE_TIPWINDOW=yes
2358
2359 DEFAULT_wxUSE_UNICODE=no
2360 DEFAULT_wxUSE_UNICODE_MSLU=yes
2361 DEFAULT_wxUSE_WCSRTOMBS=no
2362
2363 DEFAULT_wxUSE_PALETTE=yes
2364 DEFAULT_wxUSE_IMAGE=yes
2365 DEFAULT_wxUSE_GIF=yes
2366 DEFAULT_wxUSE_PCX=yes
2367 DEFAULT_wxUSE_IFF=no
2368 DEFAULT_wxUSE_PNM=yes
2369 DEFAULT_wxUSE_XPM=yes
2370 DEFAULT_wxUSE_ICO_CUR=yes
2371 DEFAULT_wxUSE_ACCESSIBILITY=no
2372
2373 DEFAULT_wxUSE_MONOLITHIC=no
2374 DEFAULT_wxUSE_PLUGINS=no
2375 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2376fi
2377
2378
2379
2380for toolkit in `echo $ALL_TOOLKITS`; do
2381 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2382 if test "x$LINE" != "x" ; then
2383 has_toolkit_in_cache=1
2384 eval "DEFAULT_$LINE"
2385 eval "CACHE_$toolkit=1"
2386 fi
2387done
2388
2389
2390
2391 enablestring=
2392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2393echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2394 no_cache=0
2395 # Check whether --enable-gui or --disable-gui was given.
2396if test "${enable_gui+set}" = set; then
2397 enableval="$enable_gui"
2398
2399 if test "$enableval" = yes; then
2400 ac_cv_use_gui='wxUSE_GUI=yes'
2401 else
2402 ac_cv_use_gui='wxUSE_GUI=no'
2403 fi
2404
2405else
2406
2407 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2408 if test "x$LINE" != x ; then
2409 eval "DEFAULT_$LINE"
2410 else
2411 no_cache=1
2412 fi
2413
2414 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2415
2416fi;
2417
2418 eval "$ac_cv_use_gui"
2419 if test "$no_cache" != 1; then
2420 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2421 fi
2422
2423 if test "$wxUSE_GUI" = yes; then
2424 echo "$as_me:$LINENO: result: yes" >&5
2425echo "${ECHO_T}yes" >&6
2426 else
2427 echo "$as_me:$LINENO: result: no" >&5
2428echo "${ECHO_T}no" >&6
2429 fi
2430
2431
2432 enablestring=
2433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2434echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2435 no_cache=0
2436 # Check whether --enable-monolithic or --disable-monolithic was given.
2437if test "${enable_monolithic+set}" = set; then
2438 enableval="$enable_monolithic"
2439
2440 if test "$enableval" = yes; then
2441 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2442 else
2443 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2444 fi
2445
2446else
2447
2448 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2449 if test "x$LINE" != x ; then
2450 eval "DEFAULT_$LINE"
2451 else
2452 no_cache=1
2453 fi
2454
2455 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2456
2457fi;
2458
2459 eval "$ac_cv_use_monolithic"
2460 if test "$no_cache" != 1; then
2461 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2462 fi
2463
2464 if test "$wxUSE_MONOLITHIC" = yes; then
2465 echo "$as_me:$LINENO: result: yes" >&5
2466echo "${ECHO_T}yes" >&6
2467 else
2468 echo "$as_me:$LINENO: result: no" >&5
2469echo "${ECHO_T}no" >&6
2470 fi
2471
2472
2473 enablestring=
2474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2475echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2476 no_cache=0
2477 # Check whether --enable-plugins or --disable-plugins was given.
2478if test "${enable_plugins+set}" = set; then
2479 enableval="$enable_plugins"
2480
2481 if test "$enableval" = yes; then
2482 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2483 else
2484 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2485 fi
2486
2487else
2488
2489 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2490 if test "x$LINE" != x ; then
2491 eval "DEFAULT_$LINE"
2492 else
2493 no_cache=1
2494 fi
2495
2496 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2497
2498fi;
2499
2500 eval "$ac_cv_use_plugins"
2501 if test "$no_cache" != 1; then
2502 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2503 fi
2504
2505 if test "$wxUSE_PLUGINS" = yes; then
2506 echo "$as_me:$LINENO: result: yes" >&5
2507echo "${ECHO_T}yes" >&6
2508 else
2509 echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6
2511 fi
2512
2513
2514if test "$wxUSE_GUI" = "yes"; then
2515
2516
2517 enablestring=
2518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2519echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2520 no_cache=0
2521 # Check whether --enable-universal or --disable-universal was given.
2522if test "${enable_universal+set}" = set; then
2523 enableval="$enable_universal"
2524
2525 if test "$enableval" = yes; then
2526 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2527 else
2528 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2529 fi
2530
2531else
2532
2533 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2534 if test "x$LINE" != x ; then
2535 eval "DEFAULT_$LINE"
2536 else
2537 no_cache=1
2538 fi
2539
2540 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2541
2542fi;
2543
2544 eval "$ac_cv_use_universal"
2545 if test "$no_cache" != 1; then
2546 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2547 fi
2548
2549 if test "$wxUSE_UNIVERSAL" = yes; then
2550 echo "$as_me:$LINENO: result: yes" >&5
2551echo "${ECHO_T}yes" >&6
2552 else
2553 echo "$as_me:$LINENO: result: no" >&5
2554echo "${ECHO_T}no" >&6
2555 fi
2556
2557
2558# Check whether --with-gtk or --without-gtk was given.
2559if test "${with_gtk+set}" = set; then
2560 withval="$with_gtk"
2561 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2562fi;
2563
2564# Check whether --with-motif or --without-motif was given.
2565if test "${with_motif+set}" = set; then
2566 withval="$with_motif"
2567 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2568fi;
2569
2570# Check whether --with-mac or --without-mac was given.
2571if test "${with_mac+set}" = set; then
2572 withval="$with_mac"
2573 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2574fi;
2575
2576# Check whether --with-cocoa or --without-cocoa was given.
2577if test "${with_cocoa+set}" = set; then
2578 withval="$with_cocoa"
2579 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2580fi;
2581
2582# Check whether --with-wine or --without-wine was given.
2583if test "${with_wine+set}" = set; then
2584 withval="$with_wine"
2585 wxUSE_WINE="$withval" CACHE_WINE=1
2586fi;
2587
2588# Check whether --with-msw or --without-msw was given.
2589if test "${with_msw+set}" = set; then
2590 withval="$with_msw"
2591 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2592fi;
2593
2594# Check whether --with-pm or --without-pm was given.
2595if test "${with_pm+set}" = set; then
2596 withval="$with_pm"
2597 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2598fi;
2599
2600# Check whether --with-mgl or --without-mgl was given.
2601if test "${with_mgl+set}" = set; then
2602 withval="$with_mgl"
2603 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-microwin or --without-microwin was given.
2607if test "${with_microwin+set}" = set; then
2608 withval="$with_microwin"
2609 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2610fi;
2611
2612# Check whether --with-x11 or --without-x11 was given.
2613if test "${with_x11+set}" = set; then
2614 withval="$with_x11"
2615 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2616fi;
2617
2618 enablestring=
2619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2620echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2621 no_cache=0
2622 # Check whether --enable-nanox or --disable-nanox was given.
2623if test "${enable_nanox+set}" = set; then
2624 enableval="$enable_nanox"
2625
2626 if test "$enableval" = yes; then
2627 ac_cv_use_nanox='wxUSE_NANOX=yes'
2628 else
2629 ac_cv_use_nanox='wxUSE_NANOX=no'
2630 fi
2631
2632else
2633
2634 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2635 if test "x$LINE" != x ; then
2636 eval "DEFAULT_$LINE"
2637 else
2638 no_cache=1
2639 fi
2640
2641 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2642
2643fi;
2644
2645 eval "$ac_cv_use_nanox"
2646 if test "$no_cache" != 1; then
2647 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2648 fi
2649
2650 if test "$wxUSE_NANOX" = yes; then
2651 echo "$as_me:$LINENO: result: yes" >&5
2652echo "${ECHO_T}yes" >&6
2653 else
2654 echo "$as_me:$LINENO: result: no" >&5
2655echo "${ECHO_T}no" >&6
2656 fi
2657
2658
2659
2660 enablestring=
2661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2662echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2663 no_cache=0
2664 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2665if test "${enable_gtk2+set}" = set; then
2666 enableval="$enable_gtk2"
2667
2668 if test "$enableval" = yes; then
2669 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2670 else
2671 ac_cv_use_gtk2='wxUSE_GTK2=no'
2672 fi
2673
2674else
2675
2676 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2677 if test "x$LINE" != x ; then
2678 eval "DEFAULT_$LINE"
2679 else
2680 no_cache=1
2681 fi
2682
2683 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2684
2685fi;
2686
2687 eval "$ac_cv_use_gtk2"
2688 if test "$no_cache" != 1; then
2689 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2690 fi
2691
2692 if test "$wxUSE_GTK2" = yes; then
2693 echo "$as_me:$LINENO: result: yes" >&5
2694echo "${ECHO_T}yes" >&6
2695 else
2696 echo "$as_me:$LINENO: result: no" >&5
2697echo "${ECHO_T}no" >&6
2698 fi
2699
2700
2701 enablestring=
2702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2703echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2704 no_cache=0
2705 # Check whether --enable-gpe or --disable-gpe was given.
2706if test "${enable_gpe+set}" = set; then
2707 enableval="$enable_gpe"
2708
2709 if test "$enableval" = yes; then
2710 ac_cv_use_gpe='wxUSE_GPE=yes'
2711 else
2712 ac_cv_use_gpe='wxUSE_GPE=no'
2713 fi
2714
2715else
2716
2717 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2718 if test "x$LINE" != x ; then
2719 eval "DEFAULT_$LINE"
2720 else
2721 no_cache=1
2722 fi
2723
2724 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2725
2726fi;
2727
2728 eval "$ac_cv_use_gpe"
2729 if test "$no_cache" != 1; then
2730 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2731 fi
2732
2733 if test "$wxUSE_GPE" = yes; then
2734 echo "$as_me:$LINENO: result: yes" >&5
2735echo "${ECHO_T}yes" >&6
2736 else
2737 echo "$as_me:$LINENO: result: no" >&5
2738echo "${ECHO_T}no" >&6
2739 fi
2740
2741
2742
2743 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2744echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2745 no_cache=0
2746
2747# Check whether --with-libpng or --without-libpng was given.
2748if test "${with_libpng+set}" = set; then
2749 withval="$with_libpng"
2750
2751 if test "$withval" = yes; then
2752 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2753 elif test "$withval" = no; then
2754 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2755 elif test "$withval" = sys; then
2756 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2757 elif test "$withval" = builtin; then
2758 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2759 else
2760 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2761echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2762 { (exit 1); exit 1; }; }
2763 fi
2764
2765else
2766
2767 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2768 if test "x$LINE" != x ; then
2769 eval "DEFAULT_$LINE"
2770 else
2771 no_cache=1
2772 fi
2773
2774 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2775
2776fi;
2777
2778 eval "$ac_cv_use_libpng"
2779 if test "$no_cache" != 1; then
2780 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2781 fi
2782
2783 if test "$wxUSE_LIBPNG" = yes; then
2784 echo "$as_me:$LINENO: result: yes" >&5
2785echo "${ECHO_T}yes" >&6
2786 elif test "$wxUSE_LIBPNG" = no; then
2787 echo "$as_me:$LINENO: result: no" >&5
2788echo "${ECHO_T}no" >&6
2789 elif test "$wxUSE_LIBPNG" = sys; then
2790 echo "$as_me:$LINENO: result: system version" >&5
2791echo "${ECHO_T}system version" >&6
2792 elif test "$wxUSE_LIBPNG" = builtin; then
2793 echo "$as_me:$LINENO: result: builtin version" >&5
2794echo "${ECHO_T}builtin version" >&6
2795 else
2796 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2797echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2798 { (exit 1); exit 1; }; }
2799 fi
2800
2801
2802 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2803echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2804 no_cache=0
2805
2806# Check whether --with-libjpeg or --without-libjpeg was given.
2807if test "${with_libjpeg+set}" = set; then
2808 withval="$with_libjpeg"
2809
2810 if test "$withval" = yes; then
2811 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2812 elif test "$withval" = no; then
2813 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2814 elif test "$withval" = sys; then
2815 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2816 elif test "$withval" = builtin; then
2817 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2818 else
2819 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2820echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2821 { (exit 1); exit 1; }; }
2822 fi
2823
2824else
2825
2826 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2827 if test "x$LINE" != x ; then
2828 eval "DEFAULT_$LINE"
2829 else
2830 no_cache=1
2831 fi
2832
2833 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2834
2835fi;
2836
2837 eval "$ac_cv_use_libjpeg"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$wxUSE_LIBJPEG" = yes; then
2843 echo "$as_me:$LINENO: result: yes" >&5
2844echo "${ECHO_T}yes" >&6
2845 elif test "$wxUSE_LIBJPEG" = no; then
2846 echo "$as_me:$LINENO: result: no" >&5
2847echo "${ECHO_T}no" >&6
2848 elif test "$wxUSE_LIBJPEG" = sys; then
2849 echo "$as_me:$LINENO: result: system version" >&5
2850echo "${ECHO_T}system version" >&6
2851 elif test "$wxUSE_LIBJPEG" = builtin; then
2852 echo "$as_me:$LINENO: result: builtin version" >&5
2853echo "${ECHO_T}builtin version" >&6
2854 else
2855 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2856echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2857 { (exit 1); exit 1; }; }
2858 fi
2859
2860
2861 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2862echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2863 no_cache=0
2864
2865# Check whether --with-libtiff or --without-libtiff was given.
2866if test "${with_libtiff+set}" = set; then
2867 withval="$with_libtiff"
2868
2869 if test "$withval" = yes; then
2870 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2871 elif test "$withval" = no; then
2872 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2873 elif test "$withval" = sys; then
2874 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2875 elif test "$withval" = builtin; then
2876 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2877 else
2878 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2879echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2880 { (exit 1); exit 1; }; }
2881 fi
2882
2883else
2884
2885 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2886 if test "x$LINE" != x ; then
2887 eval "DEFAULT_$LINE"
2888 else
2889 no_cache=1
2890 fi
2891
2892 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2893
2894fi;
2895
2896 eval "$ac_cv_use_libtiff"
2897 if test "$no_cache" != 1; then
2898 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2899 fi
2900
2901 if test "$wxUSE_LIBTIFF" = yes; then
2902 echo "$as_me:$LINENO: result: yes" >&5
2903echo "${ECHO_T}yes" >&6
2904 elif test "$wxUSE_LIBTIFF" = no; then
2905 echo "$as_me:$LINENO: result: no" >&5
2906echo "${ECHO_T}no" >&6
2907 elif test "$wxUSE_LIBTIFF" = sys; then
2908 echo "$as_me:$LINENO: result: system version" >&5
2909echo "${ECHO_T}system version" >&6
2910 elif test "$wxUSE_LIBTIFF" = builtin; then
2911 echo "$as_me:$LINENO: result: builtin version" >&5
2912echo "${ECHO_T}builtin version" >&6
2913 else
2914 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2915echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2916 { (exit 1); exit 1; }; }
2917 fi
2918
2919
2920 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2921echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2922 no_cache=0
2923
2924# Check whether --with-libxpm or --without-libxpm was given.
2925if test "${with_libxpm+set}" = set; then
2926 withval="$with_libxpm"
2927
2928 if test "$withval" = yes; then
2929 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2930 elif test "$withval" = no; then
2931 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2932 elif test "$withval" = sys; then
2933 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2934 elif test "$withval" = builtin; then
2935 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2936 else
2937 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2938echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2939 { (exit 1); exit 1; }; }
2940 fi
2941
2942else
2943
2944 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2945 if test "x$LINE" != x ; then
2946 eval "DEFAULT_$LINE"
2947 else
2948 no_cache=1
2949 fi
2950
2951 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2952
2953fi;
2954
2955 eval "$ac_cv_use_libxpm"
2956 if test "$no_cache" != 1; then
2957 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2958 fi
2959
2960 if test "$wxUSE_LIBXPM" = yes; then
2961 echo "$as_me:$LINENO: result: yes" >&5
2962echo "${ECHO_T}yes" >&6
2963 elif test "$wxUSE_LIBXPM" = no; then
2964 echo "$as_me:$LINENO: result: no" >&5
2965echo "${ECHO_T}no" >&6
2966 elif test "$wxUSE_LIBXPM" = sys; then
2967 echo "$as_me:$LINENO: result: system version" >&5
2968echo "${ECHO_T}system version" >&6
2969 elif test "$wxUSE_LIBXPM" = builtin; then
2970 echo "$as_me:$LINENO: result: builtin version" >&5
2971echo "${ECHO_T}builtin version" >&6
2972 else
2973 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2974echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2975 { (exit 1); exit 1; }; }
2976 fi
2977
2978
2979 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2980echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2981 no_cache=0
2982
2983# Check whether --with-libmspack or --without-libmspack was given.
2984if test "${with_libmspack+set}" = set; then
2985 withval="$with_libmspack"
2986
2987 if test "$withval" = yes; then
2988 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2989 else
2990 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2991 fi
2992
2993else
2994
2995 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2996 if test "x$LINE" != x ; then
2997 eval "DEFAULT_$LINE"
2998 else
2999 no_cache=1
3000 fi
3001
3002 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3003
3004fi;
3005
3006 eval "$ac_cv_use_libmspack"
3007 if test "$no_cache" != 1; then
3008 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3009 fi
3010
3011 if test "$wxUSE_LIBMSPACK" = yes; then
3012 echo "$as_me:$LINENO: result: yes" >&5
3013echo "${ECHO_T}yes" >&6
3014 else
3015 echo "$as_me:$LINENO: result: no" >&5
3016echo "${ECHO_T}no" >&6
3017 fi
3018
3019
3020 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3021echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3022 no_cache=0
3023
3024# Check whether --with-sdl or --without-sdl was given.
3025if test "${with_sdl+set}" = set; then
3026 withval="$with_sdl"
3027
3028 if test "$withval" = yes; then
3029 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3030 else
3031 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3032 fi
3033
3034else
3035
3036 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3037 if test "x$LINE" != x ; then
3038 eval "DEFAULT_$LINE"
3039 else
3040 no_cache=1
3041 fi
3042
3043 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3044
3045fi;
3046
3047 eval "$ac_cv_use_sdl"
3048 if test "$no_cache" != 1; then
3049 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3050 fi
3051
3052 if test "$wxUSE_LIBSDL" = yes; then
3053 echo "$as_me:$LINENO: result: yes" >&5
3054echo "${ECHO_T}yes" >&6
3055 else
3056 echo "$as_me:$LINENO: result: no" >&5
3057echo "${ECHO_T}no" >&6
3058 fi
3059
3060
3061 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3062echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3063 no_cache=0
3064
3065# Check whether --with-opengl or --without-opengl was given.
3066if test "${with_opengl+set}" = set; then
3067 withval="$with_opengl"
3068
3069 if test "$withval" = yes; then
3070 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3071 else
3072 ac_cv_use_opengl='wxUSE_OPENGL=no'
3073 fi
3074
3075else
3076
3077 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3078 if test "x$LINE" != x ; then
3079 eval "DEFAULT_$LINE"
3080 else
3081 no_cache=1
3082 fi
3083
3084 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3085
3086fi;
3087
3088 eval "$ac_cv_use_opengl"
3089 if test "$no_cache" != 1; then
3090 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3091 fi
3092
3093 if test "$wxUSE_OPENGL" = yes; then
3094 echo "$as_me:$LINENO: result: yes" >&5
3095echo "${ECHO_T}yes" >&6
3096 else
3097 echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
3099 fi
3100
3101
3102fi
3103
3104
3105 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3106echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3107 no_cache=0
3108
3109# Check whether --with-dmalloc or --without-dmalloc was given.
3110if test "${with_dmalloc+set}" = set; then
3111 withval="$with_dmalloc"
3112
3113 if test "$withval" = yes; then
3114 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3115 else
3116 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3117 fi
3118
3119else
3120
3121 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3122 if test "x$LINE" != x ; then
3123 eval "DEFAULT_$LINE"
3124 else
3125 no_cache=1
3126 fi
3127
3128 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3129
3130fi;
3131
3132 eval "$ac_cv_use_dmalloc"
3133 if test "$no_cache" != 1; then
3134 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3135 fi
3136
3137 if test "$wxUSE_DMALLOC" = yes; then
3138 echo "$as_me:$LINENO: result: yes" >&5
3139echo "${ECHO_T}yes" >&6
3140 else
3141 echo "$as_me:$LINENO: result: no" >&5
3142echo "${ECHO_T}no" >&6
3143 fi
3144
3145
3146 echo "$as_me:$LINENO: checking for --with-regex" >&5
3147echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3148 no_cache=0
3149
3150# Check whether --with-regex or --without-regex was given.
3151if test "${with_regex+set}" = set; then
3152 withval="$with_regex"
3153
3154 if test "$withval" = yes; then
3155 ac_cv_use_regex='wxUSE_REGEX=yes'
3156 elif test "$withval" = no; then
3157 ac_cv_use_regex='wxUSE_REGEX=no'
3158 elif test "$withval" = sys; then
3159 ac_cv_use_regex='wxUSE_REGEX=sys'
3160 elif test "$withval" = builtin; then
3161 ac_cv_use_regex='wxUSE_REGEX=builtin'
3162 else
3163 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3164echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3165 { (exit 1); exit 1; }; }
3166 fi
3167
3168else
3169
3170 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3171 if test "x$LINE" != x ; then
3172 eval "DEFAULT_$LINE"
3173 else
3174 no_cache=1
3175 fi
3176
3177 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3178
3179fi;
3180
3181 eval "$ac_cv_use_regex"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_REGEX" = yes; then
3187 echo "$as_me:$LINENO: result: yes" >&5
3188echo "${ECHO_T}yes" >&6
3189 elif test "$wxUSE_REGEX" = no; then
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3192 elif test "$wxUSE_REGEX" = sys; then
3193 echo "$as_me:$LINENO: result: system version" >&5
3194echo "${ECHO_T}system version" >&6
3195 elif test "$wxUSE_REGEX" = builtin; then
3196 echo "$as_me:$LINENO: result: builtin version" >&5
3197echo "${ECHO_T}builtin version" >&6
3198 else
3199 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3200echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3201 { (exit 1); exit 1; }; }
3202 fi
3203
3204
3205 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3206echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3207 no_cache=0
3208
3209# Check whether --with-zlib or --without-zlib was given.
3210if test "${with_zlib+set}" = set; then
3211 withval="$with_zlib"
3212
3213 if test "$withval" = yes; then
3214 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3215 elif test "$withval" = no; then
3216 ac_cv_use_zlib='wxUSE_ZLIB=no'
3217 elif test "$withval" = sys; then
3218 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3219 elif test "$withval" = builtin; then
3220 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3221 else
3222 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3223echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3224 { (exit 1); exit 1; }; }
3225 fi
3226
3227else
3228
3229 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3237
3238fi;
3239
3240 eval "$ac_cv_use_zlib"
3241 if test "$no_cache" != 1; then
3242 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3243 fi
3244
3245 if test "$wxUSE_ZLIB" = yes; then
3246 echo "$as_me:$LINENO: result: yes" >&5
3247echo "${ECHO_T}yes" >&6
3248 elif test "$wxUSE_ZLIB" = no; then
3249 echo "$as_me:$LINENO: result: no" >&5
3250echo "${ECHO_T}no" >&6
3251 elif test "$wxUSE_ZLIB" = sys; then
3252 echo "$as_me:$LINENO: result: system version" >&5
3253echo "${ECHO_T}system version" >&6
3254 elif test "$wxUSE_ZLIB" = builtin; then
3255 echo "$as_me:$LINENO: result: builtin version" >&5
3256echo "${ECHO_T}builtin version" >&6
3257 else
3258 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3259echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3260 { (exit 1); exit 1; }; }
3261 fi
3262
3263
3264 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3265echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3266 no_cache=0
3267
3268# Check whether --with-odbc or --without-odbc was given.
3269if test "${with_odbc+set}" = set; then
3270 withval="$with_odbc"
3271
3272 if test "$withval" = yes; then
3273 ac_cv_use_odbc='wxUSE_ODBC=yes'
3274 elif test "$withval" = no; then
3275 ac_cv_use_odbc='wxUSE_ODBC=no'
3276 elif test "$withval" = sys; then
3277 ac_cv_use_odbc='wxUSE_ODBC=sys'
3278 elif test "$withval" = builtin; then
3279 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3280 else
3281 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3282echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3283 { (exit 1); exit 1; }; }
3284 fi
3285
3286else
3287
3288 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3296
3297fi;
3298
3299 eval "$ac_cv_use_odbc"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_ODBC" = yes; then
3305 echo "$as_me:$LINENO: result: yes" >&5
3306echo "${ECHO_T}yes" >&6
3307 elif test "$wxUSE_ODBC" = no; then
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310 elif test "$wxUSE_ODBC" = sys; then
3311 echo "$as_me:$LINENO: result: system version" >&5
3312echo "${ECHO_T}system version" >&6
3313 elif test "$wxUSE_ODBC" = builtin; then
3314 echo "$as_me:$LINENO: result: builtin version" >&5
3315echo "${ECHO_T}builtin version" >&6
3316 else
3317 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3318echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3319 { (exit 1); exit 1; }; }
3320 fi
3321
3322
3323 echo "$as_me:$LINENO: checking for --with-expat" >&5
3324echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3325 no_cache=0
3326
3327# Check whether --with-expat or --without-expat was given.
3328if test "${with_expat+set}" = set; then
3329 withval="$with_expat"
3330
3331 if test "$withval" = yes; then
3332 ac_cv_use_expat='wxUSE_EXPAT=yes'
3333 elif test "$withval" = no; then
3334 ac_cv_use_expat='wxUSE_EXPAT=no'
3335 elif test "$withval" = sys; then
3336 ac_cv_use_expat='wxUSE_EXPAT=sys'
3337 elif test "$withval" = builtin; then
3338 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3339 else
3340 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3341echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3342 { (exit 1); exit 1; }; }
3343 fi
3344
3345else
3346
3347 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3355
3356fi;
3357
3358 eval "$ac_cv_use_expat"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_EXPAT" = yes; then
3364 echo "$as_me:$LINENO: result: yes" >&5
3365echo "${ECHO_T}yes" >&6
3366 elif test "$wxUSE_EXPAT" = no; then
3367 echo "$as_me:$LINENO: result: no" >&5
3368echo "${ECHO_T}no" >&6
3369 elif test "$wxUSE_EXPAT" = sys; then
3370 echo "$as_me:$LINENO: result: system version" >&5
3371echo "${ECHO_T}system version" >&6
3372 elif test "$wxUSE_EXPAT" = builtin; then
3373 echo "$as_me:$LINENO: result: builtin version" >&5
3374echo "${ECHO_T}builtin version" >&6
3375 else
3376 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3377echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3378 { (exit 1); exit 1; }; }
3379 fi
3380
3381
3382
3383
3384 enablestring=
3385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3386echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3387 no_cache=0
3388 # Check whether --enable-shared or --disable-shared was given.
3389if test "${enable_shared+set}" = set; then
3390 enableval="$enable_shared"
3391
3392 if test "$enableval" = yes; then
3393 ac_cv_use_shared='wxUSE_SHARED=yes'
3394 else
3395 ac_cv_use_shared='wxUSE_SHARED=no'
3396 fi
3397
3398else
3399
3400 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3401 if test "x$LINE" != x ; then
3402 eval "DEFAULT_$LINE"
3403 else
3404 no_cache=1
3405 fi
3406
3407 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3408
3409fi;
3410
3411 eval "$ac_cv_use_shared"
3412 if test "$no_cache" != 1; then
3413 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3414 fi
3415
3416 if test "$wxUSE_SHARED" = yes; then
3417 echo "$as_me:$LINENO: result: yes" >&5
3418echo "${ECHO_T}yes" >&6
3419 else
3420 echo "$as_me:$LINENO: result: no" >&5
3421echo "${ECHO_T}no" >&6
3422 fi
3423
3424
3425 enablestring=
3426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3427echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3428 no_cache=0
3429 # Check whether --enable-optimise or --disable-optimise was given.
3430if test "${enable_optimise+set}" = set; then
3431 enableval="$enable_optimise"
3432
3433 if test "$enableval" = yes; then
3434 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3435 else
3436 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3437 fi
3438
3439else
3440
3441 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3442 if test "x$LINE" != x ; then
3443 eval "DEFAULT_$LINE"
3444 else
3445 no_cache=1
3446 fi
3447
3448 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3449
3450fi;
3451
3452 eval "$ac_cv_use_optimise"
3453 if test "$no_cache" != 1; then
3454 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3455 fi
3456
3457 if test "$wxUSE_OPTIMISE" = yes; then
3458 echo "$as_me:$LINENO: result: yes" >&5
3459echo "${ECHO_T}yes" >&6
3460 else
3461 echo "$as_me:$LINENO: result: no" >&5
3462echo "${ECHO_T}no" >&6
3463 fi
3464
3465
3466 enablestring=
3467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3468echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3469 no_cache=0
3470 # Check whether --enable-debug or --disable-debug was given.
3471if test "${enable_debug+set}" = set; then
3472 enableval="$enable_debug"
3473
3474 if test "$enableval" = yes; then
3475 ac_cv_use_debug='wxUSE_DEBUG=yes'
3476 else
3477 ac_cv_use_debug='wxUSE_DEBUG=no'
3478 fi
3479
3480else
3481
3482 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3483 if test "x$LINE" != x ; then
3484 eval "DEFAULT_$LINE"
3485 else
3486 no_cache=1
3487 fi
3488
3489 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3490
3491fi;
3492
3493 eval "$ac_cv_use_debug"
3494 if test "$no_cache" != 1; then
3495 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3496 fi
3497
3498 if test "$wxUSE_DEBUG" = yes; then
3499 echo "$as_me:$LINENO: result: yes" >&5
3500echo "${ECHO_T}yes" >&6
3501 else
3502 echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
3504 fi
3505
3506
3507 enablestring=
3508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3509echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3510 no_cache=0
3511 # Check whether --enable-stl or --disable-stl was given.
3512if test "${enable_stl+set}" = set; then
3513 enableval="$enable_stl"
3514
3515 if test "$enableval" = yes; then
3516 ac_cv_use_stl='wxUSE_STL=yes'
3517 else
3518 ac_cv_use_stl='wxUSE_STL=no'
3519 fi
3520
3521else
3522
3523 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3531
3532fi;
3533
3534 eval "$ac_cv_use_stl"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_STL" = yes; then
3540 echo "$as_me:$LINENO: result: yes" >&5
3541echo "${ECHO_T}yes" >&6
3542 else
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
3545 fi
3546
3547if test "$USE_OS2" = "1"; then
3548
3549 enablestring=
3550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3551echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3552 no_cache=0
3553 # Check whether --enable-omf or --disable-omf was given.
3554if test "${enable_omf+set}" = set; then
3555 enableval="$enable_omf"
3556
3557 if test "$enableval" = yes; then
3558 ac_cv_use_omf='wxUSE_OMF=yes'
3559 else
3560 ac_cv_use_omf='wxUSE_OMF=no'
3561 fi
3562
3563else
3564
3565 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3573
3574fi;
3575
3576 eval "$ac_cv_use_omf"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_OMF" = yes; then
3582 echo "$as_me:$LINENO: result: yes" >&5
3583echo "${ECHO_T}yes" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
3587 fi
3588
3589fi
3590
3591if test "$wxUSE_DEBUG" = "yes"; then
3592 DEFAULT_wxUSE_DEBUG_FLAG=yes
3593 DEFAULT_wxUSE_DEBUG_INFO=yes
3594 BUILD=debug
3595elif test "$wxUSE_DEBUG" = "no"; then
3596 DEFAULT_wxUSE_DEBUG_FLAG=no
3597 DEFAULT_wxUSE_DEBUG_INFO=no
3598 BUILD=release
3599fi
3600
3601
3602 enablestring=
3603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3604echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3605 no_cache=0
3606 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3607if test "${enable_debug_flag+set}" = set; then
3608 enableval="$enable_debug_flag"
3609
3610 if test "$enableval" = yes; then
3611 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3612 else
3613 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3614 fi
3615
3616else
3617
3618 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3619 if test "x$LINE" != x ; then
3620 eval "DEFAULT_$LINE"
3621 else
3622 no_cache=1
3623 fi
3624
3625 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3626
3627fi;
3628
3629 eval "$ac_cv_use_debug_flag"
3630 if test "$no_cache" != 1; then
3631 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3632 fi
3633
3634 if test "$wxUSE_DEBUG_FLAG" = yes; then
3635 echo "$as_me:$LINENO: result: yes" >&5
3636echo "${ECHO_T}yes" >&6
3637 else
3638 echo "$as_me:$LINENO: result: no" >&5
3639echo "${ECHO_T}no" >&6
3640 fi
3641
3642
3643 enablestring=
3644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3645echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3646 no_cache=0
3647 # Check whether --enable-debug_info or --disable-debug_info was given.
3648if test "${enable_debug_info+set}" = set; then
3649 enableval="$enable_debug_info"
3650
3651 if test "$enableval" = yes; then
3652 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3653 else
3654 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3655 fi
3656
3657else
3658
3659 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3660 if test "x$LINE" != x ; then
3661 eval "DEFAULT_$LINE"
3662 else
3663 no_cache=1
3664 fi
3665
3666 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3667
3668fi;
3669
3670 eval "$ac_cv_use_debug_info"
3671 if test "$no_cache" != 1; then
3672 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3673 fi
3674
3675 if test "$wxUSE_DEBUG_INFO" = yes; then
3676 echo "$as_me:$LINENO: result: yes" >&5
3677echo "${ECHO_T}yes" >&6
3678 else
3679 echo "$as_me:$LINENO: result: no" >&5
3680echo "${ECHO_T}no" >&6
3681 fi
3682
3683
3684 enablestring=
3685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3686echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3687 no_cache=0
3688 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3689if test "${enable_debug_gdb+set}" = set; then
3690 enableval="$enable_debug_gdb"
3691
3692 if test "$enableval" = yes; then
3693 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3694 else
3695 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3696 fi
3697
3698else
3699
3700 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3701 if test "x$LINE" != x ; then
3702 eval "DEFAULT_$LINE"
3703 else
3704 no_cache=1
3705 fi
3706
3707 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3708
3709fi;
3710
3711 eval "$ac_cv_use_debug_gdb"
3712 if test "$no_cache" != 1; then
3713 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3714 fi
3715
3716 if test "$wxUSE_DEBUG_GDB" = yes; then
3717 echo "$as_me:$LINENO: result: yes" >&5
3718echo "${ECHO_T}yes" >&6
3719 else
3720 echo "$as_me:$LINENO: result: no" >&5
3721echo "${ECHO_T}no" >&6
3722 fi
3723
3724
3725 enablestring=
3726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3727echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3728 no_cache=0
3729 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3730if test "${enable_debug_cntxt+set}" = set; then
3731 enableval="$enable_debug_cntxt"
3732
3733 if test "$enableval" = yes; then
3734 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3735 else
3736 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3737 fi
3738
3739else
3740
3741 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3742 if test "x$LINE" != x ; then
3743 eval "DEFAULT_$LINE"
3744 else
3745 no_cache=1
3746 fi
3747
3748 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3749
3750fi;
3751
3752 eval "$ac_cv_use_debug_cntxt"
3753 if test "$no_cache" != 1; then
3754 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3755 fi
3756
3757 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3758 echo "$as_me:$LINENO: result: yes" >&5
3759echo "${ECHO_T}yes" >&6
3760 else
3761 echo "$as_me:$LINENO: result: no" >&5
3762echo "${ECHO_T}no" >&6
3763 fi
3764
3765
3766 enablestring=
3767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3768echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3769 no_cache=0
3770 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3771if test "${enable_mem_tracing+set}" = set; then
3772 enableval="$enable_mem_tracing"
3773
3774 if test "$enableval" = yes; then
3775 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3776 else
3777 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3778 fi
3779
3780else
3781
3782 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3783 if test "x$LINE" != x ; then
3784 eval "DEFAULT_$LINE"
3785 else
3786 no_cache=1
3787 fi
3788
3789 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3790
3791fi;
3792
3793 eval "$ac_cv_use_mem_tracing"
3794 if test "$no_cache" != 1; then
3795 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3796 fi
3797
3798 if test "$wxUSE_MEM_TRACING" = yes; then
3799 echo "$as_me:$LINENO: result: yes" >&5
3800echo "${ECHO_T}yes" >&6
3801 else
3802 echo "$as_me:$LINENO: result: no" >&5
3803echo "${ECHO_T}no" >&6
3804 fi
3805
3806
3807 enablestring=
3808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3809echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3810 no_cache=0
3811 # Check whether --enable-profile or --disable-profile was given.
3812if test "${enable_profile+set}" = set; then
3813 enableval="$enable_profile"
3814
3815 if test "$enableval" = yes; then
3816 ac_cv_use_profile='wxUSE_PROFILE=yes'
3817 else
3818 ac_cv_use_profile='wxUSE_PROFILE=no'
3819 fi
3820
3821else
3822
3823 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3824 if test "x$LINE" != x ; then
3825 eval "DEFAULT_$LINE"
3826 else
3827 no_cache=1
3828 fi
3829
3830 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3831
3832fi;
3833
3834 eval "$ac_cv_use_profile"
3835 if test "$no_cache" != 1; then
3836 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3837 fi
3838
3839 if test "$wxUSE_PROFILE" = yes; then
3840 echo "$as_me:$LINENO: result: yes" >&5
3841echo "${ECHO_T}yes" >&6
3842 else
3843 echo "$as_me:$LINENO: result: no" >&5
3844echo "${ECHO_T}no" >&6
3845 fi
3846
3847
3848 enablestring=
3849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3850echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3851 no_cache=0
3852 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3853if test "${enable_no_rtti+set}" = set; then
3854 enableval="$enable_no_rtti"
3855
3856 if test "$enableval" = yes; then
3857 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3858 else
3859 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3860 fi
3861
3862else
3863
3864 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3865 if test "x$LINE" != x ; then
3866 eval "DEFAULT_$LINE"
3867 else
3868 no_cache=1
3869 fi
3870
3871 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3872
3873fi;
3874
3875 eval "$ac_cv_use_no_rtti"
3876 if test "$no_cache" != 1; then
3877 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3878 fi
3879
3880 if test "$wxUSE_NO_RTTI" = yes; then
3881 echo "$as_me:$LINENO: result: yes" >&5
3882echo "${ECHO_T}yes" >&6
3883 else
3884 echo "$as_me:$LINENO: result: no" >&5
3885echo "${ECHO_T}no" >&6
3886 fi
3887
3888
3889 enablestring=
3890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3891echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3892 no_cache=0
3893 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3894if test "${enable_no_exceptions+set}" = set; then
3895 enableval="$enable_no_exceptions"
3896
3897 if test "$enableval" = yes; then
3898 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3899 else
3900 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3901 fi
3902
3903else
3904
3905 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3906 if test "x$LINE" != x ; then
3907 eval "DEFAULT_$LINE"
3908 else
3909 no_cache=1
3910 fi
3911
3912 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3913
3914fi;
3915
3916 eval "$ac_cv_use_no_exceptions"
3917 if test "$no_cache" != 1; then
3918 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3919 fi
3920
3921 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3922 echo "$as_me:$LINENO: result: yes" >&5
3923echo "${ECHO_T}yes" >&6
3924 else
3925 echo "$as_me:$LINENO: result: no" >&5
3926echo "${ECHO_T}no" >&6
3927 fi
3928
3929
3930 enablestring=
3931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3932echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3933 no_cache=0
3934 # Check whether --enable-permissive or --disable-permissive was given.
3935if test "${enable_permissive+set}" = set; then
3936 enableval="$enable_permissive"
3937
3938 if test "$enableval" = yes; then
3939 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3940 else
3941 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3942 fi
3943
3944else
3945
3946 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3947 if test "x$LINE" != x ; then
3948 eval "DEFAULT_$LINE"
3949 else
3950 no_cache=1
3951 fi
3952
3953 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3954
3955fi;
3956
3957 eval "$ac_cv_use_permissive"
3958 if test "$no_cache" != 1; then
3959 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3960 fi
3961
3962 if test "$wxUSE_PERMISSIVE" = yes; then
3963 echo "$as_me:$LINENO: result: yes" >&5
3964echo "${ECHO_T}yes" >&6
3965 else
3966 echo "$as_me:$LINENO: result: no" >&5
3967echo "${ECHO_T}no" >&6
3968 fi
3969
3970
3971 enablestring=
3972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3973echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3974 no_cache=0
3975 # Check whether --enable-no_deps or --disable-no_deps was given.
3976if test "${enable_no_deps+set}" = set; then
3977 enableval="$enable_no_deps"
3978
3979 if test "$enableval" = yes; then
3980 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3981 else
3982 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3983 fi
3984
3985else
3986
3987 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3988 if test "x$LINE" != x ; then
3989 eval "DEFAULT_$LINE"
3990 else
3991 no_cache=1
3992 fi
3993
3994 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3995
3996fi;
3997
3998 eval "$ac_cv_use_no_deps"
3999 if test "$no_cache" != 1; then
4000 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4001 fi
4002
4003 if test "$wxUSE_NO_DEPS" = yes; then
4004 echo "$as_me:$LINENO: result: yes" >&5
4005echo "${ECHO_T}yes" >&6
4006 else
4007 echo "$as_me:$LINENO: result: no" >&5
4008echo "${ECHO_T}no" >&6
4009 fi
4010
4011
4012
4013 enablestring=
4014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4015echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4016 no_cache=0
4017 # Check whether --enable-compat22 or --disable-compat22 was given.
4018if test "${enable_compat22+set}" = set; then
4019 enableval="$enable_compat22"
4020
4021 if test "$enableval" = yes; then
4022 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4023 else
4024 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4025 fi
4026
4027else
4028
4029 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
4036 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4037
4038fi;
4039
4040 eval "$ac_cv_use_compat22"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4046 echo "$as_me:$LINENO: result: yes" >&5
4047echo "${ECHO_T}yes" >&6
4048 else
4049 echo "$as_me:$LINENO: result: no" >&5
4050echo "${ECHO_T}no" >&6
4051 fi
4052
4053
4054 enablestring=disable
4055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4056echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4057 no_cache=0
4058 # Check whether --enable-compat24 or --disable-compat24 was given.
4059if test "${enable_compat24+set}" = set; then
4060 enableval="$enable_compat24"
4061
4062 if test "$enableval" = yes; then
4063 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4064 else
4065 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4066 fi
4067
4068else
4069
4070 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4071 if test "x$LINE" != x ; then
4072 eval "DEFAULT_$LINE"
4073 else
4074 no_cache=1
4075 fi
4076
4077 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4078
4079fi;
4080
4081 eval "$ac_cv_use_compat24"
4082 if test "$no_cache" != 1; then
4083 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4084 fi
4085
4086 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4087 echo "$as_me:$LINENO: result: yes" >&5
4088echo "${ECHO_T}yes" >&6
4089 else
4090 echo "$as_me:$LINENO: result: no" >&5
4091echo "${ECHO_T}no" >&6
4092 fi
4093
4094
4095# Check whether --enable-rpath or --disable-rpath was given.
4096if test "${enable_rpath+set}" = set; then
4097 enableval="$enable_rpath"
4098 wxRPATH_DIR="$enableval"
4099fi;
4100
4101if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4102 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4103fi
4104
4105
4106
4107
4108 enablestring=
4109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4110echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4111 no_cache=0
4112 # Check whether --enable-intl or --disable-intl was given.
4113if test "${enable_intl+set}" = set; then
4114 enableval="$enable_intl"
4115
4116 if test "$enableval" = yes; then
4117 ac_cv_use_intl='wxUSE_INTL=yes'
4118 else
4119 ac_cv_use_intl='wxUSE_INTL=no'
4120 fi
4121
4122else
4123
4124 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4125 if test "x$LINE" != x ; then
4126 eval "DEFAULT_$LINE"
4127 else
4128 no_cache=1
4129 fi
4130
4131 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4132
4133fi;
4134
4135 eval "$ac_cv_use_intl"
4136 if test "$no_cache" != 1; then
4137 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4138 fi
4139
4140 if test "$wxUSE_INTL" = yes; then
4141 echo "$as_me:$LINENO: result: yes" >&5
4142echo "${ECHO_T}yes" >&6
4143 else
4144 echo "$as_me:$LINENO: result: no" >&5
4145echo "${ECHO_T}no" >&6
4146 fi
4147
4148
4149 enablestring=
4150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4151echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4152 no_cache=0
4153 # Check whether --enable-config or --disable-config was given.
4154if test "${enable_config+set}" = set; then
4155 enableval="$enable_config"
4156
4157 if test "$enableval" = yes; then
4158 ac_cv_use_config='wxUSE_CONFIG=yes'
4159 else
4160 ac_cv_use_config='wxUSE_CONFIG=no'
4161 fi
4162
4163else
4164
4165 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4166 if test "x$LINE" != x ; then
4167 eval "DEFAULT_$LINE"
4168 else
4169 no_cache=1
4170 fi
4171
4172 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4173
4174fi;
4175
4176 eval "$ac_cv_use_config"
4177 if test "$no_cache" != 1; then
4178 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4179 fi
4180
4181 if test "$wxUSE_CONFIG" = yes; then
4182 echo "$as_me:$LINENO: result: yes" >&5
4183echo "${ECHO_T}yes" >&6
4184 else
4185 echo "$as_me:$LINENO: result: no" >&5
4186echo "${ECHO_T}no" >&6
4187 fi
4188
4189
4190
4191 enablestring=
4192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4193echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4194 no_cache=0
4195 # Check whether --enable-protocols or --disable-protocols was given.
4196if test "${enable_protocols+set}" = set; then
4197 enableval="$enable_protocols"
4198
4199 if test "$enableval" = yes; then
4200 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4201 else
4202 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4203 fi
4204
4205else
4206
4207 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4208 if test "x$LINE" != x ; then
4209 eval "DEFAULT_$LINE"
4210 else
4211 no_cache=1
4212 fi
4213
4214 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4215
4216fi;
4217
4218 eval "$ac_cv_use_protocols"
4219 if test "$no_cache" != 1; then
4220 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4221 fi
4222
4223 if test "$wxUSE_PROTOCOL" = yes; then
4224 echo "$as_me:$LINENO: result: yes" >&5
4225echo "${ECHO_T}yes" >&6
4226 else
4227 echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6
4229 fi
4230
4231
4232 enablestring=
4233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4234echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4235 no_cache=0
4236 # Check whether --enable-ftp or --disable-ftp was given.
4237if test "${enable_ftp+set}" = set; then
4238 enableval="$enable_ftp"
4239
4240 if test "$enableval" = yes; then
4241 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4242 else
4243 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4244 fi
4245
4246else
4247
4248 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4249 if test "x$LINE" != x ; then
4250 eval "DEFAULT_$LINE"
4251 else
4252 no_cache=1
4253 fi
4254
4255 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4256
4257fi;
4258
4259 eval "$ac_cv_use_ftp"
4260 if test "$no_cache" != 1; then
4261 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4262 fi
4263
4264 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4265 echo "$as_me:$LINENO: result: yes" >&5
4266echo "${ECHO_T}yes" >&6
4267 else
4268 echo "$as_me:$LINENO: result: no" >&5
4269echo "${ECHO_T}no" >&6
4270 fi
4271
4272
4273 enablestring=
4274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4275echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4276 no_cache=0
4277 # Check whether --enable-http or --disable-http was given.
4278if test "${enable_http+set}" = set; then
4279 enableval="$enable_http"
4280
4281 if test "$enableval" = yes; then
4282 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4283 else
4284 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4285 fi
4286
4287else
4288
4289 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4290 if test "x$LINE" != x ; then
4291 eval "DEFAULT_$LINE"
4292 else
4293 no_cache=1
4294 fi
4295
4296 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4297
4298fi;
4299
4300 eval "$ac_cv_use_http"
4301 if test "$no_cache" != 1; then
4302 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4303 fi
4304
4305 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4306 echo "$as_me:$LINENO: result: yes" >&5
4307echo "${ECHO_T}yes" >&6
4308 else
4309 echo "$as_me:$LINENO: result: no" >&5
4310echo "${ECHO_T}no" >&6
4311 fi
4312
4313
4314 enablestring=
4315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4316echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4317 no_cache=0
4318 # Check whether --enable-fileproto or --disable-fileproto was given.
4319if test "${enable_fileproto+set}" = set; then
4320 enableval="$enable_fileproto"
4321
4322 if test "$enableval" = yes; then
4323 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4324 else
4325 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4326 fi
4327
4328else
4329
4330 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4331 if test "x$LINE" != x ; then
4332 eval "DEFAULT_$LINE"
4333 else
4334 no_cache=1
4335 fi
4336
4337 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4338
4339fi;
4340
4341 eval "$ac_cv_use_fileproto"
4342 if test "$no_cache" != 1; then
4343 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4344 fi
4345
4346 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4347 echo "$as_me:$LINENO: result: yes" >&5
4348echo "${ECHO_T}yes" >&6
4349 else
4350 echo "$as_me:$LINENO: result: no" >&5
4351echo "${ECHO_T}no" >&6
4352 fi
4353
4354
4355 enablestring=
4356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4357echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4358 no_cache=0
4359 # Check whether --enable-sockets or --disable-sockets was given.
4360if test "${enable_sockets+set}" = set; then
4361 enableval="$enable_sockets"
4362
4363 if test "$enableval" = yes; then
4364 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4365 else
4366 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4367 fi
4368
4369else
4370
4371 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4372 if test "x$LINE" != x ; then
4373 eval "DEFAULT_$LINE"
4374 else
4375 no_cache=1
4376 fi
4377
4378 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4379
4380fi;
4381
4382 eval "$ac_cv_use_sockets"
4383 if test "$no_cache" != 1; then
4384 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4385 fi
4386
4387 if test "$wxUSE_SOCKETS" = yes; then
4388 echo "$as_me:$LINENO: result: yes" >&5
4389echo "${ECHO_T}yes" >&6
4390 else
4391 echo "$as_me:$LINENO: result: no" >&5
4392echo "${ECHO_T}no" >&6
4393 fi
4394
4395
4396 enablestring=
4397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4398echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4399 no_cache=0
4400 # Check whether --enable-ole or --disable-ole was given.
4401if test "${enable_ole+set}" = set; then
4402 enableval="$enable_ole"
4403
4404 if test "$enableval" = yes; then
4405 ac_cv_use_ole='wxUSE_OLE=yes'
4406 else
4407 ac_cv_use_ole='wxUSE_OLE=no'
4408 fi
4409
4410else
4411
4412 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4413 if test "x$LINE" != x ; then
4414 eval "DEFAULT_$LINE"
4415 else
4416 no_cache=1
4417 fi
4418
4419 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4420
4421fi;
4422
4423 eval "$ac_cv_use_ole"
4424 if test "$no_cache" != 1; then
4425 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4426 fi
4427
4428 if test "$wxUSE_OLE" = yes; then
4429 echo "$as_me:$LINENO: result: yes" >&5
4430echo "${ECHO_T}yes" >&6
4431 else
4432 echo "$as_me:$LINENO: result: no" >&5
4433echo "${ECHO_T}no" >&6
4434 fi
4435
4436
4437 enablestring=
4438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4439echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4440 no_cache=0
4441 # Check whether --enable-dataobj or --disable-dataobj was given.
4442if test "${enable_dataobj+set}" = set; then
4443 enableval="$enable_dataobj"
4444
4445 if test "$enableval" = yes; then
4446 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4447 else
4448 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4449 fi
4450
4451else
4452
4453 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4454 if test "x$LINE" != x ; then
4455 eval "DEFAULT_$LINE"
4456 else
4457 no_cache=1
4458 fi
4459
4460 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4461
4462fi;
4463
4464 eval "$ac_cv_use_dataobj"
4465 if test "$no_cache" != 1; then
4466 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4467 fi
4468
4469 if test "$wxUSE_DATAOBJ" = yes; then
4470 echo "$as_me:$LINENO: result: yes" >&5
4471echo "${ECHO_T}yes" >&6
4472 else
4473 echo "$as_me:$LINENO: result: no" >&5
4474echo "${ECHO_T}no" >&6
4475 fi
4476
4477
4478
4479 enablestring=
4480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4481echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4482 no_cache=0
4483 # Check whether --enable-ipc or --disable-ipc was given.
4484if test "${enable_ipc+set}" = set; then
4485 enableval="$enable_ipc"
4486
4487 if test "$enableval" = yes; then
4488 ac_cv_use_ipc='wxUSE_IPC=yes'
4489 else
4490 ac_cv_use_ipc='wxUSE_IPC=no'
4491 fi
4492
4493else
4494
4495 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4496 if test "x$LINE" != x ; then
4497 eval "DEFAULT_$LINE"
4498 else
4499 no_cache=1
4500 fi
4501
4502 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4503
4504fi;
4505
4506 eval "$ac_cv_use_ipc"
4507 if test "$no_cache" != 1; then
4508 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4509 fi
4510
4511 if test "$wxUSE_IPC" = yes; then
4512 echo "$as_me:$LINENO: result: yes" >&5
4513echo "${ECHO_T}yes" >&6
4514 else
4515 echo "$as_me:$LINENO: result: no" >&5
4516echo "${ECHO_T}no" >&6
4517 fi
4518
4519
4520
4521 enablestring=
4522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4523echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4524 no_cache=0
4525 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4526if test "${enable_apple_ieee+set}" = set; then
4527 enableval="$enable_apple_ieee"
4528
4529 if test "$enableval" = yes; then
4530 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4531 else
4532 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4533 fi
4534
4535else
4536
4537 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4538 if test "x$LINE" != x ; then
4539 eval "DEFAULT_$LINE"
4540 else
4541 no_cache=1
4542 fi
4543
4544 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4545
4546fi;
4547
4548 eval "$ac_cv_use_apple_ieee"
4549 if test "$no_cache" != 1; then
4550 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4551 fi
4552
4553 if test "$wxUSE_APPLE_IEEE" = yes; then
4554 echo "$as_me:$LINENO: result: yes" >&5
4555echo "${ECHO_T}yes" >&6
4556 else
4557 echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6
4559 fi
4560
4561
4562 enablestring=
4563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4564echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4565 no_cache=0
4566 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4567if test "${enable_catch_segvs+set}" = set; then
4568 enableval="$enable_catch_segvs"
4569
4570 if test "$enableval" = yes; then
4571 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4572 else
4573 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4574 fi
4575
4576else
4577
4578 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4579 if test "x$LINE" != x ; then
4580 eval "DEFAULT_$LINE"
4581 else
4582 no_cache=1
4583 fi
4584
4585 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4586
4587fi;
4588
4589 eval "$ac_cv_use_catch_segvs"
4590 if test "$no_cache" != 1; then
4591 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4592 fi
4593
4594 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4595 echo "$as_me:$LINENO: result: yes" >&5
4596echo "${ECHO_T}yes" >&6
4597 else
4598 echo "$as_me:$LINENO: result: no" >&5
4599echo "${ECHO_T}no" >&6
4600 fi
4601
4602
4603 enablestring=
4604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4605echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4606 no_cache=0
4607 # Check whether --enable-cmdline or --disable-cmdline was given.
4608if test "${enable_cmdline+set}" = set; then
4609 enableval="$enable_cmdline"
4610
4611 if test "$enableval" = yes; then
4612 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4613 else
4614 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4615 fi
4616
4617else
4618
4619 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4620 if test "x$LINE" != x ; then
4621 eval "DEFAULT_$LINE"
4622 else
4623 no_cache=1
4624 fi
4625
4626 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4627
4628fi;
4629
4630 eval "$ac_cv_use_cmdline"
4631 if test "$no_cache" != 1; then
4632 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4633 fi
4634
4635 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4636 echo "$as_me:$LINENO: result: yes" >&5
4637echo "${ECHO_T}yes" >&6
4638 else
4639 echo "$as_me:$LINENO: result: no" >&5
4640echo "${ECHO_T}no" >&6
4641 fi
4642
4643
4644 enablestring=
4645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4646echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4647 no_cache=0
4648 # Check whether --enable-datetime or --disable-datetime was given.
4649if test "${enable_datetime+set}" = set; then
4650 enableval="$enable_datetime"
4651
4652 if test "$enableval" = yes; then
4653 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4654 else
4655 ac_cv_use_datetime='wxUSE_DATETIME=no'
4656 fi
4657
4658else
4659
4660 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4661 if test "x$LINE" != x ; then
4662 eval "DEFAULT_$LINE"
4663 else
4664 no_cache=1
4665 fi
4666
4667 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4668
4669fi;
4670
4671 eval "$ac_cv_use_datetime"
4672 if test "$no_cache" != 1; then
4673 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4674 fi
4675
4676 if test "$wxUSE_DATETIME" = yes; then
4677 echo "$as_me:$LINENO: result: yes" >&5
4678echo "${ECHO_T}yes" >&6
4679 else
4680 echo "$as_me:$LINENO: result: no" >&5
4681echo "${ECHO_T}no" >&6
4682 fi
4683
4684
4685 enablestring=
4686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4687echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4688 no_cache=0
4689 # Check whether --enable-dialupman or --disable-dialupman was given.
4690if test "${enable_dialupman+set}" = set; then
4691 enableval="$enable_dialupman"
4692
4693 if test "$enableval" = yes; then
4694 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4695 else
4696 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4697 fi
4698
4699else
4700
4701 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4702 if test "x$LINE" != x ; then
4703 eval "DEFAULT_$LINE"
4704 else
4705 no_cache=1
4706 fi
4707
4708 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4709
4710fi;
4711
4712 eval "$ac_cv_use_dialupman"
4713 if test "$no_cache" != 1; then
4714 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4715 fi
4716
4717 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4718 echo "$as_me:$LINENO: result: yes" >&5
4719echo "${ECHO_T}yes" >&6
4720 else
4721 echo "$as_me:$LINENO: result: no" >&5
4722echo "${ECHO_T}no" >&6
4723 fi
4724
4725
4726 enablestring=
4727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4728echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4729 no_cache=0
4730 # Check whether --enable-dynlib or --disable-dynlib was given.
4731if test "${enable_dynlib+set}" = set; then
4732 enableval="$enable_dynlib"
4733
4734 if test "$enableval" = yes; then
4735 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4736 else
4737 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4738 fi
4739
4740else
4741
4742 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4743 if test "x$LINE" != x ; then
4744 eval "DEFAULT_$LINE"
4745 else
4746 no_cache=1
4747 fi
4748
4749 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4750
4751fi;
4752
4753 eval "$ac_cv_use_dynlib"
4754 if test "$no_cache" != 1; then
4755 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4756 fi
4757
4758 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4759 echo "$as_me:$LINENO: result: yes" >&5
4760echo "${ECHO_T}yes" >&6
4761 else
4762 echo "$as_me:$LINENO: result: no" >&5
4763echo "${ECHO_T}no" >&6
4764 fi
4765
4766
4767 enablestring=
4768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4769echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4770 no_cache=0
4771 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4772if test "${enable_dynamicloader+set}" = set; then
4773 enableval="$enable_dynamicloader"
4774
4775 if test "$enableval" = yes; then
4776 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4777 else
4778 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4779 fi
4780
4781else
4782
4783 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4784 if test "x$LINE" != x ; then
4785 eval "DEFAULT_$LINE"
4786 else
4787 no_cache=1
4788 fi
4789
4790 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4791
4792fi;
4793
4794 eval "$ac_cv_use_dynamicloader"
4795 if test "$no_cache" != 1; then
4796 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4797 fi
4798
4799 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4800 echo "$as_me:$LINENO: result: yes" >&5
4801echo "${ECHO_T}yes" >&6
4802 else
4803 echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6
4805 fi
4806
4807
4808 enablestring=
4809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4810echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4811 no_cache=0
4812 # Check whether --enable-exceptions or --disable-exceptions was given.
4813if test "${enable_exceptions+set}" = set; then
4814 enableval="$enable_exceptions"
4815
4816 if test "$enableval" = yes; then
4817 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4818 else
4819 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4820 fi
4821
4822else
4823
4824 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4825 if test "x$LINE" != x ; then
4826 eval "DEFAULT_$LINE"
4827 else
4828 no_cache=1
4829 fi
4830
4831 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4832
4833fi;
4834
4835 eval "$ac_cv_use_exceptions"
4836 if test "$no_cache" != 1; then
4837 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4838 fi
4839
4840 if test "$wxUSE_EXCEPTIONS" = yes; then
4841 echo "$as_me:$LINENO: result: yes" >&5
4842echo "${ECHO_T}yes" >&6
4843 else
4844 echo "$as_me:$LINENO: result: no" >&5
4845echo "${ECHO_T}no" >&6
4846 fi
4847
4848
4849 enablestring=
4850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4851echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4852 no_cache=0
4853 # Check whether --enable-ffile or --disable-ffile was given.
4854if test "${enable_ffile+set}" = set; then
4855 enableval="$enable_ffile"
4856
4857 if test "$enableval" = yes; then
4858 ac_cv_use_ffile='wxUSE_FFILE=yes'
4859 else
4860 ac_cv_use_ffile='wxUSE_FFILE=no'
4861 fi
4862
4863else
4864
4865 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4866 if test "x$LINE" != x ; then
4867 eval "DEFAULT_$LINE"
4868 else
4869 no_cache=1
4870 fi
4871
4872 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4873
4874fi;
4875
4876 eval "$ac_cv_use_ffile"
4877 if test "$no_cache" != 1; then
4878 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4879 fi
4880
4881 if test "$wxUSE_FFILE" = yes; then
4882 echo "$as_me:$LINENO: result: yes" >&5
4883echo "${ECHO_T}yes" >&6
4884 else
4885 echo "$as_me:$LINENO: result: no" >&5
4886echo "${ECHO_T}no" >&6
4887 fi
4888
4889
4890 enablestring=
4891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4892echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4893 no_cache=0
4894 # Check whether --enable-file or --disable-file was given.
4895if test "${enable_file+set}" = set; then
4896 enableval="$enable_file"
4897
4898 if test "$enableval" = yes; then
4899 ac_cv_use_file='wxUSE_FILE=yes'
4900 else
4901 ac_cv_use_file='wxUSE_FILE=no'
4902 fi
4903
4904else
4905
4906 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4907 if test "x$LINE" != x ; then
4908 eval "DEFAULT_$LINE"
4909 else
4910 no_cache=1
4911 fi
4912
4913 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4914
4915fi;
4916
4917 eval "$ac_cv_use_file"
4918 if test "$no_cache" != 1; then
4919 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4920 fi
4921
4922 if test "$wxUSE_FILE" = yes; then
4923 echo "$as_me:$LINENO: result: yes" >&5
4924echo "${ECHO_T}yes" >&6
4925 else
4926 echo "$as_me:$LINENO: result: no" >&5
4927echo "${ECHO_T}no" >&6
4928 fi
4929
4930
4931 enablestring=
4932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4933echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4934 no_cache=0
4935 # Check whether --enable-filesystem or --disable-filesystem was given.
4936if test "${enable_filesystem+set}" = set; then
4937 enableval="$enable_filesystem"
4938
4939 if test "$enableval" = yes; then
4940 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4941 else
4942 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4943 fi
4944
4945else
4946
4947 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4948 if test "x$LINE" != x ; then
4949 eval "DEFAULT_$LINE"
4950 else
4951 no_cache=1
4952 fi
4953
4954 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4955
4956fi;
4957
4958 eval "$ac_cv_use_filesystem"
4959 if test "$no_cache" != 1; then
4960 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4961 fi
4962
4963 if test "$wxUSE_FILESYSTEM" = yes; then
4964 echo "$as_me:$LINENO: result: yes" >&5
4965echo "${ECHO_T}yes" >&6
4966 else
4967 echo "$as_me:$LINENO: result: no" >&5
4968echo "${ECHO_T}no" >&6
4969 fi
4970
4971
4972 enablestring=
4973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4974echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4975 no_cache=0
4976 # Check whether --enable-fontmap or --disable-fontmap was given.
4977if test "${enable_fontmap+set}" = set; then
4978 enableval="$enable_fontmap"
4979
4980 if test "$enableval" = yes; then
4981 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4982 else
4983 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4984 fi
4985
4986else
4987
4988 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4989 if test "x$LINE" != x ; then
4990 eval "DEFAULT_$LINE"
4991 else
4992 no_cache=1
4993 fi
4994
4995 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4996
4997fi;
4998
4999 eval "$ac_cv_use_fontmap"
5000 if test "$no_cache" != 1; then
5001 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5002 fi
5003
5004 if test "$wxUSE_FONTMAP" = yes; then
5005 echo "$as_me:$LINENO: result: yes" >&5
5006echo "${ECHO_T}yes" >&6
5007 else
5008 echo "$as_me:$LINENO: result: no" >&5
5009echo "${ECHO_T}no" >&6
5010 fi
5011
5012
5013 enablestring=
5014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5015echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5016 no_cache=0
5017 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5018if test "${enable_fs_inet+set}" = set; then
5019 enableval="$enable_fs_inet"
5020
5021 if test "$enableval" = yes; then
5022 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5023 else
5024 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5025 fi
5026
5027else
5028
5029 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5030 if test "x$LINE" != x ; then
5031 eval "DEFAULT_$LINE"
5032 else
5033 no_cache=1
5034 fi
5035
5036 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5037
5038fi;
5039
5040 eval "$ac_cv_use_fs_inet"
5041 if test "$no_cache" != 1; then
5042 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5043 fi
5044
5045 if test "$wxUSE_FS_INET" = yes; then
5046 echo "$as_me:$LINENO: result: yes" >&5
5047echo "${ECHO_T}yes" >&6
5048 else
5049 echo "$as_me:$LINENO: result: no" >&5
5050echo "${ECHO_T}no" >&6
5051 fi
5052
5053
5054 enablestring=
5055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5056echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5057 no_cache=0
5058 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5059if test "${enable_fs_zip+set}" = set; then
5060 enableval="$enable_fs_zip"
5061
5062 if test "$enableval" = yes; then
5063 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5064 else
5065 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5066 fi
5067
5068else
5069
5070 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5071 if test "x$LINE" != x ; then
5072 eval "DEFAULT_$LINE"
5073 else
5074 no_cache=1
5075 fi
5076
5077 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5078
5079fi;
5080
5081 eval "$ac_cv_use_fs_zip"
5082 if test "$no_cache" != 1; then
5083 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5084 fi
5085
5086 if test "$wxUSE_FS_ZIP" = yes; then
5087 echo "$as_me:$LINENO: result: yes" >&5
5088echo "${ECHO_T}yes" >&6
5089 else
5090 echo "$as_me:$LINENO: result: no" >&5
5091echo "${ECHO_T}no" >&6
5092 fi
5093
5094
5095 enablestring=
5096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5097echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5098 no_cache=0
5099 # Check whether --enable-geometry or --disable-geometry was given.
5100if test "${enable_geometry+set}" = set; then
5101 enableval="$enable_geometry"
5102
5103 if test "$enableval" = yes; then
5104 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5105 else
5106 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5107 fi
5108
5109else
5110
5111 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5112 if test "x$LINE" != x ; then
5113 eval "DEFAULT_$LINE"
5114 else
5115 no_cache=1
5116 fi
5117
5118 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5119
5120fi;
5121
5122 eval "$ac_cv_use_geometry"
5123 if test "$no_cache" != 1; then
5124 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5125 fi
5126
5127 if test "$wxUSE_GEOMETRY" = yes; then
5128 echo "$as_me:$LINENO: result: yes" >&5
5129echo "${ECHO_T}yes" >&6
5130 else
5131 echo "$as_me:$LINENO: result: no" >&5
5132echo "${ECHO_T}no" >&6
5133 fi
5134
5135
5136 enablestring=
5137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5138echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5139 no_cache=0
5140 # Check whether --enable-log or --disable-log was given.
5141if test "${enable_log+set}" = set; then
5142 enableval="$enable_log"
5143
5144 if test "$enableval" = yes; then
5145 ac_cv_use_log='wxUSE_LOG=yes'
5146 else
5147 ac_cv_use_log='wxUSE_LOG=no'
5148 fi
5149
5150else
5151
5152 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5153 if test "x$LINE" != x ; then
5154 eval "DEFAULT_$LINE"
5155 else
5156 no_cache=1
5157 fi
5158
5159 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5160
5161fi;
5162
5163 eval "$ac_cv_use_log"
5164 if test "$no_cache" != 1; then
5165 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5166 fi
5167
5168 if test "$wxUSE_LOG" = yes; then
5169 echo "$as_me:$LINENO: result: yes" >&5
5170echo "${ECHO_T}yes" >&6
5171 else
5172 echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
5174 fi
5175
5176
5177 enablestring=
5178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5179echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5180 no_cache=0
5181 # Check whether --enable-longlong or --disable-longlong was given.
5182if test "${enable_longlong+set}" = set; then
5183 enableval="$enable_longlong"
5184
5185 if test "$enableval" = yes; then
5186 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5187 else
5188 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5189 fi
5190
5191else
5192
5193 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5194 if test "x$LINE" != x ; then
5195 eval "DEFAULT_$LINE"
5196 else
5197 no_cache=1
5198 fi
5199
5200 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5201
5202fi;
5203
5204 eval "$ac_cv_use_longlong"
5205 if test "$no_cache" != 1; then
5206 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5207 fi
5208
5209 if test "$wxUSE_LONGLONG" = yes; then
5210 echo "$as_me:$LINENO: result: yes" >&5
5211echo "${ECHO_T}yes" >&6
5212 else
5213 echo "$as_me:$LINENO: result: no" >&5
5214echo "${ECHO_T}no" >&6
5215 fi
5216
5217
5218 enablestring=
5219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5220echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5221 no_cache=0
5222 # Check whether --enable-mimetype or --disable-mimetype was given.
5223if test "${enable_mimetype+set}" = set; then
5224 enableval="$enable_mimetype"
5225
5226 if test "$enableval" = yes; then
5227 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5228 else
5229 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5230 fi
5231
5232else
5233
5234 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5235 if test "x$LINE" != x ; then
5236 eval "DEFAULT_$LINE"
5237 else
5238 no_cache=1
5239 fi
5240
5241 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5242
5243fi;
5244
5245 eval "$ac_cv_use_mimetype"
5246 if test "$no_cache" != 1; then
5247 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5248 fi
5249
5250 if test "$wxUSE_MIMETYPE" = yes; then
5251 echo "$as_me:$LINENO: result: yes" >&5
5252echo "${ECHO_T}yes" >&6
5253 else
5254 echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6
5256 fi
5257
5258
5259 enablestring=
5260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5261echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5262 no_cache=0
5263 # Check whether --enable-mslu or --disable-mslu was given.
5264if test "${enable_mslu+set}" = set; then
5265 enableval="$enable_mslu"
5266
5267 if test "$enableval" = yes; then
5268 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5269 else
5270 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5271 fi
5272
5273else
5274
5275 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5276 if test "x$LINE" != x ; then
5277 eval "DEFAULT_$LINE"
5278 else
5279 no_cache=1
5280 fi
5281
5282 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5283
5284fi;
5285
5286 eval "$ac_cv_use_mslu"
5287 if test "$no_cache" != 1; then
5288 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5289 fi
5290
5291 if test "$wxUSE_UNICODE_MSLU" = yes; then
5292 echo "$as_me:$LINENO: result: yes" >&5
5293echo "${ECHO_T}yes" >&6
5294 else
5295 echo "$as_me:$LINENO: result: no" >&5
5296echo "${ECHO_T}no" >&6
5297 fi
5298
5299
5300 enablestring=
5301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5302echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5303 no_cache=0
5304 # Check whether --enable-snglinst or --disable-snglinst was given.
5305if test "${enable_snglinst+set}" = set; then
5306 enableval="$enable_snglinst"
5307
5308 if test "$enableval" = yes; then
5309 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5310 else
5311 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5312 fi
5313
5314else
5315
5316 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5317 if test "x$LINE" != x ; then
5318 eval "DEFAULT_$LINE"
5319 else
5320 no_cache=1
5321 fi
5322
5323 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5324
5325fi;
5326
5327 eval "$ac_cv_use_snglinst"
5328 if test "$no_cache" != 1; then
5329 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5330 fi
5331
5332 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5333 echo "$as_me:$LINENO: result: yes" >&5
5334echo "${ECHO_T}yes" >&6
5335 else
5336 echo "$as_me:$LINENO: result: no" >&5
5337echo "${ECHO_T}no" >&6
5338 fi
5339
5340
5341 enablestring=
5342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5343echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5344 no_cache=0
5345 # Check whether --enable-streams or --disable-streams was given.
5346if test "${enable_streams+set}" = set; then
5347 enableval="$enable_streams"
5348
5349 if test "$enableval" = yes; then
5350 ac_cv_use_streams='wxUSE_STREAMS=yes'
5351 else
5352 ac_cv_use_streams='wxUSE_STREAMS=no'
5353 fi
5354
5355else
5356
5357 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5358 if test "x$LINE" != x ; then
5359 eval "DEFAULT_$LINE"
5360 else
5361 no_cache=1
5362 fi
5363
5364 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5365
5366fi;
5367
5368 eval "$ac_cv_use_streams"
5369 if test "$no_cache" != 1; then
5370 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5371 fi
5372
5373 if test "$wxUSE_STREAMS" = yes; then
5374 echo "$as_me:$LINENO: result: yes" >&5
5375echo "${ECHO_T}yes" >&6
5376 else
5377 echo "$as_me:$LINENO: result: no" >&5
5378echo "${ECHO_T}no" >&6
5379 fi
5380
5381
5382 enablestring=
5383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5384echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5385 no_cache=0
5386 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5387if test "${enable_std_iostreams+set}" = set; then
5388 enableval="$enable_std_iostreams"
5389
5390 if test "$enableval" = yes; then
5391 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5392 else
5393 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5394 fi
5395
5396else
5397
5398 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5399 if test "x$LINE" != x ; then
5400 eval "DEFAULT_$LINE"
5401 else
5402 no_cache=1
5403 fi
5404
5405 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5406
5407fi;
5408
5409 eval "$ac_cv_use_std_iostreams"
5410 if test "$no_cache" != 1; then
5411 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5412 fi
5413
5414 if test "$wxUSE_STD_IOSTREAM" = yes; then
5415 echo "$as_me:$LINENO: result: yes" >&5
5416echo "${ECHO_T}yes" >&6
5417 else
5418 echo "$as_me:$LINENO: result: no" >&5
5419echo "${ECHO_T}no" >&6
5420 fi
5421
5422
5423 enablestring=
5424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5425echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5426 no_cache=0
5427 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5428if test "${enable_stopwatch+set}" = set; then
5429 enableval="$enable_stopwatch"
5430
5431 if test "$enableval" = yes; then
5432 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5433 else
5434 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5435 fi
5436
5437else
5438
5439 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5440 if test "x$LINE" != x ; then
5441 eval "DEFAULT_$LINE"
5442 else
5443 no_cache=1
5444 fi
5445
5446 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5447
5448fi;
5449
5450 eval "$ac_cv_use_stopwatch"
5451 if test "$no_cache" != 1; then
5452 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5453 fi
5454
5455 if test "$wxUSE_STOPWATCH" = yes; then
5456 echo "$as_me:$LINENO: result: yes" >&5
5457echo "${ECHO_T}yes" >&6
5458 else
5459 echo "$as_me:$LINENO: result: no" >&5
5460echo "${ECHO_T}no" >&6
5461 fi
5462
5463
5464 enablestring=
5465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5466echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5467 no_cache=0
5468 # Check whether --enable-system_options or --disable-system_options was given.
5469if test "${enable_system_options+set}" = set; then
5470 enableval="$enable_system_options"
5471
5472 if test "$enableval" = yes; then
5473 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5474 else
5475 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5476 fi
5477
5478else
5479
5480 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5481 if test "x$LINE" != x ; then
5482 eval "DEFAULT_$LINE"
5483 else
5484 no_cache=1
5485 fi
5486
5487 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5488
5489fi;
5490
5491 eval "$ac_cv_use_system_options"
5492 if test "$no_cache" != 1; then
5493 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5494 fi
5495
5496 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5497 echo "$as_me:$LINENO: result: yes" >&5
5498echo "${ECHO_T}yes" >&6
5499 else
5500 echo "$as_me:$LINENO: result: no" >&5
5501echo "${ECHO_T}no" >&6
5502 fi
5503
5504
5505 enablestring=
5506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5507echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5508 no_cache=0
5509 # Check whether --enable-textbuf or --disable-textbuf was given.
5510if test "${enable_textbuf+set}" = set; then
5511 enableval="$enable_textbuf"
5512
5513 if test "$enableval" = yes; then
5514 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5515 else
5516 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5517 fi
5518
5519else
5520
5521 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5522 if test "x$LINE" != x ; then
5523 eval "DEFAULT_$LINE"
5524 else
5525 no_cache=1
5526 fi
5527
5528 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5529
5530fi;
5531
5532 eval "$ac_cv_use_textbuf"
5533 if test "$no_cache" != 1; then
5534 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5535 fi
5536
5537 if test "$wxUSE_TEXTBUFFER" = yes; then
5538 echo "$as_me:$LINENO: result: yes" >&5
5539echo "${ECHO_T}yes" >&6
5540 else
5541 echo "$as_me:$LINENO: result: no" >&5
5542echo "${ECHO_T}no" >&6
5543 fi
5544
5545
5546 enablestring=
5547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5548echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5549 no_cache=0
5550 # Check whether --enable-textfile or --disable-textfile was given.
5551if test "${enable_textfile+set}" = set; then
5552 enableval="$enable_textfile"
5553
5554 if test "$enableval" = yes; then
5555 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5556 else
5557 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5558 fi
5559
5560else
5561
5562 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5563 if test "x$LINE" != x ; then
5564 eval "DEFAULT_$LINE"
5565 else
5566 no_cache=1
5567 fi
5568
5569 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5570
5571fi;
5572
5573 eval "$ac_cv_use_textfile"
5574 if test "$no_cache" != 1; then
5575 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5576 fi
5577
5578 if test "$wxUSE_TEXTFILE" = yes; then
5579 echo "$as_me:$LINENO: result: yes" >&5
5580echo "${ECHO_T}yes" >&6
5581 else
5582 echo "$as_me:$LINENO: result: no" >&5
5583echo "${ECHO_T}no" >&6
5584 fi
5585
5586
5587 enablestring=
5588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5589echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5590 no_cache=0
5591 # Check whether --enable-timer or --disable-timer was given.
5592if test "${enable_timer+set}" = set; then
5593 enableval="$enable_timer"
5594
5595 if test "$enableval" = yes; then
5596 ac_cv_use_timer='wxUSE_TIMER=yes'
5597 else
5598 ac_cv_use_timer='wxUSE_TIMER=no'
5599 fi
5600
5601else
5602
5603 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5604 if test "x$LINE" != x ; then
5605 eval "DEFAULT_$LINE"
5606 else
5607 no_cache=1
5608 fi
5609
5610 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5611
5612fi;
5613
5614 eval "$ac_cv_use_timer"
5615 if test "$no_cache" != 1; then
5616 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5617 fi
5618
5619 if test "$wxUSE_TIMER" = yes; then
5620 echo "$as_me:$LINENO: result: yes" >&5
5621echo "${ECHO_T}yes" >&6
5622 else
5623 echo "$as_me:$LINENO: result: no" >&5
5624echo "${ECHO_T}no" >&6
5625 fi
5626
5627
5628 enablestring=
5629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5630echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5631 no_cache=0
5632 # Check whether --enable-unicode or --disable-unicode was given.
5633if test "${enable_unicode+set}" = set; then
5634 enableval="$enable_unicode"
5635
5636 if test "$enableval" = yes; then
5637 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5638 else
5639 ac_cv_use_unicode='wxUSE_UNICODE=no'
5640 fi
5641
5642else
5643
5644 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5645 if test "x$LINE" != x ; then
5646 eval "DEFAULT_$LINE"
5647 else
5648 no_cache=1
5649 fi
5650
5651 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5652
5653fi;
5654
5655 eval "$ac_cv_use_unicode"
5656 if test "$no_cache" != 1; then
5657 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5658 fi
5659
5660 if test "$wxUSE_UNICODE" = yes; then
5661 echo "$as_me:$LINENO: result: yes" >&5
5662echo "${ECHO_T}yes" >&6
5663 else
5664 echo "$as_me:$LINENO: result: no" >&5
5665echo "${ECHO_T}no" >&6
5666 fi
5667
5668
5669 enablestring=
5670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5671echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5672 no_cache=0
5673 # Check whether --enable-sound or --disable-sound was given.
5674if test "${enable_sound+set}" = set; then
5675 enableval="$enable_sound"
5676
5677 if test "$enableval" = yes; then
5678 ac_cv_use_sound='wxUSE_SOUND=yes'
5679 else
5680 ac_cv_use_sound='wxUSE_SOUND=no'
5681 fi
5682
5683else
5684
5685 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5686 if test "x$LINE" != x ; then
5687 eval "DEFAULT_$LINE"
5688 else
5689 no_cache=1
5690 fi
5691
5692 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5693
5694fi;
5695
5696 eval "$ac_cv_use_sound"
5697 if test "$no_cache" != 1; then
5698 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5699 fi
5700
5701 if test "$wxUSE_SOUND" = yes; then
5702 echo "$as_me:$LINENO: result: yes" >&5
5703echo "${ECHO_T}yes" >&6
5704 else
5705 echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6
5707 fi
5708
5709
5710 enablestring=
5711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5712echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5713 no_cache=0
5714 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5715if test "${enable_wxprintfv+set}" = set; then
5716 enableval="$enable_wxprintfv"
5717
5718 if test "$enableval" = yes; then
5719 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5720 else
5721 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5722 fi
5723
5724else
5725
5726 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5727 if test "x$LINE" != x ; then
5728 eval "DEFAULT_$LINE"
5729 else
5730 no_cache=1
5731 fi
5732
5733 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5734
5735fi;
5736
5737 eval "$ac_cv_use_wxprintfv"
5738 if test "$no_cache" != 1; then
5739 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5740 fi
5741
5742 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5743 echo "$as_me:$LINENO: result: yes" >&5
5744echo "${ECHO_T}yes" >&6
5745 else
5746 echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6
5748 fi
5749
5750
5751 enablestring=
5752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5753echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5754 no_cache=0
5755 # Check whether --enable-zipstream or --disable-zipstream was given.
5756if test "${enable_zipstream+set}" = set; then
5757 enableval="$enable_zipstream"
5758
5759 if test "$enableval" = yes; then
5760 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5761 else
5762 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5763 fi
5764
5765else
5766
5767 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5768 if test "x$LINE" != x ; then
5769 eval "DEFAULT_$LINE"
5770 else
5771 no_cache=1
5772 fi
5773
5774 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5775
5776fi;
5777
5778 eval "$ac_cv_use_zipstream"
5779 if test "$no_cache" != 1; then
5780 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5781 fi
5782
5783 if test "$wxUSE_ZIPSTREAM" = yes; then
5784 echo "$as_me:$LINENO: result: yes" >&5
5785echo "${ECHO_T}yes" >&6
5786 else
5787 echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6
5789 fi
5790
5791
5792 enablestring=
5793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5794echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5795 no_cache=0
5796 # Check whether --enable-gzstream or --disable-gzstream was given.
5797if test "${enable_gzstream+set}" = set; then
5798 enableval="$enable_gzstream"
5799
5800 if test "$enableval" = yes; then
5801 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5802 else
5803 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5804 fi
5805
5806else
5807
5808 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5809 if test "x$LINE" != x ; then
5810 eval "DEFAULT_$LINE"
5811 else
5812 no_cache=1
5813 fi
5814
5815 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5816
5817fi;
5818
5819 eval "$ac_cv_use_gzstream"
5820 if test "$no_cache" != 1; then
5821 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5822 fi
5823
5824 if test "$wxUSE_GZSTREAM" = yes; then
5825 echo "$as_me:$LINENO: result: yes" >&5
5826echo "${ECHO_T}yes" >&6
5827 else
5828 echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6
5830 fi
5831
5832
5833
5834 enablestring=
5835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5836echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5837 no_cache=0
5838 # Check whether --enable-url or --disable-url was given.
5839if test "${enable_url+set}" = set; then
5840 enableval="$enable_url"
5841
5842 if test "$enableval" = yes; then
5843 ac_cv_use_url='wxUSE_URL=yes'
5844 else
5845 ac_cv_use_url='wxUSE_URL=no'
5846 fi
5847
5848else
5849
5850 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5851 if test "x$LINE" != x ; then
5852 eval "DEFAULT_$LINE"
5853 else
5854 no_cache=1
5855 fi
5856
5857 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5858
5859fi;
5860
5861 eval "$ac_cv_use_url"
5862 if test "$no_cache" != 1; then
5863 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5864 fi
5865
5866 if test "$wxUSE_URL" = yes; then
5867 echo "$as_me:$LINENO: result: yes" >&5
5868echo "${ECHO_T}yes" >&6
5869 else
5870 echo "$as_me:$LINENO: result: no" >&5
5871echo "${ECHO_T}no" >&6
5872 fi
5873
5874
5875 enablestring=
5876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5877echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5878 no_cache=0
5879 # Check whether --enable-protocol or --disable-protocol was given.
5880if test "${enable_protocol+set}" = set; then
5881 enableval="$enable_protocol"
5882
5883 if test "$enableval" = yes; then
5884 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5885 else
5886 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5887 fi
5888
5889else
5890
5891 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5892 if test "x$LINE" != x ; then
5893 eval "DEFAULT_$LINE"
5894 else
5895 no_cache=1
5896 fi
5897
5898 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5899
5900fi;
5901
5902 eval "$ac_cv_use_protocol"
5903 if test "$no_cache" != 1; then
5904 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5905 fi
5906
5907 if test "$wxUSE_PROTOCOL" = yes; then
5908 echo "$as_me:$LINENO: result: yes" >&5
5909echo "${ECHO_T}yes" >&6
5910 else
5911 echo "$as_me:$LINENO: result: no" >&5
5912echo "${ECHO_T}no" >&6
5913 fi
5914
5915
5916 enablestring=
5917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5918echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5919 no_cache=0
5920 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5921if test "${enable_protocol_http+set}" = set; then
5922 enableval="$enable_protocol_http"
5923
5924 if test "$enableval" = yes; then
5925 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5926 else
5927 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5928 fi
5929
5930else
5931
5932 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5933 if test "x$LINE" != x ; then
5934 eval "DEFAULT_$LINE"
5935 else
5936 no_cache=1
5937 fi
5938
5939 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5940
5941fi;
5942
5943 eval "$ac_cv_use_protocol_http"
5944 if test "$no_cache" != 1; then
5945 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5946 fi
5947
5948 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5949 echo "$as_me:$LINENO: result: yes" >&5
5950echo "${ECHO_T}yes" >&6
5951 else
5952 echo "$as_me:$LINENO: result: no" >&5
5953echo "${ECHO_T}no" >&6
5954 fi
5955
5956
5957 enablestring=
5958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5959echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5960 no_cache=0
5961 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5962if test "${enable_protocol_ftp+set}" = set; then
5963 enableval="$enable_protocol_ftp"
5964
5965 if test "$enableval" = yes; then
5966 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5967 else
5968 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5969 fi
5970
5971else
5972
5973 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5974 if test "x$LINE" != x ; then
5975 eval "DEFAULT_$LINE"
5976 else
5977 no_cache=1
5978 fi
5979
5980 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5981
5982fi;
5983
5984 eval "$ac_cv_use_protocol_ftp"
5985 if test "$no_cache" != 1; then
5986 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5987 fi
5988
5989 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5990 echo "$as_me:$LINENO: result: yes" >&5
5991echo "${ECHO_T}yes" >&6
5992 else
5993 echo "$as_me:$LINENO: result: no" >&5
5994echo "${ECHO_T}no" >&6
5995 fi
5996
5997
5998 enablestring=
5999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6000echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6001 no_cache=0
6002 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6003if test "${enable_protocol_file+set}" = set; then
6004 enableval="$enable_protocol_file"
6005
6006 if test "$enableval" = yes; then
6007 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6008 else
6009 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6010 fi
6011
6012else
6013
6014 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6015 if test "x$LINE" != x ; then
6016 eval "DEFAULT_$LINE"
6017 else
6018 no_cache=1
6019 fi
6020
6021 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6022
6023fi;
6024
6025 eval "$ac_cv_use_protocol_file"
6026 if test "$no_cache" != 1; then
6027 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6028 fi
6029
6030 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6031 echo "$as_me:$LINENO: result: yes" >&5
6032echo "${ECHO_T}yes" >&6
6033 else
6034 echo "$as_me:$LINENO: result: no" >&5
6035echo "${ECHO_T}no" >&6
6036 fi
6037
6038
6039
6040
6041
6042 enablestring=
6043 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6044echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6045 no_cache=0
6046 # Check whether --enable-threads or --disable-threads was given.
6047if test "${enable_threads+set}" = set; then
6048 enableval="$enable_threads"
6049
6050 if test "$enableval" = yes; then
6051 ac_cv_use_threads='wxUSE_THREADS=yes'
6052 else
6053 ac_cv_use_threads='wxUSE_THREADS=no'
6054 fi
6055
6056else
6057
6058 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6059 if test "x$LINE" != x ; then
6060 eval "DEFAULT_$LINE"
6061 else
6062 no_cache=1
6063 fi
6064
6065 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6066
6067fi;
6068
6069 eval "$ac_cv_use_threads"
6070 if test "$no_cache" != 1; then
6071 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6072 fi
6073
6074 if test "$wxUSE_THREADS" = yes; then
6075 echo "$as_me:$LINENO: result: yes" >&5
6076echo "${ECHO_T}yes" >&6
6077 else
6078 echo "$as_me:$LINENO: result: no" >&5
6079echo "${ECHO_T}no" >&6
6080 fi
6081
6082
6083if test "$wxUSE_GUI" = "yes"; then
6084
6085
6086
6087 enablestring=
6088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6089echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6090 no_cache=0
6091 # Check whether --enable-docview or --disable-docview was given.
6092if test "${enable_docview+set}" = set; then
6093 enableval="$enable_docview"
6094
6095 if test "$enableval" = yes; then
6096 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6097 else
6098 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6099 fi
6100
6101else
6102
6103 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6104 if test "x$LINE" != x ; then
6105 eval "DEFAULT_$LINE"
6106 else
6107 no_cache=1
6108 fi
6109
6110 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6111
6112fi;
6113
6114 eval "$ac_cv_use_docview"
6115 if test "$no_cache" != 1; then
6116 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6117 fi
6118
6119 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6120 echo "$as_me:$LINENO: result: yes" >&5
6121echo "${ECHO_T}yes" >&6
6122 else
6123 echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6
6125 fi
6126
6127
6128 enablestring=
6129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6130echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6131 no_cache=0
6132 # Check whether --enable-help or --disable-help was given.
6133if test "${enable_help+set}" = set; then
6134 enableval="$enable_help"
6135
6136 if test "$enableval" = yes; then
6137 ac_cv_use_help='wxUSE_HELP=yes'
6138 else
6139 ac_cv_use_help='wxUSE_HELP=no'
6140 fi
6141
6142else
6143
6144 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6145 if test "x$LINE" != x ; then
6146 eval "DEFAULT_$LINE"
6147 else
6148 no_cache=1
6149 fi
6150
6151 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6152
6153fi;
6154
6155 eval "$ac_cv_use_help"
6156 if test "$no_cache" != 1; then
6157 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6158 fi
6159
6160 if test "$wxUSE_HELP" = yes; then
6161 echo "$as_me:$LINENO: result: yes" >&5
6162echo "${ECHO_T}yes" >&6
6163 else
6164 echo "$as_me:$LINENO: result: no" >&5
6165echo "${ECHO_T}no" >&6
6166 fi
6167
6168
6169 enablestring=
6170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6171echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6172 no_cache=0
6173 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6174if test "${enable_mshtmlhelp+set}" = set; then
6175 enableval="$enable_mshtmlhelp"
6176
6177 if test "$enableval" = yes; then
6178 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6179 else
6180 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6181 fi
6182
6183else
6184
6185 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6186 if test "x$LINE" != x ; then
6187 eval "DEFAULT_$LINE"
6188 else
6189 no_cache=1
6190 fi
6191
6192 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6193
6194fi;
6195
6196 eval "$ac_cv_use_mshtmlhelp"
6197 if test "$no_cache" != 1; then
6198 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6199 fi
6200
6201 if test "$wxUSE_MS_HTML_HELP" = yes; then
6202 echo "$as_me:$LINENO: result: yes" >&5
6203echo "${ECHO_T}yes" >&6
6204 else
6205 echo "$as_me:$LINENO: result: no" >&5
6206echo "${ECHO_T}no" >&6
6207 fi
6208
6209
6210 enablestring=
6211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6212echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6213 no_cache=0
6214 # Check whether --enable-html or --disable-html was given.
6215if test "${enable_html+set}" = set; then
6216 enableval="$enable_html"
6217
6218 if test "$enableval" = yes; then
6219 ac_cv_use_html='wxUSE_HTML=yes'
6220 else
6221 ac_cv_use_html='wxUSE_HTML=no'
6222 fi
6223
6224else
6225
6226 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6227 if test "x$LINE" != x ; then
6228 eval "DEFAULT_$LINE"
6229 else
6230 no_cache=1
6231 fi
6232
6233 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6234
6235fi;
6236
6237 eval "$ac_cv_use_html"
6238 if test "$no_cache" != 1; then
6239 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6240 fi
6241
6242 if test "$wxUSE_HTML" = yes; then
6243 echo "$as_me:$LINENO: result: yes" >&5
6244echo "${ECHO_T}yes" >&6
6245 else
6246 echo "$as_me:$LINENO: result: no" >&5
6247echo "${ECHO_T}no" >&6
6248 fi
6249
6250
6251 enablestring=
6252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6253echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6254 no_cache=0
6255 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6256if test "${enable_htmlhelp+set}" = set; then
6257 enableval="$enable_htmlhelp"
6258
6259 if test "$enableval" = yes; then
6260 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6261 else
6262 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6263 fi
6264
6265else
6266
6267 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6268 if test "x$LINE" != x ; then
6269 eval "DEFAULT_$LINE"
6270 else
6271 no_cache=1
6272 fi
6273
6274 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6275
6276fi;
6277
6278 eval "$ac_cv_use_htmlhelp"
6279 if test "$no_cache" != 1; then
6280 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6281 fi
6282
6283 if test "$wxUSE_WXHTML_HELP" = yes; then
6284 echo "$as_me:$LINENO: result: yes" >&5
6285echo "${ECHO_T}yes" >&6
6286 else
6287 echo "$as_me:$LINENO: result: no" >&5
6288echo "${ECHO_T}no" >&6
6289 fi
6290
6291
6292 enablestring=
6293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6294echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6295 no_cache=0
6296 # Check whether --enable-constraints or --disable-constraints was given.
6297if test "${enable_constraints+set}" = set; then
6298 enableval="$enable_constraints"
6299
6300 if test "$enableval" = yes; then
6301 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6302 else
6303 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6304 fi
6305
6306else
6307
6308 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6309 if test "x$LINE" != x ; then
6310 eval "DEFAULT_$LINE"
6311 else
6312 no_cache=1
6313 fi
6314
6315 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6316
6317fi;
6318
6319 eval "$ac_cv_use_constraints"
6320 if test "$no_cache" != 1; then
6321 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6322 fi
6323
6324 if test "$wxUSE_CONSTRAINTS" = yes; then
6325 echo "$as_me:$LINENO: result: yes" >&5
6326echo "${ECHO_T}yes" >&6
6327 else
6328 echo "$as_me:$LINENO: result: no" >&5
6329echo "${ECHO_T}no" >&6
6330 fi
6331
6332
6333 enablestring=
6334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6335echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6336 no_cache=0
6337 # Check whether --enable-printarch or --disable-printarch was given.
6338if test "${enable_printarch+set}" = set; then
6339 enableval="$enable_printarch"
6340
6341 if test "$enableval" = yes; then
6342 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6343 else
6344 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6345 fi
6346
6347else
6348
6349 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6350 if test "x$LINE" != x ; then
6351 eval "DEFAULT_$LINE"
6352 else
6353 no_cache=1
6354 fi
6355
6356 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6357
6358fi;
6359
6360 eval "$ac_cv_use_printarch"
6361 if test "$no_cache" != 1; then
6362 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6363 fi
6364
6365 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6366 echo "$as_me:$LINENO: result: yes" >&5
6367echo "${ECHO_T}yes" >&6
6368 else
6369 echo "$as_me:$LINENO: result: no" >&5
6370echo "${ECHO_T}no" >&6
6371 fi
6372
6373
6374 enablestring=
6375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6376echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6377 no_cache=0
6378 # Check whether --enable-mdi or --disable-mdi was given.
6379if test "${enable_mdi+set}" = set; then
6380 enableval="$enable_mdi"
6381
6382 if test "$enableval" = yes; then
6383 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6384 else
6385 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6386 fi
6387
6388else
6389
6390 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6391 if test "x$LINE" != x ; then
6392 eval "DEFAULT_$LINE"
6393 else
6394 no_cache=1
6395 fi
6396
6397 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6398
6399fi;
6400
6401 eval "$ac_cv_use_mdi"
6402 if test "$no_cache" != 1; then
6403 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6404 fi
6405
6406 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6407 echo "$as_me:$LINENO: result: yes" >&5
6408echo "${ECHO_T}yes" >&6
6409 else
6410 echo "$as_me:$LINENO: result: no" >&5
6411echo "${ECHO_T}no" >&6
6412 fi
6413
6414
6415 enablestring=
6416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6417echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6418 no_cache=0
6419 # Check whether --enable-loggui or --disable-loggui was given.
6420if test "${enable_loggui+set}" = set; then
6421 enableval="$enable_loggui"
6422
6423 if test "$enableval" = yes; then
6424 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6425 else
6426 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6427 fi
6428
6429else
6430
6431 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6432 if test "x$LINE" != x ; then
6433 eval "DEFAULT_$LINE"
6434 else
6435 no_cache=1
6436 fi
6437
6438 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6439
6440fi;
6441
6442 eval "$ac_cv_use_loggui"
6443 if test "$no_cache" != 1; then
6444 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6445 fi
6446
6447 if test "$wxUSE_LOGGUI" = yes; then
6448 echo "$as_me:$LINENO: result: yes" >&5
6449echo "${ECHO_T}yes" >&6
6450 else
6451 echo "$as_me:$LINENO: result: no" >&5
6452echo "${ECHO_T}no" >&6
6453 fi
6454
6455
6456 enablestring=
6457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6458echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6459 no_cache=0
6460 # Check whether --enable-logwin or --disable-logwin was given.
6461if test "${enable_logwin+set}" = set; then
6462 enableval="$enable_logwin"
6463
6464 if test "$enableval" = yes; then
6465 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6466 else
6467 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6468 fi
6469
6470else
6471
6472 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6473 if test "x$LINE" != x ; then
6474 eval "DEFAULT_$LINE"
6475 else
6476 no_cache=1
6477 fi
6478
6479 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6480
6481fi;
6482
6483 eval "$ac_cv_use_logwin"
6484 if test "$no_cache" != 1; then
6485 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6486 fi
6487
6488 if test "$wxUSE_LOGWINDOW" = yes; then
6489 echo "$as_me:$LINENO: result: yes" >&5
6490echo "${ECHO_T}yes" >&6
6491 else
6492 echo "$as_me:$LINENO: result: no" >&5
6493echo "${ECHO_T}no" >&6
6494 fi
6495
6496
6497 enablestring=
6498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6499echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6500 no_cache=0
6501 # Check whether --enable-logdialog or --disable-logdialog was given.
6502if test "${enable_logdialog+set}" = set; then
6503 enableval="$enable_logdialog"
6504
6505 if test "$enableval" = yes; then
6506 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6507 else
6508 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6509 fi
6510
6511else
6512
6513 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6514 if test "x$LINE" != x ; then
6515 eval "DEFAULT_$LINE"
6516 else
6517 no_cache=1
6518 fi
6519
6520 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6521
6522fi;
6523
6524 eval "$ac_cv_use_logdialog"
6525 if test "$no_cache" != 1; then
6526 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6527 fi
6528
6529 if test "$wxUSE_LOGDIALOG" = yes; then
6530 echo "$as_me:$LINENO: result: yes" >&5
6531echo "${ECHO_T}yes" >&6
6532 else
6533 echo "$as_me:$LINENO: result: no" >&5
6534echo "${ECHO_T}no" >&6
6535 fi
6536
6537
6538
6539 enablestring=
6540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6541echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6542 no_cache=0
6543 # Check whether --enable-postscript or --disable-postscript was given.
6544if test "${enable_postscript+set}" = set; then
6545 enableval="$enable_postscript"
6546
6547 if test "$enableval" = yes; then
6548 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6549 else
6550 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6551 fi
6552
6553else
6554
6555 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6556 if test "x$LINE" != x ; then
6557 eval "DEFAULT_$LINE"
6558 else
6559 no_cache=1
6560 fi
6561
6562 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6563
6564fi;
6565
6566 eval "$ac_cv_use_postscript"
6567 if test "$no_cache" != 1; then
6568 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6569 fi
6570
6571 if test "$wxUSE_POSTSCRIPT" = yes; then
6572 echo "$as_me:$LINENO: result: yes" >&5
6573echo "${ECHO_T}yes" >&6
6574 else
6575 echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6
6577 fi
6578
6579
6580
6581
6582
6583 enablestring=
6584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6585echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6586 no_cache=0
6587 # Check whether --enable-prologio or --disable-prologio was given.
6588if test "${enable_prologio+set}" = set; then
6589 enableval="$enable_prologio"
6590
6591 if test "$enableval" = yes; then
6592 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6593 else
6594 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6595 fi
6596
6597else
6598
6599 LINE=`grep "wxUSE_PROLOGIO" ${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_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6607
6608fi;
6609
6610 eval "$ac_cv_use_prologio"
6611 if test "$no_cache" != 1; then
6612 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6613 fi
6614
6615 if test "$wxUSE_PROLOGIO" = 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 enablestring=
6625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6626echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6627 no_cache=0
6628 # Check whether --enable-resources or --disable-resources was given.
6629if test "${enable_resources+set}" = set; then
6630 enableval="$enable_resources"
6631
6632 if test "$enableval" = yes; then
6633 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6634 else
6635 ac_cv_use_resources='wxUSE_RESOURCES=no'
6636 fi
6637
6638else
6639
6640 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6641 if test "x$LINE" != x ; then
6642 eval "DEFAULT_$LINE"
6643 else
6644 no_cache=1
6645 fi
6646
6647 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6648
6649fi;
6650
6651 eval "$ac_cv_use_resources"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_RESOURCES" = yes; then
6657 echo "$as_me:$LINENO: result: yes" >&5
6658echo "${ECHO_T}yes" >&6
6659 else
6660 echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6
6662 fi
6663
6664
6665
6666
6667 enablestring=
6668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6669echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6670 no_cache=0
6671 # Check whether --enable-clipboard or --disable-clipboard was given.
6672if test "${enable_clipboard+set}" = set; then
6673 enableval="$enable_clipboard"
6674
6675 if test "$enableval" = yes; then
6676 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6677 else
6678 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6679 fi
6680
6681else
6682
6683 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6684 if test "x$LINE" != x ; then
6685 eval "DEFAULT_$LINE"
6686 else
6687 no_cache=1
6688 fi
6689
6690 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6691
6692fi;
6693
6694 eval "$ac_cv_use_clipboard"
6695 if test "$no_cache" != 1; then
6696 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6697 fi
6698
6699 if test "$wxUSE_CLIPBOARD" = yes; then
6700 echo "$as_me:$LINENO: result: yes" >&5
6701echo "${ECHO_T}yes" >&6
6702 else
6703 echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6
6705 fi
6706
6707
6708 enablestring=
6709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6710echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6711 no_cache=0
6712 # Check whether --enable-dnd or --disable-dnd was given.
6713if test "${enable_dnd+set}" = set; then
6714 enableval="$enable_dnd"
6715
6716 if test "$enableval" = yes; then
6717 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6718 else
6719 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6720 fi
6721
6722else
6723
6724 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6725 if test "x$LINE" != x ; then
6726 eval "DEFAULT_$LINE"
6727 else
6728 no_cache=1
6729 fi
6730
6731 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6732
6733fi;
6734
6735 eval "$ac_cv_use_dnd"
6736 if test "$no_cache" != 1; then
6737 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6738 fi
6739
6740 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6741 echo "$as_me:$LINENO: result: yes" >&5
6742echo "${ECHO_T}yes" >&6
6743 else
6744 echo "$as_me:$LINENO: result: no" >&5
6745echo "${ECHO_T}no" >&6
6746 fi
6747
6748
6749 enablestring=
6750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6751echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6752 no_cache=0
6753 # Check whether --enable-metafile or --disable-metafile was given.
6754if test "${enable_metafile+set}" = set; then
6755 enableval="$enable_metafile"
6756
6757 if test "$enableval" = yes; then
6758 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6759 else
6760 ac_cv_use_metafile='wxUSE_METAFILE=no'
6761 fi
6762
6763else
6764
6765 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6766 if test "x$LINE" != x ; then
6767 eval "DEFAULT_$LINE"
6768 else
6769 no_cache=1
6770 fi
6771
6772 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6773
6774fi;
6775
6776 eval "$ac_cv_use_metafile"
6777 if test "$no_cache" != 1; then
6778 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6779 fi
6780
6781 if test "$wxUSE_METAFILE" = yes; then
6782 echo "$as_me:$LINENO: result: yes" >&5
6783echo "${ECHO_T}yes" >&6
6784 else
6785 echo "$as_me:$LINENO: result: no" >&5
6786echo "${ECHO_T}no" >&6
6787 fi
6788
6789
6790
6791
6792
6793 enablestring=
6794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6795echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6796 no_cache=0
6797 # Check whether --enable-controls or --disable-controls was given.
6798if test "${enable_controls+set}" = set; then
6799 enableval="$enable_controls"
6800
6801 if test "$enableval" = yes; then
6802 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6803 else
6804 ac_cv_use_controls='wxUSE_CONTROLS=no'
6805 fi
6806
6807else
6808
6809 LINE=`grep "wxUSE_CONTROLS" ${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_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6817
6818fi;
6819
6820 eval "$ac_cv_use_controls"
6821 if test "$no_cache" != 1; then
6822 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6823 fi
6824
6825 if test "$wxUSE_CONTROLS" = 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
6834if test "$wxUSE_CONTROLS" = "yes"; then
6835 DEFAULT_wxUSE_ACCEL=yes
6836 DEFAULT_wxUSE_BMPBUTTON=yes
6837 DEFAULT_wxUSE_BUTTON=yes
6838 DEFAULT_wxUSE_CALCTRL=no
6839 DEFAULT_wxUSE_CARET=yes
6840 DEFAULT_wxUSE_COMBOBOX=yes
6841 DEFAULT_wxUSE_CHECKBOX=yes
6842 DEFAULT_wxUSE_CHECKLISTBOX=yes
6843 DEFAULT_wxUSE_CHOICE=yes
6844 DEFAULT_wxUSE_GAUGE=yes
6845 DEFAULT_wxUSE_GRID=yes
6846 DEFAULT_wxUSE_IMAGLIST=yes
6847 DEFAULT_wxUSE_LISTBOOK=yes
6848 DEFAULT_wxUSE_LISTBOX=yes
6849 DEFAULT_wxUSE_LISTCTRL=yes
6850 DEFAULT_wxUSE_NOTEBOOK=yes
6851 DEFAULT_wxUSE_RADIOBOX=yes
6852 DEFAULT_wxUSE_RADIOBTN=yes
6853 DEFAULT_wxUSE_SASH=yes
6854 DEFAULT_wxUSE_SCROLLBAR=yes
6855 DEFAULT_wxUSE_SLIDER=yes
6856 DEFAULT_wxUSE_SPINBTN=yes
6857 DEFAULT_wxUSE_SPINCTRL=yes
6858 DEFAULT_wxUSE_SPLITTER=yes
6859 DEFAULT_wxUSE_STATBMP=yes
6860 DEFAULT_wxUSE_STATBOX=yes
6861 DEFAULT_wxUSE_STATLINE=yes
6862 DEFAULT_wxUSE_STATUSBAR=yes
6863 DEFAULT_wxUSE_TAB_DIALOG=yes
6864 DEFAULT_wxUSE_TOGGLEBTN=yes
6865 DEFAULT_wxUSE_TOOLBAR=yes
6866 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6867 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6868 DEFAULT_wxUSE_TOOLTIPS=yes
6869 DEFAULT_wxUSE_TREECTRL=yes
6870 DEFAULT_wxUSE_POPUPWIN=yes
6871 DEFAULT_wxUSE_TIPWINDOW=yes
6872elif test "$wxUSE_CONTROLS" = "no"; then
6873 DEFAULT_wxUSE_ACCEL=no
6874 DEFAULT_wxUSE_BMPBUTTON=no
6875 DEFAULT_wxUSE_BUTTON=no
6876 DEFAULT_wxUSE_CALCTRL=no
6877 DEFAULT_wxUSE_CARET=no
6878 DEFAULT_wxUSE_COMBOBOX=no
6879 DEFAULT_wxUSE_CHECKBOX=no
6880 DEFAULT_wxUSE_CHECKLISTBOX=no
6881 DEFAULT_wxUSE_CHOICE=no
6882 DEFAULT_wxUSE_GAUGE=no
6883 DEFAULT_wxUSE_GRID=no
6884 DEFAULT_wxUSE_IMAGLIST=no
6885 DEFAULT_wxUSE_LISTBOOK=no
6886 DEFAULT_wxUSE_LISTBOX=no
6887 DEFAULT_wxUSE_LISTCTRL=no
6888 DEFAULT_wxUSE_NOTEBOOK=no
6889 DEFAULT_wxUSE_RADIOBOX=no
6890 DEFAULT_wxUSE_RADIOBTN=no
6891 DEFAULT_wxUSE_SASH=no
6892 DEFAULT_wxUSE_SCROLLBAR=no
6893 DEFAULT_wxUSE_SLIDER=no
6894 DEFAULT_wxUSE_SPINBTN=no
6895 DEFAULT_wxUSE_SPINCTRL=no
6896 DEFAULT_wxUSE_SPLITTER=no
6897 DEFAULT_wxUSE_STATBMP=no
6898 DEFAULT_wxUSE_STATBOX=no
6899 DEFAULT_wxUSE_STATLINE=no
6900 DEFAULT_wxUSE_STATUSBAR=no
6901 DEFAULT_wxUSE_TAB_DIALOG=no
6902 DEFAULT_wxUSE_TOGGLEBTN=no
6903 DEFAULT_wxUSE_TOOLBAR=no
6904 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6905 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6906 DEFAULT_wxUSE_TOOLTIPS=no
6907 DEFAULT_wxUSE_TREECTRL=no
6908 DEFAULT_wxUSE_POPUPWIN=no
6909 DEFAULT_wxUSE_TIPWINDOW=no
6910fi
6911
6912## FIXME: This is a blatant hack
6913if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6914 wxUSE_PRINTING_ARCHITECTURE=no
6915 wxUSE_DRAG_AND_DROP=no
6916 # Generic notebook requires tab dialog
6917 DEFAULT_wxUSE_TABDIALOG=yes
6918 DEFAULT_wxUSE_SCROLLBAR=no
6919 DEFAULT_wxUSE_TOOLTIPS=no
6920 DEFAULT_wxUSE_DRAGIMAGE=no
6921fi
6922
6923
6924 enablestring=
6925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6926echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6927 no_cache=0
6928 # Check whether --enable-accel or --disable-accel was given.
6929if test "${enable_accel+set}" = set; then
6930 enableval="$enable_accel"
6931
6932 if test "$enableval" = yes; then
6933 ac_cv_use_accel='wxUSE_ACCEL=yes'
6934 else
6935 ac_cv_use_accel='wxUSE_ACCEL=no'
6936 fi
6937
6938else
6939
6940 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6941 if test "x$LINE" != x ; then
6942 eval "DEFAULT_$LINE"
6943 else
6944 no_cache=1
6945 fi
6946
6947 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6948
6949fi;
6950
6951 eval "$ac_cv_use_accel"
6952 if test "$no_cache" != 1; then
6953 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6954 fi
6955
6956 if test "$wxUSE_ACCEL" = yes; then
6957 echo "$as_me:$LINENO: result: yes" >&5
6958echo "${ECHO_T}yes" >&6
6959 else
6960 echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6
6962 fi
6963
6964
6965 enablestring=
6966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6967echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6968 no_cache=0
6969 # Check whether --enable-button or --disable-button was given.
6970if test "${enable_button+set}" = set; then
6971 enableval="$enable_button"
6972
6973 if test "$enableval" = yes; then
6974 ac_cv_use_button='wxUSE_BUTTON=yes'
6975 else
6976 ac_cv_use_button='wxUSE_BUTTON=no'
6977 fi
6978
6979else
6980
6981 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6989
6990fi;
6991
6992 eval "$ac_cv_use_button"
6993 if test "$no_cache" != 1; then
6994 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6995 fi
6996
6997 if test "$wxUSE_BUTTON" = yes; then
6998 echo "$as_me:$LINENO: result: yes" >&5
6999echo "${ECHO_T}yes" >&6
7000 else
7001 echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6
7003 fi
7004
7005
7006 enablestring=
7007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7008echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7009 no_cache=0
7010 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7011if test "${enable_bmpbutton+set}" = set; then
7012 enableval="$enable_bmpbutton"
7013
7014 if test "$enableval" = yes; then
7015 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7016 else
7017 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7018 fi
7019
7020else
7021
7022 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7023 if test "x$LINE" != x ; then
7024 eval "DEFAULT_$LINE"
7025 else
7026 no_cache=1
7027 fi
7028
7029 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7030
7031fi;
7032
7033 eval "$ac_cv_use_bmpbutton"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_BMPBUTTON" = yes; then
7039 echo "$as_me:$LINENO: result: yes" >&5
7040echo "${ECHO_T}yes" >&6
7041 else
7042 echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6
7044 fi
7045
7046
7047 enablestring=
7048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7049echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7050 no_cache=0
7051 # Check whether --enable-calendar or --disable-calendar was given.
7052if test "${enable_calendar+set}" = set; then
7053 enableval="$enable_calendar"
7054
7055 if test "$enableval" = yes; then
7056 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7057 else
7058 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7059 fi
7060
7061else
7062
7063 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7071
7072fi;
7073
7074 eval "$ac_cv_use_calendar"
7075 if test "$no_cache" != 1; then
7076 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7077 fi
7078
7079 if test "$wxUSE_CALCTRL" = yes; then
7080 echo "$as_me:$LINENO: result: yes" >&5
7081echo "${ECHO_T}yes" >&6
7082 else
7083 echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6
7085 fi
7086
7087
7088 enablestring=
7089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7090echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7091 no_cache=0
7092 # Check whether --enable-caret or --disable-caret was given.
7093if test "${enable_caret+set}" = set; then
7094 enableval="$enable_caret"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_caret='wxUSE_CARET=yes'
7098 else
7099 ac_cv_use_caret='wxUSE_CARET=no'
7100 fi
7101
7102else
7103
7104 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7112
7113fi;
7114
7115 eval "$ac_cv_use_caret"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_CARET" = yes; then
7121 echo "$as_me:$LINENO: result: yes" >&5
7122echo "${ECHO_T}yes" >&6
7123 else
7124 echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6
7126 fi
7127
7128
7129 enablestring=
7130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7131echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7132 no_cache=0
7133 # Check whether --enable-checkbox or --disable-checkbox was given.
7134if test "${enable_checkbox+set}" = set; then
7135 enableval="$enable_checkbox"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7139 else
7140 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7141 fi
7142
7143else
7144
7145 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7153
7154fi;
7155
7156 eval "$ac_cv_use_checkbox"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_CHECKBOX" = yes; then
7162 echo "$as_me:$LINENO: result: yes" >&5
7163echo "${ECHO_T}yes" >&6
7164 else
7165 echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
7167 fi
7168
7169
7170 enablestring=
7171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7172echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7173 no_cache=0
7174 # Check whether --enable-checklst or --disable-checklst was given.
7175if test "${enable_checklst+set}" = set; then
7176 enableval="$enable_checklst"
7177
7178 if test "$enableval" = yes; then
7179 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7180 else
7181 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7182 fi
7183
7184else
7185
7186 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7187 if test "x$LINE" != x ; then
7188 eval "DEFAULT_$LINE"
7189 else
7190 no_cache=1
7191 fi
7192
7193 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7194
7195fi;
7196
7197 eval "$ac_cv_use_checklst"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_CHECKLST" = yes; then
7203 echo "$as_me:$LINENO: result: yes" >&5
7204echo "${ECHO_T}yes" >&6
7205 else
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
7208 fi
7209
7210
7211 enablestring=
7212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7213echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7214 no_cache=0
7215 # Check whether --enable-choice or --disable-choice was given.
7216if test "${enable_choice+set}" = set; then
7217 enableval="$enable_choice"
7218
7219 if test "$enableval" = yes; then
7220 ac_cv_use_choice='wxUSE_CHOICE=yes'
7221 else
7222 ac_cv_use_choice='wxUSE_CHOICE=no'
7223 fi
7224
7225else
7226
7227 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7228 if test "x$LINE" != x ; then
7229 eval "DEFAULT_$LINE"
7230 else
7231 no_cache=1
7232 fi
7233
7234 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7235
7236fi;
7237
7238 eval "$ac_cv_use_choice"
7239 if test "$no_cache" != 1; then
7240 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7241 fi
7242
7243 if test "$wxUSE_CHOICE" = yes; then
7244 echo "$as_me:$LINENO: result: yes" >&5
7245echo "${ECHO_T}yes" >&6
7246 else
7247 echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6
7249 fi
7250
7251
7252 enablestring=
7253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7254echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7255 no_cache=0
7256 # Check whether --enable-combobox or --disable-combobox was given.
7257if test "${enable_combobox+set}" = set; then
7258 enableval="$enable_combobox"
7259
7260 if test "$enableval" = yes; then
7261 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7262 else
7263 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7264 fi
7265
7266else
7267
7268 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7269 if test "x$LINE" != x ; then
7270 eval "DEFAULT_$LINE"
7271 else
7272 no_cache=1
7273 fi
7274
7275 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7276
7277fi;
7278
7279 eval "$ac_cv_use_combobox"
7280 if test "$no_cache" != 1; then
7281 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7282 fi
7283
7284 if test "$wxUSE_COMBOBOX" = yes; then
7285 echo "$as_me:$LINENO: result: yes" >&5
7286echo "${ECHO_T}yes" >&6
7287 else
7288 echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6
7290 fi
7291
7292
7293 enablestring=
7294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7295echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7296 no_cache=0
7297 # Check whether --enable-display or --disable-display was given.
7298if test "${enable_display+set}" = set; then
7299 enableval="$enable_display"
7300
7301 if test "$enableval" = yes; then
7302 ac_cv_use_display='wxUSE_DISPLAY=yes'
7303 else
7304 ac_cv_use_display='wxUSE_DISPLAY=no'
7305 fi
7306
7307else
7308
7309 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7310 if test "x$LINE" != x ; then
7311 eval "DEFAULT_$LINE"
7312 else
7313 no_cache=1
7314 fi
7315
7316 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7317
7318fi;
7319
7320 eval "$ac_cv_use_display"
7321 if test "$no_cache" != 1; then
7322 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7323 fi
7324
7325 if test "$wxUSE_DISPLAY" = yes; then
7326 echo "$as_me:$LINENO: result: yes" >&5
7327echo "${ECHO_T}yes" >&6
7328 else
7329 echo "$as_me:$LINENO: result: no" >&5
7330echo "${ECHO_T}no" >&6
7331 fi
7332
7333
7334 enablestring=
7335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7336echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7337 no_cache=0
7338 # Check whether --enable-gauge or --disable-gauge was given.
7339if test "${enable_gauge+set}" = set; then
7340 enableval="$enable_gauge"
7341
7342 if test "$enableval" = yes; then
7343 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7344 else
7345 ac_cv_use_gauge='wxUSE_GAUGE=no'
7346 fi
7347
7348else
7349
7350 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7351 if test "x$LINE" != x ; then
7352 eval "DEFAULT_$LINE"
7353 else
7354 no_cache=1
7355 fi
7356
7357 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7358
7359fi;
7360
7361 eval "$ac_cv_use_gauge"
7362 if test "$no_cache" != 1; then
7363 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7364 fi
7365
7366 if test "$wxUSE_GAUGE" = yes; then
7367 echo "$as_me:$LINENO: result: yes" >&5
7368echo "${ECHO_T}yes" >&6
7369 else
7370 echo "$as_me:$LINENO: result: no" >&5
7371echo "${ECHO_T}no" >&6
7372 fi
7373
7374
7375 enablestring=
7376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7377echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7378 no_cache=0
7379 # Check whether --enable-grid or --disable-grid was given.
7380if test "${enable_grid+set}" = set; then
7381 enableval="$enable_grid"
7382
7383 if test "$enableval" = yes; then
7384 ac_cv_use_grid='wxUSE_GRID=yes'
7385 else
7386 ac_cv_use_grid='wxUSE_GRID=no'
7387 fi
7388
7389else
7390
7391 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7392 if test "x$LINE" != x ; then
7393 eval "DEFAULT_$LINE"
7394 else
7395 no_cache=1
7396 fi
7397
7398 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7399
7400fi;
7401
7402 eval "$ac_cv_use_grid"
7403 if test "$no_cache" != 1; then
7404 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7405 fi
7406
7407 if test "$wxUSE_GRID" = yes; then
7408 echo "$as_me:$LINENO: result: yes" >&5
7409echo "${ECHO_T}yes" >&6
7410 else
7411 echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6
7413 fi
7414
7415
7416 enablestring=
7417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7418echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7419 no_cache=0
7420 # Check whether --enable-imaglist or --disable-imaglist was given.
7421if test "${enable_imaglist+set}" = set; then
7422 enableval="$enable_imaglist"
7423
7424 if test "$enableval" = yes; then
7425 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7426 else
7427 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7428 fi
7429
7430else
7431
7432 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7433 if test "x$LINE" != x ; then
7434 eval "DEFAULT_$LINE"
7435 else
7436 no_cache=1
7437 fi
7438
7439 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7440
7441fi;
7442
7443 eval "$ac_cv_use_imaglist"
7444 if test "$no_cache" != 1; then
7445 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7446 fi
7447
7448 if test "$wxUSE_IMAGLIST" = yes; then
7449 echo "$as_me:$LINENO: result: yes" >&5
7450echo "${ECHO_T}yes" >&6
7451 else
7452 echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6
7454 fi
7455
7456
7457 enablestring=
7458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7459echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7460 no_cache=0
7461 # Check whether --enable-listbook or --disable-listbook was given.
7462if test "${enable_listbook+set}" = set; then
7463 enableval="$enable_listbook"
7464
7465 if test "$enableval" = yes; then
7466 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7467 else
7468 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7469 fi
7470
7471else
7472
7473 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7474 if test "x$LINE" != x ; then
7475 eval "DEFAULT_$LINE"
7476 else
7477 no_cache=1
7478 fi
7479
7480 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7481
7482fi;
7483
7484 eval "$ac_cv_use_listbook"
7485 if test "$no_cache" != 1; then
7486 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7487 fi
7488
7489 if test "$wxUSE_LISTBOOK" = yes; then
7490 echo "$as_me:$LINENO: result: yes" >&5
7491echo "${ECHO_T}yes" >&6
7492 else
7493 echo "$as_me:$LINENO: result: no" >&5
7494echo "${ECHO_T}no" >&6
7495 fi
7496
7497
7498 enablestring=
7499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7500echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7501 no_cache=0
7502 # Check whether --enable-listbox or --disable-listbox was given.
7503if test "${enable_listbox+set}" = set; then
7504 enableval="$enable_listbox"
7505
7506 if test "$enableval" = yes; then
7507 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7508 else
7509 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7510 fi
7511
7512else
7513
7514 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7515 if test "x$LINE" != x ; then
7516 eval "DEFAULT_$LINE"
7517 else
7518 no_cache=1
7519 fi
7520
7521 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7522
7523fi;
7524
7525 eval "$ac_cv_use_listbox"
7526 if test "$no_cache" != 1; then
7527 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7528 fi
7529
7530 if test "$wxUSE_LISTBOX" = yes; then
7531 echo "$as_me:$LINENO: result: yes" >&5
7532echo "${ECHO_T}yes" >&6
7533 else
7534 echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6
7536 fi
7537
7538
7539 enablestring=
7540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7541echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7542 no_cache=0
7543 # Check whether --enable-listctrl or --disable-listctrl was given.
7544if test "${enable_listctrl+set}" = set; then
7545 enableval="$enable_listctrl"
7546
7547 if test "$enableval" = yes; then
7548 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7549 else
7550 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7551 fi
7552
7553else
7554
7555 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7556 if test "x$LINE" != x ; then
7557 eval "DEFAULT_$LINE"
7558 else
7559 no_cache=1
7560 fi
7561
7562 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7563
7564fi;
7565
7566 eval "$ac_cv_use_listctrl"
7567 if test "$no_cache" != 1; then
7568 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7569 fi
7570
7571 if test "$wxUSE_LISTCTRL" = yes; then
7572 echo "$as_me:$LINENO: result: yes" >&5
7573echo "${ECHO_T}yes" >&6
7574 else
7575 echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6
7577 fi
7578
7579
7580 enablestring=
7581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7582echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7583 no_cache=0
7584 # Check whether --enable-notebook or --disable-notebook was given.
7585if test "${enable_notebook+set}" = set; then
7586 enableval="$enable_notebook"
7587
7588 if test "$enableval" = yes; then
7589 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7590 else
7591 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7592 fi
7593
7594else
7595
7596 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7597 if test "x$LINE" != x ; then
7598 eval "DEFAULT_$LINE"
7599 else
7600 no_cache=1
7601 fi
7602
7603 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7604
7605fi;
7606
7607 eval "$ac_cv_use_notebook"
7608 if test "$no_cache" != 1; then
7609 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7610 fi
7611
7612 if test "$wxUSE_NOTEBOOK" = yes; then
7613 echo "$as_me:$LINENO: result: yes" >&5
7614echo "${ECHO_T}yes" >&6
7615 else
7616 echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6
7618 fi
7619
7620
7621 enablestring=
7622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7623echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7624 no_cache=0
7625 # Check whether --enable-radiobox or --disable-radiobox was given.
7626if test "${enable_radiobox+set}" = set; then
7627 enableval="$enable_radiobox"
7628
7629 if test "$enableval" = yes; then
7630 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7631 else
7632 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7633 fi
7634
7635else
7636
7637 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7638 if test "x$LINE" != x ; then
7639 eval "DEFAULT_$LINE"
7640 else
7641 no_cache=1
7642 fi
7643
7644 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7645
7646fi;
7647
7648 eval "$ac_cv_use_radiobox"
7649 if test "$no_cache" != 1; then
7650 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7651 fi
7652
7653 if test "$wxUSE_RADIOBOX" = yes; then
7654 echo "$as_me:$LINENO: result: yes" >&5
7655echo "${ECHO_T}yes" >&6
7656 else
7657 echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6
7659 fi
7660
7661
7662 enablestring=
7663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7664echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7665 no_cache=0
7666 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7667if test "${enable_radiobtn+set}" = set; then
7668 enableval="$enable_radiobtn"
7669
7670 if test "$enableval" = yes; then
7671 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7672 else
7673 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7674 fi
7675
7676else
7677
7678 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7679 if test "x$LINE" != x ; then
7680 eval "DEFAULT_$LINE"
7681 else
7682 no_cache=1
7683 fi
7684
7685 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7686
7687fi;
7688
7689 eval "$ac_cv_use_radiobtn"
7690 if test "$no_cache" != 1; then
7691 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7692 fi
7693
7694 if test "$wxUSE_RADIOBTN" = yes; then
7695 echo "$as_me:$LINENO: result: yes" >&5
7696echo "${ECHO_T}yes" >&6
7697 else
7698 echo "$as_me:$LINENO: result: no" >&5
7699echo "${ECHO_T}no" >&6
7700 fi
7701
7702
7703 enablestring=
7704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7705echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7706 no_cache=0
7707 # Check whether --enable-sash or --disable-sash was given.
7708if test "${enable_sash+set}" = set; then
7709 enableval="$enable_sash"
7710
7711 if test "$enableval" = yes; then
7712 ac_cv_use_sash='wxUSE_SASH=yes'
7713 else
7714 ac_cv_use_sash='wxUSE_SASH=no'
7715 fi
7716
7717else
7718
7719 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7720 if test "x$LINE" != x ; then
7721 eval "DEFAULT_$LINE"
7722 else
7723 no_cache=1
7724 fi
7725
7726 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7727
7728fi;
7729
7730 eval "$ac_cv_use_sash"
7731 if test "$no_cache" != 1; then
7732 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7733 fi
7734
7735 if test "$wxUSE_SASH" = yes; then
7736 echo "$as_me:$LINENO: result: yes" >&5
7737echo "${ECHO_T}yes" >&6
7738 else
7739 echo "$as_me:$LINENO: result: no" >&5
7740echo "${ECHO_T}no" >&6
7741 fi
7742
7743
7744 enablestring=
7745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7746echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7747 no_cache=0
7748 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7749if test "${enable_scrollbar+set}" = set; then
7750 enableval="$enable_scrollbar"
7751
7752 if test "$enableval" = yes; then
7753 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7754 else
7755 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7756 fi
7757
7758else
7759
7760 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7761 if test "x$LINE" != x ; then
7762 eval "DEFAULT_$LINE"
7763 else
7764 no_cache=1
7765 fi
7766
7767 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7768
7769fi;
7770
7771 eval "$ac_cv_use_scrollbar"
7772 if test "$no_cache" != 1; then
7773 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7774 fi
7775
7776 if test "$wxUSE_SCROLLBAR" = yes; then
7777 echo "$as_me:$LINENO: result: yes" >&5
7778echo "${ECHO_T}yes" >&6
7779 else
7780 echo "$as_me:$LINENO: result: no" >&5
7781echo "${ECHO_T}no" >&6
7782 fi
7783
7784
7785 enablestring=
7786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7787echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7788 no_cache=0
7789 # Check whether --enable-slider or --disable-slider was given.
7790if test "${enable_slider+set}" = set; then
7791 enableval="$enable_slider"
7792
7793 if test "$enableval" = yes; then
7794 ac_cv_use_slider='wxUSE_SLIDER=yes'
7795 else
7796 ac_cv_use_slider='wxUSE_SLIDER=no'
7797 fi
7798
7799else
7800
7801 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7802 if test "x$LINE" != x ; then
7803 eval "DEFAULT_$LINE"
7804 else
7805 no_cache=1
7806 fi
7807
7808 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7809
7810fi;
7811
7812 eval "$ac_cv_use_slider"
7813 if test "$no_cache" != 1; then
7814 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7815 fi
7816
7817 if test "$wxUSE_SLIDER" = yes; then
7818 echo "$as_me:$LINENO: result: yes" >&5
7819echo "${ECHO_T}yes" >&6
7820 else
7821 echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6
7823 fi
7824
7825
7826 enablestring=
7827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7828echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7829 no_cache=0
7830 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7831if test "${enable_spinbtn+set}" = set; then
7832 enableval="$enable_spinbtn"
7833
7834 if test "$enableval" = yes; then
7835 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7836 else
7837 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7838 fi
7839
7840else
7841
7842 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7843 if test "x$LINE" != x ; then
7844 eval "DEFAULT_$LINE"
7845 else
7846 no_cache=1
7847 fi
7848
7849 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7850
7851fi;
7852
7853 eval "$ac_cv_use_spinbtn"
7854 if test "$no_cache" != 1; then
7855 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7856 fi
7857
7858 if test "$wxUSE_SPINBTN" = yes; then
7859 echo "$as_me:$LINENO: result: yes" >&5
7860echo "${ECHO_T}yes" >&6
7861 else
7862 echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6
7864 fi
7865
7866
7867 enablestring=
7868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7869echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7870 no_cache=0
7871 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7872if test "${enable_spinctrl+set}" = set; then
7873 enableval="$enable_spinctrl"
7874
7875 if test "$enableval" = yes; then
7876 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7877 else
7878 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7879 fi
7880
7881else
7882
7883 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7884 if test "x$LINE" != x ; then
7885 eval "DEFAULT_$LINE"
7886 else
7887 no_cache=1
7888 fi
7889
7890 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7891
7892fi;
7893
7894 eval "$ac_cv_use_spinctrl"
7895 if test "$no_cache" != 1; then
7896 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7897 fi
7898
7899 if test "$wxUSE_SPINCTRL" = yes; then
7900 echo "$as_me:$LINENO: result: yes" >&5
7901echo "${ECHO_T}yes" >&6
7902 else
7903 echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6
7905 fi
7906
7907
7908 enablestring=
7909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7910echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7911 no_cache=0
7912 # Check whether --enable-splitter or --disable-splitter was given.
7913if test "${enable_splitter+set}" = set; then
7914 enableval="$enable_splitter"
7915
7916 if test "$enableval" = yes; then
7917 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7918 else
7919 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7920 fi
7921
7922else
7923
7924 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7925 if test "x$LINE" != x ; then
7926 eval "DEFAULT_$LINE"
7927 else
7928 no_cache=1
7929 fi
7930
7931 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7932
7933fi;
7934
7935 eval "$ac_cv_use_splitter"
7936 if test "$no_cache" != 1; then
7937 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7938 fi
7939
7940 if test "$wxUSE_SPLITTER" = yes; then
7941 echo "$as_me:$LINENO: result: yes" >&5
7942echo "${ECHO_T}yes" >&6
7943 else
7944 echo "$as_me:$LINENO: result: no" >&5
7945echo "${ECHO_T}no" >&6
7946 fi
7947
7948
7949 enablestring=
7950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7951echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7952 no_cache=0
7953 # Check whether --enable-statbmp or --disable-statbmp was given.
7954if test "${enable_statbmp+set}" = set; then
7955 enableval="$enable_statbmp"
7956
7957 if test "$enableval" = yes; then
7958 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7959 else
7960 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7961 fi
7962
7963else
7964
7965 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7966 if test "x$LINE" != x ; then
7967 eval "DEFAULT_$LINE"
7968 else
7969 no_cache=1
7970 fi
7971
7972 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7973
7974fi;
7975
7976 eval "$ac_cv_use_statbmp"
7977 if test "$no_cache" != 1; then
7978 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7979 fi
7980
7981 if test "$wxUSE_STATBMP" = yes; then
7982 echo "$as_me:$LINENO: result: yes" >&5
7983echo "${ECHO_T}yes" >&6
7984 else
7985 echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6
7987 fi
7988
7989
7990 enablestring=
7991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7992echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7993 no_cache=0
7994 # Check whether --enable-statbox or --disable-statbox was given.
7995if test "${enable_statbox+set}" = set; then
7996 enableval="$enable_statbox"
7997
7998 if test "$enableval" = yes; then
7999 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8000 else
8001 ac_cv_use_statbox='wxUSE_STATBOX=no'
8002 fi
8003
8004else
8005
8006 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8007 if test "x$LINE" != x ; then
8008 eval "DEFAULT_$LINE"
8009 else
8010 no_cache=1
8011 fi
8012
8013 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8014
8015fi;
8016
8017 eval "$ac_cv_use_statbox"
8018 if test "$no_cache" != 1; then
8019 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8020 fi
8021
8022 if test "$wxUSE_STATBOX" = yes; then
8023 echo "$as_me:$LINENO: result: yes" >&5
8024echo "${ECHO_T}yes" >&6
8025 else
8026 echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6
8028 fi
8029
8030
8031 enablestring=
8032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8033echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8034 no_cache=0
8035 # Check whether --enable-statline or --disable-statline was given.
8036if test "${enable_statline+set}" = set; then
8037 enableval="$enable_statline"
8038
8039 if test "$enableval" = yes; then
8040 ac_cv_use_statline='wxUSE_STATLINE=yes'
8041 else
8042 ac_cv_use_statline='wxUSE_STATLINE=no'
8043 fi
8044
8045else
8046
8047 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8048 if test "x$LINE" != x ; then
8049 eval "DEFAULT_$LINE"
8050 else
8051 no_cache=1
8052 fi
8053
8054 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8055
8056fi;
8057
8058 eval "$ac_cv_use_statline"
8059 if test "$no_cache" != 1; then
8060 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8061 fi
8062
8063 if test "$wxUSE_STATLINE" = yes; then
8064 echo "$as_me:$LINENO: result: yes" >&5
8065echo "${ECHO_T}yes" >&6
8066 else
8067 echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
8069 fi
8070
8071
8072 enablestring=
8073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8074echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8075 no_cache=0
8076 # Check whether --enable-stattext or --disable-stattext was given.
8077if test "${enable_stattext+set}" = set; then
8078 enableval="$enable_stattext"
8079
8080 if test "$enableval" = yes; then
8081 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8082 else
8083 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8084 fi
8085
8086else
8087
8088 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8089 if test "x$LINE" != x ; then
8090 eval "DEFAULT_$LINE"
8091 else
8092 no_cache=1
8093 fi
8094
8095 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8096
8097fi;
8098
8099 eval "$ac_cv_use_stattext"
8100 if test "$no_cache" != 1; then
8101 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8102 fi
8103
8104 if test "$wxUSE_STATTEXT" = yes; then
8105 echo "$as_me:$LINENO: result: yes" >&5
8106echo "${ECHO_T}yes" >&6
8107 else
8108 echo "$as_me:$LINENO: result: no" >&5
8109echo "${ECHO_T}no" >&6
8110 fi
8111
8112
8113 enablestring=
8114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8115echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8116 no_cache=0
8117 # Check whether --enable-statusbar or --disable-statusbar was given.
8118if test "${enable_statusbar+set}" = set; then
8119 enableval="$enable_statusbar"
8120
8121 if test "$enableval" = yes; then
8122 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8123 else
8124 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8125 fi
8126
8127else
8128
8129 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8130 if test "x$LINE" != x ; then
8131 eval "DEFAULT_$LINE"
8132 else
8133 no_cache=1
8134 fi
8135
8136 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8137
8138fi;
8139
8140 eval "$ac_cv_use_statusbar"
8141 if test "$no_cache" != 1; then
8142 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8143 fi
8144
8145 if test "$wxUSE_STATUSBAR" = yes; then
8146 echo "$as_me:$LINENO: result: yes" >&5
8147echo "${ECHO_T}yes" >&6
8148 else
8149 echo "$as_me:$LINENO: result: no" >&5
8150echo "${ECHO_T}no" >&6
8151 fi
8152
8153
8154 enablestring=
8155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8156echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8157 no_cache=0
8158 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8159if test "${enable_tabdialog+set}" = set; then
8160 enableval="$enable_tabdialog"
8161
8162 if test "$enableval" = yes; then
8163 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8164 else
8165 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8166 fi
8167
8168else
8169
8170 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8171 if test "x$LINE" != x ; then
8172 eval "DEFAULT_$LINE"
8173 else
8174 no_cache=1
8175 fi
8176
8177 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8178
8179fi;
8180
8181 eval "$ac_cv_use_tabdialog"
8182 if test "$no_cache" != 1; then
8183 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8184 fi
8185
8186 if test "$wxUSE_TABDIALOG" = yes; then
8187 echo "$as_me:$LINENO: result: yes" >&5
8188echo "${ECHO_T}yes" >&6
8189 else
8190 echo "$as_me:$LINENO: result: no" >&5
8191echo "${ECHO_T}no" >&6
8192 fi
8193
8194
8195 enablestring=
8196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8197echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8198 no_cache=0
8199 # Check whether --enable-textctrl or --disable-textctrl was given.
8200if test "${enable_textctrl+set}" = set; then
8201 enableval="$enable_textctrl"
8202
8203 if test "$enableval" = yes; then
8204 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8205 else
8206 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8207 fi
8208
8209else
8210
8211 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8212 if test "x$LINE" != x ; then
8213 eval "DEFAULT_$LINE"
8214 else
8215 no_cache=1
8216 fi
8217
8218 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8219
8220fi;
8221
8222 eval "$ac_cv_use_textctrl"
8223 if test "$no_cache" != 1; then
8224 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8225 fi
8226
8227 if test "$wxUSE_TEXTCTRL" = yes; then
8228 echo "$as_me:$LINENO: result: yes" >&5
8229echo "${ECHO_T}yes" >&6
8230 else
8231 echo "$as_me:$LINENO: result: no" >&5
8232echo "${ECHO_T}no" >&6
8233 fi
8234
8235
8236 enablestring=
8237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8238echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8239 no_cache=0
8240 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8241if test "${enable_togglebtn+set}" = set; then
8242 enableval="$enable_togglebtn"
8243
8244 if test "$enableval" = yes; then
8245 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8246 else
8247 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8248 fi
8249
8250else
8251
8252 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8253 if test "x$LINE" != x ; then
8254 eval "DEFAULT_$LINE"
8255 else
8256 no_cache=1
8257 fi
8258
8259 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8260
8261fi;
8262
8263 eval "$ac_cv_use_togglebtn"
8264 if test "$no_cache" != 1; then
8265 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8266 fi
8267
8268 if test "$wxUSE_TOGGLEBTN" = yes; then
8269 echo "$as_me:$LINENO: result: yes" >&5
8270echo "${ECHO_T}yes" >&6
8271 else
8272 echo "$as_me:$LINENO: result: no" >&5
8273echo "${ECHO_T}no" >&6
8274 fi
8275
8276
8277 enablestring=
8278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8279echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8280 no_cache=0
8281 # Check whether --enable-toolbar or --disable-toolbar was given.
8282if test "${enable_toolbar+set}" = set; then
8283 enableval="$enable_toolbar"
8284
8285 if test "$enableval" = yes; then
8286 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8287 else
8288 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8289 fi
8290
8291else
8292
8293 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8294 if test "x$LINE" != x ; then
8295 eval "DEFAULT_$LINE"
8296 else
8297 no_cache=1
8298 fi
8299
8300 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8301
8302fi;
8303
8304 eval "$ac_cv_use_toolbar"
8305 if test "$no_cache" != 1; then
8306 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8307 fi
8308
8309 if test "$wxUSE_TOOLBAR" = yes; then
8310 echo "$as_me:$LINENO: result: yes" >&5
8311echo "${ECHO_T}yes" >&6
8312 else
8313 echo "$as_me:$LINENO: result: no" >&5
8314echo "${ECHO_T}no" >&6
8315 fi
8316
8317
8318 enablestring=
8319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8320echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8321 no_cache=0
8322 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8323if test "${enable_tbarnative+set}" = set; then
8324 enableval="$enable_tbarnative"
8325
8326 if test "$enableval" = yes; then
8327 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8328 else
8329 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8330 fi
8331
8332else
8333
8334 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8335 if test "x$LINE" != x ; then
8336 eval "DEFAULT_$LINE"
8337 else
8338 no_cache=1
8339 fi
8340
8341 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8342
8343fi;
8344
8345 eval "$ac_cv_use_tbarnative"
8346 if test "$no_cache" != 1; then
8347 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8348 fi
8349
8350 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8351 echo "$as_me:$LINENO: result: yes" >&5
8352echo "${ECHO_T}yes" >&6
8353 else
8354 echo "$as_me:$LINENO: result: no" >&5
8355echo "${ECHO_T}no" >&6
8356 fi
8357
8358
8359 enablestring=
8360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8361echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8362 no_cache=0
8363 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8364if test "${enable_tbarsmpl+set}" = set; then
8365 enableval="$enable_tbarsmpl"
8366
8367 if test "$enableval" = yes; then
8368 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8369 else
8370 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8371 fi
8372
8373else
8374
8375 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8376 if test "x$LINE" != x ; then
8377 eval "DEFAULT_$LINE"
8378 else
8379 no_cache=1
8380 fi
8381
8382 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8383
8384fi;
8385
8386 eval "$ac_cv_use_tbarsmpl"
8387 if test "$no_cache" != 1; then
8388 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8389 fi
8390
8391 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8392 echo "$as_me:$LINENO: result: yes" >&5
8393echo "${ECHO_T}yes" >&6
8394 else
8395 echo "$as_me:$LINENO: result: no" >&5
8396echo "${ECHO_T}no" >&6
8397 fi
8398
8399
8400 enablestring=
8401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8402echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8403 no_cache=0
8404 # Check whether --enable-treectrl or --disable-treectrl was given.
8405if test "${enable_treectrl+set}" = set; then
8406 enableval="$enable_treectrl"
8407
8408 if test "$enableval" = yes; then
8409 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8410 else
8411 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8412 fi
8413
8414else
8415
8416 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8417 if test "x$LINE" != x ; then
8418 eval "DEFAULT_$LINE"
8419 else
8420 no_cache=1
8421 fi
8422
8423 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8424
8425fi;
8426
8427 eval "$ac_cv_use_treectrl"
8428 if test "$no_cache" != 1; then
8429 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8430 fi
8431
8432 if test "$wxUSE_TREECTRL" = yes; then
8433 echo "$as_me:$LINENO: result: yes" >&5
8434echo "${ECHO_T}yes" >&6
8435 else
8436 echo "$as_me:$LINENO: result: no" >&5
8437echo "${ECHO_T}no" >&6
8438 fi
8439
8440
8441 enablestring=
8442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8443echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8444 no_cache=0
8445 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8446if test "${enable_tipwindow+set}" = set; then
8447 enableval="$enable_tipwindow"
8448
8449 if test "$enableval" = yes; then
8450 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8451 else
8452 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8453 fi
8454
8455else
8456
8457 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8458 if test "x$LINE" != x ; then
8459 eval "DEFAULT_$LINE"
8460 else
8461 no_cache=1
8462 fi
8463
8464 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8465
8466fi;
8467
8468 eval "$ac_cv_use_tipwindow"
8469 if test "$no_cache" != 1; then
8470 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8471 fi
8472
8473 if test "$wxUSE_TIPWINDOW" = yes; then
8474 echo "$as_me:$LINENO: result: yes" >&5
8475echo "${ECHO_T}yes" >&6
8476 else
8477 echo "$as_me:$LINENO: result: no" >&5
8478echo "${ECHO_T}no" >&6
8479 fi
8480
8481
8482 enablestring=
8483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8484echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8485 no_cache=0
8486 # Check whether --enable-popupwin or --disable-popupwin was given.
8487if test "${enable_popupwin+set}" = set; then
8488 enableval="$enable_popupwin"
8489
8490 if test "$enableval" = yes; then
8491 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8492 else
8493 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8494 fi
8495
8496else
8497
8498 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8499 if test "x$LINE" != x ; then
8500 eval "DEFAULT_$LINE"
8501 else
8502 no_cache=1
8503 fi
8504
8505 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8506
8507fi;
8508
8509 eval "$ac_cv_use_popupwin"
8510 if test "$no_cache" != 1; then
8511 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8512 fi
8513
8514 if test "$wxUSE_POPUPWIN" = yes; then
8515 echo "$as_me:$LINENO: result: yes" >&5
8516echo "${ECHO_T}yes" >&6
8517 else
8518 echo "$as_me:$LINENO: result: no" >&5
8519echo "${ECHO_T}no" >&6
8520 fi
8521
8522
8523
8524
8525 enablestring=
8526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8527echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8528 no_cache=0
8529 # Check whether --enable-commondlg or --disable-commondlg was given.
8530if test "${enable_commondlg+set}" = set; then
8531 enableval="$enable_commondlg"
8532
8533 if test "$enableval" = yes; then
8534 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8535 else
8536 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8537 fi
8538
8539else
8540
8541 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8542 if test "x$LINE" != x ; then
8543 eval "DEFAULT_$LINE"
8544 else
8545 no_cache=1
8546 fi
8547
8548 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8549
8550fi;
8551
8552 eval "$ac_cv_use_commondlg"
8553 if test "$no_cache" != 1; then
8554 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8555 fi
8556
8557 if test "$wxUSE_COMMONDLGS" = yes; then
8558 echo "$as_me:$LINENO: result: yes" >&5
8559echo "${ECHO_T}yes" >&6
8560 else
8561 echo "$as_me:$LINENO: result: no" >&5
8562echo "${ECHO_T}no" >&6
8563 fi
8564
8565
8566 enablestring=
8567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8568echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8569 no_cache=0
8570 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8571if test "${enable_choicedlg+set}" = set; then
8572 enableval="$enable_choicedlg"
8573
8574 if test "$enableval" = yes; then
8575 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8576 else
8577 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8578 fi
8579
8580else
8581
8582 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8583 if test "x$LINE" != x ; then
8584 eval "DEFAULT_$LINE"
8585 else
8586 no_cache=1
8587 fi
8588
8589 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8590
8591fi;
8592
8593 eval "$ac_cv_use_choicedlg"
8594 if test "$no_cache" != 1; then
8595 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8596 fi
8597
8598 if test "$wxUSE_CHOICEDLG" = yes; then
8599 echo "$as_me:$LINENO: result: yes" >&5
8600echo "${ECHO_T}yes" >&6
8601 else
8602 echo "$as_me:$LINENO: result: no" >&5
8603echo "${ECHO_T}no" >&6
8604 fi
8605
8606
8607 enablestring=
8608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8609echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8610 no_cache=0
8611 # Check whether --enable-coldlg or --disable-coldlg was given.
8612if test "${enable_coldlg+set}" = set; then
8613 enableval="$enable_coldlg"
8614
8615 if test "$enableval" = yes; then
8616 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8617 else
8618 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8619 fi
8620
8621else
8622
8623 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8624 if test "x$LINE" != x ; then
8625 eval "DEFAULT_$LINE"
8626 else
8627 no_cache=1
8628 fi
8629
8630 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8631
8632fi;
8633
8634 eval "$ac_cv_use_coldlg"
8635 if test "$no_cache" != 1; then
8636 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8637 fi
8638
8639 if test "$wxUSE_COLOURDLG" = yes; then
8640 echo "$as_me:$LINENO: result: yes" >&5
8641echo "${ECHO_T}yes" >&6
8642 else
8643 echo "$as_me:$LINENO: result: no" >&5
8644echo "${ECHO_T}no" >&6
8645 fi
8646
8647
8648 enablestring=
8649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8650echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8651 no_cache=0
8652 # Check whether --enable-filedlg or --disable-filedlg was given.
8653if test "${enable_filedlg+set}" = set; then
8654 enableval="$enable_filedlg"
8655
8656 if test "$enableval" = yes; then
8657 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8658 else
8659 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8660 fi
8661
8662else
8663
8664 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8665 if test "x$LINE" != x ; then
8666 eval "DEFAULT_$LINE"
8667 else
8668 no_cache=1
8669 fi
8670
8671 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8672
8673fi;
8674
8675 eval "$ac_cv_use_filedlg"
8676 if test "$no_cache" != 1; then
8677 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8678 fi
8679
8680 if test "$wxUSE_FILEDLG" = yes; then
8681 echo "$as_me:$LINENO: result: yes" >&5
8682echo "${ECHO_T}yes" >&6
8683 else
8684 echo "$as_me:$LINENO: result: no" >&5
8685echo "${ECHO_T}no" >&6
8686 fi
8687
8688
8689 enablestring=
8690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8691echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8692 no_cache=0
8693 # Check whether --enable-finddlg or --disable-finddlg was given.
8694if test "${enable_finddlg+set}" = set; then
8695 enableval="$enable_finddlg"
8696
8697 if test "$enableval" = yes; then
8698 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8699 else
8700 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8701 fi
8702
8703else
8704
8705 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8706 if test "x$LINE" != x ; then
8707 eval "DEFAULT_$LINE"
8708 else
8709 no_cache=1
8710 fi
8711
8712 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8713
8714fi;
8715
8716 eval "$ac_cv_use_finddlg"
8717 if test "$no_cache" != 1; then
8718 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8719 fi
8720
8721 if test "$wxUSE_FINDREPLDLG" = yes; then
8722 echo "$as_me:$LINENO: result: yes" >&5
8723echo "${ECHO_T}yes" >&6
8724 else
8725 echo "$as_me:$LINENO: result: no" >&5
8726echo "${ECHO_T}no" >&6
8727 fi
8728
8729
8730 enablestring=
8731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8732echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8733 no_cache=0
8734 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8735if test "${enable_fontdlg+set}" = set; then
8736 enableval="$enable_fontdlg"
8737
8738 if test "$enableval" = yes; then
8739 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8740 else
8741 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8742 fi
8743
8744else
8745
8746 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8747 if test "x$LINE" != x ; then
8748 eval "DEFAULT_$LINE"
8749 else
8750 no_cache=1
8751 fi
8752
8753 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8754
8755fi;
8756
8757 eval "$ac_cv_use_fontdlg"
8758 if test "$no_cache" != 1; then
8759 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8760 fi
8761
8762 if test "$wxUSE_FONTDLG" = yes; then
8763 echo "$as_me:$LINENO: result: yes" >&5
8764echo "${ECHO_T}yes" >&6
8765 else
8766 echo "$as_me:$LINENO: result: no" >&5
8767echo "${ECHO_T}no" >&6
8768 fi
8769
8770
8771 enablestring=
8772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8773echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8774 no_cache=0
8775 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8776if test "${enable_dirdlg+set}" = set; then
8777 enableval="$enable_dirdlg"
8778
8779 if test "$enableval" = yes; then
8780 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8781 else
8782 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8783 fi
8784
8785else
8786
8787 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8788 if test "x$LINE" != x ; then
8789 eval "DEFAULT_$LINE"
8790 else
8791 no_cache=1
8792 fi
8793
8794 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8795
8796fi;
8797
8798 eval "$ac_cv_use_dirdlg"
8799 if test "$no_cache" != 1; then
8800 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8801 fi
8802
8803 if test "$wxUSE_DIRDLG" = yes; then
8804 echo "$as_me:$LINENO: result: yes" >&5
8805echo "${ECHO_T}yes" >&6
8806 else
8807 echo "$as_me:$LINENO: result: no" >&5
8808echo "${ECHO_T}no" >&6
8809 fi
8810
8811
8812 enablestring=
8813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8814echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8815 no_cache=0
8816 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8817if test "${enable_msgdlg+set}" = set; then
8818 enableval="$enable_msgdlg"
8819
8820 if test "$enableval" = yes; then
8821 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8822 else
8823 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8824 fi
8825
8826else
8827
8828 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8829 if test "x$LINE" != x ; then
8830 eval "DEFAULT_$LINE"
8831 else
8832 no_cache=1
8833 fi
8834
8835 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8836
8837fi;
8838
8839 eval "$ac_cv_use_msgdlg"
8840 if test "$no_cache" != 1; then
8841 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8842 fi
8843
8844 if test "$wxUSE_MSGDLG" = yes; then
8845 echo "$as_me:$LINENO: result: yes" >&5
8846echo "${ECHO_T}yes" >&6
8847 else
8848 echo "$as_me:$LINENO: result: no" >&5
8849echo "${ECHO_T}no" >&6
8850 fi
8851
8852
8853 enablestring=
8854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8855echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8856 no_cache=0
8857 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8858if test "${enable_numberdlg+set}" = set; then
8859 enableval="$enable_numberdlg"
8860
8861 if test "$enableval" = yes; then
8862 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8863 else
8864 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8865 fi
8866
8867else
8868
8869 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8870 if test "x$LINE" != x ; then
8871 eval "DEFAULT_$LINE"
8872 else
8873 no_cache=1
8874 fi
8875
8876 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8877
8878fi;
8879
8880 eval "$ac_cv_use_numberdlg"
8881 if test "$no_cache" != 1; then
8882 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8883 fi
8884
8885 if test "$wxUSE_NUMBERDLG" = yes; then
8886 echo "$as_me:$LINENO: result: yes" >&5
8887echo "${ECHO_T}yes" >&6
8888 else
8889 echo "$as_me:$LINENO: result: no" >&5
8890echo "${ECHO_T}no" >&6
8891 fi
8892
8893
8894 enablestring=
8895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8896echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8897 no_cache=0
8898 # Check whether --enable-splash or --disable-splash was given.
8899if test "${enable_splash+set}" = set; then
8900 enableval="$enable_splash"
8901
8902 if test "$enableval" = yes; then
8903 ac_cv_use_splash='wxUSE_SPLASH=yes'
8904 else
8905 ac_cv_use_splash='wxUSE_SPLASH=no'
8906 fi
8907
8908else
8909
8910 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8911 if test "x$LINE" != x ; then
8912 eval "DEFAULT_$LINE"
8913 else
8914 no_cache=1
8915 fi
8916
8917 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8918
8919fi;
8920
8921 eval "$ac_cv_use_splash"
8922 if test "$no_cache" != 1; then
8923 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8924 fi
8925
8926 if test "$wxUSE_SPLASH" = yes; then
8927 echo "$as_me:$LINENO: result: yes" >&5
8928echo "${ECHO_T}yes" >&6
8929 else
8930 echo "$as_me:$LINENO: result: no" >&5
8931echo "${ECHO_T}no" >&6
8932 fi
8933
8934
8935 enablestring=
8936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8937echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8938 no_cache=0
8939 # Check whether --enable-textdlg or --disable-textdlg was given.
8940if test "${enable_textdlg+set}" = set; then
8941 enableval="$enable_textdlg"
8942
8943 if test "$enableval" = yes; then
8944 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8945 else
8946 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8947 fi
8948
8949else
8950
8951 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8952 if test "x$LINE" != x ; then
8953 eval "DEFAULT_$LINE"
8954 else
8955 no_cache=1
8956 fi
8957
8958 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8959
8960fi;
8961
8962 eval "$ac_cv_use_textdlg"
8963 if test "$no_cache" != 1; then
8964 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8965 fi
8966
8967 if test "$wxUSE_TEXTDLG" = yes; then
8968 echo "$as_me:$LINENO: result: yes" >&5
8969echo "${ECHO_T}yes" >&6
8970 else
8971 echo "$as_me:$LINENO: result: no" >&5
8972echo "${ECHO_T}no" >&6
8973 fi
8974
8975
8976 enablestring=
8977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8978echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8979 no_cache=0
8980 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8981if test "${enable_tipdlg+set}" = set; then
8982 enableval="$enable_tipdlg"
8983
8984 if test "$enableval" = yes; then
8985 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8986 else
8987 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8988 fi
8989
8990else
8991
8992 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8993 if test "x$LINE" != x ; then
8994 eval "DEFAULT_$LINE"
8995 else
8996 no_cache=1
8997 fi
8998
8999 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9000
9001fi;
9002
9003 eval "$ac_cv_use_tipdlg"
9004 if test "$no_cache" != 1; then
9005 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9006 fi
9007
9008 if test "$wxUSE_STARTUP_TIPS" = yes; then
9009 echo "$as_me:$LINENO: result: yes" >&5
9010echo "${ECHO_T}yes" >&6
9011 else
9012 echo "$as_me:$LINENO: result: no" >&5
9013echo "${ECHO_T}no" >&6
9014 fi
9015
9016
9017 enablestring=
9018 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9019echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9020 no_cache=0
9021 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9022if test "${enable_progressdlg+set}" = set; then
9023 enableval="$enable_progressdlg"
9024
9025 if test "$enableval" = yes; then
9026 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9027 else
9028 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9029 fi
9030
9031else
9032
9033 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9034 if test "x$LINE" != x ; then
9035 eval "DEFAULT_$LINE"
9036 else
9037 no_cache=1
9038 fi
9039
9040 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9041
9042fi;
9043
9044 eval "$ac_cv_use_progressdlg"
9045 if test "$no_cache" != 1; then
9046 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9047 fi
9048
9049 if test "$wxUSE_PROGRESSDLG" = yes; then
9050 echo "$as_me:$LINENO: result: yes" >&5
9051echo "${ECHO_T}yes" >&6
9052 else
9053 echo "$as_me:$LINENO: result: no" >&5
9054echo "${ECHO_T}no" >&6
9055 fi
9056
9057
9058 enablestring=
9059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9060echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9061 no_cache=0
9062 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9063if test "${enable_wizarddlg+set}" = set; then
9064 enableval="$enable_wizarddlg"
9065
9066 if test "$enableval" = yes; then
9067 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9068 else
9069 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9070 fi
9071
9072else
9073
9074 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9075 if test "x$LINE" != x ; then
9076 eval "DEFAULT_$LINE"
9077 else
9078 no_cache=1
9079 fi
9080
9081 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9082
9083fi;
9084
9085 eval "$ac_cv_use_wizarddlg"
9086 if test "$no_cache" != 1; then
9087 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9088 fi
9089
9090 if test "$wxUSE_WIZARDDLG" = yes; then
9091 echo "$as_me:$LINENO: result: yes" >&5
9092echo "${ECHO_T}yes" >&6
9093 else
9094 echo "$as_me:$LINENO: result: no" >&5
9095echo "${ECHO_T}no" >&6
9096 fi
9097
9098
9099
9100
9101 enablestring=
9102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9103echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9104 no_cache=0
9105 # Check whether --enable-menus or --disable-menus was given.
9106if test "${enable_menus+set}" = set; then
9107 enableval="$enable_menus"
9108
9109 if test "$enableval" = yes; then
9110 ac_cv_use_menus='wxUSE_MENUS=yes'
9111 else
9112 ac_cv_use_menus='wxUSE_MENUS=no'
9113 fi
9114
9115else
9116
9117 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9118 if test "x$LINE" != x ; then
9119 eval "DEFAULT_$LINE"
9120 else
9121 no_cache=1
9122 fi
9123
9124 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9125
9126fi;
9127
9128 eval "$ac_cv_use_menus"
9129 if test "$no_cache" != 1; then
9130 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9131 fi
9132
9133 if test "$wxUSE_MENUS" = yes; then
9134 echo "$as_me:$LINENO: result: yes" >&5
9135echo "${ECHO_T}yes" >&6
9136 else
9137 echo "$as_me:$LINENO: result: no" >&5
9138echo "${ECHO_T}no" >&6
9139 fi
9140
9141
9142 enablestring=
9143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9144echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9145 no_cache=0
9146 # Check whether --enable-miniframe or --disable-miniframe was given.
9147if test "${enable_miniframe+set}" = set; then
9148 enableval="$enable_miniframe"
9149
9150 if test "$enableval" = yes; then
9151 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9152 else
9153 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9154 fi
9155
9156else
9157
9158 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9159 if test "x$LINE" != x ; then
9160 eval "DEFAULT_$LINE"
9161 else
9162 no_cache=1
9163 fi
9164
9165 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9166
9167fi;
9168
9169 eval "$ac_cv_use_miniframe"
9170 if test "$no_cache" != 1; then
9171 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9172 fi
9173
9174 if test "$wxUSE_MINIFRAME" = yes; then
9175 echo "$as_me:$LINENO: result: yes" >&5
9176echo "${ECHO_T}yes" >&6
9177 else
9178 echo "$as_me:$LINENO: result: no" >&5
9179echo "${ECHO_T}no" >&6
9180 fi
9181
9182
9183 enablestring=
9184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9185echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9186 no_cache=0
9187 # Check whether --enable-tooltips or --disable-tooltips was given.
9188if test "${enable_tooltips+set}" = set; then
9189 enableval="$enable_tooltips"
9190
9191 if test "$enableval" = yes; then
9192 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9193 else
9194 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9195 fi
9196
9197else
9198
9199 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9200 if test "x$LINE" != x ; then
9201 eval "DEFAULT_$LINE"
9202 else
9203 no_cache=1
9204 fi
9205
9206 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9207
9208fi;
9209
9210 eval "$ac_cv_use_tooltips"
9211 if test "$no_cache" != 1; then
9212 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9213 fi
9214
9215 if test "$wxUSE_TOOLTIPS" = yes; then
9216 echo "$as_me:$LINENO: result: yes" >&5
9217echo "${ECHO_T}yes" >&6
9218 else
9219 echo "$as_me:$LINENO: result: no" >&5
9220echo "${ECHO_T}no" >&6
9221 fi
9222
9223
9224 enablestring=
9225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9226echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9227 no_cache=0
9228 # Check whether --enable-splines or --disable-splines was given.
9229if test "${enable_splines+set}" = set; then
9230 enableval="$enable_splines"
9231
9232 if test "$enableval" = yes; then
9233 ac_cv_use_splines='wxUSE_SPLINES=yes'
9234 else
9235 ac_cv_use_splines='wxUSE_SPLINES=no'
9236 fi
9237
9238else
9239
9240 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9241 if test "x$LINE" != x ; then
9242 eval "DEFAULT_$LINE"
9243 else
9244 no_cache=1
9245 fi
9246
9247 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9248
9249fi;
9250
9251 eval "$ac_cv_use_splines"
9252 if test "$no_cache" != 1; then
9253 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9254 fi
9255
9256 if test "$wxUSE_SPLINES" = yes; then
9257 echo "$as_me:$LINENO: result: yes" >&5
9258echo "${ECHO_T}yes" >&6
9259 else
9260 echo "$as_me:$LINENO: result: no" >&5
9261echo "${ECHO_T}no" >&6
9262 fi
9263
9264
9265 enablestring=
9266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9267echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9268 no_cache=0
9269 # Check whether --enable-validators or --disable-validators was given.
9270if test "${enable_validators+set}" = set; then
9271 enableval="$enable_validators"
9272
9273 if test "$enableval" = yes; then
9274 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9275 else
9276 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9277 fi
9278
9279else
9280
9281 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9282 if test "x$LINE" != x ; then
9283 eval "DEFAULT_$LINE"
9284 else
9285 no_cache=1
9286 fi
9287
9288 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9289
9290fi;
9291
9292 eval "$ac_cv_use_validators"
9293 if test "$no_cache" != 1; then
9294 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9295 fi
9296
9297 if test "$wxUSE_VALIDATORS" = yes; then
9298 echo "$as_me:$LINENO: result: yes" >&5
9299echo "${ECHO_T}yes" >&6
9300 else
9301 echo "$as_me:$LINENO: result: no" >&5
9302echo "${ECHO_T}no" >&6
9303 fi
9304
9305
9306 enablestring=
9307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9308echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9309 no_cache=0
9310 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9311if test "${enable_busyinfo+set}" = set; then
9312 enableval="$enable_busyinfo"
9313
9314 if test "$enableval" = yes; then
9315 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9316 else
9317 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9318 fi
9319
9320else
9321
9322 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9323 if test "x$LINE" != x ; then
9324 eval "DEFAULT_$LINE"
9325 else
9326 no_cache=1
9327 fi
9328
9329 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9330
9331fi;
9332
9333 eval "$ac_cv_use_busyinfo"
9334 if test "$no_cache" != 1; then
9335 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9336 fi
9337
9338 if test "$wxUSE_BUSYINFO" = yes; then
9339 echo "$as_me:$LINENO: result: yes" >&5
9340echo "${ECHO_T}yes" >&6
9341 else
9342 echo "$as_me:$LINENO: result: no" >&5
9343echo "${ECHO_T}no" >&6
9344 fi
9345
9346
9347 enablestring=
9348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9349echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9350 no_cache=0
9351 # Check whether --enable-joystick or --disable-joystick was given.
9352if test "${enable_joystick+set}" = set; then
9353 enableval="$enable_joystick"
9354
9355 if test "$enableval" = yes; then
9356 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9357 else
9358 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9359 fi
9360
9361else
9362
9363 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9364 if test "x$LINE" != x ; then
9365 eval "DEFAULT_$LINE"
9366 else
9367 no_cache=1
9368 fi
9369
9370 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9371
9372fi;
9373
9374 eval "$ac_cv_use_joystick"
9375 if test "$no_cache" != 1; then
9376 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9377 fi
9378
9379 if test "$wxUSE_JOYSTICK" = yes; then
9380 echo "$as_me:$LINENO: result: yes" >&5
9381echo "${ECHO_T}yes" >&6
9382 else
9383 echo "$as_me:$LINENO: result: no" >&5
9384echo "${ECHO_T}no" >&6
9385 fi
9386
9387
9388 enablestring=
9389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9390echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9391 no_cache=0
9392 # Check whether --enable-metafile or --disable-metafile was given.
9393if test "${enable_metafile+set}" = set; then
9394 enableval="$enable_metafile"
9395
9396 if test "$enableval" = yes; then
9397 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9398 else
9399 ac_cv_use_metafile='wxUSE_METAFILE=no'
9400 fi
9401
9402else
9403
9404 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9405 if test "x$LINE" != x ; then
9406 eval "DEFAULT_$LINE"
9407 else
9408 no_cache=1
9409 fi
9410
9411 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9412
9413fi;
9414
9415 eval "$ac_cv_use_metafile"
9416 if test "$no_cache" != 1; then
9417 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9418 fi
9419
9420 if test "$wxUSE_METAFILE" = yes; then
9421 echo "$as_me:$LINENO: result: yes" >&5
9422echo "${ECHO_T}yes" >&6
9423 else
9424 echo "$as_me:$LINENO: result: no" >&5
9425echo "${ECHO_T}no" >&6
9426 fi
9427
9428
9429 enablestring=
9430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9431echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9432 no_cache=0
9433 # Check whether --enable-dragimage or --disable-dragimage was given.
9434if test "${enable_dragimage+set}" = set; then
9435 enableval="$enable_dragimage"
9436
9437 if test "$enableval" = yes; then
9438 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9439 else
9440 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9441 fi
9442
9443else
9444
9445 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9446 if test "x$LINE" != x ; then
9447 eval "DEFAULT_$LINE"
9448 else
9449 no_cache=1
9450 fi
9451
9452 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9453
9454fi;
9455
9456 eval "$ac_cv_use_dragimage"
9457 if test "$no_cache" != 1; then
9458 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9459 fi
9460
9461 if test "$wxUSE_DRAGIMAGE" = yes; then
9462 echo "$as_me:$LINENO: result: yes" >&5
9463echo "${ECHO_T}yes" >&6
9464 else
9465 echo "$as_me:$LINENO: result: no" >&5
9466echo "${ECHO_T}no" >&6
9467 fi
9468
9469
9470 enablestring=
9471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9472echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9473 no_cache=0
9474 # Check whether --enable-accessibility or --disable-accessibility was given.
9475if test "${enable_accessibility+set}" = set; then
9476 enableval="$enable_accessibility"
9477
9478 if test "$enableval" = yes; then
9479 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9480 else
9481 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9482 fi
9483
9484else
9485
9486 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9487 if test "x$LINE" != x ; then
9488 eval "DEFAULT_$LINE"
9489 else
9490 no_cache=1
9491 fi
9492
9493 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9494
9495fi;
9496
9497 eval "$ac_cv_use_accessibility"
9498 if test "$no_cache" != 1; then
9499 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9500 fi
9501
9502 if test "$wxUSE_ACCESSIBILITY" = yes; then
9503 echo "$as_me:$LINENO: result: yes" >&5
9504echo "${ECHO_T}yes" >&6
9505 else
9506 echo "$as_me:$LINENO: result: no" >&5
9507echo "${ECHO_T}no" >&6
9508 fi
9509
9510
9511
9512
9513 enablestring=
9514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9515echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9516 no_cache=0
9517 # Check whether --enable-palette or --disable-palette was given.
9518if test "${enable_palette+set}" = set; then
9519 enableval="$enable_palette"
9520
9521 if test "$enableval" = yes; then
9522 ac_cv_use_palette='wxUSE_PALETTE=yes'
9523 else
9524 ac_cv_use_palette='wxUSE_PALETTE=no'
9525 fi
9526
9527else
9528
9529 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9530 if test "x$LINE" != x ; then
9531 eval "DEFAULT_$LINE"
9532 else
9533 no_cache=1
9534 fi
9535
9536 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9537
9538fi;
9539
9540 eval "$ac_cv_use_palette"
9541 if test "$no_cache" != 1; then
9542 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9543 fi
9544
9545 if test "$wxUSE_PALETTE" = yes; then
9546 echo "$as_me:$LINENO: result: yes" >&5
9547echo "${ECHO_T}yes" >&6
9548 else
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
9551 fi
9552
9553
9554 enablestring=
9555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9556echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9557 no_cache=0
9558 # Check whether --enable-image or --disable-image was given.
9559if test "${enable_image+set}" = set; then
9560 enableval="$enable_image"
9561
9562 if test "$enableval" = yes; then
9563 ac_cv_use_image='wxUSE_IMAGE=yes'
9564 else
9565 ac_cv_use_image='wxUSE_IMAGE=no'
9566 fi
9567
9568else
9569
9570 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9571 if test "x$LINE" != x ; then
9572 eval "DEFAULT_$LINE"
9573 else
9574 no_cache=1
9575 fi
9576
9577 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9578
9579fi;
9580
9581 eval "$ac_cv_use_image"
9582 if test "$no_cache" != 1; then
9583 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9584 fi
9585
9586 if test "$wxUSE_IMAGE" = yes; then
9587 echo "$as_me:$LINENO: result: yes" >&5
9588echo "${ECHO_T}yes" >&6
9589 else
9590 echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
9592 fi
9593
9594
9595 enablestring=
9596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9597echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9598 no_cache=0
9599 # Check whether --enable-gif or --disable-gif was given.
9600if test "${enable_gif+set}" = set; then
9601 enableval="$enable_gif"
9602
9603 if test "$enableval" = yes; then
9604 ac_cv_use_gif='wxUSE_GIF=yes'
9605 else
9606 ac_cv_use_gif='wxUSE_GIF=no'
9607 fi
9608
9609else
9610
9611 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9612 if test "x$LINE" != x ; then
9613 eval "DEFAULT_$LINE"
9614 else
9615 no_cache=1
9616 fi
9617
9618 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9619
9620fi;
9621
9622 eval "$ac_cv_use_gif"
9623 if test "$no_cache" != 1; then
9624 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9625 fi
9626
9627 if test "$wxUSE_GIF" = yes; then
9628 echo "$as_me:$LINENO: result: yes" >&5
9629echo "${ECHO_T}yes" >&6
9630 else
9631 echo "$as_me:$LINENO: result: no" >&5
9632echo "${ECHO_T}no" >&6
9633 fi
9634
9635
9636 enablestring=
9637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9638echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9639 no_cache=0
9640 # Check whether --enable-pcx or --disable-pcx was given.
9641if test "${enable_pcx+set}" = set; then
9642 enableval="$enable_pcx"
9643
9644 if test "$enableval" = yes; then
9645 ac_cv_use_pcx='wxUSE_PCX=yes'
9646 else
9647 ac_cv_use_pcx='wxUSE_PCX=no'
9648 fi
9649
9650else
9651
9652 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9653 if test "x$LINE" != x ; then
9654 eval "DEFAULT_$LINE"
9655 else
9656 no_cache=1
9657 fi
9658
9659 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9660
9661fi;
9662
9663 eval "$ac_cv_use_pcx"
9664 if test "$no_cache" != 1; then
9665 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9666 fi
9667
9668 if test "$wxUSE_PCX" = yes; then
9669 echo "$as_me:$LINENO: result: yes" >&5
9670echo "${ECHO_T}yes" >&6
9671 else
9672 echo "$as_me:$LINENO: result: no" >&5
9673echo "${ECHO_T}no" >&6
9674 fi
9675
9676
9677 enablestring=
9678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9679echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9680 no_cache=0
9681 # Check whether --enable-iff or --disable-iff was given.
9682if test "${enable_iff+set}" = set; then
9683 enableval="$enable_iff"
9684
9685 if test "$enableval" = yes; then
9686 ac_cv_use_iff='wxUSE_IFF=yes'
9687 else
9688 ac_cv_use_iff='wxUSE_IFF=no'
9689 fi
9690
9691else
9692
9693 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9694 if test "x$LINE" != x ; then
9695 eval "DEFAULT_$LINE"
9696 else
9697 no_cache=1
9698 fi
9699
9700 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9701
9702fi;
9703
9704 eval "$ac_cv_use_iff"
9705 if test "$no_cache" != 1; then
9706 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9707 fi
9708
9709 if test "$wxUSE_IFF" = yes; then
9710 echo "$as_me:$LINENO: result: yes" >&5
9711echo "${ECHO_T}yes" >&6
9712 else
9713 echo "$as_me:$LINENO: result: no" >&5
9714echo "${ECHO_T}no" >&6
9715 fi
9716
9717
9718 enablestring=
9719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9720echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9721 no_cache=0
9722 # Check whether --enable-pnm or --disable-pnm was given.
9723if test "${enable_pnm+set}" = set; then
9724 enableval="$enable_pnm"
9725
9726 if test "$enableval" = yes; then
9727 ac_cv_use_pnm='wxUSE_PNM=yes'
9728 else
9729 ac_cv_use_pnm='wxUSE_PNM=no'
9730 fi
9731
9732else
9733
9734 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9735 if test "x$LINE" != x ; then
9736 eval "DEFAULT_$LINE"
9737 else
9738 no_cache=1
9739 fi
9740
9741 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9742
9743fi;
9744
9745 eval "$ac_cv_use_pnm"
9746 if test "$no_cache" != 1; then
9747 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9748 fi
9749
9750 if test "$wxUSE_PNM" = yes; then
9751 echo "$as_me:$LINENO: result: yes" >&5
9752echo "${ECHO_T}yes" >&6
9753 else
9754 echo "$as_me:$LINENO: result: no" >&5
9755echo "${ECHO_T}no" >&6
9756 fi
9757
9758
9759 enablestring=
9760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9761echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9762 no_cache=0
9763 # Check whether --enable-xpm or --disable-xpm was given.
9764if test "${enable_xpm+set}" = set; then
9765 enableval="$enable_xpm"
9766
9767 if test "$enableval" = yes; then
9768 ac_cv_use_xpm='wxUSE_XPM=yes'
9769 else
9770 ac_cv_use_xpm='wxUSE_XPM=no'
9771 fi
9772
9773else
9774
9775 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9776 if test "x$LINE" != x ; then
9777 eval "DEFAULT_$LINE"
9778 else
9779 no_cache=1
9780 fi
9781
9782 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9783
9784fi;
9785
9786 eval "$ac_cv_use_xpm"
9787 if test "$no_cache" != 1; then
9788 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9789 fi
9790
9791 if test "$wxUSE_XPM" = yes; then
9792 echo "$as_me:$LINENO: result: yes" >&5
9793echo "${ECHO_T}yes" >&6
9794 else
9795 echo "$as_me:$LINENO: result: no" >&5
9796echo "${ECHO_T}no" >&6
9797 fi
9798
9799
9800 enablestring=
9801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9802echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9803 no_cache=0
9804 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9805if test "${enable_ico_cur+set}" = set; then
9806 enableval="$enable_ico_cur"
9807
9808 if test "$enableval" = yes; then
9809 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9810 else
9811 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9812 fi
9813
9814else
9815
9816 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9817 if test "x$LINE" != x ; then
9818 eval "DEFAULT_$LINE"
9819 else
9820 no_cache=1
9821 fi
9822
9823 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9824
9825fi;
9826
9827 eval "$ac_cv_use_ico_cur"
9828 if test "$no_cache" != 1; then
9829 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9830 fi
9831
9832 if test "$wxUSE_ICO_CUR" = yes; then
9833 echo "$as_me:$LINENO: result: yes" >&5
9834echo "${ECHO_T}yes" >&6
9835 else
9836 echo "$as_me:$LINENO: result: no" >&5
9837echo "${ECHO_T}no" >&6
9838 fi
9839
9840
9841fi
9842
9843
9844
9845 enablestring=
9846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9847echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9848 no_cache=0
9849 # Check whether --enable-official_build or --disable-official_build was given.
9850if test "${enable_official_build+set}" = set; then
9851 enableval="$enable_official_build"
9852
9853 if test "$enableval" = yes; then
9854 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9855 else
9856 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9857 fi
9858
9859else
9860
9861 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9862 if test "x$LINE" != x ; then
9863 eval "DEFAULT_$LINE"
9864 else
9865 no_cache=1
9866 fi
9867
9868 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9869
9870fi;
9871
9872 eval "$ac_cv_use_official_build"
9873 if test "$no_cache" != 1; then
9874 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9875 fi
9876
9877 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9878 echo "$as_me:$LINENO: result: yes" >&5
9879echo "${ECHO_T}yes" >&6
9880 else
9881 echo "$as_me:$LINENO: result: no" >&5
9882echo "${ECHO_T}no" >&6
9883 fi
9884
9885# Check whether --enable-vendor or --disable-vendor was given.
9886if test "${enable_vendor+set}" = set; then
9887 enableval="$enable_vendor"
9888 VENDOR="$enableval"
9889fi;
9890if test "x$VENDOR" = "x"; then
9891 VENDOR="custom"
9892fi
9893
9894case "${host}" in
9895 *-pc-os2_emx | *-pc-os2-emx )
9896 PATH_IFS=';'
a848cd7e
SC
9897 ;;
9898 *)
9899 PATH_IFS=':'
9900 ;;
9901esac
9902
9903
9904
9905 echo "saving argument cache $wx_arg_cache_file"
9906 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9907
9908
9909
9910echo "$as_me:$LINENO: checking for toolkit" >&5
9911echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9912
9913# In Wine, we need to default to MSW, not GTK or MOTIF
9914if test "$wxUSE_WINE" = "yes"; then
9915 DEFAULT_DEFAULT_wxUSE_GTK=0
9916 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9917 DEFAULT_DEFAULT_wxUSE_MSW=1
9918 wxUSE_SHARED=no
9919fi
9920
9921if test "$wxUSE_GUI" = "yes"; then
9922
9923 if test "$USE_BEOS" = 1; then
9924 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9925echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9926 { (exit 1); exit 1; }; }
9927 fi
9928
9929 if test "$TOOLKIT_GIVEN" = 1; then
9930 for toolkit in `echo $ALL_TOOLKITS`; do
9931 var=wxUSE_$toolkit
9932 eval "value=\$${var}"
9933 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9934 done
9935 else
9936 for toolkit in `echo $ALL_TOOLKITS`; do
9937 if test "$has_toolkit_in_cache" != 1; then
9938 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9939 else
9940 var=DEFAULT_wxUSE_$toolkit
9941 fi
9942 eval "wxUSE_$toolkit=\$${var}"
9943 done
9944 fi
9945
9946 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9947 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9948 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9949
9950 case "${host}" in
9951 *-pc-os2_emx | *-pc-os2-emx )
9952 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9953 esac
9954
9955 case "$NUM_TOOLKITS" in
9956 1)
9957 ;;
9958 0)
9959 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9960echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9961 { (exit 1); exit 1; }; }
9962 ;;
9963 *)
9964 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9965echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9966 { (exit 1); exit 1; }; }
9967 esac
9968
9969 for toolkit in `echo $ALL_TOOLKITS`; do
9970 var=wxUSE_$toolkit
9971 eval "value=\$${var}"
9972 if test "x$value" != x; then
9973 cache_var=CACHE_$toolkit
9974 eval "cache=\$${cache_var}"
9975 if test "$cache" = 1; then
9976 echo "$var=$value" >> ${wx_arg_cache_file}
9977 fi
9978 if test "$value" = 1; then
9979 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9980 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9981echo "${ECHO_T}$toolkit_echo" >&6
9982 fi
9983 fi
9984 done
9985else
9986 if test "x$host_alias" != "x"; then
9987 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9988echo "${ECHO_T}base ($host_alias hosted) only" >&6
9989 else
9990 echo "$as_me:$LINENO: result: base only" >&5
9991echo "${ECHO_T}base only" >&6
9992 fi
9993fi
9994
9995wants_win32=0
9996doesnt_want_win32=0
9997case "${host}" in
9998 *-*-cygwin*)
9999 if test "$wxUSE_MSW" = 1 ; then
10000 wants_win32=1
10001 else
10002 doesnt_want_win32=1
10003 fi
10004 ;;
10005 *-*-mingw*)
10006 wants_win32=1
10007 ;;
10008esac
10009
10010if test "$wxUSE_WINE" = "yes"; then
10011 wants_win32=1
10012 CC=winegcc
10013 CXX=wineg++
10014 RESCOMP=wrc
10015 LDFLAGS_GUI="-mwindows"
10016fi
10017
10018if test "$wants_win32" = 1 ; then
10019 USE_UNIX=0
10020 USE_WIN32=1
10021 cat >>confdefs.h <<\_ACEOF
10022#define __WIN32__ 1
10023_ACEOF
10024
10025 cat >>confdefs.h <<\_ACEOF
10026#define __WIN95__ 1
10027_ACEOF
10028
10029 cat >>confdefs.h <<\_ACEOF
10030#define __WINDOWS__ 1
10031_ACEOF
10032
10033 cat >>confdefs.h <<\_ACEOF
10034#define __GNUWIN32__ 1
10035_ACEOF
10036
10037 cat >>confdefs.h <<\_ACEOF
10038#define STRICT 1
10039_ACEOF
10040
10041 cat >>confdefs.h <<\_ACEOF
10042#define WINVER 0x0400
10043_ACEOF
10044
10045fi
10046if test "$doesnt_want_win32" = 1 ; then
10047 USE_UNIX=1
10048 USE_WIN32=0
10049fi
10050
10051if test "$USE_UNIX" = 1 ; then
10052 wxUSE_UNIX=yes
10053 cat >>confdefs.h <<\_ACEOF
10054#define __UNIX__ 1
10055_ACEOF
10056
10057fi
10058
10059
10060cat >confcache <<\_ACEOF
10061# This file is a shell script that caches the results of configure
10062# tests run on this system so they can be shared between configure
10063# scripts and configure runs, see configure's option --config-cache.
10064# It is not useful on other systems. If it contains results you don't
10065# want to keep, you may remove or edit it.
10066#
10067# config.status only pays attention to the cache file if you give it
10068# the --recheck option to rerun configure.
10069#
10070# `ac_cv_env_foo' variables (set or unset) will be overridden when
10071# loading this file, other *unset* `ac_cv_foo' will be assigned the
10072# following values.
10073
10074_ACEOF
10075
10076# The following way of writing the cache mishandles newlines in values,
10077# but we know of no workaround that is simple, portable, and efficient.
10078# So, don't put newlines in cache variables' values.
10079# Ultrix sh set writes to stderr and can't be redirected directly,
10080# and sets the high bit in the cache file unless we assign to the vars.
10081{
10082 (set) 2>&1 |
10083 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10084 *ac_space=\ *)
10085 # `set' does not quote correctly, so add quotes (double-quote
10086 # substitution turns \\\\ into \\, and sed turns \\ into \).
10087 sed -n \
10088 "s/'/'\\\\''/g;
10089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10090 ;;
10091 *)
10092 # `set' quotes correctly as required by POSIX, so do not add quotes.
10093 sed -n \
10094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10095 ;;
10096 esac;
10097} |
10098 sed '
10099 t clear
10100 : clear
10101 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10102 t end
10103 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10104 : end' >>confcache
10105if diff $cache_file confcache >/dev/null 2>&1; then :; else
10106 if test -w $cache_file; then
10107 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10108 cat confcache >$cache_file
10109 else
10110 echo "not updating unwritable cache $cache_file"
10111 fi
10112fi
10113rm -f confcache
10114
10115if test "$build" != "$host" ; then
10116 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10117 CC=$host_alias-gcc
10118 CXX=$host_alias-c++
10119 AR=$host_alias-ar
10120 RANLIB=$host_alias-ranlib
10121 DLLTOOL=$host_alias-dlltool
10122 RESCOMP=$host_alias-windres
10123 LD=$host_alias-ld
10124 NM=$host_alias-nm
10125 STRIP=$host_alias-strip
10126 else
10127 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10128echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10129 { (exit 1); exit 1; }; }
10130 fi
10131fi
10132
10133CFLAGS=${CFLAGS:=}
10134ac_ext=c
10135ac_cpp='$CPP $CPPFLAGS'
10136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10138ac_compiler_gnu=$ac_cv_c_compiler_gnu
10139if test -n "$ac_tool_prefix"; then
10140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10141set dummy ${ac_tool_prefix}gcc; ac_word=$2
10142echo "$as_me:$LINENO: checking for $ac_word" >&5
10143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10144if test "${ac_cv_prog_CC+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146else
10147 if test -n "$CC"; then
10148 ac_cv_prog_CC="$CC" # Let the user override the test.
10149else
10150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151for as_dir in $PATH
10152do
10153 IFS=$as_save_IFS
10154 test -z "$as_dir" && as_dir=.
10155 for ac_exec_ext in '' $ac_executable_extensions; do
10156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10159 break 2
10160 fi
10161done
10162done
10163
10164fi
10165fi
10166CC=$ac_cv_prog_CC
10167if test -n "$CC"; then
10168 echo "$as_me:$LINENO: result: $CC" >&5
10169echo "${ECHO_T}$CC" >&6
10170else
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
10173fi
10174
10175fi
10176if test -z "$ac_cv_prog_CC"; then
10177 ac_ct_CC=$CC
10178 # Extract the first word of "gcc", so it can be a program name with args.
10179set dummy gcc; ac_word=$2
10180echo "$as_me:$LINENO: checking for $ac_word" >&5
10181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10182if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10184else
10185 if test -n "$ac_ct_CC"; then
10186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10187else
10188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189for as_dir in $PATH
10190do
10191 IFS=$as_save_IFS
10192 test -z "$as_dir" && as_dir=.
10193 for ac_exec_ext in '' $ac_executable_extensions; do
10194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10195 ac_cv_prog_ac_ct_CC="gcc"
10196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10197 break 2
10198 fi
10199done
10200done
10201
10202fi
10203fi
10204ac_ct_CC=$ac_cv_prog_ac_ct_CC
10205if test -n "$ac_ct_CC"; then
10206 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10207echo "${ECHO_T}$ac_ct_CC" >&6
10208else
10209 echo "$as_me:$LINENO: result: no" >&5
10210echo "${ECHO_T}no" >&6
10211fi
10212
10213 CC=$ac_ct_CC
10214else
10215 CC="$ac_cv_prog_CC"
10216fi
10217
10218if test -z "$CC"; then
10219 if test -n "$ac_tool_prefix"; then
10220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10221set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10226else
10227 if test -n "$CC"; then
10228 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
10238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10240 fi
10241done
10242done
10243
10244fi
10245fi
10246CC=$ac_cv_prog_CC
10247if test -n "$CC"; then
10248 echo "$as_me:$LINENO: result: $CC" >&5
10249echo "${ECHO_T}$CC" >&6
10250else
10251 echo "$as_me:$LINENO: result: no" >&5
10252echo "${ECHO_T}no" >&6
10253fi
10254
10255fi
10256if test -z "$ac_cv_prog_CC"; then
10257 ac_ct_CC=$CC
10258 # Extract the first word of "cc", so it can be a program name with args.
10259set dummy cc; ac_word=$2
10260echo "$as_me:$LINENO: checking for $ac_word" >&5
10261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10262if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10264else
10265 if test -n "$ac_ct_CC"; then
10266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10267else
10268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269for as_dir in $PATH
10270do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_prog_ac_ct_CC="cc"
10276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10278 fi
10279done
10280done
10281
10282fi
10283fi
10284ac_ct_CC=$ac_cv_prog_ac_ct_CC
10285if test -n "$ac_ct_CC"; then
10286 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10287echo "${ECHO_T}$ac_ct_CC" >&6
10288else
10289 echo "$as_me:$LINENO: result: no" >&5
10290echo "${ECHO_T}no" >&6
10291fi
10292
10293 CC=$ac_ct_CC
10294else
10295 CC="$ac_cv_prog_CC"
10296fi
10297
10298fi
10299if test -z "$CC"; then
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_CC+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306else
10307 if test -n "$CC"; then
10308 ac_cv_prog_CC="$CC" # Let the user override the test.
10309else
10310 ac_prog_rejected=no
10311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312for as_dir in $PATH
10313do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10319 ac_prog_rejected=yes
10320 continue
10321 fi
10322 ac_cv_prog_CC="cc"
10323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10324 break 2
10325 fi
10326done
10327done
10328
10329if test $ac_prog_rejected = yes; then
10330 # We found a bogon in the path, so make sure we never use it.
10331 set dummy $ac_cv_prog_CC
10332 shift
10333 if test $# != 0; then
10334 # We chose a different compiler from the bogus one.
10335 # However, it has the same basename, so the bogon will be chosen
10336 # first if we set CC to just the basename; use the full file name.
10337 shift
10338 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10339 fi
10340fi
10341fi
10342fi
10343CC=$ac_cv_prog_CC
10344if test -n "$CC"; then
10345 echo "$as_me:$LINENO: result: $CC" >&5
10346echo "${ECHO_T}$CC" >&6
10347else
10348 echo "$as_me:$LINENO: result: no" >&5
10349echo "${ECHO_T}no" >&6
10350fi
10351
10352fi
10353if test -z "$CC"; then
10354 if test -n "$ac_tool_prefix"; then
10355 for ac_prog in cl
10356 do
10357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10358set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10359echo "$as_me:$LINENO: checking for $ac_word" >&5
10360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10361if test "${ac_cv_prog_CC+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10363else
10364 if test -n "$CC"; then
10365 ac_cv_prog_CC="$CC" # Let the user override the test.
10366else
10367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368for as_dir in $PATH
10369do
10370 IFS=$as_save_IFS
10371 test -z "$as_dir" && as_dir=.
10372 for ac_exec_ext in '' $ac_executable_extensions; do
10373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10376 break 2
10377 fi
10378done
10379done
10380
10381fi
10382fi
10383CC=$ac_cv_prog_CC
10384if test -n "$CC"; then
10385 echo "$as_me:$LINENO: result: $CC" >&5
10386echo "${ECHO_T}$CC" >&6
10387else
10388 echo "$as_me:$LINENO: result: no" >&5
10389echo "${ECHO_T}no" >&6
10390fi
10391
10392 test -n "$CC" && break
10393 done
10394fi
10395if test -z "$CC"; then
10396 ac_ct_CC=$CC
10397 for ac_prog in cl
10398do
10399 # Extract the first word of "$ac_prog", so it can be a program name with args.
10400set dummy $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_ac_ct_CC+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
10406 if test -n "$ac_ct_CC"; then
10407 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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
10425ac_ct_CC=$ac_cv_prog_ac_ct_CC
10426if test -n "$ac_ct_CC"; then
10427 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10428echo "${ECHO_T}$ac_ct_CC" >&6
10429else
10430 echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
10432fi
10433
10434 test -n "$ac_ct_CC" && break
10435done
10436
10437 CC=$ac_ct_CC
10438fi
10439
10440fi
10441
10442
10443test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10444See \`config.log' for more details." >&5
10445echo "$as_me: error: no acceptable C compiler found in \$PATH
10446See \`config.log' for more details." >&2;}
10447 { (exit 1); exit 1; }; }
10448
10449# Provide some information about the compiler.
10450echo "$as_me:$LINENO:" \
10451 "checking for C compiler version" >&5
10452ac_compiler=`set X $ac_compile; echo $2`
10453{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10454 (eval $ac_compiler --version </dev/null >&5) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }
10458{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10459 (eval $ac_compiler -v </dev/null >&5) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }
10463{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10464 (eval $ac_compiler -V </dev/null >&5) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }
10468
10469cat >conftest.$ac_ext <<_ACEOF
10470/* confdefs.h. */
10471_ACEOF
10472cat confdefs.h >>conftest.$ac_ext
10473cat >>conftest.$ac_ext <<_ACEOF
10474/* end confdefs.h. */
10475
10476int
10477main ()
10478{
10479
10480 ;
10481 return 0;
10482}
10483_ACEOF
10484ac_clean_files_save=$ac_clean_files
10485ac_clean_files="$ac_clean_files a.out a.exe b.out"
10486# Try to create an executable without -o first, disregard a.out.
10487# It will help us diagnose broken compilers, and finding out an intuition
10488# of exeext.
10489echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10490echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
10491ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10492if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10493 (eval $ac_link_default) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; then
10497 # Find the output, starting from the most likely. This scheme is
10498# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10499# resort.
10500
10501# Be careful to initialize this variable, since it used to be cached.
10502# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10503ac_cv_exeext=
10504# b.out is created by i960 compilers.
10505for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10506do
10507 test -f "$ac_file" || continue
10508 case $ac_file in
10509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10510 ;;
10511 conftest.$ac_ext )
10512 # This is the source file.
10513 ;;
10514 [ab].out )
10515 # We found the default executable, but exeext='' is most
10516 # certainly right.
10517 break;;
10518 *.* )
10519 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10520 # FIXME: I believe we export ac_cv_exeext for Libtool,
10521 # but it would be cool to find out if it's true. Does anybody
10522 # maintain Libtool? --akim.
10523 export ac_cv_exeext
10524 break;;
10525 * )
10526 break;;
10527 esac
10528done
10529else
10530 echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10534See \`config.log' for more details." >&5
10535echo "$as_me: error: C compiler cannot create executables
10536See \`config.log' for more details." >&2;}
10537 { (exit 77); exit 77; }; }
10538fi
10539
10540ac_exeext=$ac_cv_exeext
10541echo "$as_me:$LINENO: result: $ac_file" >&5
10542echo "${ECHO_T}$ac_file" >&6
10543
10544# Check the compiler produces executables we can run. If not, either
10545# the compiler is broken, or we cross compile.
10546echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10547echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10548# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10549# If not cross compiling, check that we can run a simple program.
10550if test "$cross_compiling" != yes; then
10551 if { ac_try='./$ac_file'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 cross_compiling=no
10558 else
10559 if test "$cross_compiling" = maybe; then
10560 cross_compiling=yes
10561 else
10562 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10563If you meant to cross compile, use \`--host'.
10564See \`config.log' for more details." >&5
10565echo "$as_me: error: cannot run C compiled programs.
10566If you meant to cross compile, use \`--host'.
10567See \`config.log' for more details." >&2;}
10568 { (exit 1); exit 1; }; }
10569 fi
10570 fi
10571fi
10572echo "$as_me:$LINENO: result: yes" >&5
10573echo "${ECHO_T}yes" >&6
10574
10575rm -f a.out a.exe conftest$ac_cv_exeext b.out
10576ac_clean_files=$ac_clean_files_save
10577# Check the compiler produces executables we can run. If not, either
10578# the compiler is broken, or we cross compile.
10579echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10580echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10581echo "$as_me:$LINENO: result: $cross_compiling" >&5
10582echo "${ECHO_T}$cross_compiling" >&6
10583
10584echo "$as_me:$LINENO: checking for suffix of executables" >&5
10585echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10587 (eval $ac_link) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; then
10591 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10592# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10593# work properly (i.e., refer to `conftest.exe'), while it won't with
10594# `rm'.
10595for ac_file in conftest.exe conftest conftest.*; do
10596 test -f "$ac_file" || continue
10597 case $ac_file in
10598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10600 export ac_cv_exeext
10601 break;;
10602 * ) break;;
10603 esac
10604done
10605else
10606 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10607See \`config.log' for more details." >&5
10608echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10609See \`config.log' for more details." >&2;}
10610 { (exit 1); exit 1; }; }
10611fi
10612
10613rm -f conftest$ac_cv_exeext
10614echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10615echo "${ECHO_T}$ac_cv_exeext" >&6
10616
10617rm -f conftest.$ac_ext
10618EXEEXT=$ac_cv_exeext
10619ac_exeext=$EXEEXT
10620echo "$as_me:$LINENO: checking for suffix of object files" >&5
10621echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10622if test "${ac_cv_objext+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624else
10625 cat >conftest.$ac_ext <<_ACEOF
10626/* confdefs.h. */
10627_ACEOF
10628cat confdefs.h >>conftest.$ac_ext
10629cat >>conftest.$ac_ext <<_ACEOF
10630/* end confdefs.h. */
10631
10632int
10633main ()
10634{
10635
10636 ;
10637 return 0;
10638}
10639_ACEOF
10640rm -f conftest.o conftest.obj
10641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10642 (eval $ac_compile) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; then
10646 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10647 case $ac_file in
10648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10649 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10650 break;;
10651 esac
10652done
10653else
10654 echo "$as_me: failed program was:" >&5
10655sed 's/^/| /' conftest.$ac_ext >&5
10656
10657{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10658See \`config.log' for more details." >&5
10659echo "$as_me: error: cannot compute suffix of object files: cannot compile
10660See \`config.log' for more details." >&2;}
10661 { (exit 1); exit 1; }; }
10662fi
10663
10664rm -f conftest.$ac_cv_objext conftest.$ac_ext
10665fi
10666echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10667echo "${ECHO_T}$ac_cv_objext" >&6
10668OBJEXT=$ac_cv_objext
10669ac_objext=$OBJEXT
10670echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10671echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10672if test "${ac_cv_c_compiler_gnu+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674else
10675 cat >conftest.$ac_ext <<_ACEOF
10676/* confdefs.h. */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h. */
10681
10682int
10683main ()
10684{
10685#ifndef __GNUC__
10686 choke me
10687#endif
10688
10689 ;
10690 return 0;
10691}
10692_ACEOF
10693rm -f conftest.$ac_objext
10694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695 (eval $ac_compile) 2>conftest.er1
10696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
dcc1b6ad
VS
10702 { ac_try='test -z "$ac_c_werror_flag"
10703 || test ! -s conftest.err'
a848cd7e
SC
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest.$ac_objext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 ac_compiler_gnu=yes
10716else
10717 echo "$as_me: failed program was:" >&5
10718sed 's/^/| /' conftest.$ac_ext >&5
10719
10720ac_compiler_gnu=no
10721fi
10722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10723ac_cv_c_compiler_gnu=$ac_compiler_gnu
10724
10725fi
10726echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10727echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10728GCC=`test $ac_compiler_gnu = yes && echo yes`
10729ac_test_CFLAGS=${CFLAGS+set}
10730ac_save_CFLAGS=$CFLAGS
10731CFLAGS="-g"
10732echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10733echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10734if test "${ac_cv_prog_cc_g+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10736else
10737 cat >conftest.$ac_ext <<_ACEOF
10738/* confdefs.h. */
10739_ACEOF
10740cat confdefs.h >>conftest.$ac_ext
10741cat >>conftest.$ac_ext <<_ACEOF
10742/* end confdefs.h. */
10743
10744int
10745main ()
10746{
10747
10748 ;
10749 return 0;
10750}
10751_ACEOF
10752rm -f conftest.$ac_objext
10753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10754 (eval $ac_compile) 2>conftest.er1
10755 ac_status=$?
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
dcc1b6ad
VS
10761 { ac_try='test -z "$ac_c_werror_flag"
10762 || test ! -s conftest.err'
a848cd7e
SC
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest.$ac_objext'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; }; then
10774 ac_cv_prog_cc_g=yes
10775else
10776 echo "$as_me: failed program was:" >&5
10777sed 's/^/| /' conftest.$ac_ext >&5
10778
10779ac_cv_prog_cc_g=no
10780fi
10781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10782fi
10783echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10784echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10785if test "$ac_test_CFLAGS" = set; then
10786 CFLAGS=$ac_save_CFLAGS
10787elif test $ac_cv_prog_cc_g = yes; then
10788 if test "$GCC" = yes; then
10789 CFLAGS="-g -O2"
10790 else
10791 CFLAGS="-g"
10792 fi
10793else
10794 if test "$GCC" = yes; then
10795 CFLAGS="-O2"
10796 else
10797 CFLAGS=
10798 fi
10799fi
10800echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10801echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10802if test "${ac_cv_prog_cc_stdc+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 ac_cv_prog_cc_stdc=no
10806ac_save_CC=$CC
10807cat >conftest.$ac_ext <<_ACEOF
10808/* confdefs.h. */
10809_ACEOF
10810cat confdefs.h >>conftest.$ac_ext
10811cat >>conftest.$ac_ext <<_ACEOF
10812/* end confdefs.h. */
10813#include <stdarg.h>
10814#include <stdio.h>
10815#include <sys/types.h>
10816#include <sys/stat.h>
10817/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10818struct buf { int x; };
10819FILE * (*rcsopen) (struct buf *, struct stat *, int);
10820static char *e (p, i)
10821 char **p;
10822 int i;
10823{
10824 return p[i];
10825}
10826static char *f (char * (*g) (char **, int), char **p, ...)
10827{
10828 char *s;
10829 va_list v;
10830 va_start (v,p);
10831 s = g (p, va_arg (v,int));
10832 va_end (v);
10833 return s;
10834}
10835
10836/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10837 function prototypes and stuff, but not '\xHH' hex character constants.
10838 These don't provoke an error unfortunately, instead are silently treated
10839 as 'x'. The following induces an error, until -std1 is added to get
10840 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10841 array size at least. It's necessary to write '\x00'==0 to get something
10842 that's true only with -std1. */
10843int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10844
10845int test (int i, double x);
10846struct s1 {int (*f) (int a);};
10847struct s2 {int (*f) (double a);};
10848int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10849int argc;
10850char **argv;
10851int
10852main ()
10853{
10854return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10855 ;
10856 return 0;
10857}
10858_ACEOF
10859# Don't try gcc -ansi; that turns off useful extensions and
10860# breaks some systems' header files.
10861# AIX -qlanglvl=ansi
10862# Ultrix and OSF/1 -std1
10863# HP-UX 10.20 and later -Ae
10864# HP-UX older versions -Aa -D_HPUX_SOURCE
10865# SVR4 -Xc -D__EXTENSIONS__
10866for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10867do
10868 CC="$ac_save_CC $ac_arg"
10869 rm -f conftest.$ac_objext
10870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10871 (eval $ac_compile) 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
dcc1b6ad
VS
10878 { ac_try='test -z "$ac_c_werror_flag"
10879 || test ! -s conftest.err'
a848cd7e
SC
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest.$ac_objext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_cv_prog_cc_stdc=$ac_arg
10892break
10893else
10894 echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897fi
10898rm -f conftest.err conftest.$ac_objext
10899done
10900rm -f conftest.$ac_ext conftest.$ac_objext
10901CC=$ac_save_CC
10902
10903fi
10904
10905case "x$ac_cv_prog_cc_stdc" in
10906 x|xno)
10907 echo "$as_me:$LINENO: result: none needed" >&5
10908echo "${ECHO_T}none needed" >&6 ;;
10909 *)
10910 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10911echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10912 CC="$CC $ac_cv_prog_cc_stdc" ;;
10913esac
10914
10915# Some people use a C++ compiler to compile C. Since we use `exit',
10916# in C++ we need to declare it. In case someone uses the same compiler
10917# for both compiling C and C++ we need to have the C++ compiler decide
10918# the declaration of exit, since it's the most demanding environment.
10919cat >conftest.$ac_ext <<_ACEOF
10920#ifndef __cplusplus
10921 choke me
10922#endif
10923_ACEOF
10924rm -f conftest.$ac_objext
10925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10926 (eval $ac_compile) 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
dcc1b6ad
VS
10933 { ac_try='test -z "$ac_c_werror_flag"
10934 || test ! -s conftest.err'
a848cd7e
SC
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest.$ac_objext'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 for ac_declaration in \
10947 '' \
10948 'extern "C" void std::exit (int) throw (); using std::exit;' \
10949 'extern "C" void std::exit (int); using std::exit;' \
10950 'extern "C" void exit (int) throw ();' \
10951 'extern "C" void exit (int);' \
10952 'void exit (int);'
10953do
10954 cat >conftest.$ac_ext <<_ACEOF
10955/* confdefs.h. */
10956_ACEOF
10957cat confdefs.h >>conftest.$ac_ext
10958cat >>conftest.$ac_ext <<_ACEOF
10959/* end confdefs.h. */
10960$ac_declaration
10961#include <stdlib.h>
10962int
10963main ()
10964{
10965exit (42);
10966 ;
10967 return 0;
10968}
10969_ACEOF
10970rm -f conftest.$ac_objext
10971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10972 (eval $ac_compile) 2>conftest.er1
10973 ac_status=$?
10974 grep -v '^ *+' conftest.er1 >conftest.err
10975 rm -f conftest.er1
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
dcc1b6ad
VS
10979 { ac_try='test -z "$ac_c_werror_flag"
10980 || test ! -s conftest.err'
a848cd7e
SC
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10983 ac_status=$?
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; } &&
10986 { ac_try='test -s conftest.$ac_objext'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10992 :
10993else
10994 echo "$as_me: failed program was:" >&5
10995sed 's/^/| /' conftest.$ac_ext >&5
10996
10997continue
10998fi
10999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11000 cat >conftest.$ac_ext <<_ACEOF
11001/* confdefs.h. */
11002_ACEOF
11003cat confdefs.h >>conftest.$ac_ext
11004cat >>conftest.$ac_ext <<_ACEOF
11005/* end confdefs.h. */
11006$ac_declaration
11007int
11008main ()
11009{
11010exit (42);
11011 ;
11012 return 0;
11013}
11014_ACEOF
11015rm -f conftest.$ac_objext
11016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11017 (eval $ac_compile) 2>conftest.er1
11018 ac_status=$?
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
dcc1b6ad
VS
11024 { ac_try='test -z "$ac_c_werror_flag"
11025 || test ! -s conftest.err'
a848cd7e
SC
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try='test -s conftest.$ac_objext'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; }; then
11037 break
11038else
11039 echo "$as_me: failed program was:" >&5
11040sed 's/^/| /' conftest.$ac_ext >&5
11041
11042fi
11043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11044done
11045rm -f conftest*
11046if test -n "$ac_declaration"; then
11047 echo '#ifdef __cplusplus' >>confdefs.h
11048 echo $ac_declaration >>confdefs.h
11049 echo '#endif' >>confdefs.h
11050fi
11051
11052else
11053 echo "$as_me: failed program was:" >&5
11054sed 's/^/| /' conftest.$ac_ext >&5
11055
11056fi
11057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11058ac_ext=c
11059ac_cpp='$CPP $CPPFLAGS'
11060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11062ac_compiler_gnu=$ac_cv_c_compiler_gnu
11063
11064
11065
11066ac_ext=c
11067ac_cpp='$CPP $CPPFLAGS'
11068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11070ac_compiler_gnu=$ac_cv_c_compiler_gnu
11071echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11072echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11073# On Suns, sometimes $CPP names a directory.
11074if test -n "$CPP" && test -d "$CPP"; then
11075 CPP=
11076fi
11077if test -z "$CPP"; then
11078 if test "${ac_cv_prog_CPP+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11080else
11081 # Double quotes because CPP needs to be expanded
11082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11083 do
11084 ac_preproc_ok=false
11085for ac_c_preproc_warn_flag in '' yes
11086do
11087 # Use a header file that comes with gcc, so configuring glibc
11088 # with a fresh cross-compiler works.
11089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11090 # <limits.h> exists even on freestanding compilers.
11091 # On the NeXT, cc -E runs the code through the compiler's parser,
11092 # not just through cpp. "Syntax error" is here to catch this case.
11093 cat >conftest.$ac_ext <<_ACEOF
11094/* confdefs.h. */
11095_ACEOF
11096cat confdefs.h >>conftest.$ac_ext
11097cat >>conftest.$ac_ext <<_ACEOF
11098/* end confdefs.h. */
11099#ifdef __STDC__
11100# include <limits.h>
11101#else
11102# include <assert.h>
11103#endif
11104 Syntax error
11105_ACEOF
11106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } >/dev/null; then
11114 if test -s conftest.err; then
11115 ac_cpp_err=$ac_c_preproc_warn_flag
11116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11117 else
11118 ac_cpp_err=
11119 fi
11120else
11121 ac_cpp_err=yes
11122fi
11123if test -z "$ac_cpp_err"; then
11124 :
11125else
11126 echo "$as_me: failed program was:" >&5
11127sed 's/^/| /' conftest.$ac_ext >&5
11128
11129 # Broken: fails on valid input.
11130continue
11131fi
11132rm -f conftest.err conftest.$ac_ext
11133
11134 # OK, works on sane cases. Now check whether non-existent headers
11135 # can be detected and how.
11136 cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h. */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h. */
11142#include <ac_nonexistent.h>
11143_ACEOF
11144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11146 ac_status=$?
11147 grep -v '^ *+' conftest.er1 >conftest.err
11148 rm -f conftest.er1
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } >/dev/null; then
11152 if test -s conftest.err; then
11153 ac_cpp_err=$ac_c_preproc_warn_flag
11154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11155 else
11156 ac_cpp_err=
11157 fi
11158else
11159 ac_cpp_err=yes
11160fi
11161if test -z "$ac_cpp_err"; then
11162 # Broken: success on invalid input.
11163continue
11164else
11165 echo "$as_me: failed program was:" >&5
11166sed 's/^/| /' conftest.$ac_ext >&5
11167
11168 # Passes both tests.
11169ac_preproc_ok=:
11170break
11171fi
11172rm -f conftest.err conftest.$ac_ext
11173
11174done
11175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11176rm -f conftest.err conftest.$ac_ext
11177if $ac_preproc_ok; then
11178 break
11179fi
11180
11181 done
11182 ac_cv_prog_CPP=$CPP
11183
11184fi
11185 CPP=$ac_cv_prog_CPP
11186else
11187 ac_cv_prog_CPP=$CPP
11188fi
11189echo "$as_me:$LINENO: result: $CPP" >&5
11190echo "${ECHO_T}$CPP" >&6
11191ac_preproc_ok=false
11192for ac_c_preproc_warn_flag in '' yes
11193do
11194 # Use a header file that comes with gcc, so configuring glibc
11195 # with a fresh cross-compiler works.
11196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11197 # <limits.h> exists even on freestanding compilers.
11198 # On the NeXT, cc -E runs the code through the compiler's parser,
11199 # not just through cpp. "Syntax error" is here to catch this case.
11200 cat >conftest.$ac_ext <<_ACEOF
11201/* confdefs.h. */
11202_ACEOF
11203cat confdefs.h >>conftest.$ac_ext
11204cat >>conftest.$ac_ext <<_ACEOF
11205/* end confdefs.h. */
11206#ifdef __STDC__
11207# include <limits.h>
11208#else
11209# include <assert.h>
11210#endif
11211 Syntax error
11212_ACEOF
11213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } >/dev/null; then
11221 if test -s conftest.err; then
11222 ac_cpp_err=$ac_c_preproc_warn_flag
11223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11224 else
11225 ac_cpp_err=
11226 fi
11227else
11228 ac_cpp_err=yes
11229fi
11230if test -z "$ac_cpp_err"; then
11231 :
11232else
11233 echo "$as_me: failed program was:" >&5
11234sed 's/^/| /' conftest.$ac_ext >&5
11235
11236 # Broken: fails on valid input.
11237continue
11238fi
11239rm -f conftest.err conftest.$ac_ext
11240
11241 # OK, works on sane cases. Now check whether non-existent headers
11242 # can be detected and how.
11243 cat >conftest.$ac_ext <<_ACEOF
11244/* confdefs.h. */
11245_ACEOF
11246cat confdefs.h >>conftest.$ac_ext
11247cat >>conftest.$ac_ext <<_ACEOF
11248/* end confdefs.h. */
11249#include <ac_nonexistent.h>
11250_ACEOF
11251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11253 ac_status=$?
11254 grep -v '^ *+' conftest.er1 >conftest.err
11255 rm -f conftest.er1
11256 cat conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } >/dev/null; then
11259 if test -s conftest.err; then
11260 ac_cpp_err=$ac_c_preproc_warn_flag
11261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11262 else
11263 ac_cpp_err=
11264 fi
11265else
11266 ac_cpp_err=yes
11267fi
11268if test -z "$ac_cpp_err"; then
11269 # Broken: success on invalid input.
11270continue
11271else
11272 echo "$as_me: failed program was:" >&5
11273sed 's/^/| /' conftest.$ac_ext >&5
11274
11275 # Passes both tests.
11276ac_preproc_ok=:
11277break
11278fi
11279rm -f conftest.err conftest.$ac_ext
11280
11281done
11282# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11283rm -f conftest.err conftest.$ac_ext
11284if $ac_preproc_ok; then
11285 :
11286else
11287 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11288See \`config.log' for more details." >&5
11289echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11290See \`config.log' for more details." >&2;}
11291 { (exit 1); exit 1; }; }
11292fi
11293
11294ac_ext=c
11295ac_cpp='$CPP $CPPFLAGS'
11296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11298ac_compiler_gnu=$ac_cv_c_compiler_gnu
11299
11300
11301echo "$as_me:$LINENO: checking for egrep" >&5
11302echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11303if test "${ac_cv_prog_egrep+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11305else
11306 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11307 then ac_cv_prog_egrep='grep -E'
11308 else ac_cv_prog_egrep='egrep'
11309 fi
11310fi
11311echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11312echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11313 EGREP=$ac_cv_prog_egrep
11314
11315
11316if test $ac_cv_c_compiler_gnu = yes; then
11317 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11318echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11319if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11321else
11322 ac_pattern="Autoconf.*'x'"
11323 cat >conftest.$ac_ext <<_ACEOF
11324/* confdefs.h. */
11325_ACEOF
11326cat confdefs.h >>conftest.$ac_ext
11327cat >>conftest.$ac_ext <<_ACEOF
11328/* end confdefs.h. */
11329#include <sgtty.h>
11330Autoconf TIOCGETP
11331_ACEOF
11332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11333 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11334 ac_cv_prog_gcc_traditional=yes
11335else
11336 ac_cv_prog_gcc_traditional=no
11337fi
11338rm -f conftest*
11339
11340
11341 if test $ac_cv_prog_gcc_traditional = no; then
11342 cat >conftest.$ac_ext <<_ACEOF
11343/* confdefs.h. */
11344_ACEOF
11345cat confdefs.h >>conftest.$ac_ext
11346cat >>conftest.$ac_ext <<_ACEOF
11347/* end confdefs.h. */
11348#include <termio.h>
11349Autoconf TCGETA
11350_ACEOF
11351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11352 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11353 ac_cv_prog_gcc_traditional=yes
11354fi
11355rm -f conftest*
11356
11357 fi
11358fi
11359echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11360echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11361 if test $ac_cv_prog_gcc_traditional = yes; then
11362 CC="$CC -traditional"
11363 fi
11364fi
11365
11366
11367
11368
11369ac_ext=cc
11370ac_cpp='$CXXCPP $CPPFLAGS'
11371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11374
11375
11376CXXFLAGS=${CXXFLAGS:=}
11377ac_ext=cc
11378ac_cpp='$CXXCPP $CPPFLAGS'
11379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11382if test -n "$ac_tool_prefix"; then
11383 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11384 do
11385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11386set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11387echo "$as_me:$LINENO: checking for $ac_word" >&5
11388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11389if test "${ac_cv_prog_CXX+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391else
11392 if test -n "$CXX"; then
11393 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11394else
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11402 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 break 2
11405 fi
11406done
11407done
11408
11409fi
11410fi
11411CXX=$ac_cv_prog_CXX
11412if test -n "$CXX"; then
11413 echo "$as_me:$LINENO: result: $CXX" >&5
11414echo "${ECHO_T}$CXX" >&6
11415else
11416 echo "$as_me:$LINENO: result: no" >&5
11417echo "${ECHO_T}no" >&6
11418fi
11419
11420 test -n "$CXX" && break
11421 done
11422fi
11423if test -z "$CXX"; then
11424 ac_ct_CXX=$CXX
11425 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11426do
11427 # Extract the first word of "$ac_prog", so it can be a program name with args.
11428set dummy $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_ac_ct_CXX+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11433else
11434 if test -n "$ac_ct_CXX"; then
11435 ac_cv_prog_ac_ct_CXX="$ac_ct_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_ac_ct_CXX="$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
11453ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11454if test -n "$ac_ct_CXX"; then
11455 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11456echo "${ECHO_T}$ac_ct_CXX" >&6
11457else
11458 echo "$as_me:$LINENO: result: no" >&5
11459echo "${ECHO_T}no" >&6
11460fi
11461
11462 test -n "$ac_ct_CXX" && break
11463done
11464test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11465
11466 CXX=$ac_ct_CXX
11467fi
11468
11469
11470# Provide some information about the compiler.
11471echo "$as_me:$LINENO:" \
11472 "checking for C++ compiler version" >&5
11473ac_compiler=`set X $ac_compile; echo $2`
11474{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11475 (eval $ac_compiler --version </dev/null >&5) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }
11479{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11480 (eval $ac_compiler -v </dev/null >&5) 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }
11484{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11485 (eval $ac_compiler -V </dev/null >&5) 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }
11489
11490echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11491echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11492if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495 cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501
11502int
11503main ()
11504{
11505#ifndef __GNUC__
11506 choke me
11507#endif
11508
11509 ;
11510 return 0;
11511}
11512_ACEOF
11513rm -f conftest.$ac_objext
11514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11515 (eval $ac_compile) 2>conftest.er1
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
dcc1b6ad
VS
11522 { ac_try='test -z "$ac_cxx_werror_flag"
11523 || test ! -s conftest.err'
a848cd7e
SC
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest.$ac_objext'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
11535 ac_compiler_gnu=yes
11536else
11537 echo "$as_me: failed program was:" >&5
11538sed 's/^/| /' conftest.$ac_ext >&5
11539
11540ac_compiler_gnu=no
11541fi
11542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11543ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11544
11545fi
11546echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11547echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11548GXX=`test $ac_compiler_gnu = yes && echo yes`
11549ac_test_CXXFLAGS=${CXXFLAGS+set}
11550ac_save_CXXFLAGS=$CXXFLAGS
11551CXXFLAGS="-g"
11552echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11553echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11554if test "${ac_cv_prog_cxx_g+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11556else
11557 cat >conftest.$ac_ext <<_ACEOF
11558/* confdefs.h. */
11559_ACEOF
11560cat confdefs.h >>conftest.$ac_ext
11561cat >>conftest.$ac_ext <<_ACEOF
11562/* end confdefs.h. */
11563
11564int
11565main ()
11566{
11567
11568 ;
11569 return 0;
11570}
11571_ACEOF
11572rm -f conftest.$ac_objext
11573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11574 (eval $ac_compile) 2>conftest.er1
11575 ac_status=$?
11576 grep -v '^ *+' conftest.er1 >conftest.err
11577 rm -f conftest.er1
11578 cat conftest.err >&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } &&
dcc1b6ad
VS
11581 { ac_try='test -z "$ac_cxx_werror_flag"
11582 || test ! -s conftest.err'
a848cd7e
SC
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11585 ac_status=$?
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; } &&
11588 { ac_try='test -s conftest.$ac_objext'
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11594 ac_cv_prog_cxx_g=yes
11595else
11596 echo "$as_me: failed program was:" >&5
11597sed 's/^/| /' conftest.$ac_ext >&5
11598
11599ac_cv_prog_cxx_g=no
11600fi
11601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11602fi
11603echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11604echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11605if test "$ac_test_CXXFLAGS" = set; then
11606 CXXFLAGS=$ac_save_CXXFLAGS
11607elif test $ac_cv_prog_cxx_g = yes; then
11608 if test "$GXX" = yes; then
11609 CXXFLAGS="-g -O2"
11610 else
11611 CXXFLAGS="-g"
11612 fi
11613else
11614 if test "$GXX" = yes; then
11615 CXXFLAGS="-O2"
11616 else
11617 CXXFLAGS=
11618 fi
11619fi
11620for ac_declaration in \
11621 '' \
11622 'extern "C" void std::exit (int) throw (); using std::exit;' \
11623 'extern "C" void std::exit (int); using std::exit;' \
11624 'extern "C" void exit (int) throw ();' \
11625 'extern "C" void exit (int);' \
11626 'void exit (int);'
11627do
11628 cat >conftest.$ac_ext <<_ACEOF
11629/* confdefs.h. */
11630_ACEOF
11631cat confdefs.h >>conftest.$ac_ext
11632cat >>conftest.$ac_ext <<_ACEOF
11633/* end confdefs.h. */
11634$ac_declaration
11635#include <stdlib.h>
11636int
11637main ()
11638{
11639exit (42);
11640 ;
11641 return 0;
11642}
11643_ACEOF
11644rm -f conftest.$ac_objext
11645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646 (eval $ac_compile) 2>conftest.er1
11647 ac_status=$?
11648 grep -v '^ *+' conftest.er1 >conftest.err
11649 rm -f conftest.er1
11650 cat conftest.err >&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
dcc1b6ad
VS
11653 { ac_try='test -z "$ac_cxx_werror_flag"
11654 || test ! -s conftest.err'
a848cd7e
SC
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; } &&
11660 { ac_try='test -s conftest.$ac_objext'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 :
11667else
11668 echo "$as_me: failed program was:" >&5
11669sed 's/^/| /' conftest.$ac_ext >&5
11670
11671continue
11672fi
11673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11674 cat >conftest.$ac_ext <<_ACEOF
11675/* confdefs.h. */
11676_ACEOF
11677cat confdefs.h >>conftest.$ac_ext
11678cat >>conftest.$ac_ext <<_ACEOF
11679/* end confdefs.h. */
11680$ac_declaration
11681int
11682main ()
11683{
11684exit (42);
11685 ;
11686 return 0;
11687}
11688_ACEOF
11689rm -f conftest.$ac_objext
11690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11691 (eval $ac_compile) 2>conftest.er1
11692 ac_status=$?
11693 grep -v '^ *+' conftest.er1 >conftest.err
11694 rm -f conftest.er1
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
dcc1b6ad
VS
11698 { ac_try='test -z "$ac_cxx_werror_flag"
11699 || test ! -s conftest.err'
a848cd7e
SC
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest.$ac_objext'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 break
11712else
11713 echo "$as_me: failed program was:" >&5
11714sed 's/^/| /' conftest.$ac_ext >&5
11715
11716fi
11717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11718done
11719rm -f conftest*
11720if test -n "$ac_declaration"; then
11721 echo '#ifdef __cplusplus' >>confdefs.h
11722 echo $ac_declaration >>confdefs.h
11723 echo '#endif' >>confdefs.h
11724fi
11725
11726ac_ext=cc
11727ac_cpp='$CXXCPP $CPPFLAGS'
11728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11731
11732
11733ac_ext=c
11734ac_cpp='$CPP $CPPFLAGS'
11735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11737ac_compiler_gnu=$ac_cv_c_compiler_gnu
11738
11739
11740echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11741echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11742GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11743if test "$GCC" = "yes" ; then
11744 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11745 sed -n '1,/End of search list\./p' | \
11746 grep '^ */usr/local/include$' 2>&1 /dev/null \
11747 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11748fi
11749echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11750echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11751
11752if test -n "$ac_tool_prefix"; then
11753 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11754set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11755echo "$as_me:$LINENO: checking for $ac_word" >&5
11756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11757if test "${ac_cv_prog_RANLIB+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759else
11760 if test -n "$RANLIB"; then
11761 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11762else
11763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764for as_dir in $PATH
11765do
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
11768 for ac_exec_ext in '' $ac_executable_extensions; do
11769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11770 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11772 break 2
11773 fi
11774done
11775done
11776
11777fi
11778fi
11779RANLIB=$ac_cv_prog_RANLIB
11780if test -n "$RANLIB"; then
11781 echo "$as_me:$LINENO: result: $RANLIB" >&5
11782echo "${ECHO_T}$RANLIB" >&6
11783else
11784 echo "$as_me:$LINENO: result: no" >&5
11785echo "${ECHO_T}no" >&6
11786fi
11787
11788fi
11789if test -z "$ac_cv_prog_RANLIB"; then
11790 ac_ct_RANLIB=$RANLIB
11791 # Extract the first word of "ranlib", so it can be a program name with args.
11792set dummy ranlib; ac_word=$2
11793echo "$as_me:$LINENO: checking for $ac_word" >&5
11794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11795if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797else
11798 if test -n "$ac_ct_RANLIB"; then
11799 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11800else
11801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802for as_dir in $PATH
11803do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11808 ac_cv_prog_ac_ct_RANLIB="ranlib"
11809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 break 2
11811 fi
11812done
11813done
11814
11815 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11816fi
11817fi
11818ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11819if test -n "$ac_ct_RANLIB"; then
11820 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11821echo "${ECHO_T}$ac_ct_RANLIB" >&6
11822else
11823 echo "$as_me:$LINENO: result: no" >&5
11824echo "${ECHO_T}no" >&6
11825fi
11826
11827 RANLIB=$ac_ct_RANLIB
11828else
11829 RANLIB="$ac_cv_prog_RANLIB"
11830fi
11831
11832
11833# Extract the first word of "ar", so it can be a program name with args.
11834set dummy ar; 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_AR+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839else
11840 if test -n "$AR"; then
11841 ac_cv_prog_AR="$AR" # 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_AR="ar"
11851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11852 break 2
11853 fi
11854done
11855done
11856
11857fi
11858fi
11859AR=$ac_cv_prog_AR
11860if test -n "$AR"; then
11861 echo "$as_me:$LINENO: result: $AR" >&5
11862echo "${ECHO_T}$AR" >&6
11863else
11864 echo "$as_me:$LINENO: result: no" >&5
11865echo "${ECHO_T}no" >&6
11866fi
11867
11868if test "x$AR" = "x" ; then
11869 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11870echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11871 { (exit 1); exit 1; }; }
11872fi
11873
11874# Find a good install program. We prefer a C program (faster),
11875# so one script is as good as another. But avoid the broken or
11876# incompatible versions:
11877# SysV /etc/install, /usr/sbin/install
11878# SunOS /usr/etc/install
11879# IRIX /sbin/install
11880# AIX /bin/install
11881# AmigaOS /C/install, which installs bootblocks on floppy discs
11882# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11883# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11884# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11885# OS/2's system install, which has a completely different semantic
11886# ./install, which can be erroneously created by make from ./install.sh.
11887echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11888echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11889if test -z "$INSTALL"; then
11890if test "${ac_cv_path_install+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11892else
11893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894for as_dir in $PATH
11895do
11896 IFS=$as_save_IFS
11897 test -z "$as_dir" && as_dir=.
11898 # Account for people who put trailing slashes in PATH elements.
11899case $as_dir/ in
11900 ./ | .// | /cC/* | \
11901 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11902 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11903 /usr/ucb/* ) ;;
11904 *)
11905 # OSF1 and SCO ODT 3.0 have their own names for install.
11906 # Don't use installbsd from OSF since it installs stuff as root
11907 # by default.
11908 for ac_prog in ginstall scoinst install; do
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11911 if test $ac_prog = install &&
11912 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11913 # AIX install. It has an incompatible calling convention.
11914 :
11915 elif test $ac_prog = install &&
11916 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11917 # program-specific install script used by HP pwplus--don't use.
11918 :
11919 else
11920 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11921 break 3
11922 fi
11923 fi
11924 done
11925 done
11926 ;;
11927esac
11928done
11929
11930
11931fi
11932 if test "${ac_cv_path_install+set}" = set; then
11933 INSTALL=$ac_cv_path_install
11934 else
11935 # As a last resort, use the slow shell script. We don't cache a
11936 # path for INSTALL within a source directory, because that will
11937 # break other packages using the cache if that directory is
11938 # removed, or if the path is relative.
11939 INSTALL=$ac_install_sh
11940 fi
11941fi
11942echo "$as_me:$LINENO: result: $INSTALL" >&5
11943echo "${ECHO_T}$INSTALL" >&6
11944
11945# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11946# It thinks the first close brace ends the variable substitution.
11947test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11948
11949test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11950
11951test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11952
11953
11954case ${INSTALL} in
11955 /* ) # Absolute
11956 ;;
11957 ?:* ) # Drive letter, considered as absolute.
11958 ;;
11959 *)
11960 INSTALL=`pwd`/${INSTALL} ;;
11961esac
11962
11963case ${host} in
11964 *-hp-hpux* )
11965 INSTALL_DIR="mkdir"
11966 ;;
11967
11968 *) INSTALL_DIR="$INSTALL -d"
11969 ;;
11970esac
11971
11972
11973case "${host}" in
11974
11975 powerpc-*-darwin* )
11976 INSTALL_PROGRAM="cp -fp"
11977 INSTALL_DATA="cp -fp"
11978 ;;
11979 *)
11980 ;;
11981esac
11982
11983# Extract the first word of "strip", so it can be a program name with args.
11984set dummy strip; ac_word=$2
11985echo "$as_me:$LINENO: checking for $ac_word" >&5
11986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11987if test "${ac_cv_prog_STRIP+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989else
11990 if test -n "$STRIP"; then
11991 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11992else
11993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11994for as_dir in $PATH
11995do
11996 IFS=$as_save_IFS
11997 test -z "$as_dir" && as_dir=.
11998 for ac_exec_ext in '' $ac_executable_extensions; do
11999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12000 ac_cv_prog_STRIP="strip"
12001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12002 break 2
12003 fi
12004done
12005done
12006
12007 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12008fi
12009fi
12010STRIP=$ac_cv_prog_STRIP
12011if test -n "$STRIP"; then
12012 echo "$as_me:$LINENO: result: $STRIP" >&5
12013echo "${ECHO_T}$STRIP" >&6
12014else
12015 echo "$as_me:$LINENO: result: no" >&5
12016echo "${ECHO_T}no" >&6
12017fi
12018
12019
12020echo "$as_me:$LINENO: checking if make is GNU make" >&5
12021echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12022if test "${wx_cv_prog_makeisgnu+set}" = set; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12024else
12025
12026 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12027 egrep -s GNU > /dev/null); then
12028 wx_cv_prog_makeisgnu="yes"
12029 else
12030 wx_cv_prog_makeisgnu="no"
12031 fi
12032
12033fi
12034echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12035echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12036
12037if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12038 IF_GNU_MAKE=""
12039else
12040 IF_GNU_MAKE="#"
12041fi
12042
12043
12044
12045if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12046echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12047echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12048if test "${wx_cv_prog_makevpath+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050else
12051
12052cat - << EOF > confMake
12053check : file
12054 cp \$? \$@
12055 cp \$? final_file
12056EOF
12057
12058if test ! -d sub ; then
12059 mkdir sub
12060fi
12061echo dummy > sub/file
12062${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12063RESULT=$?
12064rm -f sub/file check final_file confMake
12065rmdir sub
12066if test "$RESULT" = 0; then
12067 wx_cv_prog_makevpath="yes"
12068else
12069 wx_cv_prog_makevpath="no"
12070fi
12071
12072fi
12073echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12074echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12075
12076if test "x$wx_cv_prog_makevpath" != "xyes"; then
12077{ { echo "$as_me:$LINENO: error:
12078You need a make-utility that is able to use the variable
12079VPATH correctly.
12080If your version of make does not support VPATH correctly,
12081please install GNU-make (possibly as gmake), and start
12082configure with the following command:
12083export MAKE=gmake; ./configure for sh-type shells
12084setenv MAKE gmake; ./configure for csh-type shells
12085Also please do remember to use gmake in this case every time
12086you are trying to compile.
12087" >&5
12088echo "$as_me: error:
12089You need a make-utility that is able to use the variable
12090VPATH correctly.
12091If your version of make does not support VPATH correctly,
12092please install GNU-make (possibly as gmake), and start
12093configure with the following command:
12094export MAKE=gmake; ./configure for sh-type shells
12095setenv MAKE gmake; ./configure for csh-type shells
12096Also please do remember to use gmake in this case every time
12097you are trying to compile.
12098" >&2;}
12099 { (exit 1); exit 1; }; }
12100fi fi
12101echo "$as_me:$LINENO: checking whether ln -s works" >&5
12102echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12103LN_S=$as_ln_s
12104if test "$LN_S" = "ln -s"; then
12105 echo "$as_me:$LINENO: result: yes" >&5
12106echo "${ECHO_T}yes" >&6
12107else
12108 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12109echo "${ECHO_T}no, using $LN_S" >&6
12110fi
12111
12112
12113
12114case "${host}" in
12115 *-pc-os2_emx | *-pc-os2-emx )
12116 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12117 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12118echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12119if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121else
12122 ac_check_lib_save_LIBS=$LIBS
12123LIBS="-lcExt $LIBS"
12124cat >conftest.$ac_ext <<_ACEOF
12125/* confdefs.h. */
12126_ACEOF
12127cat confdefs.h >>conftest.$ac_ext
12128cat >>conftest.$ac_ext <<_ACEOF
12129/* end confdefs.h. */
12130
12131/* Override any gcc2 internal prototype to avoid an error. */
12132#ifdef __cplusplus
12133extern "C"
12134#endif
12135/* We use char because int might match the return type of a gcc2
12136 builtin and then its argument prototype would still apply. */
12137char drand48 ();
12138int
12139main ()
12140{
12141drand48 ();
12142 ;
12143 return 0;
12144}
12145_ACEOF
12146rm -f conftest.$ac_objext conftest$ac_exeext
12147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12148 (eval $ac_link) 2>conftest.er1
12149 ac_status=$?
12150 grep -v '^ *+' conftest.er1 >conftest.err
12151 rm -f conftest.er1
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
dcc1b6ad
VS
12155 { ac_try='test -z "$ac_c_werror_flag"
12156 || test ! -s conftest.err'
a848cd7e
SC
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; } &&
12162 { ac_try='test -s conftest$ac_exeext'
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12165 ac_status=$?
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
12168 ac_cv_lib_cExt_drand48=yes
12169else
12170 echo "$as_me: failed program was:" >&5
12171sed 's/^/| /' conftest.$ac_ext >&5
12172
12173ac_cv_lib_cExt_drand48=no
12174fi
12175rm -f conftest.err conftest.$ac_objext \
12176 conftest$ac_exeext conftest.$ac_ext
12177LIBS=$ac_check_lib_save_LIBS
12178fi
12179echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12180echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12181if test $ac_cv_lib_cExt_drand48 = yes; then
12182 LIBS="$LIBS -lcExt"
12183fi
12184
12185 else
12186 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12187 fi
12188 echo "$as_me:$LINENO: checking for gcc version" >&5
12189echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12190if test "${wx_cv_gccversion+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192else
12193
12194 cat >conftest.$ac_ext <<_ACEOF
12195/* confdefs.h. */
12196_ACEOF
12197cat confdefs.h >>conftest.$ac_ext
12198cat >>conftest.$ac_ext <<_ACEOF
12199/* end confdefs.h. */
12200
12201int
12202main ()
12203{
12204
12205 #if (__GNUC__ < 3)
12206 #error old gcc
12207 #endif
12208
12209 ;
12210 return 0;
12211}
12212_ACEOF
12213rm -f conftest.$ac_objext
12214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12215 (eval $ac_compile) 2>conftest.er1
12216 ac_status=$?
12217 grep -v '^ *+' conftest.er1 >conftest.err
12218 rm -f conftest.er1
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
dcc1b6ad
VS
12222 { ac_try='test -z "$ac_c_werror_flag"
12223 || test ! -s conftest.err'
a848cd7e
SC
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest.$ac_objext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
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) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12248 #error intermediate 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
12257 (eval $ac_compile) 2>conftest.er1
12258 ac_status=$?
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
dcc1b6ad
VS
12264 { ac_try='test -z "$ac_c_werror_flag"
12265 || test ! -s conftest.err'
a848cd7e
SC
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'
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 wx_cv_gccversion=Innotek
12279
12280else
12281 echo "$as_me: failed program was:" >&5
12282sed 's/^/| /' conftest.$ac_ext >&5
12283
12284
12285 wx_cv_gccversion=3
12286
12287
12288fi
12289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12290
12291else
12292 echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
12295
12296 wx_cv_gccversion=2
12297
12298
12299fi
12300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12301
12302fi
12303echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12304echo "${ECHO_T}$wx_cv_gccversion" >&6
12305 if test "$wx_cv_gccversion" = "2"; then
12306 LIBS="$LIBS -lstdcpp"
12307 LDFLAGS="$LDFLAGS -Zsysv-signals"
12308 else
12309 if test "$wx_cv_gccversion" = "3"; then
12310 LIBS="$LIBS -lstdcxx"
12311 LDFLAGS="$LDFLAGS -Zsysv-signals"
12312 else
12313 LIBS="$LIBS -lstdc++"
12314 fi
12315 fi
12316 if test "$wxUSE_OMF" = "yes"; then
12317 LDFLAGS="$LDFLAGS -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
12318 fi
12319 ;;
12320 *)
12321
12322
12323
12324 ac_ext=cc
12325ac_cpp='$CXXCPP $CPPFLAGS'
12326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12329
12330
12331
12332echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12333echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12334if test "${ac_cv_string_strcasecmp+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336else
12337
12338 cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h. */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
12343/* end confdefs.h. */
12344
12345 #include <string.h>
12346
12347int
12348main ()
12349{
12350
12351 strcasecmp("foo", "bar");
12352
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357rm -f conftest.$ac_objext conftest$ac_exeext
12358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12359 (eval $ac_link) 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
dcc1b6ad
VS
12366 { ac_try='test -z "$ac_cxx_werror_flag"
12367 || test ! -s conftest.err'
a848cd7e
SC
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; } &&
12373 { ac_try='test -s conftest$ac_exeext'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 ac_cv_string_strcasecmp=yes
12380else
12381 echo "$as_me: failed program was:" >&5
12382sed 's/^/| /' conftest.$ac_ext >&5
12383
12384ac_cv_string_strcasecmp=no
12385
12386fi
12387rm -f conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext conftest.$ac_ext
12389
12390fi
12391echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12392echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12393
12394 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12395 cat >>confdefs.h <<\_ACEOF
12396#define HAVE_STRCASECMP_IN_STRING_H 1
12397_ACEOF
12398
12399 else
12400 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12401echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12402if test "${ac_cv_strings_strcasecmp+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12404else
12405
12406 cat >conftest.$ac_ext <<_ACEOF
12407/* confdefs.h. */
12408_ACEOF
12409cat confdefs.h >>conftest.$ac_ext
12410cat >>conftest.$ac_ext <<_ACEOF
12411/* end confdefs.h. */
12412
12413 #include <strings.h>
12414
12415int
12416main ()
12417{
12418
12419 strcasecmp("foo", "bar");
12420
12421 ;
12422 return 0;
12423}
12424_ACEOF
12425rm -f conftest.$ac_objext conftest$ac_exeext
12426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12427 (eval $ac_link) 2>conftest.er1
12428 ac_status=$?
12429 grep -v '^ *+' conftest.er1 >conftest.err
12430 rm -f conftest.er1
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
dcc1b6ad
VS
12434 { ac_try='test -z "$ac_cxx_werror_flag"
12435 || test ! -s conftest.err'
a848cd7e
SC
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try='test -s conftest$ac_exeext'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12444 ac_status=$?
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 ac_cv_strings_strcasecmp=yes
12448else
12449 echo "$as_me: failed program was:" >&5
12450sed 's/^/| /' conftest.$ac_ext >&5
12451
12452ac_cv_strings_strcasecmp=no
12453
12454fi
12455rm -f conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
12457
12458fi
12459echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12460echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12461
12462 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12463 cat >>confdefs.h <<\_ACEOF
12464#define HAVE_STRCASECMP_IN_STRINGS_H 1
12465_ACEOF
12466
12467 else
12468 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12469echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12470 { (exit 1); exit 1; }; }
12471 fi
12472 fi
12473
12474 ac_ext=c
12475ac_cpp='$CPP $CPPFLAGS'
12476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12478ac_compiler_gnu=$ac_cv_c_compiler_gnu
12479
12480 ;;
12481esac
12482
12483
12484echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12485echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12486if test "${ac_cv_header_stdc+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488else
12489 cat >conftest.$ac_ext <<_ACEOF
12490/* confdefs.h. */
12491_ACEOF
12492cat confdefs.h >>conftest.$ac_ext
12493cat >>conftest.$ac_ext <<_ACEOF
12494/* end confdefs.h. */
12495#include <stdlib.h>
12496#include <stdarg.h>
12497#include <string.h>
12498#include <float.h>
12499
12500int
12501main ()
12502{
12503
12504 ;
12505 return 0;
12506}
12507_ACEOF
12508rm -f conftest.$ac_objext
12509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510 (eval $ac_compile) 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
dcc1b6ad
VS
12517 { ac_try='test -z "$ac_c_werror_flag"
12518 || test ! -s conftest.err'
a848cd7e
SC
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; } &&
12524 { ac_try='test -s conftest.$ac_objext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 ac_cv_header_stdc=yes
12531else
12532 echo "$as_me: failed program was:" >&5
12533sed 's/^/| /' conftest.$ac_ext >&5
12534
12535ac_cv_header_stdc=no
12536fi
12537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12538
12539if test $ac_cv_header_stdc = yes; then
12540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12541 cat >conftest.$ac_ext <<_ACEOF
12542/* confdefs.h. */
12543_ACEOF
12544cat confdefs.h >>conftest.$ac_ext
12545cat >>conftest.$ac_ext <<_ACEOF
12546/* end confdefs.h. */
12547#include <string.h>
12548
12549_ACEOF
12550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12551 $EGREP "memchr" >/dev/null 2>&1; then
12552 :
12553else
12554 ac_cv_header_stdc=no
12555fi
12556rm -f conftest*
12557
12558fi
12559
12560if test $ac_cv_header_stdc = yes; then
12561 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12562 cat >conftest.$ac_ext <<_ACEOF
12563/* confdefs.h. */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
12567/* end confdefs.h. */
12568#include <stdlib.h>
12569
12570_ACEOF
12571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12572 $EGREP "free" >/dev/null 2>&1; then
12573 :
12574else
12575 ac_cv_header_stdc=no
12576fi
12577rm -f conftest*
12578
12579fi
12580
12581if test $ac_cv_header_stdc = yes; then
12582 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12583 if test "$cross_compiling" = yes; then
12584 :
12585else
12586 cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h. */
12592#include <ctype.h>
12593#if ((' ' & 0x0FF) == 0x020)
12594# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12595# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12596#else
12597# define ISLOWER(c) \
12598 (('a' <= (c) && (c) <= 'i') \
12599 || ('j' <= (c) && (c) <= 'r') \
12600 || ('s' <= (c) && (c) <= 'z'))
12601# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12602#endif
12603
12604#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12605int
12606main ()
12607{
12608 int i;
12609 for (i = 0; i < 256; i++)
12610 if (XOR (islower (i), ISLOWER (i))
12611 || toupper (i) != TOUPPER (i))
12612 exit(2);
12613 exit (0);
12614}
12615_ACEOF
12616rm -f conftest$ac_exeext
12617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12618 (eval $ac_link) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 :
12628else
12629 echo "$as_me: program exited with status $ac_status" >&5
12630echo "$as_me: failed program was:" >&5
12631sed 's/^/| /' conftest.$ac_ext >&5
12632
12633( exit $ac_status )
12634ac_cv_header_stdc=no
12635fi
12636rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12637fi
12638fi
12639fi
12640echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12641echo "${ECHO_T}$ac_cv_header_stdc" >&6
12642if test $ac_cv_header_stdc = yes; then
12643
12644cat >>confdefs.h <<\_ACEOF
12645#define STDC_HEADERS 1
12646_ACEOF
12647
12648fi
12649
12650# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12661 inttypes.h stdint.h unistd.h
12662do
12663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12664echo "$as_me:$LINENO: checking for $ac_header" >&5
12665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12666if eval "test \"\${$as_ac_Header+set}\" = set"; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12668else
12669 cat >conftest.$ac_ext <<_ACEOF
12670/* confdefs.h. */
12671_ACEOF
12672cat confdefs.h >>conftest.$ac_ext
12673cat >>conftest.$ac_ext <<_ACEOF
12674/* end confdefs.h. */
12675$ac_includes_default
12676
12677#include <$ac_header>
12678_ACEOF
12679rm -f conftest.$ac_objext
12680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12681 (eval $ac_compile) 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
dcc1b6ad
VS
12688 { ac_try='test -z "$ac_c_werror_flag"
12689 || test ! -s conftest.err'
a848cd7e
SC
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest.$ac_objext'
12696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 eval "$as_ac_Header=yes"
12702else
12703 echo "$as_me: failed program was:" >&5
12704sed 's/^/| /' conftest.$ac_ext >&5
12705
12706eval "$as_ac_Header=no"
12707fi
12708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12709fi
12710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12712if test `eval echo '${'$as_ac_Header'}'` = yes; then
12713 cat >>confdefs.h <<_ACEOF
12714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12715_ACEOF
12716
12717fi
12718
12719done
12720
12721
12722
12723for ac_header in stdlib.h
12724do
12725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12726if eval "test \"\${$as_ac_Header+set}\" = set"; then
12727 echo "$as_me:$LINENO: checking for $ac_header" >&5
12728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12729if eval "test \"\${$as_ac_Header+set}\" = set"; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731fi
12732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12734else
12735 # Is the header compilable?
12736echo "$as_me:$LINENO: checking $ac_header usability" >&5
12737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12738cat >conftest.$ac_ext <<_ACEOF
12739/* confdefs.h. */
12740_ACEOF
12741cat confdefs.h >>conftest.$ac_ext
12742cat >>conftest.$ac_ext <<_ACEOF
12743/* end confdefs.h. */
12744$ac_includes_default
12745#include <$ac_header>
12746_ACEOF
12747rm -f conftest.$ac_objext
12748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12749 (eval $ac_compile) 2>conftest.er1
12750 ac_status=$?
12751 grep -v '^ *+' conftest.er1 >conftest.err
12752 rm -f conftest.er1
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
dcc1b6ad
VS
12756 { ac_try='test -z "$ac_c_werror_flag"
12757 || test ! -s conftest.err'
a848cd7e
SC
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest.$ac_objext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_header_compiler=yes
12770else
12771 echo "$as_me: failed program was:" >&5
12772sed 's/^/| /' conftest.$ac_ext >&5
12773
12774ac_header_compiler=no
12775fi
12776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12777echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12778echo "${ECHO_T}$ac_header_compiler" >&6
12779
12780# Is the header present?
12781echo "$as_me:$LINENO: checking $ac_header presence" >&5
12782echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12783cat >conftest.$ac_ext <<_ACEOF
12784/* confdefs.h. */
12785_ACEOF
12786cat confdefs.h >>conftest.$ac_ext
12787cat >>conftest.$ac_ext <<_ACEOF
12788/* end confdefs.h. */
12789#include <$ac_header>
12790_ACEOF
12791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } >/dev/null; then
12799 if test -s conftest.err; then
12800 ac_cpp_err=$ac_c_preproc_warn_flag
12801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12802 else
12803 ac_cpp_err=
12804 fi
12805else
12806 ac_cpp_err=yes
12807fi
12808if test -z "$ac_cpp_err"; then
12809 ac_header_preproc=yes
12810else
12811 echo "$as_me: failed program was:" >&5
12812sed 's/^/| /' conftest.$ac_ext >&5
12813
12814 ac_header_preproc=no
12815fi
12816rm -f conftest.err conftest.$ac_ext
12817echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12818echo "${ECHO_T}$ac_header_preproc" >&6
12819
12820# So? What about this header?
12821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12822 yes:no: )
12823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12824echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12826echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12827 ac_header_preproc=yes
12828 ;;
12829 no:yes:* )
12830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12831echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12833echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12835echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12837echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12839echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12841echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12842 (
12843 cat <<\_ASBOX
12844## ----------------------------------------- ##
12845## Report this to wx-dev@lists.wxwindows.org ##
12846## ----------------------------------------- ##
12847_ASBOX
12848 ) |
12849 sed "s/^/$as_me: WARNING: /" >&2
12850 ;;
12851esac
12852echo "$as_me:$LINENO: checking for $ac_header" >&5
12853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12854if eval "test \"\${$as_ac_Header+set}\" = set"; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856else
12857 eval "$as_ac_Header=\$ac_header_preproc"
12858fi
12859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12861
12862fi
12863if test `eval echo '${'$as_ac_Header'}'` = yes; then
12864 cat >>confdefs.h <<_ACEOF
12865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12866_ACEOF
12867
12868fi
12869
12870done
12871
12872
12873for ac_header in malloc.h
12874do
12875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12876if eval "test \"\${$as_ac_Header+set}\" = set"; then
12877 echo "$as_me:$LINENO: checking for $ac_header" >&5
12878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12879if eval "test \"\${$as_ac_Header+set}\" = set"; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12881fi
12882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12884else
12885 # Is the header compilable?
12886echo "$as_me:$LINENO: checking $ac_header usability" >&5
12887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12888cat >conftest.$ac_ext <<_ACEOF
12889/* confdefs.h. */
12890_ACEOF
12891cat confdefs.h >>conftest.$ac_ext
12892cat >>conftest.$ac_ext <<_ACEOF
12893/* end confdefs.h. */
12894$ac_includes_default
12895#include <$ac_header>
12896_ACEOF
12897rm -f conftest.$ac_objext
12898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12899 (eval $ac_compile) 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } &&
dcc1b6ad
VS
12906 { ac_try='test -z "$ac_c_werror_flag"
12907 || test ! -s conftest.err'
a848cd7e
SC
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; } &&
12913 { ac_try='test -s conftest.$ac_objext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 ac_header_compiler=yes
12920else
12921 echo "$as_me: failed program was:" >&5
12922sed 's/^/| /' conftest.$ac_ext >&5
12923
12924ac_header_compiler=no
12925fi
12926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12927echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12928echo "${ECHO_T}$ac_header_compiler" >&6
12929
12930# Is the header present?
12931echo "$as_me:$LINENO: checking $ac_header presence" >&5
12932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12933cat >conftest.$ac_ext <<_ACEOF
12934/* confdefs.h. */
12935_ACEOF
12936cat confdefs.h >>conftest.$ac_ext
12937cat >>conftest.$ac_ext <<_ACEOF
12938/* end confdefs.h. */
12939#include <$ac_header>
12940_ACEOF
12941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12943 ac_status=$?
12944 grep -v '^ *+' conftest.er1 >conftest.err
12945 rm -f conftest.er1
12946 cat conftest.err >&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } >/dev/null; then
12949 if test -s conftest.err; then
12950 ac_cpp_err=$ac_c_preproc_warn_flag
12951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12952 else
12953 ac_cpp_err=
12954 fi
12955else
12956 ac_cpp_err=yes
12957fi
12958if test -z "$ac_cpp_err"; then
12959 ac_header_preproc=yes
12960else
12961 echo "$as_me: failed program was:" >&5
12962sed 's/^/| /' conftest.$ac_ext >&5
12963
12964 ac_header_preproc=no
12965fi
12966rm -f conftest.err conftest.$ac_ext
12967echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12968echo "${ECHO_T}$ac_header_preproc" >&6
12969
12970# So? What about this header?
12971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12972 yes:no: )
12973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12974echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12976echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12977 ac_header_preproc=yes
12978 ;;
12979 no:yes:* )
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12983echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12985echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12987echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12991echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12992 (
12993 cat <<\_ASBOX
12994## ----------------------------------------- ##
12995## Report this to wx-dev@lists.wxwindows.org ##
12996## ----------------------------------------- ##
12997_ASBOX
12998 ) |
12999 sed "s/^/$as_me: WARNING: /" >&2
13000 ;;
13001esac
13002echo "$as_me:$LINENO: checking for $ac_header" >&5
13003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13004if eval "test \"\${$as_ac_Header+set}\" = set"; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006else
13007 eval "$as_ac_Header=\$ac_header_preproc"
13008fi
13009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13011
13012fi
13013if test `eval echo '${'$as_ac_Header'}'` = yes; then
13014 cat >>confdefs.h <<_ACEOF
13015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13016_ACEOF
13017
13018fi
13019
13020done
13021
13022
13023for ac_header in unistd.h
13024do
13025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13026if eval "test \"\${$as_ac_Header+set}\" = set"; then
13027 echo "$as_me:$LINENO: checking for $ac_header" >&5
13028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13029if eval "test \"\${$as_ac_Header+set}\" = set"; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031fi
13032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13034else
13035 # Is the header compilable?
13036echo "$as_me:$LINENO: checking $ac_header usability" >&5
13037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13038cat >conftest.$ac_ext <<_ACEOF
13039/* confdefs.h. */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h. */
13044$ac_includes_default
13045#include <$ac_header>
13046_ACEOF
13047rm -f conftest.$ac_objext
13048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13049 (eval $ac_compile) 2>conftest.er1
13050 ac_status=$?
13051 grep -v '^ *+' conftest.er1 >conftest.err
13052 rm -f conftest.er1
13053 cat conftest.err >&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
dcc1b6ad
VS
13056 { ac_try='test -z "$ac_c_werror_flag"
13057 || test ! -s conftest.err'
a848cd7e
SC
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try='test -s conftest.$ac_objext'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_header_compiler=yes
13070else
13071 echo "$as_me: failed program was:" >&5
13072sed 's/^/| /' conftest.$ac_ext >&5
13073
13074ac_header_compiler=no
13075fi
13076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13077echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13078echo "${ECHO_T}$ac_header_compiler" >&6
13079
13080# Is the header present?
13081echo "$as_me:$LINENO: checking $ac_header presence" >&5
13082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13083cat >conftest.$ac_ext <<_ACEOF
13084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h. */
13089#include <$ac_header>
13090_ACEOF
13091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13093 ac_status=$?
13094 grep -v '^ *+' conftest.er1 >conftest.err
13095 rm -f conftest.er1
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } >/dev/null; then
13099 if test -s conftest.err; then
13100 ac_cpp_err=$ac_c_preproc_warn_flag
13101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13102 else
13103 ac_cpp_err=
13104 fi
13105else
13106 ac_cpp_err=yes
13107fi
13108if test -z "$ac_cpp_err"; then
13109 ac_header_preproc=yes
13110else
13111 echo "$as_me: failed program was:" >&5
13112sed 's/^/| /' conftest.$ac_ext >&5
13113
13114 ac_header_preproc=no
13115fi
13116rm -f conftest.err conftest.$ac_ext
13117echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13118echo "${ECHO_T}$ac_header_preproc" >&6
13119
13120# So? What about this header?
13121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13122 yes:no: )
13123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13127 ac_header_preproc=yes
13128 ;;
13129 no:yes:* )
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13133echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13137echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13142 (
13143 cat <<\_ASBOX
13144## ----------------------------------------- ##
13145## Report this to wx-dev@lists.wxwindows.org ##
13146## ----------------------------------------- ##
13147_ASBOX
13148 ) |
13149 sed "s/^/$as_me: WARNING: /" >&2
13150 ;;
13151esac
13152echo "$as_me:$LINENO: checking for $ac_header" >&5
13153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13154if eval "test \"\${$as_ac_Header+set}\" = set"; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156else
13157 eval "$as_ac_Header=\$ac_header_preproc"
13158fi
13159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13161
13162fi
13163if test `eval echo '${'$as_ac_Header'}'` = yes; then
13164 cat >>confdefs.h <<_ACEOF
13165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13166_ACEOF
13167
13168fi
13169
13170done
13171
13172
13173for ac_header in wchar.h
13174do
13175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13176if eval "test \"\${$as_ac_Header+set}\" = set"; then
13177 echo "$as_me:$LINENO: checking for $ac_header" >&5
13178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13179if eval "test \"\${$as_ac_Header+set}\" = set"; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13181fi
13182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13184else
13185 # Is the header compilable?
13186echo "$as_me:$LINENO: checking $ac_header usability" >&5
13187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13188cat >conftest.$ac_ext <<_ACEOF
13189/* confdefs.h. */
13190_ACEOF
13191cat confdefs.h >>conftest.$ac_ext
13192cat >>conftest.$ac_ext <<_ACEOF
13193/* end confdefs.h. */
13194$ac_includes_default
13195#include <$ac_header>
13196_ACEOF
13197rm -f conftest.$ac_objext
13198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13199 (eval $ac_compile) 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
dcc1b6ad
VS
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
a848cd7e
SC
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest.$ac_objext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_header_compiler=yes
13220else
13221 echo "$as_me: failed program was:" >&5
13222sed 's/^/| /' conftest.$ac_ext >&5
13223
13224ac_header_compiler=no
13225fi
13226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13228echo "${ECHO_T}$ac_header_compiler" >&6
13229
13230# Is the header present?
13231echo "$as_me:$LINENO: checking $ac_header presence" >&5
13232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13233cat >conftest.$ac_ext <<_ACEOF
13234/* confdefs.h. */
13235_ACEOF
13236cat confdefs.h >>conftest.$ac_ext
13237cat >>conftest.$ac_ext <<_ACEOF
13238/* end confdefs.h. */
13239#include <$ac_header>
13240_ACEOF
13241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } >/dev/null; then
13249 if test -s conftest.err; then
13250 ac_cpp_err=$ac_c_preproc_warn_flag
13251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13252 else
13253 ac_cpp_err=
13254 fi
13255else
13256 ac_cpp_err=yes
13257fi
13258if test -z "$ac_cpp_err"; then
13259 ac_header_preproc=yes
13260else
13261 echo "$as_me: failed program was:" >&5
13262sed 's/^/| /' conftest.$ac_ext >&5
13263
13264 ac_header_preproc=no
13265fi
13266rm -f conftest.err conftest.$ac_ext
13267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13268echo "${ECHO_T}$ac_header_preproc" >&6
13269
13270# So? What about this header?
13271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13272 yes:no: )
13273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13277 ac_header_preproc=yes
13278 ;;
13279 no:yes:* )
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13287echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13292 (
13293 cat <<\_ASBOX
13294## ----------------------------------------- ##
13295## Report this to wx-dev@lists.wxwindows.org ##
13296## ----------------------------------------- ##
13297_ASBOX
13298 ) |
13299 sed "s/^/$as_me: WARNING: /" >&2
13300 ;;
13301esac
13302echo "$as_me:$LINENO: checking for $ac_header" >&5
13303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13304if eval "test \"\${$as_ac_Header+set}\" = set"; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306else
13307 eval "$as_ac_Header=\$ac_header_preproc"
13308fi
13309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13311
13312fi
13313if test `eval echo '${'$as_ac_Header'}'` = yes; then
13314 cat >>confdefs.h <<_ACEOF
13315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13316_ACEOF
13317
13318fi
13319
13320done
13321
13322
13323if test "$ac_cv_header_wchar_h" != "yes"; then
13324
13325for ac_header in wcstr.h
13326do
13327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13328if eval "test \"\${$as_ac_Header+set}\" = set"; then
13329 echo "$as_me:$LINENO: checking for $ac_header" >&5
13330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13331if eval "test \"\${$as_ac_Header+set}\" = set"; then
13332 echo $ECHO_N "(cached) $ECHO_C" >&6
13333fi
13334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13336else
13337 # Is the header compilable?
13338echo "$as_me:$LINENO: checking $ac_header usability" >&5
13339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13340cat >conftest.$ac_ext <<_ACEOF
13341/* confdefs.h. */
13342_ACEOF
13343cat confdefs.h >>conftest.$ac_ext
13344cat >>conftest.$ac_ext <<_ACEOF
13345/* end confdefs.h. */
13346$ac_includes_default
13347#include <$ac_header>
13348_ACEOF
13349rm -f conftest.$ac_objext
13350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13351 (eval $ac_compile) 2>conftest.er1
13352 ac_status=$?
13353 grep -v '^ *+' conftest.er1 >conftest.err
13354 rm -f conftest.er1
13355 cat conftest.err >&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
dcc1b6ad
VS
13358 { ac_try='test -z "$ac_c_werror_flag"
13359 || test ! -s conftest.err'
a848cd7e
SC
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; } &&
13365 { ac_try='test -s conftest.$ac_objext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_header_compiler=yes
13372else
13373 echo "$as_me: failed program was:" >&5
13374sed 's/^/| /' conftest.$ac_ext >&5
13375
13376ac_header_compiler=no
13377fi
13378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13380echo "${ECHO_T}$ac_header_compiler" >&6
13381
13382# Is the header present?
13383echo "$as_me:$LINENO: checking $ac_header presence" >&5
13384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13385cat >conftest.$ac_ext <<_ACEOF
13386/* confdefs.h. */
13387_ACEOF
13388cat confdefs.h >>conftest.$ac_ext
13389cat >>conftest.$ac_ext <<_ACEOF
13390/* end confdefs.h. */
13391#include <$ac_header>
13392_ACEOF
13393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13395 ac_status=$?
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } >/dev/null; then
13401 if test -s conftest.err; then
13402 ac_cpp_err=$ac_c_preproc_warn_flag
13403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13404 else
13405 ac_cpp_err=
13406 fi
13407else
13408 ac_cpp_err=yes
13409fi
13410if test -z "$ac_cpp_err"; then
13411 ac_header_preproc=yes
13412else
13413 echo "$as_me: failed program was:" >&5
13414sed 's/^/| /' conftest.$ac_ext >&5
13415
13416 ac_header_preproc=no
13417fi
13418rm -f conftest.err conftest.$ac_ext
13419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13420echo "${ECHO_T}$ac_header_preproc" >&6
13421
13422# So? What about this header?
13423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13424 yes:no: )
13425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13429 ac_header_preproc=yes
13430 ;;
13431 no:yes:* )
13432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13444 (
13445 cat <<\_ASBOX
13446## ----------------------------------------- ##
13447## Report this to wx-dev@lists.wxwindows.org ##
13448## ----------------------------------------- ##
13449_ASBOX
13450 ) |
13451 sed "s/^/$as_me: WARNING: /" >&2
13452 ;;
13453esac
13454echo "$as_me:$LINENO: checking for $ac_header" >&5
13455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13456if eval "test \"\${$as_ac_Header+set}\" = set"; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458else
13459 eval "$as_ac_Header=\$ac_header_preproc"
13460fi
13461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13463
13464fi
13465if test `eval echo '${'$as_ac_Header'}'` = yes; then
13466 cat >>confdefs.h <<_ACEOF
13467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13468_ACEOF
13469
13470fi
13471
13472done
13473
13474fi
13475
13476
13477for ac_header in fnmatch.h
13478do
13479as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13480if eval "test \"\${$as_ac_Header+set}\" = set"; then
13481 echo "$as_me:$LINENO: checking for $ac_header" >&5
13482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13483if eval "test \"\${$as_ac_Header+set}\" = set"; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485fi
13486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13488else
13489 # Is the header compilable?
13490echo "$as_me:$LINENO: checking $ac_header usability" >&5
13491echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13492cat >conftest.$ac_ext <<_ACEOF
13493/* confdefs.h. */
13494_ACEOF
13495cat confdefs.h >>conftest.$ac_ext
13496cat >>conftest.$ac_ext <<_ACEOF
13497/* end confdefs.h. */
13498$ac_includes_default
13499#include <$ac_header>
13500_ACEOF
13501rm -f conftest.$ac_objext
13502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503 (eval $ac_compile) 2>conftest.er1
13504 ac_status=$?
13505 grep -v '^ *+' conftest.er1 >conftest.err
13506 rm -f conftest.er1
13507 cat conftest.err >&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
dcc1b6ad
VS
13510 { ac_try='test -z "$ac_c_werror_flag"
13511 || test ! -s conftest.err'
a848cd7e
SC
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest.$ac_objext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_header_compiler=yes
13524else
13525 echo "$as_me: failed program was:" >&5
13526sed 's/^/| /' conftest.$ac_ext >&5
13527
13528ac_header_compiler=no
13529fi
13530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13531echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13532echo "${ECHO_T}$ac_header_compiler" >&6
13533
13534# Is the header present?
13535echo "$as_me:$LINENO: checking $ac_header presence" >&5
13536echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13537cat >conftest.$ac_ext <<_ACEOF
13538/* confdefs.h. */
13539_ACEOF
13540cat confdefs.h >>conftest.$ac_ext
13541cat >>conftest.$ac_ext <<_ACEOF
13542/* end confdefs.h. */
13543#include <$ac_header>
13544_ACEOF
13545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } >/dev/null; then
13553 if test -s conftest.err; then
13554 ac_cpp_err=$ac_c_preproc_warn_flag
13555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13556 else
13557 ac_cpp_err=
13558 fi
13559else
13560 ac_cpp_err=yes
13561fi
13562if test -z "$ac_cpp_err"; then
13563 ac_header_preproc=yes
13564else
13565 echo "$as_me: failed program was:" >&5
13566sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 ac_header_preproc=no
13569fi
13570rm -f conftest.err conftest.$ac_ext
13571echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13572echo "${ECHO_T}$ac_header_preproc" >&6
13573
13574# So? What about this header?
13575case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13576 yes:no: )
13577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13578echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13580echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13581 ac_header_preproc=yes
13582 ;;
13583 no:yes:* )
13584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13585echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13587echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13589echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13591echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13593echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13595echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13596 (
13597 cat <<\_ASBOX
13598## ----------------------------------------- ##
13599## Report this to wx-dev@lists.wxwindows.org ##
13600## ----------------------------------------- ##
13601_ASBOX
13602 ) |
13603 sed "s/^/$as_me: WARNING: /" >&2
13604 ;;
13605esac
13606echo "$as_me:$LINENO: checking for $ac_header" >&5
13607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13608if eval "test \"\${$as_ac_Header+set}\" = set"; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610else
13611 eval "$as_ac_Header=\$ac_header_preproc"
13612fi
13613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13614echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13615
13616fi
13617if test `eval echo '${'$as_ac_Header'}'` = yes; then
13618 cat >>confdefs.h <<_ACEOF
13619#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13620_ACEOF
13621
13622fi
13623
13624done
13625
13626
13627if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13628
13629for ac_func in fnmatch
13630do
13631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13632echo "$as_me:$LINENO: checking for $ac_func" >&5
13633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13634if eval "test \"\${$as_ac_var+set}\" = set"; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636else
13637 cat >conftest.$ac_ext <<_ACEOF
13638/* confdefs.h. */
13639_ACEOF
13640cat confdefs.h >>conftest.$ac_ext
13641cat >>conftest.$ac_ext <<_ACEOF
13642/* end confdefs.h. */
13643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13645#define $ac_func innocuous_$ac_func
13646
13647/* System header to define __stub macros and hopefully few prototypes,
13648 which can conflict with char $ac_func (); below.
13649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13650 <limits.h> exists even on freestanding compilers. */
13651
13652#ifdef __STDC__
13653# include <limits.h>
13654#else
13655# include <assert.h>
13656#endif
13657
13658#undef $ac_func
13659
13660/* Override any gcc2 internal prototype to avoid an error. */
13661#ifdef __cplusplus
13662extern "C"
13663{
13664#endif
13665/* We use char because int might match the return type of a gcc2
13666 builtin and then its argument prototype would still apply. */
13667char $ac_func ();
13668/* The GNU C library defines this for functions which it implements
13669 to always fail with ENOSYS. Some functions are actually named
13670 something starting with __ and the normal name is an alias. */
13671#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13672choke me
13673#else
13674char (*f) () = $ac_func;
13675#endif
13676#ifdef __cplusplus
13677}
13678#endif
13679
13680int
13681main ()
13682{
13683return f != $ac_func;
13684 ;
13685 return 0;
13686}
13687_ACEOF
13688rm -f conftest.$ac_objext conftest$ac_exeext
13689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690 (eval $ac_link) 2>conftest.er1
13691 ac_status=$?
13692 grep -v '^ *+' conftest.er1 >conftest.err
13693 rm -f conftest.er1
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } &&
dcc1b6ad
VS
13697 { ac_try='test -z "$ac_c_werror_flag"
13698 || test ! -s conftest.err'
a848cd7e
SC
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; } &&
13704 { ac_try='test -s conftest$ac_exeext'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 eval "$as_ac_var=yes"
13711else
13712 echo "$as_me: failed program was:" >&5
13713sed 's/^/| /' conftest.$ac_ext >&5
13714
13715eval "$as_ac_var=no"
13716fi
13717rm -f conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
13719fi
13720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13722if test `eval echo '${'$as_ac_var'}'` = yes; then
13723 cat >>confdefs.h <<_ACEOF
13724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13725_ACEOF
13726
13727fi
13728done
13729
13730fi
13731
13732
13733for ac_header in langinfo.h
13734do
13735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13736if eval "test \"\${$as_ac_Header+set}\" = set"; then
13737 echo "$as_me:$LINENO: checking for $ac_header" >&5
13738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13739if eval "test \"\${$as_ac_Header+set}\" = set"; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13741fi
13742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13744else
13745 # Is the header compilable?
13746echo "$as_me:$LINENO: checking $ac_header usability" >&5
13747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13748cat >conftest.$ac_ext <<_ACEOF
13749/* confdefs.h. */
13750_ACEOF
13751cat confdefs.h >>conftest.$ac_ext
13752cat >>conftest.$ac_ext <<_ACEOF
13753/* end confdefs.h. */
13754$ac_includes_default
13755#include <$ac_header>
13756_ACEOF
13757rm -f conftest.$ac_objext
13758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13759 (eval $ac_compile) 2>conftest.er1
13760 ac_status=$?
13761 grep -v '^ *+' conftest.er1 >conftest.err
13762 rm -f conftest.er1
13763 cat conftest.err >&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
dcc1b6ad
VS
13766 { ac_try='test -z "$ac_c_werror_flag"
13767 || test ! -s conftest.err'
a848cd7e
SC
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; } &&
13773 { ac_try='test -s conftest.$ac_objext'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 ac_header_compiler=yes
13780else
13781 echo "$as_me: failed program was:" >&5
13782sed 's/^/| /' conftest.$ac_ext >&5
13783
13784ac_header_compiler=no
13785fi
13786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13788echo "${ECHO_T}$ac_header_compiler" >&6
13789
13790# Is the header present?
13791echo "$as_me:$LINENO: checking $ac_header presence" >&5
13792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13793cat >conftest.$ac_ext <<_ACEOF
13794/* confdefs.h. */
13795_ACEOF
13796cat confdefs.h >>conftest.$ac_ext
13797cat >>conftest.$ac_ext <<_ACEOF
13798/* end confdefs.h. */
13799#include <$ac_header>
13800_ACEOF
13801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13803 ac_status=$?
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } >/dev/null; then
13809 if test -s conftest.err; then
13810 ac_cpp_err=$ac_c_preproc_warn_flag
13811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13812 else
13813 ac_cpp_err=
13814 fi
13815else
13816 ac_cpp_err=yes
13817fi
13818if test -z "$ac_cpp_err"; then
13819 ac_header_preproc=yes
13820else
13821 echo "$as_me: failed program was:" >&5
13822sed 's/^/| /' conftest.$ac_ext >&5
13823
13824 ac_header_preproc=no
13825fi
13826rm -f conftest.err conftest.$ac_ext
13827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13828echo "${ECHO_T}$ac_header_preproc" >&6
13829
13830# So? What about this header?
13831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13832 yes:no: )
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13837 ac_header_preproc=yes
13838 ;;
13839 no:yes:* )
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13843echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13847echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13852 (
13853 cat <<\_ASBOX
13854## ----------------------------------------- ##
13855## Report this to wx-dev@lists.wxwindows.org ##
13856## ----------------------------------------- ##
13857_ASBOX
13858 ) |
13859 sed "s/^/$as_me: WARNING: /" >&2
13860 ;;
13861esac
13862echo "$as_me:$LINENO: checking for $ac_header" >&5
13863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13864if eval "test \"\${$as_ac_Header+set}\" = set"; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866else
13867 eval "$as_ac_Header=\$ac_header_preproc"
13868fi
13869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13871
13872fi
13873if test `eval echo '${'$as_ac_Header'}'` = yes; then
13874 cat >>confdefs.h <<_ACEOF
13875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13876_ACEOF
13877
13878fi
13879
13880done
13881
13882
13883case "${host}" in
13884 *-pc-os2_emx | *-pc-os2-emx )
13885 if test $ac_cv_header_langinfo_h = "yes"; then
13886 LIBS="$LIBS -lintl"
13887 fi
13888 ;;
13889esac
13890
13891if test "$wxUSE_GUI" = "yes"; then
13892 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13893
13894for ac_header in X11/Xlib.h
13895do
13896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13897if eval "test \"\${$as_ac_Header+set}\" = set"; then
13898 echo "$as_me:$LINENO: checking for $ac_header" >&5
13899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13900if eval "test \"\${$as_ac_Header+set}\" = set"; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902fi
13903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13905else
13906 # Is the header compilable?
13907echo "$as_me:$LINENO: checking $ac_header usability" >&5
13908echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13909cat >conftest.$ac_ext <<_ACEOF
13910/* confdefs.h. */
13911_ACEOF
13912cat confdefs.h >>conftest.$ac_ext
13913cat >>conftest.$ac_ext <<_ACEOF
13914/* end confdefs.h. */
13915$ac_includes_default
13916#include <$ac_header>
13917_ACEOF
13918rm -f conftest.$ac_objext
13919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13920 (eval $ac_compile) 2>conftest.er1
13921 ac_status=$?
13922 grep -v '^ *+' conftest.er1 >conftest.err
13923 rm -f conftest.er1
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
dcc1b6ad
VS
13927 { ac_try='test -z "$ac_c_werror_flag"
13928 || test ! -s conftest.err'
a848cd7e
SC
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; } &&
13934 { ac_try='test -s conftest.$ac_objext'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13940 ac_header_compiler=yes
13941else
13942 echo "$as_me: failed program was:" >&5
13943sed 's/^/| /' conftest.$ac_ext >&5
13944
13945ac_header_compiler=no
13946fi
13947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13949echo "${ECHO_T}$ac_header_compiler" >&6
13950
13951# Is the header present?
13952echo "$as_me:$LINENO: checking $ac_header presence" >&5
13953echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13954cat >conftest.$ac_ext <<_ACEOF
13955/* confdefs.h. */
13956_ACEOF
13957cat confdefs.h >>conftest.$ac_ext
13958cat >>conftest.$ac_ext <<_ACEOF
13959/* end confdefs.h. */
13960#include <$ac_header>
13961_ACEOF
13962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13964 ac_status=$?
13965 grep -v '^ *+' conftest.er1 >conftest.err
13966 rm -f conftest.er1
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } >/dev/null; then
13970 if test -s conftest.err; then
13971 ac_cpp_err=$ac_c_preproc_warn_flag
13972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13973 else
13974 ac_cpp_err=
13975 fi
13976else
13977 ac_cpp_err=yes
13978fi
13979if test -z "$ac_cpp_err"; then
13980 ac_header_preproc=yes
13981else
13982 echo "$as_me: failed program was:" >&5
13983sed 's/^/| /' conftest.$ac_ext >&5
13984
13985 ac_header_preproc=no
13986fi
13987rm -f conftest.err conftest.$ac_ext
13988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13989echo "${ECHO_T}$ac_header_preproc" >&6
13990
13991# So? What about this header?
13992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13993 yes:no: )
13994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13995echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13997echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13998 ac_header_preproc=yes
13999 ;;
14000 no:yes:* )
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14002echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14004echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14006echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14008echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14012echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14013 (
14014 cat <<\_ASBOX
14015## ----------------------------------------- ##
14016## Report this to wx-dev@lists.wxwindows.org ##
14017## ----------------------------------------- ##
14018_ASBOX
14019 ) |
14020 sed "s/^/$as_me: WARNING: /" >&2
14021 ;;
14022esac
14023echo "$as_me:$LINENO: checking for $ac_header" >&5
14024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14025if eval "test \"\${$as_ac_Header+set}\" = set"; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14027else
14028 eval "$as_ac_Header=\$ac_header_preproc"
14029fi
14030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14032
14033fi
14034if test `eval echo '${'$as_ac_Header'}'` = yes; then
14035 cat >>confdefs.h <<_ACEOF
14036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14037_ACEOF
14038
14039fi
14040
14041done
14042
14043
14044for ac_header in X11/XKBlib.h
14045do
14046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14047echo "$as_me:$LINENO: checking for $ac_header" >&5
14048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14049if eval "test \"\${$as_ac_Header+set}\" = set"; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14051else
14052 cat >conftest.$ac_ext <<_ACEOF
14053/* confdefs.h. */
14054_ACEOF
14055cat confdefs.h >>conftest.$ac_ext
14056cat >>conftest.$ac_ext <<_ACEOF
14057/* end confdefs.h. */
14058
14059 #if HAVE_X11_XLIB_H
14060 #include <X11/Xlib.h>
14061 #endif
14062
14063
14064#include <$ac_header>
14065_ACEOF
14066rm -f conftest.$ac_objext
14067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14068 (eval $ac_compile) 2>conftest.er1
14069 ac_status=$?
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } &&
dcc1b6ad
VS
14075 { ac_try='test -z "$ac_c_werror_flag"
14076 || test ! -s conftest.err'
a848cd7e
SC
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest.$ac_objext'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }; then
14088 eval "$as_ac_Header=yes"
14089else
14090 echo "$as_me: failed program was:" >&5
14091sed 's/^/| /' conftest.$ac_ext >&5
14092
14093eval "$as_ac_Header=no"
14094fi
14095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14096fi
14097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14099if test `eval echo '${'$as_ac_Header'}'` = yes; then
14100 cat >>confdefs.h <<_ACEOF
14101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14102_ACEOF
14103
14104fi
14105
14106done
14107
14108 fi
14109fi
14110
14111
14112echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14113echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14114if test "${ac_cv_c_const+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14116else
14117 cat >conftest.$ac_ext <<_ACEOF
14118/* confdefs.h. */
14119_ACEOF
14120cat confdefs.h >>conftest.$ac_ext
14121cat >>conftest.$ac_ext <<_ACEOF
14122/* end confdefs.h. */
14123
14124int
14125main ()
14126{
14127/* FIXME: Include the comments suggested by Paul. */
14128#ifndef __cplusplus
14129 /* Ultrix mips cc rejects this. */
14130 typedef int charset[2];
14131 const charset x;
14132 /* SunOS 4.1.1 cc rejects this. */
14133 char const *const *ccp;
14134 char **p;
14135 /* NEC SVR4.0.2 mips cc rejects this. */
14136 struct point {int x, y;};
14137 static struct point const zero = {0,0};
14138 /* AIX XL C 1.02.0.0 rejects this.
14139 It does not let you subtract one const X* pointer from another in
14140 an arm of an if-expression whose if-part is not a constant
14141 expression */
14142 const char *g = "string";
14143 ccp = &g + (g ? g-g : 0);
14144 /* HPUX 7.0 cc rejects these. */
14145 ++ccp;
14146 p = (char**) ccp;
14147 ccp = (char const *const *) p;
14148 { /* SCO 3.2v4 cc rejects this. */
14149 char *t;
14150 char const *s = 0 ? (char *) 0 : (char const *) 0;
14151
14152 *t++ = 0;
14153 }
14154 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14155 int x[] = {25, 17};
14156 const int *foo = &x[0];
14157 ++foo;
14158 }
14159 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14160 typedef const int *iptr;
14161 iptr p = 0;
14162 ++p;
14163 }
14164 { /* AIX XL C 1.02.0.0 rejects this saying
14165 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14166 struct s { int j; const int *ap[3]; };
14167 struct s *b; b->j = 5;
14168 }
14169 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14170 const int foo = 10;
14171 }
14172#endif
14173
14174 ;
14175 return 0;
14176}
14177_ACEOF
14178rm -f conftest.$ac_objext
14179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14180 (eval $ac_compile) 2>conftest.er1
14181 ac_status=$?
14182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
dcc1b6ad
VS
14187 { ac_try='test -z "$ac_c_werror_flag"
14188 || test ! -s conftest.err'
a848cd7e
SC
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14191 ac_status=$?
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; } &&
14194 { ac_try='test -s conftest.$ac_objext'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 ac_cv_c_const=yes
14201else
14202 echo "$as_me: failed program was:" >&5
14203sed 's/^/| /' conftest.$ac_ext >&5
14204
14205ac_cv_c_const=no
14206fi
14207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14208fi
14209echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14210echo "${ECHO_T}$ac_cv_c_const" >&6
14211if test $ac_cv_c_const = no; then
14212
14213cat >>confdefs.h <<\_ACEOF
14214#define const
14215_ACEOF
14216
14217fi
14218
14219echo "$as_me:$LINENO: checking for inline" >&5
14220echo $ECHO_N "checking for inline... $ECHO_C" >&6
14221if test "${ac_cv_c_inline+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14223else
14224 ac_cv_c_inline=no
14225for ac_kw in inline __inline__ __inline; do
14226 cat >conftest.$ac_ext <<_ACEOF
14227/* confdefs.h. */
14228_ACEOF
14229cat confdefs.h >>conftest.$ac_ext
14230cat >>conftest.$ac_ext <<_ACEOF
14231/* end confdefs.h. */
14232#ifndef __cplusplus
14233typedef int foo_t;
14234static $ac_kw foo_t static_foo () {return 0; }
14235$ac_kw foo_t foo () {return 0; }
14236#endif
14237
14238_ACEOF
14239rm -f conftest.$ac_objext
14240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>conftest.er1
14242 ac_status=$?
14243 grep -v '^ *+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
dcc1b6ad
VS
14248 { ac_try='test -z "$ac_c_werror_flag"
14249 || test ! -s conftest.err'
a848cd7e
SC
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_cv_c_inline=$ac_kw; break
14262else
14263 echo "$as_me: failed program was:" >&5
14264sed 's/^/| /' conftest.$ac_ext >&5
14265
14266fi
14267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14268done
14269
14270fi
14271echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14272echo "${ECHO_T}$ac_cv_c_inline" >&6
14273
14274
14275case $ac_cv_c_inline in
14276 inline | yes) ;;
14277 *)
14278 case $ac_cv_c_inline in
14279 no) ac_val=;;
14280 *) ac_val=$ac_cv_c_inline;;
14281 esac
14282 cat >>confdefs.h <<_ACEOF
14283#ifndef __cplusplus
14284#define inline $ac_val
14285#endif
14286_ACEOF
14287 ;;
14288esac
14289
14290
14291echo "$as_me:$LINENO: checking for char" >&5
14292echo $ECHO_N "checking for char... $ECHO_C" >&6
14293if test "${ac_cv_type_char+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14295else
14296 cat >conftest.$ac_ext <<_ACEOF
14297/* confdefs.h. */
14298_ACEOF
14299cat confdefs.h >>conftest.$ac_ext
14300cat >>conftest.$ac_ext <<_ACEOF
14301/* end confdefs.h. */
14302$ac_includes_default
14303int
14304main ()
14305{
14306if ((char *) 0)
14307 return 0;
14308if (sizeof (char))
14309 return 0;
14310 ;
14311 return 0;
14312}
14313_ACEOF
14314rm -f conftest.$ac_objext
14315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14316 (eval $ac_compile) 2>conftest.er1
14317 ac_status=$?
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
dcc1b6ad
VS
14323 { ac_try='test -z "$ac_c_werror_flag"
14324 || test ! -s conftest.err'
a848cd7e
SC
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; } &&
14330 { ac_try='test -s conftest.$ac_objext'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_cv_type_char=yes
14337else
14338 echo "$as_me: failed program was:" >&5
14339sed 's/^/| /' conftest.$ac_ext >&5
14340
14341ac_cv_type_char=no
14342fi
14343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14344fi
14345echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14346echo "${ECHO_T}$ac_cv_type_char" >&6
14347
14348echo "$as_me:$LINENO: checking size of char" >&5
14349echo $ECHO_N "checking size of char... $ECHO_C" >&6
14350if test "${ac_cv_sizeof_char+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14352else
14353 if test "$ac_cv_type_char" = yes; then
14354 # The cast to unsigned long works around a bug in the HP C Compiler
14355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14357 # This bug is HP SR number 8606223364.
14358 if test "$cross_compiling" = yes; then
14359 # Depending upon the size, compute the lo and hi bounds.
14360cat >conftest.$ac_ext <<_ACEOF
14361/* confdefs.h. */
14362_ACEOF
14363cat confdefs.h >>conftest.$ac_ext
14364cat >>conftest.$ac_ext <<_ACEOF
14365/* end confdefs.h. */
14366$ac_includes_default
14367int
14368main ()
14369{
14370static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14371test_array [0] = 0
14372
14373 ;
14374 return 0;
14375}
14376_ACEOF
14377rm -f conftest.$ac_objext
14378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379 (eval $ac_compile) 2>conftest.er1
14380 ac_status=$?
14381 grep -v '^ *+' conftest.er1 >conftest.err
14382 rm -f conftest.er1
14383 cat conftest.err >&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } &&
dcc1b6ad
VS
14386 { ac_try='test -z "$ac_c_werror_flag"
14387 || test ! -s conftest.err'
a848cd7e
SC
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; } &&
14393 { ac_try='test -s conftest.$ac_objext'
14394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395 (eval $ac_try) 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14399 ac_lo=0 ac_mid=0
14400 while :; do
14401 cat >conftest.$ac_ext <<_ACEOF
14402/* confdefs.h. */
14403_ACEOF
14404cat confdefs.h >>conftest.$ac_ext
14405cat >>conftest.$ac_ext <<_ACEOF
14406/* end confdefs.h. */
14407$ac_includes_default
14408int
14409main ()
14410{
14411static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14412test_array [0] = 0
14413
14414 ;
14415 return 0;
14416}
14417_ACEOF
14418rm -f conftest.$ac_objext
14419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14420 (eval $ac_compile) 2>conftest.er1
14421 ac_status=$?
14422 grep -v '^ *+' conftest.er1 >conftest.err
14423 rm -f conftest.er1
14424 cat conftest.err >&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } &&
dcc1b6ad
VS
14427 { ac_try='test -z "$ac_c_werror_flag"
14428 || test ! -s conftest.err'
a848cd7e
SC
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; } &&
14434 { ac_try='test -s conftest.$ac_objext'
14435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436 (eval $ac_try) 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
14440 ac_hi=$ac_mid; break
14441else
14442 echo "$as_me: failed program was:" >&5
14443sed 's/^/| /' conftest.$ac_ext >&5
14444
14445ac_lo=`expr $ac_mid + 1`
14446 if test $ac_lo -le $ac_mid; then
14447 ac_lo= ac_hi=
14448 break
14449 fi
14450 ac_mid=`expr 2 '*' $ac_mid + 1`
14451fi
14452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14453 done
14454else
14455 echo "$as_me: failed program was:" >&5
14456sed 's/^/| /' conftest.$ac_ext >&5
14457
14458cat >conftest.$ac_ext <<_ACEOF
14459/* confdefs.h. */
14460_ACEOF
14461cat confdefs.h >>conftest.$ac_ext
14462cat >>conftest.$ac_ext <<_ACEOF
14463/* end confdefs.h. */
14464$ac_includes_default
14465int
14466main ()
14467{
14468static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14469test_array [0] = 0
14470
14471 ;
14472 return 0;
14473}
14474_ACEOF
14475rm -f conftest.$ac_objext
14476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>conftest.er1
14478 ac_status=$?
14479 grep -v '^ *+' conftest.er1 >conftest.err
14480 rm -f conftest.er1
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
dcc1b6ad
VS
14484 { ac_try='test -z "$ac_c_werror_flag"
14485 || test ! -s conftest.err'
a848cd7e
SC
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_hi=-1 ac_mid=-1
14498 while :; do
14499 cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
14505$ac_includes_default
14506int
14507main ()
14508{
14509static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14510test_array [0] = 0
14511
14512 ;
14513 return 0;
14514}
14515_ACEOF
14516rm -f conftest.$ac_objext
14517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518 (eval $ac_compile) 2>conftest.er1
14519 ac_status=$?
14520 grep -v '^ *+' conftest.er1 >conftest.err
14521 rm -f conftest.er1
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
dcc1b6ad
VS
14525 { ac_try='test -z "$ac_c_werror_flag"
14526 || test ! -s conftest.err'
a848cd7e
SC
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest.$ac_objext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 ac_lo=$ac_mid; break
14539else
14540 echo "$as_me: failed program was:" >&5
14541sed 's/^/| /' conftest.$ac_ext >&5
14542
14543ac_hi=`expr '(' $ac_mid ')' - 1`
14544 if test $ac_mid -le $ac_hi; then
14545 ac_lo= ac_hi=
14546 break
14547 fi
14548 ac_mid=`expr 2 '*' $ac_mid`
14549fi
14550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14551 done
14552else
14553 echo "$as_me: failed program was:" >&5
14554sed 's/^/| /' conftest.$ac_ext >&5
14555
14556ac_lo= ac_hi=
14557fi
14558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14559fi
14560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14561# Binary search between lo and hi bounds.
14562while test "x$ac_lo" != "x$ac_hi"; do
14563 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14564 cat >conftest.$ac_ext <<_ACEOF
14565/* confdefs.h. */
14566_ACEOF
14567cat confdefs.h >>conftest.$ac_ext
14568cat >>conftest.$ac_ext <<_ACEOF
14569/* end confdefs.h. */
14570$ac_includes_default
14571int
14572main ()
14573{
14574static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14575test_array [0] = 0
14576
14577 ;
14578 return 0;
14579}
14580_ACEOF
14581rm -f conftest.$ac_objext
14582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14583 (eval $ac_compile) 2>conftest.er1
14584 ac_status=$?
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
dcc1b6ad
VS
14590 { ac_try='test -z "$ac_c_werror_flag"
14591 || test ! -s conftest.err'
a848cd7e
SC
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest.$ac_objext'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603 ac_hi=$ac_mid
14604else
14605 echo "$as_me: failed program was:" >&5
14606sed 's/^/| /' conftest.$ac_ext >&5
14607
14608ac_lo=`expr '(' $ac_mid ')' + 1`
14609fi
14610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14611done
14612case $ac_lo in
14613?*) ac_cv_sizeof_char=$ac_lo;;
14614'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14615See \`config.log' for more details." >&5
14616echo "$as_me: error: cannot compute sizeof (char), 77
14617See \`config.log' for more details." >&2;}
14618 { (exit 1); exit 1; }; } ;;
14619esac
14620else
14621 if test "$cross_compiling" = yes; then
14622 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14623See \`config.log' for more details." >&5
14624echo "$as_me: error: cannot run test program while cross compiling
14625See \`config.log' for more details." >&2;}
14626 { (exit 1); exit 1; }; }
14627else
14628 cat >conftest.$ac_ext <<_ACEOF
14629/* confdefs.h. */
14630_ACEOF
14631cat confdefs.h >>conftest.$ac_ext
14632cat >>conftest.$ac_ext <<_ACEOF
14633/* end confdefs.h. */
14634$ac_includes_default
14635long longval () { return (long) (sizeof (char)); }
14636unsigned long ulongval () { return (long) (sizeof (char)); }
14637#include <stdio.h>
14638#include <stdlib.h>
14639int
14640main ()
14641{
14642
14643 FILE *f = fopen ("conftest.val", "w");
14644 if (! f)
14645 exit (1);
14646 if (((long) (sizeof (char))) < 0)
14647 {
14648 long i = longval ();
14649 if (i != ((long) (sizeof (char))))
14650 exit (1);
14651 fprintf (f, "%ld\n", i);
14652 }
14653 else
14654 {
14655 unsigned long i = ulongval ();
14656 if (i != ((long) (sizeof (char))))
14657 exit (1);
14658 fprintf (f, "%lu\n", i);
14659 }
14660 exit (ferror (f) || fclose (f) != 0);
14661
14662 ;
14663 return 0;
14664}
14665_ACEOF
14666rm -f conftest$ac_exeext
14667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14668 (eval $ac_link) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14677 ac_cv_sizeof_char=`cat conftest.val`
14678else
14679 echo "$as_me: program exited with status $ac_status" >&5
14680echo "$as_me: failed program was:" >&5
14681sed 's/^/| /' conftest.$ac_ext >&5
14682
14683( exit $ac_status )
14684{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14685See \`config.log' for more details." >&5
14686echo "$as_me: error: cannot compute sizeof (char), 77
14687See \`config.log' for more details." >&2;}
14688 { (exit 1); exit 1; }; }
14689fi
14690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14691fi
14692fi
14693rm -f conftest.val
14694else
14695 ac_cv_sizeof_char=0
14696fi
14697fi
14698echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14699echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14700cat >>confdefs.h <<_ACEOF
14701#define SIZEOF_CHAR $ac_cv_sizeof_char
14702_ACEOF
14703
14704
14705echo "$as_me:$LINENO: checking for short" >&5
14706echo $ECHO_N "checking for short... $ECHO_C" >&6
14707if test "${ac_cv_type_short+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14709else
14710 cat >conftest.$ac_ext <<_ACEOF
14711/* confdefs.h. */
14712_ACEOF
14713cat confdefs.h >>conftest.$ac_ext
14714cat >>conftest.$ac_ext <<_ACEOF
14715/* end confdefs.h. */
14716$ac_includes_default
14717int
14718main ()
14719{
14720if ((short *) 0)
14721 return 0;
14722if (sizeof (short))
14723 return 0;
14724 ;
14725 return 0;
14726}
14727_ACEOF
14728rm -f conftest.$ac_objext
14729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14730 (eval $ac_compile) 2>conftest.er1
14731 ac_status=$?
14732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
dcc1b6ad
VS
14737 { ac_try='test -z "$ac_c_werror_flag"
14738 || test ! -s conftest.err'
a848cd7e
SC
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; } &&
14744 { ac_try='test -s conftest.$ac_objext'
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14747 ac_status=$?
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14750 ac_cv_type_short=yes
14751else
14752 echo "$as_me: failed program was:" >&5
14753sed 's/^/| /' conftest.$ac_ext >&5
14754
14755ac_cv_type_short=no
14756fi
14757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14758fi
14759echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14760echo "${ECHO_T}$ac_cv_type_short" >&6
14761
14762echo "$as_me:$LINENO: checking size of short" >&5
14763echo $ECHO_N "checking size of short... $ECHO_C" >&6
14764if test "${ac_cv_sizeof_short+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766else
14767 if test "$ac_cv_type_short" = yes; then
14768 # The cast to unsigned long works around a bug in the HP C Compiler
14769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14771 # This bug is HP SR number 8606223364.
14772 if test "$cross_compiling" = yes; then
14773 # Depending upon the size, compute the lo and hi bounds.
14774cat >conftest.$ac_ext <<_ACEOF
14775/* confdefs.h. */
14776_ACEOF
14777cat confdefs.h >>conftest.$ac_ext
14778cat >>conftest.$ac_ext <<_ACEOF
14779/* end confdefs.h. */
14780$ac_includes_default
14781int
14782main ()
14783{
14784static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14785test_array [0] = 0
14786
14787 ;
14788 return 0;
14789}
14790_ACEOF
14791rm -f conftest.$ac_objext
14792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793 (eval $ac_compile) 2>conftest.er1
14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
dcc1b6ad
VS
14800 { ac_try='test -z "$ac_c_werror_flag"
14801 || test ! -s conftest.err'
a848cd7e
SC
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 ac_lo=0 ac_mid=0
14814 while :; do
14815 cat >conftest.$ac_ext <<_ACEOF
14816/* confdefs.h. */
14817_ACEOF
14818cat confdefs.h >>conftest.$ac_ext
14819cat >>conftest.$ac_ext <<_ACEOF
14820/* end confdefs.h. */
14821$ac_includes_default
14822int
14823main ()
14824{
14825static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14826test_array [0] = 0
14827
14828 ;
14829 return 0;
14830}
14831_ACEOF
14832rm -f conftest.$ac_objext
14833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14834 (eval $ac_compile) 2>conftest.er1
14835 ac_status=$?
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
dcc1b6ad
VS
14841 { ac_try='test -z "$ac_c_werror_flag"
14842 || test ! -s conftest.err'
a848cd7e
SC
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; } &&
14848 { ac_try='test -s conftest.$ac_objext'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_hi=$ac_mid; break
14855else
14856 echo "$as_me: failed program was:" >&5
14857sed 's/^/| /' conftest.$ac_ext >&5
14858
14859ac_lo=`expr $ac_mid + 1`
14860 if test $ac_lo -le $ac_mid; then
14861 ac_lo= ac_hi=
14862 break
14863 fi
14864 ac_mid=`expr 2 '*' $ac_mid + 1`
14865fi
14866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14867 done
14868else
14869 echo "$as_me: failed program was:" >&5
14870sed 's/^/| /' conftest.$ac_ext >&5
14871
14872cat >conftest.$ac_ext <<_ACEOF
14873/* confdefs.h. */
14874_ACEOF
14875cat confdefs.h >>conftest.$ac_ext
14876cat >>conftest.$ac_ext <<_ACEOF
14877/* end confdefs.h. */
14878$ac_includes_default
14879int
14880main ()
14881{
14882static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14883test_array [0] = 0
14884
14885 ;
14886 return 0;
14887}
14888_ACEOF
14889rm -f conftest.$ac_objext
14890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14891 (eval $ac_compile) 2>conftest.er1
14892 ac_status=$?
14893 grep -v '^ *+' conftest.er1 >conftest.err
14894 rm -f conftest.er1
14895 cat conftest.err >&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
dcc1b6ad
VS
14898 { ac_try='test -z "$ac_c_werror_flag"
14899 || test ! -s conftest.err'
a848cd7e
SC
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } &&
14905 { ac_try='test -s conftest.$ac_objext'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 ac_hi=-1 ac_mid=-1
14912 while :; do
14913 cat >conftest.$ac_ext <<_ACEOF
14914/* confdefs.h. */
14915_ACEOF
14916cat confdefs.h >>conftest.$ac_ext
14917cat >>conftest.$ac_ext <<_ACEOF
14918/* end confdefs.h. */
14919$ac_includes_default
14920int
14921main ()
14922{
14923static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14924test_array [0] = 0
14925
14926 ;
14927 return 0;
14928}
14929_ACEOF
14930rm -f conftest.$ac_objext
14931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14932 (eval $ac_compile) 2>conftest.er1
14933 ac_status=$?
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
dcc1b6ad
VS
14939 { ac_try='test -z "$ac_c_werror_flag"
14940 || test ! -s conftest.err'
a848cd7e
SC
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; } &&
14946 { ac_try='test -s conftest.$ac_objext'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 ac_lo=$ac_mid; break
14953else
14954 echo "$as_me: failed program was:" >&5
14955sed 's/^/| /' conftest.$ac_ext >&5
14956
14957ac_hi=`expr '(' $ac_mid ')' - 1`
14958 if test $ac_mid -le $ac_hi; then
14959 ac_lo= ac_hi=
14960 break
14961 fi
14962 ac_mid=`expr 2 '*' $ac_mid`
14963fi
14964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14965 done
14966else
14967 echo "$as_me: failed program was:" >&5
14968sed 's/^/| /' conftest.$ac_ext >&5
14969
14970ac_lo= ac_hi=
14971fi
14972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14973fi
14974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14975# Binary search between lo and hi bounds.
14976while test "x$ac_lo" != "x$ac_hi"; do
14977 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14978 cat >conftest.$ac_ext <<_ACEOF
14979/* confdefs.h. */
14980_ACEOF
14981cat confdefs.h >>conftest.$ac_ext
14982cat >>conftest.$ac_ext <<_ACEOF
14983/* end confdefs.h. */
14984$ac_includes_default
14985int
14986main ()
14987{
14988static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14989test_array [0] = 0
14990
14991 ;
14992 return 0;
14993}
14994_ACEOF
14995rm -f conftest.$ac_objext
14996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14997 (eval $ac_compile) 2>conftest.er1
14998 ac_status=$?
14999 grep -v '^ *+' conftest.er1 >conftest.err
15000 rm -f conftest.er1
15001 cat conftest.err >&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
dcc1b6ad
VS
15004 { ac_try='test -z "$ac_c_werror_flag"
15005 || test ! -s conftest.err'
a848cd7e
SC
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest.$ac_objext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_hi=$ac_mid
15018else
15019 echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022ac_lo=`expr '(' $ac_mid ')' + 1`
15023fi
15024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15025done
15026case $ac_lo in
15027?*) ac_cv_sizeof_short=$ac_lo;;
15028'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15029See \`config.log' for more details." >&5
15030echo "$as_me: error: cannot compute sizeof (short), 77
15031See \`config.log' for more details." >&2;}
15032 { (exit 1); exit 1; }; } ;;
15033esac
15034else
15035 if test "$cross_compiling" = yes; then
15036 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15037See \`config.log' for more details." >&5
15038echo "$as_me: error: cannot run test program while cross compiling
15039See \`config.log' for more details." >&2;}
15040 { (exit 1); exit 1; }; }
15041else
15042 cat >conftest.$ac_ext <<_ACEOF
15043/* confdefs.h. */
15044_ACEOF
15045cat confdefs.h >>conftest.$ac_ext
15046cat >>conftest.$ac_ext <<_ACEOF
15047/* end confdefs.h. */
15048$ac_includes_default
15049long longval () { return (long) (sizeof (short)); }
15050unsigned long ulongval () { return (long) (sizeof (short)); }
15051#include <stdio.h>
15052#include <stdlib.h>
15053int
15054main ()
15055{
15056
15057 FILE *f = fopen ("conftest.val", "w");
15058 if (! f)
15059 exit (1);
15060 if (((long) (sizeof (short))) < 0)
15061 {
15062 long i = longval ();
15063 if (i != ((long) (sizeof (short))))
15064 exit (1);
15065 fprintf (f, "%ld\n", i);
15066 }
15067 else
15068 {
15069 unsigned long i = ulongval ();
15070 if (i != ((long) (sizeof (short))))
15071 exit (1);
15072 fprintf (f, "%lu\n", i);
15073 }
15074 exit (ferror (f) || fclose (f) != 0);
15075
15076 ;
15077 return 0;
15078}
15079_ACEOF
15080rm -f conftest$ac_exeext
15081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082 (eval $ac_link) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; }; then
15091 ac_cv_sizeof_short=`cat conftest.val`
15092else
15093 echo "$as_me: program exited with status $ac_status" >&5
15094echo "$as_me: failed program was:" >&5
15095sed 's/^/| /' conftest.$ac_ext >&5
15096
15097( exit $ac_status )
15098{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15099See \`config.log' for more details." >&5
15100echo "$as_me: error: cannot compute sizeof (short), 77
15101See \`config.log' for more details." >&2;}
15102 { (exit 1); exit 1; }; }
15103fi
15104rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15105fi
15106fi
15107rm -f conftest.val
15108else
15109 ac_cv_sizeof_short=0
15110fi
15111fi
15112echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15113echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15114cat >>confdefs.h <<_ACEOF
15115#define SIZEOF_SHORT $ac_cv_sizeof_short
15116_ACEOF
15117
15118
15119echo "$as_me:$LINENO: checking for void *" >&5
15120echo $ECHO_N "checking for void *... $ECHO_C" >&6
15121if test "${ac_cv_type_void_p+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15123else
15124 cat >conftest.$ac_ext <<_ACEOF
15125/* confdefs.h. */
15126_ACEOF
15127cat confdefs.h >>conftest.$ac_ext
15128cat >>conftest.$ac_ext <<_ACEOF
15129/* end confdefs.h. */
15130$ac_includes_default
15131int
15132main ()
15133{
15134if ((void * *) 0)
15135 return 0;
15136if (sizeof (void *))
15137 return 0;
15138 ;
15139 return 0;
15140}
15141_ACEOF
15142rm -f conftest.$ac_objext
15143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
dcc1b6ad
VS
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
a848cd7e
SC
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest.$ac_objext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_cv_type_void_p=yes
15165else
15166 echo "$as_me: failed program was:" >&5
15167sed 's/^/| /' conftest.$ac_ext >&5
15168
15169ac_cv_type_void_p=no
15170fi
15171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15172fi
15173echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15174echo "${ECHO_T}$ac_cv_type_void_p" >&6
15175
15176echo "$as_me:$LINENO: checking size of void *" >&5
15177echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15178if test "${ac_cv_sizeof_void_p+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15180else
15181 if test "$ac_cv_type_void_p" = yes; then
15182 # The cast to unsigned long works around a bug in the HP C Compiler
15183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15185 # This bug is HP SR number 8606223364.
15186 if test "$cross_compiling" = yes; then
15187 # Depending upon the size, compute the lo and hi bounds.
15188cat >conftest.$ac_ext <<_ACEOF
15189/* confdefs.h. */
15190_ACEOF
15191cat confdefs.h >>conftest.$ac_ext
15192cat >>conftest.$ac_ext <<_ACEOF
15193/* end confdefs.h. */
15194$ac_includes_default
15195int
15196main ()
15197{
15198static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15199test_array [0] = 0
15200
15201 ;
15202 return 0;
15203}
15204_ACEOF
15205rm -f conftest.$ac_objext
15206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15207 (eval $ac_compile) 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
dcc1b6ad
VS
15214 { ac_try='test -z "$ac_c_werror_flag"
15215 || test ! -s conftest.err'
a848cd7e
SC
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; } &&
15221 { ac_try='test -s conftest.$ac_objext'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15227 ac_lo=0 ac_mid=0
15228 while :; do
15229 cat >conftest.$ac_ext <<_ACEOF
15230/* confdefs.h. */
15231_ACEOF
15232cat confdefs.h >>conftest.$ac_ext
15233cat >>conftest.$ac_ext <<_ACEOF
15234/* end confdefs.h. */
15235$ac_includes_default
15236int
15237main ()
15238{
15239static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15240test_array [0] = 0
15241
15242 ;
15243 return 0;
15244}
15245_ACEOF
15246rm -f conftest.$ac_objext
15247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15248 (eval $ac_compile) 2>conftest.er1
15249 ac_status=$?
15250 grep -v '^ *+' conftest.er1 >conftest.err
15251 rm -f conftest.er1
15252 cat conftest.err >&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
dcc1b6ad
VS
15255 { ac_try='test -z "$ac_c_werror_flag"
15256 || test ! -s conftest.err'
a848cd7e
SC
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; } &&
15262 { ac_try='test -s conftest.$ac_objext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 ac_hi=$ac_mid; break
15269else
15270 echo "$as_me: failed program was:" >&5
15271sed 's/^/| /' conftest.$ac_ext >&5
15272
15273ac_lo=`expr $ac_mid + 1`
15274 if test $ac_lo -le $ac_mid; then
15275 ac_lo= ac_hi=
15276 break
15277 fi
15278 ac_mid=`expr 2 '*' $ac_mid + 1`
15279fi
15280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15281 done
15282else
15283 echo "$as_me: failed program was:" >&5
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
15286cat >conftest.$ac_ext <<_ACEOF
15287/* confdefs.h. */
15288_ACEOF
15289cat confdefs.h >>conftest.$ac_ext
15290cat >>conftest.$ac_ext <<_ACEOF
15291/* end confdefs.h. */
15292$ac_includes_default
15293int
15294main ()
15295{
15296static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15297test_array [0] = 0
15298
15299 ;
15300 return 0;
15301}
15302_ACEOF
15303rm -f conftest.$ac_objext
15304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15305 (eval $ac_compile) 2>conftest.er1
15306 ac_status=$?
15307 grep -v '^ *+' conftest.er1 >conftest.err
15308 rm -f conftest.er1
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
dcc1b6ad
VS
15312 { ac_try='test -z "$ac_c_werror_flag"
15313 || test ! -s conftest.err'
a848cd7e
SC
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15316 ac_status=$?
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; } &&
15319 { ac_try='test -s conftest.$ac_objext'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; }; then
15325 ac_hi=-1 ac_mid=-1
15326 while :; do
15327 cat >conftest.$ac_ext <<_ACEOF
15328/* confdefs.h. */
15329_ACEOF
15330cat confdefs.h >>conftest.$ac_ext
15331cat >>conftest.$ac_ext <<_ACEOF
15332/* end confdefs.h. */
15333$ac_includes_default
15334int
15335main ()
15336{
15337static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15338test_array [0] = 0
15339
15340 ;
15341 return 0;
15342}
15343_ACEOF
15344rm -f conftest.$ac_objext
15345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15346 (eval $ac_compile) 2>conftest.er1
15347 ac_status=$?
15348 grep -v '^ *+' conftest.er1 >conftest.err
15349 rm -f conftest.er1
15350 cat conftest.err >&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
dcc1b6ad
VS
15353 { ac_try='test -z "$ac_c_werror_flag"
15354 || test ! -s conftest.err'
a848cd7e
SC
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; } &&
15360 { ac_try='test -s conftest.$ac_objext'
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15366 ac_lo=$ac_mid; break
15367else
15368 echo "$as_me: failed program was:" >&5
15369sed 's/^/| /' conftest.$ac_ext >&5
15370
15371ac_hi=`expr '(' $ac_mid ')' - 1`
15372 if test $ac_mid -le $ac_hi; then
15373 ac_lo= ac_hi=
15374 break
15375 fi
15376 ac_mid=`expr 2 '*' $ac_mid`
15377fi
15378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15379 done
15380else
15381 echo "$as_me: failed program was:" >&5
15382sed 's/^/| /' conftest.$ac_ext >&5
15383
15384ac_lo= ac_hi=
15385fi
15386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15387fi
15388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15389# Binary search between lo and hi bounds.
15390while test "x$ac_lo" != "x$ac_hi"; do
15391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15392 cat >conftest.$ac_ext <<_ACEOF
15393/* confdefs.h. */
15394_ACEOF
15395cat confdefs.h >>conftest.$ac_ext
15396cat >>conftest.$ac_ext <<_ACEOF
15397/* end confdefs.h. */
15398$ac_includes_default
15399int
15400main ()
15401{
15402static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15403test_array [0] = 0
15404
15405 ;
15406 return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext
15410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>conftest.er1
15412 ac_status=$?
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
dcc1b6ad
VS
15418 { ac_try='test -z "$ac_c_werror_flag"
15419 || test ! -s conftest.err'
a848cd7e
SC
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try='test -s conftest.$ac_objext'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 ac_hi=$ac_mid
15432else
15433 echo "$as_me: failed program was:" >&5
15434sed 's/^/| /' conftest.$ac_ext >&5
15435
15436ac_lo=`expr '(' $ac_mid ')' + 1`
15437fi
15438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15439done
15440case $ac_lo in
15441?*) ac_cv_sizeof_void_p=$ac_lo;;
15442'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15443See \`config.log' for more details." >&5
15444echo "$as_me: error: cannot compute sizeof (void *), 77
15445See \`config.log' for more details." >&2;}
15446 { (exit 1); exit 1; }; } ;;
15447esac
15448else
15449 if test "$cross_compiling" = yes; then
15450 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15451See \`config.log' for more details." >&5
15452echo "$as_me: error: cannot run test program while cross compiling
15453See \`config.log' for more details." >&2;}
15454 { (exit 1); exit 1; }; }
15455else
15456 cat >conftest.$ac_ext <<_ACEOF
15457/* confdefs.h. */
15458_ACEOF
15459cat confdefs.h >>conftest.$ac_ext
15460cat >>conftest.$ac_ext <<_ACEOF
15461/* end confdefs.h. */
15462$ac_includes_default
15463long longval () { return (long) (sizeof (void *)); }
15464unsigned long ulongval () { return (long) (sizeof (void *)); }
15465#include <stdio.h>
15466#include <stdlib.h>
15467int
15468main ()
15469{
15470
15471 FILE *f = fopen ("conftest.val", "w");
15472 if (! f)
15473 exit (1);
15474 if (((long) (sizeof (void *))) < 0)
15475 {
15476 long i = longval ();
15477 if (i != ((long) (sizeof (void *))))
15478 exit (1);
15479 fprintf (f, "%ld\n", i);
15480 }
15481 else
15482 {
15483 unsigned long i = ulongval ();
15484 if (i != ((long) (sizeof (void *))))
15485 exit (1);
15486 fprintf (f, "%lu\n", i);
15487 }
15488 exit (ferror (f) || fclose (f) != 0);
15489
15490 ;
15491 return 0;
15492}
15493_ACEOF
15494rm -f conftest$ac_exeext
15495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15496 (eval $ac_link) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505 ac_cv_sizeof_void_p=`cat conftest.val`
15506else
15507 echo "$as_me: program exited with status $ac_status" >&5
15508echo "$as_me: failed program was:" >&5
15509sed 's/^/| /' conftest.$ac_ext >&5
15510
15511( exit $ac_status )
15512{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15513See \`config.log' for more details." >&5
15514echo "$as_me: error: cannot compute sizeof (void *), 77
15515See \`config.log' for more details." >&2;}
15516 { (exit 1); exit 1; }; }
15517fi
15518rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15519fi
15520fi
15521rm -f conftest.val
15522else
15523 ac_cv_sizeof_void_p=0
15524fi
15525fi
15526echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15527echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15528cat >>confdefs.h <<_ACEOF
15529#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15530_ACEOF
15531
15532
15533echo "$as_me:$LINENO: checking for int" >&5
15534echo $ECHO_N "checking for int... $ECHO_C" >&6
15535if test "${ac_cv_type_int+set}" = set; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15537else
15538 cat >conftest.$ac_ext <<_ACEOF
15539/* confdefs.h. */
15540_ACEOF
15541cat confdefs.h >>conftest.$ac_ext
15542cat >>conftest.$ac_ext <<_ACEOF
15543/* end confdefs.h. */
15544$ac_includes_default
15545int
15546main ()
15547{
15548if ((int *) 0)
15549 return 0;
15550if (sizeof (int))
15551 return 0;
15552 ;
15553 return 0;
15554}
15555_ACEOF
15556rm -f conftest.$ac_objext
15557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15558 (eval $ac_compile) 2>conftest.er1
15559 ac_status=$?
15560 grep -v '^ *+' conftest.er1 >conftest.err
15561 rm -f conftest.er1
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
dcc1b6ad
VS
15565 { ac_try='test -z "$ac_c_werror_flag"
15566 || test ! -s conftest.err'
a848cd7e
SC
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; } &&
15572 { ac_try='test -s conftest.$ac_objext'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578 ac_cv_type_int=yes
15579else
15580 echo "$as_me: failed program was:" >&5
15581sed 's/^/| /' conftest.$ac_ext >&5
15582
15583ac_cv_type_int=no
15584fi
15585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15586fi
15587echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15588echo "${ECHO_T}$ac_cv_type_int" >&6
15589
15590echo "$as_me:$LINENO: checking size of int" >&5
15591echo $ECHO_N "checking size of int... $ECHO_C" >&6
15592if test "${ac_cv_sizeof_int+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594else
15595 if test "$ac_cv_type_int" = yes; then
15596 # The cast to unsigned long works around a bug in the HP C Compiler
15597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15599 # This bug is HP SR number 8606223364.
15600 if test "$cross_compiling" = yes; then
15601 # Depending upon the size, compute the lo and hi bounds.
15602cat >conftest.$ac_ext <<_ACEOF
15603/* confdefs.h. */
15604_ACEOF
15605cat confdefs.h >>conftest.$ac_ext
15606cat >>conftest.$ac_ext <<_ACEOF
15607/* end confdefs.h. */
15608$ac_includes_default
15609int
15610main ()
15611{
15612static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15613test_array [0] = 0
15614
15615 ;
15616 return 0;
15617}
15618_ACEOF
15619rm -f conftest.$ac_objext
15620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15621 (eval $ac_compile) 2>conftest.er1
15622 ac_status=$?
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
dcc1b6ad
VS
15628 { ac_try='test -z "$ac_c_werror_flag"
15629 || test ! -s conftest.err'
a848cd7e
SC
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest.$ac_objext'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_lo=0 ac_mid=0
15642 while :; do
15643 cat >conftest.$ac_ext <<_ACEOF
15644/* confdefs.h. */
15645_ACEOF
15646cat confdefs.h >>conftest.$ac_ext
15647cat >>conftest.$ac_ext <<_ACEOF
15648/* end confdefs.h. */
15649$ac_includes_default
15650int
15651main ()
15652{
15653static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15654test_array [0] = 0
15655
15656 ;
15657 return 0;
15658}
15659_ACEOF
15660rm -f conftest.$ac_objext
15661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15662 (eval $ac_compile) 2>conftest.er1
15663 ac_status=$?
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
dcc1b6ad
VS
15669 { ac_try='test -z "$ac_c_werror_flag"
15670 || test ! -s conftest.err'
a848cd7e
SC
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; } &&
15676 { ac_try='test -s conftest.$ac_objext'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 ac_hi=$ac_mid; break
15683else
15684 echo "$as_me: failed program was:" >&5
15685sed 's/^/| /' conftest.$ac_ext >&5
15686
15687ac_lo=`expr $ac_mid + 1`
15688 if test $ac_lo -le $ac_mid; then
15689 ac_lo= ac_hi=
15690 break
15691 fi
15692 ac_mid=`expr 2 '*' $ac_mid + 1`
15693fi
15694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15695 done
15696else
15697 echo "$as_me: failed program was:" >&5
15698sed 's/^/| /' conftest.$ac_ext >&5
15699
15700cat >conftest.$ac_ext <<_ACEOF
15701/* confdefs.h. */
15702_ACEOF
15703cat confdefs.h >>conftest.$ac_ext
15704cat >>conftest.$ac_ext <<_ACEOF
15705/* end confdefs.h. */
15706$ac_includes_default
15707int
15708main ()
15709{
15710static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15711test_array [0] = 0
15712
15713 ;
15714 return 0;
15715}
15716_ACEOF
15717rm -f conftest.$ac_objext
15718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15719 (eval $ac_compile) 2>conftest.er1
15720 ac_status=$?
15721 grep -v '^ *+' conftest.er1 >conftest.err
15722 rm -f conftest.er1
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
dcc1b6ad
VS
15726 { ac_try='test -z "$ac_c_werror_flag"
15727 || test ! -s conftest.err'
a848cd7e
SC
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15730 ac_status=$?
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; } &&
15733 { ac_try='test -s conftest.$ac_objext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_hi=-1 ac_mid=-1
15740 while :; do
15741 cat >conftest.$ac_ext <<_ACEOF
15742/* confdefs.h. */
15743_ACEOF
15744cat confdefs.h >>conftest.$ac_ext
15745cat >>conftest.$ac_ext <<_ACEOF
15746/* end confdefs.h. */
15747$ac_includes_default
15748int
15749main ()
15750{
15751static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15752test_array [0] = 0
15753
15754 ;
15755 return 0;
15756}
15757_ACEOF
15758rm -f conftest.$ac_objext
15759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15760 (eval $ac_compile) 2>conftest.er1
15761 ac_status=$?
15762 grep -v '^ *+' conftest.er1 >conftest.err
15763 rm -f conftest.er1
15764 cat conftest.err >&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } &&
dcc1b6ad
VS
15767 { ac_try='test -z "$ac_c_werror_flag"
15768 || test ! -s conftest.err'
a848cd7e
SC
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; } &&
15774 { ac_try='test -s conftest.$ac_objext'
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; }; then
15780 ac_lo=$ac_mid; break
15781else
15782 echo "$as_me: failed program was:" >&5
15783sed 's/^/| /' conftest.$ac_ext >&5
15784
15785ac_hi=`expr '(' $ac_mid ')' - 1`
15786 if test $ac_mid -le $ac_hi; then
15787 ac_lo= ac_hi=
15788 break
15789 fi
15790 ac_mid=`expr 2 '*' $ac_mid`
15791fi
15792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15793 done
15794else
15795 echo "$as_me: failed program was:" >&5
15796sed 's/^/| /' conftest.$ac_ext >&5
15797
15798ac_lo= ac_hi=
15799fi
15800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15801fi
15802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15803# Binary search between lo and hi bounds.
15804while test "x$ac_lo" != "x$ac_hi"; do
15805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15806 cat >conftest.$ac_ext <<_ACEOF
15807/* confdefs.h. */
15808_ACEOF
15809cat confdefs.h >>conftest.$ac_ext
15810cat >>conftest.$ac_ext <<_ACEOF
15811/* end confdefs.h. */
15812$ac_includes_default
15813int
15814main ()
15815{
15816static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15817test_array [0] = 0
15818
15819 ;
15820 return 0;
15821}
15822_ACEOF
15823rm -f conftest.$ac_objext
15824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15825 (eval $ac_compile) 2>conftest.er1
15826 ac_status=$?
15827 grep -v '^ *+' conftest.er1 >conftest.err
15828 rm -f conftest.er1
15829 cat conftest.err >&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } &&
dcc1b6ad
VS
15832 { ac_try='test -z "$ac_c_werror_flag"
15833 || test ! -s conftest.err'
a848cd7e
SC
15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; } &&
15839 { ac_try='test -s conftest.$ac_objext'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }; then
15845 ac_hi=$ac_mid
15846else
15847 echo "$as_me: failed program was:" >&5
15848sed 's/^/| /' conftest.$ac_ext >&5
15849
15850ac_lo=`expr '(' $ac_mid ')' + 1`
15851fi
15852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15853done
15854case $ac_lo in
15855?*) ac_cv_sizeof_int=$ac_lo;;
15856'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15857See \`config.log' for more details." >&5
15858echo "$as_me: error: cannot compute sizeof (int), 77
15859See \`config.log' for more details." >&2;}
15860 { (exit 1); exit 1; }; } ;;
15861esac
15862else
15863 if test "$cross_compiling" = yes; then
15864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15865See \`config.log' for more details." >&5
15866echo "$as_me: error: cannot run test program while cross compiling
15867See \`config.log' for more details." >&2;}
15868 { (exit 1); exit 1; }; }
15869else
15870 cat >conftest.$ac_ext <<_ACEOF
15871/* confdefs.h. */
15872_ACEOF
15873cat confdefs.h >>conftest.$ac_ext
15874cat >>conftest.$ac_ext <<_ACEOF
15875/* end confdefs.h. */
15876$ac_includes_default
15877long longval () { return (long) (sizeof (int)); }
15878unsigned long ulongval () { return (long) (sizeof (int)); }
15879#include <stdio.h>
15880#include <stdlib.h>
15881int
15882main ()
15883{
15884
15885 FILE *f = fopen ("conftest.val", "w");
15886 if (! f)
15887 exit (1);
15888 if (((long) (sizeof (int))) < 0)
15889 {
15890 long i = longval ();
15891 if (i != ((long) (sizeof (int))))
15892 exit (1);
15893 fprintf (f, "%ld\n", i);
15894 }
15895 else
15896 {
15897 unsigned long i = ulongval ();
15898 if (i != ((long) (sizeof (int))))
15899 exit (1);
15900 fprintf (f, "%lu\n", i);
15901 }
15902 exit (ferror (f) || fclose (f) != 0);
15903
15904 ;
15905 return 0;
15906}
15907_ACEOF
15908rm -f conftest$ac_exeext
15909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15910 (eval $ac_link) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_cv_sizeof_int=`cat conftest.val`
15920else
15921 echo "$as_me: program exited with status $ac_status" >&5
15922echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925( exit $ac_status )
15926{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15927See \`config.log' for more details." >&5
15928echo "$as_me: error: cannot compute sizeof (int), 77
15929See \`config.log' for more details." >&2;}
15930 { (exit 1); exit 1; }; }
15931fi
15932rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15933fi
15934fi
15935rm -f conftest.val
15936else
15937 ac_cv_sizeof_int=0
15938fi
15939fi
15940echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15941echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15942cat >>confdefs.h <<_ACEOF
15943#define SIZEOF_INT $ac_cv_sizeof_int
15944_ACEOF
15945
15946
15947echo "$as_me:$LINENO: checking for long" >&5
15948echo $ECHO_N "checking for long... $ECHO_C" >&6
15949if test "${ac_cv_type_long+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951else
15952 cat >conftest.$ac_ext <<_ACEOF
15953/* confdefs.h. */
15954_ACEOF
15955cat confdefs.h >>conftest.$ac_ext
15956cat >>conftest.$ac_ext <<_ACEOF
15957/* end confdefs.h. */
15958$ac_includes_default
15959int
15960main ()
15961{
15962if ((long *) 0)
15963 return 0;
15964if (sizeof (long))
15965 return 0;
15966 ;
15967 return 0;
15968}
15969_ACEOF
15970rm -f conftest.$ac_objext
15971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15972 (eval $ac_compile) 2>conftest.er1
15973 ac_status=$?
15974 grep -v '^ *+' conftest.er1 >conftest.err
15975 rm -f conftest.er1
15976 cat conftest.err >&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } &&
dcc1b6ad
VS
15979 { ac_try='test -z "$ac_c_werror_flag"
15980 || test ! -s conftest.err'
a848cd7e
SC
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15983 ac_status=$?
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; } &&
15986 { ac_try='test -s conftest.$ac_objext'
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15992 ac_cv_type_long=yes
15993else
15994 echo "$as_me: failed program was:" >&5
15995sed 's/^/| /' conftest.$ac_ext >&5
15996
15997ac_cv_type_long=no
15998fi
15999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16000fi
16001echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16002echo "${ECHO_T}$ac_cv_type_long" >&6
16003
16004echo "$as_me:$LINENO: checking size of long" >&5
16005echo $ECHO_N "checking size of long... $ECHO_C" >&6
16006if test "${ac_cv_sizeof_long+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16008else
16009 if test "$ac_cv_type_long" = yes; then
16010 # The cast to unsigned long works around a bug in the HP C Compiler
16011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16013 # This bug is HP SR number 8606223364.
16014 if test "$cross_compiling" = yes; then
16015 # Depending upon the size, compute the lo and hi bounds.
16016cat >conftest.$ac_ext <<_ACEOF
16017/* confdefs.h. */
16018_ACEOF
16019cat confdefs.h >>conftest.$ac_ext
16020cat >>conftest.$ac_ext <<_ACEOF
16021/* end confdefs.h. */
16022$ac_includes_default
16023int
16024main ()
16025{
16026static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16027test_array [0] = 0
16028
16029 ;
16030 return 0;
16031}
16032_ACEOF
16033rm -f conftest.$ac_objext
16034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16035 (eval $ac_compile) 2>conftest.er1
16036 ac_status=$?
16037 grep -v '^ *+' conftest.er1 >conftest.err
16038 rm -f conftest.er1
16039 cat conftest.err >&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
dcc1b6ad
VS
16042 { ac_try='test -z "$ac_c_werror_flag"
16043 || test ! -s conftest.err'
a848cd7e
SC
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16046 ac_status=$?
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; } &&
16049 { ac_try='test -s conftest.$ac_objext'
16050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051 (eval $ac_try) 2>&5
16052 ac_status=$?
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; }; then
16055 ac_lo=0 ac_mid=0
16056 while :; do
16057 cat >conftest.$ac_ext <<_ACEOF
16058/* confdefs.h. */
16059_ACEOF
16060cat confdefs.h >>conftest.$ac_ext
16061cat >>conftest.$ac_ext <<_ACEOF
16062/* end confdefs.h. */
16063$ac_includes_default
16064int
16065main ()
16066{
16067static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16068test_array [0] = 0
16069
16070 ;
16071 return 0;
16072}
16073_ACEOF
16074rm -f conftest.$ac_objext
16075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16076 (eval $ac_compile) 2>conftest.er1
16077 ac_status=$?
16078 grep -v '^ *+' conftest.er1 >conftest.err
16079 rm -f conftest.er1
16080 cat conftest.err >&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } &&
dcc1b6ad
VS
16083 { ac_try='test -z "$ac_c_werror_flag"
16084 || test ! -s conftest.err'
a848cd7e
SC
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest.$ac_objext'
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096 ac_hi=$ac_mid; break
16097else
16098 echo "$as_me: failed program was:" >&5
16099sed 's/^/| /' conftest.$ac_ext >&5
16100
16101ac_lo=`expr $ac_mid + 1`
16102 if test $ac_lo -le $ac_mid; then
16103 ac_lo= ac_hi=
16104 break
16105 fi
16106 ac_mid=`expr 2 '*' $ac_mid + 1`
16107fi
16108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16109 done
16110else
16111 echo "$as_me: failed program was:" >&5
16112sed 's/^/| /' conftest.$ac_ext >&5
16113
16114cat >conftest.$ac_ext <<_ACEOF
16115/* confdefs.h. */
16116_ACEOF
16117cat confdefs.h >>conftest.$ac_ext
16118cat >>conftest.$ac_ext <<_ACEOF
16119/* end confdefs.h. */
16120$ac_includes_default
16121int
16122main ()
16123{
16124static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16125test_array [0] = 0
16126
16127 ;
16128 return 0;
16129}
16130_ACEOF
16131rm -f conftest.$ac_objext
16132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16133 (eval $ac_compile) 2>conftest.er1
16134 ac_status=$?
16135 grep -v '^ *+' conftest.er1 >conftest.err
16136 rm -f conftest.er1
16137 cat conftest.err >&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } &&
dcc1b6ad
VS
16140 { ac_try='test -z "$ac_c_werror_flag"
16141 || test ! -s conftest.err'
a848cd7e
SC
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } &&
16147 { ac_try='test -s conftest.$ac_objext'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16153 ac_hi=-1 ac_mid=-1
16154 while :; do
16155 cat >conftest.$ac_ext <<_ACEOF
16156/* confdefs.h. */
16157_ACEOF
16158cat confdefs.h >>conftest.$ac_ext
16159cat >>conftest.$ac_ext <<_ACEOF
16160/* end confdefs.h. */
16161$ac_includes_default
16162int
16163main ()
16164{
16165static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16166test_array [0] = 0
16167
16168 ;
16169 return 0;
16170}
16171_ACEOF
16172rm -f conftest.$ac_objext
16173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16174 (eval $ac_compile) 2>conftest.er1
16175 ac_status=$?
16176 grep -v '^ *+' conftest.er1 >conftest.err
16177 rm -f conftest.er1
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
dcc1b6ad
VS
16181 { ac_try='test -z "$ac_c_werror_flag"
16182 || test ! -s conftest.err'
a848cd7e
SC
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16185 ac_status=$?
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try='test -s conftest.$ac_objext'
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
16194 ac_lo=$ac_mid; break
16195else
16196 echo "$as_me: failed program was:" >&5
16197sed 's/^/| /' conftest.$ac_ext >&5
16198
16199ac_hi=`expr '(' $ac_mid ')' - 1`
16200 if test $ac_mid -le $ac_hi; then
16201 ac_lo= ac_hi=
16202 break
16203 fi
16204 ac_mid=`expr 2 '*' $ac_mid`
16205fi
16206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16207 done
16208else
16209 echo "$as_me: failed program was:" >&5
16210sed 's/^/| /' conftest.$ac_ext >&5
16211
16212ac_lo= ac_hi=
16213fi
16214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16215fi
16216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16217# Binary search between lo and hi bounds.
16218while test "x$ac_lo" != "x$ac_hi"; do
16219 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16220 cat >conftest.$ac_ext <<_ACEOF
16221/* confdefs.h. */
16222_ACEOF
16223cat confdefs.h >>conftest.$ac_ext
16224cat >>conftest.$ac_ext <<_ACEOF
16225/* end confdefs.h. */
16226$ac_includes_default
16227int
16228main ()
16229{
16230static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16231test_array [0] = 0
16232
16233 ;
16234 return 0;
16235}
16236_ACEOF
16237rm -f conftest.$ac_objext
16238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16239 (eval $ac_compile) 2>conftest.er1
16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
dcc1b6ad
VS
16246 { ac_try='test -z "$ac_c_werror_flag"
16247 || test ! -s conftest.err'
a848cd7e
SC
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest.$ac_objext'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 ac_hi=$ac_mid
16260else
16261 echo "$as_me: failed program was:" >&5
16262sed 's/^/| /' conftest.$ac_ext >&5
16263
16264ac_lo=`expr '(' $ac_mid ')' + 1`
16265fi
16266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16267done
16268case $ac_lo in
16269?*) ac_cv_sizeof_long=$ac_lo;;
16270'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16271See \`config.log' for more details." >&5
16272echo "$as_me: error: cannot compute sizeof (long), 77
16273See \`config.log' for more details." >&2;}
16274 { (exit 1); exit 1; }; } ;;
16275esac
16276else
16277 if test "$cross_compiling" = yes; then
16278 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16279See \`config.log' for more details." >&5
16280echo "$as_me: error: cannot run test program while cross compiling
16281See \`config.log' for more details." >&2;}
16282 { (exit 1); exit 1; }; }
16283else
16284 cat >conftest.$ac_ext <<_ACEOF
16285/* confdefs.h. */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h. */
16290$ac_includes_default
16291long longval () { return (long) (sizeof (long)); }
16292unsigned long ulongval () { return (long) (sizeof (long)); }
16293#include <stdio.h>
16294#include <stdlib.h>
16295int
16296main ()
16297{
16298
16299 FILE *f = fopen ("conftest.val", "w");
16300 if (! f)
16301 exit (1);
16302 if (((long) (sizeof (long))) < 0)
16303 {
16304 long i = longval ();
16305 if (i != ((long) (sizeof (long))))
16306 exit (1);
16307 fprintf (f, "%ld\n", i);
16308 }
16309 else
16310 {
16311 unsigned long i = ulongval ();
16312 if (i != ((long) (sizeof (long))))
16313 exit (1);
16314 fprintf (f, "%lu\n", i);
16315 }
16316 exit (ferror (f) || fclose (f) != 0);
16317
16318 ;
16319 return 0;
16320}
16321_ACEOF
16322rm -f conftest$ac_exeext
16323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16324 (eval $ac_link) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16330 ac_status=$?
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; }; then
16333 ac_cv_sizeof_long=`cat conftest.val`
16334else
16335 echo "$as_me: program exited with status $ac_status" >&5
16336echo "$as_me: failed program was:" >&5
16337sed 's/^/| /' conftest.$ac_ext >&5
16338
16339( exit $ac_status )
16340{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16341See \`config.log' for more details." >&5
16342echo "$as_me: error: cannot compute sizeof (long), 77
16343See \`config.log' for more details." >&2;}
16344 { (exit 1); exit 1; }; }
16345fi
16346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16347fi
16348fi
16349rm -f conftest.val
16350else
16351 ac_cv_sizeof_long=0
16352fi
16353fi
16354echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16355echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16356cat >>confdefs.h <<_ACEOF
16357#define SIZEOF_LONG $ac_cv_sizeof_long
16358_ACEOF
16359
16360
16361echo "$as_me:$LINENO: checking for size_t" >&5
16362echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16363if test "${ac_cv_type_size_t+set}" = set; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16365else
16366 cat >conftest.$ac_ext <<_ACEOF
16367/* confdefs.h. */
16368_ACEOF
16369cat confdefs.h >>conftest.$ac_ext
16370cat >>conftest.$ac_ext <<_ACEOF
16371/* end confdefs.h. */
16372$ac_includes_default
16373int
16374main ()
16375{
16376if ((size_t *) 0)
16377 return 0;
16378if (sizeof (size_t))
16379 return 0;
16380 ;
16381 return 0;
16382}
16383_ACEOF
16384rm -f conftest.$ac_objext
16385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16386 (eval $ac_compile) 2>conftest.er1
16387 ac_status=$?
16388 grep -v '^ *+' conftest.er1 >conftest.err
16389 rm -f conftest.er1
16390 cat conftest.err >&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } &&
dcc1b6ad
VS
16393 { ac_try='test -z "$ac_c_werror_flag"
16394 || test ! -s conftest.err'
a848cd7e
SC
16395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16396 (eval $ac_try) 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } &&
16400 { ac_try='test -s conftest.$ac_objext'
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; }; then
16406 ac_cv_type_size_t=yes
16407else
16408 echo "$as_me: failed program was:" >&5
16409sed 's/^/| /' conftest.$ac_ext >&5
16410
16411ac_cv_type_size_t=no
16412fi
16413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16414fi
16415echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16416echo "${ECHO_T}$ac_cv_type_size_t" >&6
16417
16418echo "$as_me:$LINENO: checking size of size_t" >&5
16419echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16420if test "${ac_cv_sizeof_size_t+set}" = set; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16422else
16423 if test "$ac_cv_type_size_t" = yes; then
16424 # The cast to unsigned long works around a bug in the HP C Compiler
16425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16427 # This bug is HP SR number 8606223364.
16428 if test "$cross_compiling" = yes; then
16429 # Depending upon the size, compute the lo and hi bounds.
16430cat >conftest.$ac_ext <<_ACEOF
16431/* confdefs.h. */
16432_ACEOF
16433cat confdefs.h >>conftest.$ac_ext
16434cat >>conftest.$ac_ext <<_ACEOF
16435/* end confdefs.h. */
16436$ac_includes_default
16437int
16438main ()
16439{
16440static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16441test_array [0] = 0
16442
16443 ;
16444 return 0;
16445}
16446_ACEOF
16447rm -f conftest.$ac_objext
16448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16449 (eval $ac_compile) 2>conftest.er1
16450 ac_status=$?
16451 grep -v '^ *+' conftest.er1 >conftest.err
16452 rm -f conftest.er1
16453 cat conftest.err >&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); } &&
dcc1b6ad
VS
16456 { ac_try='test -z "$ac_c_werror_flag"
16457 || test ! -s conftest.err'
a848cd7e
SC
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; } &&
16463 { ac_try='test -s conftest.$ac_objext'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_lo=0 ac_mid=0
16470 while :; do
16471 cat >conftest.$ac_ext <<_ACEOF
16472/* confdefs.h. */
16473_ACEOF
16474cat confdefs.h >>conftest.$ac_ext
16475cat >>conftest.$ac_ext <<_ACEOF
16476/* end confdefs.h. */
16477$ac_includes_default
16478int
16479main ()
16480{
16481static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16482test_array [0] = 0
16483
16484 ;
16485 return 0;
16486}
16487_ACEOF
16488rm -f conftest.$ac_objext
16489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16490 (eval $ac_compile) 2>conftest.er1
16491 ac_status=$?
16492 grep -v '^ *+' conftest.er1 >conftest.err
16493 rm -f conftest.er1
16494 cat conftest.err >&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } &&
dcc1b6ad
VS
16497 { ac_try='test -z "$ac_c_werror_flag"
16498 || test ! -s conftest.err'
a848cd7e
SC
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; } &&
16504 { ac_try='test -s conftest.$ac_objext'
16505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506 (eval $ac_try) 2>&5
16507 ac_status=$?
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; }; then
16510 ac_hi=$ac_mid; break
16511else
16512 echo "$as_me: failed program was:" >&5
16513sed 's/^/| /' conftest.$ac_ext >&5
16514
16515ac_lo=`expr $ac_mid + 1`
16516 if test $ac_lo -le $ac_mid; then
16517 ac_lo= ac_hi=
16518 break
16519 fi
16520 ac_mid=`expr 2 '*' $ac_mid + 1`
16521fi
16522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16523 done
16524else
16525 echo "$as_me: failed program was:" >&5
16526sed 's/^/| /' conftest.$ac_ext >&5
16527
16528cat >conftest.$ac_ext <<_ACEOF
16529/* confdefs.h. */
16530_ACEOF
16531cat confdefs.h >>conftest.$ac_ext
16532cat >>conftest.$ac_ext <<_ACEOF
16533/* end confdefs.h. */
16534$ac_includes_default
16535int
16536main ()
16537{
16538static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16539test_array [0] = 0
16540
16541 ;
16542 return 0;
16543}
16544_ACEOF
16545rm -f conftest.$ac_objext
16546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16547 (eval $ac_compile) 2>conftest.er1
16548 ac_status=$?
16549 grep -v '^ *+' conftest.er1 >conftest.err
16550 rm -f conftest.er1
16551 cat conftest.err >&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
dcc1b6ad
VS
16554 { ac_try='test -z "$ac_c_werror_flag"
16555 || test ! -s conftest.err'
a848cd7e
SC
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } &&
16561 { ac_try='test -s conftest.$ac_objext'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 ac_hi=-1 ac_mid=-1
16568 while :; do
16569 cat >conftest.$ac_ext <<_ACEOF
16570/* confdefs.h. */
16571_ACEOF
16572cat confdefs.h >>conftest.$ac_ext
16573cat >>conftest.$ac_ext <<_ACEOF
16574/* end confdefs.h. */
16575$ac_includes_default
16576int
16577main ()
16578{
16579static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16580test_array [0] = 0
16581
16582 ;
16583 return 0;
16584}
16585_ACEOF
16586rm -f conftest.$ac_objext
16587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16588 (eval $ac_compile) 2>conftest.er1
16589 ac_status=$?
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
dcc1b6ad
VS
16595 { ac_try='test -z "$ac_c_werror_flag"
16596 || test ! -s conftest.err'
a848cd7e
SC
16597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16598 (eval $ac_try) 2>&5
16599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try='test -s conftest.$ac_objext'
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 ac_lo=$ac_mid; break
16609else
16610 echo "$as_me: failed program was:" >&5
16611sed 's/^/| /' conftest.$ac_ext >&5
16612
16613ac_hi=`expr '(' $ac_mid ')' - 1`
16614 if test $ac_mid -le $ac_hi; then
16615 ac_lo= ac_hi=
16616 break
16617 fi
16618 ac_mid=`expr 2 '*' $ac_mid`
16619fi
16620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16621 done
16622else
16623 echo "$as_me: failed program was:" >&5
16624sed 's/^/| /' conftest.$ac_ext >&5
16625
16626ac_lo= ac_hi=
16627fi
16628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16629fi
16630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16631# Binary search between lo and hi bounds.
16632while test "x$ac_lo" != "x$ac_hi"; do
16633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16634 cat >conftest.$ac_ext <<_ACEOF
16635/* confdefs.h. */
16636_ACEOF
16637cat confdefs.h >>conftest.$ac_ext
16638cat >>conftest.$ac_ext <<_ACEOF
16639/* end confdefs.h. */
16640$ac_includes_default
16641int
16642main ()
16643{
16644static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16645test_array [0] = 0
16646
16647 ;
16648 return 0;
16649}
16650_ACEOF
16651rm -f conftest.$ac_objext
16652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16653 (eval $ac_compile) 2>conftest.er1
16654 ac_status=$?
16655 grep -v '^ *+' conftest.er1 >conftest.err
16656 rm -f conftest.er1
16657 cat conftest.err >&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
dcc1b6ad
VS
16660 { ac_try='test -z "$ac_c_werror_flag"
16661 || test ! -s conftest.err'
a848cd7e
SC
16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663 (eval $ac_try) 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; } &&
16667 { ac_try='test -s conftest.$ac_objext'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_hi=$ac_mid
16674else
16675 echo "$as_me: failed program was:" >&5
16676sed 's/^/| /' conftest.$ac_ext >&5
16677
16678ac_lo=`expr '(' $ac_mid ')' + 1`
16679fi
16680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16681done
16682case $ac_lo in
16683?*) ac_cv_sizeof_size_t=$ac_lo;;
16684'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16685See \`config.log' for more details." >&5
16686echo "$as_me: error: cannot compute sizeof (size_t), 77
16687See \`config.log' for more details." >&2;}
16688 { (exit 1); exit 1; }; } ;;
16689esac
16690else
16691 if test "$cross_compiling" = yes; then
16692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16693See \`config.log' for more details." >&5
16694echo "$as_me: error: cannot run test program while cross compiling
16695See \`config.log' for more details." >&2;}
16696 { (exit 1); exit 1; }; }
16697else
16698 cat >conftest.$ac_ext <<_ACEOF
16699/* confdefs.h. */
16700_ACEOF
16701cat confdefs.h >>conftest.$ac_ext
16702cat >>conftest.$ac_ext <<_ACEOF
16703/* end confdefs.h. */
16704$ac_includes_default
16705long longval () { return (long) (sizeof (size_t)); }
16706unsigned long ulongval () { return (long) (sizeof (size_t)); }
16707#include <stdio.h>
16708#include <stdlib.h>
16709int
16710main ()
16711{
16712
16713 FILE *f = fopen ("conftest.val", "w");
16714 if (! f)
16715 exit (1);
16716 if (((long) (sizeof (size_t))) < 0)
16717 {
16718 long i = longval ();
16719 if (i != ((long) (sizeof (size_t))))
16720 exit (1);
16721 fprintf (f, "%ld\n", i);
16722 }
16723 else
16724 {
16725 unsigned long i = ulongval ();
16726 if (i != ((long) (sizeof (size_t))))
16727 exit (1);
16728 fprintf (f, "%lu\n", i);
16729 }
16730 exit (ferror (f) || fclose (f) != 0);
16731
16732 ;
16733 return 0;
16734}
16735_ACEOF
16736rm -f conftest$ac_exeext
16737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16738 (eval $ac_link) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_sizeof_size_t=`cat conftest.val`
16748else
16749 echo "$as_me: program exited with status $ac_status" >&5
16750echo "$as_me: failed program was:" >&5
16751sed 's/^/| /' conftest.$ac_ext >&5
16752
16753( exit $ac_status )
16754{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16755See \`config.log' for more details." >&5
16756echo "$as_me: error: cannot compute sizeof (size_t), 77
16757See \`config.log' for more details." >&2;}
16758 { (exit 1); exit 1; }; }
16759fi
16760rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16761fi
16762fi
16763rm -f conftest.val
16764else
16765 ac_cv_sizeof_size_t=0
16766fi
16767fi
16768echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16769echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16770cat >>confdefs.h <<_ACEOF
16771#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16772_ACEOF
16773
16774
16775
16776case "${host}" in
16777 arm-*-linux* )
16778 echo "$as_me:$LINENO: checking for long long" >&5
16779echo $ECHO_N "checking for long long... $ECHO_C" >&6
16780if test "${ac_cv_type_long_long+set}" = set; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
16782else
16783 cat >conftest.$ac_ext <<_ACEOF
16784/* confdefs.h. */
16785_ACEOF
16786cat confdefs.h >>conftest.$ac_ext
16787cat >>conftest.$ac_ext <<_ACEOF
16788/* end confdefs.h. */
16789$ac_includes_default
16790int
16791main ()
16792{
16793if ((long long *) 0)
16794 return 0;
16795if (sizeof (long long))
16796 return 0;
16797 ;
16798 return 0;
16799}
16800_ACEOF
16801rm -f conftest.$ac_objext
16802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16803 (eval $ac_compile) 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
dcc1b6ad
VS
16810 { ac_try='test -z "$ac_c_werror_flag"
16811 || test ! -s conftest.err'
a848cd7e
SC
16812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813 (eval $ac_try) 2>&5
16814 ac_status=$?
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); }; } &&
16817 { ac_try='test -s conftest.$ac_objext'
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; }; then
16823 ac_cv_type_long_long=yes
16824else
16825 echo "$as_me: failed program was:" >&5
16826sed 's/^/| /' conftest.$ac_ext >&5
16827
16828ac_cv_type_long_long=no
16829fi
16830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16831fi
16832echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16833echo "${ECHO_T}$ac_cv_type_long_long" >&6
16834
16835echo "$as_me:$LINENO: checking size of long long" >&5
16836echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16837if test "${ac_cv_sizeof_long_long+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839else
16840 if test "$ac_cv_type_long_long" = yes; then
16841 # The cast to unsigned long works around a bug in the HP C Compiler
16842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16844 # This bug is HP SR number 8606223364.
16845 if test "$cross_compiling" = yes; then
16846 # Depending upon the size, compute the lo and hi bounds.
16847cat >conftest.$ac_ext <<_ACEOF
16848/* confdefs.h. */
16849_ACEOF
16850cat confdefs.h >>conftest.$ac_ext
16851cat >>conftest.$ac_ext <<_ACEOF
16852/* end confdefs.h. */
16853$ac_includes_default
16854int
16855main ()
16856{
16857static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16858test_array [0] = 0
16859
16860 ;
16861 return 0;
16862}
16863_ACEOF
16864rm -f conftest.$ac_objext
16865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16866 (eval $ac_compile) 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
dcc1b6ad
VS
16873 { ac_try='test -z "$ac_c_werror_flag"
16874 || test ! -s conftest.err'
a848cd7e
SC
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try='test -s conftest.$ac_objext'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_lo=0 ac_mid=0
16887 while :; do
16888 cat >conftest.$ac_ext <<_ACEOF
16889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
16894$ac_includes_default
16895int
16896main ()
16897{
16898static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16899test_array [0] = 0
16900
16901 ;
16902 return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext
16906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16907 (eval $ac_compile) 2>conftest.er1
16908 ac_status=$?
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
dcc1b6ad
VS
16914 { ac_try='test -z "$ac_c_werror_flag"
16915 || test ! -s conftest.err'
a848cd7e
SC
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest.$ac_objext'
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_hi=$ac_mid; break
16928else
16929 echo "$as_me: failed program was:" >&5
16930sed 's/^/| /' conftest.$ac_ext >&5
16931
16932ac_lo=`expr $ac_mid + 1`
16933 if test $ac_lo -le $ac_mid; then
16934 ac_lo= ac_hi=
16935 break
16936 fi
16937 ac_mid=`expr 2 '*' $ac_mid + 1`
16938fi
16939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16940 done
16941else
16942 echo "$as_me: failed program was:" >&5
16943sed 's/^/| /' conftest.$ac_ext >&5
16944
16945cat >conftest.$ac_ext <<_ACEOF
16946/* confdefs.h. */
16947_ACEOF
16948cat confdefs.h >>conftest.$ac_ext
16949cat >>conftest.$ac_ext <<_ACEOF
16950/* end confdefs.h. */
16951$ac_includes_default
16952int
16953main ()
16954{
16955static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16956test_array [0] = 0
16957
16958 ;
16959 return 0;
16960}
16961_ACEOF
16962rm -f conftest.$ac_objext
16963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16964 (eval $ac_compile) 2>conftest.er1
16965 ac_status=$?
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
dcc1b6ad
VS
16971 { ac_try='test -z "$ac_c_werror_flag"
16972 || test ! -s conftest.err'
a848cd7e
SC
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; } &&
16978 { ac_try='test -s conftest.$ac_objext'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }; then
16984 ac_hi=-1 ac_mid=-1
16985 while :; do
16986 cat >conftest.$ac_ext <<_ACEOF
16987/* confdefs.h. */
16988_ACEOF
16989cat confdefs.h >>conftest.$ac_ext
16990cat >>conftest.$ac_ext <<_ACEOF
16991/* end confdefs.h. */
16992$ac_includes_default
16993int
16994main ()
16995{
16996static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16997test_array [0] = 0
16998
16999 ;
17000 return 0;
17001}
17002_ACEOF
17003rm -f conftest.$ac_objext
17004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17005 (eval $ac_compile) 2>conftest.er1
17006 ac_status=$?
17007 grep -v '^ *+' conftest.er1 >conftest.err
17008 rm -f conftest.er1
17009 cat conftest.err >&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } &&
dcc1b6ad
VS
17012 { ac_try='test -z "$ac_c_werror_flag"
17013 || test ! -s conftest.err'
a848cd7e
SC
17014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17015 (eval $ac_try) 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; } &&
17019 { ac_try='test -s conftest.$ac_objext'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17025 ac_lo=$ac_mid; break
17026else
17027 echo "$as_me: failed program was:" >&5
17028sed 's/^/| /' conftest.$ac_ext >&5
17029
17030ac_hi=`expr '(' $ac_mid ')' - 1`
17031 if test $ac_mid -le $ac_hi; then
17032 ac_lo= ac_hi=
17033 break
17034 fi
17035 ac_mid=`expr 2 '*' $ac_mid`
17036fi
17037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17038 done
17039else
17040 echo "$as_me: failed program was:" >&5
17041sed 's/^/| /' conftest.$ac_ext >&5
17042
17043ac_lo= ac_hi=
17044fi
17045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17046fi
17047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17048# Binary search between lo and hi bounds.
17049while test "x$ac_lo" != "x$ac_hi"; do
17050 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17051 cat >conftest.$ac_ext <<_ACEOF
17052/* confdefs.h. */
17053_ACEOF
17054cat confdefs.h >>conftest.$ac_ext
17055cat >>conftest.$ac_ext <<_ACEOF
17056/* end confdefs.h. */
17057$ac_includes_default
17058int
17059main ()
17060{
17061static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17062test_array [0] = 0
17063
17064 ;
17065 return 0;
17066}
17067_ACEOF
17068rm -f conftest.$ac_objext
17069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17070 (eval $ac_compile) 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
dcc1b6ad
VS
17077 { ac_try='test -z "$ac_c_werror_flag"
17078 || test ! -s conftest.err'
a848cd7e
SC
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; } &&
17084 { ac_try='test -s conftest.$ac_objext'
17085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086 (eval $ac_try) 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_hi=$ac_mid
17091else
17092 echo "$as_me: failed program was:" >&5
17093sed 's/^/| /' conftest.$ac_ext >&5
17094
17095ac_lo=`expr '(' $ac_mid ')' + 1`
17096fi
17097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17098done
17099case $ac_lo in
17100?*) ac_cv_sizeof_long_long=$ac_lo;;
17101'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17102See \`config.log' for more details." >&5
17103echo "$as_me: error: cannot compute sizeof (long long), 77
17104See \`config.log' for more details." >&2;}
17105 { (exit 1); exit 1; }; } ;;
17106esac
17107else
17108 if test "$cross_compiling" = yes; then
17109 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17110See \`config.log' for more details." >&5
17111echo "$as_me: error: cannot run test program while cross compiling
17112See \`config.log' for more details." >&2;}
17113 { (exit 1); exit 1; }; }
17114else
17115 cat >conftest.$ac_ext <<_ACEOF
17116/* confdefs.h. */
17117_ACEOF
17118cat confdefs.h >>conftest.$ac_ext
17119cat >>conftest.$ac_ext <<_ACEOF
17120/* end confdefs.h. */
17121$ac_includes_default
17122long longval () { return (long) (sizeof (long long)); }
17123unsigned long ulongval () { return (long) (sizeof (long long)); }
17124#include <stdio.h>
17125#include <stdlib.h>
17126int
17127main ()
17128{
17129
17130 FILE *f = fopen ("conftest.val", "w");
17131 if (! f)
17132 exit (1);
17133 if (((long) (sizeof (long long))) < 0)
17134 {
17135 long i = longval ();
17136 if (i != ((long) (sizeof (long long))))
17137 exit (1);
17138 fprintf (f, "%ld\n", i);
17139 }
17140 else
17141 {
17142 unsigned long i = ulongval ();
17143 if (i != ((long) (sizeof (long long))))
17144 exit (1);
17145 fprintf (f, "%lu\n", i);
17146 }
17147 exit (ferror (f) || fclose (f) != 0);
17148
17149 ;
17150 return 0;
17151}
17152_ACEOF
17153rm -f conftest$ac_exeext
17154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17155 (eval $ac_link) 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 ac_cv_sizeof_long_long=`cat conftest.val`
17165else
17166 echo "$as_me: program exited with status $ac_status" >&5
17167echo "$as_me: failed program was:" >&5
17168sed 's/^/| /' conftest.$ac_ext >&5
17169
17170( exit $ac_status )
17171{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17172See \`config.log' for more details." >&5
17173echo "$as_me: error: cannot compute sizeof (long long), 77
17174See \`config.log' for more details." >&2;}
17175 { (exit 1); exit 1; }; }
17176fi
17177rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17178fi
17179fi
17180rm -f conftest.val
17181else
17182 ac_cv_sizeof_long_long=0
17183fi
17184fi
17185echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17186echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17187cat >>confdefs.h <<_ACEOF
17188#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17189_ACEOF
17190
17191
17192 ;;
17193 *-hp-hpux* )
17194 echo "$as_me:$LINENO: checking for long long" >&5
17195echo $ECHO_N "checking for long long... $ECHO_C" >&6
17196if test "${ac_cv_type_long_long+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17198else
17199 cat >conftest.$ac_ext <<_ACEOF
17200/* confdefs.h. */
17201_ACEOF
17202cat confdefs.h >>conftest.$ac_ext
17203cat >>conftest.$ac_ext <<_ACEOF
17204/* end confdefs.h. */
17205$ac_includes_default
17206int
17207main ()
17208{
17209if ((long long *) 0)
17210 return 0;
17211if (sizeof (long long))
17212 return 0;
17213 ;
17214 return 0;
17215}
17216_ACEOF
17217rm -f conftest.$ac_objext
17218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17219 (eval $ac_compile) 2>conftest.er1
17220 ac_status=$?
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
dcc1b6ad
VS
17226 { ac_try='test -z "$ac_c_werror_flag"
17227 || test ! -s conftest.err'
a848cd7e
SC
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; } &&
17233 { ac_try='test -s conftest.$ac_objext'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 ac_cv_type_long_long=yes
17240else
17241 echo "$as_me: failed program was:" >&5
17242sed 's/^/| /' conftest.$ac_ext >&5
17243
17244ac_cv_type_long_long=no
17245fi
17246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17247fi
17248echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17249echo "${ECHO_T}$ac_cv_type_long_long" >&6
17250
17251echo "$as_me:$LINENO: checking size of long long" >&5
17252echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17253if test "${ac_cv_sizeof_long_long+set}" = set; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17255else
17256 if test "$ac_cv_type_long_long" = yes; then
17257 # The cast to unsigned long works around a bug in the HP C Compiler
17258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17260 # This bug is HP SR number 8606223364.
17261 if test "$cross_compiling" = yes; then
17262 # Depending upon the size, compute the lo and hi bounds.
17263cat >conftest.$ac_ext <<_ACEOF
17264/* confdefs.h. */
17265_ACEOF
17266cat confdefs.h >>conftest.$ac_ext
17267cat >>conftest.$ac_ext <<_ACEOF
17268/* end confdefs.h. */
17269$ac_includes_default
17270int
17271main ()
17272{
17273static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17274test_array [0] = 0
17275
17276 ;
17277 return 0;
17278}
17279_ACEOF
17280rm -f conftest.$ac_objext
17281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17282 (eval $ac_compile) 2>conftest.er1
17283 ac_status=$?
17284 grep -v '^ *+' conftest.er1 >conftest.err
17285 rm -f conftest.er1
17286 cat conftest.err >&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
dcc1b6ad
VS
17289 { ac_try='test -z "$ac_c_werror_flag"
17290 || test ! -s conftest.err'
a848cd7e
SC
17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17293 ac_status=$?
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; } &&
17296 { ac_try='test -s conftest.$ac_objext'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 ac_lo=0 ac_mid=0
17303 while :; do
17304 cat >conftest.$ac_ext <<_ACEOF
17305/* confdefs.h. */
17306_ACEOF
17307cat confdefs.h >>conftest.$ac_ext
17308cat >>conftest.$ac_ext <<_ACEOF
17309/* end confdefs.h. */
17310$ac_includes_default
17311int
17312main ()
17313{
17314static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17315test_array [0] = 0
17316
17317 ;
17318 return 0;
17319}
17320_ACEOF
17321rm -f conftest.$ac_objext
17322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17323 (eval $ac_compile) 2>conftest.er1
17324 ac_status=$?
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
dcc1b6ad
VS
17330 { ac_try='test -z "$ac_c_werror_flag"
17331 || test ! -s conftest.err'
a848cd7e
SC
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; } &&
17337 { ac_try='test -s conftest.$ac_objext'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 ac_hi=$ac_mid; break
17344else
17345 echo "$as_me: failed program was:" >&5
17346sed 's/^/| /' conftest.$ac_ext >&5
17347
17348ac_lo=`expr $ac_mid + 1`
17349 if test $ac_lo -le $ac_mid; then
17350 ac_lo= ac_hi=
17351 break
17352 fi
17353 ac_mid=`expr 2 '*' $ac_mid + 1`
17354fi
17355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17356 done
17357else
17358 echo "$as_me: failed program was:" >&5
17359sed 's/^/| /' conftest.$ac_ext >&5
17360
17361cat >conftest.$ac_ext <<_ACEOF
17362/* confdefs.h. */
17363_ACEOF
17364cat confdefs.h >>conftest.$ac_ext
17365cat >>conftest.$ac_ext <<_ACEOF
17366/* end confdefs.h. */
17367$ac_includes_default
17368int
17369main ()
17370{
17371static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17372test_array [0] = 0
17373
17374 ;
17375 return 0;
17376}
17377_ACEOF
17378rm -f conftest.$ac_objext
17379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17380 (eval $ac_compile) 2>conftest.er1
17381 ac_status=$?
17382 grep -v '^ *+' conftest.er1 >conftest.err
17383 rm -f conftest.er1
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
dcc1b6ad
VS
17387 { ac_try='test -z "$ac_c_werror_flag"
17388 || test ! -s conftest.err'
a848cd7e
SC
17389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17391 ac_status=$?
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; } &&
17394 { ac_try='test -s conftest.$ac_objext'
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 ac_hi=-1 ac_mid=-1
17401 while :; do
17402 cat >conftest.$ac_ext <<_ACEOF
17403/* confdefs.h. */
17404_ACEOF
17405cat confdefs.h >>conftest.$ac_ext
17406cat >>conftest.$ac_ext <<_ACEOF
17407/* end confdefs.h. */
17408$ac_includes_default
17409int
17410main ()
17411{
17412static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17413test_array [0] = 0
17414
17415 ;
17416 return 0;
17417}
17418_ACEOF
17419rm -f conftest.$ac_objext
17420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17421 (eval $ac_compile) 2>conftest.er1
17422 ac_status=$?
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
dcc1b6ad
VS
17428 { ac_try='test -z "$ac_c_werror_flag"
17429 || test ! -s conftest.err'
a848cd7e
SC
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest.$ac_objext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 ac_lo=$ac_mid; break
17442else
17443 echo "$as_me: failed program was:" >&5
17444sed 's/^/| /' conftest.$ac_ext >&5
17445
17446ac_hi=`expr '(' $ac_mid ')' - 1`
17447 if test $ac_mid -le $ac_hi; then
17448 ac_lo= ac_hi=
17449 break
17450 fi
17451 ac_mid=`expr 2 '*' $ac_mid`
17452fi
17453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17454 done
17455else
17456 echo "$as_me: failed program was:" >&5
17457sed 's/^/| /' conftest.$ac_ext >&5
17458
17459ac_lo= ac_hi=
17460fi
17461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17462fi
17463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17464# Binary search between lo and hi bounds.
17465while test "x$ac_lo" != "x$ac_hi"; do
17466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17467 cat >conftest.$ac_ext <<_ACEOF
17468/* confdefs.h. */
17469_ACEOF
17470cat confdefs.h >>conftest.$ac_ext
17471cat >>conftest.$ac_ext <<_ACEOF
17472/* end confdefs.h. */
17473$ac_includes_default
17474int
17475main ()
17476{
17477static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17478test_array [0] = 0
17479
17480 ;
17481 return 0;
17482}
17483_ACEOF
17484rm -f conftest.$ac_objext
17485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17486 (eval $ac_compile) 2>conftest.er1
17487 ac_status=$?
17488 grep -v '^ *+' conftest.er1 >conftest.err
17489 rm -f conftest.er1
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } &&
dcc1b6ad
VS
17493 { ac_try='test -z "$ac_c_werror_flag"
17494 || test ! -s conftest.err'
a848cd7e
SC
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest.$ac_objext'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 ac_hi=$ac_mid
17507else
17508 echo "$as_me: failed program was:" >&5
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
17511ac_lo=`expr '(' $ac_mid ')' + 1`
17512fi
17513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17514done
17515case $ac_lo in
17516?*) ac_cv_sizeof_long_long=$ac_lo;;
17517'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17518See \`config.log' for more details." >&5
17519echo "$as_me: error: cannot compute sizeof (long long), 77
17520See \`config.log' for more details." >&2;}
17521 { (exit 1); exit 1; }; } ;;
17522esac
17523else
17524 if test "$cross_compiling" = yes; then
17525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17526See \`config.log' for more details." >&5
17527echo "$as_me: error: cannot run test program while cross compiling
17528See \`config.log' for more details." >&2;}
17529 { (exit 1); exit 1; }; }
17530else
17531 cat >conftest.$ac_ext <<_ACEOF
17532/* confdefs.h. */
17533_ACEOF
17534cat confdefs.h >>conftest.$ac_ext
17535cat >>conftest.$ac_ext <<_ACEOF
17536/* end confdefs.h. */
17537$ac_includes_default
17538long longval () { return (long) (sizeof (long long)); }
17539unsigned long ulongval () { return (long) (sizeof (long long)); }
17540#include <stdio.h>
17541#include <stdlib.h>
17542int
17543main ()
17544{
17545
17546 FILE *f = fopen ("conftest.val", "w");
17547 if (! f)
17548 exit (1);
17549 if (((long) (sizeof (long long))) < 0)
17550 {
17551 long i = longval ();
17552 if (i != ((long) (sizeof (long long))))
17553 exit (1);
17554 fprintf (f, "%ld\n", i);
17555 }
17556 else
17557 {
17558 unsigned long i = ulongval ();
17559 if (i != ((long) (sizeof (long long))))
17560 exit (1);
17561 fprintf (f, "%lu\n", i);
17562 }
17563 exit (ferror (f) || fclose (f) != 0);
17564
17565 ;
17566 return 0;
17567}
17568_ACEOF
17569rm -f conftest$ac_exeext
17570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17571 (eval $ac_link) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 ac_cv_sizeof_long_long=`cat conftest.val`
17581else
17582 echo "$as_me: program exited with status $ac_status" >&5
17583echo "$as_me: failed program was:" >&5
17584sed 's/^/| /' conftest.$ac_ext >&5
17585
17586( exit $ac_status )
17587{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17588See \`config.log' for more details." >&5
17589echo "$as_me: error: cannot compute sizeof (long long), 77
17590See \`config.log' for more details." >&2;}
17591 { (exit 1); exit 1; }; }
17592fi
17593rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17594fi
17595fi
17596rm -f conftest.val
17597else
17598 ac_cv_sizeof_long_long=0
17599fi
17600fi
17601echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17602echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17603cat >>confdefs.h <<_ACEOF
17604#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17605_ACEOF
17606
17607
17608 if test "$ac_cv_sizeof_long_long" != "0"; then
17609 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17610 fi
17611 ;;
17612 * )
17613 echo "$as_me:$LINENO: checking for long long" >&5
17614echo $ECHO_N "checking for long long... $ECHO_C" >&6
17615if test "${ac_cv_type_long_long+set}" = set; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17617else
17618 cat >conftest.$ac_ext <<_ACEOF
17619/* confdefs.h. */
17620_ACEOF
17621cat confdefs.h >>conftest.$ac_ext
17622cat >>conftest.$ac_ext <<_ACEOF
17623/* end confdefs.h. */
17624$ac_includes_default
17625int
17626main ()
17627{
17628if ((long long *) 0)
17629 return 0;
17630if (sizeof (long long))
17631 return 0;
17632 ;
17633 return 0;
17634}
17635_ACEOF
17636rm -f conftest.$ac_objext
17637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17638 (eval $ac_compile) 2>conftest.er1
17639 ac_status=$?
17640 grep -v '^ *+' conftest.er1 >conftest.err
17641 rm -f conftest.er1
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
dcc1b6ad
VS
17645 { ac_try='test -z "$ac_c_werror_flag"
17646 || test ! -s conftest.err'
a848cd7e
SC
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } &&
17652 { ac_try='test -s conftest.$ac_objext'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 ac_cv_type_long_long=yes
17659else
17660 echo "$as_me: failed program was:" >&5
17661sed 's/^/| /' conftest.$ac_ext >&5
17662
17663ac_cv_type_long_long=no
17664fi
17665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17666fi
17667echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17668echo "${ECHO_T}$ac_cv_type_long_long" >&6
17669
17670echo "$as_me:$LINENO: checking size of long long" >&5
17671echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17672if test "${ac_cv_sizeof_long_long+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17674else
17675 if test "$ac_cv_type_long_long" = yes; then
17676 # The cast to unsigned long works around a bug in the HP C Compiler
17677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17679 # This bug is HP SR number 8606223364.
17680 if test "$cross_compiling" = yes; then
17681 # Depending upon the size, compute the lo and hi bounds.
17682cat >conftest.$ac_ext <<_ACEOF
17683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
17688$ac_includes_default
17689int
17690main ()
17691{
17692static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17693test_array [0] = 0
17694
17695 ;
17696 return 0;
17697}
17698_ACEOF
17699rm -f conftest.$ac_objext
17700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17701 (eval $ac_compile) 2>conftest.er1
17702 ac_status=$?
17703 grep -v '^ *+' conftest.er1 >conftest.err
17704 rm -f conftest.er1
17705 cat conftest.err >&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } &&
dcc1b6ad
VS
17708 { ac_try='test -z "$ac_c_werror_flag"
17709 || test ! -s conftest.err'
a848cd7e
SC
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest.$ac_objext'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_lo=0 ac_mid=0
17722 while :; do
17723 cat >conftest.$ac_ext <<_ACEOF
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h. */
17729$ac_includes_default
17730int
17731main ()
17732{
17733static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17734test_array [0] = 0
17735
17736 ;
17737 return 0;
17738}
17739_ACEOF
17740rm -f conftest.$ac_objext
17741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17742 (eval $ac_compile) 2>conftest.er1
17743 ac_status=$?
17744 grep -v '^ *+' conftest.er1 >conftest.err
17745 rm -f conftest.er1
17746 cat conftest.err >&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
dcc1b6ad
VS
17749 { ac_try='test -z "$ac_c_werror_flag"
17750 || test ! -s conftest.err'
a848cd7e
SC
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try='test -s conftest.$ac_objext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 ac_hi=$ac_mid; break
17763else
17764 echo "$as_me: failed program was:" >&5
17765sed 's/^/| /' conftest.$ac_ext >&5
17766
17767ac_lo=`expr $ac_mid + 1`
17768 if test $ac_lo -le $ac_mid; then
17769 ac_lo= ac_hi=
17770 break
17771 fi
17772 ac_mid=`expr 2 '*' $ac_mid + 1`
17773fi
17774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17775 done
17776else
17777 echo "$as_me: failed program was:" >&5
17778sed 's/^/| /' conftest.$ac_ext >&5
17779
17780cat >conftest.$ac_ext <<_ACEOF
17781/* confdefs.h. */
17782_ACEOF
17783cat confdefs.h >>conftest.$ac_ext
17784cat >>conftest.$ac_ext <<_ACEOF
17785/* end confdefs.h. */
17786$ac_includes_default
17787int
17788main ()
17789{
17790static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17791test_array [0] = 0
17792
17793 ;
17794 return 0;
17795}
17796_ACEOF
17797rm -f conftest.$ac_objext
17798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17799 (eval $ac_compile) 2>conftest.er1
17800 ac_status=$?
17801 grep -v '^ *+' conftest.er1 >conftest.err
17802 rm -f conftest.er1
17803 cat conftest.err >&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } &&
dcc1b6ad
VS
17806 { ac_try='test -z "$ac_c_werror_flag"
17807 || test ! -s conftest.err'
a848cd7e
SC
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; } &&
17813 { ac_try='test -s conftest.$ac_objext'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 ac_hi=-1 ac_mid=-1
17820 while :; do
17821 cat >conftest.$ac_ext <<_ACEOF
17822/* confdefs.h. */
17823_ACEOF
17824cat confdefs.h >>conftest.$ac_ext
17825cat >>conftest.$ac_ext <<_ACEOF
17826/* end confdefs.h. */
17827$ac_includes_default
17828int
17829main ()
17830{
17831static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17832test_array [0] = 0
17833
17834 ;
17835 return 0;
17836}
17837_ACEOF
17838rm -f conftest.$ac_objext
17839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17840 (eval $ac_compile) 2>conftest.er1
17841 ac_status=$?
17842 grep -v '^ *+' conftest.er1 >conftest.err
17843 rm -f conftest.er1
17844 cat conftest.err >&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
dcc1b6ad
VS
17847 { ac_try='test -z "$ac_c_werror_flag"
17848 || test ! -s conftest.err'
a848cd7e
SC
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest.$ac_objext'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 ac_lo=$ac_mid; break
17861else
17862 echo "$as_me: failed program was:" >&5
17863sed 's/^/| /' conftest.$ac_ext >&5
17864
17865ac_hi=`expr '(' $ac_mid ')' - 1`
17866 if test $ac_mid -le $ac_hi; then
17867 ac_lo= ac_hi=
17868 break
17869 fi
17870 ac_mid=`expr 2 '*' $ac_mid`
17871fi
17872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17873 done
17874else
17875 echo "$as_me: failed program was:" >&5
17876sed 's/^/| /' conftest.$ac_ext >&5
17877
17878ac_lo= ac_hi=
17879fi
17880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17881fi
17882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17883# Binary search between lo and hi bounds.
17884while test "x$ac_lo" != "x$ac_hi"; do
17885 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17886 cat >conftest.$ac_ext <<_ACEOF
17887/* confdefs.h. */
17888_ACEOF
17889cat confdefs.h >>conftest.$ac_ext
17890cat >>conftest.$ac_ext <<_ACEOF
17891/* end confdefs.h. */
17892$ac_includes_default
17893int
17894main ()
17895{
17896static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17897test_array [0] = 0
17898
17899 ;
17900 return 0;
17901}
17902_ACEOF
17903rm -f conftest.$ac_objext
17904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17905 (eval $ac_compile) 2>conftest.er1
17906 ac_status=$?
17907 grep -v '^ *+' conftest.er1 >conftest.err
17908 rm -f conftest.er1
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
dcc1b6ad
VS
17912 { ac_try='test -z "$ac_c_werror_flag"
17913 || test ! -s conftest.err'
a848cd7e
SC
17914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915 (eval $ac_try) 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest.$ac_objext'
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921 (eval $ac_try) 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; }; then
17925 ac_hi=$ac_mid
17926else
17927 echo "$as_me: failed program was:" >&5
17928sed 's/^/| /' conftest.$ac_ext >&5
17929
17930ac_lo=`expr '(' $ac_mid ')' + 1`
17931fi
17932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17933done
17934case $ac_lo in
17935?*) ac_cv_sizeof_long_long=$ac_lo;;
17936'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17937See \`config.log' for more details." >&5
17938echo "$as_me: error: cannot compute sizeof (long long), 77
17939See \`config.log' for more details." >&2;}
17940 { (exit 1); exit 1; }; } ;;
17941esac
17942else
17943 if test "$cross_compiling" = yes; then
17944 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17945See \`config.log' for more details." >&5
17946echo "$as_me: error: cannot run test program while cross compiling
17947See \`config.log' for more details." >&2;}
17948 { (exit 1); exit 1; }; }
17949else
17950 cat >conftest.$ac_ext <<_ACEOF
17951/* confdefs.h. */
17952_ACEOF
17953cat confdefs.h >>conftest.$ac_ext
17954cat >>conftest.$ac_ext <<_ACEOF
17955/* end confdefs.h. */
17956$ac_includes_default
17957long longval () { return (long) (sizeof (long long)); }
17958unsigned long ulongval () { return (long) (sizeof (long long)); }
17959#include <stdio.h>
17960#include <stdlib.h>
17961int
17962main ()
17963{
17964
17965 FILE *f = fopen ("conftest.val", "w");
17966 if (! f)
17967 exit (1);
17968 if (((long) (sizeof (long long))) < 0)
17969 {
17970 long i = longval ();
17971 if (i != ((long) (sizeof (long long))))
17972 exit (1);
17973 fprintf (f, "%ld\n", i);
17974 }
17975 else
17976 {
17977 unsigned long i = ulongval ();
17978 if (i != ((long) (sizeof (long long))))
17979 exit (1);
17980 fprintf (f, "%lu\n", i);
17981 }
17982 exit (ferror (f) || fclose (f) != 0);
17983
17984 ;
17985 return 0;
17986}
17987_ACEOF
17988rm -f conftest$ac_exeext
17989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17990 (eval $ac_link) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17996 ac_status=$?
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; }; then
17999 ac_cv_sizeof_long_long=`cat conftest.val`
18000else
18001 echo "$as_me: program exited with status $ac_status" >&5
18002echo "$as_me: failed program was:" >&5
18003sed 's/^/| /' conftest.$ac_ext >&5
18004
18005( exit $ac_status )
18006{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18007See \`config.log' for more details." >&5
18008echo "$as_me: error: cannot compute sizeof (long long), 77
18009See \`config.log' for more details." >&2;}
18010 { (exit 1); exit 1; }; }
18011fi
18012rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18013fi
18014fi
18015rm -f conftest.val
18016else
18017 ac_cv_sizeof_long_long=0
18018fi
18019fi
18020echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18021echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18022cat >>confdefs.h <<_ACEOF
18023#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18024_ACEOF
18025
18026
18027esac
18028
18029echo "$as_me:$LINENO: checking size of wchar_t" >&5
18030echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18031if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18033else
18034
18035 if test "$cross_compiling" = yes; then
18036
18037 case "${host}" in
18038 *-pc-msdosdjgpp )
18039 wx_cv_sizeof_wchar_t=0
18040 ;;
18041 * )
18042 wx_cv_sizeof_wchar_t=4
18043 ;;
18044 esac
18045
18046
18047else
18048 cat >conftest.$ac_ext <<_ACEOF
18049/* confdefs.h. */
18050_ACEOF
18051cat confdefs.h >>conftest.$ac_ext
18052cat >>conftest.$ac_ext <<_ACEOF
18053/* end confdefs.h. */
18054
18055 /* DJGPP only has fake wchar_t: */
18056 #ifdef __DJGPP__
18057 # error "fake wchar_t"
18058 #endif
18059 #ifdef HAVE_WCHAR_H
18060 # ifdef __CYGWIN__
18061 # include <stddef.h>
18062 # endif
18063 # include <wchar.h>
18064 #endif
18065 #ifdef HAVE_STDLIB_H
18066 # include <stdlib.h>
18067 #endif
18068 #include <stdio.h>
18069 int main()
18070 {
18071 FILE *f=fopen("conftestval", "w");
18072 if (!f) exit(1);
18073 fprintf(f, "%i", sizeof(wchar_t));
18074 exit(0);
18075 }
18076
18077_ACEOF
18078rm -f conftest$ac_exeext
18079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18080 (eval $ac_link) 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
18089 wx_cv_sizeof_wchar_t=`cat conftestval`
18090else
18091 echo "$as_me: program exited with status $ac_status" >&5
18092echo "$as_me: failed program was:" >&5
18093sed 's/^/| /' conftest.$ac_ext >&5
18094
18095( exit $ac_status )
18096wx_cv_sizeof_wchar_t=0
18097fi
18098rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18099fi
18100
18101fi
18102echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18103echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18104
18105cat >>confdefs.h <<_ACEOF
18106#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18107_ACEOF
18108
18109
18110# Check whether --enable-largefile or --disable-largefile was given.
18111if test "${enable_largefile+set}" = set; then
18112 enableval="$enable_largefile"
18113
18114fi;
18115if test "$enable_largefile" != no; then
18116 wx_largefile=no
18117
18118 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18119echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18120if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18122else
18123
18124 cat >conftest.$ac_ext <<_ACEOF
18125/* confdefs.h. */
18126_ACEOF
18127cat confdefs.h >>conftest.$ac_ext
18128cat >>conftest.$ac_ext <<_ACEOF
18129/* end confdefs.h. */
18130#define _FILE_OFFSET_BITS 64
18131 #include <sys/types.h>
18132int
18133main ()
18134{
18135typedef struct {
18136 unsigned int field: sizeof(off_t) == 8;
18137} wxlf;
18138
18139 ;
18140 return 0;
18141}
18142_ACEOF
18143rm -f conftest.$ac_objext
18144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18145 (eval $ac_compile) 2>conftest.er1
18146 ac_status=$?
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
dcc1b6ad
VS
18152 { ac_try='test -z "$ac_c_werror_flag"
18153 || test ! -s conftest.err'
a848cd7e
SC
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18156 ac_status=$?
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; } &&
18159 { ac_try='test -s conftest.$ac_objext'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 ac_cv_sys_file_offset_bits=64
18166else
18167 echo "$as_me: failed program was:" >&5
18168sed 's/^/| /' conftest.$ac_ext >&5
18169
18170ac_cv_sys_file_offset_bits=no
18171fi
18172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18173
18174
18175fi
18176echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18177echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18178
18179 if test "$ac_cv_sys_file_offset_bits" != no; then
18180 wx_largefile=yes
18181 cat >>confdefs.h <<_ACEOF
18182#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18183_ACEOF
18184
18185 fi
18186
18187 if test "x$wx_largefile" != "xyes"; then
18188
18189 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18190echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18191if test "${ac_cv_sys_large_files+set}" = set; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18193else
18194
18195 cat >conftest.$ac_ext <<_ACEOF
18196/* confdefs.h. */
18197_ACEOF
18198cat confdefs.h >>conftest.$ac_ext
18199cat >>conftest.$ac_ext <<_ACEOF
18200/* end confdefs.h. */
18201#define _LARGE_FILES 1
18202 #include <sys/types.h>
18203int
18204main ()
18205{
18206typedef struct {
18207 unsigned int field: sizeof(off_t) == 8;
18208} wxlf;
18209
18210 ;
18211 return 0;
18212}
18213_ACEOF
18214rm -f conftest.$ac_objext
18215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18216 (eval $ac_compile) 2>conftest.er1
18217 ac_status=$?
18218 grep -v '^ *+' conftest.er1 >conftest.err
18219 rm -f conftest.er1
18220 cat conftest.err >&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } &&
dcc1b6ad
VS
18223 { ac_try='test -z "$ac_c_werror_flag"
18224 || test ! -s conftest.err'
a848cd7e
SC
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; } &&
18230 { ac_try='test -s conftest.$ac_objext'
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
18236 ac_cv_sys_large_files=1
18237else
18238 echo "$as_me: failed program was:" >&5
18239sed 's/^/| /' conftest.$ac_ext >&5
18240
18241ac_cv_sys_large_files=no
18242fi
18243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18244
18245
18246fi
18247echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18248echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18249
18250 if test "$ac_cv_sys_large_files" != no; then
18251 wx_largefile=yes
18252 cat >>confdefs.h <<_ACEOF
18253#define _LARGE_FILES $ac_cv_sys_large_files
18254_ACEOF
18255
18256 fi
18257
18258 fi
18259
18260 echo "$as_me:$LINENO: checking if large file support is available" >&5
18261echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18262 if test "x$wx_largefile" = "xyes"; then
18263 cat >>confdefs.h <<\_ACEOF
18264#define HAVE_LARGEFILE_SUPPORT 1
18265_ACEOF
18266
18267 fi
18268 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18269echo "${ECHO_T}$wx_largefile" >&6
18270fi
18271
18272
18273if test "x$wx_largefile" = "xyes"; then
18274 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18275 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18276 else
18277 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18278 fi
18279 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18280fi
18281
18282echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18283echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18284if test "${ac_cv_c_bigendian+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18286else
18287 ac_cv_c_bigendian=unknown
18288# See if sys/param.h defines the BYTE_ORDER macro.
18289cat >conftest.$ac_ext <<_ACEOF
18290/* confdefs.h. */
18291_ACEOF
18292cat confdefs.h >>conftest.$ac_ext
18293cat >>conftest.$ac_ext <<_ACEOF
18294/* end confdefs.h. */
18295#include <sys/types.h>
18296#include <sys/param.h>
18297int
18298main ()
18299{
18300
18301#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18302 bogus endian macros
18303#endif
18304 ;
18305 return 0;
18306}
18307_ACEOF
18308rm -f conftest.$ac_objext
18309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18310 (eval $ac_compile) 2>conftest.er1
18311 ac_status=$?
18312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } &&
dcc1b6ad
VS
18317 { ac_try='test -z "$ac_c_werror_flag"
18318 || test ! -s conftest.err'
a848cd7e
SC
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try='test -s conftest.$ac_objext'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 # It does; now see whether it defined to BIG_ENDIAN or not.
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
18344 not big endian
18345#endif
18346 ;
18347 return 0;
18348}
18349_ACEOF
18350rm -f conftest.$ac_objext
18351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18352 (eval $ac_compile) 2>conftest.er1
18353 ac_status=$?
18354 grep -v '^ *+' conftest.er1 >conftest.err
18355 rm -f conftest.er1
18356 cat conftest.err >&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); } &&
dcc1b6ad
VS
18359 { ac_try='test -z "$ac_c_werror_flag"
18360 || test ! -s conftest.err'
a848cd7e
SC
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'
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 ac_cv_c_bigendian=yes
18373else
18374 echo "$as_me: failed program was:" >&5
18375sed 's/^/| /' conftest.$ac_ext >&5
18376
18377ac_cv_c_bigendian=no
18378fi
18379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18380else
18381 echo "$as_me: failed program was:" >&5
18382sed 's/^/| /' conftest.$ac_ext >&5
18383
18384fi
18385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18386if test $ac_cv_c_bigendian = unknown; then
18387if test "$cross_compiling" = yes; then
18388 ac_cv_c_bigendian=unknown
18389else
18390 cat >conftest.$ac_ext <<_ACEOF
18391/* confdefs.h. */
18392_ACEOF
18393cat confdefs.h >>conftest.$ac_ext
18394cat >>conftest.$ac_ext <<_ACEOF
18395/* end confdefs.h. */
18396main () {
18397 /* Are we little or big endian? From Harbison&Steele. */
18398 union
18399 {
18400 long l;
18401 char c[sizeof (long)];
18402 } u;
18403 u.l = 1;
18404 exit (u.c[sizeof (long) - 1] == 1);
18405}
18406_ACEOF
18407rm -f conftest$ac_exeext
18408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18409 (eval $ac_link) 2>&5
18410 ac_status=$?
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 ac_cv_c_bigendian=no
18419else
18420 echo "$as_me: program exited with status $ac_status" >&5
18421echo "$as_me: failed program was:" >&5
18422sed 's/^/| /' conftest.$ac_ext >&5
18423
18424( exit $ac_status )
18425ac_cv_c_bigendian=yes
18426fi
18427rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18428fi
18429fi
18430fi
18431echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18432echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18433if test $ac_cv_c_bigendian = unknown; then
18434 { 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
18435echo "$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;}
18436fi
18437if test $ac_cv_c_bigendian = yes; then
18438 cat >>confdefs.h <<\_ACEOF
18439#define WORDS_BIGENDIAN 1
18440_ACEOF
18441
18442fi
18443
18444
18445ac_ext=cc
18446ac_cpp='$CXXCPP $CPPFLAGS'
18447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18450echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18451echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18452if test -z "$CXXCPP"; then
18453 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18454 echo $ECHO_N "(cached) $ECHO_C" >&6
18455else
18456 # Double quotes because CXXCPP needs to be expanded
18457 for CXXCPP in "$CXX -E" "/lib/cpp"
18458 do
18459 ac_preproc_ok=false
18460for ac_cxx_preproc_warn_flag in '' yes
18461do
18462 # Use a header file that comes with gcc, so configuring glibc
18463 # with a fresh cross-compiler works.
18464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18465 # <limits.h> exists even on freestanding compilers.
18466 # On the NeXT, cc -E runs the code through the compiler's parser,
18467 # not just through cpp. "Syntax error" is here to catch this case.
18468 cat >conftest.$ac_ext <<_ACEOF
18469/* confdefs.h. */
18470_ACEOF
18471cat confdefs.h >>conftest.$ac_ext
18472cat >>conftest.$ac_ext <<_ACEOF
18473/* end confdefs.h. */
18474#ifdef __STDC__
18475# include <limits.h>
18476#else
18477# include <assert.h>
18478#endif
18479 Syntax error
18480_ACEOF
18481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18483 ac_status=$?
18484 grep -v '^ *+' conftest.er1 >conftest.err
18485 rm -f conftest.er1
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } >/dev/null; then
18489 if test -s conftest.err; then
18490 ac_cpp_err=$ac_cxx_preproc_warn_flag
18491 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18492 else
18493 ac_cpp_err=
18494 fi
18495else
18496 ac_cpp_err=yes
18497fi
18498if test -z "$ac_cpp_err"; then
18499 :
18500else
18501 echo "$as_me: failed program was:" >&5
18502sed 's/^/| /' conftest.$ac_ext >&5
18503
18504 # Broken: fails on valid input.
18505continue
18506fi
18507rm -f conftest.err conftest.$ac_ext
18508
18509 # OK, works on sane cases. Now check whether non-existent headers
18510 # can be detected and how.
18511 cat >conftest.$ac_ext <<_ACEOF
18512/* confdefs.h. */
18513_ACEOF
18514cat confdefs.h >>conftest.$ac_ext
18515cat >>conftest.$ac_ext <<_ACEOF
18516/* end confdefs.h. */
18517#include <ac_nonexistent.h>
18518_ACEOF
18519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } >/dev/null; then
18527 if test -s conftest.err; then
18528 ac_cpp_err=$ac_cxx_preproc_warn_flag
18529 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18530 else
18531 ac_cpp_err=
18532 fi
18533else
18534 ac_cpp_err=yes
18535fi
18536if test -z "$ac_cpp_err"; then
18537 # Broken: success on invalid input.
18538continue
18539else
18540 echo "$as_me: failed program was:" >&5
18541sed 's/^/| /' conftest.$ac_ext >&5
18542
18543 # Passes both tests.
18544ac_preproc_ok=:
18545break
18546fi
18547rm -f conftest.err conftest.$ac_ext
18548
18549done
18550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18551rm -f conftest.err conftest.$ac_ext
18552if $ac_preproc_ok; then
18553 break
18554fi
18555
18556 done
18557 ac_cv_prog_CXXCPP=$CXXCPP
18558
18559fi
18560 CXXCPP=$ac_cv_prog_CXXCPP
18561else
18562 ac_cv_prog_CXXCPP=$CXXCPP
18563fi
18564echo "$as_me:$LINENO: result: $CXXCPP" >&5
18565echo "${ECHO_T}$CXXCPP" >&6
18566ac_preproc_ok=false
18567for ac_cxx_preproc_warn_flag in '' yes
18568do
18569 # Use a header file that comes with gcc, so configuring glibc
18570 # with a fresh cross-compiler works.
18571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18572 # <limits.h> exists even on freestanding compilers.
18573 # On the NeXT, cc -E runs the code through the compiler's parser,
18574 # not just through cpp. "Syntax error" is here to catch this case.
18575 cat >conftest.$ac_ext <<_ACEOF
18576/* confdefs.h. */
18577_ACEOF
18578cat confdefs.h >>conftest.$ac_ext
18579cat >>conftest.$ac_ext <<_ACEOF
18580/* end confdefs.h. */
18581#ifdef __STDC__
18582# include <limits.h>
18583#else
18584# include <assert.h>
18585#endif
18586 Syntax error
18587_ACEOF
18588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18590 ac_status=$?
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } >/dev/null; then
18596 if test -s conftest.err; then
18597 ac_cpp_err=$ac_cxx_preproc_warn_flag
18598 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18599 else
18600 ac_cpp_err=
18601 fi
18602else
18603 ac_cpp_err=yes
18604fi
18605if test -z "$ac_cpp_err"; then
18606 :
18607else
18608 echo "$as_me: failed program was:" >&5
18609sed 's/^/| /' conftest.$ac_ext >&5
18610
18611 # Broken: fails on valid input.
18612continue
18613fi
18614rm -f conftest.err conftest.$ac_ext
18615
18616 # OK, works on sane cases. Now check whether non-existent headers
18617 # can be detected and how.
18618 cat >conftest.$ac_ext <<_ACEOF
18619/* confdefs.h. */
18620_ACEOF
18621cat confdefs.h >>conftest.$ac_ext
18622cat >>conftest.$ac_ext <<_ACEOF
18623/* end confdefs.h. */
18624#include <ac_nonexistent.h>
18625_ACEOF
18626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18628 ac_status=$?
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } >/dev/null; then
18634 if test -s conftest.err; then
18635 ac_cpp_err=$ac_cxx_preproc_warn_flag
18636 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18637 else
18638 ac_cpp_err=
18639 fi
18640else
18641 ac_cpp_err=yes
18642fi
18643if test -z "$ac_cpp_err"; then
18644 # Broken: success on invalid input.
18645continue
18646else
18647 echo "$as_me: failed program was:" >&5
18648sed 's/^/| /' conftest.$ac_ext >&5
18649
18650 # Passes both tests.
18651ac_preproc_ok=:
18652break
18653fi
18654rm -f conftest.err conftest.$ac_ext
18655
18656done
18657# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18658rm -f conftest.err conftest.$ac_ext
18659if $ac_preproc_ok; then
18660 :
18661else
18662 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18663See \`config.log' for more details." >&5
18664echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18665See \`config.log' for more details." >&2;}
18666 { (exit 1); exit 1; }; }
18667fi
18668
18669ac_ext=cc
18670ac_cpp='$CXXCPP $CPPFLAGS'
18671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18674
18675
18676
18677
18678
18679 ac_ext=cc
18680ac_cpp='$CXXCPP $CPPFLAGS'
18681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18684
18685
18686
18687for ac_header in iostream
18688do
18689as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18690if eval "test \"\${$as_ac_Header+set}\" = set"; then
18691 echo "$as_me:$LINENO: checking for $ac_header" >&5
18692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18693if eval "test \"\${$as_ac_Header+set}\" = set"; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18695fi
18696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18698else
18699 # Is the header compilable?
18700echo "$as_me:$LINENO: checking $ac_header usability" >&5
18701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18702cat >conftest.$ac_ext <<_ACEOF
18703/* confdefs.h. */
18704_ACEOF
18705cat confdefs.h >>conftest.$ac_ext
18706cat >>conftest.$ac_ext <<_ACEOF
18707/* end confdefs.h. */
18708$ac_includes_default
18709#include <$ac_header>
18710_ACEOF
18711rm -f conftest.$ac_objext
18712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18713 (eval $ac_compile) 2>conftest.er1
18714 ac_status=$?
18715 grep -v '^ *+' conftest.er1 >conftest.err
18716 rm -f conftest.er1
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
dcc1b6ad
VS
18720 { ac_try='test -z "$ac_cxx_werror_flag"
18721 || test ! -s conftest.err'
a848cd7e
SC
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest.$ac_objext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 ac_header_compiler=yes
18734else
18735 echo "$as_me: failed program was:" >&5
18736sed 's/^/| /' conftest.$ac_ext >&5
18737
18738ac_header_compiler=no
18739fi
18740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18741echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18742echo "${ECHO_T}$ac_header_compiler" >&6
18743
18744# Is the header present?
18745echo "$as_me:$LINENO: checking $ac_header presence" >&5
18746echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18747cat >conftest.$ac_ext <<_ACEOF
18748/* confdefs.h. */
18749_ACEOF
18750cat confdefs.h >>conftest.$ac_ext
18751cat >>conftest.$ac_ext <<_ACEOF
18752/* end confdefs.h. */
18753#include <$ac_header>
18754_ACEOF
18755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18757 ac_status=$?
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } >/dev/null; then
18763 if test -s conftest.err; then
18764 ac_cpp_err=$ac_cxx_preproc_warn_flag
18765 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18766 else
18767 ac_cpp_err=
18768 fi
18769else
18770 ac_cpp_err=yes
18771fi
18772if test -z "$ac_cpp_err"; then
18773 ac_header_preproc=yes
18774else
18775 echo "$as_me: failed program was:" >&5
18776sed 's/^/| /' conftest.$ac_ext >&5
18777
18778 ac_header_preproc=no
18779fi
18780rm -f conftest.err conftest.$ac_ext
18781echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18782echo "${ECHO_T}$ac_header_preproc" >&6
18783
18784# So? What about this header?
18785case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18786 yes:no: )
18787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18788echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18790echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18791 ac_header_preproc=yes
18792 ;;
18793 no:yes:* )
18794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18795echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18797echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18799echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18801echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18805echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18806 (
18807 cat <<\_ASBOX
18808## ----------------------------------------- ##
18809## Report this to wx-dev@lists.wxwindows.org ##
18810## ----------------------------------------- ##
18811_ASBOX
18812 ) |
18813 sed "s/^/$as_me: WARNING: /" >&2
18814 ;;
18815esac
18816echo "$as_me:$LINENO: checking for $ac_header" >&5
18817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18818if eval "test \"\${$as_ac_Header+set}\" = set"; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18820else
18821 eval "$as_ac_Header=\$ac_header_preproc"
18822fi
18823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18825
18826fi
18827if test `eval echo '${'$as_ac_Header'}'` = yes; then
18828 cat >>confdefs.h <<_ACEOF
18829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18830_ACEOF
18831
18832fi
18833
18834done
18835
18836
18837 if test "$ac_cv_header_iostream" = "yes" ; then
18838 :
18839 else
18840 cat >>confdefs.h <<\_ACEOF
18841#define wxUSE_IOSTREAMH 1
18842_ACEOF
18843
18844 fi
18845
18846 ac_ext=c
18847ac_cpp='$CPP $CPPFLAGS'
18848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18850ac_compiler_gnu=$ac_cv_c_compiler_gnu
18851
18852
18853
18854
18855 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18856echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18857if test "${wx_cv_cpp_bool+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859else
18860
18861
18862
18863 ac_ext=cc
18864ac_cpp='$CXXCPP $CPPFLAGS'
18865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18868
18869
18870 cat >conftest.$ac_ext <<_ACEOF
18871/* confdefs.h. */
18872_ACEOF
18873cat confdefs.h >>conftest.$ac_ext
18874cat >>conftest.$ac_ext <<_ACEOF
18875/* end confdefs.h. */
18876
18877
18878int
18879main ()
18880{
18881
18882 bool b = true;
18883
18884 return 0;
18885
18886 ;
18887 return 0;
18888}
18889_ACEOF
18890rm -f conftest.$ac_objext
18891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18892 (eval $ac_compile) 2>conftest.er1
18893 ac_status=$?
18894 grep -v '^ *+' conftest.er1 >conftest.err
18895 rm -f conftest.er1
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } &&
dcc1b6ad
VS
18899 { ac_try='test -z "$ac_cxx_werror_flag"
18900 || test ! -s conftest.err'
a848cd7e
SC
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; } &&
18906 { ac_try='test -s conftest.$ac_objext'
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18909 ac_status=$?
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; }; then
18912
18913 wx_cv_cpp_bool=yes
18914
18915else
18916 echo "$as_me: failed program was:" >&5
18917sed 's/^/| /' conftest.$ac_ext >&5
18918
18919
18920 wx_cv_cpp_bool=no
18921
18922
18923fi
18924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18925
18926 ac_ext=c
18927ac_cpp='$CPP $CPPFLAGS'
18928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18930ac_compiler_gnu=$ac_cv_c_compiler_gnu
18931
18932
18933fi
18934echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18935echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18936
18937 if test "$wx_cv_cpp_bool" = "yes"; then
18938 cat >>confdefs.h <<\_ACEOF
18939#define HAVE_BOOL 1
18940_ACEOF
18941
18942 fi
18943
18944
18945
18946 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18947echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18948if test "${wx_cv_explicit+set}" = set; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18950else
18951
18952
18953
18954 ac_ext=cc
18955ac_cpp='$CXXCPP $CPPFLAGS'
18956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18959
18960
18961 cat >conftest.$ac_ext <<_ACEOF
18962/* confdefs.h. */
18963_ACEOF
18964cat confdefs.h >>conftest.$ac_ext
18965cat >>conftest.$ac_ext <<_ACEOF
18966/* end confdefs.h. */
18967
18968 class Foo { public: explicit Foo(int) {} };
18969
18970int
18971main ()
18972{
18973
18974 return 0;
18975
18976 ;
18977 return 0;
18978}
18979_ACEOF
18980rm -f conftest.$ac_objext
18981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18982 (eval $ac_compile) 2>conftest.er1
18983 ac_status=$?
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
dcc1b6ad
VS
18989 { ac_try='test -z "$ac_cxx_werror_flag"
18990 || test ! -s conftest.err'
a848cd7e
SC
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest.$ac_objext'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
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 static void TakeFoo(const Foo& foo) { }
19012
19013int
19014main ()
19015{
19016
19017 TakeFoo(17);
19018 return 0;
19019
19020 ;
19021 return 0;
19022}
19023_ACEOF
19024rm -f conftest.$ac_objext
19025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19026 (eval $ac_compile) 2>conftest.er1
19027 ac_status=$?
19028 grep -v '^ *+' conftest.er1 >conftest.err
19029 rm -f conftest.er1
19030 cat conftest.err >&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } &&
dcc1b6ad
VS
19033 { ac_try='test -z "$ac_cxx_werror_flag"
19034 || test ! -s conftest.err'
a848cd7e
SC
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; } &&
19040 { ac_try='test -s conftest.$ac_objext'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; }; then
19046 wx_cv_explicit=no
19047else
19048 echo "$as_me: failed program was:" >&5
19049sed 's/^/| /' conftest.$ac_ext >&5
19050
19051wx_cv_explicit=yes
19052
19053fi
19054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19055
19056else
19057 echo "$as_me: failed program was:" >&5
19058sed 's/^/| /' conftest.$ac_ext >&5
19059
19060wx_cv_explicit=no
19061
19062fi
19063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19064
19065 ac_ext=c
19066ac_cpp='$CPP $CPPFLAGS'
19067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19069ac_compiler_gnu=$ac_cv_c_compiler_gnu
19070
19071
19072fi
19073echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19074echo "${ECHO_T}$wx_cv_explicit" >&6
19075
19076 if test "$wx_cv_explicit" = "yes"; then
19077 cat >>confdefs.h <<\_ACEOF
19078#define HAVE_EXPLICIT 1
19079_ACEOF
19080
19081 fi
19082
19083
19084echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19085echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19086if test "${ac_cv_cxx_const_cast+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19088else
19089
19090
19091 ac_ext=cc
19092ac_cpp='$CXXCPP $CPPFLAGS'
19093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19096
19097 cat >conftest.$ac_ext <<_ACEOF
19098/* confdefs.h. */
19099_ACEOF
19100cat confdefs.h >>conftest.$ac_ext
19101cat >>conftest.$ac_ext <<_ACEOF
19102/* end confdefs.h. */
19103
19104int
19105main ()
19106{
19107int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19108 ;
19109 return 0;
19110}
19111_ACEOF
19112rm -f conftest.$ac_objext
19113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19114 (eval $ac_compile) 2>conftest.er1
19115 ac_status=$?
19116 grep -v '^ *+' conftest.er1 >conftest.err
19117 rm -f conftest.er1
19118 cat conftest.err >&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } &&
dcc1b6ad
VS
19121 { ac_try='test -z "$ac_cxx_werror_flag"
19122 || test ! -s conftest.err'
a848cd7e
SC
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; } &&
19128 { ac_try='test -s conftest.$ac_objext'
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; }; then
19134 ac_cv_cxx_const_cast=yes
19135else
19136 echo "$as_me: failed program was:" >&5
19137sed 's/^/| /' conftest.$ac_ext >&5
19138
19139ac_cv_cxx_const_cast=no
19140fi
19141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19142 ac_ext=c
19143ac_cpp='$CPP $CPPFLAGS'
19144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19146ac_compiler_gnu=$ac_cv_c_compiler_gnu
19147
19148
19149fi
19150echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19151echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19152if test "$ac_cv_cxx_const_cast" = yes; then
19153
19154cat >>confdefs.h <<\_ACEOF
19155#define HAVE_CONST_CAST
19156_ACEOF
19157
19158fi
19159
19160echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19161echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19162if test "${ac_cv_cxx_static_cast+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19164else
19165
19166
19167 ac_ext=cc
19168ac_cpp='$CXXCPP $CPPFLAGS'
19169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19172
19173 cat >conftest.$ac_ext <<_ACEOF
19174/* confdefs.h. */
19175_ACEOF
19176cat confdefs.h >>conftest.$ac_ext
19177cat >>conftest.$ac_ext <<_ACEOF
19178/* end confdefs.h. */
19179#include <typeinfo>
19180class Base { public : Base () {} virtual void f () = 0; };
19181class Derived : public Base { public : Derived () {} virtual void f () {} };
19182int g (Derived&) { return 0; }
19183int
19184main ()
19185{
19186
19187Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19188 ;
19189 return 0;
19190}
19191_ACEOF
19192rm -f conftest.$ac_objext
19193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19194 (eval $ac_compile) 2>conftest.er1
19195 ac_status=$?
19196 grep -v '^ *+' conftest.er1 >conftest.err
19197 rm -f conftest.er1
19198 cat conftest.err >&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); } &&
dcc1b6ad
VS
19201 { ac_try='test -z "$ac_cxx_werror_flag"
19202 || test ! -s conftest.err'
a848cd7e
SC
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; } &&
19208 { ac_try='test -s conftest.$ac_objext'
19209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210 (eval $ac_try) 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
19214 ac_cv_cxx_static_cast=yes
19215else
19216 echo "$as_me: failed program was:" >&5
19217sed 's/^/| /' conftest.$ac_ext >&5
19218
19219ac_cv_cxx_static_cast=no
19220fi
19221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19222 ac_ext=c
19223ac_cpp='$CPP $CPPFLAGS'
19224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19226ac_compiler_gnu=$ac_cv_c_compiler_gnu
19227
19228
19229fi
19230echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19231echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19232if test "$ac_cv_cxx_static_cast" = yes; then
19233
19234cat >>confdefs.h <<\_ACEOF
19235#define HAVE_STATIC_CAST
19236_ACEOF
19237
19238fi
19239
19240
19241if test "$wxUSE_STL" = "yes"; then
19242 ac_ext=cc
19243ac_cpp='$CXXCPP $CPPFLAGS'
19244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19247
19248
19249 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19250echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19251 cat >conftest.$ac_ext <<_ACEOF
19252/* confdefs.h. */
19253_ACEOF
19254cat confdefs.h >>conftest.$ac_ext
19255cat >>conftest.$ac_ext <<_ACEOF
19256/* end confdefs.h. */
19257#include <string>
19258 #include <functional>
19259 #include <algorithm>
19260 #include <vector>
19261 #include <list>
19262int
19263main ()
19264{
19265std::vector<int> moo;
19266 std::list<int> foo;
19267 std::vector<int>::iterator it =
19268 std::find_if(moo.begin(), moo.end(),
19269 std::bind2nd(std::less<int>(), 3));
19270 ;
19271 return 0;
19272}
19273_ACEOF
19274rm -f conftest.$ac_objext
19275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276 (eval $ac_compile) 2>conftest.er1
19277 ac_status=$?
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
dcc1b6ad
VS
19283 { ac_try='test -z "$ac_cxx_werror_flag"
19284 || test ! -s conftest.err'
a848cd7e
SC
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; } &&
19290 { ac_try='test -s conftest.$ac_objext'
19291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292 (eval $ac_try) 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; }; then
19296 echo "$as_me:$LINENO: result: yes" >&5
19297echo "${ECHO_T}yes" >&6
19298else
19299 echo "$as_me: failed program was:" >&5
19300sed 's/^/| /' conftest.$ac_ext >&5
19301
19302echo "$as_me:$LINENO: result: no" >&5
19303echo "${ECHO_T}no" >&6
19304 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19305echo "$as_me: error: Basic STL functionality missing" >&2;}
19306 { (exit 1); exit 1; }; }
19307fi
19308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19309
19310 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19311echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19312 cat >conftest.$ac_ext <<_ACEOF
19313/* confdefs.h. */
19314_ACEOF
19315cat confdefs.h >>conftest.$ac_ext
19316cat >>conftest.$ac_ext <<_ACEOF
19317/* end confdefs.h. */
19318#include <string>
19319int
19320main ()
19321{
19322std::wstring foo;
19323 ;
19324 return 0;
19325}
19326_ACEOF
19327rm -f conftest.$ac_objext
19328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19329 (eval $ac_compile) 2>conftest.er1
19330 ac_status=$?
19331 grep -v '^ *+' conftest.er1 >conftest.err
19332 rm -f conftest.er1
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } &&
dcc1b6ad
VS
19336 { ac_try='test -z "$ac_cxx_werror_flag"
19337 || test ! -s conftest.err'
a848cd7e
SC
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try='test -s conftest.$ac_objext'
19344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349 echo "$as_me:$LINENO: result: yes" >&5
19350echo "${ECHO_T}yes" >&6
19351 cat >>confdefs.h <<\_ACEOF
19352#define HAVE_STD_WSTRING 1
19353_ACEOF
19354
19355else
19356 echo "$as_me: failed program was:" >&5
19357sed 's/^/| /' conftest.$ac_ext >&5
19358
19359echo "$as_me:$LINENO: result: no" >&5
19360echo "${ECHO_T}no" >&6
19361fi
19362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19363
19364 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19365echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19366 cat >conftest.$ac_ext <<_ACEOF
19367/* confdefs.h. */
19368_ACEOF
19369cat confdefs.h >>conftest.$ac_ext
19370cat >>conftest.$ac_ext <<_ACEOF
19371/* end confdefs.h. */
19372#include <string>
19373int
19374main ()
19375{
19376std::string foo, bar;
19377 foo.compare(bar);
19378 foo.compare(1, 1, bar);
19379 foo.compare(1, 1, bar, 1, 1);
19380 foo.compare("");
19381 foo.compare(1, 1, "");
19382 foo.compare(1, 1, "", 2);
19383 ;
19384 return 0;
19385}
19386_ACEOF
19387rm -f conftest.$ac_objext
19388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19389 (eval $ac_compile) 2>conftest.er1
19390 ac_status=$?
19391 grep -v '^ *+' conftest.er1 >conftest.err
19392 rm -f conftest.er1
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
dcc1b6ad
VS
19396 { ac_try='test -z "$ac_cxx_werror_flag"
19397 || test ! -s conftest.err'
a848cd7e
SC
19398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 (eval $ac_try) 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; } &&
19403 { ac_try='test -s conftest.$ac_objext'
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 echo "$as_me:$LINENO: result: yes" >&5
19410echo "${ECHO_T}yes" >&6
19411 cat >>confdefs.h <<\_ACEOF
19412#define HAVE_STD_STRING_COMPARE 1
19413_ACEOF
19414
19415else
19416 echo "$as_me: failed program was:" >&5
19417sed 's/^/| /' conftest.$ac_ext >&5
19418
19419echo "$as_me:$LINENO: result: no" >&5
19420echo "${ECHO_T}no" >&6
19421fi
19422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19423
19424 ac_ext=c
19425ac_cpp='$CPP $CPPFLAGS'
19426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19428ac_compiler_gnu=$ac_cv_c_compiler_gnu
19429
19430fi
19431
19432
19433SEARCH_INCLUDE="\
19434 /usr/local/include \
19435 \
19436 /usr/Motif-2.1/include \
19437 /usr/Motif-1.2/include \
19438 /usr/include/Motif1.2 \
19439 /opt/xpm/include/X11 \
19440 /opt/GBxpm/include/ \
19441 /opt/GBxpm/X11/include/ \
19442 \
19443 /usr/dt/include \
19444 /usr/openwin/include \
19445 \
19446 /usr/include/Xm \
19447 \
19448 /usr/X11R6/include \
19449 /usr/X11R6.4/include \
19450 /usr/X11R5/include \
19451 /usr/X11R4/include \
19452 \
19453 /usr/include/X11R6 \
19454 /usr/include/X11R5 \
19455 /usr/include/X11R4 \
19456 \
19457 /usr/local/X11R6/include \
19458 /usr/local/X11R5/include \
19459 /usr/local/X11R4/include \
19460 \
19461 /usr/local/include/X11R6 \
19462 /usr/local/include/X11R5 \
19463 /usr/local/include/X11R4 \
19464 \
19465 /usr/X11/include \
19466 /usr/include/X11 \
19467 /usr/local/X11/include \
19468 /usr/local/include/X11 \
19469 \
19470 /usr/X386/include \
19471 /usr/x386/include \
19472 /usr/XFree86/include/X11 \
19473 \
19474 X:/XFree86/include \
19475 X:/XFree86/include/X11 \
19476 \
19477 /usr/include/gtk \
19478 /usr/local/include/gtk \
19479 /usr/include/glib \
19480 /usr/local/include/glib \
19481 \
19482 /usr/include/qt \
19483 /usr/local/include/qt \
19484 \
19485 /usr/local/arm/3.3.2/include \
19486 \
19487 /usr/include/windows \
19488 /usr/include/wine \
19489 /usr/local/include/wine \
19490 \
19491 /usr/unsupported/include \
19492 /usr/athena/include \
19493 /usr/local/x11r5/include \
19494 /usr/lpp/Xamples/include \
19495 \
19496 /usr/openwin/share/include"
19497
19498SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19499
19500
19501cat >confcache <<\_ACEOF
19502# This file is a shell script that caches the results of configure
19503# tests run on this system so they can be shared between configure
19504# scripts and configure runs, see configure's option --config-cache.
19505# It is not useful on other systems. If it contains results you don't
19506# want to keep, you may remove or edit it.
19507#
19508# config.status only pays attention to the cache file if you give it
19509# the --recheck option to rerun configure.
19510#
19511# `ac_cv_env_foo' variables (set or unset) will be overridden when
19512# loading this file, other *unset* `ac_cv_foo' will be assigned the
19513# following values.
19514
19515_ACEOF
19516
19517# The following way of writing the cache mishandles newlines in values,
19518# but we know of no workaround that is simple, portable, and efficient.
19519# So, don't put newlines in cache variables' values.
19520# Ultrix sh set writes to stderr and can't be redirected directly,
19521# and sets the high bit in the cache file unless we assign to the vars.
19522{
19523 (set) 2>&1 |
19524 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19525 *ac_space=\ *)
19526 # `set' does not quote correctly, so add quotes (double-quote
19527 # substitution turns \\\\ into \\, and sed turns \\ into \).
19528 sed -n \
19529 "s/'/'\\\\''/g;
19530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19531 ;;
19532 *)
19533 # `set' quotes correctly as required by POSIX, so do not add quotes.
19534 sed -n \
19535 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19536 ;;
19537 esac;
19538} |
19539 sed '
19540 t clear
19541 : clear
19542 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19543 t end
19544 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19545 : end' >>confcache
19546if diff $cache_file confcache >/dev/null 2>&1; then :; else
19547 if test -w $cache_file; then
19548 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19549 cat confcache >$cache_file
19550 else
19551 echo "not updating unwritable cache $cache_file"
19552 fi
19553fi
19554rm -f confcache
19555
19556if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19557 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19558echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19559if test "${wx_cv_lib_glibc21+set}" = set; then
19560 echo $ECHO_N "(cached) $ECHO_C" >&6
19561else
19562
19563 cat >conftest.$ac_ext <<_ACEOF
19564/* confdefs.h. */
19565_ACEOF
19566cat confdefs.h >>conftest.$ac_ext
19567cat >>conftest.$ac_ext <<_ACEOF
19568/* end confdefs.h. */
19569#include <features.h>
19570int
19571main ()
19572{
19573
19574 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19575 #error not glibc2.1
19576 #endif
19577
19578 ;
19579 return 0;
19580}
19581_ACEOF
19582rm -f conftest.$ac_objext
19583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19584 (eval $ac_compile) 2>conftest.er1
19585 ac_status=$?
19586 grep -v '^ *+' conftest.er1 >conftest.err
19587 rm -f conftest.er1
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } &&
dcc1b6ad
VS
19591 { ac_try='test -z "$ac_c_werror_flag"
19592 || test ! -s conftest.err'
a848cd7e
SC
19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; } &&
19598 { ac_try='test -s conftest.$ac_objext'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604
19605 wx_cv_lib_glibc21=yes
19606
19607else
19608 echo "$as_me: failed program was:" >&5
19609sed 's/^/| /' conftest.$ac_ext >&5
19610
19611
19612 wx_cv_lib_glibc21=no
19613
19614
19615fi
19616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19617
19618fi
19619echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19620echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
19621 if test "$wx_cv_lib_glibc21" = "yes"; then
19622 cat >>confdefs.h <<\_ACEOF
19623#define wxHAVE_GLIBC2 1
19624_ACEOF
19625
19626 fi
19627fi
19628
19629if test "x$wx_cv_lib_glibc21" = "xyes"; then
19630 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
19631 cat >>confdefs.h <<\_ACEOF
19632#define _GNU_SOURCE 1
19633_ACEOF
19634
19635 fi
19636fi
19637
19638
19639
19640if test "$wxUSE_REGEX" != "no"; then
19641 cat >>confdefs.h <<\_ACEOF
19642#define wxUSE_REGEX 1
19643_ACEOF
19644
19645
19646 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
19647 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19648echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
19649 wxUSE_REGEX=builtin
19650 fi
19651
19652 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
19653 if test "${ac_cv_header_regex_h+set}" = set; then
19654 echo "$as_me:$LINENO: checking for regex.h" >&5
19655echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19656if test "${ac_cv_header_regex_h+set}" = set; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19658fi
19659echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19660echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19661else
19662 # Is the header compilable?
19663echo "$as_me:$LINENO: checking regex.h usability" >&5
19664echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19665cat >conftest.$ac_ext <<_ACEOF
19666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
19671$ac_includes_default
19672#include <regex.h>
19673_ACEOF
19674rm -f conftest.$ac_objext
19675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19676 (eval $ac_compile) 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
dcc1b6ad
VS
19683 { ac_try='test -z "$ac_c_werror_flag"
19684 || test ! -s conftest.err'
a848cd7e
SC
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; } &&
19690 { ac_try='test -s conftest.$ac_objext'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696 ac_header_compiler=yes
19697else
19698 echo "$as_me: failed program was:" >&5
19699sed 's/^/| /' conftest.$ac_ext >&5
19700
19701ac_header_compiler=no
19702fi
19703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19704echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19705echo "${ECHO_T}$ac_header_compiler" >&6
19706
19707# Is the header present?
19708echo "$as_me:$LINENO: checking regex.h presence" >&5
19709echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19710cat >conftest.$ac_ext <<_ACEOF
19711/* confdefs.h. */
19712_ACEOF
19713cat confdefs.h >>conftest.$ac_ext
19714cat >>conftest.$ac_ext <<_ACEOF
19715/* end confdefs.h. */
19716#include <regex.h>
19717_ACEOF
19718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19720 ac_status=$?
19721 grep -v '^ *+' conftest.er1 >conftest.err
19722 rm -f conftest.er1
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } >/dev/null; then
19726 if test -s conftest.err; then
19727 ac_cpp_err=$ac_c_preproc_warn_flag
19728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19729 else
19730 ac_cpp_err=
19731 fi
19732else
19733 ac_cpp_err=yes
19734fi
19735if test -z "$ac_cpp_err"; then
19736 ac_header_preproc=yes
19737else
19738 echo "$as_me: failed program was:" >&5
19739sed 's/^/| /' conftest.$ac_ext >&5
19740
19741 ac_header_preproc=no
19742fi
19743rm -f conftest.err conftest.$ac_ext
19744echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19745echo "${ECHO_T}$ac_header_preproc" >&6
19746
19747# So? What about this header?
19748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19749 yes:no: )
19750 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19751echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19752 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19753echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19754 ac_header_preproc=yes
19755 ;;
19756 no:yes:* )
19757 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19758echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
19759 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19760echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19761 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19762echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19763 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19764echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
19765 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19766echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
19767 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19768echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
19769 (
19770 cat <<\_ASBOX
19771## ----------------------------------------- ##
19772## Report this to wx-dev@lists.wxwindows.org ##
19773## ----------------------------------------- ##
19774_ASBOX
19775 ) |
19776 sed "s/^/$as_me: WARNING: /" >&2
19777 ;;
19778esac
19779echo "$as_me:$LINENO: checking for regex.h" >&5
19780echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19781if test "${ac_cv_header_regex_h+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19783else
19784 ac_cv_header_regex_h=$ac_header_preproc
19785fi
19786echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19787echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19788
19789fi
19790if test $ac_cv_header_regex_h = yes; then
19791
19792for ac_func in regcomp
19793do
19794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19795echo "$as_me:$LINENO: checking for $ac_func" >&5
19796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19797if eval "test \"\${$as_ac_var+set}\" = set"; then
19798 echo $ECHO_N "(cached) $ECHO_C" >&6
19799else
19800 cat >conftest.$ac_ext <<_ACEOF
19801/* confdefs.h. */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
19805/* end confdefs.h. */
19806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19808#define $ac_func innocuous_$ac_func
19809
19810/* System header to define __stub macros and hopefully few prototypes,
19811 which can conflict with char $ac_func (); below.
19812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19813 <limits.h> exists even on freestanding compilers. */
19814
19815#ifdef __STDC__
19816# include <limits.h>
19817#else
19818# include <assert.h>
19819#endif
19820
19821#undef $ac_func
19822
19823/* Override any gcc2 internal prototype to avoid an error. */
19824#ifdef __cplusplus
19825extern "C"
19826{
19827#endif
19828/* We use char because int might match the return type of a gcc2
19829 builtin and then its argument prototype would still apply. */
19830char $ac_func ();
19831/* The GNU C library defines this for functions which it implements
19832 to always fail with ENOSYS. Some functions are actually named
19833 something starting with __ and the normal name is an alias. */
19834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19835choke me
19836#else
19837char (*f) () = $ac_func;
19838#endif
19839#ifdef __cplusplus
19840}
19841#endif
19842
19843int
19844main ()
19845{
19846return f != $ac_func;
19847 ;
19848 return 0;
19849}
19850_ACEOF
19851rm -f conftest.$ac_objext conftest$ac_exeext
19852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19853 (eval $ac_link) 2>conftest.er1
19854 ac_status=$?
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
dcc1b6ad
VS
19860 { ac_try='test -z "$ac_c_werror_flag"
19861 || test ! -s conftest.err'
a848cd7e
SC
19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19864 ac_status=$?
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; } &&
19867 { ac_try='test -s conftest$ac_exeext'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 eval "$as_ac_var=yes"
19874else
19875 echo "$as_me: failed program was:" >&5
19876sed 's/^/| /' conftest.$ac_ext >&5
19877
19878eval "$as_ac_var=no"
19879fi
19880rm -f conftest.err conftest.$ac_objext \
19881 conftest$ac_exeext conftest.$ac_ext
19882fi
19883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19884echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19885if test `eval echo '${'$as_ac_var'}'` = yes; then
19886 cat >>confdefs.h <<_ACEOF
19887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19888_ACEOF
19889
19890fi
19891done
19892
19893fi
19894
19895
19896
19897 if test "x$ac_cv_func_regcomp" != "xyes"; then
19898 if test "$wxUSE_REGEX" = "sys" ; then
19899 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19900echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19901 { (exit 1); exit 1; }; }
19902 else
19903 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19904echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
19905 wxUSE_REGEX=builtin
19906 fi
19907 else
19908 wxUSE_REGEX=sys
19909 cat >>confdefs.h <<\_ACEOF
19910#define WX_NO_REGEX_ADVANCED 1
19911_ACEOF
19912
19913 fi
19914 fi
19915fi
19916
19917
19918ZLIB_LINK=
19919if test "$wxUSE_ZLIB" != "no" ; then
19920 cat >>confdefs.h <<\_ACEOF
19921#define wxUSE_ZLIB 1
19922_ACEOF
19923
19924
19925 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
19926 if test "$USE_DARWIN" = 1; then
19927 system_zlib_h_ok="yes"
19928 else
19929 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19930echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19931if test "${ac_cv_header_zlib_h+set}" = set; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
19933else
19934 if test "$cross_compiling" = yes; then
19935 unset ac_cv_header_zlib_h
19936
19937else
19938 cat >conftest.$ac_ext <<_ACEOF
19939/* confdefs.h. */
19940_ACEOF
19941cat confdefs.h >>conftest.$ac_ext
19942cat >>conftest.$ac_ext <<_ACEOF
19943/* end confdefs.h. */
19944
19945 #include <zlib.h>
19946 #include <stdio.h>
19947
19948 int main()
19949 {
19950 FILE *f=fopen("conftestval", "w");
19951 if (!f) exit(1);
19952 fprintf(f, "%s",
19953 ZLIB_VERSION[0] == '1' &&
19954 (ZLIB_VERSION[2] > '1' ||
19955 (ZLIB_VERSION[2] == '1' &&
19956 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19957 exit(0);
19958 }
19959
19960_ACEOF
19961rm -f conftest$ac_exeext
19962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19963 (eval $ac_link) 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_cv_header_zlib_h=`cat conftestval`
19973else
19974 echo "$as_me: program exited with status $ac_status" >&5
19975echo "$as_me: failed program was:" >&5
19976sed 's/^/| /' conftest.$ac_ext >&5
19977
19978( exit $ac_status )
19979ac_cv_header_zlib_h=no
19980fi
19981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19982fi
19983
19984fi
19985echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19986echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19987 if test "${ac_cv_header_zlib_h+set}" = set; then
19988 echo "$as_me:$LINENO: checking for zlib.h" >&5
19989echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19990if test "${ac_cv_header_zlib_h+set}" = set; then
19991 echo $ECHO_N "(cached) $ECHO_C" >&6
19992fi
19993echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19994echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19995else
19996 # Is the header compilable?
19997echo "$as_me:$LINENO: checking zlib.h usability" >&5
19998echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19999cat >conftest.$ac_ext <<_ACEOF
20000/* confdefs.h. */
20001_ACEOF
20002cat confdefs.h >>conftest.$ac_ext
20003cat >>conftest.$ac_ext <<_ACEOF
20004/* end confdefs.h. */
20005$ac_includes_default
20006#include <zlib.h>
20007_ACEOF
20008rm -f conftest.$ac_objext
20009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20010 (eval $ac_compile) 2>conftest.er1
20011 ac_status=$?
20012 grep -v '^ *+' conftest.er1 >conftest.err
20013 rm -f conftest.er1
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } &&
dcc1b6ad
VS
20017 { ac_try='test -z "$ac_c_werror_flag"
20018 || test ! -s conftest.err'
a848cd7e
SC
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20021 ac_status=$?
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; } &&
20024 { ac_try='test -s conftest.$ac_objext'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20027 ac_status=$?
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20030 ac_header_compiler=yes
20031else
20032 echo "$as_me: failed program was:" >&5
20033sed 's/^/| /' conftest.$ac_ext >&5
20034
20035ac_header_compiler=no
20036fi
20037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20038echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20039echo "${ECHO_T}$ac_header_compiler" >&6
20040
20041# Is the header present?
20042echo "$as_me:$LINENO: checking zlib.h presence" >&5
20043echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20044cat >conftest.$ac_ext <<_ACEOF
20045/* confdefs.h. */
20046_ACEOF
20047cat confdefs.h >>conftest.$ac_ext
20048cat >>conftest.$ac_ext <<_ACEOF
20049/* end confdefs.h. */
20050#include <zlib.h>
20051_ACEOF
20052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20054 ac_status=$?
20055 grep -v '^ *+' conftest.er1 >conftest.err
20056 rm -f conftest.er1
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } >/dev/null; then
20060 if test -s conftest.err; then
20061 ac_cpp_err=$ac_c_preproc_warn_flag
20062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20063 else
20064 ac_cpp_err=
20065 fi
20066else
20067 ac_cpp_err=yes
20068fi
20069if test -z "$ac_cpp_err"; then
20070 ac_header_preproc=yes
20071else
20072 echo "$as_me: failed program was:" >&5
20073sed 's/^/| /' conftest.$ac_ext >&5
20074
20075 ac_header_preproc=no
20076fi
20077rm -f conftest.err conftest.$ac_ext
20078echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20079echo "${ECHO_T}$ac_header_preproc" >&6
20080
20081# So? What about this header?
20082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20083 yes:no: )
20084 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20085echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20087echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20088 ac_header_preproc=yes
20089 ;;
20090 no:yes:* )
20091 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20092echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20094echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20096echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20098echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20100echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20102echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20103 (
20104 cat <<\_ASBOX
20105## ----------------------------------------- ##
20106## Report this to wx-dev@lists.wxwindows.org ##
20107## ----------------------------------------- ##
20108_ASBOX
20109 ) |
20110 sed "s/^/$as_me: WARNING: /" >&2
20111 ;;
20112esac
20113echo "$as_me:$LINENO: checking for zlib.h" >&5
20114echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20115if test "${ac_cv_header_zlib_h+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20117else
20118 ac_cv_header_zlib_h=$ac_header_preproc
20119fi
20120echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20121echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20122
20123fi
20124
20125
20126
20127 system_zlib_h_ok=$ac_cv_header_zlib_h
20128 fi
20129
20130 if test "$system_zlib_h_ok" = "yes"; then
20131 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20132echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20133if test "${ac_cv_lib_z_deflate+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20135else
20136 ac_check_lib_save_LIBS=$LIBS
20137LIBS="-lz $LIBS"
20138cat >conftest.$ac_ext <<_ACEOF
20139/* confdefs.h. */
20140_ACEOF
20141cat confdefs.h >>conftest.$ac_ext
20142cat >>conftest.$ac_ext <<_ACEOF
20143/* end confdefs.h. */
20144
20145/* Override any gcc2 internal prototype to avoid an error. */
20146#ifdef __cplusplus
20147extern "C"
20148#endif
20149/* We use char because int might match the return type of a gcc2
20150 builtin and then its argument prototype would still apply. */
20151char deflate ();
20152int
20153main ()
20154{
20155deflate ();
20156 ;
20157 return 0;
20158}
20159_ACEOF
20160rm -f conftest.$ac_objext conftest$ac_exeext
20161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20162 (eval $ac_link) 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } &&
dcc1b6ad
VS
20169 { ac_try='test -z "$ac_c_werror_flag"
20170 || test ! -s conftest.err'
a848cd7e
SC
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; } &&
20176 { ac_try='test -s conftest$ac_exeext'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; }; then
20182 ac_cv_lib_z_deflate=yes
20183else
20184 echo "$as_me: failed program was:" >&5
20185sed 's/^/| /' conftest.$ac_ext >&5
20186
20187ac_cv_lib_z_deflate=no
20188fi
20189rm -f conftest.err conftest.$ac_objext \
20190 conftest$ac_exeext conftest.$ac_ext
20191LIBS=$ac_check_lib_save_LIBS
20192fi
20193echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20194echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20195if test $ac_cv_lib_z_deflate = yes; then
20196 ZLIB_LINK=" -lz"
20197fi
20198
20199 fi
20200
20201 if test "x$ZLIB_LINK" = "x" ; then
20202 if test "$wxUSE_ZLIB" = "sys" ; then
20203 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20204echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20205 { (exit 1); exit 1; }; }
20206 else
20207 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20208echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20209 wxUSE_ZLIB=builtin
20210 fi
20211 else
20212 wxUSE_ZLIB=sys
20213 fi
20214 fi
20215fi
20216
20217
20218PNG_LINK=
20219if test "$wxUSE_LIBPNG" != "no" ; then
20220 cat >>confdefs.h <<\_ACEOF
20221#define wxUSE_LIBPNG 1
20222_ACEOF
20223
20224
20225 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20226 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20227echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20228 wxUSE_LIBPNG=sys
20229 fi
20230
20231 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20232 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20233echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20234 wxUSE_LIBPNG=builtin
20235 fi
20236
20237 if test "$wxUSE_MGL" != 1 ; then
20238 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20239 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20240echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20241if test "${ac_cv_header_png_h+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20243else
20244 if test "$cross_compiling" = yes; then
20245 unset ac_cv_header_png_h
20246
20247else
20248 cat >conftest.$ac_ext <<_ACEOF
20249/* confdefs.h. */
20250_ACEOF
20251cat confdefs.h >>conftest.$ac_ext
20252cat >>conftest.$ac_ext <<_ACEOF
20253/* end confdefs.h. */
20254
20255 #include <png.h>
20256 #include <stdio.h>
20257
20258 int main()
20259 {
20260 FILE *f=fopen("conftestval", "w");
20261 if (!f) exit(1);
20262 fprintf(f, "%s",
20263 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20264 exit(0);
20265 }
20266
20267_ACEOF
20268rm -f conftest$ac_exeext
20269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20270 (eval $ac_link) 2>&5
20271 ac_status=$?
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 ac_cv_header_png_h=`cat conftestval`
20280else
20281 echo "$as_me: program exited with status $ac_status" >&5
20282echo "$as_me: failed program was:" >&5
20283sed 's/^/| /' conftest.$ac_ext >&5
20284
20285( exit $ac_status )
20286ac_cv_header_png_h=no
20287fi
20288rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20289fi
20290
20291fi
20292echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20293echo "${ECHO_T}$ac_cv_header_png_h" >&6
20294 if test "${ac_cv_header_png_h+set}" = set; then
20295 echo "$as_me:$LINENO: checking for png.h" >&5
20296echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20297if test "${ac_cv_header_png_h+set}" = set; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20299fi
20300echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20301echo "${ECHO_T}$ac_cv_header_png_h" >&6
20302else
20303 # Is the header compilable?
20304echo "$as_me:$LINENO: checking png.h usability" >&5
20305echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20306cat >conftest.$ac_ext <<_ACEOF
20307/* confdefs.h. */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h. */
20312$ac_includes_default
20313#include <png.h>
20314_ACEOF
20315rm -f conftest.$ac_objext
20316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20317 (eval $ac_compile) 2>conftest.er1
20318 ac_status=$?
20319 grep -v '^ *+' conftest.er1 >conftest.err
20320 rm -f conftest.er1
20321 cat conftest.err >&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } &&
dcc1b6ad
VS
20324 { ac_try='test -z "$ac_c_werror_flag"
20325 || test ! -s conftest.err'
a848cd7e
SC
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327 (eval $ac_try) 2>&5
20328 ac_status=$?
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; } &&
20331 { ac_try='test -s conftest.$ac_objext'
20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333 (eval $ac_try) 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; }; then
20337 ac_header_compiler=yes
20338else
20339 echo "$as_me: failed program was:" >&5
20340sed 's/^/| /' conftest.$ac_ext >&5
20341
20342ac_header_compiler=no
20343fi
20344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20345echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20346echo "${ECHO_T}$ac_header_compiler" >&6
20347
20348# Is the header present?
20349echo "$as_me:$LINENO: checking png.h presence" >&5
20350echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20351cat >conftest.$ac_ext <<_ACEOF
20352/* confdefs.h. */
20353_ACEOF
20354cat confdefs.h >>conftest.$ac_ext
20355cat >>conftest.$ac_ext <<_ACEOF
20356/* end confdefs.h. */
20357#include <png.h>
20358_ACEOF
20359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20361 ac_status=$?
20362 grep -v '^ *+' conftest.er1 >conftest.err
20363 rm -f conftest.er1
20364 cat conftest.err >&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); } >/dev/null; then
20367 if test -s conftest.err; then
20368 ac_cpp_err=$ac_c_preproc_warn_flag
20369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20370 else
20371 ac_cpp_err=
20372 fi
20373else
20374 ac_cpp_err=yes
20375fi
20376if test -z "$ac_cpp_err"; then
20377 ac_header_preproc=yes
20378else
20379 echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
20382 ac_header_preproc=no
20383fi
20384rm -f conftest.err conftest.$ac_ext
20385echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20386echo "${ECHO_T}$ac_header_preproc" >&6
20387
20388# So? What about this header?
20389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20390 yes:no: )
20391 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20392echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20393 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20394echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20395 ac_header_preproc=yes
20396 ;;
20397 no:yes:* )
20398 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20399echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
20400 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20401echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20402 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20403echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20404 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20405echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
20406 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20407echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
20408 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20409echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
20410 (
20411 cat <<\_ASBOX
20412## ----------------------------------------- ##
20413## Report this to wx-dev@lists.wxwindows.org ##
20414## ----------------------------------------- ##
20415_ASBOX
20416 ) |
20417 sed "s/^/$as_me: WARNING: /" >&2
20418 ;;
20419esac
20420echo "$as_me:$LINENO: checking for png.h" >&5
20421echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20422if test "${ac_cv_header_png_h+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20424else
20425 ac_cv_header_png_h=$ac_header_preproc
20426fi
20427echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20428echo "${ECHO_T}$ac_cv_header_png_h" >&6
20429
20430fi
20431
20432
20433
20434 if test "$ac_cv_header_png_h" = "yes"; then
20435 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20436echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20437if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20439else
20440 ac_check_lib_save_LIBS=$LIBS
20441LIBS="-lpng -lz -lm $LIBS"
20442cat >conftest.$ac_ext <<_ACEOF
20443/* confdefs.h. */
20444_ACEOF
20445cat confdefs.h >>conftest.$ac_ext
20446cat >>conftest.$ac_ext <<_ACEOF
20447/* end confdefs.h. */
20448
20449/* Override any gcc2 internal prototype to avoid an error. */
20450#ifdef __cplusplus
20451extern "C"
20452#endif
20453/* We use char because int might match the return type of a gcc2
20454 builtin and then its argument prototype would still apply. */
20455char png_check_sig ();
20456int
20457main ()
20458{
20459png_check_sig ();
20460 ;
20461 return 0;
20462}
20463_ACEOF
20464rm -f conftest.$ac_objext conftest$ac_exeext
20465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20466 (eval $ac_link) 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
dcc1b6ad
VS
20473 { ac_try='test -z "$ac_c_werror_flag"
20474 || test ! -s conftest.err'
a848cd7e
SC
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; } &&
20480 { ac_try='test -s conftest$ac_exeext'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; }; then
20486 ac_cv_lib_png_png_check_sig=yes
20487else
20488 echo "$as_me: failed program was:" >&5
20489sed 's/^/| /' conftest.$ac_ext >&5
20490
20491ac_cv_lib_png_png_check_sig=no
20492fi
20493rm -f conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext conftest.$ac_ext
20495LIBS=$ac_check_lib_save_LIBS
20496fi
20497echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20498echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20499if test $ac_cv_lib_png_png_check_sig = yes; then
20500 PNG_LINK=" -lpng -lz"
20501fi
20502
20503 fi
20504
20505 if test "x$PNG_LINK" = "x" ; then
20506 if test "$wxUSE_LIBPNG" = "sys" ; then
20507 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20508echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20509 { (exit 1); exit 1; }; }
20510 else
20511 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20512echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20513 wxUSE_LIBPNG=builtin
20514 fi
20515 else
20516 wxUSE_LIBPNG=sys
20517 fi
20518 fi
20519 fi
20520
20521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20522fi
20523
20524
20525JPEG_LINK=
20526if test "$wxUSE_LIBJPEG" != "no" ; then
20527 cat >>confdefs.h <<\_ACEOF
20528#define wxUSE_LIBJPEG 1
20529_ACEOF
20530
20531
20532 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20533 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20534echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20535 wxUSE_LIBJPEG=sys
20536 fi
20537
20538 if test "$wxUSE_MGL" != 1 ; then
20539 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20540 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20541echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20542 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20544else
20545 cat >conftest.$ac_ext <<_ACEOF
20546/* confdefs.h. */
20547_ACEOF
20548cat confdefs.h >>conftest.$ac_ext
20549cat >>conftest.$ac_ext <<_ACEOF
20550/* end confdefs.h. */
20551
20552 #undef HAVE_STDLIB_H
20553 #include <stdio.h>
20554 #include <jpeglib.h>
20555
20556int
20557main ()
20558{
20559
20560
20561 ;
20562 return 0;
20563}
20564_ACEOF
20565rm -f conftest.$ac_objext
20566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20567 (eval $ac_compile) 2>conftest.er1
20568 ac_status=$?
20569 grep -v '^ *+' conftest.er1 >conftest.err
20570 rm -f conftest.er1
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } &&
dcc1b6ad
VS
20574 { ac_try='test -z "$ac_c_werror_flag"
20575 || test ! -s conftest.err'
a848cd7e
SC
20576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577 (eval $ac_try) 2>&5
20578 ac_status=$?
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; } &&
20581 { ac_try='test -s conftest.$ac_objext'
20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
20587 ac_cv_header_jpeglib_h=yes
20588else
20589 echo "$as_me: failed program was:" >&5
20590sed 's/^/| /' conftest.$ac_ext >&5
20591
20592ac_cv_header_jpeglib_h=no
20593
20594fi
20595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20596
20597fi
20598
20599 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20600echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
20601
20602 if test "$ac_cv_header_jpeglib_h" = "yes"; then
20603 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20604echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20605if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20607else
20608 ac_check_lib_save_LIBS=$LIBS
20609LIBS="-ljpeg $LIBS"
20610cat >conftest.$ac_ext <<_ACEOF
20611/* confdefs.h. */
20612_ACEOF
20613cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h. */
20616
20617/* Override any gcc2 internal prototype to avoid an error. */
20618#ifdef __cplusplus
20619extern "C"
20620#endif
20621/* We use char because int might match the return type of a gcc2
20622 builtin and then its argument prototype would still apply. */
20623char jpeg_read_header ();
20624int
20625main ()
20626{
20627jpeg_read_header ();
20628 ;
20629 return 0;
20630}
20631_ACEOF
20632rm -f conftest.$ac_objext conftest$ac_exeext
20633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20634 (eval $ac_link) 2>conftest.er1
20635 ac_status=$?
20636 grep -v '^ *+' conftest.er1 >conftest.err
20637 rm -f conftest.er1
20638 cat conftest.err >&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); } &&
dcc1b6ad
VS
20641 { ac_try='test -z "$ac_c_werror_flag"
20642 || test ! -s conftest.err'
a848cd7e
SC
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; } &&
20648 { ac_try='test -s conftest$ac_exeext'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; }; then
20654 ac_cv_lib_jpeg_jpeg_read_header=yes
20655else
20656 echo "$as_me: failed program was:" >&5
20657sed 's/^/| /' conftest.$ac_ext >&5
20658
20659ac_cv_lib_jpeg_jpeg_read_header=no
20660fi
20661rm -f conftest.err conftest.$ac_objext \
20662 conftest$ac_exeext conftest.$ac_ext
20663LIBS=$ac_check_lib_save_LIBS
20664fi
20665echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20666echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20667if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
20668 JPEG_LINK=" -ljpeg"
20669fi
20670
20671 fi
20672
20673 if test "x$JPEG_LINK" = "x" ; then
20674 if test "$wxUSE_LIBJPEG" = "sys" ; then
20675 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20676echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20677 { (exit 1); exit 1; }; }
20678 else
20679 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20680echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
20681 wxUSE_LIBJPEG=builtin
20682 fi
20683 else
20684 wxUSE_LIBJPEG=sys
20685 fi
20686 fi
20687 fi
20688fi
20689
20690
20691TIFF_LINK=
20692TIFF_PREREQ_LINKS=-lm
20693if test "$wxUSE_LIBTIFF" != "no" ; then
20694 cat >>confdefs.h <<\_ACEOF
20695#define wxUSE_LIBTIFF 1
20696_ACEOF
20697
20698
20699 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
20700 if test "$wxUSE_LIBJPEG" = "sys"; then
20701 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20702 fi
20703 if test "$wxUSE_ZLIB" = "sys"; then
20704 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20705 fi
20706 if test "${ac_cv_header_tiffio_h+set}" = set; then
20707 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20708echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20709if test "${ac_cv_header_tiffio_h+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20711fi
20712echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20713echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20714else
20715 # Is the header compilable?
20716echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20717echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20718cat >conftest.$ac_ext <<_ACEOF
20719/* confdefs.h. */
20720_ACEOF
20721cat confdefs.h >>conftest.$ac_ext
20722cat >>conftest.$ac_ext <<_ACEOF
20723/* end confdefs.h. */
20724$ac_includes_default
20725#include <tiffio.h>
20726_ACEOF
20727rm -f conftest.$ac_objext
20728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20729 (eval $ac_compile) 2>conftest.er1
20730 ac_status=$?
20731 grep -v '^ *+' conftest.er1 >conftest.err
20732 rm -f conftest.er1
20733 cat conftest.err >&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } &&
dcc1b6ad
VS
20736 { ac_try='test -z "$ac_c_werror_flag"
20737 || test ! -s conftest.err'
a848cd7e
SC
20738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739 (eval $ac_try) 2>&5
20740 ac_status=$?
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; } &&
20743 { ac_try='test -s conftest.$ac_objext'
20744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745 (eval $ac_try) 2>&5
20746 ac_status=$?
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); }; }; then
20749 ac_header_compiler=yes
20750else
20751 echo "$as_me: failed program was:" >&5
20752sed 's/^/| /' conftest.$ac_ext >&5
20753
20754ac_header_compiler=no
20755fi
20756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20758echo "${ECHO_T}$ac_header_compiler" >&6
20759
20760# Is the header present?
20761echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20762echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20763cat >conftest.$ac_ext <<_ACEOF
20764/* confdefs.h. */
20765_ACEOF
20766cat confdefs.h >>conftest.$ac_ext
20767cat >>conftest.$ac_ext <<_ACEOF
20768/* end confdefs.h. */
20769#include <tiffio.h>
20770_ACEOF
20771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20773 ac_status=$?
20774 grep -v '^ *+' conftest.er1 >conftest.err
20775 rm -f conftest.er1
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } >/dev/null; then
20779 if test -s conftest.err; then
20780 ac_cpp_err=$ac_c_preproc_warn_flag
20781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20782 else
20783 ac_cpp_err=
20784 fi
20785else
20786 ac_cpp_err=yes
20787fi
20788if test -z "$ac_cpp_err"; then
20789 ac_header_preproc=yes
20790else
20791 echo "$as_me: failed program was:" >&5
20792sed 's/^/| /' conftest.$ac_ext >&5
20793
20794 ac_header_preproc=no
20795fi
20796rm -f conftest.err conftest.$ac_ext
20797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20798echo "${ECHO_T}$ac_header_preproc" >&6
20799
20800# So? What about this header?
20801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20802 yes:no: )
20803 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20804echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20805 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20806echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20807 ac_header_preproc=yes
20808 ;;
20809 no:yes:* )
20810 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20811echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
20812 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20813echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20814 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20815echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20816 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20817echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
20818 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20819echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
20820 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20821echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
20822 (
20823 cat <<\_ASBOX
20824## ----------------------------------------- ##
20825## Report this to wx-dev@lists.wxwindows.org ##
20826## ----------------------------------------- ##
20827_ASBOX
20828 ) |
20829 sed "s/^/$as_me: WARNING: /" >&2
20830 ;;
20831esac
20832echo "$as_me:$LINENO: checking for tiffio.h" >&5
20833echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20834if test "${ac_cv_header_tiffio_h+set}" = set; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20836else
20837 ac_cv_header_tiffio_h=$ac_header_preproc
20838fi
20839echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20840echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20841
20842fi
20843if test $ac_cv_header_tiffio_h = yes; then
20844
20845 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
20846echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20847if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20848 echo $ECHO_N "(cached) $ECHO_C" >&6
20849else
20850 ac_check_lib_save_LIBS=$LIBS
20851LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
20852cat >conftest.$ac_ext <<_ACEOF
20853/* confdefs.h. */
20854_ACEOF
20855cat confdefs.h >>conftest.$ac_ext
20856cat >>conftest.$ac_ext <<_ACEOF
20857/* end confdefs.h. */
20858
20859/* Override any gcc2 internal prototype to avoid an error. */
20860#ifdef __cplusplus
20861extern "C"
20862#endif
20863/* We use char because int might match the return type of a gcc2
20864 builtin and then its argument prototype would still apply. */
20865char TIFFError ();
20866int
20867main ()
20868{
20869TIFFError ();
20870 ;
20871 return 0;
20872}
20873_ACEOF
20874rm -f conftest.$ac_objext conftest$ac_exeext
20875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20876 (eval $ac_link) 2>conftest.er1
20877 ac_status=$?
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } &&
dcc1b6ad
VS
20883 { ac_try='test -z "$ac_c_werror_flag"
20884 || test ! -s conftest.err'
a848cd7e
SC
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; } &&
20890 { ac_try='test -s conftest$ac_exeext'
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
20896 ac_cv_lib_tiff_TIFFError=yes
20897else
20898 echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901ac_cv_lib_tiff_TIFFError=no
20902fi
20903rm -f conftest.err conftest.$ac_objext \
20904 conftest$ac_exeext conftest.$ac_ext
20905LIBS=$ac_check_lib_save_LIBS
20906fi
20907echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20908echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20909if test $ac_cv_lib_tiff_TIFFError = yes; then
20910 TIFF_LINK=" -ltiff"
20911fi
20912
20913
20914
20915fi
20916
20917
20918
20919 if test "x$TIFF_LINK" = "x" ; then
20920 if test "$wxUSE_LIBTIFF" = "sys" ; then
20921 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20922echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20923 { (exit 1); exit 1; }; }
20924 else
20925 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20926echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
20927 wxUSE_LIBTIFF=builtin
20928 fi
20929 else
20930 wxUSE_LIBTIFF=sys
20931 fi
20932 fi
20933fi
20934
20935
20936if test "$wxUSE_EXPAT" != "no"; then
20937 wxUSE_XML=yes
20938 cat >>confdefs.h <<\_ACEOF
20939#define wxUSE_EXPAT 1
20940_ACEOF
20941
20942 cat >>confdefs.h <<\_ACEOF
20943#define wxUSE_XML 1
20944_ACEOF
20945
20946
20947 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20948 if test "${ac_cv_header_expat_h+set}" = set; then
20949 echo "$as_me:$LINENO: checking for expat.h" >&5
20950echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20951if test "${ac_cv_header_expat_h+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20953fi
20954echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20955echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20956else
20957 # Is the header compilable?
20958echo "$as_me:$LINENO: checking expat.h usability" >&5
20959echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20960cat >conftest.$ac_ext <<_ACEOF
20961/* confdefs.h. */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
20965/* end confdefs.h. */
20966$ac_includes_default
20967#include <expat.h>
20968_ACEOF
20969rm -f conftest.$ac_objext
20970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20971 (eval $ac_compile) 2>conftest.er1
20972 ac_status=$?
20973 grep -v '^ *+' conftest.er1 >conftest.err
20974 rm -f conftest.er1
20975 cat conftest.err >&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
dcc1b6ad
VS
20978 { ac_try='test -z "$ac_c_werror_flag"
20979 || test ! -s conftest.err'
a848cd7e
SC
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } &&
20985 { ac_try='test -s conftest.$ac_objext'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 ac_header_compiler=yes
20992else
20993 echo "$as_me: failed program was:" >&5
20994sed 's/^/| /' conftest.$ac_ext >&5
20995
20996ac_header_compiler=no
20997fi
20998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20999echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21000echo "${ECHO_T}$ac_header_compiler" >&6
21001
21002# Is the header present?
21003echo "$as_me:$LINENO: checking expat.h presence" >&5
21004echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21005cat >conftest.$ac_ext <<_ACEOF
21006/* confdefs.h. */
21007_ACEOF
21008cat confdefs.h >>conftest.$ac_ext
21009cat >>conftest.$ac_ext <<_ACEOF
21010/* end confdefs.h. */
21011#include <expat.h>
21012_ACEOF
21013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21015 ac_status=$?
21016 grep -v '^ *+' conftest.er1 >conftest.err
21017 rm -f conftest.er1
21018 cat conftest.err >&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } >/dev/null; then
21021 if test -s conftest.err; then
21022 ac_cpp_err=$ac_c_preproc_warn_flag
21023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21024 else
21025 ac_cpp_err=
21026 fi
21027else
21028 ac_cpp_err=yes
21029fi
21030if test -z "$ac_cpp_err"; then
21031 ac_header_preproc=yes
21032else
21033 echo "$as_me: failed program was:" >&5
21034sed 's/^/| /' conftest.$ac_ext >&5
21035
21036 ac_header_preproc=no
21037fi
21038rm -f conftest.err conftest.$ac_ext
21039echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21040echo "${ECHO_T}$ac_header_preproc" >&6
21041
21042# So? What about this header?
21043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21044 yes:no: )
21045 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21046echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21047 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21048echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21049 ac_header_preproc=yes
21050 ;;
21051 no:yes:* )
21052 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21053echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
21054 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21055echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21056 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21057echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21058 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21059echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
21060 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21061echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
21062 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21063echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
21064 (
21065 cat <<\_ASBOX
21066## ----------------------------------------- ##
21067## Report this to wx-dev@lists.wxwindows.org ##
21068## ----------------------------------------- ##
21069_ASBOX
21070 ) |
21071 sed "s/^/$as_me: WARNING: /" >&2
21072 ;;
21073esac
21074echo "$as_me:$LINENO: checking for expat.h" >&5
21075echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21076if test "${ac_cv_header_expat_h+set}" = set; then
21077 echo $ECHO_N "(cached) $ECHO_C" >&6
21078else
21079 ac_cv_header_expat_h=$ac_header_preproc
21080fi
21081echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21082echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21083
21084fi
21085if test $ac_cv_header_expat_h = yes; then
21086 found_expat_h=1
21087fi
21088
21089
21090 if test "x$found_expat_h" = "x1"; then
21091 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21092echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21093if test "${wx_cv_expat_is_not_broken+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21095else
21096
21097
21098
21099 ac_ext=cc
21100ac_cpp='$CXXCPP $CPPFLAGS'
21101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21104
21105 cat >conftest.$ac_ext <<_ACEOF
21106/* confdefs.h. */
21107_ACEOF
21108cat confdefs.h >>conftest.$ac_ext
21109cat >>conftest.$ac_ext <<_ACEOF
21110/* end confdefs.h. */
21111#include <expat.h>
21112int
21113main ()
21114{
21115
21116 ;
21117 return 0;
21118}
21119_ACEOF
21120rm -f conftest.$ac_objext
21121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21122 (eval $ac_compile) 2>conftest.er1
21123 ac_status=$?
21124 grep -v '^ *+' conftest.er1 >conftest.err
21125 rm -f conftest.er1
21126 cat conftest.err >&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } &&
dcc1b6ad
VS
21129 { ac_try='test -z "$ac_cxx_werror_flag"
21130 || test ! -s conftest.err'
a848cd7e
SC
21131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21132 (eval $ac_try) 2>&5
21133 ac_status=$?
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; } &&
21136 { ac_try='test -s conftest.$ac_objext'
21137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21138 (eval $ac_try) 2>&5
21139 ac_status=$?
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); }; }; then
21142 wx_cv_expat_is_not_broken=yes
21143else
21144 echo "$as_me: failed program was:" >&5
21145sed 's/^/| /' conftest.$ac_ext >&5
21146
21147wx_cv_expat_is_not_broken=no
21148
21149fi
21150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21151 ac_ext=c
21152ac_cpp='$CPP $CPPFLAGS'
21153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21155ac_compiler_gnu=$ac_cv_c_compiler_gnu
21156
21157
21158
21159fi
21160echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21161echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21162 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21163 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21164echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21165if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21167else
21168 ac_check_lib_save_LIBS=$LIBS
21169LIBS="-lexpat $LIBS"
21170cat >conftest.$ac_ext <<_ACEOF
21171/* confdefs.h. */
21172_ACEOF
21173cat confdefs.h >>conftest.$ac_ext
21174cat >>conftest.$ac_ext <<_ACEOF
21175/* end confdefs.h. */
21176
21177/* Override any gcc2 internal prototype to avoid an error. */
21178#ifdef __cplusplus
21179extern "C"
21180#endif
21181/* We use char because int might match the return type of a gcc2
21182 builtin and then its argument prototype would still apply. */
21183char XML_ParserCreate ();
21184int
21185main ()
21186{
21187XML_ParserCreate ();
21188 ;
21189 return 0;
21190}
21191_ACEOF
21192rm -f conftest.$ac_objext conftest$ac_exeext
21193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21194 (eval $ac_link) 2>conftest.er1
21195 ac_status=$?
21196 grep -v '^ *+' conftest.er1 >conftest.err
21197 rm -f conftest.er1
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
dcc1b6ad
VS
21201 { ac_try='test -z "$ac_c_werror_flag"
21202 || test ! -s conftest.err'
a848cd7e
SC
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21205 ac_status=$?
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; } &&
21208 { ac_try='test -s conftest$ac_exeext'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; }; then
21214 ac_cv_lib_expat_XML_ParserCreate=yes
21215else
21216 echo "$as_me: failed program was:" >&5
21217sed 's/^/| /' conftest.$ac_ext >&5
21218
21219ac_cv_lib_expat_XML_ParserCreate=no
21220fi
21221rm -f conftest.err conftest.$ac_objext \
21222 conftest$ac_exeext conftest.$ac_ext
21223LIBS=$ac_check_lib_save_LIBS
21224fi
21225echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21226echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21227if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21228 EXPAT_LINK=" -lexpat"
21229fi
21230
21231 fi
21232 fi
21233 if test "x$EXPAT_LINK" = "x" ; then
21234 if test "$wxUSE_EXPAT" = "sys" ; then
21235 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21236echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21237 { (exit 1); exit 1; }; }
21238 else
21239 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21240echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21241 wxUSE_EXPAT=builtin
21242 fi
21243 else
21244 wxUSE_EXPAT=sys
21245 fi
21246 fi
21247 if test "$wxUSE_EXPAT" = "builtin" ; then
21248
21249
21250subdirs="$subdirs src/expat"
21251
21252 fi
21253fi
21254
21255
21256
21257if test "$wxUSE_LIBMSPACK" != "no"; then
21258
21259 if test "${ac_cv_header_mspack_h+set}" = set; then
21260 echo "$as_me:$LINENO: checking for mspack.h" >&5
21261echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21262if test "${ac_cv_header_mspack_h+set}" = set; then
21263 echo $ECHO_N "(cached) $ECHO_C" >&6
21264fi
21265echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21266echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21267else
21268 # Is the header compilable?
21269echo "$as_me:$LINENO: checking mspack.h usability" >&5
21270echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21271cat >conftest.$ac_ext <<_ACEOF
21272/* confdefs.h. */
21273_ACEOF
21274cat confdefs.h >>conftest.$ac_ext
21275cat >>conftest.$ac_ext <<_ACEOF
21276/* end confdefs.h. */
21277$ac_includes_default
21278#include <mspack.h>
21279_ACEOF
21280rm -f conftest.$ac_objext
21281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21282 (eval $ac_compile) 2>conftest.er1
21283 ac_status=$?
21284 grep -v '^ *+' conftest.er1 >conftest.err
21285 rm -f conftest.er1
21286 cat conftest.err >&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } &&
dcc1b6ad
VS
21289 { ac_try='test -z "$ac_c_werror_flag"
21290 || test ! -s conftest.err'
a848cd7e
SC
21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292 (eval $ac_try) 2>&5
21293 ac_status=$?
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; } &&
21296 { ac_try='test -s conftest.$ac_objext'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
21302 ac_header_compiler=yes
21303else
21304 echo "$as_me: failed program was:" >&5
21305sed 's/^/| /' conftest.$ac_ext >&5
21306
21307ac_header_compiler=no
21308fi
21309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21310echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21311echo "${ECHO_T}$ac_header_compiler" >&6
21312
21313# Is the header present?
21314echo "$as_me:$LINENO: checking mspack.h presence" >&5
21315echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21316cat >conftest.$ac_ext <<_ACEOF
21317/* confdefs.h. */
21318_ACEOF
21319cat confdefs.h >>conftest.$ac_ext
21320cat >>conftest.$ac_ext <<_ACEOF
21321/* end confdefs.h. */
21322#include <mspack.h>
21323_ACEOF
21324if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21326 ac_status=$?
21327 grep -v '^ *+' conftest.er1 >conftest.err
21328 rm -f conftest.er1
21329 cat conftest.err >&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } >/dev/null; then
21332 if test -s conftest.err; then
21333 ac_cpp_err=$ac_c_preproc_warn_flag
21334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21335 else
21336 ac_cpp_err=
21337 fi
21338else
21339 ac_cpp_err=yes
21340fi
21341if test -z "$ac_cpp_err"; then
21342 ac_header_preproc=yes
21343else
21344 echo "$as_me: failed program was:" >&5
21345sed 's/^/| /' conftest.$ac_ext >&5
21346
21347 ac_header_preproc=no
21348fi
21349rm -f conftest.err conftest.$ac_ext
21350echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21351echo "${ECHO_T}$ac_header_preproc" >&6
21352
21353# So? What about this header?
21354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21355 yes:no: )
21356 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21357echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21359echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21360 ac_header_preproc=yes
21361 ;;
21362 no:yes:* )
21363 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21364echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
21365 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21366echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21367 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21368echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21369 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21370echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
21371 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21372echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
21373 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21374echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
21375 (
21376 cat <<\_ASBOX
21377## ----------------------------------------- ##
21378## Report this to wx-dev@lists.wxwindows.org ##
21379## ----------------------------------------- ##
21380_ASBOX
21381 ) |
21382 sed "s/^/$as_me: WARNING: /" >&2
21383 ;;
21384esac
21385echo "$as_me:$LINENO: checking for mspack.h" >&5
21386echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21387if test "${ac_cv_header_mspack_h+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21389else
21390 ac_cv_header_mspack_h=$ac_header_preproc
21391fi
21392echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21393echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21394
21395fi
21396if test $ac_cv_header_mspack_h = yes; then
21397 found_mspack_h=1
21398fi
21399
21400
21401 if test "x$found_mspack_h" = "x1"; then
21402 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21403echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21404if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21406else
21407 ac_check_lib_save_LIBS=$LIBS
21408LIBS="-lmspack $LIBS"
21409cat >conftest.$ac_ext <<_ACEOF
21410/* confdefs.h. */
21411_ACEOF
21412cat confdefs.h >>conftest.$ac_ext
21413cat >>conftest.$ac_ext <<_ACEOF
21414/* end confdefs.h. */
21415
21416/* Override any gcc2 internal prototype to avoid an error. */
21417#ifdef __cplusplus
21418extern "C"
21419#endif
21420/* We use char because int might match the return type of a gcc2
21421 builtin and then its argument prototype would still apply. */
21422char mspack_create_chm_decompressor ();
21423int
21424main ()
21425{
21426mspack_create_chm_decompressor ();
21427 ;
21428 return 0;
21429}
21430_ACEOF
21431rm -f conftest.$ac_objext conftest$ac_exeext
21432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21433 (eval $ac_link) 2>conftest.er1
21434 ac_status=$?
21435 grep -v '^ *+' conftest.er1 >conftest.err
21436 rm -f conftest.er1
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } &&
dcc1b6ad
VS
21440 { ac_try='test -z "$ac_c_werror_flag"
21441 || test ! -s conftest.err'
a848cd7e
SC
21442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443 (eval $ac_try) 2>&5
21444 ac_status=$?
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; } &&
21447 { ac_try='test -s conftest$ac_exeext'
21448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449 (eval $ac_try) 2>&5
21450 ac_status=$?
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; }; then
21453 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21454else
21455 echo "$as_me: failed program was:" >&5
21456sed 's/^/| /' conftest.$ac_ext >&5
21457
21458ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21459fi
21460rm -f conftest.err conftest.$ac_objext \
21461 conftest$ac_exeext conftest.$ac_ext
21462LIBS=$ac_check_lib_save_LIBS
21463fi
21464echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21465echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21466if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21467 MSPACK_LINK=" -lmspack"
21468fi
21469
21470 fi
21471 if test "x$MSPACK_LINK" = "x" ; then
21472 wxUSE_LIBMSPACK=no
21473 else
21474 cat >>confdefs.h <<\_ACEOF
21475#define wxUSE_LIBMSPACK 1
21476_ACEOF
21477
21478 fi
21479fi
21480
21481
21482
21483AFMINSTALL=
21484WIN32INSTALL=
21485
21486TOOLKIT=
21487TOOLKIT_INCLUDE=
21488WIDGET_SET=
21489
21490if test "$USE_WIN32" = 1 ; then
21491
21492for ac_header in w32api.h
21493do
21494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21495if eval "test \"\${$as_ac_Header+set}\" = set"; then
21496 echo "$as_me:$LINENO: checking for $ac_header" >&5
21497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21498if eval "test \"\${$as_ac_Header+set}\" = set"; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21500fi
21501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21503else
21504 # Is the header compilable?
21505echo "$as_me:$LINENO: checking $ac_header usability" >&5
21506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21507cat >conftest.$ac_ext <<_ACEOF
21508/* confdefs.h. */
21509_ACEOF
21510cat confdefs.h >>conftest.$ac_ext
21511cat >>conftest.$ac_ext <<_ACEOF
21512/* end confdefs.h. */
21513$ac_includes_default
21514#include <$ac_header>
21515_ACEOF
21516rm -f conftest.$ac_objext
21517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21518 (eval $ac_compile) 2>conftest.er1
21519 ac_status=$?
21520 grep -v '^ *+' conftest.er1 >conftest.err
21521 rm -f conftest.er1
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } &&
dcc1b6ad
VS
21525 { ac_try='test -z "$ac_c_werror_flag"
21526 || test ! -s conftest.err'
a848cd7e
SC
21527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528 (eval $ac_try) 2>&5
21529 ac_status=$?
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; } &&
21532 { ac_try='test -s conftest.$ac_objext'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21535 ac_status=$?
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 ac_header_compiler=yes
21539else
21540 echo "$as_me: failed program was:" >&5
21541sed 's/^/| /' conftest.$ac_ext >&5
21542
21543ac_header_compiler=no
21544fi
21545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21547echo "${ECHO_T}$ac_header_compiler" >&6
21548
21549# Is the header present?
21550echo "$as_me:$LINENO: checking $ac_header presence" >&5
21551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21552cat >conftest.$ac_ext <<_ACEOF
21553/* confdefs.h. */
21554_ACEOF
21555cat confdefs.h >>conftest.$ac_ext
21556cat >>conftest.$ac_ext <<_ACEOF
21557/* end confdefs.h. */
21558#include <$ac_header>
21559_ACEOF
21560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21562 ac_status=$?
21563 grep -v '^ *+' conftest.er1 >conftest.err
21564 rm -f conftest.er1
21565 cat conftest.err >&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); } >/dev/null; then
21568 if test -s conftest.err; then
21569 ac_cpp_err=$ac_c_preproc_warn_flag
21570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21571 else
21572 ac_cpp_err=
21573 fi
21574else
21575 ac_cpp_err=yes
21576fi
21577if test -z "$ac_cpp_err"; then
21578 ac_header_preproc=yes
21579else
21580 echo "$as_me: failed program was:" >&5
21581sed 's/^/| /' conftest.$ac_ext >&5
21582
21583 ac_header_preproc=no
21584fi
21585rm -f conftest.err conftest.$ac_ext
21586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21587echo "${ECHO_T}$ac_header_preproc" >&6
21588
21589# So? What about this header?
21590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21591 yes:no: )
21592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21596 ac_header_preproc=yes
21597 ;;
21598 no:yes:* )
21599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21606echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21611 (
21612 cat <<\_ASBOX
21613## ----------------------------------------- ##
21614## Report this to wx-dev@lists.wxwindows.org ##
21615## ----------------------------------------- ##
21616_ASBOX
21617 ) |
21618 sed "s/^/$as_me: WARNING: /" >&2
21619 ;;
21620esac
21621echo "$as_me:$LINENO: checking for $ac_header" >&5
21622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21623if eval "test \"\${$as_ac_Header+set}\" = set"; then
21624 echo $ECHO_N "(cached) $ECHO_C" >&6
21625else
21626 eval "$as_ac_Header=\$ac_header_preproc"
21627fi
21628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21630
21631fi
21632if test `eval echo '${'$as_ac_Header'}'` = yes; then
21633 cat >>confdefs.h <<_ACEOF
21634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21635_ACEOF
21636
21637fi
21638
21639done
21640
21641 if test "${ac_cv_header_windows_h+set}" = set; then
21642 echo "$as_me:$LINENO: checking for windows.h" >&5
21643echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21644if test "${ac_cv_header_windows_h+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21646fi
21647echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21648echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21649else
21650 # Is the header compilable?
21651echo "$as_me:$LINENO: checking windows.h usability" >&5
21652echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21653cat >conftest.$ac_ext <<_ACEOF
21654/* confdefs.h. */
21655_ACEOF
21656cat confdefs.h >>conftest.$ac_ext
21657cat >>conftest.$ac_ext <<_ACEOF
21658/* end confdefs.h. */
21659$ac_includes_default
21660#include <windows.h>
21661_ACEOF
21662rm -f conftest.$ac_objext
21663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21664 (eval $ac_compile) 2>conftest.er1
21665 ac_status=$?
21666 grep -v '^ *+' conftest.er1 >conftest.err
21667 rm -f conftest.er1
21668 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } &&
dcc1b6ad
VS
21671 { ac_try='test -z "$ac_c_werror_flag"
21672 || test ! -s conftest.err'
a848cd7e
SC
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21675 ac_status=$?
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try='test -s conftest.$ac_objext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21681 ac_status=$?
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 ac_header_compiler=yes
21685else
21686 echo "$as_me: failed program was:" >&5
21687sed 's/^/| /' conftest.$ac_ext >&5
21688
21689ac_header_compiler=no
21690fi
21691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21692echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21693echo "${ECHO_T}$ac_header_compiler" >&6
21694
21695# Is the header present?
21696echo "$as_me:$LINENO: checking windows.h presence" >&5
21697echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21698cat >conftest.$ac_ext <<_ACEOF
21699/* confdefs.h. */
21700_ACEOF
21701cat confdefs.h >>conftest.$ac_ext
21702cat >>conftest.$ac_ext <<_ACEOF
21703/* end confdefs.h. */
21704#include <windows.h>
21705_ACEOF
21706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } >/dev/null; then
21714 if test -s conftest.err; then
21715 ac_cpp_err=$ac_c_preproc_warn_flag
21716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21717 else
21718 ac_cpp_err=
21719 fi
21720else
21721 ac_cpp_err=yes
21722fi
21723if test -z "$ac_cpp_err"; then
21724 ac_header_preproc=yes
21725else
21726 echo "$as_me: failed program was:" >&5
21727sed 's/^/| /' conftest.$ac_ext >&5
21728
21729 ac_header_preproc=no
21730fi
21731rm -f conftest.err conftest.$ac_ext
21732echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21733echo "${ECHO_T}$ac_header_preproc" >&6
21734
21735# So? What about this header?
21736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21737 yes:no: )
21738 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21739echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21741echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21742 ac_header_preproc=yes
21743 ;;
21744 no:yes:* )
21745 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21746echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21748echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21750echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21752echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21754echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21755 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21756echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21757 (
21758 cat <<\_ASBOX
21759## ----------------------------------------- ##
21760## Report this to wx-dev@lists.wxwindows.org ##
21761## ----------------------------------------- ##
21762_ASBOX
21763 ) |
21764 sed "s/^/$as_me: WARNING: /" >&2
21765 ;;
21766esac
21767echo "$as_me:$LINENO: checking for windows.h" >&5
21768echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21769if test "${ac_cv_header_windows_h+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21771else
21772 ac_cv_header_windows_h=$ac_header_preproc
21773fi
21774echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21775echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21776
21777fi
21778if test $ac_cv_header_windows_h = yes; then
21779 :
21780else
21781
21782 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21783echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21784 { (exit 1); exit 1; }; }
21785
21786fi
21787
21788
21789
21790 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21791
21792 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21793 LIBS="$LIBS -loleacc"
21794 fi
21795
21796 case "${host}" in
21797 *-*-cygwin* )
21798 LIBS="$LIBS -lkernel32 -luser32"
21799 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
21800 esac
21801
21802 if test "$wxUSE_ODBC" = "sys" ; then
21803 wxUSE_ODBC = "yes"
21804 fi
21805 if test "$wxUSE_ODBC" = "yes" ; then
21806 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
21807 cat >>confdefs.h <<\_ACEOF
21808#define wxUSE_ODBC 1
21809_ACEOF
21810
21811 fi
21812
21813 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21814 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
21815
21816 WIN32INSTALL=win32install
21817fi
21818
21819if test "$wxUSE_GUI" = "yes"; then
21820 USE_GUI=1
21821
21822 GUI_TK_LIBRARY=
21823
21824 WXGTK12=
21825 WXGTK127=
21826 WXGTK20=
21827 WXGPE=
21828
21829 if test "$wxUSE_MSW" = 1 ; then
21830 TOOLKIT=MSW
21831 GUIDIST=MSW_DIST
21832
21833 case "${host}" in
21834 *-*-mingw32* )
21835 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21836 esac
21837 fi
21838
21839 if test "$wxUSE_GTK" = 1; then
21840 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21841echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21842
21843 gtk_version_cached=1
21844 if test "${wx_cv_lib_gtk+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21846else
21847
21848 gtk_version_cached=0
21849 echo "$as_me:$LINENO: result: " >&5
21850echo "${ECHO_T}" >&6
21851
21852 GTK_MODULES=
21853 if test "$wxUSE_THREADS" = "yes"; then
21854 GTK_MODULES=gthread
21855 fi
21856
21857 wx_cv_lib_gtk=
21858 if test "x$wxUSE_GTK2" = "xyes"; then
21859 # Check whether --enable-gtktest or --disable-gtktest was given.
21860if test "${enable_gtktest+set}" = set; then
21861 enableval="$enable_gtktest"
21862
21863else
21864 enable_gtktest=yes
21865fi;
21866
21867 pkg_config_args=gtk+-2.0
21868 for module in . $GTK_MODULES
21869 do
21870 case "$module" in
21871 gthread)
21872 pkg_config_args="$pkg_config_args gthread-2.0"
21873 ;;
21874 esac
21875 done
21876
21877 no_gtk=""
21878
21879 # Extract the first word of "pkg-config", so it can be a program name with args.
21880set dummy pkg-config; ac_word=$2
21881echo "$as_me:$LINENO: checking for $ac_word" >&5
21882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21883if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21885else
21886 case $PKG_CONFIG in
21887 [\\/]* | ?:[\\/]*)
21888 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21889 ;;
21890 *)
21891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21892for as_dir in $PATH
21893do
21894 IFS=$as_save_IFS
21895 test -z "$as_dir" && as_dir=.
21896 for ac_exec_ext in '' $ac_executable_extensions; do
21897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21898 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21900 break 2
21901 fi
21902done
21903done
21904
21905 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21906 ;;
21907esac
21908fi
21909PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21910
21911if test -n "$PKG_CONFIG"; then
21912 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21913echo "${ECHO_T}$PKG_CONFIG" >&6
21914else
21915 echo "$as_me:$LINENO: result: no" >&5
21916echo "${ECHO_T}no" >&6
21917fi
21918
21919
21920 if test x$PKG_CONFIG != xno ; then
21921 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21922 :
21923 else
dcc1b6ad 21924 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
21925 no_gtk=yes
21926 PKG_CONFIG=no
21927 fi
21928 else
21929 no_gtk=yes
21930 fi
21931
21932 min_gtk_version=2.0.0
21933 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21934echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
21935
21936 if test x$PKG_CONFIG != xno ; then
21937 ## don't try to run the test against uninstalled libtool libs
21938 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21939 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21940 enable_gtktest=no
21941 fi
21942
21943 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21944 :
21945 else
21946 no_gtk=yes
21947 fi
21948 fi
21949
21950 if test x"$no_gtk" = x ; then
21951 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21952 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21953 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21954 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21955 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21956 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21957 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21958 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21959 if test "x$enable_gtktest" = "xyes" ; then
21960 ac_save_CFLAGS="$CFLAGS"
21961 ac_save_LIBS="$LIBS"
21962 CFLAGS="$CFLAGS $GTK_CFLAGS"
21963 LIBS="$GTK_LIBS $LIBS"
21964 rm -f conf.gtktest
21965 if test "$cross_compiling" = yes; then
21966 echo $ac_n "cross compiling; assumed OK... $ac_c"
21967else
21968 cat >conftest.$ac_ext <<_ACEOF
21969/* confdefs.h. */
21970_ACEOF
21971cat confdefs.h >>conftest.$ac_ext
21972cat >>conftest.$ac_ext <<_ACEOF
21973/* end confdefs.h. */
21974
21975#include <gtk/gtk.h>
21976#include <stdio.h>
21977#include <stdlib.h>
21978
21979int
21980main ()
21981{
21982 int major, minor, micro;
21983 char *tmp_version;
21984
21985 system ("touch conf.gtktest");
21986
21987 /* HP/UX 9 (%@#!) writes to sscanf strings */
21988 tmp_version = g_strdup("$min_gtk_version");
21989 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21990 printf("%s, bad version string\n", "$min_gtk_version");
21991 exit(1);
21992 }
21993
21994 if ((gtk_major_version != $gtk_config_major_version) ||
21995 (gtk_minor_version != $gtk_config_minor_version) ||
21996 (gtk_micro_version != $gtk_config_micro_version))
21997 {
21998 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21999 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22000 gtk_major_version, gtk_minor_version, gtk_micro_version);
22001 printf ("*** was found! If pkg-config was correct, then it is best\n");
22002 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22003 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22004 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22005 printf("*** required on your system.\n");
22006 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22007 printf("*** to point to the correct configuration files\n");
22008 }
22009 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22010 (gtk_minor_version != GTK_MINOR_VERSION) ||
22011 (gtk_micro_version != GTK_MICRO_VERSION))
22012 {
22013 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22014 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22015 printf("*** library (version %d.%d.%d)\n",
22016 gtk_major_version, gtk_minor_version, gtk_micro_version);
22017 }
22018 else
22019 {
22020 if ((gtk_major_version > major) ||
22021 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22022 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22023 {
22024 return 0;
22025 }
22026 else
22027 {
22028 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22029 gtk_major_version, gtk_minor_version, gtk_micro_version);
22030 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22031 major, minor, micro);
22032 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22033 printf("***\n");
22034 printf("*** If you have already installed a sufficiently new version, this error\n");
22035 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22036 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22037 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22038 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22039 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22040 printf("*** so that the correct libraries are found at run-time))\n");
22041 }
22042 }
22043 return 1;
22044}
22045
22046_ACEOF
22047rm -f conftest$ac_exeext
22048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22049 (eval $ac_link) 2>&5
22050 ac_status=$?
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 :
22059else
22060 echo "$as_me: program exited with status $ac_status" >&5
22061echo "$as_me: failed program was:" >&5
22062sed 's/^/| /' conftest.$ac_ext >&5
22063
22064( exit $ac_status )
22065no_gtk=yes
22066fi
22067rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22068fi
22069 CFLAGS="$ac_save_CFLAGS"
22070 LIBS="$ac_save_LIBS"
22071 fi
22072 fi
22073 if test "x$no_gtk" = x ; then
22074 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22075echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22076 wx_cv_lib_gtk=2.0
22077 else
22078 echo "$as_me:$LINENO: result: no" >&5
22079echo "${ECHO_T}no" >&6
22080 if test "$PKG_CONFIG" = "no" ; then
22081 echo "*** A new enough version of pkg-config was not found."
22082 echo "*** See http://pkgconfig.sourceforge.net"
22083 else
22084 if test -f conf.gtktest ; then
22085 :
22086 else
22087 echo "*** Could not run GTK+ test program, checking why..."
22088 ac_save_CFLAGS="$CFLAGS"
22089 ac_save_LIBS="$LIBS"
22090 CFLAGS="$CFLAGS $GTK_CFLAGS"
22091 LIBS="$LIBS $GTK_LIBS"
22092 cat >conftest.$ac_ext <<_ACEOF
22093/* confdefs.h. */
22094_ACEOF
22095cat confdefs.h >>conftest.$ac_ext
22096cat >>conftest.$ac_ext <<_ACEOF
22097/* end confdefs.h. */
22098
22099#include <gtk/gtk.h>
22100#include <stdio.h>
22101
22102int
22103main ()
22104{
22105 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22106 ;
22107 return 0;
22108}
22109_ACEOF
22110rm -f conftest.$ac_objext conftest$ac_exeext
22111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22112 (eval $ac_link) 2>conftest.er1
22113 ac_status=$?
22114 grep -v '^ *+' conftest.er1 >conftest.err
22115 rm -f conftest.er1
22116 cat conftest.err >&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } &&
dcc1b6ad
VS
22119 { ac_try='test -z "$ac_c_werror_flag"
22120 || test ! -s conftest.err'
a848cd7e
SC
22121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22122 (eval $ac_try) 2>&5
22123 ac_status=$?
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); }; } &&
22126 { ac_try='test -s conftest$ac_exeext'
22127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22128 (eval $ac_try) 2>&5
22129 ac_status=$?
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; }; then
22132 echo "*** The test program compiled, but did not run. This usually means"
22133 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22134 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22135 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22136 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22137 echo "*** is required on your system"
22138 echo "***"
22139 echo "*** If you have an old version installed, it is best to remove it, although"
22140 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22141else
22142 echo "$as_me: failed program was:" >&5
22143sed 's/^/| /' conftest.$ac_ext >&5
22144
22145 echo "*** The test program failed to compile or link. See the file config.log for the"
22146 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22147fi
22148rm -f conftest.err conftest.$ac_objext \
22149 conftest$ac_exeext conftest.$ac_ext
22150 CFLAGS="$ac_save_CFLAGS"
22151 LIBS="$ac_save_LIBS"
22152 fi
22153 fi
22154 GTK_CFLAGS=""
22155 GTK_LIBS=""
22156 :
22157 fi
22158
22159
22160 rm -f conf.gtktest
22161
22162 else
22163
22164# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22165if test "${with_gtk_prefix+set}" = set; then
22166 withval="$with_gtk_prefix"
22167 gtk_config_prefix="$withval"
22168else
22169 gtk_config_prefix=""
22170fi;
22171
22172# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22173if test "${with_gtk_exec_prefix+set}" = set; then
22174 withval="$with_gtk_exec_prefix"
22175 gtk_config_exec_prefix="$withval"
22176else
22177 gtk_config_exec_prefix=""
22178fi;
22179# Check whether --enable-gtktest or --disable-gtktest was given.
22180if test "${enable_gtktest+set}" = set; then
22181 enableval="$enable_gtktest"
22182
22183else
22184 enable_gtktest=yes
22185fi;
22186
22187 for module in . $GTK_MODULES
22188 do
22189 case "$module" in
22190 gthread)
22191 gtk_config_args="$gtk_config_args gthread"
22192 ;;
22193 esac
22194 done
22195
22196 if test x$gtk_config_exec_prefix != x ; then
22197 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22198 if test x${GTK_CONFIG+set} != xset ; then
22199 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22200 fi
22201 fi
22202 if test x$gtk_config_prefix != x ; then
22203 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22204 if test x${GTK_CONFIG+set} != xset ; then
22205 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22206 fi
22207 fi
22208
22209 # Extract the first word of "gtk-config", so it can be a program name with args.
22210set dummy gtk-config; ac_word=$2
22211echo "$as_me:$LINENO: checking for $ac_word" >&5
22212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22213if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22215else
22216 case $GTK_CONFIG in
22217 [\\/]* | ?:[\\/]*)
22218 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22219 ;;
22220 *)
22221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22222for as_dir in $PATH
22223do
22224 IFS=$as_save_IFS
22225 test -z "$as_dir" && as_dir=.
22226 for ac_exec_ext in '' $ac_executable_extensions; do
22227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22228 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22230 break 2
22231 fi
22232done
22233done
22234
22235 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22236 ;;
22237esac
22238fi
22239GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22240
22241if test -n "$GTK_CONFIG"; then
22242 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22243echo "${ECHO_T}$GTK_CONFIG" >&6
22244else
22245 echo "$as_me:$LINENO: result: no" >&5
22246echo "${ECHO_T}no" >&6
22247fi
22248
22249 min_gtk_version=1.2.7
22250 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22251echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22252 no_gtk=""
22253 if test "$GTK_CONFIG" = "no" ; then
22254 no_gtk=yes
22255 else
22256 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22257 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22258 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22259 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22260 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22261 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22262 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22263 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22264 if test "x$enable_gtktest" = "xyes" ; then
22265 ac_save_CFLAGS="$CFLAGS"
22266 ac_save_LIBS="$LIBS"
22267 CFLAGS="$CFLAGS $GTK_CFLAGS"
22268 LIBS="$GTK_LIBS $LIBS"
22269 rm -f conf.gtktest
22270 if test "$cross_compiling" = yes; then
22271 echo $ac_n "cross compiling; assumed OK... $ac_c"
22272else
22273 cat >conftest.$ac_ext <<_ACEOF
22274/* confdefs.h. */
22275_ACEOF
22276cat confdefs.h >>conftest.$ac_ext
22277cat >>conftest.$ac_ext <<_ACEOF
22278/* end confdefs.h. */
22279
22280#include <gtk/gtk.h>
22281#include <stdio.h>
22282#include <stdlib.h>
22283
22284int
22285main ()
22286{
22287 int major, minor, micro;
22288 char *tmp_version;
22289
22290 system ("touch conf.gtktest");
22291
22292 /* HP/UX 9 (%@#!) writes to sscanf strings */
22293 tmp_version = g_strdup("$min_gtk_version");
22294 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22295 printf("%s, bad version string\n", "$min_gtk_version");
22296 exit(1);
22297 }
22298
22299 if ((gtk_major_version != $gtk_config_major_version) ||
22300 (gtk_minor_version != $gtk_config_minor_version) ||
22301 (gtk_micro_version != $gtk_config_micro_version))
22302 {
22303 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22304 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22305 gtk_major_version, gtk_minor_version, gtk_micro_version);
22306 printf ("*** was found! If gtk-config was correct, then it is best\n");
22307 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22308 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22309 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22310 printf("*** required on your system.\n");
22311 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22312 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22313 printf("*** before re-running configure\n");
22314 }
22315#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22316 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22317 (gtk_minor_version != GTK_MINOR_VERSION) ||
22318 (gtk_micro_version != GTK_MICRO_VERSION))
22319 {
22320 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22321 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22322 printf("*** library (version %d.%d.%d)\n",
22323 gtk_major_version, gtk_minor_version, gtk_micro_version);
22324 }
22325#endif /* defined (GTK_MAJOR_VERSION) ... */
22326 else
22327 {
22328 if ((gtk_major_version > major) ||
22329 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22330 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22331 {
22332 return 0;
22333 }
22334 else
22335 {
22336 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22337 gtk_major_version, gtk_minor_version, gtk_micro_version);
22338 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22339 major, minor, micro);
22340 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22341 printf("***\n");
22342 printf("*** If you have already installed a sufficiently new version, this error\n");
22343 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22344 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22345 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22346 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22347 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22348 printf("*** so that the correct libraries are found at run-time))\n");
22349 }
22350 }
22351 return 1;
22352}
22353
22354_ACEOF
22355rm -f conftest$ac_exeext
22356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22357 (eval $ac_link) 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22363 ac_status=$?
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; }; then
22366 :
22367else
22368 echo "$as_me: program exited with status $ac_status" >&5
22369echo "$as_me: failed program was:" >&5
22370sed 's/^/| /' conftest.$ac_ext >&5
22371
22372( exit $ac_status )
22373no_gtk=yes
22374fi
22375rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22376fi
22377 CFLAGS="$ac_save_CFLAGS"
22378 LIBS="$ac_save_LIBS"
22379 fi
22380 fi
22381 if test "x$no_gtk" = x ; then
22382 echo "$as_me:$LINENO: result: yes" >&5
22383echo "${ECHO_T}yes" >&6
22384 wx_cv_lib_gtk=1.2.7
22385 else
22386 echo "$as_me:$LINENO: result: no" >&5
22387echo "${ECHO_T}no" >&6
22388 if test "$GTK_CONFIG" = "no" ; then
22389 echo "*** The gtk-config script installed by GTK could not be found"
22390 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22391 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22392 echo "*** full path to gtk-config."
22393 else
22394 if test -f conf.gtktest ; then
22395 :
22396 else
22397 echo "*** Could not run GTK test program, checking why..."
22398 CFLAGS="$CFLAGS $GTK_CFLAGS"
22399 LIBS="$LIBS $GTK_LIBS"
22400 cat >conftest.$ac_ext <<_ACEOF
22401/* confdefs.h. */
22402_ACEOF
22403cat confdefs.h >>conftest.$ac_ext
22404cat >>conftest.$ac_ext <<_ACEOF
22405/* end confdefs.h. */
22406
22407#include <gtk/gtk.h>
22408#include <stdio.h>
22409
22410int
22411main ()
22412{
22413 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22414 ;
22415 return 0;
22416}
22417_ACEOF
22418rm -f conftest.$ac_objext conftest$ac_exeext
22419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22420 (eval $ac_link) 2>conftest.er1
22421 ac_status=$?
22422 grep -v '^ *+' conftest.er1 >conftest.err
22423 rm -f conftest.er1
22424 cat conftest.err >&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } &&
dcc1b6ad
VS
22427 { ac_try='test -z "$ac_c_werror_flag"
22428 || test ! -s conftest.err'
a848cd7e
SC
22429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430 (eval $ac_try) 2>&5
22431 ac_status=$?
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; } &&
22434 { ac_try='test -s conftest$ac_exeext'
22435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436 (eval $ac_try) 2>&5
22437 ac_status=$?
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }; }; then
22440 echo "*** The test program compiled, but did not run. This usually means"
22441 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22442 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22443 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22444 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22445 echo "*** is required on your system"
22446 echo "***"
22447 echo "*** If you have an old version installed, it is best to remove it, although"
22448 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22449 echo "***"
22450 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22451 echo "*** came with the system with the command"
22452 echo "***"
22453 echo "*** rpm --erase --nodeps gtk gtk-devel"
22454else
22455 echo "$as_me: failed program was:" >&5
22456sed 's/^/| /' conftest.$ac_ext >&5
22457
22458 echo "*** The test program failed to compile or link. See the file config.log for the"
22459 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22460 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22461 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22462fi
22463rm -f conftest.err conftest.$ac_objext \
22464 conftest$ac_exeext conftest.$ac_ext
22465 CFLAGS="$ac_save_CFLAGS"
22466 LIBS="$ac_save_LIBS"
22467 fi
22468 fi
22469 GTK_CFLAGS=""
22470 GTK_LIBS=""
22471 :
22472 fi
22473
22474
22475 rm -f conf.gtktest
22476
22477
22478 if test -z "$wx_cv_lib_gtk"; then
22479
22480# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22481if test "${with_gtk_prefix+set}" = set; then
22482 withval="$with_gtk_prefix"
22483 gtk_config_prefix="$withval"
22484else
22485 gtk_config_prefix=""
22486fi;
22487
22488# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22489if test "${with_gtk_exec_prefix+set}" = set; then
22490 withval="$with_gtk_exec_prefix"
22491 gtk_config_exec_prefix="$withval"
22492else
22493 gtk_config_exec_prefix=""
22494fi;
22495# Check whether --enable-gtktest or --disable-gtktest was given.
22496if test "${enable_gtktest+set}" = set; then
22497 enableval="$enable_gtktest"
22498
22499else
22500 enable_gtktest=yes
22501fi;
22502
22503 for module in . $GTK_MODULES
22504 do
22505 case "$module" in
22506 gthread)
22507 gtk_config_args="$gtk_config_args gthread"
22508 ;;
22509 esac
22510 done
22511
22512 if test x$gtk_config_exec_prefix != x ; then
22513 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22514 if test x${GTK_CONFIG+set} != xset ; then
22515 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22516 fi
22517 fi
22518 if test x$gtk_config_prefix != x ; then
22519 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22520 if test x${GTK_CONFIG+set} != xset ; then
22521 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22522 fi
22523 fi
22524
22525 # Extract the first word of "gtk-config", so it can be a program name with args.
22526set dummy gtk-config; ac_word=$2
22527echo "$as_me:$LINENO: checking for $ac_word" >&5
22528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22529if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22531else
22532 case $GTK_CONFIG in
22533 [\\/]* | ?:[\\/]*)
22534 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22535 ;;
22536 *)
22537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22538for as_dir in $PATH
22539do
22540 IFS=$as_save_IFS
22541 test -z "$as_dir" && as_dir=.
22542 for ac_exec_ext in '' $ac_executable_extensions; do
22543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22544 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22546 break 2
22547 fi
22548done
22549done
22550
22551 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22552 ;;
22553esac
22554fi
22555GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22556
22557if test -n "$GTK_CONFIG"; then
22558 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22559echo "${ECHO_T}$GTK_CONFIG" >&6
22560else
22561 echo "$as_me:$LINENO: result: no" >&5
22562echo "${ECHO_T}no" >&6
22563fi
22564
22565 min_gtk_version=1.2.3
22566 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22567echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22568 no_gtk=""
22569 if test "$GTK_CONFIG" = "no" ; then
22570 no_gtk=yes
22571 else
22572 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22573 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22574 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22575 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22576 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22577 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22578 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22579 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22580 if test "x$enable_gtktest" = "xyes" ; then
22581 ac_save_CFLAGS="$CFLAGS"
22582 ac_save_LIBS="$LIBS"
22583 CFLAGS="$CFLAGS $GTK_CFLAGS"
22584 LIBS="$GTK_LIBS $LIBS"
22585 rm -f conf.gtktest
22586 if test "$cross_compiling" = yes; then
22587 echo $ac_n "cross compiling; assumed OK... $ac_c"
22588else
22589 cat >conftest.$ac_ext <<_ACEOF
22590/* confdefs.h. */
22591_ACEOF
22592cat confdefs.h >>conftest.$ac_ext
22593cat >>conftest.$ac_ext <<_ACEOF
22594/* end confdefs.h. */
22595
22596#include <gtk/gtk.h>
22597#include <stdio.h>
22598#include <stdlib.h>
22599
22600int
22601main ()
22602{
22603 int major, minor, micro;
22604 char *tmp_version;
22605
22606 system ("touch conf.gtktest");
22607
22608 /* HP/UX 9 (%@#!) writes to sscanf strings */
22609 tmp_version = g_strdup("$min_gtk_version");
22610 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22611 printf("%s, bad version string\n", "$min_gtk_version");
22612 exit(1);
22613 }
22614
22615 if ((gtk_major_version != $gtk_config_major_version) ||
22616 (gtk_minor_version != $gtk_config_minor_version) ||
22617 (gtk_micro_version != $gtk_config_micro_version))
22618 {
22619 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22620 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22621 gtk_major_version, gtk_minor_version, gtk_micro_version);
22622 printf ("*** was found! If gtk-config was correct, then it is best\n");
22623 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22624 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22625 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22626 printf("*** required on your system.\n");
22627 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22628 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22629 printf("*** before re-running configure\n");
22630 }
22631#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22632 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22633 (gtk_minor_version != GTK_MINOR_VERSION) ||
22634 (gtk_micro_version != GTK_MICRO_VERSION))
22635 {
22636 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22637 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22638 printf("*** library (version %d.%d.%d)\n",
22639 gtk_major_version, gtk_minor_version, gtk_micro_version);
22640 }
22641#endif /* defined (GTK_MAJOR_VERSION) ... */
22642 else
22643 {
22644 if ((gtk_major_version > major) ||
22645 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22646 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22647 {
22648 return 0;
22649 }
22650 else
22651 {
22652 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22653 gtk_major_version, gtk_minor_version, gtk_micro_version);
22654 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22655 major, minor, micro);
22656 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22657 printf("***\n");
22658 printf("*** If you have already installed a sufficiently new version, this error\n");
22659 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22660 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22661 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22662 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22663 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22664 printf("*** so that the correct libraries are found at run-time))\n");
22665 }
22666 }
22667 return 1;
22668}
22669
22670_ACEOF
22671rm -f conftest$ac_exeext
22672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22673 (eval $ac_link) 2>&5
22674 ac_status=$?
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678 (eval $ac_try) 2>&5
22679 ac_status=$?
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); }; }; then
22682 :
22683else
22684 echo "$as_me: program exited with status $ac_status" >&5
22685echo "$as_me: failed program was:" >&5
22686sed 's/^/| /' conftest.$ac_ext >&5
22687
22688( exit $ac_status )
22689no_gtk=yes
22690fi
22691rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22692fi
22693 CFLAGS="$ac_save_CFLAGS"
22694 LIBS="$ac_save_LIBS"
22695 fi
22696 fi
22697 if test "x$no_gtk" = x ; then
22698 echo "$as_me:$LINENO: result: yes" >&5
22699echo "${ECHO_T}yes" >&6
22700 wx_cv_lib_gtk=1.2.3
22701 else
22702 echo "$as_me:$LINENO: result: no" >&5
22703echo "${ECHO_T}no" >&6
22704 if test "$GTK_CONFIG" = "no" ; then
22705 echo "*** The gtk-config script installed by GTK could not be found"
22706 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22707 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22708 echo "*** full path to gtk-config."
22709 else
22710 if test -f conf.gtktest ; then
22711 :
22712 else
22713 echo "*** Could not run GTK test program, checking why..."
22714 CFLAGS="$CFLAGS $GTK_CFLAGS"
22715 LIBS="$LIBS $GTK_LIBS"
22716 cat >conftest.$ac_ext <<_ACEOF
22717/* confdefs.h. */
22718_ACEOF
22719cat confdefs.h >>conftest.$ac_ext
22720cat >>conftest.$ac_ext <<_ACEOF
22721/* end confdefs.h. */
22722
22723#include <gtk/gtk.h>
22724#include <stdio.h>
22725
22726int
22727main ()
22728{
22729 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22730 ;
22731 return 0;
22732}
22733_ACEOF
22734rm -f conftest.$ac_objext conftest$ac_exeext
22735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22736 (eval $ac_link) 2>conftest.er1
22737 ac_status=$?
22738 grep -v '^ *+' conftest.er1 >conftest.err
22739 rm -f conftest.er1
22740 cat conftest.err >&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } &&
dcc1b6ad
VS
22743 { ac_try='test -z "$ac_c_werror_flag"
22744 || test ! -s conftest.err'
a848cd7e
SC
22745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746 (eval $ac_try) 2>&5
22747 ac_status=$?
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); }; } &&
22750 { ac_try='test -s conftest$ac_exeext'
22751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22753 ac_status=$?
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; }; then
22756 echo "*** The test program compiled, but did not run. This usually means"
22757 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22758 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22759 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22760 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22761 echo "*** is required on your system"
22762 echo "***"
22763 echo "*** If you have an old version installed, it is best to remove it, although"
22764 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22765 echo "***"
22766 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22767 echo "*** came with the system with the command"
22768 echo "***"
22769 echo "*** rpm --erase --nodeps gtk gtk-devel"
22770else
22771 echo "$as_me: failed program was:" >&5
22772sed 's/^/| /' conftest.$ac_ext >&5
22773
22774 echo "*** The test program failed to compile or link. See the file config.log for the"
22775 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22776 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22777 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22778fi
22779rm -f conftest.err conftest.$ac_objext \
22780 conftest$ac_exeext conftest.$ac_ext
22781 CFLAGS="$ac_save_CFLAGS"
22782 LIBS="$ac_save_LIBS"
22783 fi
22784 fi
22785 GTK_CFLAGS=""
22786 GTK_LIBS=""
22787 :
22788 fi
22789
22790
22791 rm -f conf.gtktest
22792
22793 fi
22794 fi
22795
22796 if test -z "$wx_cv_lib_gtk"; then
22797 wx_cv_lib_gtk=none
22798 else
22799 wx_cv_cflags_gtk=$GTK_CFLAGS
22800 wx_cv_libs_gtk=$GTK_LIBS
22801 fi
22802
22803
22804fi
22805
22806
22807 if test "$gtk_version_cached" = 1; then
22808 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22809echo "${ECHO_T}$wx_cv_lib_gtk" >&6
22810 fi
22811
22812 case "$wx_cv_lib_gtk" in
22813 2.0) WXGTK20=1
22814 TOOLKIT_VERSION=2
22815 ;;
22816 1.2.7) WXGTK127=1
22817 WXGTK12=1
22818 ;;
22819 1.2.3) WXGTK12=1
22820 ;;
22821 *) { { echo "$as_me:$LINENO: error:
22822Please check that gtk-config is in path, the directory
22823where GTK+ libraries are installed (returned by
22824'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22825equivalent variable and GTK+ is version 1.2.3 or above.
22826 " >&5
22827echo "$as_me: error:
22828Please check that gtk-config is in path, the directory
22829where GTK+ libraries are installed (returned by
22830'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22831equivalent variable and GTK+ is version 1.2.3 or above.
22832 " >&2;}
22833 { (exit 1); exit 1; }; }
22834 ;;
22835 esac
22836
22837 if test "$WXGTK20" = 1; then
22838 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
22839
22840 succeeded=no
22841
22842 if test -z "$PKG_CONFIG"; then
22843 # Extract the first word of "pkg-config", so it can be a program name with args.
22844set dummy pkg-config; ac_word=$2
22845echo "$as_me:$LINENO: checking for $ac_word" >&5
22846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22847if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22848 echo $ECHO_N "(cached) $ECHO_C" >&6
22849else
22850 case $PKG_CONFIG in
22851 [\\/]* | ?:[\\/]*)
22852 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22853 ;;
22854 *)
22855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22856for as_dir in $PATH
22857do
22858 IFS=$as_save_IFS
22859 test -z "$as_dir" && as_dir=.
22860 for ac_exec_ext in '' $ac_executable_extensions; do
22861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22862 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22864 break 2
22865 fi
22866done
22867done
22868
22869 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22870 ;;
22871esac
22872fi
22873PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22874
22875if test -n "$PKG_CONFIG"; then
22876 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22877echo "${ECHO_T}$PKG_CONFIG" >&6
22878else
22879 echo "$as_me:$LINENO: result: no" >&5
22880echo "${ECHO_T}no" >&6
22881fi
22882
22883 fi
22884
22885 if test "$PKG_CONFIG" = "no" ; then
22886 echo "*** The pkg-config script could not be found. Make sure it is"
22887 echo "*** in your path, or set the PKG_CONFIG environment variable"
22888 echo "*** to the full path to pkg-config."
22889 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22890 else
22891 PKG_CONFIG_MIN_VERSION=0.9.0
22892 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22893 echo "$as_me:$LINENO: checking for pangoft2" >&5
22894echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22895
22896 if $PKG_CONFIG --exists "pangoft2" ; then
22897 echo "$as_me:$LINENO: result: yes" >&5
22898echo "${ECHO_T}yes" >&6
22899 succeeded=yes
22900
22901 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22902echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22903 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22904 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22905echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22906
22907 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22908echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22909 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22910 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22911echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22912 else
22913 PANGOFT2_CFLAGS=""
22914 PANGOFT2_LIBS=""
22915 ## If we have a custom action on failure, don't print errors, but
22916 ## do set a variable so people can do so.
22917 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22918
22919 fi
22920
22921
22922
22923 else
22924 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22925 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22926 fi
22927 fi
22928
22929 if test $succeeded = yes; then
22930
22931 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22932 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22933
22934 else
22935
22936 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22937echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22938 wxUSE_PRINTING_ARCHITECTURE="no"
22939
22940
22941 fi
22942
22943 fi
22944 else
22945 if test "$wxUSE_UNICODE" = "yes"; then
22946 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22947echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
22948 wxUSE_UNICODE=no
22949 fi
22950 fi
22951
22952 if test "$USE_DARWIN" != 1; then
22953
22954for ac_func in poll
22955do
22956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22957echo "$as_me:$LINENO: checking for $ac_func" >&5
22958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22959if eval "test \"\${$as_ac_var+set}\" = set"; then
22960 echo $ECHO_N "(cached) $ECHO_C" >&6
22961else
22962 cat >conftest.$ac_ext <<_ACEOF
22963/* confdefs.h. */
22964_ACEOF
22965cat confdefs.h >>conftest.$ac_ext
22966cat >>conftest.$ac_ext <<_ACEOF
22967/* end confdefs.h. */
22968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22970#define $ac_func innocuous_$ac_func
22971
22972/* System header to define __stub macros and hopefully few prototypes,
22973 which can conflict with char $ac_func (); below.
22974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22975 <limits.h> exists even on freestanding compilers. */
22976
22977#ifdef __STDC__
22978# include <limits.h>
22979#else
22980# include <assert.h>
22981#endif
22982
22983#undef $ac_func
22984
22985/* Override any gcc2 internal prototype to avoid an error. */
22986#ifdef __cplusplus
22987extern "C"
22988{
22989#endif
22990/* We use char because int might match the return type of a gcc2
22991 builtin and then its argument prototype would still apply. */
22992char $ac_func ();
22993/* The GNU C library defines this for functions which it implements
22994 to always fail with ENOSYS. Some functions are actually named
22995 something starting with __ and the normal name is an alias. */
22996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22997choke me
22998#else
22999char (*f) () = $ac_func;
23000#endif
23001#ifdef __cplusplus
23002}
23003#endif
23004
23005int
23006main ()
23007{
23008return f != $ac_func;
23009 ;
23010 return 0;
23011}
23012_ACEOF
23013rm -f conftest.$ac_objext conftest$ac_exeext
23014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23015 (eval $ac_link) 2>conftest.er1
23016 ac_status=$?
23017 grep -v '^ *+' conftest.er1 >conftest.err
23018 rm -f conftest.er1
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } &&
dcc1b6ad
VS
23022 { ac_try='test -z "$ac_c_werror_flag"
23023 || test ! -s conftest.err'
a848cd7e
SC
23024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23025 (eval $ac_try) 2>&5
23026 ac_status=$?
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); }; } &&
23029 { ac_try='test -s conftest$ac_exeext'
23030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031 (eval $ac_try) 2>&5
23032 ac_status=$?
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; }; then
23035 eval "$as_ac_var=yes"
23036else
23037 echo "$as_me: failed program was:" >&5
23038sed 's/^/| /' conftest.$ac_ext >&5
23039
23040eval "$as_ac_var=no"
23041fi
23042rm -f conftest.err conftest.$ac_objext \
23043 conftest$ac_exeext conftest.$ac_ext
23044fi
23045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23047if test `eval echo '${'$as_ac_var'}'` = yes; then
23048 cat >>confdefs.h <<_ACEOF
23049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23050_ACEOF
23051
23052fi
23053done
23054
23055 fi
23056
23057 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23058 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23059
23060 AFMINSTALL=afminstall
23061 TOOLKIT=GTK
23062 GUIDIST=GTK_DIST
23063
23064 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23065echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23066if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23067 echo $ECHO_N "(cached) $ECHO_C" >&6
23068else
23069 ac_check_lib_save_LIBS=$LIBS
23070LIBS="-lgdk $LIBS"
23071cat >conftest.$ac_ext <<_ACEOF
23072/* confdefs.h. */
23073_ACEOF
23074cat confdefs.h >>conftest.$ac_ext
23075cat >>conftest.$ac_ext <<_ACEOF
23076/* end confdefs.h. */
23077
23078/* Override any gcc2 internal prototype to avoid an error. */
23079#ifdef __cplusplus
23080extern "C"
23081#endif
23082/* We use char because int might match the return type of a gcc2
23083 builtin and then its argument prototype would still apply. */
23084char gdk_im_open ();
23085int
23086main ()
23087{
23088gdk_im_open ();
23089 ;
23090 return 0;
23091}
23092_ACEOF
23093rm -f conftest.$ac_objext conftest$ac_exeext
23094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23095 (eval $ac_link) 2>conftest.er1
23096 ac_status=$?
23097 grep -v '^ *+' conftest.er1 >conftest.err
23098 rm -f conftest.er1
23099 cat conftest.err >&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } &&
dcc1b6ad
VS
23102 { ac_try='test -z "$ac_c_werror_flag"
23103 || test ! -s conftest.err'
a848cd7e
SC
23104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105 (eval $ac_try) 2>&5
23106 ac_status=$?
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); }; } &&
23109 { ac_try='test -s conftest$ac_exeext'
23110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111 (eval $ac_try) 2>&5
23112 ac_status=$?
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); }; }; then
23115 ac_cv_lib_gdk_gdk_im_open=yes
23116else
23117 echo "$as_me: failed program was:" >&5
23118sed 's/^/| /' conftest.$ac_ext >&5
23119
23120ac_cv_lib_gdk_gdk_im_open=no
23121fi
23122rm -f conftest.err conftest.$ac_objext \
23123 conftest$ac_exeext conftest.$ac_ext
23124LIBS=$ac_check_lib_save_LIBS
23125fi
23126echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23127echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23128if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23129 cat >>confdefs.h <<\_ACEOF
23130#define HAVE_XIM 1
23131_ACEOF
23132
23133fi
23134
23135
23136
23137 if test "$wxUSE_GPE" = "yes"; then
23138 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23139echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23140
23141ac_find_libraries=
23142for ac_dir in $SEARCH_LIB /usr/lib;
23143 do
23144 for ac_extension in a so sl dylib; do
23145 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23146 ac_find_libraries=$ac_dir
23147 break 2
23148 fi
23149 done
23150 done
23151
23152 if test "$ac_find_libraries" != "" ; then
23153
23154 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23155 result=$?
23156 if test $result = 0; then
23157 ac_path_to_link=""
23158 else
23159 ac_path_to_link=" -L$ac_find_libraries"
23160 fi
23161
23162 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23163 WXGPE=1
23164 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23165echo "${ECHO_T}found at $ac_find_libraries" >&6
23166 else
23167 echo "$as_me:$LINENO: result: not found" >&5
23168echo "${ECHO_T}not found" >&6
23169 fi
23170
23171 fi
23172 fi
23173
23174 if test "$wxUSE_MGL" = 1; then
23175 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23176echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23177 if test "x$MGL_ROOT" = x ; then
23178 echo "$as_me:$LINENO: result: not found" >&5
23179echo "${ECHO_T}not found" >&6
23180 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23181echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23182 { (exit 1); exit 1; }; }
23183 else
23184 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23185echo "${ECHO_T}$MGL_ROOT" >&6
23186 fi
23187
23188 echo "$as_me:$LINENO: checking for libmgl location" >&5
23189echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23190 case "${host}" in
23191 *-*-linux* )
23192 if test "x$wxUSE_SHARED" = xyes ; then
23193 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23194 else
23195 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23196 fi
23197 ;;
23198 *-pc-msdosdjgpp )
23199 mgl_os_candidates="dos32/dj2"
23200 ;;
23201 *)
23202 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23203echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23204 { (exit 1); exit 1; }; }
23205 esac
23206
23207 mgl_lib_type=""
23208 mgl_os=""
23209
23210 for mgl_os_i in $mgl_os_candidates ; do
23211 if test "x$mgl_os" = x ; then
23212 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23213 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23214 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23215 mgl_lib_type=debug
23216 mgl_os=$mgl_os_i
23217 fi
23218 fi
23219 if test "x$mgl_lib_type" = x ; then
23220 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23221 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23222 mgl_lib_type=release
23223 mgl_os=$mgl_os_i
23224 fi
23225 fi
23226 fi
23227 done
23228
23229 if test "x$mgl_os" = x ; then
23230 echo "$as_me:$LINENO: result: not found" >&5
23231echo "${ECHO_T}not found" >&6
23232 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23233echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23234 { (exit 1); exit 1; }; }
23235 fi
23236 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23237echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23238
23239 wxUSE_UNIVERSAL="yes"
23240
23241 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23242 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23243
23244 AFMINSTALL=afminstall
23245 TOOLKIT=MGL
23246 GUIDIST=MGL_DIST
23247 fi
23248
23249 if test "$wxUSE_MICROWIN" = 1; then
23250 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23251echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23252 if test "x$MICROWINDOWS" = x ; then
23253 echo "$as_me:$LINENO: result: not found" >&5
23254echo "${ECHO_T}not found" >&6
23255 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23256echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23257 { (exit 1); exit 1; }; }
23258 else
23259 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23260echo "${ECHO_T}$MICROWINDOWS" >&6
23261 fi
23262
23263 if test -f $MICROWINDOWS/lib/libmwin.a; then
23264 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23265echo "${ECHO_T}MicroWindows' libraries found." >&6
23266 else
23267 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23268echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23269 { (exit 1); exit 1; }; }
23270 fi
23271
23272 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23273 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23274
23275 wxUSE_UNIVERSAL="yes"
23276
23277 AFMINSTALL=afminstall
23278 TOOLKIT=MICROWIN
23279 GUIDIST=MICROWIN_DIST
23280
23281 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23282 fi
23283
23284 if test "$wxUSE_X11" = 1; then
23285 echo "$as_me:$LINENO: checking for X" >&5
23286echo $ECHO_N "checking for X... $ECHO_C" >&6
23287
23288
23289# Check whether --with-x or --without-x was given.
23290if test "${with_x+set}" = set; then
23291 withval="$with_x"
23292
23293fi;
23294# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23295if test "x$with_x" = xno; then
23296 # The user explicitly disabled X.
23297 have_x=disabled
23298else
23299 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23300 # Both variables are already set.
23301 have_x=yes
23302 else
23303 if test "${ac_cv_have_x+set}" = set; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23305else
23306 # One or both of the vars are not set, and there is no cached value.
23307ac_x_includes=no ac_x_libraries=no
23308rm -fr conftest.dir
23309if mkdir conftest.dir; then
23310 cd conftest.dir
23311 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23312 cat >Imakefile <<'_ACEOF'
23313acfindx:
23314 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23315_ACEOF
23316 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23317 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23318 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23319 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23320 for ac_extension in a so sl; do
23321 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23322 test -f $ac_im_libdir/libX11.$ac_extension; then
23323 ac_im_usrlibdir=$ac_im_libdir; break
23324 fi
23325 done
23326 # Screen out bogus values from the imake configuration. They are
23327 # bogus both because they are the default anyway, and because
23328 # using them would break gcc on systems where it needs fixed includes.
23329 case $ac_im_incroot in
23330 /usr/include) ;;
23331 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23332 esac
23333 case $ac_im_usrlibdir in
23334 /usr/lib | /lib) ;;
23335 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23336 esac
23337 fi
23338 cd ..
23339 rm -fr conftest.dir
23340fi
23341
23342# Standard set of common directories for X headers.
23343# Check X11 before X11Rn because it is often a symlink to the current release.
23344ac_x_header_dirs='
23345/usr/X11/include
23346/usr/X11R6/include
23347/usr/X11R5/include
23348/usr/X11R4/include
23349
23350/usr/include/X11
23351/usr/include/X11R6
23352/usr/include/X11R5
23353/usr/include/X11R4
23354
23355/usr/local/X11/include
23356/usr/local/X11R6/include
23357/usr/local/X11R5/include
23358/usr/local/X11R4/include
23359
23360/usr/local/include/X11
23361/usr/local/include/X11R6
23362/usr/local/include/X11R5
23363/usr/local/include/X11R4
23364
23365/usr/X386/include
23366/usr/x386/include
23367/usr/XFree86/include/X11
23368
23369/usr/include
23370/usr/local/include
23371/usr/unsupported/include
23372/usr/athena/include
23373/usr/local/x11r5/include
23374/usr/lpp/Xamples/include
23375
23376/usr/openwin/include
23377/usr/openwin/share/include'
23378
23379if test "$ac_x_includes" = no; then
23380 # Guess where to find include files, by looking for Intrinsic.h.
23381 # First, try using that file with no special directory specified.
23382 cat >conftest.$ac_ext <<_ACEOF
23383/* confdefs.h. */
23384_ACEOF
23385cat confdefs.h >>conftest.$ac_ext
23386cat >>conftest.$ac_ext <<_ACEOF
23387/* end confdefs.h. */
23388#include <X11/Intrinsic.h>
23389_ACEOF
23390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23392 ac_status=$?
23393 grep -v '^ *+' conftest.er1 >conftest.err
23394 rm -f conftest.er1
23395 cat conftest.err >&5
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } >/dev/null; then
23398 if test -s conftest.err; then
23399 ac_cpp_err=$ac_c_preproc_warn_flag
23400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23401 else
23402 ac_cpp_err=
23403 fi
23404else
23405 ac_cpp_err=yes
23406fi
23407if test -z "$ac_cpp_err"; then
23408 # We can compile using X headers with no special include directory.
23409ac_x_includes=
23410else
23411 echo "$as_me: failed program was:" >&5
23412sed 's/^/| /' conftest.$ac_ext >&5
23413
23414 for ac_dir in $ac_x_header_dirs; do
23415 if test -r "$ac_dir/X11/Intrinsic.h"; then
23416 ac_x_includes=$ac_dir
23417 break
23418 fi
23419done
23420fi
23421rm -f conftest.err conftest.$ac_ext
23422fi # $ac_x_includes = no
23423
23424if test "$ac_x_libraries" = no; then
23425 # Check for the libraries.
23426 # See if we find them without any special options.
23427 # Don't add to $LIBS permanently.
23428 ac_save_LIBS=$LIBS
23429 LIBS="-lXt $LIBS"
23430 cat >conftest.$ac_ext <<_ACEOF
23431/* confdefs.h. */
23432_ACEOF
23433cat confdefs.h >>conftest.$ac_ext
23434cat >>conftest.$ac_ext <<_ACEOF
23435/* end confdefs.h. */
23436#include <X11/Intrinsic.h>
23437int
23438main ()
23439{
23440XtMalloc (0)
23441 ;
23442 return 0;
23443}
23444_ACEOF
23445rm -f conftest.$ac_objext conftest$ac_exeext
23446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23447 (eval $ac_link) 2>conftest.er1
23448 ac_status=$?
23449 grep -v '^ *+' conftest.er1 >conftest.err
23450 rm -f conftest.er1
23451 cat conftest.err >&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); } &&
dcc1b6ad
VS
23454 { ac_try='test -z "$ac_c_werror_flag"
23455 || test ! -s conftest.err'
a848cd7e
SC
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23458 ac_status=$?
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } &&
23461 { ac_try='test -s conftest$ac_exeext'
23462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463 (eval $ac_try) 2>&5
23464 ac_status=$?
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); }; }; then
23467 LIBS=$ac_save_LIBS
23468# We can link X programs with no special library path.
23469ac_x_libraries=
23470else
23471 echo "$as_me: failed program was:" >&5
23472sed 's/^/| /' conftest.$ac_ext >&5
23473
23474LIBS=$ac_save_LIBS
23475for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23476do
23477 # Don't even attempt the hair of trying to link an X program!
23478 for ac_extension in a so sl; do
23479 if test -r $ac_dir/libXt.$ac_extension; then
23480 ac_x_libraries=$ac_dir
23481 break 2
23482 fi
23483 done
23484done
23485fi
23486rm -f conftest.err conftest.$ac_objext \
23487 conftest$ac_exeext conftest.$ac_ext
23488fi # $ac_x_libraries = no
23489
23490if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23491 # Didn't find X anywhere. Cache the known absence of X.
23492 ac_cv_have_x="have_x=no"
23493else
23494 # Record where we found X for the cache.
23495 ac_cv_have_x="have_x=yes \
23496 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23497fi
23498fi
23499
23500 fi
23501 eval "$ac_cv_have_x"
23502fi # $with_x != no
23503
23504if test "$have_x" != yes; then
23505 echo "$as_me:$LINENO: result: $have_x" >&5
23506echo "${ECHO_T}$have_x" >&6
23507 no_x=yes
23508else
23509 # If each of the values was on the command line, it overrides each guess.
23510 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23511 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23512 # Update the cache value to reflect the command line values.
23513 ac_cv_have_x="have_x=yes \
23514 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23515 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23516echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23517fi
23518
23519if test "$no_x" = yes; then
23520 # Not all programs may use this symbol, but it does not hurt to define it.
23521
23522cat >>confdefs.h <<\_ACEOF
23523#define X_DISPLAY_MISSING 1
23524_ACEOF
23525
23526 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23527else
23528 if test -n "$x_includes"; then
23529 X_CFLAGS="$X_CFLAGS -I$x_includes"
23530 fi
23531
23532 # It would also be nice to do this for all -L options, not just this one.
23533 if test -n "$x_libraries"; then
23534 X_LIBS="$X_LIBS -L$x_libraries"
23535 # For Solaris; some versions of Sun CC require a space after -R and
23536 # others require no space. Words are not sufficient . . . .
23537 case `(uname -sr) 2>/dev/null` in
23538 "SunOS 5"*)
23539 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23540echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23541 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23542 cat >conftest.$ac_ext <<_ACEOF
23543/* confdefs.h. */
23544_ACEOF
23545cat confdefs.h >>conftest.$ac_ext
23546cat >>conftest.$ac_ext <<_ACEOF
23547/* end confdefs.h. */
23548
23549int
23550main ()
23551{
23552
23553 ;
23554 return 0;
23555}
23556_ACEOF
23557rm -f conftest.$ac_objext conftest$ac_exeext
23558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23559 (eval $ac_link) 2>conftest.er1
23560 ac_status=$?
23561 grep -v '^ *+' conftest.er1 >conftest.err
23562 rm -f conftest.er1
23563 cat conftest.err >&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } &&
dcc1b6ad
VS
23566 { ac_try='test -z "$ac_c_werror_flag"
23567 || test ! -s conftest.err'
a848cd7e
SC
23568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569 (eval $ac_try) 2>&5
23570 ac_status=$?
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; } &&
23573 { ac_try='test -s conftest$ac_exeext'
23574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575 (eval $ac_try) 2>&5
23576 ac_status=$?
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); }; }; then
23579 ac_R_nospace=yes
23580else
23581 echo "$as_me: failed program was:" >&5
23582sed 's/^/| /' conftest.$ac_ext >&5
23583
23584ac_R_nospace=no
23585fi
23586rm -f conftest.err conftest.$ac_objext \
23587 conftest$ac_exeext conftest.$ac_ext
23588 if test $ac_R_nospace = yes; then
23589 echo "$as_me:$LINENO: result: no" >&5
23590echo "${ECHO_T}no" >&6
23591 X_LIBS="$X_LIBS -R$x_libraries"
23592 else
23593 LIBS="$ac_xsave_LIBS -R $x_libraries"
23594 cat >conftest.$ac_ext <<_ACEOF
23595/* confdefs.h. */
23596_ACEOF
23597cat confdefs.h >>conftest.$ac_ext
23598cat >>conftest.$ac_ext <<_ACEOF
23599/* end confdefs.h. */
23600
23601int
23602main ()
23603{
23604
23605 ;
23606 return 0;
23607}
23608_ACEOF
23609rm -f conftest.$ac_objext conftest$ac_exeext
23610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23611 (eval $ac_link) 2>conftest.er1
23612 ac_status=$?
23613 grep -v '^ *+' conftest.er1 >conftest.err
23614 rm -f conftest.er1
23615 cat conftest.err >&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } &&
dcc1b6ad
VS
23618 { ac_try='test -z "$ac_c_werror_flag"
23619 || test ! -s conftest.err'
a848cd7e
SC
23620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23621 (eval $ac_try) 2>&5
23622 ac_status=$?
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); }; } &&
23625 { ac_try='test -s conftest$ac_exeext'
23626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23627 (eval $ac_try) 2>&5
23628 ac_status=$?
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); }; }; then
23631 ac_R_space=yes
23632else
23633 echo "$as_me: failed program was:" >&5
23634sed 's/^/| /' conftest.$ac_ext >&5
23635
23636ac_R_space=no
23637fi
23638rm -f conftest.err conftest.$ac_objext \
23639 conftest$ac_exeext conftest.$ac_ext
23640 if test $ac_R_space = yes; then
23641 echo "$as_me:$LINENO: result: yes" >&5
23642echo "${ECHO_T}yes" >&6
23643 X_LIBS="$X_LIBS -R $x_libraries"
23644 else
23645 echo "$as_me:$LINENO: result: neither works" >&5
23646echo "${ECHO_T}neither works" >&6
23647 fi
23648 fi
23649 LIBS=$ac_xsave_LIBS
23650 esac
23651 fi
23652
23653 # Check for system-dependent libraries X programs must link with.
23654 # Do this before checking for the system-independent R6 libraries
23655 # (-lICE), since we may need -lsocket or whatever for X linking.
23656
23657 if test "$ISC" = yes; then
23658 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23659 else
23660 # Martyn Johnson says this is needed for Ultrix, if the X
23661 # libraries were built with DECnet support. And Karl Berry says
23662 # the Alpha needs dnet_stub (dnet does not exist).
23663 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23664 cat >conftest.$ac_ext <<_ACEOF
23665/* confdefs.h. */
23666_ACEOF
23667cat confdefs.h >>conftest.$ac_ext
23668cat >>conftest.$ac_ext <<_ACEOF
23669/* end confdefs.h. */
23670
23671/* Override any gcc2 internal prototype to avoid an error. */
23672#ifdef __cplusplus
23673extern "C"
23674#endif
23675/* We use char because int might match the return type of a gcc2
23676 builtin and then its argument prototype would still apply. */
23677char XOpenDisplay ();
23678int
23679main ()
23680{
23681XOpenDisplay ();
23682 ;
23683 return 0;
23684}
23685_ACEOF
23686rm -f conftest.$ac_objext conftest$ac_exeext
23687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23688 (eval $ac_link) 2>conftest.er1
23689 ac_status=$?
23690 grep -v '^ *+' conftest.er1 >conftest.err
23691 rm -f conftest.er1
23692 cat conftest.err >&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } &&
dcc1b6ad
VS
23695 { ac_try='test -z "$ac_c_werror_flag"
23696 || test ! -s conftest.err'
a848cd7e
SC
23697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698 (eval $ac_try) 2>&5
23699 ac_status=$?
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); }; } &&
23702 { ac_try='test -s conftest$ac_exeext'
23703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23704 (eval $ac_try) 2>&5
23705 ac_status=$?
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); }; }; then
23708 :
23709else
23710 echo "$as_me: failed program was:" >&5
23711sed 's/^/| /' conftest.$ac_ext >&5
23712
23713echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23714echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23715if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23716 echo $ECHO_N "(cached) $ECHO_C" >&6
23717else
23718 ac_check_lib_save_LIBS=$LIBS
23719LIBS="-ldnet $LIBS"
23720cat >conftest.$ac_ext <<_ACEOF
23721/* confdefs.h. */
23722_ACEOF
23723cat confdefs.h >>conftest.$ac_ext
23724cat >>conftest.$ac_ext <<_ACEOF
23725/* end confdefs.h. */
23726
23727/* Override any gcc2 internal prototype to avoid an error. */
23728#ifdef __cplusplus
23729extern "C"
23730#endif
23731/* We use char because int might match the return type of a gcc2
23732 builtin and then its argument prototype would still apply. */
23733char dnet_ntoa ();
23734int
23735main ()
23736{
23737dnet_ntoa ();
23738 ;
23739 return 0;
23740}
23741_ACEOF
23742rm -f conftest.$ac_objext conftest$ac_exeext
23743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23744 (eval $ac_link) 2>conftest.er1
23745 ac_status=$?
23746 grep -v '^ *+' conftest.er1 >conftest.err
23747 rm -f conftest.er1
23748 cat conftest.err >&5
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); } &&
dcc1b6ad
VS
23751 { ac_try='test -z "$ac_c_werror_flag"
23752 || test ! -s conftest.err'
a848cd7e
SC
23753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754 (eval $ac_try) 2>&5
23755 ac_status=$?
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); }; } &&
23758 { ac_try='test -s conftest$ac_exeext'
23759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23760 (eval $ac_try) 2>&5
23761 ac_status=$?
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); }; }; then
23764 ac_cv_lib_dnet_dnet_ntoa=yes
23765else
23766 echo "$as_me: failed program was:" >&5
23767sed 's/^/| /' conftest.$ac_ext >&5
23768
23769ac_cv_lib_dnet_dnet_ntoa=no
23770fi
23771rm -f conftest.err conftest.$ac_objext \
23772 conftest$ac_exeext conftest.$ac_ext
23773LIBS=$ac_check_lib_save_LIBS
23774fi
23775echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23776echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23777if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23778 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23779fi
23780
23781 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23782 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23783echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23784if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23785 echo $ECHO_N "(cached) $ECHO_C" >&6
23786else
23787 ac_check_lib_save_LIBS=$LIBS
23788LIBS="-ldnet_stub $LIBS"
23789cat >conftest.$ac_ext <<_ACEOF
23790/* confdefs.h. */
23791_ACEOF
23792cat confdefs.h >>conftest.$ac_ext
23793cat >>conftest.$ac_ext <<_ACEOF
23794/* end confdefs.h. */
23795
23796/* Override any gcc2 internal prototype to avoid an error. */
23797#ifdef __cplusplus
23798extern "C"
23799#endif
23800/* We use char because int might match the return type of a gcc2
23801 builtin and then its argument prototype would still apply. */
23802char dnet_ntoa ();
23803int
23804main ()
23805{
23806dnet_ntoa ();
23807 ;
23808 return 0;
23809}
23810_ACEOF
23811rm -f conftest.$ac_objext conftest$ac_exeext
23812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23813 (eval $ac_link) 2>conftest.er1
23814 ac_status=$?
23815 grep -v '^ *+' conftest.er1 >conftest.err
23816 rm -f conftest.er1
23817 cat conftest.err >&5
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); } &&
dcc1b6ad
VS
23820 { ac_try='test -z "$ac_c_werror_flag"
23821 || test ! -s conftest.err'
a848cd7e
SC
23822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23823 (eval $ac_try) 2>&5
23824 ac_status=$?
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); }; } &&
23827 { ac_try='test -s conftest$ac_exeext'
23828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23829 (eval $ac_try) 2>&5
23830 ac_status=$?
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); }; }; then
23833 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23834else
23835 echo "$as_me: failed program was:" >&5
23836sed 's/^/| /' conftest.$ac_ext >&5
23837
23838ac_cv_lib_dnet_stub_dnet_ntoa=no
23839fi
23840rm -f conftest.err conftest.$ac_objext \
23841 conftest$ac_exeext conftest.$ac_ext
23842LIBS=$ac_check_lib_save_LIBS
23843fi
23844echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23845echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23846if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23847 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23848fi
23849
23850 fi
23851fi
23852rm -f conftest.err conftest.$ac_objext \
23853 conftest$ac_exeext conftest.$ac_ext
23854 LIBS="$ac_xsave_LIBS"
23855
23856 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23857 # to get the SysV transport functions.
23858 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23859 # needs -lnsl.
23860 # The nsl library prevents programs from opening the X display
23861 # on Irix 5.2, according to T.E. Dickey.
23862 # The functions gethostbyname, getservbyname, and inet_addr are
23863 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23864 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23865echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23866if test "${ac_cv_func_gethostbyname+set}" = set; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23868else
23869 cat >conftest.$ac_ext <<_ACEOF
23870/* confdefs.h. */
23871_ACEOF
23872cat confdefs.h >>conftest.$ac_ext
23873cat >>conftest.$ac_ext <<_ACEOF
23874/* end confdefs.h. */
23875/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23877#define gethostbyname innocuous_gethostbyname
23878
23879/* System header to define __stub macros and hopefully few prototypes,
23880 which can conflict with char gethostbyname (); below.
23881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23882 <limits.h> exists even on freestanding compilers. */
23883
23884#ifdef __STDC__
23885# include <limits.h>
23886#else
23887# include <assert.h>
23888#endif
23889
23890#undef gethostbyname
23891
23892/* Override any gcc2 internal prototype to avoid an error. */
23893#ifdef __cplusplus
23894extern "C"
23895{
23896#endif
23897/* We use char because int might match the return type of a gcc2
23898 builtin and then its argument prototype would still apply. */
23899char gethostbyname ();
23900/* The GNU C library defines this for functions which it implements
23901 to always fail with ENOSYS. Some functions are actually named
23902 something starting with __ and the normal name is an alias. */
23903#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23904choke me
23905#else
23906char (*f) () = gethostbyname;
23907#endif
23908#ifdef __cplusplus
23909}
23910#endif
23911
23912int
23913main ()
23914{
23915return f != gethostbyname;
23916 ;
23917 return 0;
23918}
23919_ACEOF
23920rm -f conftest.$ac_objext conftest$ac_exeext
23921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23922 (eval $ac_link) 2>conftest.er1
23923 ac_status=$?
23924 grep -v '^ *+' conftest.er1 >conftest.err
23925 rm -f conftest.er1
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } &&
dcc1b6ad
VS
23929 { ac_try='test -z "$ac_c_werror_flag"
23930 || test ! -s conftest.err'
a848cd7e
SC
23931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932 (eval $ac_try) 2>&5
23933 ac_status=$?
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); }; } &&
23936 { ac_try='test -s conftest$ac_exeext'
23937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938 (eval $ac_try) 2>&5
23939 ac_status=$?
23940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); }; }; then
23942 ac_cv_func_gethostbyname=yes
23943else
23944 echo "$as_me: failed program was:" >&5
23945sed 's/^/| /' conftest.$ac_ext >&5
23946
23947ac_cv_func_gethostbyname=no
23948fi
23949rm -f conftest.err conftest.$ac_objext \
23950 conftest$ac_exeext conftest.$ac_ext
23951fi
23952echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23953echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23954
23955 if test $ac_cv_func_gethostbyname = no; then
23956 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23957echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23958if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23959 echo $ECHO_N "(cached) $ECHO_C" >&6
23960else
23961 ac_check_lib_save_LIBS=$LIBS
23962LIBS="-lnsl $LIBS"
23963cat >conftest.$ac_ext <<_ACEOF
23964/* confdefs.h. */
23965_ACEOF
23966cat confdefs.h >>conftest.$ac_ext
23967cat >>conftest.$ac_ext <<_ACEOF
23968/* end confdefs.h. */
23969
23970/* Override any gcc2 internal prototype to avoid an error. */
23971#ifdef __cplusplus
23972extern "C"
23973#endif
23974/* We use char because int might match the return type of a gcc2
23975 builtin and then its argument prototype would still apply. */
23976char gethostbyname ();
23977int
23978main ()
23979{
23980gethostbyname ();
23981 ;
23982 return 0;
23983}
23984_ACEOF
23985rm -f conftest.$ac_objext conftest$ac_exeext
23986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23987 (eval $ac_link) 2>conftest.er1
23988 ac_status=$?
23989 grep -v '^ *+' conftest.er1 >conftest.err
23990 rm -f conftest.er1
23991 cat conftest.err >&5
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); } &&
dcc1b6ad
VS
23994 { ac_try='test -z "$ac_c_werror_flag"
23995 || test ! -s conftest.err'
a848cd7e
SC
23996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997 (eval $ac_try) 2>&5
23998 ac_status=$?
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); }; } &&
24001 { ac_try='test -s conftest$ac_exeext'
24002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24003 (eval $ac_try) 2>&5
24004 ac_status=$?
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); }; }; then
24007 ac_cv_lib_nsl_gethostbyname=yes
24008else
24009 echo "$as_me: failed program was:" >&5
24010sed 's/^/| /' conftest.$ac_ext >&5
24011
24012ac_cv_lib_nsl_gethostbyname=no
24013fi
24014rm -f conftest.err conftest.$ac_objext \
24015 conftest$ac_exeext conftest.$ac_ext
24016LIBS=$ac_check_lib_save_LIBS
24017fi
24018echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24019echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24020if test $ac_cv_lib_nsl_gethostbyname = yes; then
24021 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24022fi
24023
24024 if test $ac_cv_lib_nsl_gethostbyname = no; then
24025 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24026echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24027if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24028 echo $ECHO_N "(cached) $ECHO_C" >&6
24029else
24030 ac_check_lib_save_LIBS=$LIBS
24031LIBS="-lbsd $LIBS"
24032cat >conftest.$ac_ext <<_ACEOF
24033/* confdefs.h. */
24034_ACEOF
24035cat confdefs.h >>conftest.$ac_ext
24036cat >>conftest.$ac_ext <<_ACEOF
24037/* end confdefs.h. */
24038
24039/* Override any gcc2 internal prototype to avoid an error. */
24040#ifdef __cplusplus
24041extern "C"
24042#endif
24043/* We use char because int might match the return type of a gcc2
24044 builtin and then its argument prototype would still apply. */
24045char gethostbyname ();
24046int
24047main ()
24048{
24049gethostbyname ();
24050 ;
24051 return 0;
24052}
24053_ACEOF
24054rm -f conftest.$ac_objext conftest$ac_exeext
24055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24056 (eval $ac_link) 2>conftest.er1
24057 ac_status=$?
24058 grep -v '^ *+' conftest.er1 >conftest.err
24059 rm -f conftest.er1
24060 cat conftest.err >&5
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); } &&
dcc1b6ad
VS
24063 { ac_try='test -z "$ac_c_werror_flag"
24064 || test ! -s conftest.err'
a848cd7e
SC
24065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24066 (eval $ac_try) 2>&5
24067 ac_status=$?
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); }; } &&
24070 { ac_try='test -s conftest$ac_exeext'
24071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24072 (eval $ac_try) 2>&5
24073 ac_status=$?
24074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 (exit $ac_status); }; }; then
24076 ac_cv_lib_bsd_gethostbyname=yes
24077else
24078 echo "$as_me: failed program was:" >&5
24079sed 's/^/| /' conftest.$ac_ext >&5
24080
24081ac_cv_lib_bsd_gethostbyname=no
24082fi
24083rm -f conftest.err conftest.$ac_objext \
24084 conftest$ac_exeext conftest.$ac_ext
24085LIBS=$ac_check_lib_save_LIBS
24086fi
24087echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24088echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24089if test $ac_cv_lib_bsd_gethostbyname = yes; then
24090 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24091fi
24092
24093 fi
24094 fi
24095
24096 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24097 # socket/setsockopt and other routines are undefined under SCO ODT
24098 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24099 # on later versions), says Simon Leinen: it contains gethostby*
24100 # variants that don't use the name server (or something). -lsocket
24101 # must be given before -lnsl if both are needed. We assume that
24102 # if connect needs -lnsl, so does gethostbyname.
24103 echo "$as_me:$LINENO: checking for connect" >&5
24104echo $ECHO_N "checking for connect... $ECHO_C" >&6
24105if test "${ac_cv_func_connect+set}" = set; then
24106 echo $ECHO_N "(cached) $ECHO_C" >&6
24107else
24108 cat >conftest.$ac_ext <<_ACEOF
24109/* confdefs.h. */
24110_ACEOF
24111cat confdefs.h >>conftest.$ac_ext
24112cat >>conftest.$ac_ext <<_ACEOF
24113/* end confdefs.h. */
24114/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24116#define connect innocuous_connect
24117
24118/* System header to define __stub macros and hopefully few prototypes,
24119 which can conflict with char connect (); below.
24120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24121 <limits.h> exists even on freestanding compilers. */
24122
24123#ifdef __STDC__
24124# include <limits.h>
24125#else
24126# include <assert.h>
24127#endif
24128
24129#undef connect
24130
24131/* Override any gcc2 internal prototype to avoid an error. */
24132#ifdef __cplusplus
24133extern "C"
24134{
24135#endif
24136/* We use char because int might match the return type of a gcc2
24137 builtin and then its argument prototype would still apply. */
24138char connect ();
24139/* The GNU C library defines this for functions which it implements
24140 to always fail with ENOSYS. Some functions are actually named
24141 something starting with __ and the normal name is an alias. */
24142#if defined (__stub_connect) || defined (__stub___connect)
24143choke me
24144#else
24145char (*f) () = connect;
24146#endif
24147#ifdef __cplusplus
24148}
24149#endif
24150
24151int
24152main ()
24153{
24154return f != connect;
24155 ;
24156 return 0;
24157}
24158_ACEOF
24159rm -f conftest.$ac_objext conftest$ac_exeext
24160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24161 (eval $ac_link) 2>conftest.er1
24162 ac_status=$?
24163 grep -v '^ *+' conftest.er1 >conftest.err
24164 rm -f conftest.er1
24165 cat conftest.err >&5
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); } &&
dcc1b6ad
VS
24168 { ac_try='test -z "$ac_c_werror_flag"
24169 || test ! -s conftest.err'
a848cd7e
SC
24170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171 (eval $ac_try) 2>&5
24172 ac_status=$?
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); }; } &&
24175 { ac_try='test -s conftest$ac_exeext'
24176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177 (eval $ac_try) 2>&5
24178 ac_status=$?
24179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180 (exit $ac_status); }; }; then
24181 ac_cv_func_connect=yes
24182else
24183 echo "$as_me: failed program was:" >&5
24184sed 's/^/| /' conftest.$ac_ext >&5
24185
24186ac_cv_func_connect=no
24187fi
24188rm -f conftest.err conftest.$ac_objext \
24189 conftest$ac_exeext conftest.$ac_ext
24190fi
24191echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24192echo "${ECHO_T}$ac_cv_func_connect" >&6
24193
24194 if test $ac_cv_func_connect = no; then
24195 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24196echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24197if test "${ac_cv_lib_socket_connect+set}" = set; then
24198 echo $ECHO_N "(cached) $ECHO_C" >&6
24199else
24200 ac_check_lib_save_LIBS=$LIBS
24201LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24202cat >conftest.$ac_ext <<_ACEOF
24203/* confdefs.h. */
24204_ACEOF
24205cat confdefs.h >>conftest.$ac_ext
24206cat >>conftest.$ac_ext <<_ACEOF
24207/* end confdefs.h. */
24208
24209/* Override any gcc2 internal prototype to avoid an error. */
24210#ifdef __cplusplus
24211extern "C"
24212#endif
24213/* We use char because int might match the return type of a gcc2
24214 builtin and then its argument prototype would still apply. */
24215char connect ();
24216int
24217main ()
24218{
24219connect ();
24220 ;
24221 return 0;
24222}
24223_ACEOF
24224rm -f conftest.$ac_objext conftest$ac_exeext
24225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24226 (eval $ac_link) 2>conftest.er1
24227 ac_status=$?
24228 grep -v '^ *+' conftest.er1 >conftest.err
24229 rm -f conftest.er1
24230 cat conftest.err >&5
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); } &&
dcc1b6ad
VS
24233 { ac_try='test -z "$ac_c_werror_flag"
24234 || test ! -s conftest.err'
a848cd7e
SC
24235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); }; } &&
24240 { ac_try='test -s conftest$ac_exeext'
24241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24242 (eval $ac_try) 2>&5
24243 ac_status=$?
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); }; }; then
24246 ac_cv_lib_socket_connect=yes
24247else
24248 echo "$as_me: failed program was:" >&5
24249sed 's/^/| /' conftest.$ac_ext >&5
24250
24251ac_cv_lib_socket_connect=no
24252fi
24253rm -f conftest.err conftest.$ac_objext \
24254 conftest$ac_exeext conftest.$ac_ext
24255LIBS=$ac_check_lib_save_LIBS
24256fi
24257echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24258echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24259if test $ac_cv_lib_socket_connect = yes; then
24260 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24261fi
24262
24263 fi
24264
24265 # Guillermo Gomez says -lposix is necessary on A/UX.
24266 echo "$as_me:$LINENO: checking for remove" >&5
24267echo $ECHO_N "checking for remove... $ECHO_C" >&6
24268if test "${ac_cv_func_remove+set}" = set; then
24269 echo $ECHO_N "(cached) $ECHO_C" >&6
24270else
24271 cat >conftest.$ac_ext <<_ACEOF
24272/* confdefs.h. */
24273_ACEOF
24274cat confdefs.h >>conftest.$ac_ext
24275cat >>conftest.$ac_ext <<_ACEOF
24276/* end confdefs.h. */
24277/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24279#define remove innocuous_remove
24280
24281/* System header to define __stub macros and hopefully few prototypes,
24282 which can conflict with char remove (); below.
24283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24284 <limits.h> exists even on freestanding compilers. */
24285
24286#ifdef __STDC__
24287# include <limits.h>
24288#else
24289# include <assert.h>
24290#endif
24291
24292#undef remove
24293
24294/* Override any gcc2 internal prototype to avoid an error. */
24295#ifdef __cplusplus
24296extern "C"
24297{
24298#endif
24299/* We use char because int might match the return type of a gcc2
24300 builtin and then its argument prototype would still apply. */
24301char remove ();
24302/* The GNU C library defines this for functions which it implements
24303 to always fail with ENOSYS. Some functions are actually named
24304 something starting with __ and the normal name is an alias. */
24305#if defined (__stub_remove) || defined (__stub___remove)
24306choke me
24307#else
24308char (*f) () = remove;
24309#endif
24310#ifdef __cplusplus
24311}
24312#endif
24313
24314int
24315main ()
24316{
24317return f != remove;
24318 ;
24319 return 0;
24320}
24321_ACEOF
24322rm -f conftest.$ac_objext conftest$ac_exeext
24323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24324 (eval $ac_link) 2>conftest.er1
24325 ac_status=$?
24326 grep -v '^ *+' conftest.er1 >conftest.err
24327 rm -f conftest.er1
24328 cat conftest.err >&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); } &&
dcc1b6ad
VS
24331 { ac_try='test -z "$ac_c_werror_flag"
24332 || test ! -s conftest.err'
a848cd7e
SC
24333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24334 (eval $ac_try) 2>&5
24335 ac_status=$?
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); }; } &&
24338 { ac_try='test -s conftest$ac_exeext'
24339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340 (eval $ac_try) 2>&5
24341 ac_status=$?
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); }; }; then
24344 ac_cv_func_remove=yes
24345else
24346 echo "$as_me: failed program was:" >&5
24347sed 's/^/| /' conftest.$ac_ext >&5
24348
24349ac_cv_func_remove=no
24350fi
24351rm -f conftest.err conftest.$ac_objext \
24352 conftest$ac_exeext conftest.$ac_ext
24353fi
24354echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24355echo "${ECHO_T}$ac_cv_func_remove" >&6
24356
24357 if test $ac_cv_func_remove = no; then
24358 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24359echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24360if test "${ac_cv_lib_posix_remove+set}" = set; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
24362else
24363 ac_check_lib_save_LIBS=$LIBS
24364LIBS="-lposix $LIBS"
24365cat >conftest.$ac_ext <<_ACEOF
24366/* confdefs.h. */
24367_ACEOF
24368cat confdefs.h >>conftest.$ac_ext
24369cat >>conftest.$ac_ext <<_ACEOF
24370/* end confdefs.h. */
24371
24372/* Override any gcc2 internal prototype to avoid an error. */
24373#ifdef __cplusplus
24374extern "C"
24375#endif
24376/* We use char because int might match the return type of a gcc2
24377 builtin and then its argument prototype would still apply. */
24378char remove ();
24379int
24380main ()
24381{
24382remove ();
24383 ;
24384 return 0;
24385}
24386_ACEOF
24387rm -f conftest.$ac_objext conftest$ac_exeext
24388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24389 (eval $ac_link) 2>conftest.er1
24390 ac_status=$?
24391 grep -v '^ *+' conftest.er1 >conftest.err
24392 rm -f conftest.er1
24393 cat conftest.err >&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } &&
dcc1b6ad
VS
24396 { ac_try='test -z "$ac_c_werror_flag"
24397 || test ! -s conftest.err'
a848cd7e
SC
24398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24399 (eval $ac_try) 2>&5
24400 ac_status=$?
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); }; } &&
24403 { ac_try='test -s conftest$ac_exeext'
24404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24405 (eval $ac_try) 2>&5
24406 ac_status=$?
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); }; }; then
24409 ac_cv_lib_posix_remove=yes
24410else
24411 echo "$as_me: failed program was:" >&5
24412sed 's/^/| /' conftest.$ac_ext >&5
24413
24414ac_cv_lib_posix_remove=no
24415fi
24416rm -f conftest.err conftest.$ac_objext \
24417 conftest$ac_exeext conftest.$ac_ext
24418LIBS=$ac_check_lib_save_LIBS
24419fi
24420echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24421echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24422if test $ac_cv_lib_posix_remove = yes; then
24423 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24424fi
24425
24426 fi
24427
24428 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24429 echo "$as_me:$LINENO: checking for shmat" >&5
24430echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24431if test "${ac_cv_func_shmat+set}" = set; then
24432 echo $ECHO_N "(cached) $ECHO_C" >&6
24433else
24434 cat >conftest.$ac_ext <<_ACEOF
24435/* confdefs.h. */
24436_ACEOF
24437cat confdefs.h >>conftest.$ac_ext
24438cat >>conftest.$ac_ext <<_ACEOF
24439/* end confdefs.h. */
24440/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24442#define shmat innocuous_shmat
24443
24444/* System header to define __stub macros and hopefully few prototypes,
24445 which can conflict with char shmat (); below.
24446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24447 <limits.h> exists even on freestanding compilers. */
24448
24449#ifdef __STDC__
24450# include <limits.h>
24451#else
24452# include <assert.h>
24453#endif
24454
24455#undef shmat
24456
24457/* Override any gcc2 internal prototype to avoid an error. */
24458#ifdef __cplusplus
24459extern "C"
24460{
24461#endif
24462/* We use char because int might match the return type of a gcc2
24463 builtin and then its argument prototype would still apply. */
24464char shmat ();
24465/* The GNU C library defines this for functions which it implements
24466 to always fail with ENOSYS. Some functions are actually named
24467 something starting with __ and the normal name is an alias. */
24468#if defined (__stub_shmat) || defined (__stub___shmat)
24469choke me
24470#else
24471char (*f) () = shmat;
24472#endif
24473#ifdef __cplusplus
24474}
24475#endif
24476
24477int
24478main ()
24479{
24480return f != shmat;
24481 ;
24482 return 0;
24483}
24484_ACEOF
24485rm -f conftest.$ac_objext conftest$ac_exeext
24486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24487 (eval $ac_link) 2>conftest.er1
24488 ac_status=$?
24489 grep -v '^ *+' conftest.er1 >conftest.err
24490 rm -f conftest.er1
24491 cat conftest.err >&5
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); } &&
dcc1b6ad
VS
24494 { ac_try='test -z "$ac_c_werror_flag"
24495 || test ! -s conftest.err'
a848cd7e
SC
24496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24497 (eval $ac_try) 2>&5
24498 ac_status=$?
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); }; } &&
24501 { ac_try='test -s conftest$ac_exeext'
24502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24503 (eval $ac_try) 2>&5
24504 ac_status=$?
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); }; }; then
24507 ac_cv_func_shmat=yes
24508else
24509 echo "$as_me: failed program was:" >&5
24510sed 's/^/| /' conftest.$ac_ext >&5
24511
24512ac_cv_func_shmat=no
24513fi
24514rm -f conftest.err conftest.$ac_objext \
24515 conftest$ac_exeext conftest.$ac_ext
24516fi
24517echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24518echo "${ECHO_T}$ac_cv_func_shmat" >&6
24519
24520 if test $ac_cv_func_shmat = no; then
24521 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24522echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24523if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24524 echo $ECHO_N "(cached) $ECHO_C" >&6
24525else
24526 ac_check_lib_save_LIBS=$LIBS
24527LIBS="-lipc $LIBS"
24528cat >conftest.$ac_ext <<_ACEOF
24529/* confdefs.h. */
24530_ACEOF
24531cat confdefs.h >>conftest.$ac_ext
24532cat >>conftest.$ac_ext <<_ACEOF
24533/* end confdefs.h. */
24534
24535/* Override any gcc2 internal prototype to avoid an error. */
24536#ifdef __cplusplus
24537extern "C"
24538#endif
24539/* We use char because int might match the return type of a gcc2
24540 builtin and then its argument prototype would still apply. */
24541char shmat ();
24542int
24543main ()
24544{
24545shmat ();
24546 ;
24547 return 0;
24548}
24549_ACEOF
24550rm -f conftest.$ac_objext conftest$ac_exeext
24551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24552 (eval $ac_link) 2>conftest.er1
24553 ac_status=$?
24554 grep -v '^ *+' conftest.er1 >conftest.err
24555 rm -f conftest.er1
24556 cat conftest.err >&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); } &&
dcc1b6ad
VS
24559 { ac_try='test -z "$ac_c_werror_flag"
24560 || test ! -s conftest.err'
a848cd7e
SC
24561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24562 (eval $ac_try) 2>&5
24563 ac_status=$?
24564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); }; } &&
24566 { ac_try='test -s conftest$ac_exeext'
24567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24568 (eval $ac_try) 2>&5
24569 ac_status=$?
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); }; }; then
24572 ac_cv_lib_ipc_shmat=yes
24573else
24574 echo "$as_me: failed program was:" >&5
24575sed 's/^/| /' conftest.$ac_ext >&5
24576
24577ac_cv_lib_ipc_shmat=no
24578fi
24579rm -f conftest.err conftest.$ac_objext \
24580 conftest$ac_exeext conftest.$ac_ext
24581LIBS=$ac_check_lib_save_LIBS
24582fi
24583echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24584echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24585if test $ac_cv_lib_ipc_shmat = yes; then
24586 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24587fi
24588
24589 fi
24590 fi
24591
24592 # Check for libraries that X11R6 Xt/Xaw programs need.
24593 ac_save_LDFLAGS=$LDFLAGS
24594 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24595 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24596 # check for ICE first), but we must link in the order -lSM -lICE or
24597 # we get undefined symbols. So assume we have SM if we have ICE.
24598 # These have to be linked with before -lX11, unlike the other
24599 # libraries we check for below, so use a different variable.
24600 # John Interrante, Karl Berry
24601 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24602echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24603if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24604 echo $ECHO_N "(cached) $ECHO_C" >&6
24605else
24606 ac_check_lib_save_LIBS=$LIBS
24607LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24608cat >conftest.$ac_ext <<_ACEOF
24609/* confdefs.h. */
24610_ACEOF
24611cat confdefs.h >>conftest.$ac_ext
24612cat >>conftest.$ac_ext <<_ACEOF
24613/* end confdefs.h. */
24614
24615/* Override any gcc2 internal prototype to avoid an error. */
24616#ifdef __cplusplus
24617extern "C"
24618#endif
24619/* We use char because int might match the return type of a gcc2
24620 builtin and then its argument prototype would still apply. */
24621char IceConnectionNumber ();
24622int
24623main ()
24624{
24625IceConnectionNumber ();
24626 ;
24627 return 0;
24628}
24629_ACEOF
24630rm -f conftest.$ac_objext conftest$ac_exeext
24631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24632 (eval $ac_link) 2>conftest.er1
24633 ac_status=$?
24634 grep -v '^ *+' conftest.er1 >conftest.err
24635 rm -f conftest.er1
24636 cat conftest.err >&5
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); } &&
dcc1b6ad
VS
24639 { ac_try='test -z "$ac_c_werror_flag"
24640 || test ! -s conftest.err'
a848cd7e
SC
24641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24642 (eval $ac_try) 2>&5
24643 ac_status=$?
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); }; } &&
24646 { ac_try='test -s conftest$ac_exeext'
24647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24648 (eval $ac_try) 2>&5
24649 ac_status=$?
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; }; then
24652 ac_cv_lib_ICE_IceConnectionNumber=yes
24653else
24654 echo "$as_me: failed program was:" >&5
24655sed 's/^/| /' conftest.$ac_ext >&5
24656
24657ac_cv_lib_ICE_IceConnectionNumber=no
24658fi
24659rm -f conftest.err conftest.$ac_objext \
24660 conftest$ac_exeext conftest.$ac_ext
24661LIBS=$ac_check_lib_save_LIBS
24662fi
24663echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24664echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24665if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24666 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24667fi
24668
24669 LDFLAGS=$ac_save_LDFLAGS
24670
24671fi
24672
24673
24674 if test "$no_x" = "yes"; then
24675 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24676echo "$as_me: error: X11 not found" >&2;}
24677 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
24678 fi
24679
24680 GUI_TK_LIBRARY="$X_LIBS"
24681 TOOLKIT_INCLUDE="$X_CFLAGS"
24682 AFMINSTALL=afminstall
24683 COMPILED_X_PROGRAM=0
24684
24685 if test "$wxUSE_NANOX" = "yes"; then
24686 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
24687echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
24688 if test "x$MICROWIN" = x ; then
24689 echo "$as_me:$LINENO: result: not found" >&5
24690echo "${ECHO_T}not found" >&6
24691 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
24692echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
24693 { (exit 1); exit 1; }; }
24694 else
24695 echo "$as_me:$LINENO: result: $MICROWIN" >&5
24696echo "${ECHO_T}$MICROWIN" >&6
24697 cat >>confdefs.h <<\_ACEOF
24698#define wxUSE_NANOX 1
24699_ACEOF
24700
24701 fi
24702 fi
24703
24704 if test "$wxUSE_UNICODE" = "yes"; then
24705
24706 succeeded=no
24707
24708 if test -z "$PKG_CONFIG"; then
24709 # Extract the first word of "pkg-config", so it can be a program name with args.
24710set dummy pkg-config; ac_word=$2
24711echo "$as_me:$LINENO: checking for $ac_word" >&5
24712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24713if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24714 echo $ECHO_N "(cached) $ECHO_C" >&6
24715else
24716 case $PKG_CONFIG in
24717 [\\/]* | ?:[\\/]*)
24718 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24719 ;;
24720 *)
24721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24722for as_dir in $PATH
24723do
24724 IFS=$as_save_IFS
24725 test -z "$as_dir" && as_dir=.
24726 for ac_exec_ext in '' $ac_executable_extensions; do
24727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24728 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24730 break 2
24731 fi
24732done
24733done
24734
24735 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24736 ;;
24737esac
24738fi
24739PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24740
24741if test -n "$PKG_CONFIG"; then
24742 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24743echo "${ECHO_T}$PKG_CONFIG" >&6
24744else
24745 echo "$as_me:$LINENO: result: no" >&5
24746echo "${ECHO_T}no" >&6
24747fi
24748
24749 fi
24750
24751 if test "$PKG_CONFIG" = "no" ; then
24752 echo "*** The pkg-config script could not be found. Make sure it is"
24753 echo "*** in your path, or set the PKG_CONFIG environment variable"
24754 echo "*** to the full path to pkg-config."
24755 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24756 else
24757 PKG_CONFIG_MIN_VERSION=0.9.0
24758 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24759 echo "$as_me:$LINENO: checking for pangox" >&5
24760echo $ECHO_N "checking for pangox... $ECHO_C" >&6
24761
24762 if $PKG_CONFIG --exists "pangox" ; then
24763 echo "$as_me:$LINENO: result: yes" >&5
24764echo "${ECHO_T}yes" >&6
24765 succeeded=yes
24766
24767 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
24768echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
24769 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
24770 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
24771echo "${ECHO_T}$PANGOX_CFLAGS" >&6
24772
24773 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24774echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
24775 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
24776 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24777echo "${ECHO_T}$PANGOX_LIBS" >&6
24778 else
24779 PANGOX_CFLAGS=""
24780 PANGOX_LIBS=""
24781 ## If we have a custom action on failure, don't print errors, but
24782 ## do set a variable so people can do so.
24783 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
24784
24785 fi
24786
24787
24788
24789 else
24790 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24791 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24792 fi
24793 fi
24794
24795 if test $succeeded = yes; then
24796
24797 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
24798 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
24799
24800 else
24801
24802 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24803echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24804 { (exit 1); exit 1; }; }
24805
24806
24807 fi
24808
24809
24810 succeeded=no
24811
24812 if test -z "$PKG_CONFIG"; then
24813 # Extract the first word of "pkg-config", so it can be a program name with args.
24814set dummy pkg-config; ac_word=$2
24815echo "$as_me:$LINENO: checking for $ac_word" >&5
24816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24817if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24818 echo $ECHO_N "(cached) $ECHO_C" >&6
24819else
24820 case $PKG_CONFIG in
24821 [\\/]* | ?:[\\/]*)
24822 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24823 ;;
24824 *)
24825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24826for as_dir in $PATH
24827do
24828 IFS=$as_save_IFS
24829 test -z "$as_dir" && as_dir=.
24830 for ac_exec_ext in '' $ac_executable_extensions; do
24831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24832 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24834 break 2
24835 fi
24836done
24837done
24838
24839 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24840 ;;
24841esac
24842fi
24843PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24844
24845if test -n "$PKG_CONFIG"; then
24846 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24847echo "${ECHO_T}$PKG_CONFIG" >&6
24848else
24849 echo "$as_me:$LINENO: result: no" >&5
24850echo "${ECHO_T}no" >&6
24851fi
24852
24853 fi
24854
24855 if test "$PKG_CONFIG" = "no" ; then
24856 echo "*** The pkg-config script could not be found. Make sure it is"
24857 echo "*** in your path, or set the PKG_CONFIG environment variable"
24858 echo "*** to the full path to pkg-config."
24859 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24860 else
24861 PKG_CONFIG_MIN_VERSION=0.9.0
24862 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24863 echo "$as_me:$LINENO: checking for pangoft2" >&5
24864echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
24865
24866 if $PKG_CONFIG --exists "pangoft2" ; then
24867 echo "$as_me:$LINENO: result: yes" >&5
24868echo "${ECHO_T}yes" >&6
24869 succeeded=yes
24870
24871 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24872echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
24873 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
24874 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24875echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
24876
24877 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24878echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
24879 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
24880 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24881echo "${ECHO_T}$PANGOFT2_LIBS" >&6
24882 else
24883 PANGOFT2_CFLAGS=""
24884 PANGOFT2_LIBS=""
24885 ## If we have a custom action on failure, don't print errors, but
24886 ## do set a variable so people can do so.
24887 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
24888
24889 fi
24890
24891
24892
24893 else
24894 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24895 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24896 fi
24897 fi
24898
24899 if test $succeeded = yes; then
24900
24901 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
24902 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
24903
24904 else
24905
24906 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24907echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
24908 wxUSE_PRINTING_ARCHITECTURE="no"
24909
24910
24911 fi
24912
24913
24914 succeeded=no
24915
24916 if test -z "$PKG_CONFIG"; then
24917 # Extract the first word of "pkg-config", so it can be a program name with args.
24918set dummy pkg-config; ac_word=$2
24919echo "$as_me:$LINENO: checking for $ac_word" >&5
24920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24921if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24922 echo $ECHO_N "(cached) $ECHO_C" >&6
24923else
24924 case $PKG_CONFIG in
24925 [\\/]* | ?:[\\/]*)
24926 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24927 ;;
24928 *)
24929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24930for as_dir in $PATH
24931do
24932 IFS=$as_save_IFS
24933 test -z "$as_dir" && as_dir=.
24934 for ac_exec_ext in '' $ac_executable_extensions; do
24935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24936 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24938 break 2
24939 fi
24940done
24941done
24942
24943 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24944 ;;
24945esac
24946fi
24947PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24948
24949if test -n "$PKG_CONFIG"; then
24950 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24951echo "${ECHO_T}$PKG_CONFIG" >&6
24952else
24953 echo "$as_me:$LINENO: result: no" >&5
24954echo "${ECHO_T}no" >&6
24955fi
24956
24957 fi
24958
24959 if test "$PKG_CONFIG" = "no" ; then
24960 echo "*** The pkg-config script could not be found. Make sure it is"
24961 echo "*** in your path, or set the PKG_CONFIG environment variable"
24962 echo "*** to the full path to pkg-config."
24963 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24964 else
24965 PKG_CONFIG_MIN_VERSION=0.9.0
24966 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24967 echo "$as_me:$LINENO: checking for pangoxft" >&5
24968echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
24969
24970 if $PKG_CONFIG --exists "pangoxft" ; then
24971 echo "$as_me:$LINENO: result: yes" >&5
24972echo "${ECHO_T}yes" >&6
24973 succeeded=yes
24974
24975 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24976echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
24977 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
24978 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24979echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
24980
24981 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24982echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
24983 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
24984 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24985echo "${ECHO_T}$PANGOXFT_LIBS" >&6
24986 else
24987 PANGOXFT_CFLAGS=""
24988 PANGOXFT_LIBS=""
24989 ## If we have a custom action on failure, don't print errors, but
24990 ## do set a variable so people can do so.
24991 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
24992
24993 fi
24994
24995
24996
24997 else
24998 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24999 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25000 fi
25001 fi
25002
25003 if test $succeeded = yes; then
25004
25005 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25006 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25007
25008 else
25009
25010 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25011echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25012
25013
25014 fi
25015
25016 fi
25017
25018 wxUSE_UNIVERSAL="yes"
25019
25020 if test "$wxUSE_NANOX" = "yes"; then
25021 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25022 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"
25023 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25024 else
25025 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25026 fi
25027
25028 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25029 TOOLKIT=X11
25030 GUIDIST=X11_DIST
25031 fi
25032
25033 if test "$wxUSE_MOTIF" = 1; then
25034 if test "$no_x" = yes; then
25035 # Not all programs may use this symbol, but it does not hurt to define it.
25036
25037cat >>confdefs.h <<\_ACEOF
25038#define X_DISPLAY_MISSING 1
25039_ACEOF
25040
25041 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25042else
25043 if test -n "$x_includes"; then
25044 X_CFLAGS="$X_CFLAGS -I$x_includes"
25045 fi
25046
25047 # It would also be nice to do this for all -L options, not just this one.
25048 if test -n "$x_libraries"; then
25049 X_LIBS="$X_LIBS -L$x_libraries"
25050 # For Solaris; some versions of Sun CC require a space after -R and
25051 # others require no space. Words are not sufficient . . . .
25052 case `(uname -sr) 2>/dev/null` in
25053 "SunOS 5"*)
25054 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25055echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25056 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25057 cat >conftest.$ac_ext <<_ACEOF
25058/* confdefs.h. */
25059_ACEOF
25060cat confdefs.h >>conftest.$ac_ext
25061cat >>conftest.$ac_ext <<_ACEOF
25062/* end confdefs.h. */
25063
25064int
25065main ()
25066{
25067
25068 ;
25069 return 0;
25070}
25071_ACEOF
25072rm -f conftest.$ac_objext conftest$ac_exeext
25073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25074 (eval $ac_link) 2>conftest.er1
25075 ac_status=$?
25076 grep -v '^ *+' conftest.er1 >conftest.err
25077 rm -f conftest.er1
25078 cat conftest.err >&5
25079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080 (exit $ac_status); } &&
dcc1b6ad
VS
25081 { ac_try='test -z "$ac_c_werror_flag"
25082 || test ! -s conftest.err'
a848cd7e
SC
25083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25084 (eval $ac_try) 2>&5
25085 ac_status=$?
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); }; } &&
25088 { ac_try='test -s conftest$ac_exeext'
25089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25090 (eval $ac_try) 2>&5
25091 ac_status=$?
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); }; }; then
25094 ac_R_nospace=yes
25095else
25096 echo "$as_me: failed program was:" >&5
25097sed 's/^/| /' conftest.$ac_ext >&5
25098
25099ac_R_nospace=no
25100fi
25101rm -f conftest.err conftest.$ac_objext \
25102 conftest$ac_exeext conftest.$ac_ext
25103 if test $ac_R_nospace = yes; then
25104 echo "$as_me:$LINENO: result: no" >&5
25105echo "${ECHO_T}no" >&6
25106 X_LIBS="$X_LIBS -R$x_libraries"
25107 else
25108 LIBS="$ac_xsave_LIBS -R $x_libraries"
25109 cat >conftest.$ac_ext <<_ACEOF
25110/* confdefs.h. */
25111_ACEOF
25112cat confdefs.h >>conftest.$ac_ext
25113cat >>conftest.$ac_ext <<_ACEOF
25114/* end confdefs.h. */
25115
25116int
25117main ()
25118{
25119
25120 ;
25121 return 0;
25122}
25123_ACEOF
25124rm -f conftest.$ac_objext conftest$ac_exeext
25125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25126 (eval $ac_link) 2>conftest.er1
25127 ac_status=$?
25128 grep -v '^ *+' conftest.er1 >conftest.err
25129 rm -f conftest.er1
25130 cat conftest.err >&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } &&
dcc1b6ad
VS
25133 { ac_try='test -z "$ac_c_werror_flag"
25134 || test ! -s conftest.err'
a848cd7e
SC
25135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136 (eval $ac_try) 2>&5
25137 ac_status=$?
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); }; } &&
25140 { ac_try='test -s conftest$ac_exeext'
25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); }; }; then
25146 ac_R_space=yes
25147else
25148 echo "$as_me: failed program was:" >&5
25149sed 's/^/| /' conftest.$ac_ext >&5
25150
25151ac_R_space=no
25152fi
25153rm -f conftest.err conftest.$ac_objext \
25154 conftest$ac_exeext conftest.$ac_ext
25155 if test $ac_R_space = yes; then
25156 echo "$as_me:$LINENO: result: yes" >&5
25157echo "${ECHO_T}yes" >&6
25158 X_LIBS="$X_LIBS -R $x_libraries"
25159 else
25160 echo "$as_me:$LINENO: result: neither works" >&5
25161echo "${ECHO_T}neither works" >&6
25162 fi
25163 fi
25164 LIBS=$ac_xsave_LIBS
25165 esac
25166 fi
25167
25168 # Check for system-dependent libraries X programs must link with.
25169 # Do this before checking for the system-independent R6 libraries
25170 # (-lICE), since we may need -lsocket or whatever for X linking.
25171
25172 if test "$ISC" = yes; then
25173 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25174 else
25175 # Martyn Johnson says this is needed for Ultrix, if the X
25176 # libraries were built with DECnet support. And Karl Berry says
25177 # the Alpha needs dnet_stub (dnet does not exist).
25178 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25179 cat >conftest.$ac_ext <<_ACEOF
25180/* confdefs.h. */
25181_ACEOF
25182cat confdefs.h >>conftest.$ac_ext
25183cat >>conftest.$ac_ext <<_ACEOF
25184/* end confdefs.h. */
25185
25186/* Override any gcc2 internal prototype to avoid an error. */
25187#ifdef __cplusplus
25188extern "C"
25189#endif
25190/* We use char because int might match the return type of a gcc2
25191 builtin and then its argument prototype would still apply. */
25192char XOpenDisplay ();
25193int
25194main ()
25195{
25196XOpenDisplay ();
25197 ;
25198 return 0;
25199}
25200_ACEOF
25201rm -f conftest.$ac_objext conftest$ac_exeext
25202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25203 (eval $ac_link) 2>conftest.er1
25204 ac_status=$?
25205 grep -v '^ *+' conftest.er1 >conftest.err
25206 rm -f conftest.er1
25207 cat conftest.err >&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); } &&
dcc1b6ad
VS
25210 { ac_try='test -z "$ac_c_werror_flag"
25211 || test ! -s conftest.err'
a848cd7e
SC
25212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25213 (eval $ac_try) 2>&5
25214 ac_status=$?
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); }; } &&
25217 { ac_try='test -s conftest$ac_exeext'
25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219 (eval $ac_try) 2>&5
25220 ac_status=$?
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; }; then
25223 :
25224else
25225 echo "$as_me: failed program was:" >&5
25226sed 's/^/| /' conftest.$ac_ext >&5
25227
25228echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25229echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25230if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25231 echo $ECHO_N "(cached) $ECHO_C" >&6
25232else
25233 ac_check_lib_save_LIBS=$LIBS
25234LIBS="-ldnet $LIBS"
25235cat >conftest.$ac_ext <<_ACEOF
25236/* confdefs.h. */
25237_ACEOF
25238cat confdefs.h >>conftest.$ac_ext
25239cat >>conftest.$ac_ext <<_ACEOF
25240/* end confdefs.h. */
25241
25242/* Override any gcc2 internal prototype to avoid an error. */
25243#ifdef __cplusplus
25244extern "C"
25245#endif
25246/* We use char because int might match the return type of a gcc2
25247 builtin and then its argument prototype would still apply. */
25248char dnet_ntoa ();
25249int
25250main ()
25251{
25252dnet_ntoa ();
25253 ;
25254 return 0;
25255}
25256_ACEOF
25257rm -f conftest.$ac_objext conftest$ac_exeext
25258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25259 (eval $ac_link) 2>conftest.er1
25260 ac_status=$?
25261 grep -v '^ *+' conftest.er1 >conftest.err
25262 rm -f conftest.er1
25263 cat conftest.err >&5
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); } &&
dcc1b6ad
VS
25266 { ac_try='test -z "$ac_c_werror_flag"
25267 || test ! -s conftest.err'
a848cd7e
SC
25268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25269 (eval $ac_try) 2>&5
25270 ac_status=$?
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); }; } &&
25273 { ac_try='test -s conftest$ac_exeext'
25274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; }; then
25279 ac_cv_lib_dnet_dnet_ntoa=yes
25280else
25281 echo "$as_me: failed program was:" >&5
25282sed 's/^/| /' conftest.$ac_ext >&5
25283
25284ac_cv_lib_dnet_dnet_ntoa=no
25285fi
25286rm -f conftest.err conftest.$ac_objext \
25287 conftest$ac_exeext conftest.$ac_ext
25288LIBS=$ac_check_lib_save_LIBS
25289fi
25290echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25291echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25292if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25293 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25294fi
25295
25296 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25297 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25298echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25299if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25300 echo $ECHO_N "(cached) $ECHO_C" >&6
25301else
25302 ac_check_lib_save_LIBS=$LIBS
25303LIBS="-ldnet_stub $LIBS"
25304cat >conftest.$ac_ext <<_ACEOF
25305/* confdefs.h. */
25306_ACEOF
25307cat confdefs.h >>conftest.$ac_ext
25308cat >>conftest.$ac_ext <<_ACEOF
25309/* end confdefs.h. */
25310
25311/* Override any gcc2 internal prototype to avoid an error. */
25312#ifdef __cplusplus
25313extern "C"
25314#endif
25315/* We use char because int might match the return type of a gcc2
25316 builtin and then its argument prototype would still apply. */
25317char dnet_ntoa ();
25318int
25319main ()
25320{
25321dnet_ntoa ();
25322 ;
25323 return 0;
25324}
25325_ACEOF
25326rm -f conftest.$ac_objext conftest$ac_exeext
25327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25328 (eval $ac_link) 2>conftest.er1
25329 ac_status=$?
25330 grep -v '^ *+' conftest.er1 >conftest.err
25331 rm -f conftest.er1
25332 cat conftest.err >&5
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); } &&
dcc1b6ad
VS
25335 { ac_try='test -z "$ac_c_werror_flag"
25336 || test ! -s conftest.err'
a848cd7e
SC
25337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338 (eval $ac_try) 2>&5
25339 ac_status=$?
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; } &&
25342 { ac_try='test -s conftest$ac_exeext'
25343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344 (eval $ac_try) 2>&5
25345 ac_status=$?
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); }; }; then
25348 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25349else
25350 echo "$as_me: failed program was:" >&5
25351sed 's/^/| /' conftest.$ac_ext >&5
25352
25353ac_cv_lib_dnet_stub_dnet_ntoa=no
25354fi
25355rm -f conftest.err conftest.$ac_objext \
25356 conftest$ac_exeext conftest.$ac_ext
25357LIBS=$ac_check_lib_save_LIBS
25358fi
25359echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25360echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25361if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25362 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25363fi
25364
25365 fi
25366fi
25367rm -f conftest.err conftest.$ac_objext \
25368 conftest$ac_exeext conftest.$ac_ext
25369 LIBS="$ac_xsave_LIBS"
25370
25371 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25372 # to get the SysV transport functions.
25373 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25374 # needs -lnsl.
25375 # The nsl library prevents programs from opening the X display
25376 # on Irix 5.2, according to T.E. Dickey.
25377 # The functions gethostbyname, getservbyname, and inet_addr are
25378 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25379 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25380echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25381if test "${ac_cv_func_gethostbyname+set}" = set; then
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25383else
25384 cat >conftest.$ac_ext <<_ACEOF
25385/* confdefs.h. */
25386_ACEOF
25387cat confdefs.h >>conftest.$ac_ext
25388cat >>conftest.$ac_ext <<_ACEOF
25389/* end confdefs.h. */
25390/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25392#define gethostbyname innocuous_gethostbyname
25393
25394/* System header to define __stub macros and hopefully few prototypes,
25395 which can conflict with char gethostbyname (); below.
25396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25397 <limits.h> exists even on freestanding compilers. */
25398
25399#ifdef __STDC__
25400# include <limits.h>
25401#else
25402# include <assert.h>
25403#endif
25404
25405#undef gethostbyname
25406
25407/* Override any gcc2 internal prototype to avoid an error. */
25408#ifdef __cplusplus
25409extern "C"
25410{
25411#endif
25412/* We use char because int might match the return type of a gcc2
25413 builtin and then its argument prototype would still apply. */
25414char gethostbyname ();
25415/* The GNU C library defines this for functions which it implements
25416 to always fail with ENOSYS. Some functions are actually named
25417 something starting with __ and the normal name is an alias. */
25418#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25419choke me
25420#else
25421char (*f) () = gethostbyname;
25422#endif
25423#ifdef __cplusplus
25424}
25425#endif
25426
25427int
25428main ()
25429{
25430return f != gethostbyname;
25431 ;
25432 return 0;
25433}
25434_ACEOF
25435rm -f conftest.$ac_objext conftest$ac_exeext
25436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25437 (eval $ac_link) 2>conftest.er1
25438 ac_status=$?
25439 grep -v '^ *+' conftest.er1 >conftest.err
25440 rm -f conftest.er1
25441 cat conftest.err >&5
25442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); } &&
dcc1b6ad
VS
25444 { ac_try='test -z "$ac_c_werror_flag"
25445 || test ! -s conftest.err'
a848cd7e
SC
25446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25447 (eval $ac_try) 2>&5
25448 ac_status=$?
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); }; } &&
25451 { ac_try='test -s conftest$ac_exeext'
25452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25453 (eval $ac_try) 2>&5
25454 ac_status=$?
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); }; }; then
25457 ac_cv_func_gethostbyname=yes
25458else
25459 echo "$as_me: failed program was:" >&5
25460sed 's/^/| /' conftest.$ac_ext >&5
25461
25462ac_cv_func_gethostbyname=no
25463fi
25464rm -f conftest.err conftest.$ac_objext \
25465 conftest$ac_exeext conftest.$ac_ext
25466fi
25467echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25468echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25469
25470 if test $ac_cv_func_gethostbyname = no; then
25471 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25472echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25473if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25474 echo $ECHO_N "(cached) $ECHO_C" >&6
25475else
25476 ac_check_lib_save_LIBS=$LIBS
25477LIBS="-lnsl $LIBS"
25478cat >conftest.$ac_ext <<_ACEOF
25479/* confdefs.h. */
25480_ACEOF
25481cat confdefs.h >>conftest.$ac_ext
25482cat >>conftest.$ac_ext <<_ACEOF
25483/* end confdefs.h. */
25484
25485/* Override any gcc2 internal prototype to avoid an error. */
25486#ifdef __cplusplus
25487extern "C"
25488#endif
25489/* We use char because int might match the return type of a gcc2
25490 builtin and then its argument prototype would still apply. */
25491char gethostbyname ();
25492int
25493main ()
25494{
25495gethostbyname ();
25496 ;
25497 return 0;
25498}
25499_ACEOF
25500rm -f conftest.$ac_objext conftest$ac_exeext
25501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25502 (eval $ac_link) 2>conftest.er1
25503 ac_status=$?
25504 grep -v '^ *+' conftest.er1 >conftest.err
25505 rm -f conftest.er1
25506 cat conftest.err >&5
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); } &&
dcc1b6ad
VS
25509 { ac_try='test -z "$ac_c_werror_flag"
25510 || test ! -s conftest.err'
a848cd7e
SC
25511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512 (eval $ac_try) 2>&5
25513 ac_status=$?
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); }; } &&
25516 { ac_try='test -s conftest$ac_exeext'
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; }; then
25522 ac_cv_lib_nsl_gethostbyname=yes
25523else
25524 echo "$as_me: failed program was:" >&5
25525sed 's/^/| /' conftest.$ac_ext >&5
25526
25527ac_cv_lib_nsl_gethostbyname=no
25528fi
25529rm -f conftest.err conftest.$ac_objext \
25530 conftest$ac_exeext conftest.$ac_ext
25531LIBS=$ac_check_lib_save_LIBS
25532fi
25533echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25534echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25535if test $ac_cv_lib_nsl_gethostbyname = yes; then
25536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25537fi
25538
25539 if test $ac_cv_lib_nsl_gethostbyname = no; then
25540 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25541echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25542if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25543 echo $ECHO_N "(cached) $ECHO_C" >&6
25544else
25545 ac_check_lib_save_LIBS=$LIBS
25546LIBS="-lbsd $LIBS"
25547cat >conftest.$ac_ext <<_ACEOF
25548/* confdefs.h. */
25549_ACEOF
25550cat confdefs.h >>conftest.$ac_ext
25551cat >>conftest.$ac_ext <<_ACEOF
25552/* end confdefs.h. */
25553
25554/* Override any gcc2 internal prototype to avoid an error. */
25555#ifdef __cplusplus
25556extern "C"
25557#endif
25558/* We use char because int might match the return type of a gcc2
25559 builtin and then its argument prototype would still apply. */
25560char gethostbyname ();
25561int
25562main ()
25563{
25564gethostbyname ();
25565 ;
25566 return 0;
25567}
25568_ACEOF
25569rm -f conftest.$ac_objext conftest$ac_exeext
25570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25571 (eval $ac_link) 2>conftest.er1
25572 ac_status=$?
25573 grep -v '^ *+' conftest.er1 >conftest.err
25574 rm -f conftest.er1
25575 cat conftest.err >&5
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); } &&
dcc1b6ad
VS
25578 { ac_try='test -z "$ac_c_werror_flag"
25579 || test ! -s conftest.err'
a848cd7e
SC
25580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581 (eval $ac_try) 2>&5
25582 ac_status=$?
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); }; } &&
25585 { ac_try='test -s conftest$ac_exeext'
25586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25587 (eval $ac_try) 2>&5
25588 ac_status=$?
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); }; }; then
25591 ac_cv_lib_bsd_gethostbyname=yes
25592else
25593 echo "$as_me: failed program was:" >&5
25594sed 's/^/| /' conftest.$ac_ext >&5
25595
25596ac_cv_lib_bsd_gethostbyname=no
25597fi
25598rm -f conftest.err conftest.$ac_objext \
25599 conftest$ac_exeext conftest.$ac_ext
25600LIBS=$ac_check_lib_save_LIBS
25601fi
25602echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25603echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25604if test $ac_cv_lib_bsd_gethostbyname = yes; then
25605 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25606fi
25607
25608 fi
25609 fi
25610
25611 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25612 # socket/setsockopt and other routines are undefined under SCO ODT
25613 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25614 # on later versions), says Simon Leinen: it contains gethostby*
25615 # variants that don't use the name server (or something). -lsocket
25616 # must be given before -lnsl if both are needed. We assume that
25617 # if connect needs -lnsl, so does gethostbyname.
25618 echo "$as_me:$LINENO: checking for connect" >&5
25619echo $ECHO_N "checking for connect... $ECHO_C" >&6
25620if test "${ac_cv_func_connect+set}" = set; then
25621 echo $ECHO_N "(cached) $ECHO_C" >&6
25622else
25623 cat >conftest.$ac_ext <<_ACEOF
25624/* confdefs.h. */
25625_ACEOF
25626cat confdefs.h >>conftest.$ac_ext
25627cat >>conftest.$ac_ext <<_ACEOF
25628/* end confdefs.h. */
25629/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25631#define connect innocuous_connect
25632
25633/* System header to define __stub macros and hopefully few prototypes,
25634 which can conflict with char connect (); below.
25635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25636 <limits.h> exists even on freestanding compilers. */
25637
25638#ifdef __STDC__
25639# include <limits.h>
25640#else
25641# include <assert.h>
25642#endif
25643
25644#undef connect
25645
25646/* Override any gcc2 internal prototype to avoid an error. */
25647#ifdef __cplusplus
25648extern "C"
25649{
25650#endif
25651/* We use char because int might match the return type of a gcc2
25652 builtin and then its argument prototype would still apply. */
25653char connect ();
25654/* The GNU C library defines this for functions which it implements
25655 to always fail with ENOSYS. Some functions are actually named
25656 something starting with __ and the normal name is an alias. */
25657#if defined (__stub_connect) || defined (__stub___connect)
25658choke me
25659#else
25660char (*f) () = connect;
25661#endif
25662#ifdef __cplusplus
25663}
25664#endif
25665
25666int
25667main ()
25668{
25669return f != connect;
25670 ;
25671 return 0;
25672}
25673_ACEOF
25674rm -f conftest.$ac_objext conftest$ac_exeext
25675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25676 (eval $ac_link) 2>conftest.er1
25677 ac_status=$?
25678 grep -v '^ *+' conftest.er1 >conftest.err
25679 rm -f conftest.er1
25680 cat conftest.err >&5
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); } &&
dcc1b6ad
VS
25683 { ac_try='test -z "$ac_c_werror_flag"
25684 || test ! -s conftest.err'
a848cd7e
SC
25685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686 (eval $ac_try) 2>&5
25687 ac_status=$?
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; } &&
25690 { ac_try='test -s conftest$ac_exeext'
25691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; }; then
25696 ac_cv_func_connect=yes
25697else
25698 echo "$as_me: failed program was:" >&5
25699sed 's/^/| /' conftest.$ac_ext >&5
25700
25701ac_cv_func_connect=no
25702fi
25703rm -f conftest.err conftest.$ac_objext \
25704 conftest$ac_exeext conftest.$ac_ext
25705fi
25706echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25707echo "${ECHO_T}$ac_cv_func_connect" >&6
25708
25709 if test $ac_cv_func_connect = no; then
25710 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25711echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25712if test "${ac_cv_lib_socket_connect+set}" = set; then
25713 echo $ECHO_N "(cached) $ECHO_C" >&6
25714else
25715 ac_check_lib_save_LIBS=$LIBS
25716LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25717cat >conftest.$ac_ext <<_ACEOF
25718/* confdefs.h. */
25719_ACEOF
25720cat confdefs.h >>conftest.$ac_ext
25721cat >>conftest.$ac_ext <<_ACEOF
25722/* end confdefs.h. */
25723
25724/* Override any gcc2 internal prototype to avoid an error. */
25725#ifdef __cplusplus
25726extern "C"
25727#endif
25728/* We use char because int might match the return type of a gcc2
25729 builtin and then its argument prototype would still apply. */
25730char connect ();
25731int
25732main ()
25733{
25734connect ();
25735 ;
25736 return 0;
25737}
25738_ACEOF
25739rm -f conftest.$ac_objext conftest$ac_exeext
25740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25741 (eval $ac_link) 2>conftest.er1
25742 ac_status=$?
25743 grep -v '^ *+' conftest.er1 >conftest.err
25744 rm -f conftest.er1
25745 cat conftest.err >&5
25746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747 (exit $ac_status); } &&
dcc1b6ad
VS
25748 { ac_try='test -z "$ac_c_werror_flag"
25749 || test ! -s conftest.err'
a848cd7e
SC
25750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25751 (eval $ac_try) 2>&5
25752 ac_status=$?
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); }; } &&
25755 { ac_try='test -s conftest$ac_exeext'
25756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25757 (eval $ac_try) 2>&5
25758 ac_status=$?
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); }; }; then
25761 ac_cv_lib_socket_connect=yes
25762else
25763 echo "$as_me: failed program was:" >&5
25764sed 's/^/| /' conftest.$ac_ext >&5
25765
25766ac_cv_lib_socket_connect=no
25767fi
25768rm -f conftest.err conftest.$ac_objext \
25769 conftest$ac_exeext conftest.$ac_ext
25770LIBS=$ac_check_lib_save_LIBS
25771fi
25772echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25773echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25774if test $ac_cv_lib_socket_connect = yes; then
25775 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25776fi
25777
25778 fi
25779
25780 # Guillermo Gomez says -lposix is necessary on A/UX.
25781 echo "$as_me:$LINENO: checking for remove" >&5
25782echo $ECHO_N "checking for remove... $ECHO_C" >&6
25783if test "${ac_cv_func_remove+set}" = set; then
25784 echo $ECHO_N "(cached) $ECHO_C" >&6
25785else
25786 cat >conftest.$ac_ext <<_ACEOF
25787/* confdefs.h. */
25788_ACEOF
25789cat confdefs.h >>conftest.$ac_ext
25790cat >>conftest.$ac_ext <<_ACEOF
25791/* end confdefs.h. */
25792/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25794#define remove innocuous_remove
25795
25796/* System header to define __stub macros and hopefully few prototypes,
25797 which can conflict with char remove (); below.
25798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25799 <limits.h> exists even on freestanding compilers. */
25800
25801#ifdef __STDC__
25802# include <limits.h>
25803#else
25804# include <assert.h>
25805#endif
25806
25807#undef remove
25808
25809/* Override any gcc2 internal prototype to avoid an error. */
25810#ifdef __cplusplus
25811extern "C"
25812{
25813#endif
25814/* We use char because int might match the return type of a gcc2
25815 builtin and then its argument prototype would still apply. */
25816char remove ();
25817/* The GNU C library defines this for functions which it implements
25818 to always fail with ENOSYS. Some functions are actually named
25819 something starting with __ and the normal name is an alias. */
25820#if defined (__stub_remove) || defined (__stub___remove)
25821choke me
25822#else
25823char (*f) () = remove;
25824#endif
25825#ifdef __cplusplus
25826}
25827#endif
25828
25829int
25830main ()
25831{
25832return f != remove;
25833 ;
25834 return 0;
25835}
25836_ACEOF
25837rm -f conftest.$ac_objext conftest$ac_exeext
25838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25839 (eval $ac_link) 2>conftest.er1
25840 ac_status=$?
25841 grep -v '^ *+' conftest.er1 >conftest.err
25842 rm -f conftest.er1
25843 cat conftest.err >&5
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } &&
dcc1b6ad
VS
25846 { ac_try='test -z "$ac_c_werror_flag"
25847 || test ! -s conftest.err'
a848cd7e
SC
25848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849 (eval $ac_try) 2>&5
25850 ac_status=$?
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; } &&
25853 { ac_try='test -s conftest$ac_exeext'
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25856 ac_status=$?
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; }; then
25859 ac_cv_func_remove=yes
25860else
25861 echo "$as_me: failed program was:" >&5
25862sed 's/^/| /' conftest.$ac_ext >&5
25863
25864ac_cv_func_remove=no
25865fi
25866rm -f conftest.err conftest.$ac_objext \
25867 conftest$ac_exeext conftest.$ac_ext
25868fi
25869echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25870echo "${ECHO_T}$ac_cv_func_remove" >&6
25871
25872 if test $ac_cv_func_remove = no; then
25873 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25874echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25875if test "${ac_cv_lib_posix_remove+set}" = set; then
25876 echo $ECHO_N "(cached) $ECHO_C" >&6
25877else
25878 ac_check_lib_save_LIBS=$LIBS
25879LIBS="-lposix $LIBS"
25880cat >conftest.$ac_ext <<_ACEOF
25881/* confdefs.h. */
25882_ACEOF
25883cat confdefs.h >>conftest.$ac_ext
25884cat >>conftest.$ac_ext <<_ACEOF
25885/* end confdefs.h. */
25886
25887/* Override any gcc2 internal prototype to avoid an error. */
25888#ifdef __cplusplus
25889extern "C"
25890#endif
25891/* We use char because int might match the return type of a gcc2
25892 builtin and then its argument prototype would still apply. */
25893char remove ();
25894int
25895main ()
25896{
25897remove ();
25898 ;
25899 return 0;
25900}
25901_ACEOF
25902rm -f conftest.$ac_objext conftest$ac_exeext
25903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25904 (eval $ac_link) 2>conftest.er1
25905 ac_status=$?
25906 grep -v '^ *+' conftest.er1 >conftest.err
25907 rm -f conftest.er1
25908 cat conftest.err >&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); } &&
dcc1b6ad
VS
25911 { ac_try='test -z "$ac_c_werror_flag"
25912 || test ! -s conftest.err'
a848cd7e
SC
25913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25914 (eval $ac_try) 2>&5
25915 ac_status=$?
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); }; } &&
25918 { ac_try='test -s conftest$ac_exeext'
25919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25920 (eval $ac_try) 2>&5
25921 ac_status=$?
25922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923 (exit $ac_status); }; }; then
25924 ac_cv_lib_posix_remove=yes
25925else
25926 echo "$as_me: failed program was:" >&5
25927sed 's/^/| /' conftest.$ac_ext >&5
25928
25929ac_cv_lib_posix_remove=no
25930fi
25931rm -f conftest.err conftest.$ac_objext \
25932 conftest$ac_exeext conftest.$ac_ext
25933LIBS=$ac_check_lib_save_LIBS
25934fi
25935echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25936echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25937if test $ac_cv_lib_posix_remove = yes; then
25938 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25939fi
25940
25941 fi
25942
25943 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25944 echo "$as_me:$LINENO: checking for shmat" >&5
25945echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25946if test "${ac_cv_func_shmat+set}" = set; then
25947 echo $ECHO_N "(cached) $ECHO_C" >&6
25948else
25949 cat >conftest.$ac_ext <<_ACEOF
25950/* confdefs.h. */
25951_ACEOF
25952cat confdefs.h >>conftest.$ac_ext
25953cat >>conftest.$ac_ext <<_ACEOF
25954/* end confdefs.h. */
25955/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25957#define shmat innocuous_shmat
25958
25959/* System header to define __stub macros and hopefully few prototypes,
25960 which can conflict with char shmat (); below.
25961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25962 <limits.h> exists even on freestanding compilers. */
25963
25964#ifdef __STDC__
25965# include <limits.h>
25966#else
25967# include <assert.h>
25968#endif
25969
25970#undef shmat
25971
25972/* Override any gcc2 internal prototype to avoid an error. */
25973#ifdef __cplusplus
25974extern "C"
25975{
25976#endif
25977/* We use char because int might match the return type of a gcc2
25978 builtin and then its argument prototype would still apply. */
25979char shmat ();
25980/* The GNU C library defines this for functions which it implements
25981 to always fail with ENOSYS. Some functions are actually named
25982 something starting with __ and the normal name is an alias. */
25983#if defined (__stub_shmat) || defined (__stub___shmat)
25984choke me
25985#else
25986char (*f) () = shmat;
25987#endif
25988#ifdef __cplusplus
25989}
25990#endif
25991
25992int
25993main ()
25994{
25995return f != shmat;
25996 ;
25997 return 0;
25998}
25999_ACEOF
26000rm -f conftest.$ac_objext conftest$ac_exeext
26001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26002 (eval $ac_link) 2>conftest.er1
26003 ac_status=$?
26004 grep -v '^ *+' conftest.er1 >conftest.err
26005 rm -f conftest.er1
26006 cat conftest.err >&5
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); } &&
dcc1b6ad
VS
26009 { ac_try='test -z "$ac_c_werror_flag"
26010 || test ! -s conftest.err'
a848cd7e
SC
26011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26012 (eval $ac_try) 2>&5
26013 ac_status=$?
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); }; } &&
26016 { ac_try='test -s conftest$ac_exeext'
26017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018 (eval $ac_try) 2>&5
26019 ac_status=$?
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); }; }; then
26022 ac_cv_func_shmat=yes
26023else
26024 echo "$as_me: failed program was:" >&5
26025sed 's/^/| /' conftest.$ac_ext >&5
26026
26027ac_cv_func_shmat=no
26028fi
26029rm -f conftest.err conftest.$ac_objext \
26030 conftest$ac_exeext conftest.$ac_ext
26031fi
26032echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26033echo "${ECHO_T}$ac_cv_func_shmat" >&6
26034
26035 if test $ac_cv_func_shmat = no; then
26036 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26037echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26038if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26039 echo $ECHO_N "(cached) $ECHO_C" >&6
26040else
26041 ac_check_lib_save_LIBS=$LIBS
26042LIBS="-lipc $LIBS"
26043cat >conftest.$ac_ext <<_ACEOF
26044/* confdefs.h. */
26045_ACEOF
26046cat confdefs.h >>conftest.$ac_ext
26047cat >>conftest.$ac_ext <<_ACEOF
26048/* end confdefs.h. */
26049
26050/* Override any gcc2 internal prototype to avoid an error. */
26051#ifdef __cplusplus
26052extern "C"
26053#endif
26054/* We use char because int might match the return type of a gcc2
26055 builtin and then its argument prototype would still apply. */
26056char shmat ();
26057int
26058main ()
26059{
26060shmat ();
26061 ;
26062 return 0;
26063}
26064_ACEOF
26065rm -f conftest.$ac_objext conftest$ac_exeext
26066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26067 (eval $ac_link) 2>conftest.er1
26068 ac_status=$?
26069 grep -v '^ *+' conftest.er1 >conftest.err
26070 rm -f conftest.er1
26071 cat conftest.err >&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } &&
dcc1b6ad
VS
26074 { ac_try='test -z "$ac_c_werror_flag"
26075 || test ! -s conftest.err'
a848cd7e
SC
26076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26077 (eval $ac_try) 2>&5
26078 ac_status=$?
26079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080 (exit $ac_status); }; } &&
26081 { ac_try='test -s conftest$ac_exeext'
26082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083 (eval $ac_try) 2>&5
26084 ac_status=$?
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); }; }; then
26087 ac_cv_lib_ipc_shmat=yes
26088else
26089 echo "$as_me: failed program was:" >&5
26090sed 's/^/| /' conftest.$ac_ext >&5
26091
26092ac_cv_lib_ipc_shmat=no
26093fi
26094rm -f conftest.err conftest.$ac_objext \
26095 conftest$ac_exeext conftest.$ac_ext
26096LIBS=$ac_check_lib_save_LIBS
26097fi
26098echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26099echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26100if test $ac_cv_lib_ipc_shmat = yes; then
26101 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26102fi
26103
26104 fi
26105 fi
26106
26107 # Check for libraries that X11R6 Xt/Xaw programs need.
26108 ac_save_LDFLAGS=$LDFLAGS
26109 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26110 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26111 # check for ICE first), but we must link in the order -lSM -lICE or
26112 # we get undefined symbols. So assume we have SM if we have ICE.
26113 # These have to be linked with before -lX11, unlike the other
26114 # libraries we check for below, so use a different variable.
26115 # John Interrante, Karl Berry
26116 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26117echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26118if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26119 echo $ECHO_N "(cached) $ECHO_C" >&6
26120else
26121 ac_check_lib_save_LIBS=$LIBS
26122LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26123cat >conftest.$ac_ext <<_ACEOF
26124/* confdefs.h. */
26125_ACEOF
26126cat confdefs.h >>conftest.$ac_ext
26127cat >>conftest.$ac_ext <<_ACEOF
26128/* end confdefs.h. */
26129
26130/* Override any gcc2 internal prototype to avoid an error. */
26131#ifdef __cplusplus
26132extern "C"
26133#endif
26134/* We use char because int might match the return type of a gcc2
26135 builtin and then its argument prototype would still apply. */
26136char IceConnectionNumber ();
26137int
26138main ()
26139{
26140IceConnectionNumber ();
26141 ;
26142 return 0;
26143}
26144_ACEOF
26145rm -f conftest.$ac_objext conftest$ac_exeext
26146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26147 (eval $ac_link) 2>conftest.er1
26148 ac_status=$?
26149 grep -v '^ *+' conftest.er1 >conftest.err
26150 rm -f conftest.er1
26151 cat conftest.err >&5
26152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153 (exit $ac_status); } &&
dcc1b6ad
VS
26154 { ac_try='test -z "$ac_c_werror_flag"
26155 || test ! -s conftest.err'
a848cd7e
SC
26156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26157 (eval $ac_try) 2>&5
26158 ac_status=$?
26159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160 (exit $ac_status); }; } &&
26161 { ac_try='test -s conftest$ac_exeext'
26162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26163 (eval $ac_try) 2>&5
26164 ac_status=$?
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); }; }; then
26167 ac_cv_lib_ICE_IceConnectionNumber=yes
26168else
26169 echo "$as_me: failed program was:" >&5
26170sed 's/^/| /' conftest.$ac_ext >&5
26171
26172ac_cv_lib_ICE_IceConnectionNumber=no
26173fi
26174rm -f conftest.err conftest.$ac_objext \
26175 conftest$ac_exeext conftest.$ac_ext
26176LIBS=$ac_check_lib_save_LIBS
26177fi
26178echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26179echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26180if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26181 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26182fi
26183
26184 LDFLAGS=$ac_save_LDFLAGS
26185
26186fi
26187
26188
26189 if test "$no_x" = "yes"; then
26190 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26191echo "$as_me: error: X11 not found" >&2;}
26192 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26193 fi
26194
26195 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
26196 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
26197 AFMINSTALL=afminstall
26198 COMPILED_X_PROGRAM=0
26199
26200 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26201echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
26202
26203ac_find_includes=
26204for ac_dir in $SEARCH_INCLUDE /usr/include;
26205 do
26206 if test -f "$ac_dir/Xm/Xm.h"; then
26207 ac_find_includes=$ac_dir
26208 break
26209 fi
26210 done
26211
26212 if test "$ac_find_includes" != "" ; then
26213 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26214echo "${ECHO_T}found in $ac_find_includes" >&6
26215
26216 if test "x$ac_find_includes" = "x/usr/include"; then
26217 ac_path_to_include=""
26218 else
26219 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26220 result=$?
26221 if test $result = 0; then
26222 ac_path_to_include=""
26223 else
26224 ac_path_to_include=" -I$ac_find_includes"
26225 fi
26226 fi
26227
26228 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26229 else
26230 cat >conftest.$ac_ext <<_ACEOF
26231/* confdefs.h. */
26232_ACEOF
26233cat confdefs.h >>conftest.$ac_ext
26234cat >>conftest.$ac_ext <<_ACEOF
26235/* end confdefs.h. */
26236
26237 #include <Xm/Xm.h>
26238
26239int
26240main ()
26241{
26242
26243 int version;
26244 version = xmUseVersion;
26245
26246 ;
26247 return 0;
26248}
26249_ACEOF
26250rm -f conftest.$ac_objext
26251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26252 (eval $ac_compile) 2>conftest.er1
26253 ac_status=$?
26254 grep -v '^ *+' conftest.er1 >conftest.err
26255 rm -f conftest.er1
26256 cat conftest.err >&5
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); } &&
dcc1b6ad
VS
26259 { ac_try='test -z "$ac_c_werror_flag"
26260 || test ! -s conftest.err'
a848cd7e
SC
26261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262 (eval $ac_try) 2>&5
26263 ac_status=$?
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); }; } &&
26266 { ac_try='test -s conftest.$ac_objext'
26267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26268 (eval $ac_try) 2>&5
26269 ac_status=$?
26270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); }; }; then
26272
26273 echo "$as_me:$LINENO: result: found in default search path" >&5
26274echo "${ECHO_T}found in default search path" >&6
26275 COMPILED_X_PROGRAM=1
26276
26277else
26278 echo "$as_me: failed program was:" >&5
26279sed 's/^/| /' conftest.$ac_ext >&5
26280
26281
26282 echo "$as_me:$LINENO: result: no" >&5
26283echo "${ECHO_T}no" >&6
26284 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26285echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26286 { (exit 1); exit 1; }; }
26287
26288
26289fi
26290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26291 fi
26292
26293 if test "$COMPILED_X_PROGRAM" = 0; then
26294 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26295echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26296
26297ac_find_libraries=
26298for ac_dir in $SEARCH_LIB /usr/lib;
26299 do
26300 for ac_extension in a so sl dylib; do
26301 if test -f "$ac_dir/libXm.$ac_extension"; then
26302 ac_find_libraries=$ac_dir
26303 break 2
26304 fi
26305 done
26306 done
26307
26308 if test "$ac_find_libraries" != "" ; then
26309 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26310echo "${ECHO_T}found at $ac_find_libraries" >&6
26311
26312
26313 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26314 result=$?
26315 if test $result = 0; then
26316 ac_path_to_link=""
26317 else
26318 ac_path_to_link=" -L$ac_find_libraries"
26319 fi
26320
26321 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26322 else
26323 save_CFLAGS=$CFLAGS
26324 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26325
26326 cat >conftest.$ac_ext <<_ACEOF
26327/* confdefs.h. */
26328_ACEOF
26329cat confdefs.h >>conftest.$ac_ext
26330cat >>conftest.$ac_ext <<_ACEOF
26331/* end confdefs.h. */
26332
26333 #include <Xm/Xm.h>
26334
26335int
26336main ()
26337{
26338
26339 int version;
26340 version = xmUseVersion;
26341
26342 ;
26343 return 0;
26344}
26345_ACEOF
26346rm -f conftest.$ac_objext
26347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26348 (eval $ac_compile) 2>conftest.er1
26349 ac_status=$?
26350 grep -v '^ *+' conftest.er1 >conftest.err
26351 rm -f conftest.er1
26352 cat conftest.err >&5
26353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); } &&
dcc1b6ad
VS
26355 { ac_try='test -z "$ac_c_werror_flag"
26356 || test ! -s conftest.err'
a848cd7e
SC
26357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358 (eval $ac_try) 2>&5
26359 ac_status=$?
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); }; } &&
26362 { ac_try='test -s conftest.$ac_objext'
26363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364 (eval $ac_try) 2>&5
26365 ac_status=$?
26366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367 (exit $ac_status); }; }; then
26368
26369 echo "$as_me:$LINENO: result: found in default search path" >&5
26370echo "${ECHO_T}found in default search path" >&6
26371 COMPILED_X_PROGRAM=1
26372
26373else
26374 echo "$as_me: failed program was:" >&5
26375sed 's/^/| /' conftest.$ac_ext >&5
26376
26377
26378 echo "$as_me:$LINENO: result: no" >&5
26379echo "${ECHO_T}no" >&6
26380 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26381echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26382 { (exit 1); exit 1; }; }
26383
26384
26385fi
26386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26387
26388 CFLAGS=$save_CFLAGS
26389 fi
26390 fi
26391
26392 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26393echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26394 libp_link=""
26395 libsm_ice_link=""
26396 libs_found=0
26397 for libp in "" " -lXp"; do
26398 if test "$libs_found" = "0"; then
26399 for libsm_ice in "" " -lSM -lICE"; do
26400 if test "$libs_found" = "0"; then
26401 save_LIBS="$LIBS"
26402 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26403 save_CFLAGS=$CFLAGS
26404 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26405
26406 cat >conftest.$ac_ext <<_ACEOF
26407/* confdefs.h. */
26408_ACEOF
26409cat confdefs.h >>conftest.$ac_ext
26410cat >>conftest.$ac_ext <<_ACEOF
26411/* end confdefs.h. */
26412
26413 #include <Xm/Xm.h>
26414 #include <Xm/List.h>
26415
26416int
26417main ()
26418{
26419
26420 XmString string = NULL;
26421 Widget w = NULL;
26422 int position = 0;
26423 XmListAddItem(w, string, position);
26424
26425 ;
26426 return 0;
26427}
26428_ACEOF
26429rm -f conftest.$ac_objext conftest$ac_exeext
26430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26431 (eval $ac_link) 2>conftest.er1
26432 ac_status=$?
26433 grep -v '^ *+' conftest.er1 >conftest.err
26434 rm -f conftest.er1
26435 cat conftest.err >&5
26436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); } &&
dcc1b6ad
VS
26438 { ac_try='test -z "$ac_c_werror_flag"
26439 || test ! -s conftest.err'
a848cd7e
SC
26440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26441 (eval $ac_try) 2>&5
26442 ac_status=$?
26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); }; } &&
26445 { ac_try='test -s conftest$ac_exeext'
26446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26447 (eval $ac_try) 2>&5
26448 ac_status=$?
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); }; }; then
26451
26452 libp_link="$libp"
26453 libsm_ice_link="$libsm_ice"
26454 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26455echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26456 libs_found=1
26457
26458else
26459 echo "$as_me: failed program was:" >&5
26460sed 's/^/| /' conftest.$ac_ext >&5
26461
26462
26463
26464fi
26465rm -f conftest.err conftest.$ac_objext \
26466 conftest$ac_exeext conftest.$ac_ext
26467
26468 LIBS="$save_LIBS"
26469 CFLAGS=$save_CFLAGS
26470 fi
26471 done
26472 fi
26473 done
26474
26475 if test "$libs_found" = "0"; then
26476 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26477echo "${ECHO_T}can't find the right libraries" >&6
26478 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26479echo "$as_me: error: can't link a simple motif program" >&2;}
26480 { (exit 1); exit 1; }; }
26481 fi
26482
26483 save_CFLAGS=$CFLAGS
26484 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26485 echo "$as_me:$LINENO: checking for Motif 2" >&5
26486echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26487 cat >conftest.$ac_ext <<_ACEOF
26488/* confdefs.h. */
26489_ACEOF
26490cat confdefs.h >>conftest.$ac_ext
26491cat >>conftest.$ac_ext <<_ACEOF
26492/* end confdefs.h. */
26493
26494 #include <Xm/Xm.h>
26495
26496int
26497main ()
26498{
26499
26500 #if XmVersion < 2000
26501 #error "Not Motif 2"
26502 #endif
26503
26504 ;
26505 return 0;
26506}
26507_ACEOF
26508rm -f conftest.$ac_objext
26509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26510 (eval $ac_compile) 2>conftest.er1
26511 ac_status=$?
26512 grep -v '^ *+' conftest.er1 >conftest.err
26513 rm -f conftest.er1
26514 cat conftest.err >&5
26515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); } &&
dcc1b6ad
VS
26517 { ac_try='test -z "$ac_c_werror_flag"
26518 || test ! -s conftest.err'
a848cd7e
SC
26519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26520 (eval $ac_try) 2>&5
26521 ac_status=$?
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); }; } &&
26524 { ac_try='test -s conftest.$ac_objext'
26525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26526 (eval $ac_try) 2>&5
26527 ac_status=$?
26528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529 (exit $ac_status); }; }; then
26530
26531 cat >>confdefs.h <<\_ACEOF
26532#define __WXMOTIF20__ 1
26533_ACEOF
26534
26535 echo "$as_me:$LINENO: result: found" >&5
26536echo "${ECHO_T}found" >&6
26537
26538else
26539 echo "$as_me: failed program was:" >&5
26540sed 's/^/| /' conftest.$ac_ext >&5
26541
26542
26543 cat >>confdefs.h <<\_ACEOF
26544#define __WXMOTIF20__ 0
26545_ACEOF
26546
26547 echo "$as_me:$LINENO: result: not found" >&5
26548echo "${ECHO_T}not found" >&6
26549
26550fi
26551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26552 CFLAGS=$save_CFLAGS
26553
26554 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26555 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26556 TOOLKIT=MOTIF
26557 GUIDIST=MOTIF_DIST
26558 fi
26559
26560 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26561 if test "$wxUSE_LIBXPM" = "sys"; then
26562 echo "$as_me:$LINENO: checking for Xpm library" >&5
26563echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26564
26565ac_find_libraries=
26566for ac_dir in $SEARCH_LIB /usr/lib;
26567 do
26568 for ac_extension in a so sl dylib; do
26569 if test -f "$ac_dir/libXpm.$ac_extension"; then
26570 ac_find_libraries=$ac_dir
26571 break 2
26572 fi
26573 done
26574 done
26575
26576 if test "$ac_find_libraries" != "" ; then
26577
26578 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26579 result=$?
26580 if test $result = 0; then
26581 ac_path_to_link=""
26582 else
26583 ac_path_to_link=" -L$ac_find_libraries"
26584 fi
26585
26586 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26587 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26588echo "${ECHO_T}found at $ac_find_libraries" >&6
26589
26590 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26591echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26592if test "${wx_cv_x11_xpm_h+set}" = set; then
26593 echo $ECHO_N "(cached) $ECHO_C" >&6
26594else
26595
26596 save_CFLAGS=$CFLAGS
26597 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26598
26599 cat >conftest.$ac_ext <<_ACEOF
26600/* confdefs.h. */
26601_ACEOF
26602cat confdefs.h >>conftest.$ac_ext
26603cat >>conftest.$ac_ext <<_ACEOF
26604/* end confdefs.h. */
26605
26606 #include <X11/xpm.h>
26607
26608int
26609main ()
26610{
26611
26612 int version;
26613 version = XpmLibraryVersion();
26614
26615 ;
26616 return 0;
26617}
26618_ACEOF
26619rm -f conftest.$ac_objext
26620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26621 (eval $ac_compile) 2>conftest.er1
26622 ac_status=$?
26623 grep -v '^ *+' conftest.er1 >conftest.err
26624 rm -f conftest.er1
26625 cat conftest.err >&5
26626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); } &&
dcc1b6ad
VS
26628 { ac_try='test -z "$ac_c_werror_flag"
26629 || test ! -s conftest.err'
a848cd7e
SC
26630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26631 (eval $ac_try) 2>&5
26632 ac_status=$?
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); }; } &&
26635 { ac_try='test -s conftest.$ac_objext'
26636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26637 (eval $ac_try) 2>&5
26638 ac_status=$?
26639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); }; }; then
26641 wx_cv_x11_xpm_h=yes
26642else
26643 echo "$as_me: failed program was:" >&5
26644sed 's/^/| /' conftest.$ac_ext >&5
26645
26646wx_cv_x11_xpm_h=no
26647
26648fi
26649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26650
26651 CFLAGS=$save_CFLAGS
26652
26653
26654fi
26655echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26656echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26657
26658 if test $wx_cv_x11_xpm_h = "yes"; then
26659 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26660 cat >>confdefs.h <<\_ACEOF
26661#define wxHAVE_LIB_XPM 1
26662_ACEOF
26663
26664 else
26665 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26666echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26667 fi
26668 fi
26669
26670 fi
26671
26672 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26673echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26674if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26675 echo $ECHO_N "(cached) $ECHO_C" >&6
26676else
26677 ac_check_lib_save_LIBS=$LIBS
26678LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26679cat >conftest.$ac_ext <<_ACEOF
26680/* confdefs.h. */
26681_ACEOF
26682cat confdefs.h >>conftest.$ac_ext
26683cat >>conftest.$ac_ext <<_ACEOF
26684/* end confdefs.h. */
26685
26686/* Override any gcc2 internal prototype to avoid an error. */
26687#ifdef __cplusplus
26688extern "C"
26689#endif
26690/* We use char because int might match the return type of a gcc2
26691 builtin and then its argument prototype would still apply. */
26692char XShapeQueryExtension ();
26693int
26694main ()
26695{
26696XShapeQueryExtension ();
26697 ;
26698 return 0;
26699}
26700_ACEOF
26701rm -f conftest.$ac_objext conftest$ac_exeext
26702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26703 (eval $ac_link) 2>conftest.er1
26704 ac_status=$?
26705 grep -v '^ *+' conftest.er1 >conftest.err
26706 rm -f conftest.er1
26707 cat conftest.err >&5
26708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709 (exit $ac_status); } &&
dcc1b6ad
VS
26710 { ac_try='test -z "$ac_c_werror_flag"
26711 || test ! -s conftest.err'
a848cd7e
SC
26712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26713 (eval $ac_try) 2>&5
26714 ac_status=$?
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); }; } &&
26717 { ac_try='test -s conftest$ac_exeext'
26718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719 (eval $ac_try) 2>&5
26720 ac_status=$?
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; }; then
26723 ac_cv_lib_Xext_XShapeQueryExtension=yes
26724else
26725 echo "$as_me: failed program was:" >&5
26726sed 's/^/| /' conftest.$ac_ext >&5
26727
26728ac_cv_lib_Xext_XShapeQueryExtension=no
26729fi
26730rm -f conftest.err conftest.$ac_objext \
26731 conftest$ac_exeext conftest.$ac_ext
26732LIBS=$ac_check_lib_save_LIBS
26733fi
26734echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26735echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26736if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26737
26738 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26739 wxHAVE_XEXT_LIB=1
26740
26741fi
26742
26743
26744 if test "$wxHAVE_XEXT_LIB" = 1; then
26745 save_CFLAGS="$CFLAGS"
26746 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26747
26748 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26749echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26750 cat >conftest.$ac_ext <<_ACEOF
26751/* confdefs.h. */
26752_ACEOF
26753cat confdefs.h >>conftest.$ac_ext
26754cat >>conftest.$ac_ext <<_ACEOF
26755/* end confdefs.h. */
26756
26757 #include <X11/Xlib.h>
26758 #include <X11/extensions/shape.h>
26759
26760int
26761main ()
26762{
26763
26764 int dummy1, dummy2;
26765 XShapeQueryExtension((Display*)NULL,
26766 (int*)NULL, (int*)NULL);
26767
26768 ;
26769 return 0;
26770}
26771_ACEOF
26772rm -f conftest.$ac_objext
26773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26774 (eval $ac_compile) 2>conftest.er1
26775 ac_status=$?
26776 grep -v '^ *+' conftest.er1 >conftest.err
26777 rm -f conftest.er1
26778 cat conftest.err >&5
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); } &&
dcc1b6ad
VS
26781 { ac_try='test -z "$ac_c_werror_flag"
26782 || test ! -s conftest.err'
a848cd7e
SC
26783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784 (eval $ac_try) 2>&5
26785 ac_status=$?
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); }; } &&
26788 { ac_try='test -s conftest.$ac_objext'
26789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26790 (eval $ac_try) 2>&5
26791 ac_status=$?
26792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793 (exit $ac_status); }; }; then
26794
26795 cat >>confdefs.h <<\_ACEOF
26796#define HAVE_XSHAPE 1
26797_ACEOF
26798
26799 echo "$as_me:$LINENO: result: found" >&5
26800echo "${ECHO_T}found" >&6
26801
26802else
26803 echo "$as_me: failed program was:" >&5
26804sed 's/^/| /' conftest.$ac_ext >&5
26805
26806
26807 echo "$as_me:$LINENO: result: not found" >&5
26808echo "${ECHO_T}not found" >&6
26809
26810fi
26811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26812 CFLAGS="$save_CFLAGS"
26813
26814 fi
26815 fi
26816
26817 if test "$wxUSE_MAC" = 1; then
26818 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26819echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26820 if test "$GCC" = yes; then
26821 echo "$as_me:$LINENO: result: gcc" >&5
26822echo "${ECHO_T}gcc" >&6
26823 CPPFLAGS_PASCAL="-fpascal-strings"
26824 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26825 echo "$as_me:$LINENO: result: xlc" >&5
26826echo "${ECHO_T}xlc" >&6
26827 CPPFLAGS_PASCAL="-qmacpstr"
26828 else
26829 echo "$as_me:$LINENO: result: none" >&5
26830echo "${ECHO_T}none" >&6
26831 fi
26832
26833 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26834
26835 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26836 TOOLKIT=MAC
26837 GUIDIST=MACX_DIST
26838 WXBASEPORT="_carbon"
26839 fi
26840
26841 if test "$wxUSE_COCOA" = 1; then
26842 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26843 TOOLKIT=COCOA
26844 GUIDIST=COCOA_DIST
26845 fi
26846
26847 if test "$wxUSE_PM" = 1; then
26848 TOOLKIT=PM
26849 GUIDIST=GTK_DIST
26850 fi
26851
26852 if test "$TOOLKIT" = "PM" ; then
26853 TOOLKIT_DIR="os2"
26854 else
26855 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26856 fi
26857
26858 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26859
26860 if test "$wxUSE_UNIVERSAL" = "yes"; then
26861 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26862
26863 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26864 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26865
26866 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26867 if test "$wxUSE_X11" = 1; then
26868 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26869 else
26870 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26871 fi
26872 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26873 WIDGET_SET=univ
26874 else
26875 ALL_OBJECTS="\$(GUIOBJS)"
26876 ALL_SOURCES="\$(ALL_SOURCES)"
26877 ALL_HEADERS="\$(ALL_HEADERS)"
26878 fi
26879
26880 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26881
26882 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26883 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26884 fi
26885
26886 if test "$wxUSE_HTML" = "yes"; then
26887 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26888 fi
26889
26890 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26891 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26892 fi
26893 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26894 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26895 fi
26896 if test "$wxUSE_LIBPNG" = "builtin" ; then
26897 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26898 fi
26899
26900 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26901 DISTDIR="wx\$(TOOLKIT)"
26902else
26903 USE_GUI=0
26904
26905 TOOLKIT_DIR="base"
26906
26907 if test "$USE_WIN32" = 1 ; then
26908 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26909 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26910
26911 TOOLKIT="MSW"
26912 else
26913 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26914 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26915 fi
26916
26917 ALL_SOURCES="\$(ALL_SOURCES)"
26918 ALL_HEADERS="\$(ALL_HEADERS)"
26919
26920 PORT_FILES="\${top_srcdir}/src/files.lst"
26921
26922 GUIDIST="BASE_DIST"
26923 DISTDIR="wxBase"
26924fi
26925
26926
26927
26928
26929IODBC_C_SRC=""
26930
26931
26932if test "$TOOLKIT" != "MSW" ; then
26933
26934 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26935
26936 if test "${ac_cv_header_sql_h+set}" = set; then
26937 echo "$as_me:$LINENO: checking for sql.h" >&5
26938echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26939if test "${ac_cv_header_sql_h+set}" = set; then
26940 echo $ECHO_N "(cached) $ECHO_C" >&6
26941fi
26942echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26943echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26944else
26945 # Is the header compilable?
26946echo "$as_me:$LINENO: checking sql.h usability" >&5
26947echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26948cat >conftest.$ac_ext <<_ACEOF
26949/* confdefs.h. */
26950_ACEOF
26951cat confdefs.h >>conftest.$ac_ext
26952cat >>conftest.$ac_ext <<_ACEOF
26953/* end confdefs.h. */
26954$ac_includes_default
26955#include <sql.h>
26956_ACEOF
26957rm -f conftest.$ac_objext
26958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26959 (eval $ac_compile) 2>conftest.er1
26960 ac_status=$?
26961 grep -v '^ *+' conftest.er1 >conftest.err
26962 rm -f conftest.er1
26963 cat conftest.err >&5
26964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); } &&
dcc1b6ad
VS
26966 { ac_try='test -z "$ac_c_werror_flag"
26967 || test ! -s conftest.err'
a848cd7e
SC
26968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26969 (eval $ac_try) 2>&5
26970 ac_status=$?
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); }; } &&
26973 { ac_try='test -s conftest.$ac_objext'
26974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26975 (eval $ac_try) 2>&5
26976 ac_status=$?
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); }; }; then
26979 ac_header_compiler=yes
26980else
26981 echo "$as_me: failed program was:" >&5
26982sed 's/^/| /' conftest.$ac_ext >&5
26983
26984ac_header_compiler=no
26985fi
26986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26987echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26988echo "${ECHO_T}$ac_header_compiler" >&6
26989
26990# Is the header present?
26991echo "$as_me:$LINENO: checking sql.h presence" >&5
26992echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26993cat >conftest.$ac_ext <<_ACEOF
26994/* confdefs.h. */
26995_ACEOF
26996cat confdefs.h >>conftest.$ac_ext
26997cat >>conftest.$ac_ext <<_ACEOF
26998/* end confdefs.h. */
26999#include <sql.h>
27000_ACEOF
27001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27003 ac_status=$?
27004 grep -v '^ *+' conftest.er1 >conftest.err
27005 rm -f conftest.er1
27006 cat conftest.err >&5
27007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27008 (exit $ac_status); } >/dev/null; then
27009 if test -s conftest.err; then
27010 ac_cpp_err=$ac_c_preproc_warn_flag
27011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27012 else
27013 ac_cpp_err=
27014 fi
27015else
27016 ac_cpp_err=yes
27017fi
27018if test -z "$ac_cpp_err"; then
27019 ac_header_preproc=yes
27020else
27021 echo "$as_me: failed program was:" >&5
27022sed 's/^/| /' conftest.$ac_ext >&5
27023
27024 ac_header_preproc=no
27025fi
27026rm -f conftest.err conftest.$ac_ext
27027echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27028echo "${ECHO_T}$ac_header_preproc" >&6
27029
27030# So? What about this header?
27031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27032 yes:no: )
27033 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27034echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27035 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27036echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27037 ac_header_preproc=yes
27038 ;;
27039 no:yes:* )
27040 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27041echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
27042 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27043echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27044 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27045echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27046 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27047echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
27048 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27049echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
27050 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27051echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
27052 (
27053 cat <<\_ASBOX
27054## ----------------------------------------- ##
27055## Report this to wx-dev@lists.wxwindows.org ##
27056## ----------------------------------------- ##
27057_ASBOX
27058 ) |
27059 sed "s/^/$as_me: WARNING: /" >&2
27060 ;;
27061esac
27062echo "$as_me:$LINENO: checking for sql.h" >&5
27063echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27064if test "${ac_cv_header_sql_h+set}" = set; then
27065 echo $ECHO_N "(cached) $ECHO_C" >&6
27066else
27067 ac_cv_header_sql_h=$ac_header_preproc
27068fi
27069echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27070echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27071
27072fi
27073if test $ac_cv_header_sql_h = yes; then
27074 found_sql_h=1
27075fi
27076
27077
27078 if test "x$found_sql_h" = "x1" ; then
27079 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27080echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27081if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27082 echo $ECHO_N "(cached) $ECHO_C" >&6
27083else
27084 ac_check_lib_save_LIBS=$LIBS
27085LIBS="-liodbc $LIBS"
27086cat >conftest.$ac_ext <<_ACEOF
27087/* confdefs.h. */
27088_ACEOF
27089cat confdefs.h >>conftest.$ac_ext
27090cat >>conftest.$ac_ext <<_ACEOF
27091/* end confdefs.h. */
27092
27093/* Override any gcc2 internal prototype to avoid an error. */
27094#ifdef __cplusplus
27095extern "C"
27096#endif
27097/* We use char because int might match the return type of a gcc2
27098 builtin and then its argument prototype would still apply. */
27099char SQLAllocEnv ();
27100int
27101main ()
27102{
27103SQLAllocEnv ();
27104 ;
27105 return 0;
27106}
27107_ACEOF
27108rm -f conftest.$ac_objext conftest$ac_exeext
27109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27110 (eval $ac_link) 2>conftest.er1
27111 ac_status=$?
27112 grep -v '^ *+' conftest.er1 >conftest.err
27113 rm -f conftest.er1
27114 cat conftest.err >&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); } &&
dcc1b6ad
VS
27117 { ac_try='test -z "$ac_c_werror_flag"
27118 || test ! -s conftest.err'
a848cd7e
SC
27119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27120 (eval $ac_try) 2>&5
27121 ac_status=$?
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; } &&
27124 { ac_try='test -s conftest$ac_exeext'
27125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126 (eval $ac_try) 2>&5
27127 ac_status=$?
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; }; then
27130 ac_cv_lib_iodbc_SQLAllocEnv=yes
27131else
27132 echo "$as_me: failed program was:" >&5
27133sed 's/^/| /' conftest.$ac_ext >&5
27134
27135ac_cv_lib_iodbc_SQLAllocEnv=no
27136fi
27137rm -f conftest.err conftest.$ac_objext \
27138 conftest$ac_exeext conftest.$ac_ext
27139LIBS=$ac_check_lib_save_LIBS
27140fi
27141echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27142echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27143if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27144 ODBC_LINK=" -liodbc"
27145else
27146
27147 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27148echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27149if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27150 echo $ECHO_N "(cached) $ECHO_C" >&6
27151else
27152 ac_check_lib_save_LIBS=$LIBS
27153LIBS="-lunixodbc $LIBS"
27154cat >conftest.$ac_ext <<_ACEOF
27155/* confdefs.h. */
27156_ACEOF
27157cat confdefs.h >>conftest.$ac_ext
27158cat >>conftest.$ac_ext <<_ACEOF
27159/* end confdefs.h. */
27160
27161/* Override any gcc2 internal prototype to avoid an error. */
27162#ifdef __cplusplus
27163extern "C"
27164#endif
27165/* We use char because int might match the return type of a gcc2
27166 builtin and then its argument prototype would still apply. */
27167char SQLAllocEnv ();
27168int
27169main ()
27170{
27171SQLAllocEnv ();
27172 ;
27173 return 0;
27174}
27175_ACEOF
27176rm -f conftest.$ac_objext conftest$ac_exeext
27177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27178 (eval $ac_link) 2>conftest.er1
27179 ac_status=$?
27180 grep -v '^ *+' conftest.er1 >conftest.err
27181 rm -f conftest.er1
27182 cat conftest.err >&5
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); } &&
dcc1b6ad
VS
27185 { ac_try='test -z "$ac_c_werror_flag"
27186 || test ! -s conftest.err'
a848cd7e
SC
27187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27188 (eval $ac_try) 2>&5
27189 ac_status=$?
27190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191 (exit $ac_status); }; } &&
27192 { ac_try='test -s conftest$ac_exeext'
27193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27194 (eval $ac_try) 2>&5
27195 ac_status=$?
27196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197 (exit $ac_status); }; }; then
27198 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27199else
27200 echo "$as_me: failed program was:" >&5
27201sed 's/^/| /' conftest.$ac_ext >&5
27202
27203ac_cv_lib_unixodbc_SQLAllocEnv=no
27204fi
27205rm -f conftest.err conftest.$ac_objext \
27206 conftest$ac_exeext conftest.$ac_ext
27207LIBS=$ac_check_lib_save_LIBS
27208fi
27209echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27210echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27211if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27212 ODBC_LINK=" -lunixodbc"
27213else
27214
27215 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27216echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27217if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27218 echo $ECHO_N "(cached) $ECHO_C" >&6
27219else
27220 ac_check_lib_save_LIBS=$LIBS
27221LIBS="-lodbc $LIBS"
27222cat >conftest.$ac_ext <<_ACEOF
27223/* confdefs.h. */
27224_ACEOF
27225cat confdefs.h >>conftest.$ac_ext
27226cat >>conftest.$ac_ext <<_ACEOF
27227/* end confdefs.h. */
27228
27229/* Override any gcc2 internal prototype to avoid an error. */
27230#ifdef __cplusplus
27231extern "C"
27232#endif
27233/* We use char because int might match the return type of a gcc2
27234 builtin and then its argument prototype would still apply. */
27235char SQLAllocEnv ();
27236int
27237main ()
27238{
27239SQLAllocEnv ();
27240 ;
27241 return 0;
27242}
27243_ACEOF
27244rm -f conftest.$ac_objext conftest$ac_exeext
27245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27246 (eval $ac_link) 2>conftest.er1
27247 ac_status=$?
27248 grep -v '^ *+' conftest.er1 >conftest.err
27249 rm -f conftest.er1
27250 cat conftest.err >&5
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); } &&
dcc1b6ad
VS
27253 { ac_try='test -z "$ac_c_werror_flag"
27254 || test ! -s conftest.err'
a848cd7e
SC
27255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27256 (eval $ac_try) 2>&5
27257 ac_status=$?
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); }; } &&
27260 { ac_try='test -s conftest$ac_exeext'
27261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262 (eval $ac_try) 2>&5
27263 ac_status=$?
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); }; }; then
27266 ac_cv_lib_odbc_SQLAllocEnv=yes
27267else
27268 echo "$as_me: failed program was:" >&5
27269sed 's/^/| /' conftest.$ac_ext >&5
27270
27271ac_cv_lib_odbc_SQLAllocEnv=no
27272fi
27273rm -f conftest.err conftest.$ac_objext \
27274 conftest$ac_exeext conftest.$ac_ext
27275LIBS=$ac_check_lib_save_LIBS
27276fi
27277echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27278echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27279if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27280 ODBC_LINK=" -lodbc"
27281fi
27282
27283
27284fi
27285
27286
27287fi
27288
27289 fi
27290 if test "x$ODBC_LINK" = "x" ; then
27291 if test "$wxUSE_ODBC" = "sys" ; then
27292 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27293echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27294 { (exit 1); exit 1; }; }
27295 else
27296 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27297echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27298 wxUSE_ODBC=builtin
27299 fi
27300 else
27301 wxUSE_ODBC=sys
27302 fi
27303 fi
27304 if test "$wxUSE_ODBC" != "no" ; then
27305 cat >>confdefs.h <<\_ACEOF
27306#define wxUSE_ODBC 1
27307_ACEOF
27308
27309 if test "$wxUSE_ODBC" = "builtin" ; then
27310 cat >>confdefs.h <<\_ACEOF
27311#define wxUSE_BUILTIN_IODBC 1
27312_ACEOF
27313
27314 fi
27315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27316
27317 WXODBCFLAG="-D_IODBC_"
27318 fi
27319fi
27320
27321if test "$wxUSE_REGEX" = "builtin" ; then
27322 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
27323fi
27324if test "$wxUSE_ZLIB" = "builtin" ; then
27325 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
27326fi
27327
01cb68df 27328
a848cd7e
SC
27329if test "$wxUSE_DISPLAY" = "yes"; then
27330 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
27331 echo "$as_me:$LINENO: checking for Xinerama" >&5
27332echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27333
27334ac_find_libraries=
27335for ac_dir in $SEARCH_LIB /usr/lib;
27336 do
27337 for ac_extension in a so sl dylib; do
27338 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27339 ac_find_libraries=$ac_dir
27340 break 2
27341 fi
27342 done
27343 done
27344
27345 if test "$ac_find_libraries" != "" ; then
27346
27347 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27348 result=$?
27349 if test $result = 0; then
27350 ac_path_to_link=""
27351 else
27352 ac_path_to_link=" -L$ac_find_libraries"
27353 fi
27354
27355 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27356 LDFLAGS="$LDFLAGS $ac_path_to_link"
27357 fi
27358 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27359 echo "$as_me:$LINENO: result: yes" >&5
27360echo "${ECHO_T}yes" >&6
27361
27362 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27363echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27364
27365ac_find_libraries=
27366for ac_dir in $SEARCH_LIB /usr/lib;
27367 do
27368 for ac_extension in a so sl dylib; do
27369 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27370 ac_find_libraries=$ac_dir
27371 break 2
27372 fi
27373 done
27374 done
27375
27376 if test "$ac_find_libraries" != "" ; then
27377 echo "$as_me:$LINENO: result: yes" >&5
27378echo "${ECHO_T}yes" >&6
27379
27380for ac_header in X11/extensions/xf86vmode.h
27381do
27382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27383echo "$as_me:$LINENO: checking for $ac_header" >&5
27384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27385if eval "test \"\${$as_ac_Header+set}\" = set"; then
27386 echo $ECHO_N "(cached) $ECHO_C" >&6
27387else
27388 cat >conftest.$ac_ext <<_ACEOF
27389/* confdefs.h. */
27390_ACEOF
27391cat confdefs.h >>conftest.$ac_ext
27392cat >>conftest.$ac_ext <<_ACEOF
27393/* end confdefs.h. */
27394
27395 #if HAVE_X11_XLIB_H
27396 #include <X11/Xlib.h>
27397 #endif
27398
27399
27400#include <$ac_header>
27401_ACEOF
27402rm -f conftest.$ac_objext
27403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27404 (eval $ac_compile) 2>conftest.er1
27405 ac_status=$?
27406 grep -v '^ *+' conftest.er1 >conftest.err
27407 rm -f conftest.er1
27408 cat conftest.err >&5
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); } &&
dcc1b6ad
VS
27411 { ac_try='test -z "$ac_c_werror_flag"
27412 || test ! -s conftest.err'
a848cd7e
SC
27413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27414 (eval $ac_try) 2>&5
27415 ac_status=$?
27416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); }; } &&
27418 { ac_try='test -s conftest.$ac_objext'
27419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27420 (eval $ac_try) 2>&5
27421 ac_status=$?
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); }; }; then
27424 eval "$as_ac_Header=yes"
27425else
27426 echo "$as_me: failed program was:" >&5
27427sed 's/^/| /' conftest.$ac_ext >&5
27428
27429eval "$as_ac_Header=no"
27430fi
27431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27432fi
27433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27435if test `eval echo '${'$as_ac_Header'}'` = yes; then
27436 cat >>confdefs.h <<_ACEOF
27437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27438_ACEOF
27439
27440 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27441
27442fi
27443
27444done
27445
27446 else
27447 echo "$as_me:$LINENO: result: no" >&5
27448echo "${ECHO_T}no" >&6
27449 fi
27450
27451 else
27452 echo "$as_me:$LINENO: result: no" >&5
27453echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27454 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27455echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27456 wxUSE_DISPLAY="no"
27457 fi
01cb68df
RG
27458 elif test "$wxUSE_MSW" = 1; then
27459
27460
27461for ac_header in multimon.h ddraw.h
27462do
27463as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27464if eval "test \"\${$as_ac_Header+set}\" = set"; then
27465 echo "$as_me:$LINENO: checking for $ac_header" >&5
27466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27467if eval "test \"\${$as_ac_Header+set}\" = set"; then
27468 echo $ECHO_N "(cached) $ECHO_C" >&6
27469fi
27470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27472else
27473 # Is the header compilable?
27474echo "$as_me:$LINENO: checking $ac_header usability" >&5
27475echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27476cat >conftest.$ac_ext <<_ACEOF
27477/* confdefs.h. */
27478_ACEOF
27479cat confdefs.h >>conftest.$ac_ext
27480cat >>conftest.$ac_ext <<_ACEOF
27481/* end confdefs.h. */
27482$ac_includes_default
27483#include <$ac_header>
27484_ACEOF
27485rm -f conftest.$ac_objext
27486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27487 (eval $ac_compile) 2>conftest.er1
27488 ac_status=$?
27489 grep -v '^ *+' conftest.er1 >conftest.err
27490 rm -f conftest.er1
27491 cat conftest.err >&5
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); } &&
dcc1b6ad
VS
27494 { ac_try='test -z "$ac_c_werror_flag"
27495 || test ! -s conftest.err'
01cb68df
RG
27496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27497 (eval $ac_try) 2>&5
27498 ac_status=$?
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); }; } &&
27501 { ac_try='test -s conftest.$ac_objext'
27502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27503 (eval $ac_try) 2>&5
27504 ac_status=$?
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); }; }; then
27507 ac_header_compiler=yes
27508else
27509 echo "$as_me: failed program was:" >&5
27510sed 's/^/| /' conftest.$ac_ext >&5
27511
27512ac_header_compiler=no
27513fi
27514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27515echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27516echo "${ECHO_T}$ac_header_compiler" >&6
27517
27518# Is the header present?
27519echo "$as_me:$LINENO: checking $ac_header presence" >&5
27520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27521cat >conftest.$ac_ext <<_ACEOF
27522/* confdefs.h. */
27523_ACEOF
27524cat confdefs.h >>conftest.$ac_ext
27525cat >>conftest.$ac_ext <<_ACEOF
27526/* end confdefs.h. */
27527#include <$ac_header>
27528_ACEOF
27529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27531 ac_status=$?
27532 grep -v '^ *+' conftest.er1 >conftest.err
27533 rm -f conftest.er1
27534 cat conftest.err >&5
27535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536 (exit $ac_status); } >/dev/null; then
27537 if test -s conftest.err; then
27538 ac_cpp_err=$ac_c_preproc_warn_flag
27539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27540 else
27541 ac_cpp_err=
27542 fi
27543else
27544 ac_cpp_err=yes
27545fi
27546if test -z "$ac_cpp_err"; then
27547 ac_header_preproc=yes
27548else
27549 echo "$as_me: failed program was:" >&5
27550sed 's/^/| /' conftest.$ac_ext >&5
27551
27552 ac_header_preproc=no
27553fi
27554rm -f conftest.err conftest.$ac_ext
27555echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27556echo "${ECHO_T}$ac_header_preproc" >&6
27557
27558# So? What about this header?
27559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27560 yes:no: )
27561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27562echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27564echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27565 ac_header_preproc=yes
27566 ;;
27567 no:yes:* )
27568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27569echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27571echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27573echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27575echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27579echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27580 (
27581 cat <<\_ASBOX
27582## ----------------------------------------- ##
27583## Report this to wx-dev@lists.wxwindows.org ##
27584## ----------------------------------------- ##
27585_ASBOX
27586 ) |
27587 sed "s/^/$as_me: WARNING: /" >&2
27588 ;;
27589esac
27590echo "$as_me:$LINENO: checking for $ac_header" >&5
27591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27592if eval "test \"\${$as_ac_Header+set}\" = set"; then
27593 echo $ECHO_N "(cached) $ECHO_C" >&6
27594else
27595 eval "$as_ac_Header=\$ac_header_preproc"
27596fi
27597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27599
27600fi
27601if test `eval echo '${'$as_ac_Header'}'` = yes; then
27602 cat >>confdefs.h <<_ACEOF
27603#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27604_ACEOF
27605
27606else
27607
27608 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27609 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27610echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27611
27612fi
27613
27614done
27615
a848cd7e
SC
27616 fi
27617fi
27618
27619
27620USE_OPENGL=0
27621if test "$wxUSE_OPENGL" = "yes"; then
27622 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27623 OPENGL_LIBS="-framework OpenGL -framework AGL"
27624 elif test "$wxUSE_MSW" = 1; then
27625 OPENGL_LIBS="-lopengl32 -lglu32"
27626 else
27627
27628
27629ac_find_includes=
27630for ac_dir in $SEARCH_INCLUDE /usr/include;
27631 do
27632 if test -f "$ac_dir/GL/gl.h"; then
27633 ac_find_includes=$ac_dir
27634 break
27635 fi
27636 done
27637
27638 if test "$ac_find_includes" != "" ; then
27639 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27640echo "${ECHO_T}found in $ac_find_includes" >&6
27641
27642 if test "x$ac_find_includes" = "x/usr/include"; then
27643 ac_path_to_include=""
27644 else
27645 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27646 result=$?
27647 if test $result = 0; then
27648 ac_path_to_include=""
27649 else
27650 ac_path_to_include=" -I$ac_find_includes"
27651 fi
27652 fi
27653
27654 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27655 fi
27656
27657 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27658 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27659echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27660if test "${ac_cv_header_GL_gl_h+set}" = set; then
27661 echo $ECHO_N "(cached) $ECHO_C" >&6
27662fi
27663echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27664echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27665else
27666 # Is the header compilable?
27667echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27668echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27669cat >conftest.$ac_ext <<_ACEOF
27670/* confdefs.h. */
27671_ACEOF
27672cat confdefs.h >>conftest.$ac_ext
27673cat >>conftest.$ac_ext <<_ACEOF
27674/* end confdefs.h. */
27675$ac_includes_default
27676#include <GL/gl.h>
27677_ACEOF
27678rm -f conftest.$ac_objext
27679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27680 (eval $ac_compile) 2>conftest.er1
27681 ac_status=$?
27682 grep -v '^ *+' conftest.er1 >conftest.err
27683 rm -f conftest.er1
27684 cat conftest.err >&5
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); } &&
dcc1b6ad
VS
27687 { ac_try='test -z "$ac_c_werror_flag"
27688 || test ! -s conftest.err'
a848cd7e
SC
27689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27690 (eval $ac_try) 2>&5
27691 ac_status=$?
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); }; } &&
27694 { ac_try='test -s conftest.$ac_objext'
27695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696 (eval $ac_try) 2>&5
27697 ac_status=$?
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; }; then
27700 ac_header_compiler=yes
27701else
27702 echo "$as_me: failed program was:" >&5
27703sed 's/^/| /' conftest.$ac_ext >&5
27704
27705ac_header_compiler=no
27706fi
27707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27708echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27709echo "${ECHO_T}$ac_header_compiler" >&6
27710
27711# Is the header present?
27712echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27713echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27714cat >conftest.$ac_ext <<_ACEOF
27715/* confdefs.h. */
27716_ACEOF
27717cat confdefs.h >>conftest.$ac_ext
27718cat >>conftest.$ac_ext <<_ACEOF
27719/* end confdefs.h. */
27720#include <GL/gl.h>
27721_ACEOF
27722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27724 ac_status=$?
27725 grep -v '^ *+' conftest.er1 >conftest.err
27726 rm -f conftest.er1
27727 cat conftest.err >&5
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); } >/dev/null; then
27730 if test -s conftest.err; then
27731 ac_cpp_err=$ac_c_preproc_warn_flag
27732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27733 else
27734 ac_cpp_err=
27735 fi
27736else
27737 ac_cpp_err=yes
27738fi
27739if test -z "$ac_cpp_err"; then
27740 ac_header_preproc=yes
27741else
27742 echo "$as_me: failed program was:" >&5
27743sed 's/^/| /' conftest.$ac_ext >&5
27744
27745 ac_header_preproc=no
27746fi
27747rm -f conftest.err conftest.$ac_ext
27748echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27749echo "${ECHO_T}$ac_header_preproc" >&6
27750
27751# So? What about this header?
27752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27753 yes:no: )
27754 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27755echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27756 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27757echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27758 ac_header_preproc=yes
27759 ;;
27760 no:yes:* )
27761 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27762echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
27763 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27764echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27765 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27766echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27767 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27768echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27769 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27770echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
27771 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27772echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
27773 (
27774 cat <<\_ASBOX
27775## ----------------------------------------- ##
27776## Report this to wx-dev@lists.wxwindows.org ##
27777## ----------------------------------------- ##
27778_ASBOX
27779 ) |
27780 sed "s/^/$as_me: WARNING: /" >&2
27781 ;;
27782esac
27783echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27784echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27785if test "${ac_cv_header_GL_gl_h+set}" = set; then
27786 echo $ECHO_N "(cached) $ECHO_C" >&6
27787else
27788 ac_cv_header_GL_gl_h=$ac_header_preproc
27789fi
27790echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27791echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27792
27793fi
27794if test $ac_cv_header_GL_gl_h = yes; then
27795
27796 found_gl=0
27797
27798 echo "$as_me:$LINENO: checking for -lGL" >&5
27799echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27800
27801ac_find_libraries=
27802for ac_dir in $SEARCH_LIB /usr/lib;
27803 do
27804 for ac_extension in a so sl dylib; do
27805 if test -f "$ac_dir/libGL.$ac_extension"; then
27806 ac_find_libraries=$ac_dir
27807 break 2
27808 fi
27809 done
27810 done
27811
27812 if test "$ac_find_libraries" != "" ; then
27813
27814 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27815 result=$?
27816 if test $result = 0; then
27817 ac_path_to_link=""
27818 else
27819 ac_path_to_link=" -L$ac_find_libraries"
27820 fi
27821
27822 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27823 LDFLAGS_GL="$ac_path_to_link"
27824 fi
27825
27826
27827ac_find_libraries=
27828for ac_dir in $SEARCH_LIB /usr/lib;
27829 do
27830 for ac_extension in a so sl dylib; do
27831 if test -f "$ac_dir/libGLU.$ac_extension"; then
27832 ac_find_libraries=$ac_dir
27833 break 2
27834 fi
27835 done
27836 done
27837
27838 if test "$ac_find_libraries" != "" ; then
27839
27840 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27841 result=$?
27842 if test $result = 0; then
27843 ac_path_to_link=""
27844 else
27845 ac_path_to_link=" -L$ac_find_libraries"
27846 fi
27847
27848 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27849 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27850 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27851 fi
27852
27853 found_gl=1
27854 OPENGL_LIBS="-lGL -lGLU"
27855 echo "$as_me:$LINENO: result: yes" >&5
27856echo "${ECHO_T}yes" >&6
27857 fi
27858 fi
27859
27860 if test "$found_gl" != 1; then
27861 echo "$as_me:$LINENO: result: no" >&5
27862echo "${ECHO_T}no" >&6
27863 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27864echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27865
27866ac_find_libraries=
27867for ac_dir in $SEARCH_LIB /usr/lib;
27868 do
27869 for ac_extension in a so sl dylib; do
27870 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27871 ac_find_libraries=$ac_dir
27872 break 2
27873 fi
27874 done
27875 done
27876
27877 if test "$ac_find_libraries" != "" ; then
27878
27879 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27880 result=$?
27881 if test $result = 0; then
27882 ac_path_to_link=""
27883 else
27884 ac_path_to_link=" -L$ac_find_libraries"
27885 fi
27886
27887 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27888 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27889 echo "$as_me:$LINENO: result: yes" >&5
27890echo "${ECHO_T}yes" >&6
27891 else
27892 echo "$as_me:$LINENO: result: no" >&5
27893echo "${ECHO_T}no" >&6
27894 fi
27895 fi
27896
27897fi
27898
27899
27900
27901 if test "x$OPENGL_LIBS" = "x"; then
27902 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27903echo "$as_me: error: OpenGL libraries not available" >&2;}
27904 { (exit 1); exit 1; }; }
27905 fi
27906 fi
27907
27908 if test "$wxUSE_OPENGL" = "yes"; then
27909 USE_OPENGL=1
27910 cat >>confdefs.h <<\_ACEOF
27911#define wxUSE_OPENGL 1
27912_ACEOF
27913
27914 cat >>confdefs.h <<\_ACEOF
27915#define wxUSE_GLCANVAS 1
27916_ACEOF
27917
27918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27919 fi
27920fi
27921
27922if test -z "$TOOLKIT_VPATH" ; then
27923 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27924fi
27925
27926if test -n "$TOOLKIT" ; then
27927 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27928fi
27929
27930UNICODE=0
27931lib_unicode_suffix=
27932if test "$wxUSE_UNICODE" = "yes"; then
27933 lib_unicode_suffix=u
27934 UNICODE=1
27935fi
27936
27937lib_debug_suffix=
27938DEBUG_FLAG=0
27939if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27940 lib_debug_suffix=d
27941 DEBUG_FLAG=1
27942fi
27943
27944DEBUG_INFO=0
27945if test "$wxUSE_DEBUG_INFO" = "yes"; then
27946 DEBUG_INFO=1
27947fi
27948
27949WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27950
27951TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27952TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27953
27954if test "$cross_compiling" = "yes"; then
27955 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27956 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
27957 HOST_SUFFIX="-${host_alias}"
27958fi
27959
27960WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27961WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27962WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27963WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27964
27965WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27966WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27967
27968WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27969WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27970WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27971WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27972
27973case "${host}" in
27974 *-*-cygwin* | *-*-mingw32* )
27975 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27976 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27977 ;;
27978
27979 *-*-darwin* )
27980
27981 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27982 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27983
27984 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27985 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27986 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27987 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27988
27989 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27990 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27991 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27992 fi
27993 ;;
27994esac
27995
27996WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27997WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27998
27999WXCONFIG_LIBS="-l${WX_LIBRARY}"
28000WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
28001
28002if test "$wxUSE_OPENGL" = "yes"; then
28003 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
28004 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
28005fi
28006
28007
28008
28009if test "$wxUSE_SHARED" = "yes"; then
28010 case "${host}" in
28011 *-pc-msdosdjgpp )
28012 wxUSE_SHARED=no
28013 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28014echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28015 ;;
28016 esac
28017fi
28018
28019SHARED=0
28020if test "$wxUSE_SHARED" = "yes"; then
28021 SHARED=1
28022
28023
28024 found_versioning=no
28025
28026
28027 if test $found_versioning = no ; then
28028 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28029echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28030if test "${wx_cv_version_script+set}" = set; then
28031 echo $ECHO_N "(cached) $ECHO_C" >&6
28032else
28033
28034 echo "VER_1 { *; };" >conftest.sym
28035 echo "int main() { return 0; }" >conftest.cpp
28036
28037 if { ac_try='
28038 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28039 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28041 (eval $ac_try) 2>&5
28042 ac_status=$?
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); }; } ; then
28045 if test -s conftest.stderr ; then
28046 wx_cv_version_script=no
28047 else
28048 wx_cv_version_script=yes
28049 fi
28050 else
28051 wx_cv_version_script=no
28052 fi
28053 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28054
28055fi
28056echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28057echo "${ECHO_T}$wx_cv_version_script" >&6
28058 if test $wx_cv_version_script = yes ; then
28059 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28060 fi
28061 fi
28062
28063
28064 case "${host}" in
28065 *-*-linux* | *-*-gnu* )
28066 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
28067 ;;
28068
28069 *-*-solaris2* )
28070 if test "$GCC" = yes ; then
28071 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28072
28073 saveLdflags="$LDFLAGS"
28074 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28075 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28076echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28077 cat >conftest.$ac_ext <<_ACEOF
28078/* confdefs.h. */
28079_ACEOF
28080cat confdefs.h >>conftest.$ac_ext
28081cat >>conftest.$ac_ext <<_ACEOF
28082/* end confdefs.h. */
28083
28084int
28085main ()
28086{
28087
28088 ;
28089 return 0;
28090}
28091_ACEOF
28092rm -f conftest.$ac_objext conftest$ac_exeext
28093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28094 (eval $ac_link) 2>conftest.er1
28095 ac_status=$?
28096 grep -v '^ *+' conftest.er1 >conftest.err
28097 rm -f conftest.er1
28098 cat conftest.err >&5
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); } &&
dcc1b6ad
VS
28101 { ac_try='test -z "$ac_c_werror_flag"
28102 || test ! -s conftest.err'
a848cd7e
SC
28103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104 (eval $ac_try) 2>&5
28105 ac_status=$?
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); }; } &&
28108 { ac_try='test -s conftest$ac_exeext'
28109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28110 (eval $ac_try) 2>&5
28111 ac_status=$?
28112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113 (exit $ac_status); }; }; then
28114
28115 echo "$as_me:$LINENO: result: yes" >&5
28116echo "${ECHO_T}yes" >&6
28117 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
28118
28119else
28120 echo "$as_me: failed program was:" >&5
28121sed 's/^/| /' conftest.$ac_ext >&5
28122
28123
28124 echo "$as_me:$LINENO: result: no" >&5
28125echo "${ECHO_T}no" >&6
28126 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28127echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28128 LDFLAGS="$saveLdflags -Wl,-R,/"
28129 cat >conftest.$ac_ext <<_ACEOF
28130/* confdefs.h. */
28131_ACEOF
28132cat confdefs.h >>conftest.$ac_ext
28133cat >>conftest.$ac_ext <<_ACEOF
28134/* end confdefs.h. */
28135
28136int
28137main ()
28138{
28139
28140 ;
28141 return 0;
28142}
28143_ACEOF
28144rm -f conftest.$ac_objext conftest$ac_exeext
28145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28146 (eval $ac_link) 2>conftest.er1
28147 ac_status=$?
28148 grep -v '^ *+' conftest.er1 >conftest.err
28149 rm -f conftest.er1
28150 cat conftest.err >&5
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); } &&
dcc1b6ad
VS
28153 { ac_try='test -z "$ac_c_werror_flag"
28154 || test ! -s conftest.err'
a848cd7e
SC
28155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28156 (eval $ac_try) 2>&5
28157 ac_status=$?
28158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); }; } &&
28160 { ac_try='test -s conftest$ac_exeext'
28161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28162 (eval $ac_try) 2>&5
28163 ac_status=$?
28164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165 (exit $ac_status); }; }; then
28166
28167 echo "$as_me:$LINENO: result: yes" >&5
28168echo "${ECHO_T}yes" >&6
28169 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28170else
28171 echo "$as_me: failed program was:" >&5
28172sed 's/^/| /' conftest.$ac_ext >&5
28173
28174
28175 echo "$as_me:$LINENO: result: no" >&5
28176echo "${ECHO_T}no" >&6
28177
28178fi
28179rm -f conftest.err conftest.$ac_objext \
28180 conftest$ac_exeext conftest.$ac_ext
28181
28182fi
28183rm -f conftest.err conftest.$ac_objext \
28184 conftest$ac_exeext conftest.$ac_ext
28185 LDFLAGS="$saveLdflags"
28186 else
28187 SHARED_LD="${CXX} -G -o"
28188 PIC_FLAG="-KPIC"
28189 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
28190 fi
28191 ;;
28192
28193 powerpc-*-darwin* )
28194 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28195 cat <<EOF >change-install-names
28196#!/bin/sh
28197libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28198inst_cmd="install_name_tool "
28199for i in \${libnames} ; do
28200 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28201done
28202\${inst_cmd} \${3}
28203EOF
28204 chmod +x change-install-names
28205 ;;
28206
28207 *-*-cygwin* | *-*-mingw32* )
28208 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28209 ;;
28210
28211 esac
28212
28213 if test "x$WX_TARGET_LIBRARY" = "x"; then
28214 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
28215 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
28216 fi
28217
28218 WX_TARGET_LIBRARY_TYPE="so"
28219 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
28220fi
28221
28222if test "$wxUSE_SHARED" = "no"; then
28223
28224 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
28225 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28226 fi
28227
28228 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
28229 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28230 fi
28231
28232 if test "$wxUSE_OPENGL" = "yes"; then
28233 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
28234 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
28235 else
28236 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
28237 fi
28238
28239 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
28240 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
28241
28242 WX_TARGET_LIBRARY_TYPE="a"
28243 INSTALL_LIBRARY='$(INSTALL_DATA)'
28244
28245 STATIC_FLAG="yes"
28246else
28247 STATIC_FLAG="no"
28248fi
28249
28250if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
28251 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
28252 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
28253 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
28254
28255 # Extract the first word of "Rez", so it can be a program name with args.
28256set dummy Rez; ac_word=$2
28257echo "$as_me:$LINENO: checking for $ac_word" >&5
28258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28259if test "${ac_cv_prog_RESCOMP+set}" = set; then
28260 echo $ECHO_N "(cached) $ECHO_C" >&6
28261else
28262 if test -n "$RESCOMP"; then
28263 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28264else
28265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28266for as_dir in $PATH
28267do
28268 IFS=$as_save_IFS
28269 test -z "$as_dir" && as_dir=.
28270 for ac_exec_ext in '' $ac_executable_extensions; do
28271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28272 ac_cv_prog_RESCOMP="Rez"
28273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28274 break 2
28275 fi
28276done
28277done
28278
28279 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28280fi
28281fi
28282RESCOMP=$ac_cv_prog_RESCOMP
28283if test -n "$RESCOMP"; then
28284 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28285echo "${ECHO_T}$RESCOMP" >&6
28286else
28287 echo "$as_me:$LINENO: result: no" >&5
28288echo "${ECHO_T}no" >&6
28289fi
28290
28291 # Extract the first word of "DeRez", so it can be a program name with args.
28292set dummy DeRez; ac_word=$2
28293echo "$as_me:$LINENO: checking for $ac_word" >&5
28294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28295if test "${ac_cv_prog_DEREZ+set}" = set; then
28296 echo $ECHO_N "(cached) $ECHO_C" >&6
28297else
28298 if test -n "$DEREZ"; then
28299 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28300else
28301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28302for as_dir in $PATH
28303do
28304 IFS=$as_save_IFS
28305 test -z "$as_dir" && as_dir=.
28306 for ac_exec_ext in '' $ac_executable_extensions; do
28307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28308 ac_cv_prog_DEREZ="DeRez"
28309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28310 break 2
28311 fi
28312done
28313done
28314
28315 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28316fi
28317fi
28318DEREZ=$ac_cv_prog_DEREZ
28319if test -n "$DEREZ"; then
28320 echo "$as_me:$LINENO: result: $DEREZ" >&5
28321echo "${ECHO_T}$DEREZ" >&6
28322else
28323 echo "$as_me:$LINENO: result: no" >&5
28324echo "${ECHO_T}no" >&6
28325fi
28326
28327 # Extract the first word of "SetFile", so it can be a program name with args.
28328set dummy SetFile; ac_word=$2
28329echo "$as_me:$LINENO: checking for $ac_word" >&5
28330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28331if test "${ac_cv_prog_SETFILE+set}" = set; then
28332 echo $ECHO_N "(cached) $ECHO_C" >&6
28333else
28334 if test -n "$SETFILE"; then
28335 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28336else
28337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28338for as_dir in $PATH
28339do
28340 IFS=$as_save_IFS
28341 test -z "$as_dir" && as_dir=.
28342 for ac_exec_ext in '' $ac_executable_extensions; do
28343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28344 ac_cv_prog_SETFILE="SetFile"
28345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28346 break 2
28347 fi
28348done
28349done
28350
28351 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28352fi
28353fi
28354SETFILE=$ac_cv_prog_SETFILE
28355if test -n "$SETFILE"; then
28356 echo "$as_me:$LINENO: result: $SETFILE" >&5
28357echo "${ECHO_T}$SETFILE" >&6
28358else
28359 echo "$as_me:$LINENO: result: no" >&5
28360echo "${ECHO_T}no" >&6
28361fi
28362
28363
28364 MACSETFILE="\$(SETFILE)"
28365
28366 if test "$wxUSE_MAC" = 1; then
28367 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28368
28369 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28370 else
28371 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28372 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28373 fi
28374else
28375 MACSETFILE="@#"
28376 MACRESWXCONFIG="#"
28377
28378 if test "$wxUSE_PM" = 1; then
28379 MACRESCOMP="emxbind -ep"
28380 else
28381 MACRESCOMP="@#"
28382 fi
28383fi
28384
28385
28386
28387echo "$as_me:$LINENO: checking for mode_t" >&5
28388echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28389if test "${ac_cv_type_mode_t+set}" = set; then
28390 echo $ECHO_N "(cached) $ECHO_C" >&6
28391else
28392 cat >conftest.$ac_ext <<_ACEOF
28393/* confdefs.h. */
28394_ACEOF
28395cat confdefs.h >>conftest.$ac_ext
28396cat >>conftest.$ac_ext <<_ACEOF
28397/* end confdefs.h. */
28398$ac_includes_default
28399int
28400main ()
28401{
28402if ((mode_t *) 0)
28403 return 0;
28404if (sizeof (mode_t))
28405 return 0;
28406 ;
28407 return 0;
28408}
28409_ACEOF
28410rm -f conftest.$ac_objext
28411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28412 (eval $ac_compile) 2>conftest.er1
28413 ac_status=$?
28414 grep -v '^ *+' conftest.er1 >conftest.err
28415 rm -f conftest.er1
28416 cat conftest.err >&5
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); } &&
dcc1b6ad
VS
28419 { ac_try='test -z "$ac_c_werror_flag"
28420 || test ! -s conftest.err'
a848cd7e
SC
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'
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_cv_type_mode_t=yes
28433else
28434 echo "$as_me: failed program was:" >&5
28435sed 's/^/| /' conftest.$ac_ext >&5
28436
28437ac_cv_type_mode_t=no
28438fi
28439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28440fi
28441echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28442echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28443if test $ac_cv_type_mode_t = yes; then
28444 :
28445else
28446
28447cat >>confdefs.h <<_ACEOF
28448#define mode_t int
28449_ACEOF
28450
28451fi
28452
28453echo "$as_me:$LINENO: checking for off_t" >&5
28454echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28455if test "${ac_cv_type_off_t+set}" = set; then
28456 echo $ECHO_N "(cached) $ECHO_C" >&6
28457else
28458 cat >conftest.$ac_ext <<_ACEOF
28459/* confdefs.h. */
28460_ACEOF
28461cat confdefs.h >>conftest.$ac_ext
28462cat >>conftest.$ac_ext <<_ACEOF
28463/* end confdefs.h. */
28464$ac_includes_default
28465int
28466main ()
28467{
28468if ((off_t *) 0)
28469 return 0;
28470if (sizeof (off_t))
28471 return 0;
28472 ;
28473 return 0;
28474}
28475_ACEOF
28476rm -f conftest.$ac_objext
28477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28478 (eval $ac_compile) 2>conftest.er1
28479 ac_status=$?
28480 grep -v '^ *+' conftest.er1 >conftest.err
28481 rm -f conftest.er1
28482 cat conftest.err >&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); } &&
dcc1b6ad
VS
28485 { ac_try='test -z "$ac_c_werror_flag"
28486 || test ! -s conftest.err'
a848cd7e
SC
28487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28488 (eval $ac_try) 2>&5
28489 ac_status=$?
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); }; } &&
28492 { ac_try='test -s conftest.$ac_objext'
28493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28495 ac_status=$?
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; }; then
28498 ac_cv_type_off_t=yes
28499else
28500 echo "$as_me: failed program was:" >&5
28501sed 's/^/| /' conftest.$ac_ext >&5
28502
28503ac_cv_type_off_t=no
28504fi
28505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28506fi
28507echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28508echo "${ECHO_T}$ac_cv_type_off_t" >&6
28509if test $ac_cv_type_off_t = yes; then
28510 :
28511else
28512
28513cat >>confdefs.h <<_ACEOF
28514#define off_t long
28515_ACEOF
28516
28517fi
28518
28519echo "$as_me:$LINENO: checking for pid_t" >&5
28520echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28521if test "${ac_cv_type_pid_t+set}" = set; then
28522 echo $ECHO_N "(cached) $ECHO_C" >&6
28523else
28524 cat >conftest.$ac_ext <<_ACEOF
28525/* confdefs.h. */
28526_ACEOF
28527cat confdefs.h >>conftest.$ac_ext
28528cat >>conftest.$ac_ext <<_ACEOF
28529/* end confdefs.h. */
28530$ac_includes_default
28531int
28532main ()
28533{
28534if ((pid_t *) 0)
28535 return 0;
28536if (sizeof (pid_t))
28537 return 0;
28538 ;
28539 return 0;
28540}
28541_ACEOF
28542rm -f conftest.$ac_objext
28543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28544 (eval $ac_compile) 2>conftest.er1
28545 ac_status=$?
28546 grep -v '^ *+' conftest.er1 >conftest.err
28547 rm -f conftest.er1
28548 cat conftest.err >&5
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); } &&
dcc1b6ad
VS
28551 { ac_try='test -z "$ac_c_werror_flag"
28552 || test ! -s conftest.err'
a848cd7e
SC
28553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28554 (eval $ac_try) 2>&5
28555 ac_status=$?
28556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557 (exit $ac_status); }; } &&
28558 { ac_try='test -s conftest.$ac_objext'
28559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28560 (eval $ac_try) 2>&5
28561 ac_status=$?
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); }; }; then
28564 ac_cv_type_pid_t=yes
28565else
28566 echo "$as_me: failed program was:" >&5
28567sed 's/^/| /' conftest.$ac_ext >&5
28568
28569ac_cv_type_pid_t=no
28570fi
28571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28572fi
28573echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28574echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28575if test $ac_cv_type_pid_t = yes; then
28576 :
28577else
28578
28579cat >>confdefs.h <<_ACEOF
28580#define pid_t int
28581_ACEOF
28582
28583fi
28584
28585echo "$as_me:$LINENO: checking for size_t" >&5
28586echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28587if test "${ac_cv_type_size_t+set}" = set; then
28588 echo $ECHO_N "(cached) $ECHO_C" >&6
28589else
28590 cat >conftest.$ac_ext <<_ACEOF
28591/* confdefs.h. */
28592_ACEOF
28593cat confdefs.h >>conftest.$ac_ext
28594cat >>conftest.$ac_ext <<_ACEOF
28595/* end confdefs.h. */
28596$ac_includes_default
28597int
28598main ()
28599{
28600if ((size_t *) 0)
28601 return 0;
28602if (sizeof (size_t))
28603 return 0;
28604 ;
28605 return 0;
28606}
28607_ACEOF
28608rm -f conftest.$ac_objext
28609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28610 (eval $ac_compile) 2>conftest.er1
28611 ac_status=$?
28612 grep -v '^ *+' conftest.er1 >conftest.err
28613 rm -f conftest.er1
28614 cat conftest.err >&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); } &&
dcc1b6ad
VS
28617 { ac_try='test -z "$ac_c_werror_flag"
28618 || test ! -s conftest.err'
a848cd7e
SC
28619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620 (eval $ac_try) 2>&5
28621 ac_status=$?
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); }; } &&
28624 { ac_try='test -s conftest.$ac_objext'
28625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28626 (eval $ac_try) 2>&5
28627 ac_status=$?
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; }; then
28630 ac_cv_type_size_t=yes
28631else
28632 echo "$as_me: failed program was:" >&5
28633sed 's/^/| /' conftest.$ac_ext >&5
28634
28635ac_cv_type_size_t=no
28636fi
28637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28638fi
28639echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28640echo "${ECHO_T}$ac_cv_type_size_t" >&6
28641if test $ac_cv_type_size_t = yes; then
28642 :
28643else
28644
28645cat >>confdefs.h <<_ACEOF
28646#define size_t unsigned
28647_ACEOF
28648
28649fi
28650
28651echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28652echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28653if test "${ac_cv_type_uid_t+set}" = set; then
28654 echo $ECHO_N "(cached) $ECHO_C" >&6
28655else
28656 cat >conftest.$ac_ext <<_ACEOF
28657/* confdefs.h. */
28658_ACEOF
28659cat confdefs.h >>conftest.$ac_ext
28660cat >>conftest.$ac_ext <<_ACEOF
28661/* end confdefs.h. */
28662#include <sys/types.h>
28663
28664_ACEOF
28665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28666 $EGREP "uid_t" >/dev/null 2>&1; then
28667 ac_cv_type_uid_t=yes
28668else
28669 ac_cv_type_uid_t=no
28670fi
28671rm -f conftest*
28672
28673fi
28674echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28675echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28676if test $ac_cv_type_uid_t = no; then
28677
28678cat >>confdefs.h <<\_ACEOF
28679#define uid_t int
28680_ACEOF
28681
28682
28683cat >>confdefs.h <<\_ACEOF
28684#define gid_t int
28685_ACEOF
28686
28687fi
28688
28689
28690
28691
28692ac_ext=cc
28693ac_cpp='$CXXCPP $CPPFLAGS'
28694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28697
28698echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28699echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28700if test "${wx_cv_size_t_is_uint+set}" = set; then
28701 echo $ECHO_N "(cached) $ECHO_C" >&6
28702else
28703
28704 cat >conftest.$ac_ext <<_ACEOF
28705/* confdefs.h. */
28706_ACEOF
28707cat confdefs.h >>conftest.$ac_ext
28708cat >>conftest.$ac_ext <<_ACEOF
28709/* end confdefs.h. */
28710#include <stddef.h>
28711int
28712main ()
28713{
28714
28715 return 0; }
28716
28717 struct Foo { void foo(size_t); void foo(unsigned int); };
28718
28719 int bar() {
28720
28721 ;
28722 return 0;
28723}
28724_ACEOF
28725rm -f conftest.$ac_objext
28726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28727 (eval $ac_compile) 2>conftest.er1
28728 ac_status=$?
28729 grep -v '^ *+' conftest.er1 >conftest.err
28730 rm -f conftest.er1
28731 cat conftest.err >&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } &&
dcc1b6ad
VS
28734 { ac_try='test -z "$ac_cxx_werror_flag"
28735 || test ! -s conftest.err'
a848cd7e
SC
28736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28737 (eval $ac_try) 2>&5
28738 ac_status=$?
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); }; } &&
28741 { ac_try='test -s conftest.$ac_objext'
28742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28743 (eval $ac_try) 2>&5
28744 ac_status=$?
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); }; }; then
28747 wx_cv_size_t_is_uint=no
28748else
28749 echo "$as_me: failed program was:" >&5
28750sed 's/^/| /' conftest.$ac_ext >&5
28751
28752wx_cv_size_t_is_uint=yes
28753
28754fi
28755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28756
28757
28758fi
28759echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28760echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28761
28762if test "$wx_cv_size_t_is_uint" = "yes"; then
28763 cat >>confdefs.h <<\_ACEOF
28764#define wxSIZE_T_IS_UINT 1
28765_ACEOF
28766
28767else
28768 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28769echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28770if test "${wx_cv_size_t_is_ulong+set}" = set; then
28771 echo $ECHO_N "(cached) $ECHO_C" >&6
28772else
28773 cat >conftest.$ac_ext <<_ACEOF
28774/* confdefs.h. */
28775_ACEOF
28776cat confdefs.h >>conftest.$ac_ext
28777cat >>conftest.$ac_ext <<_ACEOF
28778/* end confdefs.h. */
28779#include <stddef.h>
28780int
28781main ()
28782{
28783
28784 return 0; }
28785
28786 struct Foo { void foo(size_t); void foo(unsigned long); };
28787
28788 int bar() {
28789
28790 ;
28791 return 0;
28792}
28793_ACEOF
28794rm -f conftest.$ac_objext
28795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28796 (eval $ac_compile) 2>conftest.er1
28797 ac_status=$?
28798 grep -v '^ *+' conftest.er1 >conftest.err
28799 rm -f conftest.er1
28800 cat conftest.err >&5
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); } &&
dcc1b6ad
VS
28803 { ac_try='test -z "$ac_cxx_werror_flag"
28804 || test ! -s conftest.err'
a848cd7e
SC
28805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806 (eval $ac_try) 2>&5
28807 ac_status=$?
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); }; } &&
28810 { ac_try='test -s conftest.$ac_objext'
28811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28812 (eval $ac_try) 2>&5
28813 ac_status=$?
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); }; }; then
28816 wx_cv_size_t_is_ulong=no
28817else
28818 echo "$as_me: failed program was:" >&5
28819sed 's/^/| /' conftest.$ac_ext >&5
28820
28821wx_cv_size_t_is_ulong=yes
28822
28823fi
28824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28825
28826fi
28827echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28828echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28829
28830 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28831 cat >>confdefs.h <<\_ACEOF
28832#define wxSIZE_T_IS_ULONG 1
28833_ACEOF
28834
28835 fi
28836fi
28837
28838ac_ext=c
28839ac_cpp='$CPP $CPPFLAGS'
28840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28842ac_compiler_gnu=$ac_cv_c_compiler_gnu
28843
28844
28845
28846echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28847echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28848if test "${wx_cv_struct_pw_gecos+set}" = set; then
28849 echo $ECHO_N "(cached) $ECHO_C" >&6
28850else
28851
28852 cat >conftest.$ac_ext <<_ACEOF
28853/* confdefs.h. */
28854_ACEOF
28855cat confdefs.h >>conftest.$ac_ext
28856cat >>conftest.$ac_ext <<_ACEOF
28857/* end confdefs.h. */
28858#include <pwd.h>
28859int
28860main ()
28861{
28862
28863 char *p;
28864 struct passwd *pw;
28865 p = pw->pw_gecos;
28866
28867 ;
28868 return 0;
28869}
28870_ACEOF
28871rm -f conftest.$ac_objext
28872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28873 (eval $ac_compile) 2>conftest.er1
28874 ac_status=$?
28875 grep -v '^ *+' conftest.er1 >conftest.err
28876 rm -f conftest.er1
28877 cat conftest.err >&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); } &&
dcc1b6ad
VS
28880 { ac_try='test -z "$ac_c_werror_flag"
28881 || test ! -s conftest.err'
a848cd7e
SC
28882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28883 (eval $ac_try) 2>&5
28884 ac_status=$?
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); }; } &&
28887 { ac_try='test -s conftest.$ac_objext'
28888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28889 (eval $ac_try) 2>&5
28890 ac_status=$?
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); }; }; then
28893
28894 wx_cv_struct_pw_gecos=yes
28895
28896else
28897 echo "$as_me: failed program was:" >&5
28898sed 's/^/| /' conftest.$ac_ext >&5
28899
28900
28901 wx_cv_struct_pw_gecos=no
28902
28903
28904fi
28905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28906
28907
28908fi
28909echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28910echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28911
28912if test "$wx_cv_struct_pw_gecos" = "yes"; then
28913 cat >>confdefs.h <<\_ACEOF
28914#define HAVE_PW_GECOS 1
28915_ACEOF
28916
28917fi
28918
28919
28920if test "$wx_cv_sizeof_wchar_t" != "0"; then
28921 cat >>confdefs.h <<\_ACEOF
28922#define wxUSE_WCHAR_T 1
28923_ACEOF
28924
28925
28926 WCSLEN_FOUND=0
28927 WCHAR_LINK=
28928
28929for ac_func in wcslen
28930do
28931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28932echo "$as_me:$LINENO: checking for $ac_func" >&5
28933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28934if eval "test \"\${$as_ac_var+set}\" = set"; then
28935 echo $ECHO_N "(cached) $ECHO_C" >&6
28936else
28937 cat >conftest.$ac_ext <<_ACEOF
28938/* confdefs.h. */
28939_ACEOF
28940cat confdefs.h >>conftest.$ac_ext
28941cat >>conftest.$ac_ext <<_ACEOF
28942/* end confdefs.h. */
28943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28945#define $ac_func innocuous_$ac_func
28946
28947/* System header to define __stub macros and hopefully few prototypes,
28948 which can conflict with char $ac_func (); below.
28949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28950 <limits.h> exists even on freestanding compilers. */
28951
28952#ifdef __STDC__
28953# include <limits.h>
28954#else
28955# include <assert.h>
28956#endif
28957
28958#undef $ac_func
28959
28960/* Override any gcc2 internal prototype to avoid an error. */
28961#ifdef __cplusplus
28962extern "C"
28963{
28964#endif
28965/* We use char because int might match the return type of a gcc2
28966 builtin and then its argument prototype would still apply. */
28967char $ac_func ();
28968/* The GNU C library defines this for functions which it implements
28969 to always fail with ENOSYS. Some functions are actually named
28970 something starting with __ and the normal name is an alias. */
28971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28972choke me
28973#else
28974char (*f) () = $ac_func;
28975#endif
28976#ifdef __cplusplus
28977}
28978#endif
28979
28980int
28981main ()
28982{
28983return f != $ac_func;
28984 ;
28985 return 0;
28986}
28987_ACEOF
28988rm -f conftest.$ac_objext conftest$ac_exeext
28989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28990 (eval $ac_link) 2>conftest.er1
28991 ac_status=$?
28992 grep -v '^ *+' conftest.er1 >conftest.err
28993 rm -f conftest.er1
28994 cat conftest.err >&5
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); } &&
dcc1b6ad
VS
28997 { ac_try='test -z "$ac_c_werror_flag"
28998 || test ! -s conftest.err'
a848cd7e
SC
28999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29000 (eval $ac_try) 2>&5
29001 ac_status=$?
29002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); }; } &&
29004 { ac_try='test -s conftest$ac_exeext'
29005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29006 (eval $ac_try) 2>&5
29007 ac_status=$?
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); }; }; then
29010 eval "$as_ac_var=yes"
29011else
29012 echo "$as_me: failed program was:" >&5
29013sed 's/^/| /' conftest.$ac_ext >&5
29014
29015eval "$as_ac_var=no"
29016fi
29017rm -f conftest.err conftest.$ac_objext \
29018 conftest$ac_exeext conftest.$ac_ext
29019fi
29020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29021echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29022if test `eval echo '${'$as_ac_var'}'` = yes; then
29023 cat >>confdefs.h <<_ACEOF
29024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29025_ACEOF
29026 WCSLEN_FOUND=1
29027fi
29028done
29029
29030
29031 if test "$WCSLEN_FOUND" = 0; then
29032 if test "$TOOLKIT" = "MSW"; then
29033 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29034echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29035if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29036 echo $ECHO_N "(cached) $ECHO_C" >&6
29037else
29038 ac_check_lib_save_LIBS=$LIBS
29039LIBS="-lmsvcrt $LIBS"
29040cat >conftest.$ac_ext <<_ACEOF
29041/* confdefs.h. */
29042_ACEOF
29043cat confdefs.h >>conftest.$ac_ext
29044cat >>conftest.$ac_ext <<_ACEOF
29045/* end confdefs.h. */
29046
29047/* Override any gcc2 internal prototype to avoid an error. */
29048#ifdef __cplusplus
29049extern "C"
29050#endif
29051/* We use char because int might match the return type of a gcc2
29052 builtin and then its argument prototype would still apply. */
29053char wcslen ();
29054int
29055main ()
29056{
29057wcslen ();
29058 ;
29059 return 0;
29060}
29061_ACEOF
29062rm -f conftest.$ac_objext conftest$ac_exeext
29063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29064 (eval $ac_link) 2>conftest.er1
29065 ac_status=$?
29066 grep -v '^ *+' conftest.er1 >conftest.err
29067 rm -f conftest.er1
29068 cat conftest.err >&5
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); } &&
dcc1b6ad
VS
29071 { ac_try='test -z "$ac_c_werror_flag"
29072 || test ! -s conftest.err'
a848cd7e
SC
29073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29074 (eval $ac_try) 2>&5
29075 ac_status=$?
29076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29077 (exit $ac_status); }; } &&
29078 { ac_try='test -s conftest$ac_exeext'
29079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29080 (eval $ac_try) 2>&5
29081 ac_status=$?
29082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); }; }; then
29084 ac_cv_lib_msvcrt_wcslen=yes
29085else
29086 echo "$as_me: failed program was:" >&5
29087sed 's/^/| /' conftest.$ac_ext >&5
29088
29089ac_cv_lib_msvcrt_wcslen=no
29090fi
29091rm -f conftest.err conftest.$ac_objext \
29092 conftest$ac_exeext conftest.$ac_ext
29093LIBS=$ac_check_lib_save_LIBS
29094fi
29095echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29096echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29097if test $ac_cv_lib_msvcrt_wcslen = yes; then
29098 WCHAR_OK=1
29099fi
29100
29101 else
29102 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29103echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29104if test "${ac_cv_lib_w_wcslen+set}" = set; then
29105 echo $ECHO_N "(cached) $ECHO_C" >&6
29106else
29107 ac_check_lib_save_LIBS=$LIBS
29108LIBS="-lw $LIBS"
29109cat >conftest.$ac_ext <<_ACEOF
29110/* confdefs.h. */
29111_ACEOF
29112cat confdefs.h >>conftest.$ac_ext
29113cat >>conftest.$ac_ext <<_ACEOF
29114/* end confdefs.h. */
29115
29116/* Override any gcc2 internal prototype to avoid an error. */
29117#ifdef __cplusplus
29118extern "C"
29119#endif
29120/* We use char because int might match the return type of a gcc2
29121 builtin and then its argument prototype would still apply. */
29122char wcslen ();
29123int
29124main ()
29125{
29126wcslen ();
29127 ;
29128 return 0;
29129}
29130_ACEOF
29131rm -f conftest.$ac_objext conftest$ac_exeext
29132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29133 (eval $ac_link) 2>conftest.er1
29134 ac_status=$?
29135 grep -v '^ *+' conftest.er1 >conftest.err
29136 rm -f conftest.er1
29137 cat conftest.err >&5
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); } &&
dcc1b6ad
VS
29140 { ac_try='test -z "$ac_c_werror_flag"
29141 || test ! -s conftest.err'
a848cd7e
SC
29142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29143 (eval $ac_try) 2>&5
29144 ac_status=$?
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); }; } &&
29147 { ac_try='test -s conftest$ac_exeext'
29148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29149 (eval $ac_try) 2>&5
29150 ac_status=$?
29151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152 (exit $ac_status); }; }; then
29153 ac_cv_lib_w_wcslen=yes
29154else
29155 echo "$as_me: failed program was:" >&5
29156sed 's/^/| /' conftest.$ac_ext >&5
29157
29158ac_cv_lib_w_wcslen=no
29159fi
29160rm -f conftest.err conftest.$ac_objext \
29161 conftest$ac_exeext conftest.$ac_ext
29162LIBS=$ac_check_lib_save_LIBS
29163fi
29164echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29165echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29166if test $ac_cv_lib_w_wcslen = yes; then
29167
29168 WCHAR_LINK=" -lw"
29169 WCSLEN_FOUND=1
29170
29171fi
29172
29173 fi
29174 fi
29175
29176 if test "$WCSLEN_FOUND" = 1; then
29177 cat >>confdefs.h <<\_ACEOF
29178#define HAVE_WCSLEN 1
29179_ACEOF
29180
29181 fi
29182
473276a9
VS
29183 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29184 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29185 fi
29186
a848cd7e
SC
29187
29188for ac_func in wcsrtombs
29189do
29190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29191echo "$as_me:$LINENO: checking for $ac_func" >&5
29192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29193if eval "test \"\${$as_ac_var+set}\" = set"; then
29194 echo $ECHO_N "(cached) $ECHO_C" >&6
29195else
29196 cat >conftest.$ac_ext <<_ACEOF
29197/* confdefs.h. */
29198_ACEOF
29199cat confdefs.h >>conftest.$ac_ext
29200cat >>conftest.$ac_ext <<_ACEOF
29201/* end confdefs.h. */
29202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29204#define $ac_func innocuous_$ac_func
29205
29206/* System header to define __stub macros and hopefully few prototypes,
29207 which can conflict with char $ac_func (); below.
29208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29209 <limits.h> exists even on freestanding compilers. */
29210
29211#ifdef __STDC__
29212# include <limits.h>
29213#else
29214# include <assert.h>
29215#endif
29216
29217#undef $ac_func
29218
29219/* Override any gcc2 internal prototype to avoid an error. */
29220#ifdef __cplusplus
29221extern "C"
29222{
29223#endif
29224/* We use char because int might match the return type of a gcc2
29225 builtin and then its argument prototype would still apply. */
29226char $ac_func ();
29227/* The GNU C library defines this for functions which it implements
29228 to always fail with ENOSYS. Some functions are actually named
29229 something starting with __ and the normal name is an alias. */
29230#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29231choke me
29232#else
29233char (*f) () = $ac_func;
29234#endif
29235#ifdef __cplusplus
29236}
29237#endif
29238
29239int
29240main ()
29241{
29242return f != $ac_func;
29243 ;
29244 return 0;
29245}
29246_ACEOF
29247rm -f conftest.$ac_objext conftest$ac_exeext
29248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29249 (eval $ac_link) 2>conftest.er1
29250 ac_status=$?
29251 grep -v '^ *+' conftest.er1 >conftest.err
29252 rm -f conftest.er1
29253 cat conftest.err >&5
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); } &&
dcc1b6ad
VS
29256 { ac_try='test -z "$ac_c_werror_flag"
29257 || test ! -s conftest.err'
a848cd7e
SC
29258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259 (eval $ac_try) 2>&5
29260 ac_status=$?
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); }; } &&
29263 { ac_try='test -s conftest$ac_exeext'
29264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265 (eval $ac_try) 2>&5
29266 ac_status=$?
29267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); }; }; then
29269 eval "$as_ac_var=yes"
29270else
29271 echo "$as_me: failed program was:" >&5
29272sed 's/^/| /' conftest.$ac_ext >&5
29273
29274eval "$as_ac_var=no"
29275fi
29276rm -f conftest.err conftest.$ac_objext \
29277 conftest$ac_exeext conftest.$ac_ext
29278fi
29279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29280echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29281if test `eval echo '${'$as_ac_var'}'` = yes; then
29282 cat >>confdefs.h <<_ACEOF
29283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29284_ACEOF
29285
29286fi
29287done
29288
29289else
29290 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29291echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29292fi
29293
29294
29295
29296ac_ext=cc
29297ac_cpp='$CXXCPP $CPPFLAGS'
29298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29301
29302
29303
29304for ac_func in vsnprintf
29305do
29306as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29307echo "$as_me:$LINENO: checking for $ac_func" >&5
29308echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29309if eval "test \"\${$as_ac_var+set}\" = set"; then
29310 echo $ECHO_N "(cached) $ECHO_C" >&6
29311else
29312 cat >conftest.$ac_ext <<_ACEOF
29313/* confdefs.h. */
29314_ACEOF
29315cat confdefs.h >>conftest.$ac_ext
29316cat >>conftest.$ac_ext <<_ACEOF
29317/* end confdefs.h. */
29318/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29320#define $ac_func innocuous_$ac_func
29321
29322/* System header to define __stub macros and hopefully few prototypes,
29323 which can conflict with char $ac_func (); below.
29324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29325 <limits.h> exists even on freestanding compilers. */
29326
29327#ifdef __STDC__
29328# include <limits.h>
29329#else
29330# include <assert.h>
29331#endif
29332
29333#undef $ac_func
29334
29335/* Override any gcc2 internal prototype to avoid an error. */
29336#ifdef __cplusplus
29337extern "C"
29338{
29339#endif
29340/* We use char because int might match the return type of a gcc2
29341 builtin and then its argument prototype would still apply. */
29342char $ac_func ();
29343/* The GNU C library defines this for functions which it implements
29344 to always fail with ENOSYS. Some functions are actually named
29345 something starting with __ and the normal name is an alias. */
29346#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29347choke me
29348#else
29349char (*f) () = $ac_func;
29350#endif
29351#ifdef __cplusplus
29352}
29353#endif
29354
29355int
29356main ()
29357{
29358return f != $ac_func;
29359 ;
29360 return 0;
29361}
29362_ACEOF
29363rm -f conftest.$ac_objext conftest$ac_exeext
29364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29365 (eval $ac_link) 2>conftest.er1
29366 ac_status=$?
29367 grep -v '^ *+' conftest.er1 >conftest.err
29368 rm -f conftest.er1
29369 cat conftest.err >&5
29370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371 (exit $ac_status); } &&
dcc1b6ad
VS
29372 { ac_try='test -z "$ac_cxx_werror_flag"
29373 || test ! -s conftest.err'
a848cd7e
SC
29374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29375 (eval $ac_try) 2>&5
29376 ac_status=$?
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); }; } &&
29379 { ac_try='test -s conftest$ac_exeext'
29380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381 (eval $ac_try) 2>&5
29382 ac_status=$?
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; }; then
29385 eval "$as_ac_var=yes"
29386else
29387 echo "$as_me: failed program was:" >&5
29388sed 's/^/| /' conftest.$ac_ext >&5
29389
29390eval "$as_ac_var=no"
29391fi
29392rm -f conftest.err conftest.$ac_objext \
29393 conftest$ac_exeext conftest.$ac_ext
29394fi
29395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29396echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29397if test `eval echo '${'$as_ac_var'}'` = yes; then
29398 cat >>confdefs.h <<_ACEOF
29399#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29400_ACEOF
29401
29402fi
29403done
29404
29405
29406if test "$ac_cv_func_vsnprintf" = "yes"; then
29407 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29408echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29409if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29410 echo $ECHO_N "(cached) $ECHO_C" >&6
29411else
29412
29413 cat >conftest.$ac_ext <<_ACEOF
29414/* confdefs.h. */
29415_ACEOF
29416cat confdefs.h >>conftest.$ac_ext
29417cat >>conftest.$ac_ext <<_ACEOF
29418/* end confdefs.h. */
29419
29420 #include <stdio.h>
29421 #include <stdarg.h>
29422
29423int
29424main ()
29425{
29426
29427 char *buf;
29428 va_list ap;
29429 vsnprintf(buf, 10u, "%s", ap);
29430
29431 ;
29432 return 0;
29433}
29434_ACEOF
29435rm -f conftest.$ac_objext
29436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29437 (eval $ac_compile) 2>conftest.er1
29438 ac_status=$?
29439 grep -v '^ *+' conftest.er1 >conftest.err
29440 rm -f conftest.er1
29441 cat conftest.err >&5
29442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); } &&
dcc1b6ad
VS
29444 { ac_try='test -z "$ac_cxx_werror_flag"
29445 || test ! -s conftest.err'
a848cd7e
SC
29446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29447 (eval $ac_try) 2>&5
29448 ac_status=$?
29449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450 (exit $ac_status); }; } &&
29451 { ac_try='test -s conftest.$ac_objext'
29452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29453 (eval $ac_try) 2>&5
29454 ac_status=$?
29455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456 (exit $ac_status); }; }; then
29457 wx_cv_func_vsnprintf_decl=yes
29458else
29459 echo "$as_me: failed program was:" >&5
29460sed 's/^/| /' conftest.$ac_ext >&5
29461
29462wx_cv_func_vsnprintf_decl=no
29463
29464fi
29465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29466
29467
29468fi
29469echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29470echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29471
29472 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29473 cat >>confdefs.h <<\_ACEOF
29474#define HAVE_VSNPRINTF_DECL 1
29475_ACEOF
29476
29477 fi
29478fi
29479
29480if test "$wxUSE_UNICODE" = yes; then
29481
29482
29483
29484for ac_func in fputwc wprintf vswprintf
29485do
29486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29487echo "$as_me:$LINENO: checking for $ac_func" >&5
29488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29489if eval "test \"\${$as_ac_var+set}\" = set"; then
29490 echo $ECHO_N "(cached) $ECHO_C" >&6
29491else
29492 cat >conftest.$ac_ext <<_ACEOF
29493/* confdefs.h. */
29494_ACEOF
29495cat confdefs.h >>conftest.$ac_ext
29496cat >>conftest.$ac_ext <<_ACEOF
29497/* end confdefs.h. */
29498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29500#define $ac_func innocuous_$ac_func
29501
29502/* System header to define __stub macros and hopefully few prototypes,
29503 which can conflict with char $ac_func (); below.
29504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29505 <limits.h> exists even on freestanding compilers. */
29506
29507#ifdef __STDC__
29508# include <limits.h>
29509#else
29510# include <assert.h>
29511#endif
29512
29513#undef $ac_func
29514
29515/* Override any gcc2 internal prototype to avoid an error. */
29516#ifdef __cplusplus
29517extern "C"
29518{
29519#endif
29520/* We use char because int might match the return type of a gcc2
29521 builtin and then its argument prototype would still apply. */
29522char $ac_func ();
29523/* The GNU C library defines this for functions which it implements
29524 to always fail with ENOSYS. Some functions are actually named
29525 something starting with __ and the normal name is an alias. */
29526#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29527choke me
29528#else
29529char (*f) () = $ac_func;
29530#endif
29531#ifdef __cplusplus
29532}
29533#endif
29534
29535int
29536main ()
29537{
29538return f != $ac_func;
29539 ;
29540 return 0;
29541}
29542_ACEOF
29543rm -f conftest.$ac_objext conftest$ac_exeext
29544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29545 (eval $ac_link) 2>conftest.er1
29546 ac_status=$?
29547 grep -v '^ *+' conftest.er1 >conftest.err
29548 rm -f conftest.er1
29549 cat conftest.err >&5
29550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551 (exit $ac_status); } &&
dcc1b6ad
VS
29552 { ac_try='test -z "$ac_cxx_werror_flag"
29553 || test ! -s conftest.err'
a848cd7e
SC
29554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29555 (eval $ac_try) 2>&5
29556 ac_status=$?
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; } &&
29559 { ac_try='test -s conftest$ac_exeext'
29560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29561 (eval $ac_try) 2>&5
29562 ac_status=$?
29563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564 (exit $ac_status); }; }; then
29565 eval "$as_ac_var=yes"
29566else
29567 echo "$as_me: failed program was:" >&5
29568sed 's/^/| /' conftest.$ac_ext >&5
29569
29570eval "$as_ac_var=no"
29571fi
29572rm -f conftest.err conftest.$ac_objext \
29573 conftest$ac_exeext conftest.$ac_ext
29574fi
29575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29576echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29577if test `eval echo '${'$as_ac_var'}'` = yes; then
29578 cat >>confdefs.h <<_ACEOF
29579#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29580_ACEOF
29581
29582fi
29583done
29584
29585
29586 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29587echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29588 cat >conftest.$ac_ext <<_ACEOF
29589/* confdefs.h. */
29590_ACEOF
29591cat confdefs.h >>conftest.$ac_ext
29592cat >>conftest.$ac_ext <<_ACEOF
29593/* end confdefs.h. */
29594#include <wchar.h>
29595int
29596main ()
29597{
29598&_vsnwprintf;
29599 ;
29600 return 0;
29601}
29602_ACEOF
29603rm -f conftest.$ac_objext
29604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29605 (eval $ac_compile) 2>conftest.er1
29606 ac_status=$?
29607 grep -v '^ *+' conftest.er1 >conftest.err
29608 rm -f conftest.er1
29609 cat conftest.err >&5
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); } &&
dcc1b6ad
VS
29612 { ac_try='test -z "$ac_cxx_werror_flag"
29613 || test ! -s conftest.err'
a848cd7e
SC
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'
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 echo "$as_me:$LINENO: result: yes" >&5
29626echo "${ECHO_T}yes" >&6
29627 cat >>confdefs.h <<\_ACEOF
29628#define HAVE__VSNWPRINTF 1
29629_ACEOF
29630
29631else
29632 echo "$as_me: failed program was:" >&5
29633sed 's/^/| /' conftest.$ac_ext >&5
29634
29635echo "$as_me:$LINENO: result: no" >&5
29636echo "${ECHO_T}no" >&6
29637fi
29638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
29639fi
29640
29641ac_ext=c
29642ac_cpp='$CPP $CPPFLAGS'
29643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29645ac_compiler_gnu=$ac_cv_c_compiler_gnu
29646
29647
29648
29649
29650if test "$TOOLKIT" != "MSW"; then
29651
29652
29653
29654
29655ac_ext=cc
29656ac_cpp='$CXXCPP $CPPFLAGS'
29657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29660
29661
29662
29663
29664# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29665if test "${with_libiconv_prefix+set}" = set; then
29666 withval="$with_libiconv_prefix"
29667
29668 for dir in `echo "$withval" | tr : ' '`; do
29669 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29670 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29671 done
29672
29673fi;
29674
29675 echo "$as_me:$LINENO: checking for iconv" >&5
29676echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29677if test "${am_cv_func_iconv+set}" = set; then
29678 echo $ECHO_N "(cached) $ECHO_C" >&6
29679else
29680
29681 am_cv_func_iconv="no, consider installing GNU libiconv"
29682 am_cv_lib_iconv=no
29683 cat >conftest.$ac_ext <<_ACEOF
29684/* confdefs.h. */
29685_ACEOF
29686cat confdefs.h >>conftest.$ac_ext
29687cat >>conftest.$ac_ext <<_ACEOF
29688/* end confdefs.h. */
29689#include <stdlib.h>
29690#include <iconv.h>
29691int
29692main ()
29693{
29694iconv_t cd = iconv_open("","");
29695 iconv(cd,NULL,NULL,NULL,NULL);
29696 iconv_close(cd);
29697 ;
29698 return 0;
29699}
29700_ACEOF
29701rm -f conftest.$ac_objext conftest$ac_exeext
29702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29703 (eval $ac_link) 2>conftest.er1
29704 ac_status=$?
29705 grep -v '^ *+' conftest.er1 >conftest.err
29706 rm -f conftest.er1
29707 cat conftest.err >&5
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); } &&
dcc1b6ad
VS
29710 { ac_try='test -z "$ac_cxx_werror_flag"
29711 || test ! -s conftest.err'
a848cd7e
SC
29712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713 (eval $ac_try) 2>&5
29714 ac_status=$?
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); }; } &&
29717 { ac_try='test -s conftest$ac_exeext'
29718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29719 (eval $ac_try) 2>&5
29720 ac_status=$?
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); }; }; then
29723 am_cv_func_iconv=yes
29724else
29725 echo "$as_me: failed program was:" >&5
29726sed 's/^/| /' conftest.$ac_ext >&5
29727
29728fi
29729rm -f conftest.err conftest.$ac_objext \
29730 conftest$ac_exeext conftest.$ac_ext
29731 if test "$am_cv_func_iconv" != yes; then
29732 am_save_LIBS="$LIBS"
29733 LIBS="$LIBS -liconv"
29734 cat >conftest.$ac_ext <<_ACEOF
29735/* confdefs.h. */
29736_ACEOF
29737cat confdefs.h >>conftest.$ac_ext
29738cat >>conftest.$ac_ext <<_ACEOF
29739/* end confdefs.h. */
29740#include <stdlib.h>
29741#include <iconv.h>
29742int
29743main ()
29744{
29745iconv_t cd = iconv_open("","");
29746 iconv(cd,NULL,NULL,NULL,NULL);
29747 iconv_close(cd);
29748 ;
29749 return 0;
29750}
29751_ACEOF
29752rm -f conftest.$ac_objext conftest$ac_exeext
29753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29754 (eval $ac_link) 2>conftest.er1
29755 ac_status=$?
29756 grep -v '^ *+' conftest.er1 >conftest.err
29757 rm -f conftest.er1
29758 cat conftest.err >&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); } &&
dcc1b6ad
VS
29761 { ac_try='test -z "$ac_cxx_werror_flag"
29762 || test ! -s conftest.err'
a848cd7e
SC
29763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29764 (eval $ac_try) 2>&5
29765 ac_status=$?
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); }; } &&
29768 { ac_try='test -s conftest$ac_exeext'
29769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770 (eval $ac_try) 2>&5
29771 ac_status=$?
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; }; then
29774 am_cv_lib_iconv=yes
29775 am_cv_func_iconv=yes
29776else
29777 echo "$as_me: failed program was:" >&5
29778sed 's/^/| /' conftest.$ac_ext >&5
29779
29780fi
29781rm -f conftest.err conftest.$ac_objext \
29782 conftest$ac_exeext conftest.$ac_ext
29783 LIBS="$am_save_LIBS"
29784 fi
29785
29786fi
29787echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29788echo "${ECHO_T}$am_cv_func_iconv" >&6
29789 if test "$am_cv_func_iconv" = yes; then
29790
29791cat >>confdefs.h <<\_ACEOF
29792#define HAVE_ICONV 1
29793_ACEOF
29794
29795 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29796echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29797if test "${wx_cv_func_iconv_const+set}" = set; then
29798 echo $ECHO_N "(cached) $ECHO_C" >&6
29799else
29800 cat >conftest.$ac_ext <<_ACEOF
29801/* confdefs.h. */
29802_ACEOF
29803cat confdefs.h >>conftest.$ac_ext
29804cat >>conftest.$ac_ext <<_ACEOF
29805/* end confdefs.h. */
29806
29807#include <stdlib.h>
29808#include <iconv.h>
29809extern
29810#ifdef __cplusplus
29811"C"
29812#endif
29813#if defined(__STDC__) || defined(__cplusplus)
29814size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29815#else
29816size_t iconv();
29817#endif
29818
29819int
29820main ()
29821{
29822
29823 ;
29824 return 0;
29825}
29826_ACEOF
29827rm -f conftest.$ac_objext
29828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29829 (eval $ac_compile) 2>conftest.er1
29830 ac_status=$?
29831 grep -v '^ *+' conftest.er1 >conftest.err
29832 rm -f conftest.er1
29833 cat conftest.err >&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); } &&
dcc1b6ad
VS
29836 { ac_try='test -z "$ac_cxx_werror_flag"
29837 || test ! -s conftest.err'
a848cd7e
SC
29838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29839 (eval $ac_try) 2>&5
29840 ac_status=$?
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); }; } &&
29843 { ac_try='test -s conftest.$ac_objext'
29844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29845 (eval $ac_try) 2>&5
29846 ac_status=$?
29847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); }; }; then
29849 wx_cv_func_iconv_const="no"
29850else
29851 echo "$as_me: failed program was:" >&5
29852sed 's/^/| /' conftest.$ac_ext >&5
29853
29854wx_cv_func_iconv_const="yes"
29855
29856fi
29857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29858
29859fi
29860echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29861echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29862
29863 iconv_const=
29864 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29865 iconv_const="const"
29866 fi
29867
29868
29869cat >>confdefs.h <<_ACEOF
29870#define ICONV_CONST $iconv_const
29871_ACEOF
29872
29873 fi
29874 LIBICONV=
29875 if test "$am_cv_lib_iconv" = yes; then
29876 LIBICONV="-liconv"
29877 fi
29878
29879
29880LIBS="$LIBICONV $LIBS"
29881ac_ext=c
29882ac_cpp='$CPP $CPPFLAGS'
29883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29885ac_compiler_gnu=$ac_cv_c_compiler_gnu
29886
29887
29888if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29889
29890for ac_func in sigaction
29891do
29892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29893echo "$as_me:$LINENO: checking for $ac_func" >&5
29894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29895if eval "test \"\${$as_ac_var+set}\" = set"; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29897else
29898 cat >conftest.$ac_ext <<_ACEOF
29899/* confdefs.h. */
29900_ACEOF
29901cat confdefs.h >>conftest.$ac_ext
29902cat >>conftest.$ac_ext <<_ACEOF
29903/* end confdefs.h. */
29904/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29906#define $ac_func innocuous_$ac_func
29907
29908/* System header to define __stub macros and hopefully few prototypes,
29909 which can conflict with char $ac_func (); below.
29910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29911 <limits.h> exists even on freestanding compilers. */
29912
29913#ifdef __STDC__
29914# include <limits.h>
29915#else
29916# include <assert.h>
29917#endif
29918
29919#undef $ac_func
29920
29921/* Override any gcc2 internal prototype to avoid an error. */
29922#ifdef __cplusplus
29923extern "C"
29924{
29925#endif
29926/* We use char because int might match the return type of a gcc2
29927 builtin and then its argument prototype would still apply. */
29928char $ac_func ();
29929/* The GNU C library defines this for functions which it implements
29930 to always fail with ENOSYS. Some functions are actually named
29931 something starting with __ and the normal name is an alias. */
29932#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29933choke me
29934#else
29935char (*f) () = $ac_func;
29936#endif
29937#ifdef __cplusplus
29938}
29939#endif
29940
29941int
29942main ()
29943{
29944return f != $ac_func;
29945 ;
29946 return 0;
29947}
29948_ACEOF
29949rm -f conftest.$ac_objext conftest$ac_exeext
29950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29951 (eval $ac_link) 2>conftest.er1
29952 ac_status=$?
29953 grep -v '^ *+' conftest.er1 >conftest.err
29954 rm -f conftest.er1
29955 cat conftest.err >&5
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); } &&
dcc1b6ad
VS
29958 { ac_try='test -z "$ac_c_werror_flag"
29959 || test ! -s conftest.err'
a848cd7e
SC
29960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961 (eval $ac_try) 2>&5
29962 ac_status=$?
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; } &&
29965 { ac_try='test -s conftest$ac_exeext'
29966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29967 (eval $ac_try) 2>&5
29968 ac_status=$?
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; }; then
29971 eval "$as_ac_var=yes"
29972else
29973 echo "$as_me: failed program was:" >&5
29974sed 's/^/| /' conftest.$ac_ext >&5
29975
29976eval "$as_ac_var=no"
29977fi
29978rm -f conftest.err conftest.$ac_objext \
29979 conftest$ac_exeext conftest.$ac_ext
29980fi
29981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29982echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29983if test `eval echo '${'$as_ac_var'}'` = yes; then
29984 cat >>confdefs.h <<_ACEOF
29985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29986_ACEOF
29987
29988fi
29989done
29990
29991
29992 if test "$ac_cv_func_sigaction" = "no"; then
29993 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29994echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29995 wxUSE_ON_FATAL_EXCEPTION=no
29996 fi
29997
29998 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29999
30000
30001 ac_ext=cc
30002ac_cpp='$CXXCPP $CPPFLAGS'
30003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30006
30007
30008 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30009echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30010if test "${wx_cv_type_sa_handler+set}" = set; then
30011 echo $ECHO_N "(cached) $ECHO_C" >&6
30012else
30013
30014 cat >conftest.$ac_ext <<_ACEOF
30015/* confdefs.h. */
30016_ACEOF
30017cat confdefs.h >>conftest.$ac_ext
30018cat >>conftest.$ac_ext <<_ACEOF
30019/* end confdefs.h. */
30020#include <signal.h>
30021int
30022main ()
30023{
30024
30025 extern void testSigHandler(int);
30026
30027 struct sigaction sa;
30028 sa.sa_handler = testSigHandler;
30029
30030 ;
30031 return 0;
30032}
30033_ACEOF
30034rm -f conftest.$ac_objext
30035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30036 (eval $ac_compile) 2>conftest.er1
30037 ac_status=$?
30038 grep -v '^ *+' conftest.er1 >conftest.err
30039 rm -f conftest.er1
30040 cat conftest.err >&5
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); } &&
dcc1b6ad
VS
30043 { ac_try='test -z "$ac_cxx_werror_flag"
30044 || test ! -s conftest.err'
a848cd7e
SC
30045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30046 (eval $ac_try) 2>&5
30047 ac_status=$?
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); }; } &&
30050 { ac_try='test -s conftest.$ac_objext'
30051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30052 (eval $ac_try) 2>&5
30053 ac_status=$?
30054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055 (exit $ac_status); }; }; then
30056
30057 wx_cv_type_sa_handler=int
30058
30059else
30060 echo "$as_me: failed program was:" >&5
30061sed 's/^/| /' conftest.$ac_ext >&5
30062
30063
30064 wx_cv_type_sa_handler=void
30065
30066fi
30067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30068
30069fi
30070echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30071echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30072
30073 ac_ext=c
30074ac_cpp='$CPP $CPPFLAGS'
30075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30077ac_compiler_gnu=$ac_cv_c_compiler_gnu
30078
30079
30080 cat >>confdefs.h <<_ACEOF
30081#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30082_ACEOF
30083
30084 fi
30085fi
30086
30087
30088
30089for ac_func in mkstemp mktemp
30090do
30091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30092echo "$as_me:$LINENO: checking for $ac_func" >&5
30093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30094if eval "test \"\${$as_ac_var+set}\" = set"; then
30095 echo $ECHO_N "(cached) $ECHO_C" >&6
30096else
30097 cat >conftest.$ac_ext <<_ACEOF
30098/* confdefs.h. */
30099_ACEOF
30100cat confdefs.h >>conftest.$ac_ext
30101cat >>conftest.$ac_ext <<_ACEOF
30102/* end confdefs.h. */
30103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30105#define $ac_func innocuous_$ac_func
30106
30107/* System header to define __stub macros and hopefully few prototypes,
30108 which can conflict with char $ac_func (); below.
30109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30110 <limits.h> exists even on freestanding compilers. */
30111
30112#ifdef __STDC__
30113# include <limits.h>
30114#else
30115# include <assert.h>
30116#endif
30117
30118#undef $ac_func
30119
30120/* Override any gcc2 internal prototype to avoid an error. */
30121#ifdef __cplusplus
30122extern "C"
30123{
30124#endif
30125/* We use char because int might match the return type of a gcc2
30126 builtin and then its argument prototype would still apply. */
30127char $ac_func ();
30128/* The GNU C library defines this for functions which it implements
30129 to always fail with ENOSYS. Some functions are actually named
30130 something starting with __ and the normal name is an alias. */
30131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30132choke me
30133#else
30134char (*f) () = $ac_func;
30135#endif
30136#ifdef __cplusplus
30137}
30138#endif
30139
30140int
30141main ()
30142{
30143return f != $ac_func;
30144 ;
30145 return 0;
30146}
30147_ACEOF
30148rm -f conftest.$ac_objext conftest$ac_exeext
30149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30150 (eval $ac_link) 2>conftest.er1
30151 ac_status=$?
30152 grep -v '^ *+' conftest.er1 >conftest.err
30153 rm -f conftest.er1
30154 cat conftest.err >&5
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); } &&
dcc1b6ad
VS
30157 { ac_try='test -z "$ac_c_werror_flag"
30158 || test ! -s conftest.err'
a848cd7e
SC
30159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30160 (eval $ac_try) 2>&5
30161 ac_status=$?
30162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163 (exit $ac_status); }; } &&
30164 { ac_try='test -s conftest$ac_exeext'
30165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30166 (eval $ac_try) 2>&5
30167 ac_status=$?
30168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169 (exit $ac_status); }; }; then
30170 eval "$as_ac_var=yes"
30171else
30172 echo "$as_me: failed program was:" >&5
30173sed 's/^/| /' conftest.$ac_ext >&5
30174
30175eval "$as_ac_var=no"
30176fi
30177rm -f conftest.err conftest.$ac_objext \
30178 conftest$ac_exeext conftest.$ac_ext
30179fi
30180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30181echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30182if test `eval echo '${'$as_ac_var'}'` = yes; then
30183 cat >>confdefs.h <<_ACEOF
30184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30185_ACEOF
30186 break
30187fi
30188done
30189
30190
30191echo "$as_me:$LINENO: checking for statfs" >&5
30192echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30193if test "${wx_cv_func_statfs+set}" = set; then
30194 echo $ECHO_N "(cached) $ECHO_C" >&6
30195else
30196 cat >conftest.$ac_ext <<_ACEOF
30197/* confdefs.h. */
30198_ACEOF
30199cat confdefs.h >>conftest.$ac_ext
30200cat >>conftest.$ac_ext <<_ACEOF
30201/* end confdefs.h. */
30202
30203 #if defined(__BSD__)
30204 #include <sys/param.h>
30205 #include <sys/mount.h>
30206 #else
30207 #include <sys/vfs.h>
30208 #endif
30209
30210int
30211main ()
30212{
30213
30214 long l;
30215 struct statfs fs;
30216 statfs("/", &fs);
30217 l = fs.f_bsize;
30218 l += fs.f_blocks;
30219 l += fs.f_bavail;
30220
30221 ;
30222 return 0;
30223}
30224_ACEOF
30225rm -f conftest.$ac_objext
30226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30227 (eval $ac_compile) 2>conftest.er1
30228 ac_status=$?
30229 grep -v '^ *+' conftest.er1 >conftest.err
30230 rm -f conftest.er1
30231 cat conftest.err >&5
30232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233 (exit $ac_status); } &&
dcc1b6ad
VS
30234 { ac_try='test -z "$ac_c_werror_flag"
30235 || test ! -s conftest.err'
a848cd7e
SC
30236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30237 (eval $ac_try) 2>&5
30238 ac_status=$?
30239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240 (exit $ac_status); }; } &&
30241 { ac_try='test -s conftest.$ac_objext'
30242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30243 (eval $ac_try) 2>&5
30244 ac_status=$?
30245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246 (exit $ac_status); }; }; then
30247
30248 wx_cv_func_statfs=yes
30249
30250else
30251 echo "$as_me: failed program was:" >&5
30252sed 's/^/| /' conftest.$ac_ext >&5
30253
30254
30255 wx_cv_func_statfs=no
30256
30257
30258fi
30259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30260
30261fi
30262echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30263echo "${ECHO_T}$wx_cv_func_statfs" >&6
30264
30265if test "$wx_cv_func_statfs" = "yes"; then
30266 wx_cv_type_statvfs_t="struct statfs"
30267 cat >>confdefs.h <<\_ACEOF
30268#define HAVE_STATFS 1
30269_ACEOF
30270
30271else
30272 echo "$as_me:$LINENO: checking for statvfs" >&5
30273echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30274if test "${wx_cv_func_statvfs+set}" = set; then
30275 echo $ECHO_N "(cached) $ECHO_C" >&6
30276else
30277 cat >conftest.$ac_ext <<_ACEOF
30278/* confdefs.h. */
30279_ACEOF
30280cat confdefs.h >>conftest.$ac_ext
30281cat >>conftest.$ac_ext <<_ACEOF
30282/* end confdefs.h. */
30283
30284 #include <stddef.h>
30285 #include <sys/statvfs.h>
30286
30287int
30288main ()
30289{
30290
30291 statvfs("/", NULL);
30292
30293 ;
30294 return 0;
30295}
30296_ACEOF
30297rm -f conftest.$ac_objext
30298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30299 (eval $ac_compile) 2>conftest.er1
30300 ac_status=$?
30301 grep -v '^ *+' conftest.er1 >conftest.err
30302 rm -f conftest.er1
30303 cat conftest.err >&5
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); } &&
dcc1b6ad
VS
30306 { ac_try='test -z "$ac_c_werror_flag"
30307 || test ! -s conftest.err'
a848cd7e
SC
30308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30309 (eval $ac_try) 2>&5
30310 ac_status=$?
30311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30312 (exit $ac_status); }; } &&
30313 { ac_try='test -s conftest.$ac_objext'
30314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30315 (eval $ac_try) 2>&5
30316 ac_status=$?
30317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318 (exit $ac_status); }; }; then
30319 wx_cv_func_statvfs=yes
30320else
30321 echo "$as_me: failed program was:" >&5
30322sed 's/^/| /' conftest.$ac_ext >&5
30323
30324wx_cv_func_statvfs=no
30325
30326fi
30327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30328
30329fi
30330echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30331echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30332
30333 if test "$wx_cv_func_statvfs" = "yes"; then
30334
30335
30336 ac_ext=cc
30337ac_cpp='$CXXCPP $CPPFLAGS'
30338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30341
30342
30343 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30344echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30345if test "${wx_cv_type_statvfs_t+set}" = set; then
30346 echo $ECHO_N "(cached) $ECHO_C" >&6
30347else
30348 cat >conftest.$ac_ext <<_ACEOF
30349/* confdefs.h. */
30350_ACEOF
30351cat confdefs.h >>conftest.$ac_ext
30352cat >>conftest.$ac_ext <<_ACEOF
30353/* end confdefs.h. */
30354
30355 #include <sys/statvfs.h>
30356
30357int
30358main ()
30359{
30360
30361 long l;
30362 statvfs_t fs;
30363 statvfs("/", &fs);
30364 l = fs.f_bsize;
30365 l += fs.f_blocks;
30366 l += fs.f_bavail;
30367
30368 ;
30369 return 0;
30370}
30371_ACEOF
30372rm -f conftest.$ac_objext
30373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30374 (eval $ac_compile) 2>conftest.er1
30375 ac_status=$?
30376 grep -v '^ *+' conftest.er1 >conftest.err
30377 rm -f conftest.er1
30378 cat conftest.err >&5
30379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380 (exit $ac_status); } &&
dcc1b6ad
VS
30381 { ac_try='test -z "$ac_cxx_werror_flag"
30382 || test ! -s conftest.err'
a848cd7e
SC
30383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30384 (eval $ac_try) 2>&5
30385 ac_status=$?
30386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387 (exit $ac_status); }; } &&
30388 { ac_try='test -s conftest.$ac_objext'
30389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30390 (eval $ac_try) 2>&5
30391 ac_status=$?
30392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393 (exit $ac_status); }; }; then
30394 wx_cv_type_statvfs_t=statvfs_t
30395else
30396 echo "$as_me: failed program was:" >&5
30397sed 's/^/| /' conftest.$ac_ext >&5
30398
30399
30400 cat >conftest.$ac_ext <<_ACEOF
30401/* confdefs.h. */
30402_ACEOF
30403cat confdefs.h >>conftest.$ac_ext
30404cat >>conftest.$ac_ext <<_ACEOF
30405/* end confdefs.h. */
30406
30407 #include <sys/statvfs.h>
30408
30409int
30410main ()
30411{
30412
30413 long l;
30414 struct statvfs fs;
30415 statvfs("/", &fs);
30416 l = fs.f_bsize;
30417 l += fs.f_blocks;
30418 l += fs.f_bavail;
30419
30420 ;
30421 return 0;
30422}
30423_ACEOF
30424rm -f conftest.$ac_objext
30425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30426 (eval $ac_compile) 2>conftest.er1
30427 ac_status=$?
30428 grep -v '^ *+' conftest.er1 >conftest.err
30429 rm -f conftest.er1
30430 cat conftest.err >&5
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); } &&
dcc1b6ad
VS
30433 { ac_try='test -z "$ac_cxx_werror_flag"
30434 || test ! -s conftest.err'
a848cd7e
SC
30435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436 (eval $ac_try) 2>&5
30437 ac_status=$?
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; } &&
30440 { ac_try='test -s conftest.$ac_objext'
30441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30442 (eval $ac_try) 2>&5
30443 ac_status=$?
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; }; then
30446 wx_cv_type_statvfs_t="struct statvfs"
30447else
30448 echo "$as_me: failed program was:" >&5
30449sed 's/^/| /' conftest.$ac_ext >&5
30450
30451wx_cv_type_statvfs_t="unknown"
30452
30453fi
30454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30455
30456
30457fi
30458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30459
30460fi
30461echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30462echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30463
30464 ac_ext=c
30465ac_cpp='$CPP $CPPFLAGS'
30466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30468ac_compiler_gnu=$ac_cv_c_compiler_gnu
30469
30470
30471 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30472 cat >>confdefs.h <<\_ACEOF
30473#define HAVE_STATVFS 1
30474_ACEOF
30475
30476 fi
30477 else
30478 wx_cv_type_statvfs_t="unknown"
30479 fi
30480fi
30481
30482if test "$wx_cv_type_statvfs_t" != "unknown"; then
30483 cat >>confdefs.h <<_ACEOF
30484#define WX_STATFS_T $wx_cv_type_statvfs_t
30485_ACEOF
30486
30487else
30488 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30489echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30490fi
30491
30492if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30493
30494
30495for ac_func in fcntl flock
30496do
30497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30498echo "$as_me:$LINENO: checking for $ac_func" >&5
30499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30500if eval "test \"\${$as_ac_var+set}\" = set"; then
30501 echo $ECHO_N "(cached) $ECHO_C" >&6
30502else
30503 cat >conftest.$ac_ext <<_ACEOF
30504/* confdefs.h. */
30505_ACEOF
30506cat confdefs.h >>conftest.$ac_ext
30507cat >>conftest.$ac_ext <<_ACEOF
30508/* end confdefs.h. */
30509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30511#define $ac_func innocuous_$ac_func
30512
30513/* System header to define __stub macros and hopefully few prototypes,
30514 which can conflict with char $ac_func (); below.
30515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30516 <limits.h> exists even on freestanding compilers. */
30517
30518#ifdef __STDC__
30519# include <limits.h>
30520#else
30521# include <assert.h>
30522#endif
30523
30524#undef $ac_func
30525
30526/* Override any gcc2 internal prototype to avoid an error. */
30527#ifdef __cplusplus
30528extern "C"
30529{
30530#endif
30531/* We use char because int might match the return type of a gcc2
30532 builtin and then its argument prototype would still apply. */
30533char $ac_func ();
30534/* The GNU C library defines this for functions which it implements
30535 to always fail with ENOSYS. Some functions are actually named
30536 something starting with __ and the normal name is an alias. */
30537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30538choke me
30539#else
30540char (*f) () = $ac_func;
30541#endif
30542#ifdef __cplusplus
30543}
30544#endif
30545
30546int
30547main ()
30548{
30549return f != $ac_func;
30550 ;
30551 return 0;
30552}
30553_ACEOF
30554rm -f conftest.$ac_objext conftest$ac_exeext
30555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30556 (eval $ac_link) 2>conftest.er1
30557 ac_status=$?
30558 grep -v '^ *+' conftest.er1 >conftest.err
30559 rm -f conftest.er1
30560 cat conftest.err >&5
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); } &&
dcc1b6ad
VS
30563 { ac_try='test -z "$ac_c_werror_flag"
30564 || test ! -s conftest.err'
a848cd7e
SC
30565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30566 (eval $ac_try) 2>&5
30567 ac_status=$?
30568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569 (exit $ac_status); }; } &&
30570 { ac_try='test -s conftest$ac_exeext'
30571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30572 (eval $ac_try) 2>&5
30573 ac_status=$?
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); }; }; then
30576 eval "$as_ac_var=yes"
30577else
30578 echo "$as_me: failed program was:" >&5
30579sed 's/^/| /' conftest.$ac_ext >&5
30580
30581eval "$as_ac_var=no"
30582fi
30583rm -f conftest.err conftest.$ac_objext \
30584 conftest$ac_exeext conftest.$ac_ext
30585fi
30586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30587echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30588if test `eval echo '${'$as_ac_var'}'` = yes; then
30589 cat >>confdefs.h <<_ACEOF
30590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30591_ACEOF
30592 break
30593fi
30594done
30595
30596
30597 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30598 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30599echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30600 wxUSE_SNGLINST_CHECKER=no
30601 fi
30602fi
30603
30604
30605for ac_func in timegm
30606do
30607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30608echo "$as_me:$LINENO: checking for $ac_func" >&5
30609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30610if eval "test \"\${$as_ac_var+set}\" = set"; then
30611 echo $ECHO_N "(cached) $ECHO_C" >&6
30612else
30613 cat >conftest.$ac_ext <<_ACEOF
30614/* confdefs.h. */
30615_ACEOF
30616cat confdefs.h >>conftest.$ac_ext
30617cat >>conftest.$ac_ext <<_ACEOF
30618/* end confdefs.h. */
30619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30621#define $ac_func innocuous_$ac_func
30622
30623/* System header to define __stub macros and hopefully few prototypes,
30624 which can conflict with char $ac_func (); below.
30625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30626 <limits.h> exists even on freestanding compilers. */
30627
30628#ifdef __STDC__
30629# include <limits.h>
30630#else
30631# include <assert.h>
30632#endif
30633
30634#undef $ac_func
30635
30636/* Override any gcc2 internal prototype to avoid an error. */
30637#ifdef __cplusplus
30638extern "C"
30639{
30640#endif
30641/* We use char because int might match the return type of a gcc2
30642 builtin and then its argument prototype would still apply. */
30643char $ac_func ();
30644/* The GNU C library defines this for functions which it implements
30645 to always fail with ENOSYS. Some functions are actually named
30646 something starting with __ and the normal name is an alias. */
30647#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30648choke me
30649#else
30650char (*f) () = $ac_func;
30651#endif
30652#ifdef __cplusplus
30653}
30654#endif
30655
30656int
30657main ()
30658{
30659return f != $ac_func;
30660 ;
30661 return 0;
30662}
30663_ACEOF
30664rm -f conftest.$ac_objext conftest$ac_exeext
30665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30666 (eval $ac_link) 2>conftest.er1
30667 ac_status=$?
30668 grep -v '^ *+' conftest.er1 >conftest.err
30669 rm -f conftest.er1
30670 cat conftest.err >&5
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); } &&
dcc1b6ad
VS
30673 { ac_try='test -z "$ac_c_werror_flag"
30674 || test ! -s conftest.err'
a848cd7e
SC
30675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30676 (eval $ac_try) 2>&5
30677 ac_status=$?
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); }; } &&
30680 { ac_try='test -s conftest$ac_exeext'
30681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30682 (eval $ac_try) 2>&5
30683 ac_status=$?
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); }; }; then
30686 eval "$as_ac_var=yes"
30687else
30688 echo "$as_me: failed program was:" >&5
30689sed 's/^/| /' conftest.$ac_ext >&5
30690
30691eval "$as_ac_var=no"
30692fi
30693rm -f conftest.err conftest.$ac_objext \
30694 conftest$ac_exeext conftest.$ac_ext
30695fi
30696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30697echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30698if test `eval echo '${'$as_ac_var'}'` = yes; then
30699 cat >>confdefs.h <<_ACEOF
30700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30701_ACEOF
30702
30703fi
30704done
30705
30706
30707
30708
30709for ac_func in putenv setenv
30710do
30711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30712echo "$as_me:$LINENO: checking for $ac_func" >&5
30713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30714if eval "test \"\${$as_ac_var+set}\" = set"; then
30715 echo $ECHO_N "(cached) $ECHO_C" >&6
30716else
30717 cat >conftest.$ac_ext <<_ACEOF
30718/* confdefs.h. */
30719_ACEOF
30720cat confdefs.h >>conftest.$ac_ext
30721cat >>conftest.$ac_ext <<_ACEOF
30722/* end confdefs.h. */
30723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30725#define $ac_func innocuous_$ac_func
30726
30727/* System header to define __stub macros and hopefully few prototypes,
30728 which can conflict with char $ac_func (); below.
30729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30730 <limits.h> exists even on freestanding compilers. */
30731
30732#ifdef __STDC__
30733# include <limits.h>
30734#else
30735# include <assert.h>
30736#endif
30737
30738#undef $ac_func
30739
30740/* Override any gcc2 internal prototype to avoid an error. */
30741#ifdef __cplusplus
30742extern "C"
30743{
30744#endif
30745/* We use char because int might match the return type of a gcc2
30746 builtin and then its argument prototype would still apply. */
30747char $ac_func ();
30748/* The GNU C library defines this for functions which it implements
30749 to always fail with ENOSYS. Some functions are actually named
30750 something starting with __ and the normal name is an alias. */
30751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30752choke me
30753#else
30754char (*f) () = $ac_func;
30755#endif
30756#ifdef __cplusplus
30757}
30758#endif
30759
30760int
30761main ()
30762{
30763return f != $ac_func;
30764 ;
30765 return 0;
30766}
30767_ACEOF
30768rm -f conftest.$ac_objext conftest$ac_exeext
30769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30770 (eval $ac_link) 2>conftest.er1
30771 ac_status=$?
30772 grep -v '^ *+' conftest.er1 >conftest.err
30773 rm -f conftest.er1
30774 cat conftest.err >&5
30775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776 (exit $ac_status); } &&
dcc1b6ad
VS
30777 { ac_try='test -z "$ac_c_werror_flag"
30778 || test ! -s conftest.err'
a848cd7e
SC
30779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30780 (eval $ac_try) 2>&5
30781 ac_status=$?
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); }; } &&
30784 { ac_try='test -s conftest$ac_exeext'
30785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30786 (eval $ac_try) 2>&5
30787 ac_status=$?
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789 (exit $ac_status); }; }; then
30790 eval "$as_ac_var=yes"
30791else
30792 echo "$as_me: failed program was:" >&5
30793sed 's/^/| /' conftest.$ac_ext >&5
30794
30795eval "$as_ac_var=no"
30796fi
30797rm -f conftest.err conftest.$ac_objext \
30798 conftest$ac_exeext conftest.$ac_ext
30799fi
30800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30801echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30802if test `eval echo '${'$as_ac_var'}'` = yes; then
30803 cat >>confdefs.h <<_ACEOF
30804#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30805_ACEOF
30806 break
30807fi
30808done
30809
30810
30811HAVE_SOME_SLEEP_FUNC=0
30812if test "$USE_BEOS" = 1; then
30813 cat >>confdefs.h <<\_ACEOF
30814#define HAVE_SLEEP 1
30815_ACEOF
30816
30817 HAVE_SOME_SLEEP_FUNC=1
30818fi
30819
30820if test "$USE_DARWIN" = 1; then
30821 cat >>confdefs.h <<\_ACEOF
30822#define HAVE_USLEEP 1
30823_ACEOF
30824
30825 HAVE_SOME_SLEEP_FUNC=1
30826fi
30827
30828if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30829 POSIX4_LINK=
30830
30831for ac_func in nanosleep
30832do
30833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30834echo "$as_me:$LINENO: checking for $ac_func" >&5
30835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30836if eval "test \"\${$as_ac_var+set}\" = set"; then
30837 echo $ECHO_N "(cached) $ECHO_C" >&6
30838else
30839 cat >conftest.$ac_ext <<_ACEOF
30840/* confdefs.h. */
30841_ACEOF
30842cat confdefs.h >>conftest.$ac_ext
30843cat >>conftest.$ac_ext <<_ACEOF
30844/* end confdefs.h. */
30845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30847#define $ac_func innocuous_$ac_func
30848
30849/* System header to define __stub macros and hopefully few prototypes,
30850 which can conflict with char $ac_func (); below.
30851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30852 <limits.h> exists even on freestanding compilers. */
30853
30854#ifdef __STDC__
30855# include <limits.h>
30856#else
30857# include <assert.h>
30858#endif
30859
30860#undef $ac_func
30861
30862/* Override any gcc2 internal prototype to avoid an error. */
30863#ifdef __cplusplus
30864extern "C"
30865{
30866#endif
30867/* We use char because int might match the return type of a gcc2
30868 builtin and then its argument prototype would still apply. */
30869char $ac_func ();
30870/* The GNU C library defines this for functions which it implements
30871 to always fail with ENOSYS. Some functions are actually named
30872 something starting with __ and the normal name is an alias. */
30873#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30874choke me
30875#else
30876char (*f) () = $ac_func;
30877#endif
30878#ifdef __cplusplus
30879}
30880#endif
30881
30882int
30883main ()
30884{
30885return f != $ac_func;
30886 ;
30887 return 0;
30888}
30889_ACEOF
30890rm -f conftest.$ac_objext conftest$ac_exeext
30891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30892 (eval $ac_link) 2>conftest.er1
30893 ac_status=$?
30894 grep -v '^ *+' conftest.er1 >conftest.err
30895 rm -f conftest.er1
30896 cat conftest.err >&5
30897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); } &&
dcc1b6ad
VS
30899 { ac_try='test -z "$ac_c_werror_flag"
30900 || test ! -s conftest.err'
a848cd7e
SC
30901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30902 (eval $ac_try) 2>&5
30903 ac_status=$?
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); }; } &&
30906 { ac_try='test -s conftest$ac_exeext'
30907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30908 (eval $ac_try) 2>&5
30909 ac_status=$?
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); }; }; then
30912 eval "$as_ac_var=yes"
30913else
30914 echo "$as_me: failed program was:" >&5
30915sed 's/^/| /' conftest.$ac_ext >&5
30916
30917eval "$as_ac_var=no"
30918fi
30919rm -f conftest.err conftest.$ac_objext \
30920 conftest$ac_exeext conftest.$ac_ext
30921fi
30922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30923echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30924if test `eval echo '${'$as_ac_var'}'` = yes; then
30925 cat >>confdefs.h <<_ACEOF
30926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30927_ACEOF
30928 cat >>confdefs.h <<\_ACEOF
30929#define HAVE_NANOSLEEP 1
30930_ACEOF
30931
30932else
30933
30934 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30935echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30936if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30937 echo $ECHO_N "(cached) $ECHO_C" >&6
30938else
30939 ac_check_lib_save_LIBS=$LIBS
30940LIBS="-lposix4 $LIBS"
30941cat >conftest.$ac_ext <<_ACEOF
30942/* confdefs.h. */
30943_ACEOF
30944cat confdefs.h >>conftest.$ac_ext
30945cat >>conftest.$ac_ext <<_ACEOF
30946/* end confdefs.h. */
30947
30948/* Override any gcc2 internal prototype to avoid an error. */
30949#ifdef __cplusplus
30950extern "C"
30951#endif
30952/* We use char because int might match the return type of a gcc2
30953 builtin and then its argument prototype would still apply. */
30954char nanosleep ();
30955int
30956main ()
30957{
30958nanosleep ();
30959 ;
30960 return 0;
30961}
30962_ACEOF
30963rm -f conftest.$ac_objext conftest$ac_exeext
30964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30965 (eval $ac_link) 2>conftest.er1
30966 ac_status=$?
30967 grep -v '^ *+' conftest.er1 >conftest.err
30968 rm -f conftest.er1
30969 cat conftest.err >&5
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971 (exit $ac_status); } &&
dcc1b6ad
VS
30972 { ac_try='test -z "$ac_c_werror_flag"
30973 || test ! -s conftest.err'
a848cd7e
SC
30974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30975 (eval $ac_try) 2>&5
30976 ac_status=$?
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); }; } &&
30979 { ac_try='test -s conftest$ac_exeext'
30980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981 (eval $ac_try) 2>&5
30982 ac_status=$?
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); }; }; then
30985 ac_cv_lib_posix4_nanosleep=yes
30986else
30987 echo "$as_me: failed program was:" >&5
30988sed 's/^/| /' conftest.$ac_ext >&5
30989
30990ac_cv_lib_posix4_nanosleep=no
30991fi
30992rm -f conftest.err conftest.$ac_objext \
30993 conftest$ac_exeext conftest.$ac_ext
30994LIBS=$ac_check_lib_save_LIBS
30995fi
30996echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30997echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30998if test $ac_cv_lib_posix4_nanosleep = yes; then
30999
31000 cat >>confdefs.h <<\_ACEOF
31001#define HAVE_NANOSLEEP 1
31002_ACEOF
31003
31004 POSIX4_LINK=" -lposix4"
31005
31006else
31007
31008
31009for ac_func in usleep
31010do
31011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31012echo "$as_me:$LINENO: checking for $ac_func" >&5
31013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31014if eval "test \"\${$as_ac_var+set}\" = set"; then
31015 echo $ECHO_N "(cached) $ECHO_C" >&6
31016else
31017 cat >conftest.$ac_ext <<_ACEOF
31018/* confdefs.h. */
31019_ACEOF
31020cat confdefs.h >>conftest.$ac_ext
31021cat >>conftest.$ac_ext <<_ACEOF
31022/* end confdefs.h. */
31023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31025#define $ac_func innocuous_$ac_func
31026
31027/* System header to define __stub macros and hopefully few prototypes,
31028 which can conflict with char $ac_func (); below.
31029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31030 <limits.h> exists even on freestanding compilers. */
31031
31032#ifdef __STDC__
31033# include <limits.h>
31034#else
31035# include <assert.h>
31036#endif
31037
31038#undef $ac_func
31039
31040/* Override any gcc2 internal prototype to avoid an error. */
31041#ifdef __cplusplus
31042extern "C"
31043{
31044#endif
31045/* We use char because int might match the return type of a gcc2
31046 builtin and then its argument prototype would still apply. */
31047char $ac_func ();
31048/* The GNU C library defines this for functions which it implements
31049 to always fail with ENOSYS. Some functions are actually named
31050 something starting with __ and the normal name is an alias. */
31051#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31052choke me
31053#else
31054char (*f) () = $ac_func;
31055#endif
31056#ifdef __cplusplus
31057}
31058#endif
31059
31060int
31061main ()
31062{
31063return f != $ac_func;
31064 ;
31065 return 0;
31066}
31067_ACEOF
31068rm -f conftest.$ac_objext conftest$ac_exeext
31069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31070 (eval $ac_link) 2>conftest.er1
31071 ac_status=$?
31072 grep -v '^ *+' conftest.er1 >conftest.err
31073 rm -f conftest.er1
31074 cat conftest.err >&5
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); } &&
dcc1b6ad
VS
31077 { ac_try='test -z "$ac_c_werror_flag"
31078 || test ! -s conftest.err'
a848cd7e
SC
31079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31080 (eval $ac_try) 2>&5
31081 ac_status=$?
31082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083 (exit $ac_status); }; } &&
31084 { ac_try='test -s conftest$ac_exeext'
31085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31086 (eval $ac_try) 2>&5
31087 ac_status=$?
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); }; }; then
31090 eval "$as_ac_var=yes"
31091else
31092 echo "$as_me: failed program was:" >&5
31093sed 's/^/| /' conftest.$ac_ext >&5
31094
31095eval "$as_ac_var=no"
31096fi
31097rm -f conftest.err conftest.$ac_objext \
31098 conftest$ac_exeext conftest.$ac_ext
31099fi
31100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31102if test `eval echo '${'$as_ac_var'}'` = yes; then
31103 cat >>confdefs.h <<_ACEOF
31104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31105_ACEOF
31106 cat >>confdefs.h <<\_ACEOF
31107#define HAVE_USLEEP 1
31108_ACEOF
31109
31110else
31111 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31112echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31113
31114fi
31115done
31116
31117
31118
31119fi
31120
31121
31122
31123fi
31124done
31125
31126fi
31127
31128
31129
31130for ac_func in uname gethostname
31131do
31132as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31133echo "$as_me:$LINENO: checking for $ac_func" >&5
31134echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31135if eval "test \"\${$as_ac_var+set}\" = set"; then
31136 echo $ECHO_N "(cached) $ECHO_C" >&6
31137else
31138 cat >conftest.$ac_ext <<_ACEOF
31139/* confdefs.h. */
31140_ACEOF
31141cat confdefs.h >>conftest.$ac_ext
31142cat >>conftest.$ac_ext <<_ACEOF
31143/* end confdefs.h. */
31144/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31146#define $ac_func innocuous_$ac_func
31147
31148/* System header to define __stub macros and hopefully few prototypes,
31149 which can conflict with char $ac_func (); below.
31150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31151 <limits.h> exists even on freestanding compilers. */
31152
31153#ifdef __STDC__
31154# include <limits.h>
31155#else
31156# include <assert.h>
31157#endif
31158
31159#undef $ac_func
31160
31161/* Override any gcc2 internal prototype to avoid an error. */
31162#ifdef __cplusplus
31163extern "C"
31164{
31165#endif
31166/* We use char because int might match the return type of a gcc2
31167 builtin and then its argument prototype would still apply. */
31168char $ac_func ();
31169/* The GNU C library defines this for functions which it implements
31170 to always fail with ENOSYS. Some functions are actually named
31171 something starting with __ and the normal name is an alias. */
31172#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31173choke me
31174#else
31175char (*f) () = $ac_func;
31176#endif
31177#ifdef __cplusplus
31178}
31179#endif
31180
31181int
31182main ()
31183{
31184return f != $ac_func;
31185 ;
31186 return 0;
31187}
31188_ACEOF
31189rm -f conftest.$ac_objext conftest$ac_exeext
31190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31191 (eval $ac_link) 2>conftest.er1
31192 ac_status=$?
31193 grep -v '^ *+' conftest.er1 >conftest.err
31194 rm -f conftest.er1
31195 cat conftest.err >&5
31196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197 (exit $ac_status); } &&
dcc1b6ad
VS
31198 { ac_try='test -z "$ac_c_werror_flag"
31199 || test ! -s conftest.err'
a848cd7e
SC
31200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31201 (eval $ac_try) 2>&5
31202 ac_status=$?
31203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31204 (exit $ac_status); }; } &&
31205 { ac_try='test -s conftest$ac_exeext'
31206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31207 (eval $ac_try) 2>&5
31208 ac_status=$?
31209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210 (exit $ac_status); }; }; then
31211 eval "$as_ac_var=yes"
31212else
31213 echo "$as_me: failed program was:" >&5
31214sed 's/^/| /' conftest.$ac_ext >&5
31215
31216eval "$as_ac_var=no"
31217fi
31218rm -f conftest.err conftest.$ac_objext \
31219 conftest$ac_exeext conftest.$ac_ext
31220fi
31221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31222echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31223if test `eval echo '${'$as_ac_var'}'` = yes; then
31224 cat >>confdefs.h <<_ACEOF
31225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31226_ACEOF
31227 break
31228fi
31229done
31230
31231
31232
31233
31234ac_ext=cc
31235ac_cpp='$CXXCPP $CPPFLAGS'
31236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31239
31240
31241
31242for ac_func in strtok_r
31243do
31244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31245echo "$as_me:$LINENO: checking for $ac_func" >&5
31246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31247if eval "test \"\${$as_ac_var+set}\" = set"; then
31248 echo $ECHO_N "(cached) $ECHO_C" >&6
31249else
31250 cat >conftest.$ac_ext <<_ACEOF
31251/* confdefs.h. */
31252_ACEOF
31253cat confdefs.h >>conftest.$ac_ext
31254cat >>conftest.$ac_ext <<_ACEOF
31255/* end confdefs.h. */
31256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31258#define $ac_func innocuous_$ac_func
31259
31260/* System header to define __stub macros and hopefully few prototypes,
31261 which can conflict with char $ac_func (); below.
31262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31263 <limits.h> exists even on freestanding compilers. */
31264
31265#ifdef __STDC__
31266# include <limits.h>
31267#else
31268# include <assert.h>
31269#endif
31270
31271#undef $ac_func
31272
31273/* Override any gcc2 internal prototype to avoid an error. */
31274#ifdef __cplusplus
31275extern "C"
31276{
31277#endif
31278/* We use char because int might match the return type of a gcc2
31279 builtin and then its argument prototype would still apply. */
31280char $ac_func ();
31281/* The GNU C library defines this for functions which it implements
31282 to always fail with ENOSYS. Some functions are actually named
31283 something starting with __ and the normal name is an alias. */
31284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31285choke me
31286#else
31287char (*f) () = $ac_func;
31288#endif
31289#ifdef __cplusplus
31290}
31291#endif
31292
31293int
31294main ()
31295{
31296return f != $ac_func;
31297 ;
31298 return 0;
31299}
31300_ACEOF
31301rm -f conftest.$ac_objext conftest$ac_exeext
31302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31303 (eval $ac_link) 2>conftest.er1
31304 ac_status=$?
31305 grep -v '^ *+' conftest.er1 >conftest.err
31306 rm -f conftest.er1
31307 cat conftest.err >&5
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); } &&
dcc1b6ad
VS
31310 { ac_try='test -z "$ac_cxx_werror_flag"
31311 || test ! -s conftest.err'
a848cd7e
SC
31312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31313 (eval $ac_try) 2>&5
31314 ac_status=$?
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); }; } &&
31317 { ac_try='test -s conftest$ac_exeext'
31318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31319 (eval $ac_try) 2>&5
31320 ac_status=$?
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); }; }; then
31323 eval "$as_ac_var=yes"
31324else
31325 echo "$as_me: failed program was:" >&5
31326sed 's/^/| /' conftest.$ac_ext >&5
31327
31328eval "$as_ac_var=no"
31329fi
31330rm -f conftest.err conftest.$ac_objext \
31331 conftest$ac_exeext conftest.$ac_ext
31332fi
31333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31334echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31335if test `eval echo '${'$as_ac_var'}'` = yes; then
31336 cat >>confdefs.h <<_ACEOF
31337#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31338_ACEOF
31339
31340fi
31341done
31342
31343
31344ac_ext=c
31345ac_cpp='$CPP $CPPFLAGS'
31346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31348ac_compiler_gnu=$ac_cv_c_compiler_gnu
31349
31350
31351INET_LINK=
31352
31353for ac_func in inet_addr
31354do
31355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31356echo "$as_me:$LINENO: checking for $ac_func" >&5
31357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31358if eval "test \"\${$as_ac_var+set}\" = set"; then
31359 echo $ECHO_N "(cached) $ECHO_C" >&6
31360else
31361 cat >conftest.$ac_ext <<_ACEOF
31362/* confdefs.h. */
31363_ACEOF
31364cat confdefs.h >>conftest.$ac_ext
31365cat >>conftest.$ac_ext <<_ACEOF
31366/* end confdefs.h. */
31367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31369#define $ac_func innocuous_$ac_func
31370
31371/* System header to define __stub macros and hopefully few prototypes,
31372 which can conflict with char $ac_func (); below.
31373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31374 <limits.h> exists even on freestanding compilers. */
31375
31376#ifdef __STDC__
31377# include <limits.h>
31378#else
31379# include <assert.h>
31380#endif
31381
31382#undef $ac_func
31383
31384/* Override any gcc2 internal prototype to avoid an error. */
31385#ifdef __cplusplus
31386extern "C"
31387{
31388#endif
31389/* We use char because int might match the return type of a gcc2
31390 builtin and then its argument prototype would still apply. */
31391char $ac_func ();
31392/* The GNU C library defines this for functions which it implements
31393 to always fail with ENOSYS. Some functions are actually named
31394 something starting with __ and the normal name is an alias. */
31395#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31396choke me
31397#else
31398char (*f) () = $ac_func;
31399#endif
31400#ifdef __cplusplus
31401}
31402#endif
31403
31404int
31405main ()
31406{
31407return f != $ac_func;
31408 ;
31409 return 0;
31410}
31411_ACEOF
31412rm -f conftest.$ac_objext conftest$ac_exeext
31413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31414 (eval $ac_link) 2>conftest.er1
31415 ac_status=$?
31416 grep -v '^ *+' conftest.er1 >conftest.err
31417 rm -f conftest.er1
31418 cat conftest.err >&5
31419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420 (exit $ac_status); } &&
dcc1b6ad
VS
31421 { ac_try='test -z "$ac_c_werror_flag"
31422 || test ! -s conftest.err'
a848cd7e
SC
31423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31424 (eval $ac_try) 2>&5
31425 ac_status=$?
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); }; } &&
31428 { ac_try='test -s conftest$ac_exeext'
31429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31430 (eval $ac_try) 2>&5
31431 ac_status=$?
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); }; }; then
31434 eval "$as_ac_var=yes"
31435else
31436 echo "$as_me: failed program was:" >&5
31437sed 's/^/| /' conftest.$ac_ext >&5
31438
31439eval "$as_ac_var=no"
31440fi
31441rm -f conftest.err conftest.$ac_objext \
31442 conftest$ac_exeext conftest.$ac_ext
31443fi
31444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31445echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31446if test `eval echo '${'$as_ac_var'}'` = yes; then
31447 cat >>confdefs.h <<_ACEOF
31448#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31449_ACEOF
31450 cat >>confdefs.h <<\_ACEOF
31451#define HAVE_INET_ADDR 1
31452_ACEOF
31453
31454else
31455
31456 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31457echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31458if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31459 echo $ECHO_N "(cached) $ECHO_C" >&6
31460else
31461 ac_check_lib_save_LIBS=$LIBS
31462LIBS="-lnsl $LIBS"
31463cat >conftest.$ac_ext <<_ACEOF
31464/* confdefs.h. */
31465_ACEOF
31466cat confdefs.h >>conftest.$ac_ext
31467cat >>conftest.$ac_ext <<_ACEOF
31468/* end confdefs.h. */
31469
31470/* Override any gcc2 internal prototype to avoid an error. */
31471#ifdef __cplusplus
31472extern "C"
31473#endif
31474/* We use char because int might match the return type of a gcc2
31475 builtin and then its argument prototype would still apply. */
31476char inet_addr ();
31477int
31478main ()
31479{
31480inet_addr ();
31481 ;
31482 return 0;
31483}
31484_ACEOF
31485rm -f conftest.$ac_objext conftest$ac_exeext
31486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31487 (eval $ac_link) 2>conftest.er1
31488 ac_status=$?
31489 grep -v '^ *+' conftest.er1 >conftest.err
31490 rm -f conftest.er1
31491 cat conftest.err >&5
31492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493 (exit $ac_status); } &&
dcc1b6ad
VS
31494 { ac_try='test -z "$ac_c_werror_flag"
31495 || test ! -s conftest.err'
a848cd7e
SC
31496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31497 (eval $ac_try) 2>&5
31498 ac_status=$?
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); }; } &&
31501 { ac_try='test -s conftest$ac_exeext'
31502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31503 (eval $ac_try) 2>&5
31504 ac_status=$?
31505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31506 (exit $ac_status); }; }; then
31507 ac_cv_lib_nsl_inet_addr=yes
31508else
31509 echo "$as_me: failed program was:" >&5
31510sed 's/^/| /' conftest.$ac_ext >&5
31511
31512ac_cv_lib_nsl_inet_addr=no
31513fi
31514rm -f conftest.err conftest.$ac_objext \
31515 conftest$ac_exeext conftest.$ac_ext
31516LIBS=$ac_check_lib_save_LIBS
31517fi
31518echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31519echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31520if test $ac_cv_lib_nsl_inet_addr = yes; then
31521 INET_LINK="nsl"
31522else
31523
31524 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31525echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31526if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31527 echo $ECHO_N "(cached) $ECHO_C" >&6
31528else
31529 ac_check_lib_save_LIBS=$LIBS
31530LIBS="-lresolv $LIBS"
31531cat >conftest.$ac_ext <<_ACEOF
31532/* confdefs.h. */
31533_ACEOF
31534cat confdefs.h >>conftest.$ac_ext
31535cat >>conftest.$ac_ext <<_ACEOF
31536/* end confdefs.h. */
31537
31538/* Override any gcc2 internal prototype to avoid an error. */
31539#ifdef __cplusplus
31540extern "C"
31541#endif
31542/* We use char because int might match the return type of a gcc2
31543 builtin and then its argument prototype would still apply. */
31544char inet_addr ();
31545int
31546main ()
31547{
31548inet_addr ();
31549 ;
31550 return 0;
31551}
31552_ACEOF
31553rm -f conftest.$ac_objext conftest$ac_exeext
31554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31555 (eval $ac_link) 2>conftest.er1
31556 ac_status=$?
31557 grep -v '^ *+' conftest.er1 >conftest.err
31558 rm -f conftest.er1
31559 cat conftest.err >&5
31560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561 (exit $ac_status); } &&
dcc1b6ad
VS
31562 { ac_try='test -z "$ac_c_werror_flag"
31563 || test ! -s conftest.err'
a848cd7e
SC
31564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31565 (eval $ac_try) 2>&5
31566 ac_status=$?
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); }; } &&
31569 { ac_try='test -s conftest$ac_exeext'
31570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31571 (eval $ac_try) 2>&5
31572 ac_status=$?
31573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31574 (exit $ac_status); }; }; then
31575 ac_cv_lib_resolv_inet_addr=yes
31576else
31577 echo "$as_me: failed program was:" >&5
31578sed 's/^/| /' conftest.$ac_ext >&5
31579
31580ac_cv_lib_resolv_inet_addr=no
31581fi
31582rm -f conftest.err conftest.$ac_objext \
31583 conftest$ac_exeext conftest.$ac_ext
31584LIBS=$ac_check_lib_save_LIBS
31585fi
31586echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31587echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31588if test $ac_cv_lib_resolv_inet_addr = yes; then
31589 INET_LINK="resolv"
31590else
31591
31592 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31593echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31594if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31595 echo $ECHO_N "(cached) $ECHO_C" >&6
31596else
31597 ac_check_lib_save_LIBS=$LIBS
31598LIBS="-lsocket $LIBS"
31599cat >conftest.$ac_ext <<_ACEOF
31600/* confdefs.h. */
31601_ACEOF
31602cat confdefs.h >>conftest.$ac_ext
31603cat >>conftest.$ac_ext <<_ACEOF
31604/* end confdefs.h. */
31605
31606/* Override any gcc2 internal prototype to avoid an error. */
31607#ifdef __cplusplus
31608extern "C"
31609#endif
31610/* We use char because int might match the return type of a gcc2
31611 builtin and then its argument prototype would still apply. */
31612char inet_addr ();
31613int
31614main ()
31615{
31616inet_addr ();
31617 ;
31618 return 0;
31619}
31620_ACEOF
31621rm -f conftest.$ac_objext conftest$ac_exeext
31622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31623 (eval $ac_link) 2>conftest.er1
31624 ac_status=$?
31625 grep -v '^ *+' conftest.er1 >conftest.err
31626 rm -f conftest.er1
31627 cat conftest.err >&5
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); } &&
dcc1b6ad
VS
31630 { ac_try='test -z "$ac_c_werror_flag"
31631 || test ! -s conftest.err'
a848cd7e
SC
31632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31633 (eval $ac_try) 2>&5
31634 ac_status=$?
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); }; } &&
31637 { ac_try='test -s conftest$ac_exeext'
31638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31639 (eval $ac_try) 2>&5
31640 ac_status=$?
31641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642 (exit $ac_status); }; }; then
31643 ac_cv_lib_socket_inet_addr=yes
31644else
31645 echo "$as_me: failed program was:" >&5
31646sed 's/^/| /' conftest.$ac_ext >&5
31647
31648ac_cv_lib_socket_inet_addr=no
31649fi
31650rm -f conftest.err conftest.$ac_objext \
31651 conftest$ac_exeext conftest.$ac_ext
31652LIBS=$ac_check_lib_save_LIBS
31653fi
31654echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31655echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31656if test $ac_cv_lib_socket_inet_addr = yes; then
31657 INET_LINK="socket"
31658
31659fi
31660
31661
31662
31663fi
31664
31665
31666
31667fi
31668
31669
31670
31671fi
31672done
31673
31674
31675
31676for ac_func in inet_aton
31677do
31678as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31679echo "$as_me:$LINENO: checking for $ac_func" >&5
31680echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31681if eval "test \"\${$as_ac_var+set}\" = set"; then
31682 echo $ECHO_N "(cached) $ECHO_C" >&6
31683else
31684 cat >conftest.$ac_ext <<_ACEOF
31685/* confdefs.h. */
31686_ACEOF
31687cat confdefs.h >>conftest.$ac_ext
31688cat >>conftest.$ac_ext <<_ACEOF
31689/* end confdefs.h. */
31690/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31692#define $ac_func innocuous_$ac_func
31693
31694/* System header to define __stub macros and hopefully few prototypes,
31695 which can conflict with char $ac_func (); below.
31696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31697 <limits.h> exists even on freestanding compilers. */
31698
31699#ifdef __STDC__
31700# include <limits.h>
31701#else
31702# include <assert.h>
31703#endif
31704
31705#undef $ac_func
31706
31707/* Override any gcc2 internal prototype to avoid an error. */
31708#ifdef __cplusplus
31709extern "C"
31710{
31711#endif
31712/* We use char because int might match the return type of a gcc2
31713 builtin and then its argument prototype would still apply. */
31714char $ac_func ();
31715/* The GNU C library defines this for functions which it implements
31716 to always fail with ENOSYS. Some functions are actually named
31717 something starting with __ and the normal name is an alias. */
31718#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31719choke me
31720#else
31721char (*f) () = $ac_func;
31722#endif
31723#ifdef __cplusplus
31724}
31725#endif
31726
31727int
31728main ()
31729{
31730return f != $ac_func;
31731 ;
31732 return 0;
31733}
31734_ACEOF
31735rm -f conftest.$ac_objext conftest$ac_exeext
31736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31737 (eval $ac_link) 2>conftest.er1
31738 ac_status=$?
31739 grep -v '^ *+' conftest.er1 >conftest.err
31740 rm -f conftest.er1
31741 cat conftest.err >&5
31742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743 (exit $ac_status); } &&
dcc1b6ad
VS
31744 { ac_try='test -z "$ac_c_werror_flag"
31745 || test ! -s conftest.err'
a848cd7e
SC
31746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31747 (eval $ac_try) 2>&5
31748 ac_status=$?
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); }; } &&
31751 { ac_try='test -s conftest$ac_exeext'
31752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31753 (eval $ac_try) 2>&5
31754 ac_status=$?
31755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); }; }; then
31757 eval "$as_ac_var=yes"
31758else
31759 echo "$as_me: failed program was:" >&5
31760sed 's/^/| /' conftest.$ac_ext >&5
31761
31762eval "$as_ac_var=no"
31763fi
31764rm -f conftest.err conftest.$ac_objext \
31765 conftest$ac_exeext conftest.$ac_ext
31766fi
31767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31768echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31769if test `eval echo '${'$as_ac_var'}'` = yes; then
31770 cat >>confdefs.h <<_ACEOF
31771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31772_ACEOF
31773 cat >>confdefs.h <<\_ACEOF
31774#define HAVE_INET_ATON 1
31775_ACEOF
31776
31777else
31778
31779 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31780echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31781echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31782if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31783 echo $ECHO_N "(cached) $ECHO_C" >&6
31784else
31785 ac_check_lib_save_LIBS=$LIBS
31786LIBS="-l$INET_LINK $LIBS"
31787cat >conftest.$ac_ext <<_ACEOF
31788/* confdefs.h. */
31789_ACEOF
31790cat confdefs.h >>conftest.$ac_ext
31791cat >>conftest.$ac_ext <<_ACEOF
31792/* end confdefs.h. */
31793
31794/* Override any gcc2 internal prototype to avoid an error. */
31795#ifdef __cplusplus
31796extern "C"
31797#endif
31798/* We use char because int might match the return type of a gcc2
31799 builtin and then its argument prototype would still apply. */
31800char inet_aton ();
31801int
31802main ()
31803{
31804inet_aton ();
31805 ;
31806 return 0;
31807}
31808_ACEOF
31809rm -f conftest.$ac_objext conftest$ac_exeext
31810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31811 (eval $ac_link) 2>conftest.er1
31812 ac_status=$?
31813 grep -v '^ *+' conftest.er1 >conftest.err
31814 rm -f conftest.er1
31815 cat conftest.err >&5
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); } &&
dcc1b6ad
VS
31818 { ac_try='test -z "$ac_c_werror_flag"
31819 || test ! -s conftest.err'
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); }; } &&
31825 { ac_try='test -s conftest$ac_exeext'
31826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31827 (eval $ac_try) 2>&5
31828 ac_status=$?
31829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); }; }; then
31831 eval "$as_ac_Lib=yes"
31832else
31833 echo "$as_me: failed program was:" >&5
31834sed 's/^/| /' conftest.$ac_ext >&5
31835
31836eval "$as_ac_Lib=no"
31837fi
31838rm -f conftest.err conftest.$ac_objext \
31839 conftest$ac_exeext conftest.$ac_ext
31840LIBS=$ac_check_lib_save_LIBS
31841fi
31842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31843echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31844if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31845 cat >>confdefs.h <<\_ACEOF
31846#define HAVE_INET_ATON 1
31847_ACEOF
31848
31849fi
31850
31851
31852fi
31853done
31854
31855
31856if test "x$INET_LINK" != "x"; then
31857 cat >>confdefs.h <<\_ACEOF
31858#define HAVE_INET_ADDR 1
31859_ACEOF
31860
31861 INET_LINK=" -l$INET_LINK"
31862fi
31863
31864fi
31865
31866
31867
31868EXTRALIBS_ESD=
31869echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31870echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31871if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31872 echo $ECHO_N "(cached) $ECHO_C" >&6
31873else
31874 ac_check_lib_save_LIBS=$LIBS
31875LIBS="-lesd $LIBS"
31876cat >conftest.$ac_ext <<_ACEOF
31877/* confdefs.h. */
31878_ACEOF
31879cat confdefs.h >>conftest.$ac_ext
31880cat >>conftest.$ac_ext <<_ACEOF
31881/* end confdefs.h. */
31882
31883/* Override any gcc2 internal prototype to avoid an error. */
31884#ifdef __cplusplus
31885extern "C"
31886#endif
31887/* We use char because int might match the return type of a gcc2
31888 builtin and then its argument prototype would still apply. */
31889char esd_close ();
31890int
31891main ()
31892{
31893esd_close ();
31894 ;
31895 return 0;
31896}
31897_ACEOF
31898rm -f conftest.$ac_objext conftest$ac_exeext
31899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31900 (eval $ac_link) 2>conftest.er1
31901 ac_status=$?
31902 grep -v '^ *+' conftest.er1 >conftest.err
31903 rm -f conftest.er1
31904 cat conftest.err >&5
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); } &&
dcc1b6ad
VS
31907 { ac_try='test -z "$ac_c_werror_flag"
31908 || test ! -s conftest.err'
a848cd7e
SC
31909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31910 (eval $ac_try) 2>&5
31911 ac_status=$?
31912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913 (exit $ac_status); }; } &&
31914 { ac_try='test -s conftest$ac_exeext'
31915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31916 (eval $ac_try) 2>&5
31917 ac_status=$?
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); }; }; then
31920 ac_cv_lib_esd_esd_close=yes
31921else
31922 echo "$as_me: failed program was:" >&5
31923sed 's/^/| /' conftest.$ac_ext >&5
31924
31925ac_cv_lib_esd_esd_close=no
31926fi
31927rm -f conftest.err conftest.$ac_objext \
31928 conftest$ac_exeext conftest.$ac_ext
31929LIBS=$ac_check_lib_save_LIBS
31930fi
31931echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31932echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31933if test $ac_cv_lib_esd_esd_close = yes; then
31934
31935
31936for ac_header in esd.h
31937do
31938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31939if eval "test \"\${$as_ac_Header+set}\" = set"; then
31940 echo "$as_me:$LINENO: checking for $ac_header" >&5
31941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31942if eval "test \"\${$as_ac_Header+set}\" = set"; then
31943 echo $ECHO_N "(cached) $ECHO_C" >&6
31944fi
31945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31947else
31948 # Is the header compilable?
31949echo "$as_me:$LINENO: checking $ac_header usability" >&5
31950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31951cat >conftest.$ac_ext <<_ACEOF
31952/* confdefs.h. */
31953_ACEOF
31954cat confdefs.h >>conftest.$ac_ext
31955cat >>conftest.$ac_ext <<_ACEOF
31956/* end confdefs.h. */
31957$ac_includes_default
31958#include <$ac_header>
31959_ACEOF
31960rm -f conftest.$ac_objext
31961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31962 (eval $ac_compile) 2>conftest.er1
31963 ac_status=$?
31964 grep -v '^ *+' conftest.er1 >conftest.err
31965 rm -f conftest.er1
31966 cat conftest.err >&5
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); } &&
dcc1b6ad
VS
31969 { ac_try='test -z "$ac_c_werror_flag"
31970 || test ! -s conftest.err'
a848cd7e
SC
31971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31972 (eval $ac_try) 2>&5
31973 ac_status=$?
31974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975 (exit $ac_status); }; } &&
31976 { ac_try='test -s conftest.$ac_objext'
31977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31978 (eval $ac_try) 2>&5
31979 ac_status=$?
31980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981 (exit $ac_status); }; }; then
31982 ac_header_compiler=yes
31983else
31984 echo "$as_me: failed program was:" >&5
31985sed 's/^/| /' conftest.$ac_ext >&5
31986
31987ac_header_compiler=no
31988fi
31989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31991echo "${ECHO_T}$ac_header_compiler" >&6
31992
31993# Is the header present?
31994echo "$as_me:$LINENO: checking $ac_header presence" >&5
31995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31996cat >conftest.$ac_ext <<_ACEOF
31997/* confdefs.h. */
31998_ACEOF
31999cat confdefs.h >>conftest.$ac_ext
32000cat >>conftest.$ac_ext <<_ACEOF
32001/* end confdefs.h. */
32002#include <$ac_header>
32003_ACEOF
32004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32006 ac_status=$?
32007 grep -v '^ *+' conftest.er1 >conftest.err
32008 rm -f conftest.er1
32009 cat conftest.err >&5
32010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011 (exit $ac_status); } >/dev/null; then
32012 if test -s conftest.err; then
32013 ac_cpp_err=$ac_c_preproc_warn_flag
32014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32015 else
32016 ac_cpp_err=
32017 fi
32018else
32019 ac_cpp_err=yes
32020fi
32021if test -z "$ac_cpp_err"; then
32022 ac_header_preproc=yes
32023else
32024 echo "$as_me: failed program was:" >&5
32025sed 's/^/| /' conftest.$ac_ext >&5
32026
32027 ac_header_preproc=no
32028fi
32029rm -f conftest.err conftest.$ac_ext
32030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32031echo "${ECHO_T}$ac_header_preproc" >&6
32032
32033# So? What about this header?
32034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32035 yes:no: )
32036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32040 ac_header_preproc=yes
32041 ;;
32042 no:yes:* )
32043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32046echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32050echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32055 (
32056 cat <<\_ASBOX
32057## ----------------------------------------- ##
32058## Report this to wx-dev@lists.wxwindows.org ##
32059## ----------------------------------------- ##
32060_ASBOX
32061 ) |
32062 sed "s/^/$as_me: WARNING: /" >&2
32063 ;;
32064esac
32065echo "$as_me:$LINENO: checking for $ac_header" >&5
32066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32067if eval "test \"\${$as_ac_Header+set}\" = set"; then
32068 echo $ECHO_N "(cached) $ECHO_C" >&6
32069else
32070 eval "$as_ac_Header=\$ac_header_preproc"
32071fi
32072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32074
32075fi
32076if test `eval echo '${'$as_ac_Header'}'` = yes; then
32077 cat >>confdefs.h <<_ACEOF
32078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32079_ACEOF
32080
32081 EXTRALIBS_ESD="-lesd"
32082
32083fi
32084
32085done
32086
32087
32088fi
32089
32090
32091
32092echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32093echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32094cat >conftest.$ac_ext <<_ACEOF
32095/* confdefs.h. */
32096_ACEOF
32097cat confdefs.h >>conftest.$ac_ext
32098cat >>conftest.$ac_ext <<_ACEOF
32099/* end confdefs.h. */
32100#ifdef __linux__
32101 #include <linux/cdrom.h>
32102 #else
32103 /* For Solaris */
32104 #include <sys/cdio.h>
32105 #endif
32106
32107int
32108main ()
32109{
32110struct cdrom_tocentry entry, old_entry;
32111 ;
32112 return 0;
32113}
32114_ACEOF
32115rm -f conftest.$ac_objext
32116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32117 (eval $ac_compile) 2>conftest.er1
32118 ac_status=$?
32119 grep -v '^ *+' conftest.er1 >conftest.err
32120 rm -f conftest.er1
32121 cat conftest.err >&5
32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123 (exit $ac_status); } &&
dcc1b6ad
VS
32124 { ac_try='test -z "$ac_c_werror_flag"
32125 || test ! -s conftest.err'
a848cd7e
SC
32126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32127 (eval $ac_try) 2>&5
32128 ac_status=$?
32129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130 (exit $ac_status); }; } &&
32131 { ac_try='test -s conftest.$ac_objext'
32132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32133 (eval $ac_try) 2>&5
32134 ac_status=$?
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); }; }; then
32137 echo "$as_me:$LINENO: result: yes" >&5
32138echo "${ECHO_T}yes" >&6
32139 cat >>confdefs.h <<\_ACEOF
32140#define HAVE_KNOWN_CDROM_INTERFACE 1
32141_ACEOF
32142
32143else
32144 echo "$as_me: failed program was:" >&5
32145sed 's/^/| /' conftest.$ac_ext >&5
32146
32147echo "$as_me:$LINENO: result: no" >&5
32148echo "${ECHO_T}no" >&6
32149fi
32150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32151
32152
32153cat >confcache <<\_ACEOF
32154# This file is a shell script that caches the results of configure
32155# tests run on this system so they can be shared between configure
32156# scripts and configure runs, see configure's option --config-cache.
32157# It is not useful on other systems. If it contains results you don't
32158# want to keep, you may remove or edit it.
32159#
32160# config.status only pays attention to the cache file if you give it
32161# the --recheck option to rerun configure.
32162#
32163# `ac_cv_env_foo' variables (set or unset) will be overridden when
32164# loading this file, other *unset* `ac_cv_foo' will be assigned the
32165# following values.
32166
32167_ACEOF
32168
32169# The following way of writing the cache mishandles newlines in values,
32170# but we know of no workaround that is simple, portable, and efficient.
32171# So, don't put newlines in cache variables' values.
32172# Ultrix sh set writes to stderr and can't be redirected directly,
32173# and sets the high bit in the cache file unless we assign to the vars.
32174{
32175 (set) 2>&1 |
32176 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32177 *ac_space=\ *)
32178 # `set' does not quote correctly, so add quotes (double-quote
32179 # substitution turns \\\\ into \\, and sed turns \\ into \).
32180 sed -n \
32181 "s/'/'\\\\''/g;
32182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32183 ;;
32184 *)
32185 # `set' quotes correctly as required by POSIX, so do not add quotes.
32186 sed -n \
32187 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32188 ;;
32189 esac;
32190} |
32191 sed '
32192 t clear
32193 : clear
32194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32195 t end
32196 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32197 : end' >>confcache
32198if diff $cache_file confcache >/dev/null 2>&1; then :; else
32199 if test -w $cache_file; then
32200 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32201 cat confcache >$cache_file
32202 else
32203 echo "not updating unwritable cache $cache_file"
32204 fi
32205fi
32206rm -f confcache
32207
32208
32209CPP_MT_FLAG=
32210if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32211
32212
32213 THREADS_LINK=
32214 THREADS_CFLAGS=
32215
32216 if test "$wxUSE_THREADS" = "yes" ; then
32217 if test "$USE_BEOS" = 1; then
32218 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32219echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32220 wxUSE_THREADS="no"
32221 fi
32222 fi
32223
32224 if test "$wxUSE_THREADS" = "yes" ; then
32225
32226
32227 THREAD_OPTS="-pthread"
32228 case "${host}" in
32229 *-*-solaris2* | *-*-sunos4* )
32230 if test "x$GCC" = "xyes"; then
32231 THREAD_OPTS="-pthreads $THREAD_OPTS"
32232 else
32233 THREAD_OPTS="-mt $THREAD_OPTS"
32234 fi
32235 ;;
32236 *-*-freebsd*)
32237 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32238 ;;
32239 *-*-darwin* | *-*-cygwin* )
32240 THREAD_OPTS=""
32241 ;;
32242 *-*-aix*)
32243 THREAD_OPTS="pthreads"
32244 ;;
32245 *-hp-hpux* )
32246 if test "x$GCC" != "xyes"; then
32247 THREAD_OPTS=""
32248 fi
32249 ;;
32250
32251 *-*-irix* )
32252 if test "x$GCC" = "xyes"; then
32253 THREAD_OPTS=""
32254 fi
32255 ;;
32256
32257 *-*-*UnixWare*)
32258 if test "x$GCC" != "xyes"; then
32259 THREAD_OPTS="-Ethread"
32260 fi
32261 ;;
32262 esac
32263
32264 THREAD_OPTS="$THREAD_OPTS pthread none"
32265
32266 THREADS_OK=no
32267 for flag in $THREAD_OPTS; do
32268 case $flag in
32269 none)
32270 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32271echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32272 ;;
32273
32274 -*)
32275 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32276echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32277 THREADS_CFLAGS="$flag"
32278 ;;
32279
32280 *)
32281 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32282echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32283 THREADS_LINK="-l$flag"
32284 ;;
32285 esac
32286
32287 save_LIBS="$LIBS"
32288 save_CFLAGS="$CFLAGS"
32289 LIBS="$THREADS_LINK $LIBS"
32290 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32291
32292 cat >conftest.$ac_ext <<_ACEOF
32293/* confdefs.h. */
32294_ACEOF
32295cat confdefs.h >>conftest.$ac_ext
32296cat >>conftest.$ac_ext <<_ACEOF
32297/* end confdefs.h. */
32298#include <pthread.h>
32299int
32300main ()
32301{
32302pthread_create(0,0,0,0);
32303 ;
32304 return 0;
32305}
32306_ACEOF
32307rm -f conftest.$ac_objext conftest$ac_exeext
32308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32309 (eval $ac_link) 2>conftest.er1
32310 ac_status=$?
32311 grep -v '^ *+' conftest.er1 >conftest.err
32312 rm -f conftest.er1
32313 cat conftest.err >&5
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); } &&
dcc1b6ad
VS
32316 { ac_try='test -z "$ac_c_werror_flag"
32317 || test ! -s conftest.err'
a848cd7e
SC
32318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319 (eval $ac_try) 2>&5
32320 ac_status=$?
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; } &&
32323 { ac_try='test -s conftest$ac_exeext'
32324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32325 (eval $ac_try) 2>&5
32326 ac_status=$?
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); }; }; then
32329 THREADS_OK=yes
32330else
32331 echo "$as_me: failed program was:" >&5
32332sed 's/^/| /' conftest.$ac_ext >&5
32333
32334fi
32335rm -f conftest.err conftest.$ac_objext \
32336 conftest$ac_exeext conftest.$ac_ext
32337
32338 LIBS="$save_LIBS"
32339 CFLAGS="$save_CFLAGS"
32340
32341 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32342echo "${ECHO_T}$THREADS_OK" >&6
32343 if test "x$THREADS_OK" = "xyes"; then
32344 break;
32345 fi
32346
32347 THREADS_LINK=""
32348 THREADS_CFLAGS=""
32349 done
32350
32351 if test "x$THREADS_OK" != "xyes"; then
32352 wxUSE_THREADS=no
32353 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32354echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32355 else
32356 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32357 LIBS="$THREADS_LINK $LIBS"
32358
32359 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32360echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32361 flag=no
32362 case "${host}" in
32363 *-aix*)
32364 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32365 flag="-D_THREAD_SAFE"
32366 ;;
32367 *-freebsd*)
32368 flag="-D_THREAD_SAFE"
32369 ;;
32370 *-hp-hpux* )
32371 flag="-D_REENTRANT"
32372 if test "x$GCC" != "xyes"; then
32373 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
32374
32375 LIBS="$LIBS -lcma"
a848cd7e
SC
32376 fi
32377 ;;
32378 *solaris* | alpha*-osf*)
32379 flag="-D_REENTRANT"
32380 ;;
32381 esac
32382 echo "$as_me:$LINENO: result: ${flag}" >&5
32383echo "${ECHO_T}${flag}" >&6
32384 if test "x$flag" != xno; then
32385 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32386 fi
32387
32388 if test "x$THREADS_CFLAGS" != "x"; then
32389 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32390 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32391 fi
32392 fi
32393 fi
32394
32395 if test "$wxUSE_THREADS" = "yes" ; then
32396
32397for ac_func in thr_setconcurrency
32398do
32399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32400echo "$as_me:$LINENO: checking for $ac_func" >&5
32401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32402if eval "test \"\${$as_ac_var+set}\" = set"; then
32403 echo $ECHO_N "(cached) $ECHO_C" >&6
32404else
32405 cat >conftest.$ac_ext <<_ACEOF
32406/* confdefs.h. */
32407_ACEOF
32408cat confdefs.h >>conftest.$ac_ext
32409cat >>conftest.$ac_ext <<_ACEOF
32410/* end confdefs.h. */
32411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32413#define $ac_func innocuous_$ac_func
32414
32415/* System header to define __stub macros and hopefully few prototypes,
32416 which can conflict with char $ac_func (); below.
32417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32418 <limits.h> exists even on freestanding compilers. */
32419
32420#ifdef __STDC__
32421# include <limits.h>
32422#else
32423# include <assert.h>
32424#endif
32425
32426#undef $ac_func
32427
32428/* Override any gcc2 internal prototype to avoid an error. */
32429#ifdef __cplusplus
32430extern "C"
32431{
32432#endif
32433/* We use char because int might match the return type of a gcc2
32434 builtin and then its argument prototype would still apply. */
32435char $ac_func ();
32436/* The GNU C library defines this for functions which it implements
32437 to always fail with ENOSYS. Some functions are actually named
32438 something starting with __ and the normal name is an alias. */
32439#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32440choke me
32441#else
32442char (*f) () = $ac_func;
32443#endif
32444#ifdef __cplusplus
32445}
32446#endif
32447
32448int
32449main ()
32450{
32451return f != $ac_func;
32452 ;
32453 return 0;
32454}
32455_ACEOF
32456rm -f conftest.$ac_objext conftest$ac_exeext
32457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32458 (eval $ac_link) 2>conftest.er1
32459 ac_status=$?
32460 grep -v '^ *+' conftest.er1 >conftest.err
32461 rm -f conftest.er1
32462 cat conftest.err >&5
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); } &&
dcc1b6ad
VS
32465 { ac_try='test -z "$ac_c_werror_flag"
32466 || test ! -s conftest.err'
a848cd7e
SC
32467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32468 (eval $ac_try) 2>&5
32469 ac_status=$?
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); }; } &&
32472 { ac_try='test -s conftest$ac_exeext'
32473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32474 (eval $ac_try) 2>&5
32475 ac_status=$?
32476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477 (exit $ac_status); }; }; then
32478 eval "$as_ac_var=yes"
32479else
32480 echo "$as_me: failed program was:" >&5
32481sed 's/^/| /' conftest.$ac_ext >&5
32482
32483eval "$as_ac_var=no"
32484fi
32485rm -f conftest.err conftest.$ac_objext \
32486 conftest$ac_exeext conftest.$ac_ext
32487fi
32488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32489echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32490if test `eval echo '${'$as_ac_var'}'` = yes; then
32491 cat >>confdefs.h <<_ACEOF
32492#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32493_ACEOF
32494
32495fi
32496done
32497
32498
32499
32500for ac_header in sched.h
32501do
32502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32503if eval "test \"\${$as_ac_Header+set}\" = set"; then
32504 echo "$as_me:$LINENO: checking for $ac_header" >&5
32505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32506if eval "test \"\${$as_ac_Header+set}\" = set"; then
32507 echo $ECHO_N "(cached) $ECHO_C" >&6
32508fi
32509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32511else
32512 # Is the header compilable?
32513echo "$as_me:$LINENO: checking $ac_header usability" >&5
32514echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32515cat >conftest.$ac_ext <<_ACEOF
32516/* confdefs.h. */
32517_ACEOF
32518cat confdefs.h >>conftest.$ac_ext
32519cat >>conftest.$ac_ext <<_ACEOF
32520/* end confdefs.h. */
32521$ac_includes_default
32522#include <$ac_header>
32523_ACEOF
32524rm -f conftest.$ac_objext
32525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32526 (eval $ac_compile) 2>conftest.er1
32527 ac_status=$?
32528 grep -v '^ *+' conftest.er1 >conftest.err
32529 rm -f conftest.er1
32530 cat conftest.err >&5
32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); } &&
dcc1b6ad
VS
32533 { ac_try='test -z "$ac_c_werror_flag"
32534 || test ! -s conftest.err'
a848cd7e
SC
32535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32536 (eval $ac_try) 2>&5
32537 ac_status=$?
32538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539 (exit $ac_status); }; } &&
32540 { ac_try='test -s conftest.$ac_objext'
32541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32542 (eval $ac_try) 2>&5
32543 ac_status=$?
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); }; }; then
32546 ac_header_compiler=yes
32547else
32548 echo "$as_me: failed program was:" >&5
32549sed 's/^/| /' conftest.$ac_ext >&5
32550
32551ac_header_compiler=no
32552fi
32553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32554echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32555echo "${ECHO_T}$ac_header_compiler" >&6
32556
32557# Is the header present?
32558echo "$as_me:$LINENO: checking $ac_header presence" >&5
32559echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32560cat >conftest.$ac_ext <<_ACEOF
32561/* confdefs.h. */
32562_ACEOF
32563cat confdefs.h >>conftest.$ac_ext
32564cat >>conftest.$ac_ext <<_ACEOF
32565/* end confdefs.h. */
32566#include <$ac_header>
32567_ACEOF
32568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32570 ac_status=$?
32571 grep -v '^ *+' conftest.er1 >conftest.err
32572 rm -f conftest.er1
32573 cat conftest.err >&5
32574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575 (exit $ac_status); } >/dev/null; then
32576 if test -s conftest.err; then
32577 ac_cpp_err=$ac_c_preproc_warn_flag
32578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32579 else
32580 ac_cpp_err=
32581 fi
32582else
32583 ac_cpp_err=yes
32584fi
32585if test -z "$ac_cpp_err"; then
32586 ac_header_preproc=yes
32587else
32588 echo "$as_me: failed program was:" >&5
32589sed 's/^/| /' conftest.$ac_ext >&5
32590
32591 ac_header_preproc=no
32592fi
32593rm -f conftest.err conftest.$ac_ext
32594echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32595echo "${ECHO_T}$ac_header_preproc" >&6
32596
32597# So? What about this header?
32598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32599 yes:no: )
32600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32601echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32603echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32604 ac_header_preproc=yes
32605 ;;
32606 no:yes:* )
32607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32608echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32610echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32612echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32614echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32616echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32618echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32619 (
32620 cat <<\_ASBOX
32621## ----------------------------------------- ##
32622## Report this to wx-dev@lists.wxwindows.org ##
32623## ----------------------------------------- ##
32624_ASBOX
32625 ) |
32626 sed "s/^/$as_me: WARNING: /" >&2
32627 ;;
32628esac
32629echo "$as_me:$LINENO: checking for $ac_header" >&5
32630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32631if eval "test \"\${$as_ac_Header+set}\" = set"; then
32632 echo $ECHO_N "(cached) $ECHO_C" >&6
32633else
32634 eval "$as_ac_Header=\$ac_header_preproc"
32635fi
32636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32638
32639fi
32640if test `eval echo '${'$as_ac_Header'}'` = yes; then
32641 cat >>confdefs.h <<_ACEOF
32642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32643_ACEOF
32644
32645fi
32646
32647done
32648
32649 if test "$ac_cv_header_sched_h" = "yes"; then
32650 echo "$as_me:$LINENO: checking for sched_yield" >&5
32651echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32652if test "${ac_cv_func_sched_yield+set}" = set; then
32653 echo $ECHO_N "(cached) $ECHO_C" >&6
32654else
32655 cat >conftest.$ac_ext <<_ACEOF
32656/* confdefs.h. */
32657_ACEOF
32658cat confdefs.h >>conftest.$ac_ext
32659cat >>conftest.$ac_ext <<_ACEOF
32660/* end confdefs.h. */
32661/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32663#define sched_yield innocuous_sched_yield
32664
32665/* System header to define __stub macros and hopefully few prototypes,
32666 which can conflict with char sched_yield (); below.
32667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32668 <limits.h> exists even on freestanding compilers. */
32669
32670#ifdef __STDC__
32671# include <limits.h>
32672#else
32673# include <assert.h>
32674#endif
32675
32676#undef sched_yield
32677
32678/* Override any gcc2 internal prototype to avoid an error. */
32679#ifdef __cplusplus
32680extern "C"
32681{
32682#endif
32683/* We use char because int might match the return type of a gcc2
32684 builtin and then its argument prototype would still apply. */
32685char sched_yield ();
32686/* The GNU C library defines this for functions which it implements
32687 to always fail with ENOSYS. Some functions are actually named
32688 something starting with __ and the normal name is an alias. */
32689#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32690choke me
32691#else
32692char (*f) () = sched_yield;
32693#endif
32694#ifdef __cplusplus
32695}
32696#endif
32697
32698int
32699main ()
32700{
32701return f != sched_yield;
32702 ;
32703 return 0;
32704}
32705_ACEOF
32706rm -f conftest.$ac_objext conftest$ac_exeext
32707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32708 (eval $ac_link) 2>conftest.er1
32709 ac_status=$?
32710 grep -v '^ *+' conftest.er1 >conftest.err
32711 rm -f conftest.er1
32712 cat conftest.err >&5
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); } &&
dcc1b6ad
VS
32715 { ac_try='test -z "$ac_c_werror_flag"
32716 || test ! -s conftest.err'
a848cd7e
SC
32717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32718 (eval $ac_try) 2>&5
32719 ac_status=$?
32720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721 (exit $ac_status); }; } &&
32722 { ac_try='test -s conftest$ac_exeext'
32723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32724 (eval $ac_try) 2>&5
32725 ac_status=$?
32726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727 (exit $ac_status); }; }; then
32728 ac_cv_func_sched_yield=yes
32729else
32730 echo "$as_me: failed program was:" >&5
32731sed 's/^/| /' conftest.$ac_ext >&5
32732
32733ac_cv_func_sched_yield=no
32734fi
32735rm -f conftest.err conftest.$ac_objext \
32736 conftest$ac_exeext conftest.$ac_ext
32737fi
32738echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32739echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32740if test $ac_cv_func_sched_yield = yes; then
32741 cat >>confdefs.h <<\_ACEOF
32742#define HAVE_SCHED_YIELD 1
32743_ACEOF
32744
32745else
32746
32747 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32748echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32749if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32750 echo $ECHO_N "(cached) $ECHO_C" >&6
32751else
32752 ac_check_lib_save_LIBS=$LIBS
32753LIBS="-lposix4 $LIBS"
32754cat >conftest.$ac_ext <<_ACEOF
32755/* confdefs.h. */
32756_ACEOF
32757cat confdefs.h >>conftest.$ac_ext
32758cat >>conftest.$ac_ext <<_ACEOF
32759/* end confdefs.h. */
32760
32761/* Override any gcc2 internal prototype to avoid an error. */
32762#ifdef __cplusplus
32763extern "C"
32764#endif
32765/* We use char because int might match the return type of a gcc2
32766 builtin and then its argument prototype would still apply. */
32767char sched_yield ();
32768int
32769main ()
32770{
32771sched_yield ();
32772 ;
32773 return 0;
32774}
32775_ACEOF
32776rm -f conftest.$ac_objext conftest$ac_exeext
32777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32778 (eval $ac_link) 2>conftest.er1
32779 ac_status=$?
32780 grep -v '^ *+' conftest.er1 >conftest.err
32781 rm -f conftest.er1
32782 cat conftest.err >&5
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); } &&
dcc1b6ad
VS
32785 { ac_try='test -z "$ac_c_werror_flag"
32786 || test ! -s conftest.err'
a848cd7e
SC
32787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32788 (eval $ac_try) 2>&5
32789 ac_status=$?
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); }; } &&
32792 { ac_try='test -s conftest$ac_exeext'
32793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32794 (eval $ac_try) 2>&5
32795 ac_status=$?
32796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797 (exit $ac_status); }; }; then
32798 ac_cv_lib_posix4_sched_yield=yes
32799else
32800 echo "$as_me: failed program was:" >&5
32801sed 's/^/| /' conftest.$ac_ext >&5
32802
32803ac_cv_lib_posix4_sched_yield=no
32804fi
32805rm -f conftest.err conftest.$ac_objext \
32806 conftest$ac_exeext conftest.$ac_ext
32807LIBS=$ac_check_lib_save_LIBS
32808fi
32809echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32810echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32811if test $ac_cv_lib_posix4_sched_yield = yes; then
32812 cat >>confdefs.h <<\_ACEOF
32813#define HAVE_SCHED_YIELD 1
32814_ACEOF
32815 POSIX4_LINK=" -lposix4"
32816else
32817 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32818echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32819
32820fi
32821
32822
32823
32824fi
32825
32826 fi
32827
32828 HAVE_PRIOR_FUNCS=0
32829 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32830echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32831if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32832 echo $ECHO_N "(cached) $ECHO_C" >&6
32833else
32834 cat >conftest.$ac_ext <<_ACEOF
32835/* confdefs.h. */
32836_ACEOF
32837cat confdefs.h >>conftest.$ac_ext
32838cat >>conftest.$ac_ext <<_ACEOF
32839/* end confdefs.h. */
32840/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32842#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32843
32844/* System header to define __stub macros and hopefully few prototypes,
32845 which can conflict with char pthread_attr_getschedpolicy (); below.
32846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32847 <limits.h> exists even on freestanding compilers. */
32848
32849#ifdef __STDC__
32850# include <limits.h>
32851#else
32852# include <assert.h>
32853#endif
32854
32855#undef pthread_attr_getschedpolicy
32856
32857/* Override any gcc2 internal prototype to avoid an error. */
32858#ifdef __cplusplus
32859extern "C"
32860{
32861#endif
32862/* We use char because int might match the return type of a gcc2
32863 builtin and then its argument prototype would still apply. */
32864char pthread_attr_getschedpolicy ();
32865/* The GNU C library defines this for functions which it implements
32866 to always fail with ENOSYS. Some functions are actually named
32867 something starting with __ and the normal name is an alias. */
32868#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32869choke me
32870#else
32871char (*f) () = pthread_attr_getschedpolicy;
32872#endif
32873#ifdef __cplusplus
32874}
32875#endif
32876
32877int
32878main ()
32879{
32880return f != pthread_attr_getschedpolicy;
32881 ;
32882 return 0;
32883}
32884_ACEOF
32885rm -f conftest.$ac_objext conftest$ac_exeext
32886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32887 (eval $ac_link) 2>conftest.er1
32888 ac_status=$?
32889 grep -v '^ *+' conftest.er1 >conftest.err
32890 rm -f conftest.er1
32891 cat conftest.err >&5
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); } &&
dcc1b6ad
VS
32894 { ac_try='test -z "$ac_c_werror_flag"
32895 || test ! -s conftest.err'
a848cd7e
SC
32896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32897 (eval $ac_try) 2>&5
32898 ac_status=$?
32899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900 (exit $ac_status); }; } &&
32901 { ac_try='test -s conftest$ac_exeext'
32902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32903 (eval $ac_try) 2>&5
32904 ac_status=$?
32905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); }; }; then
32907 ac_cv_func_pthread_attr_getschedpolicy=yes
32908else
32909 echo "$as_me: failed program was:" >&5
32910sed 's/^/| /' conftest.$ac_ext >&5
32911
32912ac_cv_func_pthread_attr_getschedpolicy=no
32913fi
32914rm -f conftest.err conftest.$ac_objext \
32915 conftest$ac_exeext conftest.$ac_ext
32916fi
32917echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32918echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32919if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32920 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32921echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32922if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32923 echo $ECHO_N "(cached) $ECHO_C" >&6
32924else
32925 cat >conftest.$ac_ext <<_ACEOF
32926/* confdefs.h. */
32927_ACEOF
32928cat confdefs.h >>conftest.$ac_ext
32929cat >>conftest.$ac_ext <<_ACEOF
32930/* end confdefs.h. */
32931/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32933#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32934
32935/* System header to define __stub macros and hopefully few prototypes,
32936 which can conflict with char pthread_attr_setschedparam (); below.
32937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32938 <limits.h> exists even on freestanding compilers. */
32939
32940#ifdef __STDC__
32941# include <limits.h>
32942#else
32943# include <assert.h>
32944#endif
32945
32946#undef pthread_attr_setschedparam
32947
32948/* Override any gcc2 internal prototype to avoid an error. */
32949#ifdef __cplusplus
32950extern "C"
32951{
32952#endif
32953/* We use char because int might match the return type of a gcc2
32954 builtin and then its argument prototype would still apply. */
32955char pthread_attr_setschedparam ();
32956/* The GNU C library defines this for functions which it implements
32957 to always fail with ENOSYS. Some functions are actually named
32958 something starting with __ and the normal name is an alias. */
32959#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32960choke me
32961#else
32962char (*f) () = pthread_attr_setschedparam;
32963#endif
32964#ifdef __cplusplus
32965}
32966#endif
32967
32968int
32969main ()
32970{
32971return f != pthread_attr_setschedparam;
32972 ;
32973 return 0;
32974}
32975_ACEOF
32976rm -f conftest.$ac_objext conftest$ac_exeext
32977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32978 (eval $ac_link) 2>conftest.er1
32979 ac_status=$?
32980 grep -v '^ *+' conftest.er1 >conftest.err
32981 rm -f conftest.er1
32982 cat conftest.err >&5
32983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32984 (exit $ac_status); } &&
dcc1b6ad
VS
32985 { ac_try='test -z "$ac_c_werror_flag"
32986 || test ! -s conftest.err'
a848cd7e
SC
32987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32988 (eval $ac_try) 2>&5
32989 ac_status=$?
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; } &&
32992 { ac_try='test -s conftest$ac_exeext'
32993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32994 (eval $ac_try) 2>&5
32995 ac_status=$?
32996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997 (exit $ac_status); }; }; then
32998 ac_cv_func_pthread_attr_setschedparam=yes
32999else
33000 echo "$as_me: failed program was:" >&5
33001sed 's/^/| /' conftest.$ac_ext >&5
33002
33003ac_cv_func_pthread_attr_setschedparam=no
33004fi
33005rm -f conftest.err conftest.$ac_objext \
33006 conftest$ac_exeext conftest.$ac_ext
33007fi
33008echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33009echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33010if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33011 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33012echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33013if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33014 echo $ECHO_N "(cached) $ECHO_C" >&6
33015else
33016 cat >conftest.$ac_ext <<_ACEOF
33017/* confdefs.h. */
33018_ACEOF
33019cat confdefs.h >>conftest.$ac_ext
33020cat >>conftest.$ac_ext <<_ACEOF
33021/* end confdefs.h. */
33022/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33024#define sched_get_priority_max innocuous_sched_get_priority_max
33025
33026/* System header to define __stub macros and hopefully few prototypes,
33027 which can conflict with char sched_get_priority_max (); below.
33028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33029 <limits.h> exists even on freestanding compilers. */
33030
33031#ifdef __STDC__
33032# include <limits.h>
33033#else
33034# include <assert.h>
33035#endif
33036
33037#undef sched_get_priority_max
33038
33039/* Override any gcc2 internal prototype to avoid an error. */
33040#ifdef __cplusplus
33041extern "C"
33042{
33043#endif
33044/* We use char because int might match the return type of a gcc2
33045 builtin and then its argument prototype would still apply. */
33046char sched_get_priority_max ();
33047/* The GNU C library defines this for functions which it implements
33048 to always fail with ENOSYS. Some functions are actually named
33049 something starting with __ and the normal name is an alias. */
33050#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33051choke me
33052#else
33053char (*f) () = sched_get_priority_max;
33054#endif
33055#ifdef __cplusplus
33056}
33057#endif
33058
33059int
33060main ()
33061{
33062return f != sched_get_priority_max;
33063 ;
33064 return 0;
33065}
33066_ACEOF
33067rm -f conftest.$ac_objext conftest$ac_exeext
33068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33069 (eval $ac_link) 2>conftest.er1
33070 ac_status=$?
33071 grep -v '^ *+' conftest.er1 >conftest.err
33072 rm -f conftest.er1
33073 cat conftest.err >&5
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); } &&
dcc1b6ad
VS
33076 { ac_try='test -z "$ac_c_werror_flag"
33077 || test ! -s conftest.err'
a848cd7e
SC
33078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33079 (eval $ac_try) 2>&5
33080 ac_status=$?
33081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082 (exit $ac_status); }; } &&
33083 { ac_try='test -s conftest$ac_exeext'
33084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33085 (eval $ac_try) 2>&5
33086 ac_status=$?
33087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088 (exit $ac_status); }; }; then
33089 ac_cv_func_sched_get_priority_max=yes
33090else
33091 echo "$as_me: failed program was:" >&5
33092sed 's/^/| /' conftest.$ac_ext >&5
33093
33094ac_cv_func_sched_get_priority_max=no
33095fi
33096rm -f conftest.err conftest.$ac_objext \
33097 conftest$ac_exeext conftest.$ac_ext
33098fi
33099echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33100echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33101if test $ac_cv_func_sched_get_priority_max = yes; then
33102 HAVE_PRIOR_FUNCS=1
33103else
33104 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33105echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33106if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33107 echo $ECHO_N "(cached) $ECHO_C" >&6
33108else
33109 ac_check_lib_save_LIBS=$LIBS
33110LIBS="-lposix4 $LIBS"
33111cat >conftest.$ac_ext <<_ACEOF
33112/* confdefs.h. */
33113_ACEOF
33114cat confdefs.h >>conftest.$ac_ext
33115cat >>conftest.$ac_ext <<_ACEOF
33116/* end confdefs.h. */
33117
33118/* Override any gcc2 internal prototype to avoid an error. */
33119#ifdef __cplusplus
33120extern "C"
33121#endif
33122/* We use char because int might match the return type of a gcc2
33123 builtin and then its argument prototype would still apply. */
33124char sched_get_priority_max ();
33125int
33126main ()
33127{
33128sched_get_priority_max ();
33129 ;
33130 return 0;
33131}
33132_ACEOF
33133rm -f conftest.$ac_objext conftest$ac_exeext
33134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33135 (eval $ac_link) 2>conftest.er1
33136 ac_status=$?
33137 grep -v '^ *+' conftest.er1 >conftest.err
33138 rm -f conftest.er1
33139 cat conftest.err >&5
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); } &&
dcc1b6ad
VS
33142 { ac_try='test -z "$ac_c_werror_flag"
33143 || test ! -s conftest.err'
a848cd7e
SC
33144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33145 (eval $ac_try) 2>&5
33146 ac_status=$?
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); }; } &&
33149 { ac_try='test -s conftest$ac_exeext'
33150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33151 (eval $ac_try) 2>&5
33152 ac_status=$?
33153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33154 (exit $ac_status); }; }; then
33155 ac_cv_lib_posix4_sched_get_priority_max=yes
33156else
33157 echo "$as_me: failed program was:" >&5
33158sed 's/^/| /' conftest.$ac_ext >&5
33159
33160ac_cv_lib_posix4_sched_get_priority_max=no
33161fi
33162rm -f conftest.err conftest.$ac_objext \
33163 conftest$ac_exeext conftest.$ac_ext
33164LIBS=$ac_check_lib_save_LIBS
33165fi
33166echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33167echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33168if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33169
33170 HAVE_PRIOR_FUNCS=1
33171 POSIX4_LINK=" -lposix4"
33172
33173fi
33174
33175
33176fi
33177
33178
33179fi
33180
33181
33182fi
33183
33184
33185 if test "$HAVE_PRIOR_FUNCS" = 1; then
33186 cat >>confdefs.h <<\_ACEOF
33187#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33188_ACEOF
33189
33190 else
33191 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33192echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33193 fi
33194
33195 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33196echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33197if test "${ac_cv_func_pthread_cancel+set}" = set; then
33198 echo $ECHO_N "(cached) $ECHO_C" >&6
33199else
33200 cat >conftest.$ac_ext <<_ACEOF
33201/* confdefs.h. */
33202_ACEOF
33203cat confdefs.h >>conftest.$ac_ext
33204cat >>conftest.$ac_ext <<_ACEOF
33205/* end confdefs.h. */
33206/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33208#define pthread_cancel innocuous_pthread_cancel
33209
33210/* System header to define __stub macros and hopefully few prototypes,
33211 which can conflict with char pthread_cancel (); below.
33212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33213 <limits.h> exists even on freestanding compilers. */
33214
33215#ifdef __STDC__
33216# include <limits.h>
33217#else
33218# include <assert.h>
33219#endif
33220
33221#undef pthread_cancel
33222
33223/* Override any gcc2 internal prototype to avoid an error. */
33224#ifdef __cplusplus
33225extern "C"
33226{
33227#endif
33228/* We use char because int might match the return type of a gcc2
33229 builtin and then its argument prototype would still apply. */
33230char pthread_cancel ();
33231/* The GNU C library defines this for functions which it implements
33232 to always fail with ENOSYS. Some functions are actually named
33233 something starting with __ and the normal name is an alias. */
33234#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33235choke me
33236#else
33237char (*f) () = pthread_cancel;
33238#endif
33239#ifdef __cplusplus
33240}
33241#endif
33242
33243int
33244main ()
33245{
33246return f != pthread_cancel;
33247 ;
33248 return 0;
33249}
33250_ACEOF
33251rm -f conftest.$ac_objext conftest$ac_exeext
33252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33253 (eval $ac_link) 2>conftest.er1
33254 ac_status=$?
33255 grep -v '^ *+' conftest.er1 >conftest.err
33256 rm -f conftest.er1
33257 cat conftest.err >&5
33258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33259 (exit $ac_status); } &&
dcc1b6ad
VS
33260 { ac_try='test -z "$ac_c_werror_flag"
33261 || test ! -s conftest.err'
a848cd7e
SC
33262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33263 (eval $ac_try) 2>&5
33264 ac_status=$?
33265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266 (exit $ac_status); }; } &&
33267 { ac_try='test -s conftest$ac_exeext'
33268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33269 (eval $ac_try) 2>&5
33270 ac_status=$?
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); }; }; then
33273 ac_cv_func_pthread_cancel=yes
33274else
33275 echo "$as_me: failed program was:" >&5
33276sed 's/^/| /' conftest.$ac_ext >&5
33277
33278ac_cv_func_pthread_cancel=no
33279fi
33280rm -f conftest.err conftest.$ac_objext \
33281 conftest$ac_exeext conftest.$ac_ext
33282fi
33283echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33284echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33285if test $ac_cv_func_pthread_cancel = yes; then
33286 cat >>confdefs.h <<\_ACEOF
33287#define HAVE_PTHREAD_CANCEL 1
33288_ACEOF
33289
33290else
33291 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33292echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33293fi
33294
33295
33296
33297
33298 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33299echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33300if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33301 echo $ECHO_N "(cached) $ECHO_C" >&6
33302else
33303
33304 cat >conftest.$ac_ext <<_ACEOF
33305/* confdefs.h. */
33306_ACEOF
33307cat confdefs.h >>conftest.$ac_ext
33308cat >>conftest.$ac_ext <<_ACEOF
33309/* end confdefs.h. */
33310#include <pthread.h>
33311int
33312main ()
33313{
33314
33315 pthread_mutexattr_t attr;
33316 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33317
33318 ;
33319 return 0;
33320}
33321_ACEOF
33322rm -f conftest.$ac_objext
33323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33324 (eval $ac_compile) 2>conftest.er1
33325 ac_status=$?
33326 grep -v '^ *+' conftest.er1 >conftest.err
33327 rm -f conftest.er1
33328 cat conftest.err >&5
33329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330 (exit $ac_status); } &&
dcc1b6ad
VS
33331 { ac_try='test -z "$ac_c_werror_flag"
33332 || test ! -s conftest.err'
a848cd7e
SC
33333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33334 (eval $ac_try) 2>&5
33335 ac_status=$?
33336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337 (exit $ac_status); }; } &&
33338 { ac_try='test -s conftest.$ac_objext'
33339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33340 (eval $ac_try) 2>&5
33341 ac_status=$?
33342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343 (exit $ac_status); }; }; then
33344
33345 wx_cv_type_pthread_mutexattr_t=yes
33346
33347else
33348 echo "$as_me: failed program was:" >&5
33349sed 's/^/| /' conftest.$ac_ext >&5
33350
33351
33352 wx_cv_type_pthread_mutexattr_t=no
33353
33354
33355fi
33356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33357
33358fi
33359echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33360echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33361
33362 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33363 cat >>confdefs.h <<\_ACEOF
33364#define HAVE_PTHREAD_MUTEXATTR_T 1
33365_ACEOF
33366
33367 else
33368 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33369echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33370if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33371 echo $ECHO_N "(cached) $ECHO_C" >&6
33372else
33373
33374 cat >conftest.$ac_ext <<_ACEOF
33375/* confdefs.h. */
33376_ACEOF
33377cat confdefs.h >>conftest.$ac_ext
33378cat >>conftest.$ac_ext <<_ACEOF
33379/* end confdefs.h. */
33380#include <pthread.h>
33381int
33382main ()
33383{
33384
33385 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33386
33387 ;
33388 return 0;
33389}
33390_ACEOF
33391rm -f conftest.$ac_objext
33392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33393 (eval $ac_compile) 2>conftest.er1
33394 ac_status=$?
33395 grep -v '^ *+' conftest.er1 >conftest.err
33396 rm -f conftest.er1
33397 cat conftest.err >&5
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); } &&
dcc1b6ad
VS
33400 { ac_try='test -z "$ac_c_werror_flag"
33401 || test ! -s conftest.err'
a848cd7e
SC
33402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33403 (eval $ac_try) 2>&5
33404 ac_status=$?
33405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406 (exit $ac_status); }; } &&
33407 { ac_try='test -s conftest.$ac_objext'
33408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33409 (eval $ac_try) 2>&5
33410 ac_status=$?
33411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412 (exit $ac_status); }; }; then
33413
33414 wx_cv_type_pthread_rec_mutex_init=yes
33415
33416else
33417 echo "$as_me: failed program was:" >&5
33418sed 's/^/| /' conftest.$ac_ext >&5
33419
33420
33421 wx_cv_type_pthread_rec_mutex_init=no
33422
33423
33424fi
33425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33426
33427fi
33428echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33429echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33430 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33431 cat >>confdefs.h <<\_ACEOF
33432#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33433_ACEOF
33434
33435 else
33436 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33437echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33438 fi
33439 fi
33440 fi
33441
33442else
33443 if test "$wxUSE_THREADS" = "yes" ; then
33444 case "${host}" in
33445 *-*-mingw32* )
33446 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33447echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33448if test "${wx_cv_cflags_mthread+set}" = set; then
33449 echo $ECHO_N "(cached) $ECHO_C" >&6
33450else
33451
33452 CFLAGS_OLD="$CFLAGS"
33453 CFLAGS="$CFLAGS -mthreads"
33454 cat >conftest.$ac_ext <<_ACEOF
33455/* confdefs.h. */
33456_ACEOF
33457cat confdefs.h >>conftest.$ac_ext
33458cat >>conftest.$ac_ext <<_ACEOF
33459/* end confdefs.h. */
33460
33461int
33462main ()
33463{
33464
33465 ;
33466 return 0;
33467}
33468_ACEOF
33469rm -f conftest.$ac_objext
33470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33471 (eval $ac_compile) 2>conftest.er1
33472 ac_status=$?
33473 grep -v '^ *+' conftest.er1 >conftest.err
33474 rm -f conftest.er1
33475 cat conftest.err >&5
33476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); } &&
dcc1b6ad
VS
33478 { ac_try='test -z "$ac_c_werror_flag"
33479 || test ! -s conftest.err'
a848cd7e
SC
33480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33481 (eval $ac_try) 2>&5
33482 ac_status=$?
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); }; } &&
33485 { ac_try='test -s conftest.$ac_objext'
33486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33487 (eval $ac_try) 2>&5
33488 ac_status=$?
33489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490 (exit $ac_status); }; }; then
33491 wx_cv_cflags_mthread=yes
33492else
33493 echo "$as_me: failed program was:" >&5
33494sed 's/^/| /' conftest.$ac_ext >&5
33495
33496wx_cv_cflags_mthread=no
33497
33498fi
33499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33500
33501
33502fi
33503echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33504echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33505
33506 if test "$wx_cv_cflags_mthread" = "yes"; then
33507 CXXFLAGS="$CXXFLAGS -mthreads"
33508 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33509 LDFLAGS="$LDFLAGS -mthreads"
33510 else
33511 CFLAGS="$CFLAGS_OLD"
33512 fi
33513 ;;
33514 *-pc-os2*emx )
33515 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33516 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33517 LDFLAGS="$LDFLAGS -Zmt"
33518 ;;
33519 esac
33520 fi
33521fi
33522
33523if test "$wxUSE_THREADS" = "yes"; then
33524 cat >>confdefs.h <<\_ACEOF
33525#define wxUSE_THREADS 1
33526_ACEOF
33527
33528
33529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33530else
33531 if test "$ac_cv_func_strtok_r" = "yes"; then
33532 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33533echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33534 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33535 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33536 echo "$as_me:$LINENO: result: yes" >&5
33537echo "${ECHO_T}yes" >&6
33538 else
33539 echo "$as_me:$LINENO: result: no" >&5
33540echo "${ECHO_T}no" >&6
33541 fi
33542 fi
33543fi
33544
33545if test "$WXGTK20" = 1 ; then
33546 cat >>confdefs.h <<_ACEOF
33547#define __WXGTK20__ $WXGTK20
33548_ACEOF
33549
33550 WXGTK12=1
33551fi
33552
33553if test "$WXGTK12" = 1 ; then
33554 cat >>confdefs.h <<_ACEOF
33555#define __WXGTK12__ $WXGTK12
33556_ACEOF
33557
33558fi
33559
33560if test "$WXGTK127" = 1 ; then
33561 cat >>confdefs.h <<_ACEOF
33562#define __WXGTK127__ $WXGTK127
33563_ACEOF
33564
33565fi
33566
33567if test "$WXGPE" = 1 ; then
33568 cat >>confdefs.h <<_ACEOF
33569#define __WXGPE__ $WXGPE
33570_ACEOF
33571
33572fi
33573
33574WXDEBUG=
33575
33576if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33577 WXDEBUG="-g"
33578 wxUSE_OPTIMISE=no
33579fi
33580
33581if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33582 wxUSE_DEBUG_INFO=yes
33583 WXDEBUG="-ggdb"
33584fi
33585
33586if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33587 cat >>confdefs.h <<\_ACEOF
33588#define WXDEBUG 1
33589_ACEOF
33590
33591 WXDEBUG_DEFINE="-D__WXDEBUG__"
33592else
33593 if test "$wxUSE_GTK" = 1 ; then
33594 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33595 fi
33596fi
33597
33598if test "$wxUSE_MEM_TRACING" = "yes" ; then
33599 cat >>confdefs.h <<\_ACEOF
33600#define wxUSE_MEMORY_TRACING 1
33601_ACEOF
33602
33603 cat >>confdefs.h <<\_ACEOF
33604#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33605_ACEOF
33606
33607 cat >>confdefs.h <<\_ACEOF
33608#define wxUSE_DEBUG_NEW_ALWAYS 1
33609_ACEOF
33610
33611 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33612fi
33613
33614if test "$wxUSE_DMALLOC" = "yes" ; then
33615 DMALLOC_LIBS="-ldmalloc"
33616fi
33617
33618PROFILE=
33619if test "$wxUSE_PROFILE" = "yes" ; then
33620 PROFILE=" -pg"
33621fi
33622
33623CODE_GEN_FLAGS=
33624CODE_GEN_FLAGS_CXX=
33625if test "$GCC" = "yes" ; then
33626 if test "$wxUSE_NO_RTTI" = "yes" ; then
33627 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33628 fi
33629 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33630 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33631 fi
33632 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33633 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33634 fi
33635
33636 case "${host}" in
33637 powerpc*-*-aix* )
33638 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33639 ;;
33640 *-hppa* )
33641 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33642 ;;
33643 esac
33644fi
33645
33646OPTIMISE=
33647if test "$wxUSE_OPTIMISE" = "no" ; then
33648 if test "$GCC" = yes ; then
33649 OPTIMISE="-O0"
33650 fi
33651else
33652 if test "$GCC" = yes ; then
33653 OPTIMISE="-O2"
33654
33655 case "${host}" in
33656 i586-*-*|i686-*-* )
33657 OPTIMISE="${OPTIMISE} "
33658 ;;
33659 esac
33660 else
33661 OPTIMISE="-O"
33662 fi
33663fi
33664
33665
33666if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33667 cat >>confdefs.h <<\_ACEOF
33668#define WXWIN_COMPATIBILITY_2_2 1
33669_ACEOF
33670
33671
33672 WXWIN_COMPATIBILITY_2_4="yes"
33673fi
33674
33675if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33676 cat >>confdefs.h <<\_ACEOF
33677#define WXWIN_COMPATIBILITY_2_4 1
33678_ACEOF
33679
33680fi
33681
33682
33683if test "$wxUSE_GUI" = "yes"; then
33684 cat >>confdefs.h <<\_ACEOF
33685#define wxUSE_GUI 1
33686_ACEOF
33687
33688
33689 else
33690 cat >>confdefs.h <<\_ACEOF
33691#define wxUSE_NOGUI 1
33692_ACEOF
33693
33694fi
33695
33696
33697if test "$wxUSE_UNIX" = "yes"; then
33698 cat >>confdefs.h <<\_ACEOF
33699#define wxUSE_UNIX 1
33700_ACEOF
33701
33702fi
33703
33704
33705if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33706
33707 HAVE_DL_FUNCS=0
33708 HAVE_SHL_FUNCS=0
33709 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33710 if test "$USE_DARWIN" = 1; then
33711 HAVE_DL_FUNCS=1
33712 else
33713
33714for ac_func in dlopen
33715do
33716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33717echo "$as_me:$LINENO: checking for $ac_func" >&5
33718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33719if eval "test \"\${$as_ac_var+set}\" = set"; then
33720 echo $ECHO_N "(cached) $ECHO_C" >&6
33721else
33722 cat >conftest.$ac_ext <<_ACEOF
33723/* confdefs.h. */
33724_ACEOF
33725cat confdefs.h >>conftest.$ac_ext
33726cat >>conftest.$ac_ext <<_ACEOF
33727/* end confdefs.h. */
33728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33730#define $ac_func innocuous_$ac_func
33731
33732/* System header to define __stub macros and hopefully few prototypes,
33733 which can conflict with char $ac_func (); below.
33734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33735 <limits.h> exists even on freestanding compilers. */
33736
33737#ifdef __STDC__
33738# include <limits.h>
33739#else
33740# include <assert.h>
33741#endif
33742
33743#undef $ac_func
33744
33745/* Override any gcc2 internal prototype to avoid an error. */
33746#ifdef __cplusplus
33747extern "C"
33748{
33749#endif
33750/* We use char because int might match the return type of a gcc2
33751 builtin and then its argument prototype would still apply. */
33752char $ac_func ();
33753/* The GNU C library defines this for functions which it implements
33754 to always fail with ENOSYS. Some functions are actually named
33755 something starting with __ and the normal name is an alias. */
33756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33757choke me
33758#else
33759char (*f) () = $ac_func;
33760#endif
33761#ifdef __cplusplus
33762}
33763#endif
33764
33765int
33766main ()
33767{
33768return f != $ac_func;
33769 ;
33770 return 0;
33771}
33772_ACEOF
33773rm -f conftest.$ac_objext conftest$ac_exeext
33774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33775 (eval $ac_link) 2>conftest.er1
33776 ac_status=$?
33777 grep -v '^ *+' conftest.er1 >conftest.err
33778 rm -f conftest.er1
33779 cat conftest.err >&5
33780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33781 (exit $ac_status); } &&
dcc1b6ad
VS
33782 { ac_try='test -z "$ac_c_werror_flag"
33783 || test ! -s conftest.err'
a848cd7e
SC
33784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33785 (eval $ac_try) 2>&5
33786 ac_status=$?
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); }; } &&
33789 { ac_try='test -s conftest$ac_exeext'
33790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33791 (eval $ac_try) 2>&5
33792 ac_status=$?
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); }; }; then
33795 eval "$as_ac_var=yes"
33796else
33797 echo "$as_me: failed program was:" >&5
33798sed 's/^/| /' conftest.$ac_ext >&5
33799
33800eval "$as_ac_var=no"
33801fi
33802rm -f conftest.err conftest.$ac_objext \
33803 conftest$ac_exeext conftest.$ac_ext
33804fi
33805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33806echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33807if test `eval echo '${'$as_ac_var'}'` = yes; then
33808 cat >>confdefs.h <<_ACEOF
33809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33810_ACEOF
33811
33812 cat >>confdefs.h <<\_ACEOF
33813#define HAVE_DLOPEN 1
33814_ACEOF
33815
33816 HAVE_DL_FUNCS=1
33817
33818else
33819
33820 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33821echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33822if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33823 echo $ECHO_N "(cached) $ECHO_C" >&6
33824else
33825 ac_check_lib_save_LIBS=$LIBS
33826LIBS="-ldl $LIBS"
33827cat >conftest.$ac_ext <<_ACEOF
33828/* confdefs.h. */
33829_ACEOF
33830cat confdefs.h >>conftest.$ac_ext
33831cat >>conftest.$ac_ext <<_ACEOF
33832/* end confdefs.h. */
33833
33834/* Override any gcc2 internal prototype to avoid an error. */
33835#ifdef __cplusplus
33836extern "C"
33837#endif
33838/* We use char because int might match the return type of a gcc2
33839 builtin and then its argument prototype would still apply. */
33840char dlopen ();
33841int
33842main ()
33843{
33844dlopen ();
33845 ;
33846 return 0;
33847}
33848_ACEOF
33849rm -f conftest.$ac_objext conftest$ac_exeext
33850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33851 (eval $ac_link) 2>conftest.er1
33852 ac_status=$?
33853 grep -v '^ *+' conftest.er1 >conftest.err
33854 rm -f conftest.er1
33855 cat conftest.err >&5
33856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33857 (exit $ac_status); } &&
dcc1b6ad
VS
33858 { ac_try='test -z "$ac_c_werror_flag"
33859 || test ! -s conftest.err'
a848cd7e
SC
33860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33861 (eval $ac_try) 2>&5
33862 ac_status=$?
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); }; } &&
33865 { ac_try='test -s conftest$ac_exeext'
33866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33867 (eval $ac_try) 2>&5
33868 ac_status=$?
33869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870 (exit $ac_status); }; }; then
33871 ac_cv_lib_dl_dlopen=yes
33872else
33873 echo "$as_me: failed program was:" >&5
33874sed 's/^/| /' conftest.$ac_ext >&5
33875
33876ac_cv_lib_dl_dlopen=no
33877fi
33878rm -f conftest.err conftest.$ac_objext \
33879 conftest$ac_exeext conftest.$ac_ext
33880LIBS=$ac_check_lib_save_LIBS
33881fi
33882echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33883echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33884if test $ac_cv_lib_dl_dlopen = yes; then
33885
33886 cat >>confdefs.h <<\_ACEOF
33887#define HAVE_DLOPEN 1
33888_ACEOF
33889
33890 HAVE_DL_FUNCS=1
33891 DL_LINK=" -ldl$DL_LINK"
33892
33893else
33894
33895
33896for ac_func in shl_load
33897do
33898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33899echo "$as_me:$LINENO: checking for $ac_func" >&5
33900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33901if eval "test \"\${$as_ac_var+set}\" = set"; then
33902 echo $ECHO_N "(cached) $ECHO_C" >&6
33903else
33904 cat >conftest.$ac_ext <<_ACEOF
33905/* confdefs.h. */
33906_ACEOF
33907cat confdefs.h >>conftest.$ac_ext
33908cat >>conftest.$ac_ext <<_ACEOF
33909/* end confdefs.h. */
33910/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33912#define $ac_func innocuous_$ac_func
33913
33914/* System header to define __stub macros and hopefully few prototypes,
33915 which can conflict with char $ac_func (); below.
33916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33917 <limits.h> exists even on freestanding compilers. */
33918
33919#ifdef __STDC__
33920# include <limits.h>
33921#else
33922# include <assert.h>
33923#endif
33924
33925#undef $ac_func
33926
33927/* Override any gcc2 internal prototype to avoid an error. */
33928#ifdef __cplusplus
33929extern "C"
33930{
33931#endif
33932/* We use char because int might match the return type of a gcc2
33933 builtin and then its argument prototype would still apply. */
33934char $ac_func ();
33935/* The GNU C library defines this for functions which it implements
33936 to always fail with ENOSYS. Some functions are actually named
33937 something starting with __ and the normal name is an alias. */
33938#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33939choke me
33940#else
33941char (*f) () = $ac_func;
33942#endif
33943#ifdef __cplusplus
33944}
33945#endif
33946
33947int
33948main ()
33949{
33950return f != $ac_func;
33951 ;
33952 return 0;
33953}
33954_ACEOF
33955rm -f conftest.$ac_objext conftest$ac_exeext
33956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33957 (eval $ac_link) 2>conftest.er1
33958 ac_status=$?
33959 grep -v '^ *+' conftest.er1 >conftest.err
33960 rm -f conftest.er1
33961 cat conftest.err >&5
33962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963 (exit $ac_status); } &&
dcc1b6ad
VS
33964 { ac_try='test -z "$ac_c_werror_flag"
33965 || test ! -s conftest.err'
a848cd7e
SC
33966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33967 (eval $ac_try) 2>&5
33968 ac_status=$?
33969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970 (exit $ac_status); }; } &&
33971 { ac_try='test -s conftest$ac_exeext'
33972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33973 (eval $ac_try) 2>&5
33974 ac_status=$?
33975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); }; }; then
33977 eval "$as_ac_var=yes"
33978else
33979 echo "$as_me: failed program was:" >&5
33980sed 's/^/| /' conftest.$ac_ext >&5
33981
33982eval "$as_ac_var=no"
33983fi
33984rm -f conftest.err conftest.$ac_objext \
33985 conftest$ac_exeext conftest.$ac_ext
33986fi
33987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33988echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33989if test `eval echo '${'$as_ac_var'}'` = yes; then
33990 cat >>confdefs.h <<_ACEOF
33991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33992_ACEOF
33993
33994 cat >>confdefs.h <<\_ACEOF
33995#define HAVE_SHL_LOAD 1
33996_ACEOF
33997
33998 HAVE_SHL_FUNCS=1
33999
34000else
34001
34002 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34003echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34004if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34005 echo $ECHO_N "(cached) $ECHO_C" >&6
34006else
34007 ac_check_lib_save_LIBS=$LIBS
34008LIBS="-lshl_load $LIBS"
34009cat >conftest.$ac_ext <<_ACEOF
34010/* confdefs.h. */
34011_ACEOF
34012cat confdefs.h >>conftest.$ac_ext
34013cat >>conftest.$ac_ext <<_ACEOF
34014/* end confdefs.h. */
34015
34016/* Override any gcc2 internal prototype to avoid an error. */
34017#ifdef __cplusplus
34018extern "C"
34019#endif
34020/* We use char because int might match the return type of a gcc2
34021 builtin and then its argument prototype would still apply. */
34022char dld ();
34023int
34024main ()
34025{
34026dld ();
34027 ;
34028 return 0;
34029}
34030_ACEOF
34031rm -f conftest.$ac_objext conftest$ac_exeext
34032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34033 (eval $ac_link) 2>conftest.er1
34034 ac_status=$?
34035 grep -v '^ *+' conftest.er1 >conftest.err
34036 rm -f conftest.er1
34037 cat conftest.err >&5
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); } &&
dcc1b6ad
VS
34040 { ac_try='test -z "$ac_c_werror_flag"
34041 || test ! -s conftest.err'
a848cd7e
SC
34042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34043 (eval $ac_try) 2>&5
34044 ac_status=$?
34045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046 (exit $ac_status); }; } &&
34047 { ac_try='test -s conftest$ac_exeext'
34048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34049 (eval $ac_try) 2>&5
34050 ac_status=$?
34051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34052 (exit $ac_status); }; }; then
34053 ac_cv_lib_shl_load_dld=yes
34054else
34055 echo "$as_me: failed program was:" >&5
34056sed 's/^/| /' conftest.$ac_ext >&5
34057
34058ac_cv_lib_shl_load_dld=no
34059fi
34060rm -f conftest.err conftest.$ac_objext \
34061 conftest$ac_exeext conftest.$ac_ext
34062LIBS=$ac_check_lib_save_LIBS
34063fi
34064echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34065echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34066if test $ac_cv_lib_shl_load_dld = yes; then
34067
34068 HAVE_SHL_FUNCS=1
34069 DL_LINK=" -ldld$DL_LINK"
34070
34071fi
34072
34073
34074fi
34075done
34076
34077
34078fi
34079
34080
34081fi
34082done
34083
34084
34085 if test "$HAVE_DL_FUNCS" = 1; then
34086
34087for ac_func in dlerror
34088do
34089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34090echo "$as_me:$LINENO: checking for $ac_func" >&5
34091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34092if eval "test \"\${$as_ac_var+set}\" = set"; then
34093 echo $ECHO_N "(cached) $ECHO_C" >&6
34094else
34095 cat >conftest.$ac_ext <<_ACEOF
34096/* confdefs.h. */
34097_ACEOF
34098cat confdefs.h >>conftest.$ac_ext
34099cat >>conftest.$ac_ext <<_ACEOF
34100/* end confdefs.h. */
34101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34103#define $ac_func innocuous_$ac_func
34104
34105/* System header to define __stub macros and hopefully few prototypes,
34106 which can conflict with char $ac_func (); below.
34107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34108 <limits.h> exists even on freestanding compilers. */
34109
34110#ifdef __STDC__
34111# include <limits.h>
34112#else
34113# include <assert.h>
34114#endif
34115
34116#undef $ac_func
34117
34118/* Override any gcc2 internal prototype to avoid an error. */
34119#ifdef __cplusplus
34120extern "C"
34121{
34122#endif
34123/* We use char because int might match the return type of a gcc2
34124 builtin and then its argument prototype would still apply. */
34125char $ac_func ();
34126/* The GNU C library defines this for functions which it implements
34127 to always fail with ENOSYS. Some functions are actually named
34128 something starting with __ and the normal name is an alias. */
34129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34130choke me
34131#else
34132char (*f) () = $ac_func;
34133#endif
34134#ifdef __cplusplus
34135}
34136#endif
34137
34138int
34139main ()
34140{
34141return f != $ac_func;
34142 ;
34143 return 0;
34144}
34145_ACEOF
34146rm -f conftest.$ac_objext conftest$ac_exeext
34147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34148 (eval $ac_link) 2>conftest.er1
34149 ac_status=$?
34150 grep -v '^ *+' conftest.er1 >conftest.err
34151 rm -f conftest.er1
34152 cat conftest.err >&5
34153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34154 (exit $ac_status); } &&
dcc1b6ad
VS
34155 { ac_try='test -z "$ac_c_werror_flag"
34156 || test ! -s conftest.err'
a848cd7e
SC
34157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34158 (eval $ac_try) 2>&5
34159 ac_status=$?
34160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161 (exit $ac_status); }; } &&
34162 { ac_try='test -s conftest$ac_exeext'
34163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34164 (eval $ac_try) 2>&5
34165 ac_status=$?
34166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167 (exit $ac_status); }; }; then
34168 eval "$as_ac_var=yes"
34169else
34170 echo "$as_me: failed program was:" >&5
34171sed 's/^/| /' conftest.$ac_ext >&5
34172
34173eval "$as_ac_var=no"
34174fi
34175rm -f conftest.err conftest.$ac_objext \
34176 conftest$ac_exeext conftest.$ac_ext
34177fi
34178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34180if test `eval echo '${'$as_ac_var'}'` = yes; then
34181 cat >>confdefs.h <<_ACEOF
34182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34183_ACEOF
34184 cat >>confdefs.h <<\_ACEOF
34185#define HAVE_DLERROR 1
34186_ACEOF
34187
34188else
34189
34190 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34191echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34192if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34193 echo $ECHO_N "(cached) $ECHO_C" >&6
34194else
34195 ac_check_lib_save_LIBS=$LIBS
34196LIBS="-ldl $LIBS"
34197cat >conftest.$ac_ext <<_ACEOF
34198/* confdefs.h. */
34199_ACEOF
34200cat confdefs.h >>conftest.$ac_ext
34201cat >>conftest.$ac_ext <<_ACEOF
34202/* end confdefs.h. */
34203
34204/* Override any gcc2 internal prototype to avoid an error. */
34205#ifdef __cplusplus
34206extern "C"
34207#endif
34208/* We use char because int might match the return type of a gcc2
34209 builtin and then its argument prototype would still apply. */
34210char dlerror ();
34211int
34212main ()
34213{
34214dlerror ();
34215 ;
34216 return 0;
34217}
34218_ACEOF
34219rm -f conftest.$ac_objext conftest$ac_exeext
34220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34221 (eval $ac_link) 2>conftest.er1
34222 ac_status=$?
34223 grep -v '^ *+' conftest.er1 >conftest.err
34224 rm -f conftest.er1
34225 cat conftest.err >&5
34226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227 (exit $ac_status); } &&
dcc1b6ad
VS
34228 { ac_try='test -z "$ac_c_werror_flag"
34229 || test ! -s conftest.err'
a848cd7e
SC
34230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34231 (eval $ac_try) 2>&5
34232 ac_status=$?
34233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234 (exit $ac_status); }; } &&
34235 { ac_try='test -s conftest$ac_exeext'
34236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34237 (eval $ac_try) 2>&5
34238 ac_status=$?
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); }; }; then
34241 ac_cv_lib_dl_dlerror=yes
34242else
34243 echo "$as_me: failed program was:" >&5
34244sed 's/^/| /' conftest.$ac_ext >&5
34245
34246ac_cv_lib_dl_dlerror=no
34247fi
34248rm -f conftest.err conftest.$ac_objext \
34249 conftest$ac_exeext conftest.$ac_ext
34250LIBS=$ac_check_lib_save_LIBS
34251fi
34252echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34253echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34254if test $ac_cv_lib_dl_dlerror = yes; then
34255 cat >>confdefs.h <<\_ACEOF
34256#define HAVE_DLERROR 1
34257_ACEOF
34258
34259fi
34260
34261
34262
34263fi
34264done
34265
34266 fi
34267 fi
34268
34269 if test "$HAVE_DL_FUNCS" = 0; then
34270 if test "$HAVE_SHL_FUNCS" = 0; then
34271 if test "$USE_UNIX" = 1; then
34272 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34273echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34274 wxUSE_DYNAMIC_LOADER=no
34275 wxUSE_DYNLIB_CLASS=no
34276 else
34277 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34278echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34279 fi
34280 fi
34281 fi
34282 fi
34283fi
34284
34285if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34286 cat >>confdefs.h <<\_ACEOF
34287#define wxUSE_DYNAMIC_LOADER 1
34288_ACEOF
34289
34290fi
34291if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34292 cat >>confdefs.h <<\_ACEOF
34293#define wxUSE_DYNLIB_CLASS 1
34294_ACEOF
34295
34296fi
34297
34298
34299
34300if test "$wxUSE_PLUGINS" = "yes" ; then
34301 if test "$wxUSE_SHARED" = "no" ; then
34302 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34303echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34304 wxUSE_PLUGINS=no
34305 fi
34306 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34307 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34308echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34309 wxUSE_PLUGINS=no
34310 fi
34311 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34312 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34313echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34314 wxUSE_PLUGINS=no
34315 fi
34316 if test "$wxUSE_PLUGINS" = "yes" ; then
34317 cat >>confdefs.h <<\_ACEOF
34318#define wxUSE_PLUGINS 1
34319_ACEOF
34320
34321 fi
34322fi
34323
34324
34325if test "$wxUSE_STL" = "yes"; then
34326 cat >>confdefs.h <<\_ACEOF
34327#define wxUSE_STL 1
34328_ACEOF
34329
34330fi
34331
34332if test "$wxUSE_APPLE_IEEE" = "yes"; then
34333 cat >>confdefs.h <<\_ACEOF
34334#define wxUSE_APPLE_IEEE 1
34335_ACEOF
34336
34337fi
34338
34339if test "$wxUSE_TIMER" = "yes"; then
34340 cat >>confdefs.h <<\_ACEOF
34341#define wxUSE_TIMER 1
34342_ACEOF
34343
34344fi
34345
34346WITH_PLUGIN_SDL=0
34347if test "$wxUSE_SOUND" = "yes"; then
34348 if test "$USE_UNIX" = "1" ; then
34349
34350for ac_header in sys/soundcard.h
34351do
34352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34353if eval "test \"\${$as_ac_Header+set}\" = set"; then
34354 echo "$as_me:$LINENO: checking for $ac_header" >&5
34355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34356if eval "test \"\${$as_ac_Header+set}\" = set"; then
34357 echo $ECHO_N "(cached) $ECHO_C" >&6
34358fi
34359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34361else
34362 # Is the header compilable?
34363echo "$as_me:$LINENO: checking $ac_header usability" >&5
34364echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34365cat >conftest.$ac_ext <<_ACEOF
34366/* confdefs.h. */
34367_ACEOF
34368cat confdefs.h >>conftest.$ac_ext
34369cat >>conftest.$ac_ext <<_ACEOF
34370/* end confdefs.h. */
34371$ac_includes_default
34372#include <$ac_header>
34373_ACEOF
34374rm -f conftest.$ac_objext
34375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34376 (eval $ac_compile) 2>conftest.er1
34377 ac_status=$?
34378 grep -v '^ *+' conftest.er1 >conftest.err
34379 rm -f conftest.er1
34380 cat conftest.err >&5
34381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382 (exit $ac_status); } &&
dcc1b6ad
VS
34383 { ac_try='test -z "$ac_c_werror_flag"
34384 || test ! -s conftest.err'
a848cd7e
SC
34385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34386 (eval $ac_try) 2>&5
34387 ac_status=$?
34388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 (exit $ac_status); }; } &&
34390 { ac_try='test -s conftest.$ac_objext'
34391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34392 (eval $ac_try) 2>&5
34393 ac_status=$?
34394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34395 (exit $ac_status); }; }; then
34396 ac_header_compiler=yes
34397else
34398 echo "$as_me: failed program was:" >&5
34399sed 's/^/| /' conftest.$ac_ext >&5
34400
34401ac_header_compiler=no
34402fi
34403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34404echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34405echo "${ECHO_T}$ac_header_compiler" >&6
34406
34407# Is the header present?
34408echo "$as_me:$LINENO: checking $ac_header presence" >&5
34409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34410cat >conftest.$ac_ext <<_ACEOF
34411/* confdefs.h. */
34412_ACEOF
34413cat confdefs.h >>conftest.$ac_ext
34414cat >>conftest.$ac_ext <<_ACEOF
34415/* end confdefs.h. */
34416#include <$ac_header>
34417_ACEOF
34418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34420 ac_status=$?
34421 grep -v '^ *+' conftest.er1 >conftest.err
34422 rm -f conftest.er1
34423 cat conftest.err >&5
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); } >/dev/null; then
34426 if test -s conftest.err; then
34427 ac_cpp_err=$ac_c_preproc_warn_flag
34428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34429 else
34430 ac_cpp_err=
34431 fi
34432else
34433 ac_cpp_err=yes
34434fi
34435if test -z "$ac_cpp_err"; then
34436 ac_header_preproc=yes
34437else
34438 echo "$as_me: failed program was:" >&5
34439sed 's/^/| /' conftest.$ac_ext >&5
34440
34441 ac_header_preproc=no
34442fi
34443rm -f conftest.err conftest.$ac_ext
34444echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34445echo "${ECHO_T}$ac_header_preproc" >&6
34446
34447# So? What about this header?
34448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34449 yes:no: )
34450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34453echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34454 ac_header_preproc=yes
34455 ;;
34456 no:yes:* )
34457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34460echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34462echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34464echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34468echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34469 (
34470 cat <<\_ASBOX
34471## ----------------------------------------- ##
34472## Report this to wx-dev@lists.wxwindows.org ##
34473## ----------------------------------------- ##
34474_ASBOX
34475 ) |
34476 sed "s/^/$as_me: WARNING: /" >&2
34477 ;;
34478esac
34479echo "$as_me:$LINENO: checking for $ac_header" >&5
34480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34481if eval "test \"\${$as_ac_Header+set}\" = set"; then
34482 echo $ECHO_N "(cached) $ECHO_C" >&6
34483else
34484 eval "$as_ac_Header=\$ac_header_preproc"
34485fi
34486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34488
34489fi
34490if test `eval echo '${'$as_ac_Header'}'` = yes; then
34491 cat >>confdefs.h <<_ACEOF
34492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34493_ACEOF
34494
34495fi
34496
34497done
34498
34499
34500 if test "$wxUSE_LIBSDL" != "no"; then
34501
34502# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34503if test "${with_sdl_prefix+set}" = set; then
34504 withval="$with_sdl_prefix"
34505 sdl_prefix="$withval"
34506else
34507 sdl_prefix=""
34508fi;
34509
34510# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34511if test "${with_sdl_exec_prefix+set}" = set; then
34512 withval="$with_sdl_exec_prefix"
34513 sdl_exec_prefix="$withval"
34514else
34515 sdl_exec_prefix=""
34516fi;
34517# Check whether --enable-sdltest or --disable-sdltest was given.
34518if test "${enable_sdltest+set}" = set; then
34519 enableval="$enable_sdltest"
34520
34521else
34522 enable_sdltest=yes
34523fi;
34524
34525 if test x$sdl_exec_prefix != x ; then
34526 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34527 if test x${SDL_CONFIG+set} != xset ; then
34528 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34529 fi
34530 fi
34531 if test x$sdl_prefix != x ; then
34532 sdl_args="$sdl_args --prefix=$sdl_prefix"
34533 if test x${SDL_CONFIG+set} != xset ; then
34534 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34535 fi
34536 fi
34537
34538
34539 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34540 # Extract the first word of "sdl-config", so it can be a program name with args.
34541set dummy sdl-config; ac_word=$2
34542echo "$as_me:$LINENO: checking for $ac_word" >&5
34543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34544if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34545 echo $ECHO_N "(cached) $ECHO_C" >&6
34546else
34547 case $SDL_CONFIG in
34548 [\\/]* | ?:[\\/]*)
34549 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34550 ;;
34551 *)
34552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34553for as_dir in $PATH
34554do
34555 IFS=$as_save_IFS
34556 test -z "$as_dir" && as_dir=.
34557 for ac_exec_ext in '' $ac_executable_extensions; do
34558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34559 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34561 break 2
34562 fi
34563done
34564done
34565
34566 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34567 ;;
34568esac
34569fi
34570SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34571
34572if test -n "$SDL_CONFIG"; then
34573 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34574echo "${ECHO_T}$SDL_CONFIG" >&6
34575else
34576 echo "$as_me:$LINENO: result: no" >&5
34577echo "${ECHO_T}no" >&6
34578fi
34579
34580 min_sdl_version=1.2.0
34581 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34582echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34583 no_sdl=""
34584 if test "$SDL_CONFIG" = "no" ; then
34585 no_sdl=yes
34586 else
34587 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34588 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34589
34590 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34591 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34592 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34593 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34594 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34595 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34596 if test "x$enable_sdltest" = "xyes" ; then
34597 ac_save_CFLAGS="$CFLAGS"
34598 ac_save_LIBS="$LIBS"
34599 CFLAGS="$CFLAGS $SDL_CFLAGS"
34600 LIBS="$LIBS $SDL_LIBS"
34601 rm -f conf.sdltest
34602 if test "$cross_compiling" = yes; then
34603 echo $ac_n "cross compiling; assumed OK... $ac_c"
34604else
34605 cat >conftest.$ac_ext <<_ACEOF
34606/* confdefs.h. */
34607_ACEOF
34608cat confdefs.h >>conftest.$ac_ext
34609cat >>conftest.$ac_ext <<_ACEOF
34610/* end confdefs.h. */
34611
34612#include <stdio.h>
34613#include <stdlib.h>
34614#include <string.h>
34615#include "SDL.h"
34616
34617char*
34618my_strdup (char *str)
34619{
34620 char *new_str;
34621
34622 if (str)
34623 {
34624 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34625 strcpy (new_str, str);
34626 }
34627 else
34628 new_str = NULL;
34629
34630 return new_str;
34631}
34632
34633int main (int argc, char *argv[])
34634{
34635 int major, minor, micro;
34636 char *tmp_version;
34637
34638 /* This hangs on some systems (?)
34639 system ("touch conf.sdltest");
34640 */
34641 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34642
34643 /* HP/UX 9 (%@#!) writes to sscanf strings */
34644 tmp_version = my_strdup("$min_sdl_version");
34645 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34646 printf("%s, bad version string\n", "$min_sdl_version");
34647 exit(1);
34648 }
34649
34650 if (($sdl_major_version > major) ||
34651 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34652 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34653 {
34654 return 0;
34655 }
34656 else
34657 {
34658 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34659 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34660 printf("*** best to upgrade to the required version.\n");
34661 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34662 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34663 printf("*** config.cache before re-running configure\n");
34664 return 1;
34665 }
34666}
34667
34668
34669_ACEOF
34670rm -f conftest$ac_exeext
34671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34672 (eval $ac_link) 2>&5
34673 ac_status=$?
34674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34677 (eval $ac_try) 2>&5
34678 ac_status=$?
34679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680 (exit $ac_status); }; }; then
34681 :
34682else
34683 echo "$as_me: program exited with status $ac_status" >&5
34684echo "$as_me: failed program was:" >&5
34685sed 's/^/| /' conftest.$ac_ext >&5
34686
34687( exit $ac_status )
34688no_sdl=yes
34689fi
34690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34691fi
34692 CFLAGS="$ac_save_CFLAGS"
34693 LIBS="$ac_save_LIBS"
34694 fi
34695 fi
34696 if test "x$no_sdl" = x ; then
34697 echo "$as_me:$LINENO: result: yes" >&5
34698echo "${ECHO_T}yes" >&6
34699
34700 EXTRALIBS_SDL="$SDL_LIBS"
34701 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34702 cat >>confdefs.h <<\_ACEOF
34703#define wxUSE_LIBSDL 1
34704_ACEOF
34705
34706
34707 else
34708 echo "$as_me:$LINENO: result: no" >&5
34709echo "${ECHO_T}no" >&6
34710 if test "$SDL_CONFIG" = "no" ; then
34711 echo "*** The sdl-config script installed by SDL could not be found"
34712 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34713 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34714 echo "*** full path to sdl-config."
34715 else
34716 if test -f conf.sdltest ; then
34717 :
34718 else
34719 echo "*** Could not run SDL test program, checking why..."
34720 CFLAGS="$CFLAGS $SDL_CFLAGS"
34721 LIBS="$LIBS $SDL_LIBS"
34722 cat >conftest.$ac_ext <<_ACEOF
34723/* confdefs.h. */
34724_ACEOF
34725cat confdefs.h >>conftest.$ac_ext
34726cat >>conftest.$ac_ext <<_ACEOF
34727/* end confdefs.h. */
34728
34729#include <stdio.h>
34730#include "SDL.h"
34731
34732int main(int argc, char *argv[])
34733{ return 0; }
34734#undef main
34735#define main K_and_R_C_main
34736
34737int
34738main ()
34739{
34740 return 0;
34741 ;
34742 return 0;
34743}
34744_ACEOF
34745rm -f conftest.$ac_objext conftest$ac_exeext
34746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34747 (eval $ac_link) 2>conftest.er1
34748 ac_status=$?
34749 grep -v '^ *+' conftest.er1 >conftest.err
34750 rm -f conftest.er1
34751 cat conftest.err >&5
34752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34753 (exit $ac_status); } &&
dcc1b6ad
VS
34754 { ac_try='test -z "$ac_c_werror_flag"
34755 || test ! -s conftest.err'
a848cd7e
SC
34756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34757 (eval $ac_try) 2>&5
34758 ac_status=$?
34759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760 (exit $ac_status); }; } &&
34761 { ac_try='test -s conftest$ac_exeext'
34762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34763 (eval $ac_try) 2>&5
34764 ac_status=$?
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); }; }; then
34767 echo "*** The test program compiled, but did not run. This usually means"
34768 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34769 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34770 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34771 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34772 echo "*** is required on your system"
34773 echo "***"
34774 echo "*** If you have an old version installed, it is best to remove it, although"
34775 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34776else
34777 echo "$as_me: failed program was:" >&5
34778sed 's/^/| /' conftest.$ac_ext >&5
34779
34780 echo "*** The test program failed to compile or link. See the file config.log for the"
34781 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34782 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34783 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34784fi
34785rm -f conftest.err conftest.$ac_objext \
34786 conftest$ac_exeext conftest.$ac_ext
34787 CFLAGS="$ac_save_CFLAGS"
34788 LIBS="$ac_save_LIBS"
34789 fi
34790 fi
34791 SDL_CFLAGS=""
34792 SDL_LIBS=""
34793 wxUSE_LIBSDL="no"
34794 fi
34795
34796
34797 rm -f conf.sdltest
34798
34799 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34800 WITH_PLUGIN_SDL=1
34801 fi
34802 fi
34803 fi
34804
34805 cat >>confdefs.h <<\_ACEOF
34806#define wxUSE_SOUND 1
34807_ACEOF
34808
34809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34810fi
34811
34812if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34813 cat >>confdefs.h <<\_ACEOF
34814#define wxUSE_CMDLINE_PARSER 1
34815_ACEOF
34816
34817fi
34818
34819if test "$wxUSE_STOPWATCH" = "yes"; then
34820 cat >>confdefs.h <<\_ACEOF
34821#define wxUSE_STOPWATCH 1
34822_ACEOF
34823
34824fi
34825
34826if test "$wxUSE_DATETIME" = "yes"; then
34827 cat >>confdefs.h <<\_ACEOF
34828#define wxUSE_DATETIME 1
34829_ACEOF
34830
34831fi
34832
34833if test "$wxUSE_FILE" = "yes"; then
34834 cat >>confdefs.h <<\_ACEOF
34835#define wxUSE_FILE 1
34836_ACEOF
34837
34838fi
34839
34840if test "$wxUSE_FFILE" = "yes"; then
34841 cat >>confdefs.h <<\_ACEOF
34842#define wxUSE_FFILE 1
34843_ACEOF
34844
34845fi
34846
34847if test "$wxUSE_FILESYSTEM" = "yes"; then
34848 cat >>confdefs.h <<\_ACEOF
34849#define wxUSE_FILESYSTEM 1
34850_ACEOF
34851
34852fi
34853
34854if test "$wxUSE_FS_ZIP" = "yes"; then
34855 cat >>confdefs.h <<\_ACEOF
34856#define wxUSE_FS_ZIP 1
34857_ACEOF
34858
34859fi
34860
34861if test "$wxUSE_ZIPSTREAM" = "yes"; then
34862 cat >>confdefs.h <<\_ACEOF
34863#define wxUSE_ZIPSTREAM 1
34864_ACEOF
34865
34866fi
34867
34868if test "$wxUSE_GZSTREAM" = "yes"; then
34869 cat >>confdefs.h <<\_ACEOF
34870#define wxUSE_GZSTREAM 1
34871_ACEOF
34872
34873fi
34874
34875if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34876 cat >>confdefs.h <<\_ACEOF
34877#define wxUSE_ON_FATAL_EXCEPTION 1
34878_ACEOF
34879
34880fi
34881
34882if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34883 cat >>confdefs.h <<\_ACEOF
34884#define wxUSE_SNGLINST_CHECKER 1
34885_ACEOF
34886
34887fi
34888
34889if test "$wxUSE_BUSYINFO" = "yes"; then
34890 cat >>confdefs.h <<\_ACEOF
34891#define wxUSE_BUSYINFO 1
34892_ACEOF
34893
34894fi
34895
34896if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34897 cat >>confdefs.h <<\_ACEOF
34898#define wxUSE_STD_IOSTREAM 1
34899_ACEOF
34900
34901fi
34902
34903if test "$wxUSE_TEXTBUFFER" = "yes"; then
34904 cat >>confdefs.h <<\_ACEOF
34905#define wxUSE_TEXTBUFFER 1
34906_ACEOF
34907
34908fi
34909
34910if test "$wxUSE_TEXTFILE" = "yes"; then
34911 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34912 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34913echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34914 else
34915 cat >>confdefs.h <<\_ACEOF
34916#define wxUSE_TEXTFILE 1
34917_ACEOF
34918
34919 fi
34920fi
34921
34922if test "$wxUSE_CONFIG" = "yes" ; then
34923 if test "$wxUSE_TEXTFILE" != "yes"; then
34924 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34925echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34926 else
34927 cat >>confdefs.h <<\_ACEOF
34928#define wxUSE_CONFIG 1
34929_ACEOF
34930
34931 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34932 fi
34933fi
34934
34935if test "$wxUSE_INTL" = "yes" ; then
34936 if test "$wxUSE_FILE" != "yes"; then
34937 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34938echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34939 else
34940 cat >>confdefs.h <<\_ACEOF
34941#define wxUSE_INTL 1
34942_ACEOF
34943
34944 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34945 GUIDIST="$GUIDIST INTL_DIST"
34946 fi
34947fi
34948
34949if test "$wxUSE_LOG" = "yes"; then
34950 cat >>confdefs.h <<\_ACEOF
34951#define wxUSE_LOG 1
34952_ACEOF
34953
34954
34955 if test "$wxUSE_LOGGUI" = "yes"; then
34956 cat >>confdefs.h <<\_ACEOF
34957#define wxUSE_LOGGUI 1
34958_ACEOF
34959
34960 fi
34961
34962 if test "$wxUSE_LOGWINDOW" = "yes"; then
34963 cat >>confdefs.h <<\_ACEOF
34964#define wxUSE_LOGWINDOW 1
34965_ACEOF
34966
34967 fi
34968
34969 if test "$wxUSE_LOGDIALOG" = "yes"; then
34970 cat >>confdefs.h <<\_ACEOF
34971#define wxUSE_LOG_DIALOG 1
34972_ACEOF
34973
34974 fi
34975fi
34976
34977if test "$wxUSE_LONGLONG" = "yes"; then
34978 cat >>confdefs.h <<\_ACEOF
34979#define wxUSE_LONGLONG 1
34980_ACEOF
34981
34982fi
34983
34984if test "$wxUSE_GEOMETRY" = "yes"; then
34985 cat >>confdefs.h <<\_ACEOF
34986#define wxUSE_GEOMETRY 1
34987_ACEOF
34988
34989fi
34990
34991if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34992 cat >>confdefs.h <<\_ACEOF
34993#define wxUSE_DIALUP_MANAGER 1
34994_ACEOF
34995
34996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34997fi
34998
34999if test "$wxUSE_STREAMS" = "yes" ; then
35000 cat >>confdefs.h <<\_ACEOF
35001#define wxUSE_STREAMS 1
35002_ACEOF
35003
35004fi
35005
35006
35007if test "$wxUSE_DATETIME" = "yes"; then
35008
35009for ac_func in strptime
35010do
35011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35012echo "$as_me:$LINENO: checking for $ac_func" >&5
35013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35014if eval "test \"\${$as_ac_var+set}\" = set"; then
35015 echo $ECHO_N "(cached) $ECHO_C" >&6
35016else
35017 cat >conftest.$ac_ext <<_ACEOF
35018/* confdefs.h. */
35019_ACEOF
35020cat confdefs.h >>conftest.$ac_ext
35021cat >>conftest.$ac_ext <<_ACEOF
35022/* end confdefs.h. */
35023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35025#define $ac_func innocuous_$ac_func
35026
35027/* System header to define __stub macros and hopefully few prototypes,
35028 which can conflict with char $ac_func (); below.
35029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35030 <limits.h> exists even on freestanding compilers. */
35031
35032#ifdef __STDC__
35033# include <limits.h>
35034#else
35035# include <assert.h>
35036#endif
35037
35038#undef $ac_func
35039
35040/* Override any gcc2 internal prototype to avoid an error. */
35041#ifdef __cplusplus
35042extern "C"
35043{
35044#endif
35045/* We use char because int might match the return type of a gcc2
35046 builtin and then its argument prototype would still apply. */
35047char $ac_func ();
35048/* The GNU C library defines this for functions which it implements
35049 to always fail with ENOSYS. Some functions are actually named
35050 something starting with __ and the normal name is an alias. */
35051#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35052choke me
35053#else
35054char (*f) () = $ac_func;
35055#endif
35056#ifdef __cplusplus
35057}
35058#endif
35059
35060int
35061main ()
35062{
35063return f != $ac_func;
35064 ;
35065 return 0;
35066}
35067_ACEOF
35068rm -f conftest.$ac_objext conftest$ac_exeext
35069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35070 (eval $ac_link) 2>conftest.er1
35071 ac_status=$?
35072 grep -v '^ *+' conftest.er1 >conftest.err
35073 rm -f conftest.er1
35074 cat conftest.err >&5
35075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076 (exit $ac_status); } &&
dcc1b6ad
VS
35077 { ac_try='test -z "$ac_c_werror_flag"
35078 || test ! -s conftest.err'
a848cd7e
SC
35079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35080 (eval $ac_try) 2>&5
35081 ac_status=$?
35082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083 (exit $ac_status); }; } &&
35084 { ac_try='test -s conftest$ac_exeext'
35085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35086 (eval $ac_try) 2>&5
35087 ac_status=$?
35088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089 (exit $ac_status); }; }; then
35090 eval "$as_ac_var=yes"
35091else
35092 echo "$as_me: failed program was:" >&5
35093sed 's/^/| /' conftest.$ac_ext >&5
35094
35095eval "$as_ac_var=no"
35096fi
35097rm -f conftest.err conftest.$ac_objext \
35098 conftest$ac_exeext conftest.$ac_ext
35099fi
35100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35102if test `eval echo '${'$as_ac_var'}'` = yes; then
35103 cat >>confdefs.h <<_ACEOF
35104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35105_ACEOF
35106
35107fi
35108done
35109
35110
35111 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35112echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35113if test "${wx_cv_var_timezone+set}" = set; then
35114 echo $ECHO_N "(cached) $ECHO_C" >&6
35115else
35116
35117 cat >conftest.$ac_ext <<_ACEOF
35118/* confdefs.h. */
35119_ACEOF
35120cat confdefs.h >>conftest.$ac_ext
35121cat >>conftest.$ac_ext <<_ACEOF
35122/* end confdefs.h. */
35123
35124 #include <time.h>
35125
35126int
35127main ()
35128{
35129
35130 int tz;
35131 tz = timezone;
35132
35133 ;
35134 return 0;
35135}
35136_ACEOF
35137rm -f conftest.$ac_objext
35138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35139 (eval $ac_compile) 2>conftest.er1
35140 ac_status=$?
35141 grep -v '^ *+' conftest.er1 >conftest.err
35142 rm -f conftest.er1
35143 cat conftest.err >&5
35144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145 (exit $ac_status); } &&
dcc1b6ad
VS
35146 { ac_try='test -z "$ac_c_werror_flag"
35147 || test ! -s conftest.err'
a848cd7e
SC
35148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35149 (eval $ac_try) 2>&5
35150 ac_status=$?
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); }; } &&
35153 { ac_try='test -s conftest.$ac_objext'
35154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35155 (eval $ac_try) 2>&5
35156 ac_status=$?
35157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158 (exit $ac_status); }; }; then
35159
35160 wx_cv_var_timezone=timezone
35161
35162else
35163 echo "$as_me: failed program was:" >&5
35164sed 's/^/| /' conftest.$ac_ext >&5
35165
35166
35167 cat >conftest.$ac_ext <<_ACEOF
35168/* confdefs.h. */
35169_ACEOF
35170cat confdefs.h >>conftest.$ac_ext
35171cat >>conftest.$ac_ext <<_ACEOF
35172/* end confdefs.h. */
35173
35174 #include <time.h>
35175
35176int
35177main ()
35178{
35179
35180 int tz;
35181 tz = _timezone;
35182
35183 ;
35184 return 0;
35185}
35186_ACEOF
35187rm -f conftest.$ac_objext
35188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35189 (eval $ac_compile) 2>conftest.er1
35190 ac_status=$?
35191 grep -v '^ *+' conftest.er1 >conftest.err
35192 rm -f conftest.er1
35193 cat conftest.err >&5
35194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195 (exit $ac_status); } &&
dcc1b6ad
VS
35196 { ac_try='test -z "$ac_c_werror_flag"
35197 || test ! -s conftest.err'
a848cd7e
SC
35198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35199 (eval $ac_try) 2>&5
35200 ac_status=$?
35201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202 (exit $ac_status); }; } &&
35203 { ac_try='test -s conftest.$ac_objext'
35204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35205 (eval $ac_try) 2>&5
35206 ac_status=$?
35207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); }; }; then
35209
35210 wx_cv_var_timezone=_timezone
35211
35212else
35213 echo "$as_me: failed program was:" >&5
35214sed 's/^/| /' conftest.$ac_ext >&5
35215
35216
35217 cat >conftest.$ac_ext <<_ACEOF
35218/* confdefs.h. */
35219_ACEOF
35220cat confdefs.h >>conftest.$ac_ext
35221cat >>conftest.$ac_ext <<_ACEOF
35222/* end confdefs.h. */
35223
35224 #include <time.h>
35225
35226int
35227main ()
35228{
35229
35230 int tz;
35231 tz = __timezone;
35232
35233 ;
35234 return 0;
35235}
35236_ACEOF
35237rm -f conftest.$ac_objext
35238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35239 (eval $ac_compile) 2>conftest.er1
35240 ac_status=$?
35241 grep -v '^ *+' conftest.er1 >conftest.err
35242 rm -f conftest.er1
35243 cat conftest.err >&5
35244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245 (exit $ac_status); } &&
dcc1b6ad
VS
35246 { ac_try='test -z "$ac_c_werror_flag"
35247 || test ! -s conftest.err'
a848cd7e
SC
35248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35249 (eval $ac_try) 2>&5
35250 ac_status=$?
35251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252 (exit $ac_status); }; } &&
35253 { ac_try='test -s conftest.$ac_objext'
35254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35255 (eval $ac_try) 2>&5
35256 ac_status=$?
35257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258 (exit $ac_status); }; }; then
35259
35260 wx_cv_var_timezone=__timezone
35261
35262else
35263 echo "$as_me: failed program was:" >&5
35264sed 's/^/| /' conftest.$ac_ext >&5
35265
35266
35267 if test "$USE_DOS" = 0 ; then
35268 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35269echo "$as_me: WARNING: no timezone variable" >&2;}
35270 fi
35271
35272
35273fi
35274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35275
35276
35277fi
35278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35279
35280
35281fi
35282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35283
35284
35285fi
35286echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35287echo "${ECHO_T}$wx_cv_var_timezone" >&6
35288
35289 if test "x$wx_cv_var_timezone" != x ; then
35290 cat >>confdefs.h <<_ACEOF
35291#define WX_TIMEZONE $wx_cv_var_timezone
35292_ACEOF
35293
35294 fi
35295
35296
35297for ac_func in localtime
35298do
35299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35300echo "$as_me:$LINENO: checking for $ac_func" >&5
35301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35302if eval "test \"\${$as_ac_var+set}\" = set"; then
35303 echo $ECHO_N "(cached) $ECHO_C" >&6
35304else
35305 cat >conftest.$ac_ext <<_ACEOF
35306/* confdefs.h. */
35307_ACEOF
35308cat confdefs.h >>conftest.$ac_ext
35309cat >>conftest.$ac_ext <<_ACEOF
35310/* end confdefs.h. */
35311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35313#define $ac_func innocuous_$ac_func
35314
35315/* System header to define __stub macros and hopefully few prototypes,
35316 which can conflict with char $ac_func (); below.
35317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35318 <limits.h> exists even on freestanding compilers. */
35319
35320#ifdef __STDC__
35321# include <limits.h>
35322#else
35323# include <assert.h>
35324#endif
35325
35326#undef $ac_func
35327
35328/* Override any gcc2 internal prototype to avoid an error. */
35329#ifdef __cplusplus
35330extern "C"
35331{
35332#endif
35333/* We use char because int might match the return type of a gcc2
35334 builtin and then its argument prototype would still apply. */
35335char $ac_func ();
35336/* The GNU C library defines this for functions which it implements
35337 to always fail with ENOSYS. Some functions are actually named
35338 something starting with __ and the normal name is an alias. */
35339#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35340choke me
35341#else
35342char (*f) () = $ac_func;
35343#endif
35344#ifdef __cplusplus
35345}
35346#endif
35347
35348int
35349main ()
35350{
35351return f != $ac_func;
35352 ;
35353 return 0;
35354}
35355_ACEOF
35356rm -f conftest.$ac_objext conftest$ac_exeext
35357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35358 (eval $ac_link) 2>conftest.er1
35359 ac_status=$?
35360 grep -v '^ *+' conftest.er1 >conftest.err
35361 rm -f conftest.er1
35362 cat conftest.err >&5
35363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35364 (exit $ac_status); } &&
dcc1b6ad
VS
35365 { ac_try='test -z "$ac_c_werror_flag"
35366 || test ! -s conftest.err'
a848cd7e
SC
35367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35368 (eval $ac_try) 2>&5
35369 ac_status=$?
35370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371 (exit $ac_status); }; } &&
35372 { ac_try='test -s conftest$ac_exeext'
35373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35374 (eval $ac_try) 2>&5
35375 ac_status=$?
35376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377 (exit $ac_status); }; }; then
35378 eval "$as_ac_var=yes"
35379else
35380 echo "$as_me: failed program was:" >&5
35381sed 's/^/| /' conftest.$ac_ext >&5
35382
35383eval "$as_ac_var=no"
35384fi
35385rm -f conftest.err conftest.$ac_objext \
35386 conftest$ac_exeext conftest.$ac_ext
35387fi
35388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35389echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35390if test `eval echo '${'$as_ac_var'}'` = yes; then
35391 cat >>confdefs.h <<_ACEOF
35392#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35393_ACEOF
35394
35395fi
35396done
35397
35398
35399 if test "$ac_cv_func_localtime" = "yes"; then
35400 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35401echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35402if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35403 echo $ECHO_N "(cached) $ECHO_C" >&6
35404else
35405
35406 cat >conftest.$ac_ext <<_ACEOF
35407/* confdefs.h. */
35408_ACEOF
35409cat confdefs.h >>conftest.$ac_ext
35410cat >>conftest.$ac_ext <<_ACEOF
35411/* end confdefs.h. */
35412
35413 #include <time.h>
35414
35415int
35416main ()
35417{
35418
35419 struct tm tm;
35420 tm.tm_gmtoff++;
35421
35422 ;
35423 return 0;
35424}
35425_ACEOF
35426rm -f conftest.$ac_objext
35427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35428 (eval $ac_compile) 2>conftest.er1
35429 ac_status=$?
35430 grep -v '^ *+' conftest.er1 >conftest.err
35431 rm -f conftest.er1
35432 cat conftest.err >&5
35433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434 (exit $ac_status); } &&
dcc1b6ad
VS
35435 { ac_try='test -z "$ac_c_werror_flag"
35436 || test ! -s conftest.err'
a848cd7e
SC
35437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35438 (eval $ac_try) 2>&5
35439 ac_status=$?
35440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441 (exit $ac_status); }; } &&
35442 { ac_try='test -s conftest.$ac_objext'
35443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35444 (eval $ac_try) 2>&5
35445 ac_status=$?
35446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35447 (exit $ac_status); }; }; then
35448
35449 wx_cv_struct_tm_has_gmtoff=yes
35450
35451else
35452 echo "$as_me: failed program was:" >&5
35453sed 's/^/| /' conftest.$ac_ext >&5
35454
35455wx_cv_struct_tm_has_gmtoff=no
35456
35457fi
35458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35459
35460fi
35461echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35462echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35463 fi
35464
35465 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35466 cat >>confdefs.h <<\_ACEOF
35467#define WX_GMTOFF_IN_TM 1
35468_ACEOF
35469
35470 fi
35471
35472
35473
35474for ac_func in gettimeofday ftime
35475do
35476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35477echo "$as_me:$LINENO: checking for $ac_func" >&5
35478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35479if eval "test \"\${$as_ac_var+set}\" = set"; then
35480 echo $ECHO_N "(cached) $ECHO_C" >&6
35481else
35482 cat >conftest.$ac_ext <<_ACEOF
35483/* confdefs.h. */
35484_ACEOF
35485cat confdefs.h >>conftest.$ac_ext
35486cat >>conftest.$ac_ext <<_ACEOF
35487/* end confdefs.h. */
35488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35490#define $ac_func innocuous_$ac_func
35491
35492/* System header to define __stub macros and hopefully few prototypes,
35493 which can conflict with char $ac_func (); below.
35494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35495 <limits.h> exists even on freestanding compilers. */
35496
35497#ifdef __STDC__
35498# include <limits.h>
35499#else
35500# include <assert.h>
35501#endif
35502
35503#undef $ac_func
35504
35505/* Override any gcc2 internal prototype to avoid an error. */
35506#ifdef __cplusplus
35507extern "C"
35508{
35509#endif
35510/* We use char because int might match the return type of a gcc2
35511 builtin and then its argument prototype would still apply. */
35512char $ac_func ();
35513/* The GNU C library defines this for functions which it implements
35514 to always fail with ENOSYS. Some functions are actually named
35515 something starting with __ and the normal name is an alias. */
35516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35517choke me
35518#else
35519char (*f) () = $ac_func;
35520#endif
35521#ifdef __cplusplus
35522}
35523#endif
35524
35525int
35526main ()
35527{
35528return f != $ac_func;
35529 ;
35530 return 0;
35531}
35532_ACEOF
35533rm -f conftest.$ac_objext conftest$ac_exeext
35534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35535 (eval $ac_link) 2>conftest.er1
35536 ac_status=$?
35537 grep -v '^ *+' conftest.er1 >conftest.err
35538 rm -f conftest.er1
35539 cat conftest.err >&5
35540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 (exit $ac_status); } &&
dcc1b6ad
VS
35542 { ac_try='test -z "$ac_c_werror_flag"
35543 || test ! -s conftest.err'
a848cd7e
SC
35544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35545 (eval $ac_try) 2>&5
35546 ac_status=$?
35547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548 (exit $ac_status); }; } &&
35549 { ac_try='test -s conftest$ac_exeext'
35550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35551 (eval $ac_try) 2>&5
35552 ac_status=$?
35553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554 (exit $ac_status); }; }; then
35555 eval "$as_ac_var=yes"
35556else
35557 echo "$as_me: failed program was:" >&5
35558sed 's/^/| /' conftest.$ac_ext >&5
35559
35560eval "$as_ac_var=no"
35561fi
35562rm -f conftest.err conftest.$ac_objext \
35563 conftest$ac_exeext conftest.$ac_ext
35564fi
35565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35566echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35567if test `eval echo '${'$as_ac_var'}'` = yes; then
35568 cat >>confdefs.h <<_ACEOF
35569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35570_ACEOF
35571 break
35572fi
35573done
35574
35575
35576 if test "$ac_cv_func_gettimeofday" = "yes"; then
35577 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35578echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35579if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35580 echo $ECHO_N "(cached) $ECHO_C" >&6
35581else
35582
35583
35584
35585 ac_ext=cc
35586ac_cpp='$CXXCPP $CPPFLAGS'
35587ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35588ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35589ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35590
35591
35592 cat >conftest.$ac_ext <<_ACEOF
35593/* confdefs.h. */
35594_ACEOF
35595cat confdefs.h >>conftest.$ac_ext
35596cat >>conftest.$ac_ext <<_ACEOF
35597/* end confdefs.h. */
35598
35599 #include <sys/time.h>
35600 #include <unistd.h>
35601
35602int
35603main ()
35604{
35605
35606 struct timeval tv;
35607 gettimeofday(&tv, NULL);
35608
35609 ;
35610 return 0;
35611}
35612_ACEOF
35613rm -f conftest.$ac_objext
35614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35615 (eval $ac_compile) 2>conftest.er1
35616 ac_status=$?
35617 grep -v '^ *+' conftest.er1 >conftest.err
35618 rm -f conftest.er1
35619 cat conftest.err >&5
35620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35621 (exit $ac_status); } &&
dcc1b6ad
VS
35622 { ac_try='test -z "$ac_cxx_werror_flag"
35623 || test ! -s conftest.err'
a848cd7e
SC
35624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35625 (eval $ac_try) 2>&5
35626 ac_status=$?
35627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628 (exit $ac_status); }; } &&
35629 { ac_try='test -s conftest.$ac_objext'
35630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35631 (eval $ac_try) 2>&5
35632 ac_status=$?
35633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35634 (exit $ac_status); }; }; then
35635 wx_cv_func_gettimeofday_has_2_args=yes
35636else
35637 echo "$as_me: failed program was:" >&5
35638sed 's/^/| /' conftest.$ac_ext >&5
35639
35640cat >conftest.$ac_ext <<_ACEOF
35641/* confdefs.h. */
35642_ACEOF
35643cat confdefs.h >>conftest.$ac_ext
35644cat >>conftest.$ac_ext <<_ACEOF
35645/* end confdefs.h. */
35646
35647 #include <sys/time.h>
35648 #include <unistd.h>
35649
35650int
35651main ()
35652{
35653
35654 struct timeval tv;
35655 gettimeofday(&tv);
35656
35657 ;
35658 return 0;
35659}
35660_ACEOF
35661rm -f conftest.$ac_objext
35662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35663 (eval $ac_compile) 2>conftest.er1
35664 ac_status=$?
35665 grep -v '^ *+' conftest.er1 >conftest.err
35666 rm -f conftest.er1
35667 cat conftest.err >&5
35668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35669 (exit $ac_status); } &&
dcc1b6ad
VS
35670 { ac_try='test -z "$ac_cxx_werror_flag"
35671 || test ! -s conftest.err'
a848cd7e
SC
35672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35673 (eval $ac_try) 2>&5
35674 ac_status=$?
35675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35676 (exit $ac_status); }; } &&
35677 { ac_try='test -s conftest.$ac_objext'
35678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35679 (eval $ac_try) 2>&5
35680 ac_status=$?
35681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35682 (exit $ac_status); }; }; then
35683 wx_cv_func_gettimeofday_has_2_args=no
35684else
35685 echo "$as_me: failed program was:" >&5
35686sed 's/^/| /' conftest.$ac_ext >&5
35687
35688
35689 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35690echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35691 wx_cv_func_gettimeofday_has_2_args=unknown
35692
35693
35694fi
35695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35696
35697fi
35698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35699 ac_ext=c
35700ac_cpp='$CPP $CPPFLAGS'
35701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35703ac_compiler_gnu=$ac_cv_c_compiler_gnu
35704
35705
35706fi
35707echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35708echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35709
35710 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35711 cat >>confdefs.h <<\_ACEOF
35712#define WX_GETTIMEOFDAY_NO_TZ 1
35713_ACEOF
35714
35715 fi
35716 fi
35717
35718 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35719fi
35720
35721
35722if test "$wxUSE_SOCKETS" = "yes"; then
35723 if test "$wxUSE_MGL" = "1"; then
35724 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35725echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35726 wxUSE_SOCKETS="no"
35727 fi
35728fi
35729
35730if test "$wxUSE_SOCKETS" = "yes"; then
35731 if test "$TOOLKIT" != "MSW"; then
35732 echo "$as_me:$LINENO: checking for socket" >&5
35733echo $ECHO_N "checking for socket... $ECHO_C" >&6
35734if test "${ac_cv_func_socket+set}" = set; then
35735 echo $ECHO_N "(cached) $ECHO_C" >&6
35736else
35737 cat >conftest.$ac_ext <<_ACEOF
35738/* confdefs.h. */
35739_ACEOF
35740cat confdefs.h >>conftest.$ac_ext
35741cat >>conftest.$ac_ext <<_ACEOF
35742/* end confdefs.h. */
35743/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35745#define socket innocuous_socket
35746
35747/* System header to define __stub macros and hopefully few prototypes,
35748 which can conflict with char socket (); below.
35749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35750 <limits.h> exists even on freestanding compilers. */
35751
35752#ifdef __STDC__
35753# include <limits.h>
35754#else
35755# include <assert.h>
35756#endif
35757
35758#undef socket
35759
35760/* Override any gcc2 internal prototype to avoid an error. */
35761#ifdef __cplusplus
35762extern "C"
35763{
35764#endif
35765/* We use char because int might match the return type of a gcc2
35766 builtin and then its argument prototype would still apply. */
35767char socket ();
35768/* The GNU C library defines this for functions which it implements
35769 to always fail with ENOSYS. Some functions are actually named
35770 something starting with __ and the normal name is an alias. */
35771#if defined (__stub_socket) || defined (__stub___socket)
35772choke me
35773#else
35774char (*f) () = socket;
35775#endif
35776#ifdef __cplusplus
35777}
35778#endif
35779
35780int
35781main ()
35782{
35783return f != socket;
35784 ;
35785 return 0;
35786}
35787_ACEOF
35788rm -f conftest.$ac_objext conftest$ac_exeext
35789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35790 (eval $ac_link) 2>conftest.er1
35791 ac_status=$?
35792 grep -v '^ *+' conftest.er1 >conftest.err
35793 rm -f conftest.er1
35794 cat conftest.err >&5
35795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35796 (exit $ac_status); } &&
dcc1b6ad
VS
35797 { ac_try='test -z "$ac_c_werror_flag"
35798 || test ! -s conftest.err'
a848cd7e
SC
35799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35800 (eval $ac_try) 2>&5
35801 ac_status=$?
35802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803 (exit $ac_status); }; } &&
35804 { ac_try='test -s conftest$ac_exeext'
35805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35806 (eval $ac_try) 2>&5
35807 ac_status=$?
35808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809 (exit $ac_status); }; }; then
35810 ac_cv_func_socket=yes
35811else
35812 echo "$as_me: failed program was:" >&5
35813sed 's/^/| /' conftest.$ac_ext >&5
35814
35815ac_cv_func_socket=no
35816fi
35817rm -f conftest.err conftest.$ac_objext \
35818 conftest$ac_exeext conftest.$ac_ext
35819fi
35820echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35821echo "${ECHO_T}$ac_cv_func_socket" >&6
35822if test $ac_cv_func_socket = yes; then
35823 :
35824else
35825
35826 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35827echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35828if test "${ac_cv_lib_socket_socket+set}" = set; then
35829 echo $ECHO_N "(cached) $ECHO_C" >&6
35830else
35831 ac_check_lib_save_LIBS=$LIBS
35832LIBS="-lsocket $LIBS"
35833cat >conftest.$ac_ext <<_ACEOF
35834/* confdefs.h. */
35835_ACEOF
35836cat confdefs.h >>conftest.$ac_ext
35837cat >>conftest.$ac_ext <<_ACEOF
35838/* end confdefs.h. */
35839
35840/* Override any gcc2 internal prototype to avoid an error. */
35841#ifdef __cplusplus
35842extern "C"
35843#endif
35844/* We use char because int might match the return type of a gcc2
35845 builtin and then its argument prototype would still apply. */
35846char socket ();
35847int
35848main ()
35849{
35850socket ();
35851 ;
35852 return 0;
35853}
35854_ACEOF
35855rm -f conftest.$ac_objext conftest$ac_exeext
35856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35857 (eval $ac_link) 2>conftest.er1
35858 ac_status=$?
35859 grep -v '^ *+' conftest.er1 >conftest.err
35860 rm -f conftest.er1
35861 cat conftest.err >&5
35862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35863 (exit $ac_status); } &&
dcc1b6ad
VS
35864 { ac_try='test -z "$ac_c_werror_flag"
35865 || test ! -s conftest.err'
a848cd7e
SC
35866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35867 (eval $ac_try) 2>&5
35868 ac_status=$?
35869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870 (exit $ac_status); }; } &&
35871 { ac_try='test -s conftest$ac_exeext'
35872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35873 (eval $ac_try) 2>&5
35874 ac_status=$?
35875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876 (exit $ac_status); }; }; then
35877 ac_cv_lib_socket_socket=yes
35878else
35879 echo "$as_me: failed program was:" >&5
35880sed 's/^/| /' conftest.$ac_ext >&5
35881
35882ac_cv_lib_socket_socket=no
35883fi
35884rm -f conftest.err conftest.$ac_objext \
35885 conftest$ac_exeext conftest.$ac_ext
35886LIBS=$ac_check_lib_save_LIBS
35887fi
35888echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35889echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35890if test $ac_cv_lib_socket_socket = yes; then
35891 if test "$INET_LINK" != " -lsocket"; then
35892 INET_LINK="$INET_LINK -lsocket"
35893 fi
35894else
35895
35896 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35897echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35898 wxUSE_SOCKETS=no
35899
35900
35901fi
35902
35903
35904
35905fi
35906
35907 fi
35908fi
35909
35910if test "$wxUSE_SOCKETS" = "yes" ; then
35911 if test "$TOOLKIT" != "MSW"; then
35912 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35913echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35914if test "${wx_cv_type_getsockname3+set}" = set; then
35915 echo $ECHO_N "(cached) $ECHO_C" >&6
35916else
35917
35918 cat >conftest.$ac_ext <<_ACEOF
35919/* confdefs.h. */
35920_ACEOF
35921cat confdefs.h >>conftest.$ac_ext
35922cat >>conftest.$ac_ext <<_ACEOF
35923/* end confdefs.h. */
35924
35925 #include <sys/types.h>
35926 #include <sys/socket.h>
35927
35928int
35929main ()
35930{
35931
35932 socklen_t len;
35933 getsockname(0, 0, &len);
35934
35935 ;
35936 return 0;
35937}
35938_ACEOF
35939rm -f conftest.$ac_objext
35940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35941 (eval $ac_compile) 2>conftest.er1
35942 ac_status=$?
35943 grep -v '^ *+' conftest.er1 >conftest.err
35944 rm -f conftest.er1
35945 cat conftest.err >&5
35946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947 (exit $ac_status); } &&
dcc1b6ad
VS
35948 { ac_try='test -z "$ac_c_werror_flag"
35949 || test ! -s conftest.err'
a848cd7e
SC
35950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951 (eval $ac_try) 2>&5
35952 ac_status=$?
35953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954 (exit $ac_status); }; } &&
35955 { ac_try='test -s conftest.$ac_objext'
35956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35957 (eval $ac_try) 2>&5
35958 ac_status=$?
35959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35960 (exit $ac_status); }; }; then
35961 wx_cv_type_getsockname3=socklen_t
35962else
35963 echo "$as_me: failed program was:" >&5
35964sed 's/^/| /' conftest.$ac_ext >&5
35965
35966
35967 CFLAGS_OLD="$CFLAGS"
35968 if test "$GCC" = yes ; then
35969 CFLAGS="$CFLAGS -Werror"
35970 fi
35971
35972 cat >conftest.$ac_ext <<_ACEOF
35973/* confdefs.h. */
35974_ACEOF
35975cat confdefs.h >>conftest.$ac_ext
35976cat >>conftest.$ac_ext <<_ACEOF
35977/* end confdefs.h. */
35978
35979 #include <sys/types.h>
35980 #include <sys/socket.h>
35981
35982int
35983main ()
35984{
35985
35986 size_t len;
35987 getsockname(0, 0, &len);
35988
35989 ;
35990 return 0;
35991}
35992_ACEOF
35993rm -f conftest.$ac_objext
35994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35995 (eval $ac_compile) 2>conftest.er1
35996 ac_status=$?
35997 grep -v '^ *+' conftest.er1 >conftest.err
35998 rm -f conftest.er1
35999 cat conftest.err >&5
36000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36001 (exit $ac_status); } &&
dcc1b6ad
VS
36002 { ac_try='test -z "$ac_c_werror_flag"
36003 || test ! -s conftest.err'
a848cd7e
SC
36004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36005 (eval $ac_try) 2>&5
36006 ac_status=$?
36007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); }; } &&
36009 { ac_try='test -s conftest.$ac_objext'
36010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36011 (eval $ac_try) 2>&5
36012 ac_status=$?
36013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014 (exit $ac_status); }; }; then
36015 wx_cv_type_getsockname3=size_t
36016else
36017 echo "$as_me: failed program was:" >&5
36018sed 's/^/| /' conftest.$ac_ext >&5
36019
36020cat >conftest.$ac_ext <<_ACEOF
36021/* confdefs.h. */
36022_ACEOF
36023cat confdefs.h >>conftest.$ac_ext
36024cat >>conftest.$ac_ext <<_ACEOF
36025/* end confdefs.h. */
36026
36027 #include <sys/types.h>
36028 #include <sys/socket.h>
36029
36030int
36031main ()
36032{
36033
36034 int len;
36035 getsockname(0, 0, &len);
36036
36037 ;
36038 return 0;
36039}
36040_ACEOF
36041rm -f conftest.$ac_objext
36042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36043 (eval $ac_compile) 2>conftest.er1
36044 ac_status=$?
36045 grep -v '^ *+' conftest.er1 >conftest.err
36046 rm -f conftest.er1
36047 cat conftest.err >&5
36048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049 (exit $ac_status); } &&
dcc1b6ad
VS
36050 { ac_try='test -z "$ac_c_werror_flag"
36051 || test ! -s conftest.err'
a848cd7e
SC
36052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36053 (eval $ac_try) 2>&5
36054 ac_status=$?
36055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056 (exit $ac_status); }; } &&
36057 { ac_try='test -s conftest.$ac_objext'
36058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36059 (eval $ac_try) 2>&5
36060 ac_status=$?
36061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062 (exit $ac_status); }; }; then
36063 wx_cv_type_getsockname3=int
36064else
36065 echo "$as_me: failed program was:" >&5
36066sed 's/^/| /' conftest.$ac_ext >&5
36067
36068wx_cv_type_getsockname3=unknown
36069
36070fi
36071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36072
36073fi
36074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36075
36076 CFLAGS="$CFLAGS_OLD"
36077
36078
36079fi
36080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36081
36082fi
36083echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36084echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36085
36086 if test "$wx_cv_type_getsockname3" = "unknown"; then
36087 wxUSE_SOCKETS=no
36088 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36089echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36090 else
36091 cat >>confdefs.h <<_ACEOF
36092#define SOCKLEN_T $wx_cv_type_getsockname3
36093_ACEOF
36094
36095 fi
36096 fi
36097fi
36098
36099if test "$wxUSE_SOCKETS" = "yes" ; then
36100 cat >>confdefs.h <<\_ACEOF
36101#define wxUSE_SOCKETS 1
36102_ACEOF
36103
36104 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36105fi
36106
36107if test "$wxUSE_PROTOCOL" = "yes"; then
36108 if test "$wxUSE_SOCKETS" != "yes"; then
36109 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36110echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36111 wxUSE_PROTOCOL=no
36112 fi
36113fi
36114
36115if test "$wxUSE_PROTOCOL" = "yes"; then
36116 cat >>confdefs.h <<\_ACEOF
36117#define wxUSE_PROTOCOL 1
36118_ACEOF
36119
36120
36121 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36122 cat >>confdefs.h <<\_ACEOF
36123#define wxUSE_PROTOCOL_HTTP 1
36124_ACEOF
36125
36126 fi
36127 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36128 cat >>confdefs.h <<\_ACEOF
36129#define wxUSE_PROTOCOL_FTP 1
36130_ACEOF
36131
36132 fi
36133 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36134 cat >>confdefs.h <<\_ACEOF
36135#define wxUSE_PROTOCOL_FILE 1
36136_ACEOF
36137
36138 fi
36139else
36140 if test "$wxUSE_FS_INET" = "yes"; then
36141 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36142echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36143 wxUSE_FS_INET="no"
36144 fi
36145fi
36146
36147if test "$wxUSE_URL" = "yes"; then
36148 if test "$wxUSE_PROTOCOL" != "yes"; then
36149 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36150echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36151 wxUSE_URL=no
36152 fi
36153 if test "$wxUSE_URL" = "yes"; then
36154 cat >>confdefs.h <<\_ACEOF
36155#define wxUSE_URL 1
36156_ACEOF
36157
36158 fi
36159fi
36160
36161if test "$wxUSE_FS_INET" = "yes"; then
36162 cat >>confdefs.h <<\_ACEOF
36163#define wxUSE_FS_INET 1
36164_ACEOF
36165
36166fi
36167
36168
36169if test "$wxUSE_GUI" = "yes"; then
36170
36171 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36172 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36173echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36174 wxUSE_JOYSTICK=no
36175 fi
36176
36177 if test "$TOOLKIT" != "MSW"; then
36178 if test "$wxUSE_JOYSTICK" = "yes"; then
36179
36180for ac_header in linux/joystick.h
36181do
36182as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36183if eval "test \"\${$as_ac_Header+set}\" = set"; then
36184 echo "$as_me:$LINENO: checking for $ac_header" >&5
36185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36186if eval "test \"\${$as_ac_Header+set}\" = set"; then
36187 echo $ECHO_N "(cached) $ECHO_C" >&6
36188fi
36189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36191else
36192 # Is the header compilable?
36193echo "$as_me:$LINENO: checking $ac_header usability" >&5
36194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36195cat >conftest.$ac_ext <<_ACEOF
36196/* confdefs.h. */
36197_ACEOF
36198cat confdefs.h >>conftest.$ac_ext
36199cat >>conftest.$ac_ext <<_ACEOF
36200/* end confdefs.h. */
36201$ac_includes_default
36202#include <$ac_header>
36203_ACEOF
36204rm -f conftest.$ac_objext
36205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36206 (eval $ac_compile) 2>conftest.er1
36207 ac_status=$?
36208 grep -v '^ *+' conftest.er1 >conftest.err
36209 rm -f conftest.er1
36210 cat conftest.err >&5
36211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212 (exit $ac_status); } &&
dcc1b6ad
VS
36213 { ac_try='test -z "$ac_c_werror_flag"
36214 || test ! -s conftest.err'
a848cd7e
SC
36215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36216 (eval $ac_try) 2>&5
36217 ac_status=$?
36218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36219 (exit $ac_status); }; } &&
36220 { ac_try='test -s conftest.$ac_objext'
36221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36222 (eval $ac_try) 2>&5
36223 ac_status=$?
36224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36225 (exit $ac_status); }; }; then
36226 ac_header_compiler=yes
36227else
36228 echo "$as_me: failed program was:" >&5
36229sed 's/^/| /' conftest.$ac_ext >&5
36230
36231ac_header_compiler=no
36232fi
36233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36234echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36235echo "${ECHO_T}$ac_header_compiler" >&6
36236
36237# Is the header present?
36238echo "$as_me:$LINENO: checking $ac_header presence" >&5
36239echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36240cat >conftest.$ac_ext <<_ACEOF
36241/* confdefs.h. */
36242_ACEOF
36243cat confdefs.h >>conftest.$ac_ext
36244cat >>conftest.$ac_ext <<_ACEOF
36245/* end confdefs.h. */
36246#include <$ac_header>
36247_ACEOF
36248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36250 ac_status=$?
36251 grep -v '^ *+' conftest.er1 >conftest.err
36252 rm -f conftest.er1
36253 cat conftest.err >&5
36254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36255 (exit $ac_status); } >/dev/null; then
36256 if test -s conftest.err; then
36257 ac_cpp_err=$ac_c_preproc_warn_flag
36258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36259 else
36260 ac_cpp_err=
36261 fi
36262else
36263 ac_cpp_err=yes
36264fi
36265if test -z "$ac_cpp_err"; then
36266 ac_header_preproc=yes
36267else
36268 echo "$as_me: failed program was:" >&5
36269sed 's/^/| /' conftest.$ac_ext >&5
36270
36271 ac_header_preproc=no
36272fi
36273rm -f conftest.err conftest.$ac_ext
36274echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36275echo "${ECHO_T}$ac_header_preproc" >&6
36276
36277# So? What about this header?
36278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36279 yes:no: )
36280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36284 ac_header_preproc=yes
36285 ;;
36286 no:yes:* )
36287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36299 (
36300 cat <<\_ASBOX
36301## ----------------------------------------- ##
36302## Report this to wx-dev@lists.wxwindows.org ##
36303## ----------------------------------------- ##
36304_ASBOX
36305 ) |
36306 sed "s/^/$as_me: WARNING: /" >&2
36307 ;;
36308esac
36309echo "$as_me:$LINENO: checking for $ac_header" >&5
36310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36311if eval "test \"\${$as_ac_Header+set}\" = set"; then
36312 echo $ECHO_N "(cached) $ECHO_C" >&6
36313else
36314 eval "$as_ac_Header=\$ac_header_preproc"
36315fi
36316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36318
36319fi
36320if test `eval echo '${'$as_ac_Header'}'` = yes; then
36321 cat >>confdefs.h <<_ACEOF
36322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36323_ACEOF
36324
36325fi
36326
36327done
36328
36329 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36330 wxUSE_JOYSTICK=no
36331 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36332echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36333 fi
36334 fi
36335 fi
36336
36337 if test "$wxUSE_JOYSTICK" = "yes"; then
36338 cat >>confdefs.h <<\_ACEOF
36339#define wxUSE_JOYSTICK 1
36340_ACEOF
36341
36342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36343 fi
36344fi
36345
36346
36347
36348if test "$wxUSE_FONTMAP" = "yes" ; then
36349 cat >>confdefs.h <<\_ACEOF
36350#define wxUSE_FONTMAP 1
36351_ACEOF
36352
36353fi
36354
36355if test "$wxUSE_UNICODE" = "yes" ; then
36356 cat >>confdefs.h <<\_ACEOF
36357#define wxUSE_UNICODE 1
36358_ACEOF
36359
36360
36361 if test "$USE_WIN32" != 1; then
36362 wxUSE_UNICODE_MSLU=no
36363 fi
36364
36365 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36366 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36367echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36368if test "${ac_cv_lib_unicows_main+set}" = set; then
36369 echo $ECHO_N "(cached) $ECHO_C" >&6
36370else
36371 ac_check_lib_save_LIBS=$LIBS
36372LIBS="-lunicows $LIBS"
36373cat >conftest.$ac_ext <<_ACEOF
36374/* confdefs.h. */
36375_ACEOF
36376cat confdefs.h >>conftest.$ac_ext
36377cat >>conftest.$ac_ext <<_ACEOF
36378/* end confdefs.h. */
36379
36380
36381int
36382main ()
36383{
36384main ();
36385 ;
36386 return 0;
36387}
36388_ACEOF
36389rm -f conftest.$ac_objext conftest$ac_exeext
36390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36391 (eval $ac_link) 2>conftest.er1
36392 ac_status=$?
36393 grep -v '^ *+' conftest.er1 >conftest.err
36394 rm -f conftest.er1
36395 cat conftest.err >&5
36396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36397 (exit $ac_status); } &&
dcc1b6ad
VS
36398 { ac_try='test -z "$ac_c_werror_flag"
36399 || test ! -s conftest.err'
a848cd7e
SC
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_exeext'
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 ac_cv_lib_unicows_main=yes
36412else
36413 echo "$as_me: failed program was:" >&5
36414sed 's/^/| /' conftest.$ac_ext >&5
36415
36416ac_cv_lib_unicows_main=no
36417fi
36418rm -f conftest.err conftest.$ac_objext \
36419 conftest$ac_exeext conftest.$ac_ext
36420LIBS=$ac_check_lib_save_LIBS
36421fi
36422echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36423echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36424if test $ac_cv_lib_unicows_main = yes; then
36425
36426 cat >>confdefs.h <<\_ACEOF
36427#define wxUSE_UNICODE_MSLU 1
36428_ACEOF
36429
36430
36431else
36432
36433 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36434 Applications will only run on Windows NT/2000/XP!" >&5
36435echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36436 Applications will only run on Windows NT/2000/XP!" >&2;}
36437 wxUSE_UNICODE_MSLU=no
36438
36439fi
36440
36441 fi
36442fi
36443
36444if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36445 cat >>confdefs.h <<\_ACEOF
36446#define wxUSE_EXPERIMENTAL_PRINTF 1
36447_ACEOF
36448
36449fi
36450
36451
36452if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36453 cat >>confdefs.h <<\_ACEOF
36454#define wxUSE_POSTSCRIPT 1
36455_ACEOF
36456
36457fi
36458
36459cat >>confdefs.h <<\_ACEOF
36460#define wxUSE_AFM_FOR_POSTSCRIPT 1
36461_ACEOF
36462
36463
36464cat >>confdefs.h <<\_ACEOF
36465#define wxUSE_NORMALIZED_PS_FONTS 1
36466_ACEOF
36467
36468
36469
36470if test "$wxUSE_CONSTRAINTS" = "yes"; then
36471 cat >>confdefs.h <<\_ACEOF
36472#define wxUSE_CONSTRAINTS 1
36473_ACEOF
36474
36475 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36476fi
36477
36478if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36479 cat >>confdefs.h <<\_ACEOF
36480#define wxUSE_MDI_ARCHITECTURE 1
36481_ACEOF
36482
36483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36484fi
36485
36486if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36487 cat >>confdefs.h <<\_ACEOF
36488#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36489_ACEOF
36490
36491 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36492 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36493 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36494 fi
36495fi
36496
36497if test "$wxUSE_HELP" = "yes"; then
36498 cat >>confdefs.h <<\_ACEOF
36499#define wxUSE_HELP 1
36500_ACEOF
36501
36502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36503
36504 if test "$wxUSE_MSW" = 1; then
36505 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36506 cat >>confdefs.h <<\_ACEOF
36507#define wxUSE_MS_HTML_HELP 1
36508_ACEOF
36509
36510 fi
36511 fi
36512
36513 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36514 if test "$wxUSE_HTML" = "yes"; then
36515 cat >>confdefs.h <<\_ACEOF
36516#define wxUSE_WXHTML_HELP 1
36517_ACEOF
36518
36519 else
36520 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36521echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36522 wxUSE_WXHTML_HELP=no
36523 fi
36524 fi
36525fi
36526
36527if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36528 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36529 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36530echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36531 else
36532 cat >>confdefs.h <<\_ACEOF
36533#define wxUSE_PRINTING_ARCHITECTURE 1
36534_ACEOF
36535
36536 fi
36537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36538fi
36539
36540if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36541 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36542echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36543 { (exit 1); exit 1; }; }
36544fi
36545
36546
36547if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36548 -o "$wxUSE_CLIPBOARD" = "yes" \
36549 -o "$wxUSE_OLE" = "yes" \
36550 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36551
36552for ac_header in ole2.h
36553do
36554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36555if eval "test \"\${$as_ac_Header+set}\" = set"; then
36556 echo "$as_me:$LINENO: checking for $ac_header" >&5
36557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36558if eval "test \"\${$as_ac_Header+set}\" = set"; then
36559 echo $ECHO_N "(cached) $ECHO_C" >&6
36560fi
36561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36563else
36564 # Is the header compilable?
36565echo "$as_me:$LINENO: checking $ac_header usability" >&5
36566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36567cat >conftest.$ac_ext <<_ACEOF
36568/* confdefs.h. */
36569_ACEOF
36570cat confdefs.h >>conftest.$ac_ext
36571cat >>conftest.$ac_ext <<_ACEOF
36572/* end confdefs.h. */
36573$ac_includes_default
36574#include <$ac_header>
36575_ACEOF
36576rm -f conftest.$ac_objext
36577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36578 (eval $ac_compile) 2>conftest.er1
36579 ac_status=$?
36580 grep -v '^ *+' conftest.er1 >conftest.err
36581 rm -f conftest.er1
36582 cat conftest.err >&5
36583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36584 (exit $ac_status); } &&
dcc1b6ad
VS
36585 { ac_try='test -z "$ac_c_werror_flag"
36586 || test ! -s conftest.err'
a848cd7e
SC
36587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36588 (eval $ac_try) 2>&5
36589 ac_status=$?
36590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36591 (exit $ac_status); }; } &&
36592 { ac_try='test -s conftest.$ac_objext'
36593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36594 (eval $ac_try) 2>&5
36595 ac_status=$?
36596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36597 (exit $ac_status); }; }; then
36598 ac_header_compiler=yes
36599else
36600 echo "$as_me: failed program was:" >&5
36601sed 's/^/| /' conftest.$ac_ext >&5
36602
36603ac_header_compiler=no
36604fi
36605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36606echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36607echo "${ECHO_T}$ac_header_compiler" >&6
36608
36609# Is the header present?
36610echo "$as_me:$LINENO: checking $ac_header presence" >&5
36611echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36612cat >conftest.$ac_ext <<_ACEOF
36613/* confdefs.h. */
36614_ACEOF
36615cat confdefs.h >>conftest.$ac_ext
36616cat >>conftest.$ac_ext <<_ACEOF
36617/* end confdefs.h. */
36618#include <$ac_header>
36619_ACEOF
36620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36622 ac_status=$?
36623 grep -v '^ *+' conftest.er1 >conftest.err
36624 rm -f conftest.er1
36625 cat conftest.err >&5
36626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36627 (exit $ac_status); } >/dev/null; then
36628 if test -s conftest.err; then
36629 ac_cpp_err=$ac_c_preproc_warn_flag
36630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36631 else
36632 ac_cpp_err=
36633 fi
36634else
36635 ac_cpp_err=yes
36636fi
36637if test -z "$ac_cpp_err"; then
36638 ac_header_preproc=yes
36639else
36640 echo "$as_me: failed program was:" >&5
36641sed 's/^/| /' conftest.$ac_ext >&5
36642
36643 ac_header_preproc=no
36644fi
36645rm -f conftest.err conftest.$ac_ext
36646echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36647echo "${ECHO_T}$ac_header_preproc" >&6
36648
36649# So? What about this header?
36650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36651 yes:no: )
36652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36653echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36655echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36656 ac_header_preproc=yes
36657 ;;
36658 no:yes:* )
36659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36660echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36662echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36664echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36666echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36670echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36671 (
36672 cat <<\_ASBOX
36673## ----------------------------------------- ##
36674## Report this to wx-dev@lists.wxwindows.org ##
36675## ----------------------------------------- ##
36676_ASBOX
36677 ) |
36678 sed "s/^/$as_me: WARNING: /" >&2
36679 ;;
36680esac
36681echo "$as_me:$LINENO: checking for $ac_header" >&5
36682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36683if eval "test \"\${$as_ac_Header+set}\" = set"; then
36684 echo $ECHO_N "(cached) $ECHO_C" >&6
36685else
36686 eval "$as_ac_Header=\$ac_header_preproc"
36687fi
36688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36690
36691fi
36692if test `eval echo '${'$as_ac_Header'}'` = yes; then
36693 cat >>confdefs.h <<_ACEOF
36694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36695_ACEOF
36696
36697fi
36698
36699done
36700
36701
36702 if test "$ac_cv_header_ole2_h" = "yes" ; then
36703 if test "$GCC" = yes ; then
36704
36705
36706 ac_ext=cc
36707ac_cpp='$CXXCPP $CPPFLAGS'
36708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36711
36712
36713 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36714echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36715 cat >conftest.$ac_ext <<_ACEOF
36716/* confdefs.h. */
36717_ACEOF
36718cat confdefs.h >>conftest.$ac_ext
36719cat >>conftest.$ac_ext <<_ACEOF
36720/* end confdefs.h. */
36721#include <windows.h>
36722 #include <ole2.h>
36723int
36724main ()
36725{
36726
36727 ;
36728 return 0;
36729}
36730_ACEOF
36731rm -f conftest.$ac_objext
36732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36733 (eval $ac_compile) 2>conftest.er1
36734 ac_status=$?
36735 grep -v '^ *+' conftest.er1 >conftest.err
36736 rm -f conftest.er1
36737 cat conftest.err >&5
36738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36739 (exit $ac_status); } &&
dcc1b6ad
VS
36740 { ac_try='test -z "$ac_cxx_werror_flag"
36741 || test ! -s conftest.err'
a848cd7e
SC
36742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36743 (eval $ac_try) 2>&5
36744 ac_status=$?
36745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36746 (exit $ac_status); }; } &&
36747 { ac_try='test -s conftest.$ac_objext'
36748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36749 (eval $ac_try) 2>&5
36750 ac_status=$?
36751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36752 (exit $ac_status); }; }; then
36753 echo "$as_me:$LINENO: result: no" >&5
36754echo "${ECHO_T}no" >&6
36755else
36756 echo "$as_me: failed program was:" >&5
36757sed 's/^/| /' conftest.$ac_ext >&5
36758
36759echo "$as_me:$LINENO: result: yes" >&5
36760echo "${ECHO_T}yes" >&6
36761 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36762fi
36763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36764 ac_ext=c
36765ac_cpp='$CPP $CPPFLAGS'
36766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36768ac_compiler_gnu=$ac_cv_c_compiler_gnu
36769
36770 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36771 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36772 if test "$wxUSE_OLE" = "yes" ; then
36773 cat >>confdefs.h <<\_ACEOF
36774#define wxUSE_OLE 1
36775_ACEOF
36776
36777 fi
36778 fi
36779
36780 if test "$wxUSE_DATAOBJ" = "yes" ; then
36781 cat >>confdefs.h <<\_ACEOF
36782#define wxUSE_DATAOBJ 1
36783_ACEOF
36784
36785 fi
36786 else
36787 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36788echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36789
36790 wxUSE_CLIPBOARD=no
36791 wxUSE_DRAG_AND_DROP=no
36792 wxUSE_DATAOBJ=no
36793 wxUSE_OLE=no
36794 fi
36795
36796 if test "$wxUSE_METAFILE" = "yes"; then
36797 cat >>confdefs.h <<\_ACEOF
36798#define wxUSE_METAFILE 1
36799_ACEOF
36800
36801
36802 cat >>confdefs.h <<\_ACEOF
36803#define wxUSE_ENH_METAFILE 1
36804_ACEOF
36805
36806 fi
36807fi
36808
36809if test "$wxUSE_IPC" = "yes"; then
36810 if test "$wxUSE_SOCKETS" != "yes"; then
36811 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
36812echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
36813 fi
36814
36815 cat >>confdefs.h <<\_ACEOF
36816#define wxUSE_IPC 1
36817_ACEOF
36818
36819fi
36820
36821if test "$wxUSE_CLIPBOARD" = "yes"; then
36822 if test "$wxUSE_MGL" = 1; then
36823 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36824echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36825 wxUSE_CLIPBOARD=no
36826 fi
36827
36828 if test "$wxUSE_CLIPBOARD" = "yes"; then
36829 cat >>confdefs.h <<\_ACEOF
36830#define wxUSE_CLIPBOARD 1
36831_ACEOF
36832
36833
36834 cat >>confdefs.h <<\_ACEOF
36835#define wxUSE_DATAOBJ 1
36836_ACEOF
36837
36838 fi
36839fi
36840
36841if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36842 if test "$wxUSE_GTK" = 1; then
36843 if test "$WXGTK12" != 1; then
36844 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36845echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36846 wxUSE_DRAG_AND_DROP=no
36847 fi
36848 fi
36849
36850 if test "$wxUSE_MOTIF" = 1; then
36851 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36852echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36853 wxUSE_DRAG_AND_DROP=no
36854 fi
36855
36856 if test "$wxUSE_X11" = 1; then
36857 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36858echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36859 wxUSE_DRAG_AND_DROP=no
36860 fi
36861
36862 if test "$wxUSE_MGL" = 1; then
36863 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36864echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36865 wxUSE_DRAG_AND_DROP=no
36866 fi
36867
36868 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36869 cat >>confdefs.h <<\_ACEOF
36870#define wxUSE_DRAG_AND_DROP 1
36871_ACEOF
36872
36873 fi
36874
36875fi
36876
36877if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36879fi
36880
36881if test "$wxUSE_SPLINES" = "yes" ; then
36882 cat >>confdefs.h <<\_ACEOF
36883#define wxUSE_SPLINES 1
36884_ACEOF
36885
36886fi
36887
36888
36889USES_CONTROLS=0
36890if test "$wxUSE_CONTROLS" = "yes"; then
36891 USES_CONTROLS=1
36892fi
36893
36894if test "$wxUSE_ACCEL" = "yes"; then
36895 cat >>confdefs.h <<\_ACEOF
36896#define wxUSE_ACCEL 1
36897_ACEOF
36898
36899 USES_CONTROLS=1
36900fi
36901
36902if test "$wxUSE_BUTTON" = "yes"; then
36903 cat >>confdefs.h <<\_ACEOF
36904#define wxUSE_BUTTON 1
36905_ACEOF
36906
36907 USES_CONTROLS=1
36908fi
36909
36910if test "$wxUSE_BMPBUTTON" = "yes"; then
36911 cat >>confdefs.h <<\_ACEOF
36912#define wxUSE_BMPBUTTON 1
36913_ACEOF
36914
36915 USES_CONTROLS=1
36916fi
36917
36918if test "$wxUSE_CALCTRL" = "yes"; then
36919 cat >>confdefs.h <<\_ACEOF
36920#define wxUSE_CALENDARCTRL 1
36921_ACEOF
36922
36923 USES_CONTROLS=1
36924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36925fi
36926
36927if test "$wxUSE_CARET" = "yes"; then
36928 cat >>confdefs.h <<\_ACEOF
36929#define wxUSE_CARET 1
36930_ACEOF
36931
36932 USES_CONTROLS=1
36933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36934fi
36935
36936if test "$wxUSE_COMBOBOX" = "yes"; then
36937 cat >>confdefs.h <<\_ACEOF
36938#define wxUSE_COMBOBOX 1
36939_ACEOF
36940
36941 USES_CONTROLS=1
36942fi
36943
36944if test "$wxUSE_CHOICE" = "yes"; then
36945 cat >>confdefs.h <<\_ACEOF
36946#define wxUSE_CHOICE 1
36947_ACEOF
36948
36949 USES_CONTROLS=1
36950fi
36951
36952if test "$wxUSE_CHECKBOX" = "yes"; then
36953 cat >>confdefs.h <<\_ACEOF
36954#define wxUSE_CHECKBOX 1
36955_ACEOF
36956
36957 USES_CONTROLS=1
36958fi
36959
36960if test "$wxUSE_CHECKLST" = "yes"; then
36961 cat >>confdefs.h <<\_ACEOF
36962#define wxUSE_CHECKLISTBOX 1
36963_ACEOF
36964
36965 USES_CONTROLS=1
36966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36967fi
36968
36969if test "$wxUSE_DISPLAY" = "yes"; then
36970 cat >>confdefs.h <<\_ACEOF
36971#define wxUSE_DISPLAY 1
36972_ACEOF
36973
36974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36975fi
36976
36977if test "$wxUSE_GAUGE" = "yes"; then
36978 cat >>confdefs.h <<\_ACEOF
36979#define wxUSE_GAUGE 1
36980_ACEOF
36981
36982 USES_CONTROLS=1
36983fi
36984
36985if test "$wxUSE_GRID" = "yes"; then
36986 cat >>confdefs.h <<\_ACEOF
36987#define wxUSE_GRID 1
36988_ACEOF
36989
36990 USES_CONTROLS=1
36991 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36992fi
36993
36994if test "$wxUSE_IMAGLIST" = "yes"; then
36995 cat >>confdefs.h <<\_ACEOF
36996#define wxUSE_IMAGLIST 1
36997_ACEOF
36998
36999fi
37000
37001if test "$wxUSE_LISTBOOK" = "yes"; then
37002 cat >>confdefs.h <<\_ACEOF
37003#define wxUSE_LISTBOOK 1
37004_ACEOF
37005
37006 USES_CONTROLS=1
37007fi
37008
37009if test "$wxUSE_LISTBOX" = "yes"; then
37010 cat >>confdefs.h <<\_ACEOF
37011#define wxUSE_LISTBOX 1
37012_ACEOF
37013
37014 USES_CONTROLS=1
37015fi
37016
37017if test "$wxUSE_LISTCTRL" = "yes"; then
37018 if test "$wxUSE_IMAGLIST" = "yes"; then
37019 cat >>confdefs.h <<\_ACEOF
37020#define wxUSE_LISTCTRL 1
37021_ACEOF
37022
37023 USES_CONTROLS=1
37024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37025 else
37026 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37027echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37028 fi
37029fi
37030
37031if test "$wxUSE_NOTEBOOK" = "yes"; then
37032 cat >>confdefs.h <<\_ACEOF
37033#define wxUSE_NOTEBOOK 1
37034_ACEOF
37035
37036 USES_CONTROLS=1
37037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37038fi
37039
37040
37041if test "$wxUSE_RADIOBOX" = "yes"; then
37042 cat >>confdefs.h <<\_ACEOF
37043#define wxUSE_RADIOBOX 1
37044_ACEOF
37045
37046 USES_CONTROLS=1
37047fi
37048
37049if test "$wxUSE_RADIOBTN" = "yes"; then
37050 cat >>confdefs.h <<\_ACEOF
37051#define wxUSE_RADIOBTN 1
37052_ACEOF
37053
37054 USES_CONTROLS=1
37055fi
37056
37057if test "$wxUSE_SASH" = "yes"; then
37058 cat >>confdefs.h <<\_ACEOF
37059#define wxUSE_SASH 1
37060_ACEOF
37061
37062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37063fi
37064
37065if test "$wxUSE_SCROLLBAR" = "yes"; then
37066 cat >>confdefs.h <<\_ACEOF
37067#define wxUSE_SCROLLBAR 1
37068_ACEOF
37069
37070 USES_CONTROLS=1
37071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37072fi
37073
37074if test "$wxUSE_SLIDER" = "yes"; then
37075 cat >>confdefs.h <<\_ACEOF
37076#define wxUSE_SLIDER 1
37077_ACEOF
37078
37079 USES_CONTROLS=1
37080fi
37081
37082if test "$wxUSE_SPINBTN" = "yes"; then
37083 cat >>confdefs.h <<\_ACEOF
37084#define wxUSE_SPINBTN 1
37085_ACEOF
37086
37087 USES_CONTROLS=1
37088fi
37089
37090if test "$wxUSE_SPINCTRL" = "yes"; then
37091 cat >>confdefs.h <<\_ACEOF
37092#define wxUSE_SPINCTRL 1
37093_ACEOF
37094
37095 USES_CONTROLS=1
37096fi
37097
37098if test "$wxUSE_SPLITTER" = "yes"; then
37099 cat >>confdefs.h <<\_ACEOF
37100#define wxUSE_SPLITTER 1
37101_ACEOF
37102
37103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37104fi
37105
37106if test "$wxUSE_STATBMP" = "yes"; then
37107 cat >>confdefs.h <<\_ACEOF
37108#define wxUSE_STATBMP 1
37109_ACEOF
37110
37111 USES_CONTROLS=1
37112fi
37113
37114if test "$wxUSE_STATBOX" = "yes"; then
37115 cat >>confdefs.h <<\_ACEOF
37116#define wxUSE_STATBOX 1
37117_ACEOF
37118
37119 USES_CONTROLS=1
37120fi
37121
37122if test "$wxUSE_STATTEXT" = "yes"; then
37123 cat >>confdefs.h <<\_ACEOF
37124#define wxUSE_STATTEXT 1
37125_ACEOF
37126
37127 USES_CONTROLS=1
37128fi
37129
37130if test "$wxUSE_STATLINE" = "yes"; then
37131 cat >>confdefs.h <<\_ACEOF
37132#define wxUSE_STATLINE 1
37133_ACEOF
37134
37135 USES_CONTROLS=1
37136fi
37137
37138if test "$wxUSE_STATUSBAR" = "yes"; then
37139 cat >>confdefs.h <<\_ACEOF
37140#define wxUSE_STATUSBAR 1
37141_ACEOF
37142
37143 USES_CONTROLS=1
37144
37145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37146fi
37147
37148if test "$wxUSE_TABDIALOG" = "yes"; then
37149 cat >>confdefs.h <<\_ACEOF
37150#define wxUSE_TAB_DIALOG 1
37151_ACEOF
37152
37153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37154fi
37155
37156if test "$wxUSE_TEXTCTRL" = "yes"; then
37157 cat >>confdefs.h <<\_ACEOF
37158#define wxUSE_TEXTCTRL 1
37159_ACEOF
37160
37161 USES_CONTROLS=1
37162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37163fi
37164
37165if test "$wxUSE_TOGGLEBTN" = "yes"; then
37166 if test "$wxUSE_COCOA" = 1 ; then
37167 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37168echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37169 wxUSE_TOGGLEBTN=no
37170 fi
37171 if test "$wxUSE_UNIVERSAL" = "yes"; then
37172 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37173echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37174 wxUSE_TOGGLEBTN=no
37175 fi
37176
37177 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37178 cat >>confdefs.h <<\_ACEOF
37179#define wxUSE_TOGGLEBTN 1
37180_ACEOF
37181
37182 USES_CONTROLS=1
37183 fi
37184fi
37185
37186if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37187 cat >>confdefs.h <<\_ACEOF
37188#define wxUSE_TOOLBAR_SIMPLE 1
37189_ACEOF
37190
37191 wxUSE_TOOLBAR="yes"
37192 USES_CONTROLS=1
37193fi
37194
37195if test "$wxUSE_TOOLBAR" = "yes"; then
37196 cat >>confdefs.h <<\_ACEOF
37197#define wxUSE_TOOLBAR 1
37198_ACEOF
37199
37200 USES_CONTROLS=1
37201
37202 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37203 wxUSE_TOOLBAR_NATIVE="yes"
37204 fi
37205
37206 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37207 cat >>confdefs.h <<\_ACEOF
37208#define wxUSE_TOOLBAR_NATIVE 1
37209_ACEOF
37210
37211 USES_CONTROLS=1
37212 fi
37213
37214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37215fi
37216
37217if test "$wxUSE_TOOLTIPS" = "yes"; then
37218 if test "$wxUSE_MOTIF" = 1; then
37219 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37220echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37221 else
37222 if test "$wxUSE_UNIVERSAL" = "yes"; then
37223 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37224echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37225 else
37226 cat >>confdefs.h <<\_ACEOF
37227#define wxUSE_TOOLTIPS 1
37228_ACEOF
37229
37230 fi
37231 fi
37232fi
37233
37234if test "$wxUSE_TREECTRL" = "yes"; then
37235 if test "$wxUSE_IMAGLIST" = "yes"; then
37236 cat >>confdefs.h <<\_ACEOF
37237#define wxUSE_TREECTRL 1
37238_ACEOF
37239
37240 USES_CONTROLS=1
37241 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37242 else
37243 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37244echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37245 fi
37246fi
37247
37248if test "$wxUSE_POPUPWIN" = "yes"; then
37249 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37250 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37251echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37252 else
37253 if test "$wxUSE_PM" = 1; then
37254 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37255echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37256 else
37257 cat >>confdefs.h <<\_ACEOF
37258#define wxUSE_POPUPWIN 1
37259_ACEOF
37260
37261
37262 USES_CONTROLS=1
37263 fi
37264 fi
37265fi
37266
37267if test "$wxUSE_TIPWINDOW" = "yes"; then
37268 if test "$wxUSE_PM" = 1; then
37269 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37270echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37271 else
37272 cat >>confdefs.h <<\_ACEOF
37273#define wxUSE_TIPWINDOW 1
37274_ACEOF
37275
37276 fi
37277fi
37278
37279if test "$USES_CONTROLS" = 1; then
37280 cat >>confdefs.h <<\_ACEOF
37281#define wxUSE_CONTROLS 1
37282_ACEOF
37283
37284fi
37285
37286
37287if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37288 cat >>confdefs.h <<\_ACEOF
37289#define wxUSE_ACCESSIBILITY 1
37290_ACEOF
37291
37292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37293fi
37294
37295if test "$wxUSE_DRAGIMAGE" = "yes"; then
37296 cat >>confdefs.h <<\_ACEOF
37297#define wxUSE_DRAGIMAGE 1
37298_ACEOF
37299
37300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37301fi
37302
37303if test "$wxUSE_EXCEPTIONS" = "yes"; then
37304 cat >>confdefs.h <<\_ACEOF
37305#define wxUSE_EXCEPTIONS 1
37306_ACEOF
37307
37308fi
37309
37310USE_HTML=0
37311if test "$wxUSE_HTML" = "yes"; then
37312 cat >>confdefs.h <<\_ACEOF
37313#define wxUSE_HTML 1
37314_ACEOF
37315
37316 USE_HTML=1
37317 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
37318fi
37319
37320if test "$wxUSE_MENUS" = "yes"; then
37321 cat >>confdefs.h <<\_ACEOF
37322#define wxUSE_MENUS 1
37323_ACEOF
37324
37325 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37326fi
37327
37328if test "$wxUSE_METAFILE" = "yes"; then
37329 cat >>confdefs.h <<\_ACEOF
37330#define wxUSE_METAFILE 1
37331_ACEOF
37332
37333fi
37334
37335if test "$wxUSE_MIMETYPE" = "yes"; then
37336 cat >>confdefs.h <<\_ACEOF
37337#define wxUSE_MIMETYPE 1
37338_ACEOF
37339
37340fi
37341
37342if test "$wxUSE_MINIFRAME" = "yes"; then
37343 cat >>confdefs.h <<\_ACEOF
37344#define wxUSE_MINIFRAME 1
37345_ACEOF
37346
37347 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37348fi
37349
37350if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37351 cat >>confdefs.h <<\_ACEOF
37352#define wxUSE_SYSTEM_OPTIONS 1
37353_ACEOF
37354
37355 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37356 "$TOOLKIT" = "MOTIF"; then
37357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37358 fi
37359fi
37360
37361
37362if test "$wxUSE_VALIDATORS" = "yes"; then
37363 cat >>confdefs.h <<\_ACEOF
37364#define wxUSE_VALIDATORS 1
37365_ACEOF
37366
37367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37368fi
37369
37370if test "$wxUSE_PALETTE" = "yes" ; then
37371 cat >>confdefs.h <<\_ACEOF
37372#define wxUSE_PALETTE 1
37373_ACEOF
37374
37375fi
37376
37377if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37378 LIBS=" -lunicows $LIBS"
37379fi
37380
37381
37382if test "$wxUSE_IMAGE" = "yes" ; then
37383 cat >>confdefs.h <<\_ACEOF
37384#define wxUSE_IMAGE 1
37385_ACEOF
37386
37387
37388 if test "$wxUSE_GIF" = "yes" ; then
37389 cat >>confdefs.h <<\_ACEOF
37390#define wxUSE_GIF 1
37391_ACEOF
37392
37393 fi
37394
37395 if test "$wxUSE_PCX" = "yes" ; then
37396 cat >>confdefs.h <<\_ACEOF
37397#define wxUSE_PCX 1
37398_ACEOF
37399
37400 fi
37401
37402 if test "$wxUSE_IFF" = "yes" ; then
37403 cat >>confdefs.h <<\_ACEOF
37404#define wxUSE_IFF 1
37405_ACEOF
37406
37407 fi
37408
37409 if test "$wxUSE_PNM" = "yes" ; then
37410 cat >>confdefs.h <<\_ACEOF
37411#define wxUSE_PNM 1
37412_ACEOF
37413
37414 fi
37415
37416 if test "$wxUSE_XPM" = "yes" ; then
37417 cat >>confdefs.h <<\_ACEOF
37418#define wxUSE_XPM 1
37419_ACEOF
37420
37421 fi
37422
37423 if test "$wxUSE_ICO_CUR" = "yes" ; then
37424 cat >>confdefs.h <<\_ACEOF
37425#define wxUSE_ICO_CUR 1
37426_ACEOF
37427
37428 fi
37429fi
37430
37431
37432if test "$wxUSE_CHOICEDLG" = "yes"; then
37433 cat >>confdefs.h <<\_ACEOF
37434#define wxUSE_CHOICEDLG 1
37435_ACEOF
37436
37437fi
37438
37439if test "$wxUSE_COLOURDLG" = "yes"; then
37440 cat >>confdefs.h <<\_ACEOF
37441#define wxUSE_COLOURDLG 1
37442_ACEOF
37443
37444fi
37445
37446if test "$wxUSE_FILEDLG" = "yes"; then
37447 cat >>confdefs.h <<\_ACEOF
37448#define wxUSE_FILEDLG 1
37449_ACEOF
37450
37451fi
37452
37453if test "$wxUSE_FINDREPLDLG" = "yes"; then
37454 cat >>confdefs.h <<\_ACEOF
37455#define wxUSE_FINDREPLDLG 1
37456_ACEOF
37457
37458fi
37459
37460if test "$wxUSE_FONTDLG" = "yes"; then
37461 cat >>confdefs.h <<\_ACEOF
37462#define wxUSE_FONTDLG 1
37463_ACEOF
37464
37465fi
37466
37467if test "$wxUSE_DIRDLG" = "yes"; then
37468 if test "$wxUSE_TREECTRL" != "yes"; then
37469 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37470echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37471 else
37472 cat >>confdefs.h <<\_ACEOF
37473#define wxUSE_DIRDLG 1
37474_ACEOF
37475
37476 fi
37477fi
37478
37479if test "$wxUSE_MSGDLG" = "yes"; then
37480 cat >>confdefs.h <<\_ACEOF
37481#define wxUSE_MSGDLG 1
37482_ACEOF
37483
37484fi
37485
37486if test "$wxUSE_NUMBERDLG" = "yes"; then
37487 cat >>confdefs.h <<\_ACEOF
37488#define wxUSE_NUMBERDLG 1
37489_ACEOF
37490
37491fi
37492
37493if test "$wxUSE_PROGRESSDLG" = "yes"; then
37494 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37495 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37496echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37497 else
37498 cat >>confdefs.h <<\_ACEOF
37499#define wxUSE_PROGRESSDLG 1
37500_ACEOF
37501
37502 fi
37503fi
37504
37505if test "$wxUSE_SPLASH" = "yes"; then
37506 cat >>confdefs.h <<\_ACEOF
37507#define wxUSE_SPLASH 1
37508_ACEOF
37509
37510fi
37511
37512if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37513 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37514 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37515echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37516 else
37517 cat >>confdefs.h <<\_ACEOF
37518#define wxUSE_STARTUP_TIPS 1
37519_ACEOF
37520
37521 fi
37522fi
37523
37524if test "$wxUSE_TEXTDLG" = "yes"; then
37525 cat >>confdefs.h <<\_ACEOF
37526#define wxUSE_TEXTDLG 1
37527_ACEOF
37528
37529fi
37530
37531if test "$wxUSE_WIZARDDLG" = "yes"; then
37532 cat >>confdefs.h <<\_ACEOF
37533#define wxUSE_WIZARDDLG 1
37534_ACEOF
37535
37536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37537fi
37538
37539
37540if test "$cross_compiling" = "yes"; then
37541 OSINFO="\"$host\""
37542else
37543 OSINFO=`uname -s -r -m`
37544 OSINFO="\"$OSINFO\""
37545fi
37546
37547cat >>confdefs.h <<_ACEOF
37548#define WXWIN_OS_DESCRIPTION $OSINFO
37549_ACEOF
37550
37551
37552
37553if test "x$prefix" != "xNONE"; then
37554 wxPREFIX=$prefix
37555else
37556 wxPREFIX=$ac_default_prefix
37557fi
37558
37559cat >>confdefs.h <<_ACEOF
37560#define wxINSTALL_PREFIX "$wxPREFIX"
37561_ACEOF
37562
37563
37564top_builddir_wxconfig=`pwd`
37565
37566
37567
37568CORE_BASE_LIBS="net base"
37569CORE_GUI_LIBS="adv core"
37570
37571if test "$wxUSE_XML" = "yes" ; then
37572 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37573fi
37574if test "$wxUSE_ODBC" != "no" ; then
37575 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37576 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37577fi
37578if test "$wxUSE_HTML" = "yes" ; then
37579 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37580fi
37581
37582if test "$wxUSE_GUI" != "yes"; then
37583 CORE_GUI_LIBS=""
37584fi
37585
37586
37587
37588
37589
37590
37591
37592
37593if test "$wxUSE_MAC" = 1 ; then
37594 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
37595fi
37596if test "$wxUSE_COCOA" = 1 ; then
37597 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37598fi
37599
37600
37601LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37602
37603have_cos=0
37604have_floor=0
37605
37606for ac_func in cos
37607do
37608as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37609echo "$as_me:$LINENO: checking for $ac_func" >&5
37610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37611if eval "test \"\${$as_ac_var+set}\" = set"; then
37612 echo $ECHO_N "(cached) $ECHO_C" >&6
37613else
37614 cat >conftest.$ac_ext <<_ACEOF
37615/* confdefs.h. */
37616_ACEOF
37617cat confdefs.h >>conftest.$ac_ext
37618cat >>conftest.$ac_ext <<_ACEOF
37619/* end confdefs.h. */
37620/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37622#define $ac_func innocuous_$ac_func
37623
37624/* System header to define __stub macros and hopefully few prototypes,
37625 which can conflict with char $ac_func (); below.
37626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37627 <limits.h> exists even on freestanding compilers. */
37628
37629#ifdef __STDC__
37630# include <limits.h>
37631#else
37632# include <assert.h>
37633#endif
37634
37635#undef $ac_func
37636
37637/* Override any gcc2 internal prototype to avoid an error. */
37638#ifdef __cplusplus
37639extern "C"
37640{
37641#endif
37642/* We use char because int might match the return type of a gcc2
37643 builtin and then its argument prototype would still apply. */
37644char $ac_func ();
37645/* The GNU C library defines this for functions which it implements
37646 to always fail with ENOSYS. Some functions are actually named
37647 something starting with __ and the normal name is an alias. */
37648#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37649choke me
37650#else
37651char (*f) () = $ac_func;
37652#endif
37653#ifdef __cplusplus
37654}
37655#endif
37656
37657int
37658main ()
37659{
37660return f != $ac_func;
37661 ;
37662 return 0;
37663}
37664_ACEOF
37665rm -f conftest.$ac_objext conftest$ac_exeext
37666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37667 (eval $ac_link) 2>conftest.er1
37668 ac_status=$?
37669 grep -v '^ *+' conftest.er1 >conftest.err
37670 rm -f conftest.er1
37671 cat conftest.err >&5
37672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37673 (exit $ac_status); } &&
dcc1b6ad
VS
37674 { ac_try='test -z "$ac_c_werror_flag"
37675 || test ! -s conftest.err'
a848cd7e
SC
37676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37677 (eval $ac_try) 2>&5
37678 ac_status=$?
37679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680 (exit $ac_status); }; } &&
37681 { ac_try='test -s conftest$ac_exeext'
37682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37683 (eval $ac_try) 2>&5
37684 ac_status=$?
37685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686 (exit $ac_status); }; }; then
37687 eval "$as_ac_var=yes"
37688else
37689 echo "$as_me: failed program was:" >&5
37690sed 's/^/| /' conftest.$ac_ext >&5
37691
37692eval "$as_ac_var=no"
37693fi
37694rm -f conftest.err conftest.$ac_objext \
37695 conftest$ac_exeext conftest.$ac_ext
37696fi
37697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37698echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37699if test `eval echo '${'$as_ac_var'}'` = yes; then
37700 cat >>confdefs.h <<_ACEOF
37701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37702_ACEOF
37703 have_cos=1
37704fi
37705done
37706
37707
37708for ac_func in floor
37709do
37710as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37711echo "$as_me:$LINENO: checking for $ac_func" >&5
37712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37713if eval "test \"\${$as_ac_var+set}\" = set"; then
37714 echo $ECHO_N "(cached) $ECHO_C" >&6
37715else
37716 cat >conftest.$ac_ext <<_ACEOF
37717/* confdefs.h. */
37718_ACEOF
37719cat confdefs.h >>conftest.$ac_ext
37720cat >>conftest.$ac_ext <<_ACEOF
37721/* end confdefs.h. */
37722/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37724#define $ac_func innocuous_$ac_func
37725
37726/* System header to define __stub macros and hopefully few prototypes,
37727 which can conflict with char $ac_func (); below.
37728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37729 <limits.h> exists even on freestanding compilers. */
37730
37731#ifdef __STDC__
37732# include <limits.h>
37733#else
37734# include <assert.h>
37735#endif
37736
37737#undef $ac_func
37738
37739/* Override any gcc2 internal prototype to avoid an error. */
37740#ifdef __cplusplus
37741extern "C"
37742{
37743#endif
37744/* We use char because int might match the return type of a gcc2
37745 builtin and then its argument prototype would still apply. */
37746char $ac_func ();
37747/* The GNU C library defines this for functions which it implements
37748 to always fail with ENOSYS. Some functions are actually named
37749 something starting with __ and the normal name is an alias. */
37750#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37751choke me
37752#else
37753char (*f) () = $ac_func;
37754#endif
37755#ifdef __cplusplus
37756}
37757#endif
37758
37759int
37760main ()
37761{
37762return f != $ac_func;
37763 ;
37764 return 0;
37765}
37766_ACEOF
37767rm -f conftest.$ac_objext conftest$ac_exeext
37768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37769 (eval $ac_link) 2>conftest.er1
37770 ac_status=$?
37771 grep -v '^ *+' conftest.er1 >conftest.err
37772 rm -f conftest.er1
37773 cat conftest.err >&5
37774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775 (exit $ac_status); } &&
dcc1b6ad
VS
37776 { ac_try='test -z "$ac_c_werror_flag"
37777 || test ! -s conftest.err'
a848cd7e
SC
37778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37779 (eval $ac_try) 2>&5
37780 ac_status=$?
37781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782 (exit $ac_status); }; } &&
37783 { ac_try='test -s conftest$ac_exeext'
37784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37785 (eval $ac_try) 2>&5
37786 ac_status=$?
37787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788 (exit $ac_status); }; }; then
37789 eval "$as_ac_var=yes"
37790else
37791 echo "$as_me: failed program was:" >&5
37792sed 's/^/| /' conftest.$ac_ext >&5
37793
37794eval "$as_ac_var=no"
37795fi
37796rm -f conftest.err conftest.$ac_objext \
37797 conftest$ac_exeext conftest.$ac_ext
37798fi
37799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37800echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37801if test `eval echo '${'$as_ac_var'}'` = yes; then
37802 cat >>confdefs.h <<_ACEOF
37803#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37804_ACEOF
37805 have_floor=1
37806fi
37807done
37808
37809echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37810echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37811if test "$have_cos" = 1 -a "$have_floor" = 1; then
37812 echo "$as_me:$LINENO: result: yes" >&5
37813echo "${ECHO_T}yes" >&6
37814else
37815 echo "$as_me:$LINENO: result: no" >&5
37816echo "${ECHO_T}no" >&6
37817 LIBS="$LIBS -lm"
37818 # use different functions to avoid configure caching
37819 have_sin=0
37820 have_ceil=0
37821
37822for ac_func in sin
37823do
37824as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37825echo "$as_me:$LINENO: checking for $ac_func" >&5
37826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37827if eval "test \"\${$as_ac_var+set}\" = set"; then
37828 echo $ECHO_N "(cached) $ECHO_C" >&6
37829else
37830 cat >conftest.$ac_ext <<_ACEOF
37831/* confdefs.h. */
37832_ACEOF
37833cat confdefs.h >>conftest.$ac_ext
37834cat >>conftest.$ac_ext <<_ACEOF
37835/* end confdefs.h. */
37836/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37838#define $ac_func innocuous_$ac_func
37839
37840/* System header to define __stub macros and hopefully few prototypes,
37841 which can conflict with char $ac_func (); below.
37842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37843 <limits.h> exists even on freestanding compilers. */
37844
37845#ifdef __STDC__
37846# include <limits.h>
37847#else
37848# include <assert.h>
37849#endif
37850
37851#undef $ac_func
37852
37853/* Override any gcc2 internal prototype to avoid an error. */
37854#ifdef __cplusplus
37855extern "C"
37856{
37857#endif
37858/* We use char because int might match the return type of a gcc2
37859 builtin and then its argument prototype would still apply. */
37860char $ac_func ();
37861/* The GNU C library defines this for functions which it implements
37862 to always fail with ENOSYS. Some functions are actually named
37863 something starting with __ and the normal name is an alias. */
37864#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37865choke me
37866#else
37867char (*f) () = $ac_func;
37868#endif
37869#ifdef __cplusplus
37870}
37871#endif
37872
37873int
37874main ()
37875{
37876return f != $ac_func;
37877 ;
37878 return 0;
37879}
37880_ACEOF
37881rm -f conftest.$ac_objext conftest$ac_exeext
37882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37883 (eval $ac_link) 2>conftest.er1
37884 ac_status=$?
37885 grep -v '^ *+' conftest.er1 >conftest.err
37886 rm -f conftest.er1
37887 cat conftest.err >&5
37888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889 (exit $ac_status); } &&
dcc1b6ad
VS
37890 { ac_try='test -z "$ac_c_werror_flag"
37891 || test ! -s conftest.err'
a848cd7e
SC
37892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37893 (eval $ac_try) 2>&5
37894 ac_status=$?
37895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37896 (exit $ac_status); }; } &&
37897 { ac_try='test -s conftest$ac_exeext'
37898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37899 (eval $ac_try) 2>&5
37900 ac_status=$?
37901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37902 (exit $ac_status); }; }; then
37903 eval "$as_ac_var=yes"
37904else
37905 echo "$as_me: failed program was:" >&5
37906sed 's/^/| /' conftest.$ac_ext >&5
37907
37908eval "$as_ac_var=no"
37909fi
37910rm -f conftest.err conftest.$ac_objext \
37911 conftest$ac_exeext conftest.$ac_ext
37912fi
37913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37914echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37915if test `eval echo '${'$as_ac_var'}'` = yes; then
37916 cat >>confdefs.h <<_ACEOF
37917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37918_ACEOF
37919 have_sin=1
37920fi
37921done
37922
37923
37924for ac_func in ceil
37925do
37926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37927echo "$as_me:$LINENO: checking for $ac_func" >&5
37928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37929if eval "test \"\${$as_ac_var+set}\" = set"; then
37930 echo $ECHO_N "(cached) $ECHO_C" >&6
37931else
37932 cat >conftest.$ac_ext <<_ACEOF
37933/* confdefs.h. */
37934_ACEOF
37935cat confdefs.h >>conftest.$ac_ext
37936cat >>conftest.$ac_ext <<_ACEOF
37937/* end confdefs.h. */
37938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37940#define $ac_func innocuous_$ac_func
37941
37942/* System header to define __stub macros and hopefully few prototypes,
37943 which can conflict with char $ac_func (); below.
37944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37945 <limits.h> exists even on freestanding compilers. */
37946
37947#ifdef __STDC__
37948# include <limits.h>
37949#else
37950# include <assert.h>
37951#endif
37952
37953#undef $ac_func
37954
37955/* Override any gcc2 internal prototype to avoid an error. */
37956#ifdef __cplusplus
37957extern "C"
37958{
37959#endif
37960/* We use char because int might match the return type of a gcc2
37961 builtin and then its argument prototype would still apply. */
37962char $ac_func ();
37963/* The GNU C library defines this for functions which it implements
37964 to always fail with ENOSYS. Some functions are actually named
37965 something starting with __ and the normal name is an alias. */
37966#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37967choke me
37968#else
37969char (*f) () = $ac_func;
37970#endif
37971#ifdef __cplusplus
37972}
37973#endif
37974
37975int
37976main ()
37977{
37978return f != $ac_func;
37979 ;
37980 return 0;
37981}
37982_ACEOF
37983rm -f conftest.$ac_objext conftest$ac_exeext
37984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37985 (eval $ac_link) 2>conftest.er1
37986 ac_status=$?
37987 grep -v '^ *+' conftest.er1 >conftest.err
37988 rm -f conftest.er1
37989 cat conftest.err >&5
37990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 (exit $ac_status); } &&
dcc1b6ad
VS
37992 { ac_try='test -z "$ac_c_werror_flag"
37993 || test ! -s conftest.err'
a848cd7e
SC
37994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37995 (eval $ac_try) 2>&5
37996 ac_status=$?
37997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37998 (exit $ac_status); }; } &&
37999 { ac_try='test -s conftest$ac_exeext'
38000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38001 (eval $ac_try) 2>&5
38002 ac_status=$?
38003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004 (exit $ac_status); }; }; then
38005 eval "$as_ac_var=yes"
38006else
38007 echo "$as_me: failed program was:" >&5
38008sed 's/^/| /' conftest.$ac_ext >&5
38009
38010eval "$as_ac_var=no"
38011fi
38012rm -f conftest.err conftest.$ac_objext \
38013 conftest$ac_exeext conftest.$ac_ext
38014fi
38015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38016echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38017if test `eval echo '${'$as_ac_var'}'` = yes; then
38018 cat >>confdefs.h <<_ACEOF
38019#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38020_ACEOF
38021 have_ceil=1
38022fi
38023done
38024
38025 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
38026echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38027 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38028 echo "$as_me:$LINENO: result: yes" >&5
38029echo "${ECHO_T}yes" >&6
38030 else
38031 echo "$as_me:$LINENO: result: no" >&5
38032echo "${ECHO_T}no" >&6
38033 # not sure we should warn the user, crash, etc.
38034 fi
38035fi
38036
38037if test "$wxUSE_GUI" = "yes"; then
38038
38039
38040 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38041 drawing dynamic erase event exec font image \
38042 minimal propsize rotate shaped widgets render"
38043
38044 if test "$wxUSE_MONOLITHIC" != "yes"; then
38045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38046 fi
38047else
38048 SAMPLES_SUBDIRS="console"
38049fi
38050
38051
38052INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
38053-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38054
38055if test "$GXX" = yes ; then
38056 CXXWARNINGS="-Wall"
38057 fi
38058
38059EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38060
38061CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
38062CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
38063CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
38064
38065
38066LIBS=`echo $LIBS | sed 's/ \+/ /g'`
38067EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38068EXTRALIBS_XML="$EXPAT_LINK"
38069EXTRALIBS_HTML="$MSPACK_LINK"
38070EXTRALIBS_ODBC="$ODBC_LINK"
38071if test "$wxUSE_GUI" = "yes"; then
38072 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
38073fi
38074if test "$wxUSE_OPENGL" = "yes"; then
38075 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38076fi
38077
38078LDFLAGS="$LDFLAGS $PROFILE"
38079
38080if test "$wxUSE_GTK" = 1; then
38081 WXCONFIG_INCLUDE=
38082else
38083 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38084fi
38085
38086WXCONFIG_EXTRALIBS="$LIBS"
38087
38088if test "$wxUSE_REGEX" = "builtin" ; then
38089 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38090fi
38091if test "$wxUSE_EXPAT" = "builtin" ; then
38092 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38093fi
38094if test "$wxUSE_ODBC" = "builtin" ; then
38095 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38096fi
38097if test "$wxUSE_LIBTIFF" = "builtin" ; then
38098 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38099fi
38100if test "$wxUSE_LIBJPEG" = "builtin" ; then
38101 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38102fi
38103if test "$wxUSE_LIBPNG" = "builtin" ; then
38104 wxconfig_3rdparty="$wxconfig_3rdparty png"
38105fi
38106if test "$wxUSE_ZLIB" = "builtin" ; then
38107 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38108fi
38109if test "$wxUSE_ODBC" = "builtin" ; then
38110 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38111fi
38112
38113for i in $wxconfig_3rdparty ; do
38114 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
38115done
38116
38117
38118if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38119 WXUNIV=1
38120else
38121 WXUNIV=0
38122fi
38123
38124
38125
38126
38127
38128
38129
38130
38131
38132if test $wxUSE_MONOLITHIC = "yes" ; then
38133 MONOLITHIC=1
38134else
38135 MONOLITHIC=0
38136fi
38137
38138if test $wxUSE_PLUGINS = "yes" ; then
38139 USE_PLUGINS=1
38140else
38141 USE_PLUGINS=0
38142fi
38143
38144if test $wxUSE_ODBC != "no" ; then
38145 USE_ODBC=1
38146else
38147 USE_ODBC=0
38148fi
38149
38150if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38151 OFFICIAL_BUILD=1
38152else
38153 OFFICIAL_BUILD=0
38154fi
38155
38156
38157
38158
38159
38160
38161
38162
38163
38164
38165
38166
38167
38168
38169
38170
38171
38172
38173
38174
38175
38176TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38177
38178
38179
38180
38181
38182
38183
38184
38185
38186 if test "x$BAKEFILE_HOST" = "x"; then
38187 BAKEFILE_HOST="${host}"
38188 fi
38189
38190 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38191
38192 if test -n "$ac_tool_prefix"; then
38193 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38194set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38195echo "$as_me:$LINENO: checking for $ac_word" >&5
38196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38197if test "${ac_cv_prog_RANLIB+set}" = set; then
38198 echo $ECHO_N "(cached) $ECHO_C" >&6
38199else
38200 if test -n "$RANLIB"; then
38201 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38202else
38203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38204for as_dir in $PATH
38205do
38206 IFS=$as_save_IFS
38207 test -z "$as_dir" && as_dir=.
38208 for ac_exec_ext in '' $ac_executable_extensions; do
38209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38210 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38212 break 2
38213 fi
38214done
38215done
38216
38217fi
38218fi
38219RANLIB=$ac_cv_prog_RANLIB
38220if test -n "$RANLIB"; then
38221 echo "$as_me:$LINENO: result: $RANLIB" >&5
38222echo "${ECHO_T}$RANLIB" >&6
38223else
38224 echo "$as_me:$LINENO: result: no" >&5
38225echo "${ECHO_T}no" >&6
38226fi
38227
38228fi
38229if test -z "$ac_cv_prog_RANLIB"; then
38230 ac_ct_RANLIB=$RANLIB
38231 # Extract the first word of "ranlib", so it can be a program name with args.
38232set dummy ranlib; ac_word=$2
38233echo "$as_me:$LINENO: checking for $ac_word" >&5
38234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38235if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38236 echo $ECHO_N "(cached) $ECHO_C" >&6
38237else
38238 if test -n "$ac_ct_RANLIB"; then
38239 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38240else
38241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38242for as_dir in $PATH
38243do
38244 IFS=$as_save_IFS
38245 test -z "$as_dir" && as_dir=.
38246 for ac_exec_ext in '' $ac_executable_extensions; do
38247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38248 ac_cv_prog_ac_ct_RANLIB="ranlib"
38249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38250 break 2
38251 fi
38252done
38253done
38254
38255 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38256fi
38257fi
38258ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38259if test -n "$ac_ct_RANLIB"; then
38260 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38261echo "${ECHO_T}$ac_ct_RANLIB" >&6
38262else
38263 echo "$as_me:$LINENO: result: no" >&5
38264echo "${ECHO_T}no" >&6
38265fi
38266
38267 RANLIB=$ac_ct_RANLIB
38268else
38269 RANLIB="$ac_cv_prog_RANLIB"
38270fi
38271
38272 # Find a good install program. We prefer a C program (faster),
38273# so one script is as good as another. But avoid the broken or
38274# incompatible versions:
38275# SysV /etc/install, /usr/sbin/install
38276# SunOS /usr/etc/install
38277# IRIX /sbin/install
38278# AIX /bin/install
38279# AmigaOS /C/install, which installs bootblocks on floppy discs
38280# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38281# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38282# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
38283# OS/2's system install, which has a completely different semantic
38284# ./install, which can be erroneously created by make from ./install.sh.
38285echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38286echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38287if test -z "$INSTALL"; then
38288if test "${ac_cv_path_install+set}" = set; then
38289 echo $ECHO_N "(cached) $ECHO_C" >&6
38290else
38291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38292for as_dir in $PATH
38293do
38294 IFS=$as_save_IFS
38295 test -z "$as_dir" && as_dir=.
38296 # Account for people who put trailing slashes in PATH elements.
38297case $as_dir/ in
38298 ./ | .// | /cC/* | \
38299 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
38300 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
38301 /usr/ucb/* ) ;;
38302 *)
38303 # OSF1 and SCO ODT 3.0 have their own names for install.
38304 # Don't use installbsd from OSF since it installs stuff as root
38305 # by default.
38306 for ac_prog in ginstall scoinst install; do
38307 for ac_exec_ext in '' $ac_executable_extensions; do
38308 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38309 if test $ac_prog = install &&
38310 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38311 # AIX install. It has an incompatible calling convention.
38312 :
38313 elif test $ac_prog = install &&
38314 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38315 # program-specific install script used by HP pwplus--don't use.
38316 :
38317 else
38318 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38319 break 3
38320 fi
38321 fi
38322 done
38323 done
38324 ;;
38325esac
38326done
38327
38328
38329fi
38330 if test "${ac_cv_path_install+set}" = set; then
38331 INSTALL=$ac_cv_path_install
38332 else
38333 # As a last resort, use the slow shell script. We don't cache a
38334 # path for INSTALL within a source directory, because that will
38335 # break other packages using the cache if that directory is
38336 # removed, or if the path is relative.
38337 INSTALL=$ac_install_sh
38338 fi
38339fi
38340echo "$as_me:$LINENO: result: $INSTALL" >&5
38341echo "${ECHO_T}$INSTALL" >&6
38342
38343# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38344# It thinks the first close brace ends the variable substitution.
38345test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38346
38347test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38348
38349test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38350
38351 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38352echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38353LN_S=$as_ln_s
38354if test "$LN_S" = "ln -s"; then
38355 echo "$as_me:$LINENO: result: yes" >&5
38356echo "${ECHO_T}yes" >&6
38357else
38358 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38359echo "${ECHO_T}no, using $LN_S" >&6
38360fi
38361
38362
38363 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38364echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
38365set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
38366if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38367 echo $ECHO_N "(cached) $ECHO_C" >&6
38368else
38369 cat >conftest.make <<\_ACEOF
38370all:
38371 @echo 'ac_maketemp="$(MAKE)"'
38372_ACEOF
38373# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38374eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38375if test -n "$ac_maketemp"; then
38376 eval ac_cv_prog_make_${ac_make}_set=yes
38377else
38378 eval ac_cv_prog_make_${ac_make}_set=no
38379fi
38380rm -f conftest.make
38381fi
38382if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38383 echo "$as_me:$LINENO: result: yes" >&5
38384echo "${ECHO_T}yes" >&6
38385 SET_MAKE=
38386else
38387 echo "$as_me:$LINENO: result: no" >&5
38388echo "${ECHO_T}no" >&6
38389 SET_MAKE="MAKE=${MAKE-make}"
38390fi
38391
38392
38393
38394 if test -n "$ac_tool_prefix"; then
38395 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38396set dummy ${ac_tool_prefix}ar; ac_word=$2
38397echo "$as_me:$LINENO: checking for $ac_word" >&5
38398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38399if test "${ac_cv_prog_AR+set}" = set; then
38400 echo $ECHO_N "(cached) $ECHO_C" >&6
38401else
38402 if test -n "$AR"; then
38403 ac_cv_prog_AR="$AR" # Let the user override the test.
38404else
38405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38406for as_dir in $PATH
38407do
38408 IFS=$as_save_IFS
38409 test -z "$as_dir" && as_dir=.
38410 for ac_exec_ext in '' $ac_executable_extensions; do
38411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38412 ac_cv_prog_AR="${ac_tool_prefix}ar"
38413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38414 break 2
38415 fi
38416done
38417done
38418
38419fi
38420fi
38421AR=$ac_cv_prog_AR
38422if test -n "$AR"; then
38423 echo "$as_me:$LINENO: result: $AR" >&5
38424echo "${ECHO_T}$AR" >&6
38425else
38426 echo "$as_me:$LINENO: result: no" >&5
38427echo "${ECHO_T}no" >&6
38428fi
38429
38430fi
38431if test -z "$ac_cv_prog_AR"; then
38432 ac_ct_AR=$AR
38433 # Extract the first word of "ar", so it can be a program name with args.
38434set dummy ar; ac_word=$2
38435echo "$as_me:$LINENO: checking for $ac_word" >&5
38436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38437if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38438 echo $ECHO_N "(cached) $ECHO_C" >&6
38439else
38440 if test -n "$ac_ct_AR"; then
38441 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38442else
38443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38444for as_dir in $PATH
38445do
38446 IFS=$as_save_IFS
38447 test -z "$as_dir" && as_dir=.
38448 for ac_exec_ext in '' $ac_executable_extensions; do
38449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38450 ac_cv_prog_ac_ct_AR="ar"
38451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38452 break 2
38453 fi
38454done
38455done
38456
38457 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38458fi
38459fi
38460ac_ct_AR=$ac_cv_prog_ac_ct_AR
38461if test -n "$ac_ct_AR"; then
38462 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38463echo "${ECHO_T}$ac_ct_AR" >&6
38464else
38465 echo "$as_me:$LINENO: result: no" >&5
38466echo "${ECHO_T}no" >&6
38467fi
38468
38469 AR=$ac_ct_AR
38470else
38471 AR="$ac_cv_prog_AR"
38472fi
38473
38474 if test -n "$ac_tool_prefix"; then
38475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38476set dummy ${ac_tool_prefix}strip; ac_word=$2
38477echo "$as_me:$LINENO: checking for $ac_word" >&5
38478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38479if test "${ac_cv_prog_STRIP+set}" = set; then
38480 echo $ECHO_N "(cached) $ECHO_C" >&6
38481else
38482 if test -n "$STRIP"; then
38483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38484else
38485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38486for as_dir in $PATH
38487do
38488 IFS=$as_save_IFS
38489 test -z "$as_dir" && as_dir=.
38490 for ac_exec_ext in '' $ac_executable_extensions; do
38491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38492 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38494 break 2
38495 fi
38496done
38497done
38498
38499fi
38500fi
38501STRIP=$ac_cv_prog_STRIP
38502if test -n "$STRIP"; then
38503 echo "$as_me:$LINENO: result: $STRIP" >&5
38504echo "${ECHO_T}$STRIP" >&6
38505else
38506 echo "$as_me:$LINENO: result: no" >&5
38507echo "${ECHO_T}no" >&6
38508fi
38509
38510fi
38511if test -z "$ac_cv_prog_STRIP"; then
38512 ac_ct_STRIP=$STRIP
38513 # Extract the first word of "strip", so it can be a program name with args.
38514set dummy strip; ac_word=$2
38515echo "$as_me:$LINENO: checking for $ac_word" >&5
38516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38517if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38518 echo $ECHO_N "(cached) $ECHO_C" >&6
38519else
38520 if test -n "$ac_ct_STRIP"; then
38521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38522else
38523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38524for as_dir in $PATH
38525do
38526 IFS=$as_save_IFS
38527 test -z "$as_dir" && as_dir=.
38528 for ac_exec_ext in '' $ac_executable_extensions; do
38529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38530 ac_cv_prog_ac_ct_STRIP="strip"
38531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38532 break 2
38533 fi
38534done
38535done
38536
38537 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38538fi
38539fi
38540ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38541if test -n "$ac_ct_STRIP"; then
38542 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38543echo "${ECHO_T}$ac_ct_STRIP" >&6
38544else
38545 echo "$as_me:$LINENO: result: no" >&5
38546echo "${ECHO_T}no" >&6
38547fi
38548
38549 STRIP=$ac_ct_STRIP
38550else
38551 STRIP="$ac_cv_prog_STRIP"
38552fi
38553
38554 if test -n "$ac_tool_prefix"; then
38555 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38556set dummy ${ac_tool_prefix}nm; ac_word=$2
38557echo "$as_me:$LINENO: checking for $ac_word" >&5
38558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38559if test "${ac_cv_prog_NM+set}" = set; then
38560 echo $ECHO_N "(cached) $ECHO_C" >&6
38561else
38562 if test -n "$NM"; then
38563 ac_cv_prog_NM="$NM" # Let the user override the test.
38564else
38565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38566for as_dir in $PATH
38567do
38568 IFS=$as_save_IFS
38569 test -z "$as_dir" && as_dir=.
38570 for ac_exec_ext in '' $ac_executable_extensions; do
38571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38572 ac_cv_prog_NM="${ac_tool_prefix}nm"
38573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38574 break 2
38575 fi
38576done
38577done
38578
38579fi
38580fi
38581NM=$ac_cv_prog_NM
38582if test -n "$NM"; then
38583 echo "$as_me:$LINENO: result: $NM" >&5
38584echo "${ECHO_T}$NM" >&6
38585else
38586 echo "$as_me:$LINENO: result: no" >&5
38587echo "${ECHO_T}no" >&6
38588fi
38589
38590fi
38591if test -z "$ac_cv_prog_NM"; then
38592 ac_ct_NM=$NM
38593 # Extract the first word of "nm", so it can be a program name with args.
38594set dummy nm; ac_word=$2
38595echo "$as_me:$LINENO: checking for $ac_word" >&5
38596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38597if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38598 echo $ECHO_N "(cached) $ECHO_C" >&6
38599else
38600 if test -n "$ac_ct_NM"; then
38601 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38602else
38603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38604for as_dir in $PATH
38605do
38606 IFS=$as_save_IFS
38607 test -z "$as_dir" && as_dir=.
38608 for ac_exec_ext in '' $ac_executable_extensions; do
38609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38610 ac_cv_prog_ac_ct_NM="nm"
38611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38612 break 2
38613 fi
38614done
38615done
38616
38617 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38618fi
38619fi
38620ac_ct_NM=$ac_cv_prog_ac_ct_NM
38621if test -n "$ac_ct_NM"; then
38622 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38623echo "${ECHO_T}$ac_ct_NM" >&6
38624else
38625 echo "$as_me:$LINENO: result: no" >&5
38626echo "${ECHO_T}no" >&6
38627fi
38628
38629 NM=$ac_ct_NM
38630else
38631 NM="$ac_cv_prog_NM"
38632fi
38633
38634
38635 case ${BAKEFILE_HOST} in
38636 *-hp-hpux* )
38637 INSTALL_DIR="mkdir"
38638 ;;
38639 *) INSTALL_DIR="$INSTALL -d"
38640 ;;
38641 esac
38642
38643
38644 LDFLAGS_GUI=
38645 case ${BAKEFILE_HOST} in
38646 *-*-cygwin* | *-*-mingw32* )
38647 LDFLAGS_GUI="-mwindows"
38648 esac
38649
38650
38651 fi
38652
38653 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38654echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38655if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38656 echo $ECHO_N "(cached) $ECHO_C" >&6
38657else
38658
38659 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38660 egrep -s GNU > /dev/null); then
38661 bakefile_cv_prog_makeisgnu="yes"
38662 else
38663 bakefile_cv_prog_makeisgnu="no"
38664 fi
38665
38666fi
38667echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38668echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38669
38670 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38671 IF_GNU_MAKE=""
38672 else
38673 IF_GNU_MAKE="#"
38674 fi
38675
38676
38677
38678 PLATFORM_UNIX=0
38679 PLATFORM_WIN32=0
38680 PLATFORM_MSDOS=0
38681 PLATFORM_MAC=0
38682 PLATFORM_MACOSX=0
38683 PLATFORM_OS2=0
38684
38685 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38686 case "${BAKEFILE_HOST}" in
38687 *-*-cygwin* | *-*-mingw32* )
38688 PLATFORM_WIN32=1
38689 ;;
38690 *-pc-msdosdjgpp )
38691 PLATFORM_MSDOS=1
38692 ;;
38693 *-pc-os2_emx | *-pc-os2-emx )
38694 PLATFORM_OS2=1
38695 ;;
38696 powerpc-*-darwin* )
38697 PLATFORM_MAC=1
38698 PLATFORM_MACOSX=1
38699 ;;
38700 * )
38701 PLATFORM_UNIX=1
38702 ;;
38703 esac
38704 else
38705 case "$BAKEFILE_FORCE_PLATFORM" in
38706 win32 )
38707 PLATFORM_WIN32=1
38708 ;;
38709 msdos )
38710 PLATFORM_MSDOS=1
38711 ;;
38712 os2 )
38713 PLATFORM_OS2=1
38714 ;;
38715 darwin )
38716 PLATFORM_MAC=1
38717 PLATFORM_MACOSX=1
38718 ;;
38719 unix )
38720 PLATFORM_UNIX=1
38721 ;;
38722 * )
38723 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38724echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38725 { (exit 1); exit 1; }; }
38726 ;;
38727 esac
38728 fi
38729
38730
38731
38732
38733
38734
38735
38736
38737
38738 # Check whether --enable-omf or --disable-omf was given.
38739if test "${enable_omf+set}" = set; then
38740 enableval="$enable_omf"
38741 bk_os2_use_omf="$enableval"
38742fi;
38743
38744 case "${BAKEFILE_HOST}" in
38745 *-*-darwin* )
38746 CFLAGS="$CFLAGS -fno-common"
38747 CXXFLAGS="$CXXFLAGS -fno-common"
38748 ;;
38749
38750 *-pc-os2_emx | *-pc-os2-emx )
38751 if test "x$bk_os2_use_omf" = "xyes" ; then
38752 AR=emxomfar
38753 RANLIB=:
38754 LDFLAGS="-Zomf $LDFLAGS"
38755 CFLAGS="-Zomf $CFLAGS"
38756 CXXFLAGS="-Zomf $CXXFLAGS"
38757 OS2_LIBEXT="lib"
38758 else
38759 OS2_LIBEXT="a"
38760 fi
38761 ;;
38762 esac
38763
38764
38765 SO_SUFFIX="so"
38766 SO_SUFFIX_MODULE="so"
38767 EXEEXT=""
38768 LIBPREFIX="lib"
38769 LIBEXT=".a"
38770 DLLPREFIX="lib"
38771 DLLPREFIX_MODULE=""
38772 DLLIMP_SUFFIX=""
38773
38774 case "${BAKEFILE_HOST}" in
38775 *-hp-hpux* )
38776 SO_SUFFIX="sl"
38777 SO_SUFFIX_MODULE="sl"
38778 ;;
38779 *-*-aix* )
38780 SO_SUFFIX="a"
38781 SO_SUFFIX_MODULE="a"
38782 ;;
38783 *-*-cygwin* | *-*-mingw32* )
38784 SO_SUFFIX="dll"
38785 SO_SUFFIX_MODULE="dll"
38786 DLLIMP_SUFFIX="dll.a"
38787 EXEEXT=".exe"
38788 DLLPREFIX=""
38789 ;;
38790 *-pc-msdosdjgpp )
38791 EXEEXT=".exe"
38792 DLLPREFIX=""
38793 ;;
38794 *-pc-os2_emx | *-pc-os2-emx )
38795 SO_SUFFIX="dll"
38796 SO_SUFFIX_MODULE="dll"
38797 DLLIMP_SUFFIX=$OS2_LIBEXT
38798 EXEEXT=".exe"
38799 DLLPREFIX=""
38800 LIBPREFIX=""
38801 LIBEXT=".$OS2_LIBEXT"
38802 ;;
38803 powerpc-*-darwin* )
38804 SO_SUFFIX="dylib"
38805 SO_SUFFIX_MODULE="bundle"
38806 ;;
38807 esac
38808
38809 if test "x$DLLIMP_SUFFIX" = "x" ; then
38810 DLLIMP_SUFFIX="$SO_SUFFIX"
38811 fi
38812
38813
38814
38815
38816
38817
38818
38819
38820
38821
38822
38823 SHARED_LD_CC="\$(CC) -shared -o"
38824 SHARED_LD_CXX="\$(CXX) -shared -o"
38825
38826 if test "x$GCC" = "xyes"; then
38827 PIC_FLAG="-fPIC"
38828 fi
38829
38830 case "${BAKEFILE_HOST}" in
38831 *-hp-hpux* )
38832 if test "x$GCC" = "xyes"; then
38833 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38834 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38835 else
38836 LDFLAGS="$LDFLAGS -L/usr/lib"
38837
38838 SHARED_LD_CC="${CC} -b -o"
38839 SHARED_LD_CXX="${CXX} -b -o"
38840 PIC_FLAG="+Z"
38841 fi
38842 ;;
38843
38844 *-*-linux* )
38845 if test "x$GCC" != "xyes"; then
38846 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38847echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38848if test "${bakefile_cv_prog_icc+set}" = set; then
38849 echo $ECHO_N "(cached) $ECHO_C" >&6
38850else
38851
38852 cat >conftest.$ac_ext <<_ACEOF
38853/* confdefs.h. */
38854_ACEOF
38855cat confdefs.h >>conftest.$ac_ext
38856cat >>conftest.$ac_ext <<_ACEOF
38857/* end confdefs.h. */
38858
38859int
38860main ()
38861{
38862
38863 #ifndef __INTEL_COMPILER
38864 #error Not icc
38865 #endif
38866
38867 ;
38868 return 0;
38869}
38870_ACEOF
38871rm -f conftest.$ac_objext
38872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38873 (eval $ac_compile) 2>conftest.er1
38874 ac_status=$?
38875 grep -v '^ *+' conftest.er1 >conftest.err
38876 rm -f conftest.er1
38877 cat conftest.err >&5
38878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38879 (exit $ac_status); } &&
dcc1b6ad
VS
38880 { ac_try='test -z "$ac_c_werror_flag"
38881 || test ! -s conftest.err'
a848cd7e
SC
38882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38883 (eval $ac_try) 2>&5
38884 ac_status=$?
38885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886 (exit $ac_status); }; } &&
38887 { ac_try='test -s conftest.$ac_objext'
38888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38889 (eval $ac_try) 2>&5
38890 ac_status=$?
38891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38892 (exit $ac_status); }; }; then
38893 bakefile_cv_prog_icc=yes
38894else
38895 echo "$as_me: failed program was:" >&5
38896sed 's/^/| /' conftest.$ac_ext >&5
38897
38898bakefile_cv_prog_icc=no
38899
38900fi
38901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38902
38903fi
38904echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38905echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38906 if test "$bakefile_cv_prog_icc" = "yes"; then
38907 PIC_FLAG="-KPIC"
38908 fi
38909 fi
38910 ;;
38911
38912 *-*-solaris2* )
38913 if test "x$GCC" != xyes ; then
38914 SHARED_LD_CC="${CC} -G -o"
38915 SHARED_LD_CXX="${CXX} -G -o"
38916 PIC_FLAG="-KPIC"
38917 fi
38918 ;;
38919
38920 *-*-darwin* )
38921
38922 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38923echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38924if test "${wx_cv_gcc31+set}" = set; then
38925 echo $ECHO_N "(cached) $ECHO_C" >&6
38926else
38927
38928 cat >conftest.$ac_ext <<_ACEOF
38929/* confdefs.h. */
38930_ACEOF
38931cat confdefs.h >>conftest.$ac_ext
38932cat >>conftest.$ac_ext <<_ACEOF
38933/* end confdefs.h. */
38934
38935int
38936main ()
38937{
38938
38939 #if (__GNUC__ < 3) || \
38940 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38941 #error old gcc
38942 #endif
38943
38944 ;
38945 return 0;
38946}
38947_ACEOF
38948rm -f conftest.$ac_objext
38949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38950 (eval $ac_compile) 2>conftest.er1
38951 ac_status=$?
38952 grep -v '^ *+' conftest.er1 >conftest.err
38953 rm -f conftest.er1
38954 cat conftest.err >&5
38955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38956 (exit $ac_status); } &&
dcc1b6ad
VS
38957 { ac_try='test -z "$ac_c_werror_flag"
38958 || test ! -s conftest.err'
a848cd7e
SC
38959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38960 (eval $ac_try) 2>&5
38961 ac_status=$?
38962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38963 (exit $ac_status); }; } &&
38964 { ac_try='test -s conftest.$ac_objext'
38965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38966 (eval $ac_try) 2>&5
38967 ac_status=$?
38968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38969 (exit $ac_status); }; }; then
38970
38971 wx_cv_gcc31=yes
38972
38973else
38974 echo "$as_me: failed program was:" >&5
38975sed 's/^/| /' conftest.$ac_ext >&5
38976
38977
38978 wx_cv_gcc31=no
38979
38980
38981fi
38982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38983
38984fi
38985echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38986echo "${ECHO_T}$wx_cv_gcc31" >&6
38987 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38988
38989D='$'
38990cat <<EOF >shared-ld-sh
a848cd7e
SC
38991#!/bin/sh
38992#-----------------------------------------------------------------------------
38993#-- Name: distrib/mac/shared-ld-sh
38994#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38995#-- Author: Gilles Depeyrot
38996#-- Copyright: (c) 2002 Gilles Depeyrot
38997#-- Licence: any use permitted
38998#-----------------------------------------------------------------------------
38999
39000verbose=0
39001args=""
39002objects=""
39003linking_flag="-dynamiclib"
39004
473276a9
VS
39005while test ${D}# -gt 0; do
39006 case ${D}1 in
a848cd7e
SC
39007
39008 -v)
39009 verbose=1
39010 ;;
39011
39012 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39013 # collect these options and values
473276a9 39014 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
39015 shift
39016 ;;
39017
39018 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39019 # collect these options
473276a9 39020 args="${D}{args} ${D}1"
a848cd7e
SC
39021 ;;
39022
39023 -dynamiclib|-bundle)
473276a9 39024 linking_flag="${D}1"
a848cd7e
SC
39025 ;;
39026
39027 -*)
473276a9 39028 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
39029 exit 1
39030 ;;
39031
39032 *.o | *.a | *.dylib)
39033 # collect object files
473276a9 39034 objects="${D}{objects} ${D}1"
a848cd7e
SC
39035 ;;
39036
39037 *)
473276a9 39038 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
39039 exit 1
39040 ;;
39041
39042 esac
39043 shift
39044done
39045
39046#
39047# Link one module containing all the others
39048#
473276a9
VS
39049if test ${D}{verbose} = 1; then
39050 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39051fi
473276a9
VS
39052c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39053status=${D}?
39054if test ${D}{status} != 0; then
39055 exit ${D}{status}
a848cd7e
SC
39056fi
39057
39058#
39059# Link the shared library from the single module created
39060#
473276a9
VS
39061if test ${D}{verbose} = 1; then
39062 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39063fi
473276a9
VS
39064c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39065status=${D}?
39066if test ${D}{status} != 0; then
39067 exit ${D}{status}
a848cd7e
SC
39068fi
39069
39070#
39071# Remove intermediate module
39072#
473276a9 39073rm -f master.${D}${D}.o
a848cd7e
SC
39074
39075exit 0
39076EOF
473276a9 39077
a848cd7e
SC
39078 chmod +x shared-ld-sh
39079
39080 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39081 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39082 SHARED_LD_CXX="$SHARED_LD_CC"
39083 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39084 else
39085 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39086 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39087 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39088 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39089 fi
39090
39091 PIC_FLAG="-dynamic -fPIC"
39092 ;;
39093
39094 *-*-aix* )
39095 if test "x$GCC" != "xyes"; then
39096 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39097set dummy makeC++SharedLib; ac_word=$2
39098echo "$as_me:$LINENO: checking for $ac_word" >&5
39099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39100if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39101 echo $ECHO_N "(cached) $ECHO_C" >&6
39102else
39103 if test -n "$AIX_CXX_LD"; then
39104 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39105else
39106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39107for as_dir in $PATH
39108do
39109 IFS=$as_save_IFS
39110 test -z "$as_dir" && as_dir=.
39111 for ac_exec_ext in '' $ac_executable_extensions; do
39112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39113 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39115 break 2
39116 fi
39117done
39118done
39119
39120 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39121fi
39122fi
39123AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39124if test -n "$AIX_CXX_LD"; then
39125 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39126echo "${ECHO_T}$AIX_CXX_LD" >&6
39127else
39128 echo "$as_me:$LINENO: result: no" >&5
39129echo "${ECHO_T}no" >&6
39130fi
39131
39132 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39133 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39134 fi
39135 ;;
39136
39137 *-*-beos* )
39138 SHARED_LD_CC="${LD} -shared -o"
39139 SHARED_LD_CXX="${LD} -shared -o"
39140 ;;
39141
39142 *-*-irix* )
39143 if test "x$GCC" != "xyes"; then
39144 PIC_FLAG="-KPIC"
39145 fi
39146 ;;
39147
39148 *-*-cygwin* | *-*-mingw32* )
39149 PIC_FLAG=""
39150 ;;
39151
39152 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39153 SHARED_LD_CC="`pwd`/dllar.sh -o"
39154 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39155 PIC_FLAG=""
473276a9
VS
39156
39157D='$'
39158cat <<EOF >dllar.sh
39159#!/bin/sh
39160#
39161# dllar - a tool to build both a .dll and an .a file
39162# from a set of object (.o) files for EMX/OS2.
39163#
39164# Written by Andrew Zabolotny, bit@freya.etu.ru
39165# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39166#
39167# This script will accept a set of files on the command line.
39168# All the public symbols from the .o files will be exported into
39169# a .DEF file, then linker will be run (through gcc) against them to
39170# build a shared library consisting of all given .o files. All libraries
39171# (.a) will be first decompressed into component .o files then act as
39172# described above. You can optionally give a description (-d "description")
39173# which will be put into .DLL. To see the list of accepted options (as well
39174# as command-line format) simply run this program without options. The .DLL
39175# is built to be imported by name (there is no guarantee that new versions
39176# of the library you build will have same ordinals for same symbols).
39177#
39178# dllar is free software; you can redistribute it and/or modify
39179# it under the terms of the GNU General Public License as published by
39180# the Free Software Foundation; either version 2, or (at your option)
39181# any later version.
39182#
39183# dllar is distributed in the hope that it will be useful,
39184# but WITHOUT ANY WARRANTY; without even the implied warranty of
39185# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39186# GNU General Public License for more details.
39187#
39188# You should have received a copy of the GNU General Public License
39189# along with dllar; see the file COPYING. If not, write to the Free
39190# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39191# 02111-1307, USA.
39192
39193# To successfuly run this program you will need:
39194# - Current drive should have LFN support (HPFS, ext2, network, etc)
39195# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39196# - gcc
39197# (used to build the .dll)
39198# - emxexp
39199# (used to create .def file from .o files)
39200# - emximp
39201# (used to create .a file from .def file)
39202# - GNU text utilites (cat, sort, uniq)
39203# used to process emxexp output
39204# - GNU file utilities (mv, rm)
39205# - GNU sed
39206# - lxlite (optional, see flag below)
39207# (used for general .dll cleanup)
39208#
39209
39210flag_USE_LXLITE=1;
39211
39212#
39213# helper functions
39214# basnam, variant of basename, which does _not_ remove the path, _iff_
39215# second argument (suffix to remove) is given
39216basnam(){
39217 case ${D}# in
39218 1)
39219 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
39220 ;;
39221 2)
39222 echo ${D}1 | sed 's/'${D}2'${D}//'
39223 ;;
39224 *)
39225 echo "error in basnam ${D}*"
39226 exit 8
39227 ;;
39228 esac
39229}
39230
39231# Cleanup temporary files and output
39232CleanUp() {
39233 cd ${D}curDir
39234 for i in ${D}inputFiles ; do
39235 case ${D}i in
39236 *!)
39237 rm -rf \`basnam ${D}i !\`
39238 ;;
39239 *)
39240 ;;
39241 esac
39242 done
39243
39244 # Kill result in case of failure as there is just to many stupid make/nmake
39245 # things out there which doesn't do this.
39246 if ${D}# -eq 0 ; then
39247 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39248 fi
39249}
39250
39251# Print usage and exit script with rc=1.
39252PrintHelp() {
39253 echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name'
39254 echo ' -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"'
39255 echo ' -ord[inals] -exclude "symbol(s)"'
39256 echo ' -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]'
39257 echo ' *.o *.a'
39258 echo '*> "output_file" should have no extension.'
39259 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39260 echo ' The import library name is derived from this and is set to "name".a,'
39261 echo ' unless overridden by -import'
39262 echo '*> "importlib_name" should have no extension.'
39263 echo ' If it has the .o, or .a extension, it is automatically removed.'
39264 echo ' This name is used as the import library name and may be longer and'
39265 echo ' more descriptive than the DLL name which has to follow the old '
39266 echo ' 8.3 convention of FAT.'
39267 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39268 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39269 echo ' These flags will be put at the start of GCC command line.'
39270 echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.'
39271 echo '*> -exclude defines symbols which will not be exported. You can define'
39272 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39273 echo ' If the last character of a symbol is "*", all symbols beginning'
39274 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
39275 echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or'
39276 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
39277 echo '*> -nocrtdll switch will disable linking the library against emx''s'
39278 echo ' C runtime DLLs.'
39279 echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.'
39280 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39281 echo ' unchanged to GCC at the end of command line.'
39282 echo '*> If you create a DLL from a library and you do not specify -o,'
39283 echo ' the basename for DLL and import library will be set to library name,'
39284 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39285 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39286 echo ' library will be renamed into gcc_s.a.'
39287 echo '--------'
39288 echo 'Example:'
39289 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39290 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39291 CleanUp
39292 exit 1
39293}
39294
39295# Execute a command.
39296# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39297# @Uses Whatever CleanUp() uses.
39298doCommand() {
39299 echo "${D}*"
39300 eval ${D}*
39301 rcCmd=${D}?
39302
39303 if ${D}rcCmd -ne 0 ; then
39304 echo "command failed, exit code="${D}rcCmd
39305 CleanUp
39306 exit ${D}rcCmd
39307 fi
39308}
39309
39310# main routine
39311# setup globals
39312cmdLine=${D}*
39313outFile=""
39314outimpFile=""
39315inputFiles=""
39316description=""
39317CC=gcc.exe
39318CFLAGS="-s -Zcrtdll"
39319EXTRA_CFLAGS=""
39320EXPORT_BY_ORDINALS=0
39321exclude_symbols=""
39322library_flags=""
39323curDir=\`pwd\`
39324curDirS=curDir
39325case ${D}curDirS in
39326*/)
39327 ;;
39328*)
39329 curDirS=${D}{curDirS}"/"
39330 ;;
39331esac
39332# Parse commandline
39333libsToLink=0
39334while ${D}1 ; do
39335 case ${D}1 in
39336 -ord*)
39337 EXPORT_BY_ORDINALS=1;
39338 ;;
39339 -o*)
39340 shift
39341 outFile=${D}1
39342 ;;
39343 -i*)
39344 shift
39345 outimpFile=${D}1
39346 ;;
39347 -d*)
39348 shift
39349 description=${D}1
39350 ;;
39351 -f*)
39352 shift
39353 CFLAGS=${D}1
39354 ;;
39355 -c*)
39356 shift
39357 CC=${D}1
39358 ;;
39359 -h*)
39360 PrintHelp
39361 ;;
39362 -ex*)
39363 shift
39364 exclude_symbols=${D}{exclude_symbols}${D}1" "
39365 ;;
39366 -libf*)
39367 shift
39368 library_flags=${D}{library_flags}${D}1" "
39369 ;;
39370 -nocrt*)
39371 CFLAGS="-s"
39372 ;;
39373 -nolxl*)
39374 flag_USE_LXLITE=0
39375 ;;
39376 -* | /*)
39377 case ${D}1 in
39378 -L* | -l*)
39379 libsToLink=1
39380 ;;
39381 *)
39382 ;;
39383 esac
39384 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39385 ;;
39386 *)
39387 found=0;
39388 if ${D}libsToLink -ne 0 ; then
39389 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39390 else
39391 for file in ${D}1 ; do
39392 if -f ${D}file ; then
39393 inputFiles="${D}{inputFiles} ${D}file"
39394 found=1
39395 fi
39396 done
39397 if ${D}found -eq 0 ; then
39398 echo "ERROR: No file(s) found: "${D}1
39399 exit 8
39400 fi
39401 fi
39402 ;;
39403 esac
39404 shift
39405done # iterate cmdline words
39406
39407#
39408if -z "${D}inputFiles" ; then
39409 echo "dllar: no input files"
39410 PrintHelp
39411fi
39412
39413# Now extract all .o files from .a files
39414newInputFiles=""
39415for file in ${D}inputFiles ; do
39416 case ${D}file in
39417 *.a | *.lib)
39418 case ${D}file in
39419 *.a)
39420 suffix=".a"
39421 AR="ar"
39422 ;;
39423 *.lib)
39424 suffix=".lib"
39425 AR="emxomfar"
39426 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39427 ;;
39428 *)
39429 ;;
39430 esac
39431 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39432 mkdir ${D}dirname
39433 if ${D}? -ne 0 ; then
39434 echo "Failed to create subdirectory ./${D}dirname"
39435 CleanUp
39436 exit 8;
39437 fi
39438 # Append '!' to indicate archive
39439 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39440 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39441 cd ${D}curDir
39442 found=0;
39443 for subfile in ${D}dirname/*.o* ; do
39444 if -f ${D}subfile ; then
39445 found=1
39446 if -s ${D}subfile ; then
39447 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39448 newInputFiles="${D}newInputFiles ${D}subfile"
39449 fi
39450 fi
39451 done
39452 if ${D}found -eq 0 ; then
39453 echo "WARNING: there are no files in archive \'${D}file\'"
39454 fi
39455 ;;
39456 *)
39457 newInputFiles="${D}{newInputFiles} ${D}file"
39458 ;;
39459 esac
39460done
39461inputFiles="${D}newInputFiles"
39462
39463# Output filename(s).
39464do_backup=0;
39465if -z ${D}outFile ; then
39466 do_backup=1;
39467 set outFile ${D}inputFiles; outFile=${D}2
39468fi
39469
39470# If it is an archive, remove the '!' and the '_%' suffixes
39471case ${D}outFile in
39472*_%!)
39473 outFile=\`basnam ${D}outFile _%!\`
39474 ;;
39475*)
39476 ;;
39477esac
39478case ${D}outFile in
39479*.dll)
39480 outFile=\`basnam ${D}outFile .dll\`
39481 ;;
39482*.DLL)
39483 outFile=\`basnam ${D}outFile .DLL\`
39484 ;;
39485*.o)
39486 outFile=\`basnam ${D}outFile .o\`
39487 ;;
39488*.obj)
39489 outFile=\`basnam ${D}outFile .obj\`
39490 ;;
39491*.a)
39492 outFile=\`basnam ${D}outFile .a\`
39493 ;;
39494*.lib)
39495 outFile=\`basnam ${D}outFile .lib\`
39496 ;;
39497*)
39498 ;;
39499esac
39500case ${D}outimpFile in
39501*.a)
39502 outimpFile=\`basnam ${D}outimpFile .a\`
39503 ;;
39504*.lib)
39505 outimpFile=\`basnam ${D}outimpFile .lib\`
39506 ;;
39507*)
39508 ;;
39509esac
39510if -z ${D}outimpFile ; then
39511 outimpFile=${D}outFile
39512fi
39513defFile="${D}{outFile}.def"
39514arcFile="${D}{outimpFile}.a"
39515arcFile2="${D}{outimpFile}.lib"
39516dllFile="${D}outFile"
39517# Add suffix to dllFile later, first we need a version to use as
39518# name in .def file.
39519
39520if ${D}do_backup -ne 0 ; then
39521 if -f ${D}arcFile ; then
39522 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39523 fi
39524 if -f ${D}arcFile2 ; then
39525 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39526 fi
39527fi
39528
39529# Extract public symbols from all the object files.
39530tmpdefFile=${D}{defFile}_%
39531rm -f ${D}tmpdefFile
39532for file in ${D}inputFiles ; do
39533 case ${D}file in
39534 *!)
39535 ;;
39536 *)
39537 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39538 ;;
39539 esac
39540done
39541
39542# Create the def file.
39543rm -f ${D}defFile
39544echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39545dllFile="${D}dllFile.dll"
39546if -n ${D}description ; then
39547 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39548fi
39549echo "EXPORTS" >> ${D}defFile
39550
39551doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39552grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39553
39554# Checks if the export is ok or not.
39555for word in ${D}exclude_symbols; do
39556 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39557 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39558done
39559
39560
39561if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
39562 sed "=" < ${D}tmpdefFile | \
39563 sed '
39564 N
39565 : loop
39566 s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/
39567 t loop
39568 ' > ${D}{tmpdefFile}%
39569 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39570else
39571 rm -f ${D}{tmpdefFile}%
39572fi
39573cat ${D}tmpdefFile >> ${D}defFile
39574rm -f ${D}tmpdefFile
39575
39576# Do linking, create implib, and apply lxlite.
39577gccCmdl="";
39578for file in ${D}inputFiles ; do
39579 case ${D}file in
39580 *!)
39581 ;;
39582 *)
39583 gccCmdl="${D}gccCmdl ${D}file"
39584 ;;
39585 esac
39586done
39587doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39588touch "${D}{outFile}.dll"
39589
39590doCommand "emximp -o ${D}arcFile ${D}defFile"
39591if ${D}flag_USE_LXLITE -ne 0 ; then
39592 add_flags="";
39593 if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
39594 add_flags="-ynd"
39595 fi
39596 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39597fi
39598doCommand "emxomf -s -l ${D}arcFile"
39599
39600# Successful exit.
39601CleanUp 1
39602exit 0
39603EOF
39604
39605 chmod +x dllar.sh
a848cd7e
SC
39606 ;;
39607
39608 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39609 *-*-sunos4* | \
39610 *-*-osf* | \
39611 *-*-dgux5* | \
39612 *-*-sysv5* )
39613 ;;
39614
39615 *)
39616 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39617echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39618 { (exit 1); exit 1; }; }
39619 esac
39620
39621 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39622 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39623 fi
39624 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39625 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39626 fi
39627
39628
39629
39630
39631
39632
39633
39634
39635 USE_SOVERSION=0
39636 USE_SOVERLINUX=0
39637 USE_SOVERSOLARIS=0
39638 USE_SOSYMLINKS=0
39639 USE_MACVERSION=0
39640 SONAME_FLAG=
39641
39642 case "${BAKEFILE_HOST}" in
39643 *-*-linux* )
39644 SONAME_FLAG="-Wl,-soname,"
39645 USE_SOVERSION=1
39646 USE_SOVERLINUX=1
39647 USE_SOSYMLINKS=1
39648 ;;
39649
39650 *-*-solaris2* )
39651 SONAME_FLAG="-h "
39652 USE_SOVERSION=1
39653 USE_SOVERSOLARIS=1
39654 USE_SOSYMLINKS=1
39655 ;;
39656
39657 *-*-darwin* )
39658 USE_MACVERSION=1
39659 USE_SOVERSION=1
39660 USE_SOSYMLINKS=1
39661 ;;
39662 esac
39663
39664
39665
39666
39667
39668
39669
39670
39671
39672 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39673echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39674 DEPS_TRACKING=0
39675
39676 if test "x$GCC" = "xyes"; then
39677 DEPSMODE=gcc
39678 DEPS_TRACKING=1
39679 case "${BAKEFILE_HOST}" in
39680 powerpc-*-darwin* )
39681 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39682 ;;
39683 * )
39684 DEPSFLAG_GCC="-MMD"
39685 ;;
39686 esac
39687 echo "$as_me:$LINENO: result: gcc" >&5
39688echo "${ECHO_T}gcc" >&6
39689 else
39690 echo "$as_me:$LINENO: result: none" >&5
39691echo "${ECHO_T}none" >&6
39692 fi
39693
39694 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39695
39696D='$'
39697cat <<EOF >bk-deps
a848cd7e
SC
39698#!/bin/sh
39699
39700# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39701# script. It is used to track C/C++ files dependencies in portable way.
39702#
39703# Permission is given to use this file in any way.
39704
473276a9 39705DEPSMODE=${DEPSMODE}
a848cd7e 39706DEPSDIR=.deps
473276a9 39707DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39708
473276a9 39709mkdir -p ${D}DEPSDIR
a848cd7e 39710
473276a9
VS
39711if test ${D}DEPSMODE = gcc ; then
39712 ${D}* ${D}{DEPSFLAG_GCC}
39713 status=${D}?
39714 if test ${D}{status} != 0 ; then
39715 exit ${D}{status}
a848cd7e
SC
39716 fi
39717 # move created file to the location we want it in:
473276a9
VS
39718 while test ${D}# -gt 0; do
39719 case "${D}1" in
a848cd7e
SC
39720 -o )
39721 shift
473276a9 39722 objfile=${D}1
a848cd7e
SC
39723 ;;
39724 -* )
39725 ;;
39726 * )
473276a9 39727 srcfile=${D}1
a848cd7e
SC
39728 ;;
39729 esac
39730 shift
39731 done
473276a9
VS
39732 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39733 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39734 if test -f ${D}depfile ; then
39735 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39736 rm -f ${D}depfile
a848cd7e 39737 else
473276a9
VS
39738 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39739 if test -f ${D}depfile ; then
39740 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39741 rm -f ${D}depfile
a848cd7e
SC
39742 fi
39743 fi
39744 exit 0
39745else
473276a9
VS
39746 ${D}*
39747 exit ${D}?
a848cd7e
SC
39748fi
39749EOF
473276a9 39750
a848cd7e
SC
39751 chmod +x bk-deps
39752 fi
39753
39754
39755
39756
39757 RESCOMP=
39758 SETFILE=
39759
39760 case ${BAKEFILE_HOST} in
39761 *-*-cygwin* | *-*-mingw32* )
39762 if test "$build" != "$host" ; then
39763 RESCOMP=$host_alias-windres
39764 else
39765 # Extract the first word of "windres", so it can be a program name with args.
39766set dummy windres; ac_word=$2
39767echo "$as_me:$LINENO: checking for $ac_word" >&5
39768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39769if test "${ac_cv_prog_RESCOMP+set}" = set; then
39770 echo $ECHO_N "(cached) $ECHO_C" >&6
39771else
39772 if test -n "$RESCOMP"; then
39773 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39774else
39775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39776for as_dir in $PATH
39777do
39778 IFS=$as_save_IFS
39779 test -z "$as_dir" && as_dir=.
39780 for ac_exec_ext in '' $ac_executable_extensions; do
39781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39782 ac_cv_prog_RESCOMP="windres"
39783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39784 break 2
39785 fi
39786done
39787done
39788
39789 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39790fi
39791fi
39792RESCOMP=$ac_cv_prog_RESCOMP
39793if test -n "$RESCOMP"; then
39794 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39795echo "${ECHO_T}$RESCOMP" >&6
39796else
39797 echo "$as_me:$LINENO: result: no" >&5
39798echo "${ECHO_T}no" >&6
39799fi
39800
39801 fi
39802 ;;
39803
39804 *-*-darwin* )
39805 # Extract the first word of "Rez", so it can be a program name with args.
39806set dummy Rez; ac_word=$2
39807echo "$as_me:$LINENO: checking for $ac_word" >&5
39808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39809if test "${ac_cv_prog_RESCOMP+set}" = set; then
39810 echo $ECHO_N "(cached) $ECHO_C" >&6
39811else
39812 if test -n "$RESCOMP"; then
39813 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39814else
39815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39816for as_dir in $PATH
39817do
39818 IFS=$as_save_IFS
39819 test -z "$as_dir" && as_dir=.
39820 for ac_exec_ext in '' $ac_executable_extensions; do
39821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39822 ac_cv_prog_RESCOMP="Rez"
39823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39824 break 2
39825 fi
39826done
39827done
39828
39829 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39830fi
39831fi
39832RESCOMP=$ac_cv_prog_RESCOMP
39833if test -n "$RESCOMP"; then
39834 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39835echo "${ECHO_T}$RESCOMP" >&6
39836else
39837 echo "$as_me:$LINENO: result: no" >&5
39838echo "${ECHO_T}no" >&6
39839fi
39840
39841 # Extract the first word of "SetFile", so it can be a program name with args.
39842set dummy SetFile; ac_word=$2
39843echo "$as_me:$LINENO: checking for $ac_word" >&5
39844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39845if test "${ac_cv_prog_SETFILE+set}" = set; then
39846 echo $ECHO_N "(cached) $ECHO_C" >&6
39847else
39848 if test -n "$SETFILE"; then
39849 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39850else
39851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39852for as_dir in $PATH
39853do
39854 IFS=$as_save_IFS
39855 test -z "$as_dir" && as_dir=.
39856 for ac_exec_ext in '' $ac_executable_extensions; do
39857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39858 ac_cv_prog_SETFILE="SetFile"
39859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39860 break 2
39861 fi
39862done
39863done
39864
39865 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39866fi
39867fi
39868SETFILE=$ac_cv_prog_SETFILE
39869if test -n "$SETFILE"; then
39870 echo "$as_me:$LINENO: result: $SETFILE" >&5
39871echo "${ECHO_T}$SETFILE" >&6
39872else
39873 echo "$as_me:$LINENO: result: no" >&5
39874echo "${ECHO_T}no" >&6
39875fi
39876
39877 ;;
39878 esac
39879
39880
39881
39882
39883
39884
dcc1b6ad
VS
39885BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
39886
39887
a848cd7e
SC
39888
39889
a848cd7e
SC
39890 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39891if test "${enable_precomp_headers+set}" = set; then
39892 enableval="$enable_precomp_headers"
39893 bk_use_pch="$enableval"
39894fi;
39895
39896 GCC_PCH=0
39897
39898 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39899 if test "x$GCC" = "xyes"; then
39900 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39901echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39902 cat >conftest.$ac_ext <<_ACEOF
39903/* confdefs.h. */
39904_ACEOF
39905cat confdefs.h >>conftest.$ac_ext
39906cat >>conftest.$ac_ext <<_ACEOF
39907/* end confdefs.h. */
39908
39909int
39910main ()
39911{
39912
39913 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39914 #error "no pch support"
39915 #endif
39916 #if (__GNUC__ < 3)
39917 #error "no pch support"
39918 #endif
39919 #if (__GNUC__ == 3) && \
39920 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39921 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39922 #error "no pch support"
39923 #endif
39924
39925 ;
39926 return 0;
39927}
39928_ACEOF
39929rm -f conftest.$ac_objext
39930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39931 (eval $ac_compile) 2>conftest.er1
39932 ac_status=$?
39933 grep -v '^ *+' conftest.er1 >conftest.err
39934 rm -f conftest.er1
39935 cat conftest.err >&5
39936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39937 (exit $ac_status); } &&
dcc1b6ad
VS
39938 { ac_try='test -z "$ac_c_werror_flag"
39939 || test ! -s conftest.err'
a848cd7e
SC
39940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39941 (eval $ac_try) 2>&5
39942 ac_status=$?
39943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944 (exit $ac_status); }; } &&
39945 { ac_try='test -s conftest.$ac_objext'
39946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39947 (eval $ac_try) 2>&5
39948 ac_status=$?
39949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39950 (exit $ac_status); }; }; then
39951
39952 echo "$as_me:$LINENO: result: yes" >&5
39953echo "${ECHO_T}yes" >&6
39954 CPPFLAGS="-fpch-deps $CPPFLAGS"
39955 GCC_PCH=1
39956
39957else
39958 echo "$as_me: failed program was:" >&5
39959sed 's/^/| /' conftest.$ac_ext >&5
39960
39961
39962 echo "$as_me:$LINENO: result: no" >&5
39963echo "${ECHO_T}no" >&6
39964
39965fi
39966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39967 if test $GCC_PCH = 1 ; then
39968 cat <<EOF >bk-make-pch
39969#!/bin/sh
39970
39971# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39972# script. It is used to generated precompiled headers.
39973#
39974# Permission is given to use this file in any way.
39975
39976outfile="\${1}"
39977header="\${2}"
39978shift
39979shift
39980
39981compiler=
39982headerfile=
39983while test \${#} -gt 0; do
39984 case "\${1}" in
39985 -I* )
39986 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39987 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39988 headerfile="\${incdir}/\${header}"
39989 fi
39990 ;;
39991 esac
39992 compiler="\${compiler} \${1}"
39993 shift
39994done
39995
39996if test "x\${headerfile}" = "x" ; then
39997 echo "error: can't find header \${header} in include paths" >2
39998else
39999 if test -f \${outfile} ; then
40000 rm -f \${outfile}
40001 else
40002 mkdir -p \`dirname \${outfile}\`
40003 fi
40004 depsfile=".deps/\`basename \${outfile}\`.d"
40005 mkdir -p .deps
40006 # can do this because gcc is >= 3.4:
40007 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40008 exit \${?}
40009fi
40010EOF
40011 chmod +x bk-make-pch
40012 fi
40013 fi
40014 fi
40015
40016
40017
40018
40019
dcc1b6ad
VS
40020
40021
40022 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40023if test "${enable_precomp_headers+set}" = set; then
40024 enableval="$enable_precomp_headers"
40025 bk_use_pch="$enableval"
40026fi;
40027
40028 GCC_PCH=0
40029
40030 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40031 if test "x$GCC" = "xyes"; then
40032 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40033echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40034 cat >conftest.$ac_ext <<_ACEOF
40035/* confdefs.h. */
40036_ACEOF
40037cat confdefs.h >>conftest.$ac_ext
40038cat >>conftest.$ac_ext <<_ACEOF
40039/* end confdefs.h. */
40040
40041int
40042main ()
40043{
40044
40045 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40046 #error "no pch support"
40047 #endif
40048 #if (__GNUC__ < 3)
40049 #error "no pch support"
40050 #endif
40051 #if (__GNUC__ == 3) && \
40052 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40053 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40054 #error "no pch support"
40055 #endif
40056
40057 ;
40058 return 0;
40059}
40060_ACEOF
40061rm -f conftest.$ac_objext
40062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40063 (eval $ac_compile) 2>conftest.er1
40064 ac_status=$?
40065 grep -v '^ *+' conftest.er1 >conftest.err
40066 rm -f conftest.er1
40067 cat conftest.err >&5
40068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40069 (exit $ac_status); } &&
40070 { ac_try='test -z "$ac_c_werror_flag"
40071 || test ! -s conftest.err'
40072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40073 (eval $ac_try) 2>&5
40074 ac_status=$?
40075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40076 (exit $ac_status); }; } &&
40077 { ac_try='test -s conftest.$ac_objext'
40078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40079 (eval $ac_try) 2>&5
40080 ac_status=$?
40081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40082 (exit $ac_status); }; }; then
40083
40084 echo "$as_me:$LINENO: result: yes" >&5
40085echo "${ECHO_T}yes" >&6
40086 CPPFLAGS="-fpch-deps $CPPFLAGS"
40087 GCC_PCH=1
40088
40089else
40090 echo "$as_me: failed program was:" >&5
40091sed 's/^/| /' conftest.$ac_ext >&5
40092
40093
40094 echo "$as_me:$LINENO: result: no" >&5
40095echo "${ECHO_T}no" >&6
40096
40097fi
40098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40099 if test $GCC_PCH = 1 ; then
40100 cat <<EOF >bk-make-pch
40101#!/bin/sh
40102
40103# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40104# script. It is used to generated precompiled headers.
40105#
40106# Permission is given to use this file in any way.
40107
40108outfile="\${1}"
40109header="\${2}"
40110shift
40111shift
40112
40113compiler=
40114headerfile=
40115while test \${#} -gt 0; do
40116 case "\${1}" in
40117 -I* )
40118 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40119 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40120 headerfile="\${incdir}/\${header}"
40121 fi
40122 ;;
40123 esac
40124 compiler="\${compiler} \${1}"
40125 shift
40126done
40127
40128if test "x\${headerfile}" = "x" ; then
40129 echo "error: can't find header \${header} in include paths" >2
40130else
40131 if test -f \${outfile} ; then
40132 rm -f \${outfile}
40133 else
40134 mkdir -p \`dirname \${outfile}\`
40135 fi
40136 depsfile=".deps/\`basename \${outfile}\`.d"
40137 mkdir -p .deps
40138 # can do this because gcc is >= 3.4:
40139 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40140 exit \${?}
40141fi
40142EOF
40143 chmod +x bk-make-pch
40144 fi
40145 fi
40146 fi
40147
40148
40149
40150
a848cd7e
SC
40151 COND_BUILD_DEBUG="#"
40152 if test "x$BUILD" = "xdebug" ; then
40153 COND_BUILD_DEBUG=""
40154 fi
40155
40156 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40157 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40158 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40159 fi
40160
40161 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40162 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40163 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40164 fi
40165
40166 COND_BUILD_DEBUG_UNICODE_0="#"
40167 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40168 COND_BUILD_DEBUG_UNICODE_0=""
40169 fi
40170
40171 COND_BUILD_DEBUG_UNICODE_1="#"
40172 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40173 COND_BUILD_DEBUG_UNICODE_1=""
40174 fi
40175
40176 COND_BUILD_RELEASE="#"
40177 if test "x$BUILD" = "xrelease" ; then
40178 COND_BUILD_RELEASE=""
40179 fi
40180
40181 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40182 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40183 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40184 fi
40185
40186 COND_BUILD_RELEASE_UNICODE_0="#"
40187 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40188 COND_BUILD_RELEASE_UNICODE_0=""
40189 fi
40190
40191 COND_BUILD_RELEASE_UNICODE_1="#"
40192 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40193 COND_BUILD_RELEASE_UNICODE_1=""
40194 fi
40195
40196 COND_DEBUG_FLAG_1="#"
40197 if test "x$DEBUG_FLAG" = "x1" ; then
40198 COND_DEBUG_FLAG_1=""
40199 fi
40200
40201 COND_DEBUG_INFO_0="#"
40202 if test "x$DEBUG_INFO" = "x0" ; then
40203 COND_DEBUG_INFO_0=""
40204 fi
40205
40206 COND_DEBUG_INFO_1="#"
40207 if test "x$DEBUG_INFO" = "x1" ; then
40208 COND_DEBUG_INFO_1=""
40209 fi
40210
40211 COND_DEPS_TRACKING_0="#"
40212 if test "x$DEPS_TRACKING" = "x0" ; then
40213 COND_DEPS_TRACKING_0=""
40214 fi
40215
40216 COND_DEPS_TRACKING_1="#"
40217 if test "x$DEPS_TRACKING" = "x1" ; then
40218 COND_DEPS_TRACKING_1=""
40219 fi
40220
40221 COND_GCC_PCH_1="#"
40222 if test "x$GCC_PCH" = "x1" ; then
40223 COND_GCC_PCH_1=""
40224 fi
40225
40226 COND_MONOLITHIC_0="#"
40227 if test "x$MONOLITHIC" = "x0" ; then
40228 COND_MONOLITHIC_0=""
40229 fi
40230
40231 COND_MONOLITHIC_0_SHARED_0="#"
40232 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40233 COND_MONOLITHIC_0_SHARED_0=""
40234 fi
40235
40236 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40237 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40238 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40239 fi
40240
40241 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40242 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40243 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40244 fi
40245
40246 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40247 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40248 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40249 fi
40250
40251 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40252 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40253 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40254 fi
40255
40256 COND_MONOLITHIC_0_SHARED_1="#"
40257 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40258 COND_MONOLITHIC_0_SHARED_1=""
40259 fi
40260
40261 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40262 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40263 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40264 fi
40265
40266 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40267 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40268 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40269 fi
40270
40271 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40272 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40273 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40274 fi
40275
40276 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40277 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40278 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40279 fi
40280
40281 COND_MONOLITHIC_0_USE_ODBC_1="#"
40282 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40283 COND_MONOLITHIC_0_USE_ODBC_1=""
40284 fi
40285
40286 COND_MONOLITHIC_1="#"
40287 if test "x$MONOLITHIC" = "x1" ; then
40288 COND_MONOLITHIC_1=""
40289 fi
40290
40291 COND_MONOLITHIC_1_SHARED_0="#"
40292 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40293 COND_MONOLITHIC_1_SHARED_0=""
40294 fi
40295
40296 COND_MONOLITHIC_1_SHARED_1="#"
40297 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40298 COND_MONOLITHIC_1_SHARED_1=""
40299 fi
40300
40301 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40302 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40303 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40304 fi
40305
40306 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40307 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40308 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40309 fi
40310
40311 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40312 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40313 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40314 fi
40315
40316 COND_PLATFORM_MACOSX_1="#"
40317 if test "x$PLATFORM_MACOSX" = "x1" ; then
40318 COND_PLATFORM_MACOSX_1=""
40319 fi
40320
40321 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40322 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40323 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40324 fi
40325
40326 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40327 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40328 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40329 fi
40330
40331 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40332 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40333 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40334 fi
40335
40336 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40337 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40338 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40339 fi
40340
40341 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40342 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40343 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40344 fi
40345
40346 COND_PLATFORM_MAC_1="#"
40347 if test "x$PLATFORM_MAC" = "x1" ; then
40348 COND_PLATFORM_MAC_1=""
40349 fi
40350
40351 COND_PLATFORM_OS2_1="#"
40352 if test "x$PLATFORM_OS2" = "x1" ; then
40353 COND_PLATFORM_OS2_1=""
40354 fi
40355
40356 COND_PLATFORM_UNIX_0="#"
40357 if test "x$PLATFORM_UNIX" = "x0" ; then
40358 COND_PLATFORM_UNIX_0=""
40359 fi
40360
40361 COND_PLATFORM_UNIX_1="#"
40362 if test "x$PLATFORM_UNIX" = "x1" ; then
40363 COND_PLATFORM_UNIX_1=""
40364 fi
40365
40366 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40367 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40368 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40369 fi
40370
40371 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40372 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40373 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40374 fi
40375
40376 COND_PLATFORM_WIN32_0="#"
40377 if test "x$PLATFORM_WIN32" = "x0" ; then
40378 COND_PLATFORM_WIN32_0=""
40379 fi
40380
40381 COND_PLATFORM_WIN32_1="#"
40382 if test "x$PLATFORM_WIN32" = "x1" ; then
40383 COND_PLATFORM_WIN32_1=""
40384 fi
40385
40386 COND_SHARED_0="#"
40387 if test "x$SHARED" = "x0" ; then
40388 COND_SHARED_0=""
40389 fi
40390
40391 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40392 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40393 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40394 fi
40395
40396 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40397 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40398 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40399 fi
40400
40401 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40402 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40403 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40404 fi
40405
40406 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40407 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40408 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40409 fi
40410
40411 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40412 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40413 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40414 fi
40415
40416 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40417 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40418 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40419 fi
40420
40421 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40422 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40423 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40424 fi
40425
40426 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40427 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40428 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40429 fi
40430
40431 COND_SHARED_1="#"
40432 if test "x$SHARED" = "x1" ; then
40433 COND_SHARED_1=""
40434 fi
40435
40436 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40437 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40438 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40439 fi
40440
40441 COND_TOOLKIT_COCOA="#"
40442 if test "x$TOOLKIT" = "xCOCOA" ; then
40443 COND_TOOLKIT_COCOA=""
40444 fi
40445
40446 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40447 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40448 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40449 fi
40450
40451 COND_TOOLKIT_GTK="#"
40452 if test "x$TOOLKIT" = "xGTK" ; then
40453 COND_TOOLKIT_GTK=""
40454 fi
40455
40456 COND_TOOLKIT_GTK_USE_GUI_1="#"
40457 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40458 COND_TOOLKIT_GTK_USE_GUI_1=""
40459 fi
40460
40461 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40462 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40463 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40464 fi
40465
40466 COND_TOOLKIT_MAC="#"
40467 if test "x$TOOLKIT" = "xMAC" ; then
40468 COND_TOOLKIT_MAC=""
40469 fi
40470
40471 COND_TOOLKIT_MAC_USE_GUI_1="#"
40472 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40473 COND_TOOLKIT_MAC_USE_GUI_1=""
40474 fi
40475
40476 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40477 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40478 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40479 fi
40480
40481 COND_TOOLKIT_MGL="#"
40482 if test "x$TOOLKIT" = "xMGL" ; then
40483 COND_TOOLKIT_MGL=""
40484 fi
40485
40486 COND_TOOLKIT_MGL_USE_GUI_1="#"
40487 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40488 COND_TOOLKIT_MGL_USE_GUI_1=""
40489 fi
40490
40491 COND_TOOLKIT_MOTIF="#"
40492 if test "x$TOOLKIT" = "xMOTIF" ; then
40493 COND_TOOLKIT_MOTIF=""
40494 fi
40495
40496 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40497 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40498 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40499 fi
40500
40501 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40502 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40503 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40504 fi
40505
40506 COND_TOOLKIT_MSW="#"
40507 if test "x$TOOLKIT" = "xMSW" ; then
40508 COND_TOOLKIT_MSW=""
40509 fi
40510
40511 COND_TOOLKIT_MSW_USE_GUI_1="#"
40512 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40513 COND_TOOLKIT_MSW_USE_GUI_1=""
40514 fi
40515
40516 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40517 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40518 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40519 fi
40520
40521 COND_TOOLKIT_PM="#"
40522 if test "x$TOOLKIT" = "xPM" ; then
40523 COND_TOOLKIT_PM=""
40524 fi
40525
40526 COND_TOOLKIT_PM_USE_GUI_1="#"
40527 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40528 COND_TOOLKIT_PM_USE_GUI_1=""
40529 fi
40530
40531 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40532 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40533 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40534 fi
40535
3fd9c298
DE
40536 COND_TOOLKIT_WINCE="#"
40537 if test "x$TOOLKIT" = "xWINCE" ; then
40538 COND_TOOLKIT_WINCE=""
40539 fi
40540
40541 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40542 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40543 COND_TOOLKIT_WINCE_USE_GUI_1=""
40544 fi
40545
40546 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40547 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40548 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40549 fi
40550
a848cd7e
SC
40551 COND_TOOLKIT_X11="#"
40552 if test "x$TOOLKIT" = "xX11" ; then
40553 COND_TOOLKIT_X11=""
40554 fi
40555
40556 COND_TOOLKIT_X11_USE_GUI_1="#"
40557 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40558 COND_TOOLKIT_X11_USE_GUI_1=""
40559 fi
40560
40561 COND_UNICODE_1="#"
40562 if test "x$UNICODE" = "x1" ; then
40563 COND_UNICODE_1=""
40564 fi
40565
40566 COND_USE_EXCEPTIONS_0="#"
40567 if test "x$USE_EXCEPTIONS" = "x0" ; then
40568 COND_USE_EXCEPTIONS_0=""
40569 fi
40570
40571 COND_USE_EXCEPTIONS_1="#"
40572 if test "x$USE_EXCEPTIONS" = "x1" ; then
40573 COND_USE_EXCEPTIONS_1=""
40574 fi
40575
40576 COND_USE_GUI_0="#"
40577 if test "x$USE_GUI" = "x0" ; then
40578 COND_USE_GUI_0=""
40579 fi
40580
40581 COND_USE_GUI_1="#"
40582 if test "x$USE_GUI" = "x1" ; then
40583 COND_USE_GUI_1=""
40584 fi
40585
40586 COND_USE_GUI_1_WXUNIV_0="#"
40587 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40588 COND_USE_GUI_1_WXUNIV_0=""
40589 fi
40590
40591 COND_USE_GUI_1_WXUNIV_1="#"
40592 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40593 COND_USE_GUI_1_WXUNIV_1=""
40594 fi
40595
40596 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40597 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40598 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40599 fi
40600
40601 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40602 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40603 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40604 fi
40605
40606 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40607 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40608 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40609 fi
40610
40611 COND_USE_ODBC_1="#"
40612 if test "x$USE_ODBC" = "x1" ; then
40613 COND_USE_ODBC_1=""
40614 fi
40615
40616 COND_USE_PLUGINS_0="#"
40617 if test "x$USE_PLUGINS" = "x0" ; then
40618 COND_USE_PLUGINS_0=""
40619 fi
40620
40621 COND_USE_SOSYMLINKS_1="#"
40622 if test "x$USE_SOSYMLINKS" = "x1" ; then
40623 COND_USE_SOSYMLINKS_1=""
40624 fi
40625
40626 COND_USE_SOVERLINUX_1="#"
40627 if test "x$USE_SOVERLINUX" = "x1" ; then
40628 COND_USE_SOVERLINUX_1=""
40629 fi
40630
40631 COND_USE_SOVERSION_0="#"
40632 if test "x$USE_SOVERSION" = "x0" ; then
40633 COND_USE_SOVERSION_0=""
40634 fi
40635
40636 COND_USE_SOVERSOLARIS_1="#"
40637 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40638 COND_USE_SOVERSOLARIS_1=""
40639 fi
40640
40641 COND_WITH_PLUGIN_SDL_1="#"
40642 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40643 COND_WITH_PLUGIN_SDL_1=""
40644 fi
40645
40646 COND_WITH_SDL_1="#"
40647 if test "x$WITH_SDL" = "x1" ; then
40648 COND_WITH_SDL_1=""
40649 fi
40650
40651 COND_WXUNIV_1="#"
40652 if test "x$WXUNIV" = "x1" ; then
40653 COND_WXUNIV_1=""
40654 fi
40655
40656 COND_WXUSE_EXPAT_BUILTIN="#"
40657 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40658 COND_WXUSE_EXPAT_BUILTIN=""
40659 fi
40660
40661 COND_WXUSE_LIBJPEG_BUILTIN="#"
40662 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40663 COND_WXUSE_LIBJPEG_BUILTIN=""
40664 fi
40665
40666 COND_WXUSE_LIBPNG_BUILTIN="#"
40667 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40668 COND_WXUSE_LIBPNG_BUILTIN=""
40669 fi
40670
40671 COND_WXUSE_LIBTIFF_BUILTIN="#"
40672 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40673 COND_WXUSE_LIBTIFF_BUILTIN=""
40674 fi
40675
40676 COND_WXUSE_ODBC_BUILTIN="#"
40677 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40678 COND_WXUSE_ODBC_BUILTIN=""
40679 fi
40680
40681 COND_WXUSE_REGEX_BUILTIN="#"
40682 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40683 COND_WXUSE_REGEX_BUILTIN=""
40684 fi
40685
40686 COND_WXUSE_ZLIB_BUILTIN="#"
40687 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40688 COND_WXUSE_ZLIB_BUILTIN=""
40689 fi
40690
dcc1b6ad
VS
40691 COND_BUILD_DEBUG="#"
40692 if test "x$BUILD" = "xdebug" ; then
40693 COND_BUILD_DEBUG=""
40694 fi
40695
40696 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40697 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40698 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40699 fi
40700
40701 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40702 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40703 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40704 fi
40705
40706 COND_BUILD_DEBUG_UNICODE_0="#"
40707 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40708 COND_BUILD_DEBUG_UNICODE_0=""
40709 fi
40710
40711 COND_BUILD_DEBUG_UNICODE_1="#"
40712 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40713 COND_BUILD_DEBUG_UNICODE_1=""
40714 fi
40715
40716 COND_BUILD_RELEASE="#"
40717 if test "x$BUILD" = "xrelease" ; then
40718 COND_BUILD_RELEASE=""
40719 fi
40720
40721 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40722 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40723 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40724 fi
40725
40726 COND_BUILD_RELEASE_UNICODE_0="#"
40727 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40728 COND_BUILD_RELEASE_UNICODE_0=""
40729 fi
40730
40731 COND_BUILD_RELEASE_UNICODE_1="#"
40732 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40733 COND_BUILD_RELEASE_UNICODE_1=""
40734 fi
40735
40736 COND_DEBUG_FLAG_1="#"
40737 if test "x$DEBUG_FLAG" = "x1" ; then
40738 COND_DEBUG_FLAG_1=""
40739 fi
40740
40741 COND_DEBUG_INFO_0="#"
40742 if test "x$DEBUG_INFO" = "x0" ; then
40743 COND_DEBUG_INFO_0=""
40744 fi
40745
40746 COND_DEBUG_INFO_1="#"
40747 if test "x$DEBUG_INFO" = "x1" ; then
40748 COND_DEBUG_INFO_1=""
40749 fi
40750
40751 COND_DEPS_TRACKING_0="#"
40752 if test "x$DEPS_TRACKING" = "x0" ; then
40753 COND_DEPS_TRACKING_0=""
40754 fi
40755
40756 COND_DEPS_TRACKING_1="#"
40757 if test "x$DEPS_TRACKING" = "x1" ; then
40758 COND_DEPS_TRACKING_1=""
40759 fi
40760
40761 COND_GCC_PCH_1="#"
40762 if test "x$GCC_PCH" = "x1" ; then
40763 COND_GCC_PCH_1=""
40764 fi
40765
40766 COND_MONOLITHIC_0="#"
40767 if test "x$MONOLITHIC" = "x0" ; then
40768 COND_MONOLITHIC_0=""
40769 fi
40770
40771 COND_MONOLITHIC_0_SHARED_0="#"
40772 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40773 COND_MONOLITHIC_0_SHARED_0=""
40774 fi
40775
40776 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40777 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40778 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40779 fi
40780
40781 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40782 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40783 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40784 fi
40785
40786 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40787 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40788 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40789 fi
40790
40791 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40792 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40793 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40794 fi
40795
40796 COND_MONOLITHIC_0_SHARED_1="#"
40797 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40798 COND_MONOLITHIC_0_SHARED_1=""
40799 fi
40800
40801 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40802 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40803 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40804 fi
40805
40806 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40807 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40808 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40809 fi
40810
40811 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40812 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40813 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40814 fi
40815
40816 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40817 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40818 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40819 fi
40820
40821 COND_MONOLITHIC_0_USE_ODBC_1="#"
40822 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40823 COND_MONOLITHIC_0_USE_ODBC_1=""
40824 fi
40825
40826 COND_MONOLITHIC_1="#"
40827 if test "x$MONOLITHIC" = "x1" ; then
40828 COND_MONOLITHIC_1=""
40829 fi
40830
40831 COND_MONOLITHIC_1_SHARED_0="#"
40832 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40833 COND_MONOLITHIC_1_SHARED_0=""
40834 fi
40835
40836 COND_MONOLITHIC_1_SHARED_1="#"
40837 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40838 COND_MONOLITHIC_1_SHARED_1=""
40839 fi
40840
40841 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40842 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40843 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40844 fi
40845
40846 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40847 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40848 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40849 fi
40850
40851 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40852 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40853 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40854 fi
40855
40856 COND_PLATFORM_MACOSX_1="#"
40857 if test "x$PLATFORM_MACOSX" = "x1" ; then
40858 COND_PLATFORM_MACOSX_1=""
40859 fi
40860
40861 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40862 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40863 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40864 fi
40865
40866 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40867 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40868 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40869 fi
40870
40871 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40872 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40873 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40874 fi
40875
40876 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40877 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40878 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40879 fi
40880
40881 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40882 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40883 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40884 fi
40885
40886 COND_PLATFORM_MAC_1="#"
40887 if test "x$PLATFORM_MAC" = "x1" ; then
40888 COND_PLATFORM_MAC_1=""
40889 fi
40890
40891 COND_PLATFORM_OS2_1="#"
40892 if test "x$PLATFORM_OS2" = "x1" ; then
40893 COND_PLATFORM_OS2_1=""
40894 fi
40895
40896 COND_PLATFORM_UNIX_0="#"
40897 if test "x$PLATFORM_UNIX" = "x0" ; then
40898 COND_PLATFORM_UNIX_0=""
40899 fi
40900
40901 COND_PLATFORM_UNIX_1="#"
40902 if test "x$PLATFORM_UNIX" = "x1" ; then
40903 COND_PLATFORM_UNIX_1=""
40904 fi
40905
40906 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40907 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40908 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40909 fi
40910
40911 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40912 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40913 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40914 fi
40915
40916 COND_PLATFORM_WIN32_0="#"
40917 if test "x$PLATFORM_WIN32" = "x0" ; then
40918 COND_PLATFORM_WIN32_0=""
40919 fi
40920
40921 COND_PLATFORM_WIN32_1="#"
40922 if test "x$PLATFORM_WIN32" = "x1" ; then
40923 COND_PLATFORM_WIN32_1=""
40924 fi
40925
40926 COND_SHARED_0="#"
40927 if test "x$SHARED" = "x0" ; then
40928 COND_SHARED_0=""
40929 fi
40930
40931 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40932 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40933 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40934 fi
40935
40936 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40937 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40938 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40939 fi
40940
40941 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40942 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40943 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40944 fi
40945
40946 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40947 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40948 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40949 fi
40950
40951 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40952 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40953 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40954 fi
40955
40956 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40957 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40958 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40959 fi
40960
40961 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40962 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40963 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40964 fi
40965
40966 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40967 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40968 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40969 fi
40970
40971 COND_SHARED_1="#"
40972 if test "x$SHARED" = "x1" ; then
40973 COND_SHARED_1=""
40974 fi
40975
40976 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40977 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40978 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40979 fi
40980
40981 COND_TOOLKIT_COCOA="#"
40982 if test "x$TOOLKIT" = "xCOCOA" ; then
40983 COND_TOOLKIT_COCOA=""
40984 fi
40985
40986 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40987 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40988 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40989 fi
40990
40991 COND_TOOLKIT_GTK="#"
40992 if test "x$TOOLKIT" = "xGTK" ; then
40993 COND_TOOLKIT_GTK=""
40994 fi
40995
40996 COND_TOOLKIT_GTK_USE_GUI_1="#"
40997 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40998 COND_TOOLKIT_GTK_USE_GUI_1=""
40999 fi
41000
41001 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41002 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41003 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41004 fi
41005
41006 COND_TOOLKIT_MAC="#"
41007 if test "x$TOOLKIT" = "xMAC" ; then
41008 COND_TOOLKIT_MAC=""
41009 fi
41010
41011 COND_TOOLKIT_MAC_USE_GUI_1="#"
41012 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41013 COND_TOOLKIT_MAC_USE_GUI_1=""
41014 fi
41015
41016 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41017 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41018 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41019 fi
41020
41021 COND_TOOLKIT_MGL="#"
41022 if test "x$TOOLKIT" = "xMGL" ; then
41023 COND_TOOLKIT_MGL=""
41024 fi
41025
41026 COND_TOOLKIT_MGL_USE_GUI_1="#"
41027 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41028 COND_TOOLKIT_MGL_USE_GUI_1=""
41029 fi
41030
41031 COND_TOOLKIT_MOTIF="#"
41032 if test "x$TOOLKIT" = "xMOTIF" ; then
41033 COND_TOOLKIT_MOTIF=""
41034 fi
41035
41036 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41037 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41038 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41039 fi
41040
41041 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41042 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41043 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41044 fi
41045
41046 COND_TOOLKIT_MSW="#"
41047 if test "x$TOOLKIT" = "xMSW" ; then
41048 COND_TOOLKIT_MSW=""
41049 fi
41050
41051 COND_TOOLKIT_MSW_USE_GUI_1="#"
41052 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41053 COND_TOOLKIT_MSW_USE_GUI_1=""
41054 fi
41055
41056 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41057 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41058 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41059 fi
41060
41061 COND_TOOLKIT_PM="#"
41062 if test "x$TOOLKIT" = "xPM" ; then
41063 COND_TOOLKIT_PM=""
41064 fi
41065
41066 COND_TOOLKIT_PM_USE_GUI_1="#"
41067 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41068 COND_TOOLKIT_PM_USE_GUI_1=""
41069 fi
41070
41071 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41072 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41073 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41074 fi
41075
41076 COND_TOOLKIT_WINCE="#"
41077 if test "x$TOOLKIT" = "xWINCE" ; then
41078 COND_TOOLKIT_WINCE=""
41079 fi
41080
41081 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41082 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41083 COND_TOOLKIT_WINCE_USE_GUI_1=""
41084 fi
41085
41086 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41087 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41088 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41089 fi
41090
41091 COND_TOOLKIT_X11="#"
41092 if test "x$TOOLKIT" = "xX11" ; then
41093 COND_TOOLKIT_X11=""
41094 fi
41095
41096 COND_TOOLKIT_X11_USE_GUI_1="#"
41097 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41098 COND_TOOLKIT_X11_USE_GUI_1=""
41099 fi
41100
41101 COND_UNICODE_1="#"
41102 if test "x$UNICODE" = "x1" ; then
41103 COND_UNICODE_1=""
41104 fi
41105
41106 COND_USE_EXCEPTIONS_0="#"
41107 if test "x$USE_EXCEPTIONS" = "x0" ; then
41108 COND_USE_EXCEPTIONS_0=""
41109 fi
41110
41111 COND_USE_EXCEPTIONS_1="#"
41112 if test "x$USE_EXCEPTIONS" = "x1" ; then
41113 COND_USE_EXCEPTIONS_1=""
41114 fi
41115
41116 COND_USE_GUI_0="#"
41117 if test "x$USE_GUI" = "x0" ; then
41118 COND_USE_GUI_0=""
41119 fi
41120
41121 COND_USE_GUI_1="#"
41122 if test "x$USE_GUI" = "x1" ; then
41123 COND_USE_GUI_1=""
41124 fi
41125
41126 COND_USE_GUI_1_WXUNIV_0="#"
41127 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41128 COND_USE_GUI_1_WXUNIV_0=""
41129 fi
41130
41131 COND_USE_GUI_1_WXUNIV_1="#"
41132 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41133 COND_USE_GUI_1_WXUNIV_1=""
41134 fi
41135
41136 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41137 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41138 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41139 fi
41140
41141 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41142 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41143 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41144 fi
41145
41146 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41147 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41148 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41149 fi
41150
41151 COND_USE_ODBC_1="#"
41152 if test "x$USE_ODBC" = "x1" ; then
41153 COND_USE_ODBC_1=""
41154 fi
41155
41156 COND_USE_PLUGINS_0="#"
41157 if test "x$USE_PLUGINS" = "x0" ; then
41158 COND_USE_PLUGINS_0=""
41159 fi
41160
41161 COND_USE_SOSYMLINKS_1="#"
41162 if test "x$USE_SOSYMLINKS" = "x1" ; then
41163 COND_USE_SOSYMLINKS_1=""
41164 fi
41165
41166 COND_USE_SOVERLINUX_1="#"
41167 if test "x$USE_SOVERLINUX" = "x1" ; then
41168 COND_USE_SOVERLINUX_1=""
41169 fi
41170
41171 COND_USE_SOVERSION_0="#"
41172 if test "x$USE_SOVERSION" = "x0" ; then
41173 COND_USE_SOVERSION_0=""
41174 fi
41175
41176 COND_USE_SOVERSOLARIS_1="#"
41177 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41178 COND_USE_SOVERSOLARIS_1=""
41179 fi
41180
41181 COND_WITH_PLUGIN_SDL_1="#"
41182 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41183 COND_WITH_PLUGIN_SDL_1=""
41184 fi
41185
41186 COND_WXUNIV_1="#"
41187 if test "x$WXUNIV" = "x1" ; then
41188 COND_WXUNIV_1=""
41189 fi
41190
41191 COND_WXUSE_EXPAT_BUILTIN="#"
41192 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41193 COND_WXUSE_EXPAT_BUILTIN=""
41194 fi
41195
41196 COND_WXUSE_LIBJPEG_BUILTIN="#"
41197 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41198 COND_WXUSE_LIBJPEG_BUILTIN=""
41199 fi
41200
41201 COND_WXUSE_LIBPNG_BUILTIN="#"
41202 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41203 COND_WXUSE_LIBPNG_BUILTIN=""
41204 fi
41205
41206 COND_WXUSE_LIBTIFF_BUILTIN="#"
41207 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41208 COND_WXUSE_LIBTIFF_BUILTIN=""
41209 fi
41210
41211 COND_WXUSE_ODBC_BUILTIN="#"
41212 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41213 COND_WXUSE_ODBC_BUILTIN=""
41214 fi
41215
41216 COND_WXUSE_REGEX_BUILTIN="#"
41217 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41218 COND_WXUSE_REGEX_BUILTIN=""
41219 fi
41220
41221 COND_WXUSE_ZLIB_BUILTIN="#"
41222 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41223 COND_WXUSE_ZLIB_BUILTIN=""
41224 fi
41225
a848cd7e
SC
41226
41227
41228
41229
41230if test $GCC_PCH = 1 ; then
41231 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
41232 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
41233else
41234 case "${host}" in
41235 powerpc-*-darwin* )
41236 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
41237 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
41238 ;;
41239 esac
41240fi
41241
41242
41243SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41244
41245
41246
41247
41248
41249
41250
41251
41252
41253
41254
41255
41256
41257
41258
41259
41260
41261
41262
41263
41264
41265
41266
41267
41268
41269
41270
41271
41272
41273
41274
41275
41276
41277
41278
41279
41280
41281
41282
41283
41284
41285
41286
41287
41288
41289
41290
41291
41292
41293
41294
41295
41296
41297
41298
41299
41300
41301
41302
41303
41304
41305
41306
41307
41308
41309
41310
41311
41312
41313
41314
41315
41316
41317
41318
41319
41320
41321
41322
41323
41324
41325
41326
41327
41328
41329
41330
41331
41332
41333
41334
41335
41336
41337
41338
41339
41340
41341
41342
41343
41344echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41345echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
41346set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
41347if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41348 echo $ECHO_N "(cached) $ECHO_C" >&6
41349else
41350 cat >conftest.make <<\_ACEOF
41351all:
41352 @echo 'ac_maketemp="$(MAKE)"'
41353_ACEOF
41354# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41355eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41356if test -n "$ac_maketemp"; then
41357 eval ac_cv_prog_make_${ac_make}_set=yes
41358else
41359 eval ac_cv_prog_make_${ac_make}_set=no
41360fi
41361rm -f conftest.make
41362fi
41363if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41364 echo "$as_me:$LINENO: result: yes" >&5
41365echo "${ECHO_T}yes" >&6
41366 SET_MAKE=
41367else
41368 echo "$as_me:$LINENO: result: no" >&5
41369echo "${ECHO_T}no" >&6
41370 SET_MAKE="MAKE=${MAKE-make}"
41371fi
41372
41373
41374if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
41375 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
41376fi
41377
41378 ac_config_headers="$ac_config_headers setup.h"
41379
41380
41381 ac_config_files="$ac_config_files wx-config version-script Makefile"
41382
41383
41384 ac_config_commands="$ac_config_commands default"
41385
41386
41387
41388if test "$wxUSE_GUI" = "yes"; then
41389 SUBDIRS="samples demos utils contrib"
41390else SUBDIRS="samples utils"
41391fi
41392
41393
41394
41395# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41396if test "${with_cppunit_prefix+set}" = set; then
41397 withval="$with_cppunit_prefix"
41398 cppunit_config_prefix="$withval"
41399else
41400 cppunit_config_prefix=""
41401fi;
41402
41403# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41404if test "${with_cppunit_exec_prefix+set}" = set; then
41405 withval="$with_cppunit_exec_prefix"
41406 cppunit_config_exec_prefix="$withval"
41407else
41408 cppunit_config_exec_prefix=""
41409fi;
41410
41411 if test x$cppunit_config_exec_prefix != x ; then
41412 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41413 if test x${CPPUNIT_CONFIG+set} != xset ; then
41414 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41415 fi
41416 fi
41417 if test x$cppunit_config_prefix != x ; then
41418 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41419 if test x${CPPUNIT_CONFIG+set} != xset ; then
41420 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41421 fi
41422 fi
41423
41424 # Extract the first word of "cppunit-config", so it can be a program name with args.
41425set dummy cppunit-config; ac_word=$2
41426echo "$as_me:$LINENO: checking for $ac_word" >&5
41427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41428if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41429 echo $ECHO_N "(cached) $ECHO_C" >&6
41430else
41431 case $CPPUNIT_CONFIG in
41432 [\\/]* | ?:[\\/]*)
41433 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41434 ;;
41435 *)
41436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41437for as_dir in $PATH
41438do
41439 IFS=$as_save_IFS
41440 test -z "$as_dir" && as_dir=.
41441 for ac_exec_ext in '' $ac_executable_extensions; do
41442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41443 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41445 break 2
41446 fi
41447done
41448done
41449
41450 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41451 ;;
41452esac
41453fi
41454CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41455
41456if test -n "$CPPUNIT_CONFIG"; then
41457 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41458echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41459else
41460 echo "$as_me:$LINENO: result: no" >&5
41461echo "${ECHO_T}no" >&6
41462fi
41463
41464 cppunit_version_min=1.8.0
41465
41466 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41467echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41468 no_cppunit=""
41469 if test "$CPPUNIT_CONFIG" = "no" ; then
41470 no_cppunit=yes
41471 else
41472 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41473 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41474 cppunit_version=`$CPPUNIT_CONFIG --version`
41475
41476 cppunit_major_version=`echo $cppunit_version | \
41477 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41478 cppunit_minor_version=`echo $cppunit_version | \
41479 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41480 cppunit_micro_version=`echo $cppunit_version | \
41481 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41482
41483 cppunit_major_min=`echo $cppunit_version_min | \
41484 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41485 cppunit_minor_min=`echo $cppunit_version_min | \
41486 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41487 cppunit_micro_min=`echo $cppunit_version_min | \
41488 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41489
41490 cppunit_version_proper=`expr \
41491 $cppunit_major_version \> $cppunit_major_min \| \
41492 $cppunit_major_version \= $cppunit_major_min \& \
41493 $cppunit_minor_version \> $cppunit_minor_min \| \
41494 $cppunit_major_version \= $cppunit_major_min \& \
41495 $cppunit_minor_version \= $cppunit_minor_min \& \
41496 $cppunit_micro_version \>= $cppunit_micro_min `
41497
41498 if test "$cppunit_version_proper" = "1" ; then
41499 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41500echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41501 else
41502 echo "$as_me:$LINENO: result: no" >&5
41503echo "${ECHO_T}no" >&6
41504 no_cppunit=yes
41505 fi
41506 fi
41507
41508 if test "x$no_cppunit" = x ; then
41509 SUBDIRS="$SUBDIRS tests"
41510 else
41511 CPPUNIT_CFLAGS=""
41512 CPPUNIT_LIBS=""
41513 :
41514 fi
41515
41516
41517
41518
41519
41520for subdir in `echo $SUBDIRS`; do
41521 if test -d ${srcdir}/${subdir} ; then
41522 if test "$wxUSE_GUI" = "yes"; then
41523 if test ${subdir} = "samples"; then
41524 makefiles="samples/Makefile.in $makefiles"
41525 for sample in `echo $SAMPLES_SUBDIRS`; do
41526 if test -d $srcdir/samples/$sample; then
41527 makefiles="samples/$sample/Makefile.in $makefiles"
41528 fi
41529 done
41530 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41531 fi
41532 else if test ${subdir} = "samples"; then
41533 makefiles="samples/Makefile.in samples/console/Makefile.in"
41534 elif test ${subdir} = "utils"; then
41535 makefiles="utils/HelpGen/Makefile.in \
41536 utils/HelpGen/src/Makefile.in \
41537 utils/tex2rtf/Makefile.in \
41538 utils/tex2rtf/src/Makefile.in"
41539 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41540 fi
41541 fi
41542
41543 for mkin in $makefiles ; do
41544 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41545 ac_config_files="$ac_config_files $mk"
41546
41547 done
41548 fi
41549done
41550
41551
41552cat >confcache <<\_ACEOF
41553# This file is a shell script that caches the results of configure
41554# tests run on this system so they can be shared between configure
41555# scripts and configure runs, see configure's option --config-cache.
41556# It is not useful on other systems. If it contains results you don't
41557# want to keep, you may remove or edit it.
41558#
41559# config.status only pays attention to the cache file if you give it
41560# the --recheck option to rerun configure.
41561#
41562# `ac_cv_env_foo' variables (set or unset) will be overridden when
41563# loading this file, other *unset* `ac_cv_foo' will be assigned the
41564# following values.
41565
41566_ACEOF
41567
41568# The following way of writing the cache mishandles newlines in values,
41569# but we know of no workaround that is simple, portable, and efficient.
41570# So, don't put newlines in cache variables' values.
41571# Ultrix sh set writes to stderr and can't be redirected directly,
41572# and sets the high bit in the cache file unless we assign to the vars.
41573{
41574 (set) 2>&1 |
41575 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41576 *ac_space=\ *)
41577 # `set' does not quote correctly, so add quotes (double-quote
41578 # substitution turns \\\\ into \\, and sed turns \\ into \).
41579 sed -n \
41580 "s/'/'\\\\''/g;
41581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41582 ;;
41583 *)
41584 # `set' quotes correctly as required by POSIX, so do not add quotes.
41585 sed -n \
41586 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
41587 ;;
41588 esac;
41589} |
41590 sed '
41591 t clear
41592 : clear
41593 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41594 t end
41595 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41596 : end' >>confcache
41597if diff $cache_file confcache >/dev/null 2>&1; then :; else
41598 if test -w $cache_file; then
41599 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41600 cat confcache >$cache_file
41601 else
41602 echo "not updating unwritable cache $cache_file"
41603 fi
41604fi
41605rm -f confcache
41606
41607test "x$prefix" = xNONE && prefix=$ac_default_prefix
41608# Let make expand exec_prefix.
41609test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41610
41611# VPATH may cause trouble with some makes, so we remove $(srcdir),
41612# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41613# trailing colons and then remove the whole line if VPATH becomes empty
41614# (actually we leave an empty line to preserve line numbers).
41615if test "x$srcdir" = x.; then
41616 ac_vpsub='/^[ ]*VPATH[ ]*=/{
41617s/:*\$(srcdir):*/:/;
41618s/:*\${srcdir}:*/:/;
41619s/:*@srcdir@:*/:/;
41620s/^\([^=]*=[ ]*\):*/\1/;
41621s/:*$//;
41622s/^[^=]*=[ ]*$//;
41623}'
41624fi
41625
41626DEFS=-DHAVE_CONFIG_H
41627
41628ac_libobjs=
41629ac_ltlibobjs=
41630for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41631 # 1. Remove the extension, and $U if already installed.
41632 ac_i=`echo "$ac_i" |
41633 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
41634 # 2. Add them.
41635 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41636 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41637done
41638LIBOBJS=$ac_libobjs
41639
41640LTLIBOBJS=$ac_ltlibobjs
41641
41642
41643
41644: ${CONFIG_STATUS=./config.status}
41645ac_clean_files_save=$ac_clean_files
41646ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41647{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41648echo "$as_me: creating $CONFIG_STATUS" >&6;}
41649cat >$CONFIG_STATUS <<_ACEOF
41650#! $SHELL
41651# Generated by $as_me.
41652# Run this file to recreate the current configuration.
41653# Compiler output produced by configure, useful for debugging
41654# configure, is in config.log if it exists.
41655
41656debug=false
41657ac_cs_recheck=false
41658ac_cs_silent=false
41659SHELL=\${CONFIG_SHELL-$SHELL}
41660_ACEOF
41661
41662cat >>$CONFIG_STATUS <<\_ACEOF
41663## --------------------- ##
41664## M4sh Initialization. ##
41665## --------------------- ##
41666
41667# Be Bourne compatible
41668if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41669 emulate sh
41670 NULLCMD=:
41671 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41672 # is contrary to our usage. Disable this feature.
41673 alias -g '${1+"$@"}'='"$@"'
41674elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41675 set -o posix
41676fi
41677DUALCASE=1; export DUALCASE # for MKS sh
41678
41679# Support unset when possible.
41680if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41681 as_unset=unset
41682else
41683 as_unset=false
41684fi
41685
41686
41687# Work around bugs in pre-3.0 UWIN ksh.
41688$as_unset ENV MAIL MAILPATH
41689PS1='$ '
41690PS2='> '
41691PS4='+ '
41692
41693# NLS nuisances.
41694for as_var in \
41695 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41696 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41697 LC_TELEPHONE LC_TIME
41698do
41699 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41700 eval $as_var=C; export $as_var
41701 else
41702 $as_unset $as_var
41703 fi
41704done
41705
41706# Required to use basename.
41707if expr a : '\(a\)' >/dev/null 2>&1; then
41708 as_expr=expr
41709else
41710 as_expr=false
41711fi
41712
41713if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41714 as_basename=basename
41715else
41716 as_basename=false
41717fi
41718
41719
41720# Name of the executable.
41721as_me=`$as_basename "$0" ||
41722$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41723 X"$0" : 'X\(//\)$' \| \
41724 X"$0" : 'X\(/\)$' \| \
41725 . : '\(.\)' 2>/dev/null ||
41726echo X/"$0" |
41727 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41728 /^X\/\(\/\/\)$/{ s//\1/; q; }
41729 /^X\/\(\/\).*/{ s//\1/; q; }
41730 s/.*/./; q'`
41731
41732
41733# PATH needs CR, and LINENO needs CR and PATH.
41734# Avoid depending upon Character Ranges.
41735as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41736as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41737as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41738as_cr_digits='0123456789'
41739as_cr_alnum=$as_cr_Letters$as_cr_digits
41740
41741# The user is always right.
41742if test "${PATH_SEPARATOR+set}" != set; then
41743 echo "#! /bin/sh" >conf$$.sh
41744 echo "exit 0" >>conf$$.sh
41745 chmod +x conf$$.sh
41746 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41747 PATH_SEPARATOR=';'
41748 else
41749 PATH_SEPARATOR=:
41750 fi
41751 rm -f conf$$.sh
41752fi
41753
41754
41755 as_lineno_1=$LINENO
41756 as_lineno_2=$LINENO
41757 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41758 test "x$as_lineno_1" != "x$as_lineno_2" &&
41759 test "x$as_lineno_3" = "x$as_lineno_2" || {
41760 # Find who we are. Look in the path if we contain no path at all
41761 # relative or not.
41762 case $0 in
41763 *[\\/]* ) as_myself=$0 ;;
41764 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41765for as_dir in $PATH
41766do
41767 IFS=$as_save_IFS
41768 test -z "$as_dir" && as_dir=.
41769 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41770done
41771
41772 ;;
41773 esac
41774 # We did not find ourselves, most probably we were run as `sh COMMAND'
41775 # in which case we are not to be found in the path.
41776 if test "x$as_myself" = x; then
41777 as_myself=$0
41778 fi
41779 if test ! -f "$as_myself"; then
41780 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41781echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41782 { (exit 1); exit 1; }; }
41783 fi
41784 case $CONFIG_SHELL in
41785 '')
41786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41787for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41788do
41789 IFS=$as_save_IFS
41790 test -z "$as_dir" && as_dir=.
41791 for as_base in sh bash ksh sh5; do
41792 case $as_dir in
41793 /*)
41794 if ("$as_dir/$as_base" -c '
41795 as_lineno_1=$LINENO
41796 as_lineno_2=$LINENO
41797 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41798 test "x$as_lineno_1" != "x$as_lineno_2" &&
41799 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41800 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41801 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41802 CONFIG_SHELL=$as_dir/$as_base
41803 export CONFIG_SHELL
41804 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41805 fi;;
41806 esac
41807 done
41808done
41809;;
41810 esac
41811
41812 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41813 # uniformly replaced by the line number. The first 'sed' inserts a
41814 # line-number line before each line; the second 'sed' does the real
41815 # work. The second script uses 'N' to pair each line-number line
41816 # with the numbered line, and appends trailing '-' during
41817 # substitution so that $LINENO is not a special case at line end.
41818 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41819 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41820 sed '=' <$as_myself |
41821 sed '
41822 N
41823 s,$,-,
41824 : loop
41825 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41826 t loop
41827 s,-$,,
41828 s,^['$as_cr_digits']*\n,,
41829 ' >$as_me.lineno &&
41830 chmod +x $as_me.lineno ||
41831 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41832echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41833 { (exit 1); exit 1; }; }
41834
41835 # Don't try to exec as it changes $[0], causing all sort of problems
41836 # (the dirname of $[0] is not the place where we might find the
41837 # original and so on. Autoconf is especially sensible to this).
41838 . ./$as_me.lineno
41839 # Exit status is that of the last command.
41840 exit
41841}
41842
41843
41844case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41845 *c*,-n*) ECHO_N= ECHO_C='
41846' ECHO_T=' ' ;;
41847 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41848 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41849esac
41850
41851if expr a : '\(a\)' >/dev/null 2>&1; then
41852 as_expr=expr
41853else
41854 as_expr=false
41855fi
41856
41857rm -f conf$$ conf$$.exe conf$$.file
41858echo >conf$$.file
41859if ln -s conf$$.file conf$$ 2>/dev/null; then
41860 # We could just check for DJGPP; but this test a) works b) is more generic
41861 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41862 if test -f conf$$.exe; then
41863 # Don't use ln at all; we don't have any links
41864 as_ln_s='cp -p'
41865 else
41866 as_ln_s='ln -s'
41867 fi
41868elif ln conf$$.file conf$$ 2>/dev/null; then
41869 as_ln_s=ln
41870else
41871 as_ln_s='cp -p'
41872fi
41873rm -f conf$$ conf$$.exe conf$$.file
41874
41875if mkdir -p . 2>/dev/null; then
41876 as_mkdir_p=:
41877else
41878 test -d ./-p && rmdir ./-p
41879 as_mkdir_p=false
41880fi
41881
41882as_executable_p="test -f"
41883
41884# Sed expression to map a string onto a valid CPP name.
41885as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41886
41887# Sed expression to map a string onto a valid variable name.
41888as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41889
41890
41891# IFS
41892# We need space, tab and new line, in precisely that order.
41893as_nl='
41894'
41895IFS=" $as_nl"
41896
41897# CDPATH.
41898$as_unset CDPATH
41899
41900exec 6>&1
41901
41902# Open the log real soon, to keep \$[0] and so on meaningful, and to
41903# report actual input values of CONFIG_FILES etc. instead of their
41904# values after options handling. Logging --version etc. is OK.
41905exec 5>>config.log
41906{
41907 echo
41908 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41909## Running $as_me. ##
41910_ASBOX
41911} >&5
41912cat >&5 <<_CSEOF
41913
41914This file was extended by wxWindows $as_me 2.5.1, which was
dcc1b6ad 41915generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41916
41917 CONFIG_FILES = $CONFIG_FILES
41918 CONFIG_HEADERS = $CONFIG_HEADERS
41919 CONFIG_LINKS = $CONFIG_LINKS
41920 CONFIG_COMMANDS = $CONFIG_COMMANDS
41921 $ $0 $@
41922
41923_CSEOF
41924echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41925echo >&5
41926_ACEOF
41927
41928# Files that config.status was made for.
41929if test -n "$ac_config_files"; then
41930 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41931fi
41932
41933if test -n "$ac_config_headers"; then
41934 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41935fi
41936
41937if test -n "$ac_config_links"; then
41938 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41939fi
41940
41941if test -n "$ac_config_commands"; then
41942 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41943fi
41944
41945cat >>$CONFIG_STATUS <<\_ACEOF
41946
41947ac_cs_usage="\
41948\`$as_me' instantiates files from templates according to the
41949current configuration.
41950
41951Usage: $0 [OPTIONS] [FILE]...
41952
41953 -h, --help print this help, then exit
41954 -V, --version print version number, then exit
41955 -q, --quiet do not print progress messages
41956 -d, --debug don't remove temporary files
41957 --recheck update $as_me by reconfiguring in the same conditions
41958 --file=FILE[:TEMPLATE]
41959 instantiate the configuration file FILE
41960 --header=FILE[:TEMPLATE]
41961 instantiate the configuration header FILE
41962
41963Configuration files:
41964$config_files
41965
41966Configuration headers:
41967$config_headers
41968
41969Configuration commands:
41970$config_commands
41971
41972Report bugs to <bug-autoconf@gnu.org>."
41973_ACEOF
41974
41975cat >>$CONFIG_STATUS <<_ACEOF
41976ac_cs_version="\\
41977wxWindows config.status 2.5.1
dcc1b6ad 41978configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41979 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41980
41981Copyright (C) 2003 Free Software Foundation, Inc.
41982This config.status script is free software; the Free Software Foundation
41983gives unlimited permission to copy, distribute and modify it."
41984srcdir=$srcdir
41985INSTALL="$INSTALL"
41986_ACEOF
41987
41988cat >>$CONFIG_STATUS <<\_ACEOF
41989# If no file are specified by the user, then we need to provide default
41990# value. By we need to know if files were specified by the user.
41991ac_need_defaults=:
41992while test $# != 0
41993do
41994 case $1 in
41995 --*=*)
41996 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41997 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41998 ac_shift=:
41999 ;;
42000 -*)
42001 ac_option=$1
42002 ac_optarg=$2
42003 ac_shift=shift
42004 ;;
42005 *) # This is not an option, so the user has probably given explicit
42006 # arguments.
42007 ac_option=$1
42008 ac_need_defaults=false;;
42009 esac
42010
42011 case $ac_option in
42012 # Handling of the options.
42013_ACEOF
42014cat >>$CONFIG_STATUS <<\_ACEOF
42015 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42016 ac_cs_recheck=: ;;
42017 --version | --vers* | -V )
42018 echo "$ac_cs_version"; exit 0 ;;
42019 --he | --h)
42020 # Conflict between --help and --header
42021 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42022Try \`$0 --help' for more information." >&5
42023echo "$as_me: error: ambiguous option: $1
42024Try \`$0 --help' for more information." >&2;}
42025 { (exit 1); exit 1; }; };;
42026 --help | --hel | -h )
42027 echo "$ac_cs_usage"; exit 0 ;;
42028 --debug | --d* | -d )
42029 debug=: ;;
42030 --file | --fil | --fi | --f )
42031 $ac_shift
42032 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42033 ac_need_defaults=false;;
42034 --header | --heade | --head | --hea )
42035 $ac_shift
42036 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42037 ac_need_defaults=false;;
42038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42039 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42040 ac_cs_silent=: ;;
42041
42042 # This is an error.
42043 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42044Try \`$0 --help' for more information." >&5
42045echo "$as_me: error: unrecognized option: $1
42046Try \`$0 --help' for more information." >&2;}
42047 { (exit 1); exit 1; }; } ;;
42048
42049 *) ac_config_targets="$ac_config_targets $1" ;;
42050
42051 esac
42052 shift
42053done
42054
42055ac_configure_extra_args=
42056
42057if $ac_cs_silent; then
42058 exec 6>/dev/null
42059 ac_configure_extra_args="$ac_configure_extra_args --silent"
42060fi
42061
42062_ACEOF
42063cat >>$CONFIG_STATUS <<_ACEOF
42064if \$ac_cs_recheck; then
42065 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42066 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42067fi
42068
42069_ACEOF
42070
42071cat >>$CONFIG_STATUS <<_ACEOF
42072#
42073# INIT-COMMANDS section.
42074#
42075
42076
42077 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
42078 LN_S="${LN_S}"
42079
42080
42081
42082_ACEOF
42083
42084
42085
42086cat >>$CONFIG_STATUS <<\_ACEOF
42087for ac_config_target in $ac_config_targets
42088do
42089 case "$ac_config_target" in
42090 # Handling of arguments.
42091 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
42092 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42093 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42094 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
42095 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42096 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
42097 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42098echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42099 { (exit 1); exit 1; }; };;
42100 esac
42101done
42102
42103# If the user did not use the arguments to specify the items to instantiate,
42104# then the envvar interface is used. Set only those that are not.
42105# We use the long form for the default assignment because of an extremely
42106# bizarre bug on SunOS 4.1.3.
42107if $ac_need_defaults; then
42108 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42109 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42110 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42111fi
42112
42113# Have a temporary directory for convenience. Make it in the build tree
42114# simply because there is no reason to put it here, and in addition,
42115# creating and moving files from /tmp can sometimes cause problems.
42116# Create a temporary directory, and hook for its removal unless debugging.
42117$debug ||
42118{
42119 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42120 trap '{ (exit 1); exit 1; }' 1 2 13 15
42121}
42122
42123# Create a (secure) tmp directory for tmp files.
42124
42125{
42126 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42127 test -n "$tmp" && test -d "$tmp"
42128} ||
42129{
42130 tmp=./confstat$$-$RANDOM
42131 (umask 077 && mkdir $tmp)
42132} ||
42133{
42134 echo "$me: cannot create a temporary directory in ." >&2
42135 { (exit 1); exit 1; }
42136}
42137
42138_ACEOF
42139
42140cat >>$CONFIG_STATUS <<_ACEOF
42141
42142#
42143# CONFIG_FILES section.
42144#
42145
42146# No need to generate the scripts if there are no CONFIG_FILES.
42147# This happens for instance when ./config.status config.h
42148if test -n "\$CONFIG_FILES"; then
42149 # Protect against being on the right side of a sed subst in config.status.
42150 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42151 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42152s,@SHELL@,$SHELL,;t t
42153s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42154s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42155s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42156s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42157s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42158s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42159s,@exec_prefix@,$exec_prefix,;t t
42160s,@prefix@,$prefix,;t t
42161s,@program_transform_name@,$program_transform_name,;t t
42162s,@bindir@,$bindir,;t t
42163s,@sbindir@,$sbindir,;t t
42164s,@libexecdir@,$libexecdir,;t t
42165s,@datadir@,$datadir,;t t
42166s,@sysconfdir@,$sysconfdir,;t t
42167s,@sharedstatedir@,$sharedstatedir,;t t
42168s,@localstatedir@,$localstatedir,;t t
42169s,@libdir@,$libdir,;t t
42170s,@includedir@,$includedir,;t t
42171s,@oldincludedir@,$oldincludedir,;t t
42172s,@infodir@,$infodir,;t t
42173s,@mandir@,$mandir,;t t
42174s,@build_alias@,$build_alias,;t t
42175s,@host_alias@,$host_alias,;t t
42176s,@target_alias@,$target_alias,;t t
42177s,@DEFS@,$DEFS,;t t
42178s,@ECHO_C@,$ECHO_C,;t t
42179s,@ECHO_N@,$ECHO_N,;t t
42180s,@ECHO_T@,$ECHO_T,;t t
42181s,@LIBS@,$LIBS,;t t
42182s,@build@,$build,;t t
42183s,@build_cpu@,$build_cpu,;t t
42184s,@build_vendor@,$build_vendor,;t t
42185s,@build_os@,$build_os,;t t
42186s,@host@,$host,;t t
42187s,@host_cpu@,$host_cpu,;t t
42188s,@host_vendor@,$host_vendor,;t t
42189s,@host_os@,$host_os,;t t
42190s,@target@,$target,;t t
42191s,@target_cpu@,$target_cpu,;t t
42192s,@target_vendor@,$target_vendor,;t t
42193s,@target_os@,$target_os,;t t
42194s,@CC@,$CC,;t t
42195s,@CFLAGS@,$CFLAGS,;t t
42196s,@LDFLAGS@,$LDFLAGS,;t t
42197s,@CPPFLAGS@,$CPPFLAGS,;t t
42198s,@ac_ct_CC@,$ac_ct_CC,;t t
42199s,@EXEEXT@,$EXEEXT,;t t
42200s,@OBJEXT@,$OBJEXT,;t t
42201s,@CPP@,$CPP,;t t
42202s,@EGREP@,$EGREP,;t t
42203s,@CXX@,$CXX,;t t
42204s,@CXXFLAGS@,$CXXFLAGS,;t t
42205s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42206s,@RANLIB@,$RANLIB,;t t
42207s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42208s,@AR@,$AR,;t t
42209s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42210s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42211s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42212s,@STRIP@,$STRIP,;t t
42213s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42214s,@LN_S@,$LN_S,;t t
42215s,@CXXCPP@,$CXXCPP,;t t
42216s,@subdirs@,$subdirs,;t t
42217s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42218s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42219s,@GTK_LIBS@,$GTK_LIBS,;t t
42220s,@GTK_CONFIG@,$GTK_CONFIG,;t t
42221s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42222s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
42223s,@X_CFLAGS@,$X_CFLAGS,;t t
42224s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42225s,@X_LIBS@,$X_LIBS,;t t
42226s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42227s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42228s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
42229s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42230s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42231s,@RESCOMP@,$RESCOMP,;t t
42232s,@DEREZ@,$DEREZ,;t t
42233s,@SETFILE@,$SETFILE,;t t
42234s,@LIBICONV@,$LIBICONV,;t t
42235s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42236s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42237s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42238s,@SDL_LIBS@,$SDL_LIBS,;t t
42239s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42240s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42241s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42242s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42243s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42244s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42245s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42246s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42247s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42248s,@VENDOR@,$VENDOR,;t t
42249s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
42250s,@WXUNIV@,$WXUNIV,;t t
42251s,@MONOLITHIC@,$MONOLITHIC,;t t
42252s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42253s,@EXTRALIBS@,$EXTRALIBS,;t t
42254s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42255s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42256s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42257s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42258s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42259s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42260s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42261s,@UNICODE@,$UNICODE,;t t
42262s,@BUILD@,$BUILD,;t t
42263s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42264s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
42265s,@SHARED@,$SHARED,;t t
42266s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42267s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42268s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42269s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42270s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42271s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42272s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42273s,@SET_MAKE@,$SET_MAKE,;t t
42274s,@MAKE_SET@,$MAKE_SET,;t t
42275s,@ac_ct_AR@,$ac_ct_AR,;t t
42276s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42277s,@NM@,$NM,;t t
42278s,@ac_ct_NM@,$ac_ct_NM,;t t
42279s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42280s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42281s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42282s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42283s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42284s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42285s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42286s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42287s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42288s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42289s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42290s,@LIBPREFIX@,$LIBPREFIX,;t t
42291s,@LIBEXT@,$LIBEXT,;t t
42292s,@DLLPREFIX@,$DLLPREFIX,;t t
42293s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42294s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42295s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42296s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42297s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42298s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42299s,@PIC_FLAG@,$PIC_FLAG,;t t
42300s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42301s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42302s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42303s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42304s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42305s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42306s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42307s,@GCC_PCH@,$GCC_PCH,;t t
42308s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42309s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42310s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42311s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42312s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42313s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42314s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42315s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42316s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42317s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42318s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42319s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42320s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42321s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42322s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42323s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42324s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42325s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42326s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42327s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42328s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
42329s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42330s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42331s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42332s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42333s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
42334s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42335s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42336s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42337s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42338s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42339s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42340s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42341s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42342s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42343s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42344s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
42345s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42346s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42347s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42348s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42349s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42350s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42351s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42352s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42353s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42354s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42355s,@COND_SHARED_0@,$COND_SHARED_0,;t t
42356s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42357s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42358s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42359s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42360s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42361s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42362s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42363s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42364s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42365s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42366s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42367s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42368s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42369s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42370s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42371s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42372s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42373s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42374s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42375s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42376s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42377s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42378s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42379s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42380s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42381s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42382s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42383s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42384s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42385s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42386s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42387s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42388s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42389s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42390s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42391s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42392s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42393s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42394s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42395s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42396s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42397s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42398s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42399s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42400s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
42401s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42402s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42403s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42404s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42405s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
42406s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
42407s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
42408s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42409s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42410s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42411s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42412s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42413s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42414s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42415s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
42416s,@PATH_IFS@,$PATH_IFS,;t t
42417s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
42418s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
42419s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
42420s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
42421s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
42422s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42423s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
42424s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
42425s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
42426s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
42427s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
42428s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
42429s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
42430s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
42431s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
42432s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
42433s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
42434s,@WX_ALL@,$WX_ALL,;t t
42435s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
42436s,@SHARED_LD@,$SHARED_LD,;t t
42437s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
42438s,@STATIC_FLAG@,$STATIC_FLAG,;t t
42439s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42440s,@USE_GUI@,$USE_GUI,;t t
42441s,@AFMINSTALL@,$AFMINSTALL,;t t
42442s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42443s,@TOOLKIT@,$TOOLKIT,;t t
42444s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
42445s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
42446s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
42447s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42448s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
42449s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
42450s,@cross_compiling@,$cross_compiling,;t t
42451s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
42452s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
42453s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
42454s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
42455s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
42456s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42457s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42458s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42459s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
42460s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42461s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
42462s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
42463s,@ALL_HEADERS@,$ALL_HEADERS,;t t
42464s,@ALL_SOURCES@,$ALL_SOURCES,;t t
42465s,@GUIDIST@,$GUIDIST,;t t
42466s,@PORT_FILES@,$PORT_FILES,;t t
42467s,@DISTDIR@,$DISTDIR,;t t
42468s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42469s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42470s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
42471s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
42472s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42473s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42474s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42475s,@RESFLAGS@,$RESFLAGS,;t t
42476s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42477s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42478s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42479s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42480s,@MACRESCOMP@,$MACRESCOMP,;t t
42481s,@MACSETFILE@,$MACSETFILE,;t t
42482s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42483s,@GCC@,$GCC,;t t
42484s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
42485s,@DLLTOOL@,$DLLTOOL,;t t
42486s,@AS@,$AS,;t t
42487s,@LD@,$LD,;t t
42488s,@MAKEINFO@,$MAKEINFO,;t t
42489s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
42490s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42491s,@LIBOBJS@,$LIBOBJS,;t t
42492s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42493CEOF
42494
42495_ACEOF
42496
42497 cat >>$CONFIG_STATUS <<\_ACEOF
42498 # Split the substitutions into bite-sized pieces for seds with
42499 # small command number limits, like on Digital OSF/1 and HP-UX.
42500 ac_max_sed_lines=48
42501 ac_sed_frag=1 # Number of current file.
42502 ac_beg=1 # First line for current file.
42503 ac_end=$ac_max_sed_lines # Line after last line for current file.
42504 ac_more_lines=:
42505 ac_sed_cmds=
42506 while $ac_more_lines; do
42507 if test $ac_beg -gt 1; then
42508 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42509 else
42510 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42511 fi
42512 if test ! -s $tmp/subs.frag; then
42513 ac_more_lines=false
42514 else
42515 # The purpose of the label and of the branching condition is to
42516 # speed up the sed processing (if there are no `@' at all, there
42517 # is no need to browse any of the substitutions).
42518 # These are the two extra sed commands mentioned above.
42519 (echo ':t
42520 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42521 if test -z "$ac_sed_cmds"; then
42522 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
42523 else
42524 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
42525 fi
42526 ac_sed_frag=`expr $ac_sed_frag + 1`
42527 ac_beg=$ac_end
42528 ac_end=`expr $ac_end + $ac_max_sed_lines`
42529 fi
42530 done
42531 if test -z "$ac_sed_cmds"; then
42532 ac_sed_cmds=cat
42533 fi
42534fi # test -n "$CONFIG_FILES"
42535
42536_ACEOF
42537cat >>$CONFIG_STATUS <<\_ACEOF
42538for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42539 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42540 case $ac_file in
42541 - | *:- | *:-:* ) # input from stdin
42542 cat >$tmp/stdin
42543 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42544 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42545 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42546 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42547 * ) ac_file_in=$ac_file.in ;;
42548 esac
42549
42550 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42551 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42552$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42553 X"$ac_file" : 'X\(//\)[^/]' \| \
42554 X"$ac_file" : 'X\(//\)$' \| \
42555 X"$ac_file" : 'X\(/\)' \| \
42556 . : '\(.\)' 2>/dev/null ||
42557echo X"$ac_file" |
42558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42560 /^X\(\/\/\)$/{ s//\1/; q; }
42561 /^X\(\/\).*/{ s//\1/; q; }
42562 s/.*/./; q'`
42563 { if $as_mkdir_p; then
42564 mkdir -p "$ac_dir"
42565 else
42566 as_dir="$ac_dir"
42567 as_dirs=
42568 while test ! -d "$as_dir"; do
42569 as_dirs="$as_dir $as_dirs"
42570 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42571$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42572 X"$as_dir" : 'X\(//\)[^/]' \| \
42573 X"$as_dir" : 'X\(//\)$' \| \
42574 X"$as_dir" : 'X\(/\)' \| \
42575 . : '\(.\)' 2>/dev/null ||
42576echo X"$as_dir" |
42577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42579 /^X\(\/\/\)$/{ s//\1/; q; }
42580 /^X\(\/\).*/{ s//\1/; q; }
42581 s/.*/./; q'`
42582 done
42583 test ! -n "$as_dirs" || mkdir $as_dirs
42584 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42585echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42586 { (exit 1); exit 1; }; }; }
42587
42588 ac_builddir=.
42589
42590if test "$ac_dir" != .; then
42591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42592 # A "../" for each directory in $ac_dir_suffix.
42593 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42594else
42595 ac_dir_suffix= ac_top_builddir=
42596fi
42597
42598case $srcdir in
42599 .) # No --srcdir option. We are building in place.
42600 ac_srcdir=.
42601 if test -z "$ac_top_builddir"; then
42602 ac_top_srcdir=.
42603 else
42604 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42605 fi ;;
42606 [\\/]* | ?:[\\/]* ) # Absolute path.
42607 ac_srcdir=$srcdir$ac_dir_suffix;
42608 ac_top_srcdir=$srcdir ;;
42609 *) # Relative path.
42610 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42611 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42612esac
42613
42614# Do not use `cd foo && pwd` to compute absolute paths, because
42615# the directories may not exist.
42616case `pwd` in
42617.) ac_abs_builddir="$ac_dir";;
42618*)
42619 case "$ac_dir" in
42620 .) ac_abs_builddir=`pwd`;;
42621 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42622 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42623 esac;;
42624esac
42625case $ac_abs_builddir in
42626.) ac_abs_top_builddir=${ac_top_builddir}.;;
42627*)
42628 case ${ac_top_builddir}. in
42629 .) ac_abs_top_builddir=$ac_abs_builddir;;
42630 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42631 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42632 esac;;
42633esac
42634case $ac_abs_builddir in
42635.) ac_abs_srcdir=$ac_srcdir;;
42636*)
42637 case $ac_srcdir in
42638 .) ac_abs_srcdir=$ac_abs_builddir;;
42639 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42640 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42641 esac;;
42642esac
42643case $ac_abs_builddir in
42644.) ac_abs_top_srcdir=$ac_top_srcdir;;
42645*)
42646 case $ac_top_srcdir in
42647 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42648 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42649 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42650 esac;;
42651esac
42652
42653
42654 case $INSTALL in
42655 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42656 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42657 esac
42658
dcc1b6ad
VS
42659 if test x"$ac_file" != x-; then
42660 { echo "$as_me:$LINENO: creating $ac_file" >&5
42661echo "$as_me: creating $ac_file" >&6;}
42662 rm -f "$ac_file"
42663 fi
a848cd7e
SC
42664 # Let's still pretend it is `configure' which instantiates (i.e., don't
42665 # use $as_me), people would be surprised to read:
42666 # /* config.h. Generated by config.status. */
42667 if test x"$ac_file" = x-; then
42668 configure_input=
42669 else
42670 configure_input="$ac_file. "
42671 fi
42672 configure_input=$configure_input"Generated from `echo $ac_file_in |
42673 sed 's,.*/,,'` by configure."
42674
42675 # First look for the input files in the build tree, otherwise in the
42676 # src tree.
42677 ac_file_inputs=`IFS=:
42678 for f in $ac_file_in; do
42679 case $f in
42680 -) echo $tmp/stdin ;;
42681 [\\/$]*)
42682 # Absolute (can't be DOS-style, as IFS=:)
42683 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42684echo "$as_me: error: cannot find input file: $f" >&2;}
42685 { (exit 1); exit 1; }; }
42686 echo "$f";;
42687 *) # Relative
42688 if test -f "$f"; then
42689 # Build tree
42690 echo "$f"
42691 elif test -f "$srcdir/$f"; then
42692 # Source tree
42693 echo "$srcdir/$f"
42694 else
42695 # /dev/null tree
42696 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42697echo "$as_me: error: cannot find input file: $f" >&2;}
42698 { (exit 1); exit 1; }; }
42699 fi;;
42700 esac
42701 done` || { (exit 1); exit 1; }
42702_ACEOF
42703cat >>$CONFIG_STATUS <<_ACEOF
42704 sed "$ac_vpsub
42705$extrasub
42706_ACEOF
42707cat >>$CONFIG_STATUS <<\_ACEOF
42708:t
42709/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42710s,@configure_input@,$configure_input,;t t
42711s,@srcdir@,$ac_srcdir,;t t
42712s,@abs_srcdir@,$ac_abs_srcdir,;t t
42713s,@top_srcdir@,$ac_top_srcdir,;t t
42714s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42715s,@builddir@,$ac_builddir,;t t
42716s,@abs_builddir@,$ac_abs_builddir,;t t
42717s,@top_builddir@,$ac_top_builddir,;t t
42718s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42719s,@INSTALL@,$ac_INSTALL,;t t
42720" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42721 rm -f $tmp/stdin
42722 if test x"$ac_file" != x-; then
42723 mv $tmp/out $ac_file
42724 else
42725 cat $tmp/out
42726 rm -f $tmp/out
42727 fi
42728
42729done
42730_ACEOF
42731cat >>$CONFIG_STATUS <<\_ACEOF
42732
42733#
42734# CONFIG_HEADER section.
42735#
42736
42737# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42738# NAME is the cpp macro being defined and VALUE is the value it is being given.
42739#
42740# ac_d sets the value in "#define NAME VALUE" lines.
42741ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42742ac_dB='[ ].*$,\1#\2'
42743ac_dC=' '
42744ac_dD=',;t'
42745# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
42746ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
42747ac_uB='$,\1#\2define\3'
42748ac_uC=' '
42749ac_uD=',;t'
42750
42751for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42752 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42753 case $ac_file in
42754 - | *:- | *:-:* ) # input from stdin
42755 cat >$tmp/stdin
42756 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42757 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42758 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42759 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42760 * ) ac_file_in=$ac_file.in ;;
42761 esac
42762
42763 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42764echo "$as_me: creating $ac_file" >&6;}
42765
42766 # First look for the input files in the build tree, otherwise in the
42767 # src tree.
42768 ac_file_inputs=`IFS=:
42769 for f in $ac_file_in; do
42770 case $f in
42771 -) echo $tmp/stdin ;;
42772 [\\/$]*)
42773 # Absolute (can't be DOS-style, as IFS=:)
42774 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42775echo "$as_me: error: cannot find input file: $f" >&2;}
42776 { (exit 1); exit 1; }; }
42777 # Do quote $f, to prevent DOS paths from being IFS'd.
42778 echo "$f";;
42779 *) # Relative
42780 if test -f "$f"; then
42781 # Build tree
42782 echo "$f"
42783 elif test -f "$srcdir/$f"; then
42784 # Source tree
42785 echo "$srcdir/$f"
42786 else
42787 # /dev/null tree
42788 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42789echo "$as_me: error: cannot find input file: $f" >&2;}
42790 { (exit 1); exit 1; }; }
42791 fi;;
42792 esac
42793 done` || { (exit 1); exit 1; }
42794 # Remove the trailing spaces.
42795 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
42796
42797_ACEOF
42798
42799# Transform confdefs.h into two sed scripts, `conftest.defines' and
42800# `conftest.undefs', that substitutes the proper values into
42801# config.h.in to produce config.h. The first handles `#define'
42802# templates, and the second `#undef' templates.
42803# And first: Protect against being on the right side of a sed subst in
42804# config.status. Protect against being in an unquoted here document
42805# in config.status.
42806rm -f conftest.defines conftest.undefs
42807# Using a here document instead of a string reduces the quoting nightmare.
42808# Putting comments in sed scripts is not portable.
42809#
42810# `end' is used to avoid that the second main sed command (meant for
42811# 0-ary CPP macros) applies to n-ary macro definitions.
42812# See the Autoconf documentation for `clear'.
42813cat >confdef2sed.sed <<\_ACEOF
42814s/[\\&,]/\\&/g
42815s,[\\$`],\\&,g
42816t clear
42817: clear
42818s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
42819t end
42820s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42821: end
42822_ACEOF
42823# If some macros were called several times there might be several times
42824# the same #defines, which is useless. Nevertheless, we may not want to
42825# sort them, since we want the *last* AC-DEFINE to be honored.
42826uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42827sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42828rm -f confdef2sed.sed
42829
42830# This sed command replaces #undef with comments. This is necessary, for
42831# example, in the case of _POSIX_SOURCE, which is predefined and required
42832# on some systems where configure will not decide to define it.
42833cat >>conftest.undefs <<\_ACEOF
42834s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42835_ACEOF
42836
42837# Break up conftest.defines because some shells have a limit on the size
42838# of here documents, and old seds have small limits too (100 cmds).
42839echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
42840echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42841echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42842echo ' :' >>$CONFIG_STATUS
42843rm -f conftest.tail
42844while grep . conftest.defines >/dev/null
42845do
42846 # Write a limited-size here document to $tmp/defines.sed.
42847 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42848 # Speed up: don't consider the non `#define' lines.
42849 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
42850 # Work around the forget-to-reset-the-flag bug.
42851 echo 't clr' >>$CONFIG_STATUS
42852 echo ': clr' >>$CONFIG_STATUS
42853 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42854 echo 'CEOF
42855 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42856 rm -f $tmp/in
42857 mv $tmp/out $tmp/in
42858' >>$CONFIG_STATUS
42859 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42860 rm -f conftest.defines
42861 mv conftest.tail conftest.defines
42862done
42863rm -f conftest.defines
42864echo ' fi # grep' >>$CONFIG_STATUS
42865echo >>$CONFIG_STATUS
42866
42867# Break up conftest.undefs because some shells have a limit on the size
42868# of here documents, and old seds have small limits too (100 cmds).
42869echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42870rm -f conftest.tail
42871while grep . conftest.undefs >/dev/null
42872do
42873 # Write a limited-size here document to $tmp/undefs.sed.
42874 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42875 # Speed up: don't consider the non `#undef'
42876 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
42877 # Work around the forget-to-reset-the-flag bug.
42878 echo 't clr' >>$CONFIG_STATUS
42879 echo ': clr' >>$CONFIG_STATUS
42880 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42881 echo 'CEOF
42882 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42883 rm -f $tmp/in
42884 mv $tmp/out $tmp/in
42885' >>$CONFIG_STATUS
42886 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42887 rm -f conftest.undefs
42888 mv conftest.tail conftest.undefs
42889done
42890rm -f conftest.undefs
42891
42892cat >>$CONFIG_STATUS <<\_ACEOF
42893 # Let's still pretend it is `configure' which instantiates (i.e., don't
42894 # use $as_me), people would be surprised to read:
42895 # /* config.h. Generated by config.status. */
42896 if test x"$ac_file" = x-; then
42897 echo "/* Generated by configure. */" >$tmp/config.h
42898 else
42899 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42900 fi
42901 cat $tmp/in >>$tmp/config.h
42902 rm -f $tmp/in
42903 if test x"$ac_file" != x-; then
42904 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42905 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42906echo "$as_me: $ac_file is unchanged" >&6;}
42907 else
42908 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42909$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42910 X"$ac_file" : 'X\(//\)[^/]' \| \
42911 X"$ac_file" : 'X\(//\)$' \| \
42912 X"$ac_file" : 'X\(/\)' \| \
42913 . : '\(.\)' 2>/dev/null ||
42914echo X"$ac_file" |
42915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42917 /^X\(\/\/\)$/{ s//\1/; q; }
42918 /^X\(\/\).*/{ s//\1/; q; }
42919 s/.*/./; q'`
42920 { if $as_mkdir_p; then
42921 mkdir -p "$ac_dir"
42922 else
42923 as_dir="$ac_dir"
42924 as_dirs=
42925 while test ! -d "$as_dir"; do
42926 as_dirs="$as_dir $as_dirs"
42927 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42928$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42929 X"$as_dir" : 'X\(//\)[^/]' \| \
42930 X"$as_dir" : 'X\(//\)$' \| \
42931 X"$as_dir" : 'X\(/\)' \| \
42932 . : '\(.\)' 2>/dev/null ||
42933echo X"$as_dir" |
42934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42936 /^X\(\/\/\)$/{ s//\1/; q; }
42937 /^X\(\/\).*/{ s//\1/; q; }
42938 s/.*/./; q'`
42939 done
42940 test ! -n "$as_dirs" || mkdir $as_dirs
42941 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42942echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42943 { (exit 1); exit 1; }; }; }
42944
42945 rm -f $ac_file
42946 mv $tmp/config.h $ac_file
42947 fi
42948 else
42949 cat $tmp/config.h
42950 rm -f $tmp/config.h
42951 fi
42952done
42953_ACEOF
42954cat >>$CONFIG_STATUS <<\_ACEOF
42955
42956#
42957# CONFIG_COMMANDS section.
42958#
42959for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42960 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42961 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42962 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42963$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42964 X"$ac_dest" : 'X\(//\)[^/]' \| \
42965 X"$ac_dest" : 'X\(//\)$' \| \
42966 X"$ac_dest" : 'X\(/\)' \| \
42967 . : '\(.\)' 2>/dev/null ||
42968echo X"$ac_dest" |
42969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42971 /^X\(\/\/\)$/{ s//\1/; q; }
42972 /^X\(\/\).*/{ s//\1/; q; }
42973 s/.*/./; q'`
42974 { if $as_mkdir_p; then
42975 mkdir -p "$ac_dir"
42976 else
42977 as_dir="$ac_dir"
42978 as_dirs=
42979 while test ! -d "$as_dir"; do
42980 as_dirs="$as_dir $as_dirs"
42981 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42982$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42983 X"$as_dir" : 'X\(//\)[^/]' \| \
42984 X"$as_dir" : 'X\(//\)$' \| \
42985 X"$as_dir" : 'X\(/\)' \| \
42986 . : '\(.\)' 2>/dev/null ||
42987echo X"$as_dir" |
42988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42990 /^X\(\/\/\)$/{ s//\1/; q; }
42991 /^X\(\/\).*/{ s//\1/; q; }
42992 s/.*/./; q'`
42993 done
42994 test ! -n "$as_dirs" || mkdir $as_dirs
42995 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42996echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42997 { (exit 1); exit 1; }; }; }
42998
42999 ac_builddir=.
43000
43001if test "$ac_dir" != .; then
43002 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43003 # A "../" for each directory in $ac_dir_suffix.
43004 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43005else
43006 ac_dir_suffix= ac_top_builddir=
43007fi
43008
43009case $srcdir in
43010 .) # No --srcdir option. We are building in place.
43011 ac_srcdir=.
43012 if test -z "$ac_top_builddir"; then
43013 ac_top_srcdir=.
43014 else
43015 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43016 fi ;;
43017 [\\/]* | ?:[\\/]* ) # Absolute path.
43018 ac_srcdir=$srcdir$ac_dir_suffix;
43019 ac_top_srcdir=$srcdir ;;
43020 *) # Relative path.
43021 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43022 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43023esac
43024
43025# Do not use `cd foo && pwd` to compute absolute paths, because
43026# the directories may not exist.
43027case `pwd` in
43028.) ac_abs_builddir="$ac_dir";;
43029*)
43030 case "$ac_dir" in
43031 .) ac_abs_builddir=`pwd`;;
43032 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43033 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43034 esac;;
43035esac
43036case $ac_abs_builddir in
43037.) ac_abs_top_builddir=${ac_top_builddir}.;;
43038*)
43039 case ${ac_top_builddir}. in
43040 .) ac_abs_top_builddir=$ac_abs_builddir;;
43041 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43042 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43043 esac;;
43044esac
43045case $ac_abs_builddir in
43046.) ac_abs_srcdir=$ac_srcdir;;
43047*)
43048 case $ac_srcdir in
43049 .) ac_abs_srcdir=$ac_abs_builddir;;
43050 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43051 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43052 esac;;
43053esac
43054case $ac_abs_builddir in
43055.) ac_abs_top_srcdir=$ac_top_srcdir;;
43056*)
43057 case $ac_top_srcdir in
43058 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43059 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43060 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43061 esac;;
43062esac
43063
43064
43065 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43066echo "$as_me: executing $ac_dest commands" >&6;}
43067 case $ac_dest in
43068 default )
43069 if test ! -h wx-config; then
43070 chmod +x wx-config
43071 mv wx-config wx${TOOLCHAIN_NAME}-config
43072 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
43073 fi
43074
43075 if test ! -d lib; then
43076 mkdir lib
43077 fi
43078 if test ! -d lib/wx; then
43079 mkdir lib/wx
43080 fi
43081 if test ! -d lib/wx/include; then
43082 mkdir lib/wx/include
43083 fi
43084 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
43085 mkdir lib/wx/include/${TOOLCHAIN_NAME}
43086 fi
43087 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
43088 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
43089 fi
43090 if test -f setup.h; then
43091 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
43092 fi
43093 ;;
43094 esac
43095done
43096_ACEOF
43097
43098cat >>$CONFIG_STATUS <<\_ACEOF
43099
43100{ (exit 0); exit 0; }
43101_ACEOF
43102chmod +x $CONFIG_STATUS
43103ac_clean_files=$ac_clean_files_save
43104
43105
43106# configure is writing to config.log, and then calls config.status.
43107# config.status does its own redirection, appending to config.log.
43108# Unfortunately, on DOS this fails, as config.log is still kept open
43109# by configure, so config.status won't be able to write to it; its
43110# output is simply discarded. So we exec the FD to /dev/null,
43111# effectively closing config.log, so it can be properly (re)opened and
43112# appended to by config.status. When coming back to configure, we
43113# need to make the FD available again.
43114if test "$no_create" != yes; then
43115 ac_cs_success=:
43116 ac_config_status_args=
43117 test "$silent" = yes &&
43118 ac_config_status_args="$ac_config_status_args --quiet"
43119 exec 5>/dev/null
43120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43121 exec 5>>config.log
43122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43123 # would make configure fail if this is the last instruction.
43124 $ac_cs_success || { (exit 1); exit 1; }
43125fi
43126
43127#
43128# CONFIG_SUBDIRS section.
43129#
43130if test "$no_recursion" != yes; then
43131
43132 # Remove --cache-file and --srcdir arguments so they do not pile up.
43133 ac_sub_configure_args=
43134 ac_prev=
43135 for ac_arg in $ac_configure_args; do
43136 if test -n "$ac_prev"; then
43137 ac_prev=
43138 continue
43139 fi
43140 case $ac_arg in
43141 -cache-file | --cache-file | --cache-fil | --cache-fi \
43142 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43143 ac_prev=cache_file ;;
43144 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43145 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43146 | --c=*)
43147 ;;
43148 --config-cache | -C)
43149 ;;
43150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43151 ac_prev=srcdir ;;
43152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43153 ;;
43154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43155 ac_prev=prefix ;;
43156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43157 ;;
43158 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43159 esac
43160 done
43161
43162 # Always prepend --prefix to ensure using the same prefix
43163 # in subdir configurations.
43164 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43165
43166 ac_popdir=`pwd`
43167 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43168
43169 # Do not complain, so a configure script can configure whichever
43170 # parts of a large source tree are present.
43171 test -d $srcdir/$ac_dir || continue
43172
43173 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43174echo "$as_me: configuring in $ac_dir" >&6;}
43175 { if $as_mkdir_p; then
43176 mkdir -p "$ac_dir"
43177 else
43178 as_dir="$ac_dir"
43179 as_dirs=
43180 while test ! -d "$as_dir"; do
43181 as_dirs="$as_dir $as_dirs"
43182 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43183$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43184 X"$as_dir" : 'X\(//\)[^/]' \| \
43185 X"$as_dir" : 'X\(//\)$' \| \
43186 X"$as_dir" : 'X\(/\)' \| \
43187 . : '\(.\)' 2>/dev/null ||
43188echo X"$as_dir" |
43189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43191 /^X\(\/\/\)$/{ s//\1/; q; }
43192 /^X\(\/\).*/{ s//\1/; q; }
43193 s/.*/./; q'`
43194 done
43195 test ! -n "$as_dirs" || mkdir $as_dirs
43196 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43197echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43198 { (exit 1); exit 1; }; }; }
43199
43200 ac_builddir=.
43201
43202if test "$ac_dir" != .; then
43203 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43204 # A "../" for each directory in $ac_dir_suffix.
43205 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43206else
43207 ac_dir_suffix= ac_top_builddir=
43208fi
43209
43210case $srcdir in
43211 .) # No --srcdir option. We are building in place.
43212 ac_srcdir=.
43213 if test -z "$ac_top_builddir"; then
43214 ac_top_srcdir=.
43215 else
43216 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43217 fi ;;
43218 [\\/]* | ?:[\\/]* ) # Absolute path.
43219 ac_srcdir=$srcdir$ac_dir_suffix;
43220 ac_top_srcdir=$srcdir ;;
43221 *) # Relative path.
43222 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43223 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43224esac
43225
43226# Do not use `cd foo && pwd` to compute absolute paths, because
43227# the directories may not exist.
43228case `pwd` in
43229.) ac_abs_builddir="$ac_dir";;
43230*)
43231 case "$ac_dir" in
43232 .) ac_abs_builddir=`pwd`;;
43233 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43234 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43235 esac;;
43236esac
43237case $ac_abs_builddir in
43238.) ac_abs_top_builddir=${ac_top_builddir}.;;
43239*)
43240 case ${ac_top_builddir}. in
43241 .) ac_abs_top_builddir=$ac_abs_builddir;;
43242 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43243 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43244 esac;;
43245esac
43246case $ac_abs_builddir in
43247.) ac_abs_srcdir=$ac_srcdir;;
43248*)
43249 case $ac_srcdir in
43250 .) ac_abs_srcdir=$ac_abs_builddir;;
43251 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43252 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43253 esac;;
43254esac
43255case $ac_abs_builddir in
43256.) ac_abs_top_srcdir=$ac_top_srcdir;;
43257*)
43258 case $ac_top_srcdir in
43259 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43260 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43261 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43262 esac;;
43263esac
43264
43265
43266 cd $ac_dir
43267
43268 # Check for guested configure; otherwise get Cygnus style configure.
43269 if test -f $ac_srcdir/configure.gnu; then
43270 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43271 elif test -f $ac_srcdir/configure; then
43272 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43273 elif test -f $ac_srcdir/configure.in; then
43274 ac_sub_configure=$ac_configure
43275 else
43276 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43277echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43278 ac_sub_configure=
43279 fi
43280
43281 # The recursion is here.
43282 if test -n "$ac_sub_configure"; then
43283 # Make the cache file name correct relative to the subdirectory.
43284 case $cache_file in
43285 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43286 *) # Relative path.
43287 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
43288 esac
43289
43290 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43291echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43292 # The eval makes quoting arguments work.
43293 eval $ac_sub_configure $ac_sub_configure_args \
43294 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43295 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
43296echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43297 { (exit 1); exit 1; }; }
43298 fi
43299
dcc1b6ad 43300 cd $ac_popdir
a848cd7e
SC
43301 done
43302fi
43303
43304
43305echo
43306echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
43307echo ""
43308echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
43309echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
43310
43311echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43312echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
43313echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
43314
43315echo " What level of wxWindows compatibility should be enabled?"
43316echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43317echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
43318
43319echo " Which libraries should wxWindows use?"
43320echo " jpeg ${wxUSE_LIBJPEG-none}"
43321echo " png ${wxUSE_LIBPNG-none}"
43322echo " regex ${wxUSE_REGEX}"
43323echo " tiff ${wxUSE_LIBTIFF-none}"
43324if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43325echo " xpm ${wxUSE_LIBXPM-none}"
43326fi
43327echo " zlib ${wxUSE_ZLIB}"
43328echo " odbc ${wxUSE_ODBC}"
43329echo " expat ${wxUSE_EXPAT}"
43330echo " libmspack ${wxUSE_LIBMSPACK}"
43331echo " sdl ${wxUSE_LIBSDL}"
43332
43333echo ""
43334