]> git.saurik.com Git - wxWidgets.git/blame - configure
ActiveX events should be sent to the window, not it's parent.
[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.
8a7b1113 4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.1.
a848cd7e
SC
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
8a7b1113
VZ
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9# Free Software Foundation, Inc.
a848cd7e
SC
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
a848cd7e
SC
26
27# Support unset when possible.
8a7b1113 28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
8a7b1113 47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
a848cd7e
SC
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
8a7b1113 230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
a848cd7e
SC
231
232# Sed expression to map a string onto a valid variable name.
8a7b1113 233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
a848cd7e
SC
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='wxWindows'
271PACKAGE_TARNAME='wxwindows'
272PACKAGE_VERSION='2.5.1'
273PACKAGE_STRING='wxWindows 2.5.1'
274PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276ac_unique_file="wx-config.in"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subdirs_all="$ac_subdirs_all src/expat"
3fd9c298 315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD 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
316ac_subst_files=''
317
318# Initialize some variables set by options.
319ac_init_help=
320ac_init_version=false
321# The variables have the same names as the options, with
322# dashes changed to underlines.
323cache_file=/dev/null
324exec_prefix=NONE
325no_create=
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
334verbose=
335x_includes=NONE
336x_libraries=NONE
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
356ac_prev=
357for ac_option
358do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659fi
660
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
671
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
8a7b1113 674 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
675do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682done
683
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
701
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
706
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a7b1113
VZ
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739fi
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784ac_env_CXXCPP_set=${CXXCPP+set}
785ac_env_CXXCPP_value=$CXXCPP
786ac_cv_env_CXXCPP_set=${CXXCPP+set}
787ac_cv_env_CXXCPP_value=$CXXCPP
788
789#
790# Report the --help message.
791#
792if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
796\`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
797
798Usage: $0 [OPTION]... [VAR=VALUE]...
799
800To assign environment variables (e.g., CC, CFLAGS...), specify them as
801VAR=VALUE. See below for descriptions of some of the useful variables.
802
803Defaults for the options are specified in brackets.
804
805Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815
816_ACEOF
817
818 cat <<_ACEOF
819Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
8a7b1113 821 [$ac_default_prefix]
a848cd7e 822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8a7b1113 823 [PREFIX]
a848cd7e
SC
824
825By default, \`make install' will install all the files in
826\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828for instance \`--prefix=\$HOME'.
829
830For better control, use the options below.
831
832Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845_ACEOF
846
847 cat <<\_ACEOF
848
849X features:
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
852
853System types:
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
857_ACEOF
858fi
859
860if test -n "$ac_init_help"; then
861 case $ac_init_help in
862 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
863 esac
864 cat <<\_ACEOF
865
866Optional Features:
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-gui use GUI classes
870 --enable-monolithic build wxWindows as single library
871 --enable-plugins build parts of wxWindows as loadable components
872 --enable-universal use wxWindows GUI controls instead of native ones
873 --enable-nanox use NanoX
874 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
875 --enable-gpe use GNOME PDA Environment features if possible
876 --enable-shared create shared library code
877 --enable-optimise create optimised code
878 --enable-debug same as debug_flag and debug_info
879 --enable-stl use STL for containers
880 --enable-omf use OMF object format
881 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
882 --enable-debug_info create code with debugging information
883 --enable-debug_gdb create code with extra GDB debugging information
884 --enable-debug_cntxt use wxDebugContext
885 --enable-mem_tracing create code with memory tracing
886 --enable-profile create code with profiling information
887 --enable-no_rtti create code without RTTI information
888 --enable-no_exceptions create code without C++ exceptions handling
889 --enable-permissive compile code disregarding strict ANSI
890 --enable-no_deps create code without dependency information
891 --enable-compat22 enable wxWindows 2.2 compatibility
892 --disable-compat24 disable wxWindows 2.4 compatibility
893 --enable-rpath=DIR output the rpath flag from wx-config
894 --enable-intl use internationalization system
895 --enable-config use wxConfig (and derived) classes
896 --enable-protocols use wxProtocol and derived classes
897 --enable-ftp use wxFTP (requires wxProtocol
898 --enable-http use wxHTTP (requires wxProtocol
899 --enable-fileproto use wxFileProto class (requires wxProtocol
900 --enable-sockets use socket/network classes
901 --enable-ole use OLE classes (Win32 only)
902 --enable-dataobj use data object classes
903 --enable-ipc use interprocess communication (wxSocket etc.)
904 --enable-apple_ieee use the Apple IEEE codec
905 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
906 --enable-cmdline use wxCmdLineParser class
907 --enable-datetime use wxDateTime class
908 --enable-dialupman use dialup network classes
909 --enable-dynlib use wxLibrary class for DLL loading
910 --enable-dynamicloader use (new) wxDynamicLibrary class
911 --enable-exceptions build exception-safe library
912 --enable-ffile use wxFFile class
913 --enable-file use wxFile class
914 --enable-filesystem use virtual file systems classes
915 --enable-fontmap use font encodings conversion classes
916 --enable-fs_inet use virtual HTTP/FTP filesystems
917 --enable-fs_zip use virtual ZIP filesystems
918 --enable-geometry use geometry class
919 --enable-log use logging system
920 --enable-longlong use wxLongLong class
921 --enable-mimetype use wxMimeTypesManager
922 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
923 --enable-snglinst use wxSingleInstanceChecker class
924 --enable-streams use wxStream etc classes
925 --enable-std_iostreams use standard C++ stream classes
926 --enable-stopwatch use wxStopWatch class
927 --enable-sysoptions use wxSystemOptions
928 --enable-textbuf use wxTextBuffer class
929 --enable-textfile use wxTextFile class
930 --enable-timer use wxTimer class
931 --enable-unicode compile wxString with Unicode support
932 --enable-sound use wxSound class
933 --enable-wxprintfv use wxWindows implementation of vprintf()
934 --enable-zipstream use wxZipInputStream
a848cd7e
SC
935 --enable-url use wxURL class
936 --enable-protocol use wxProtocol class
937 --enable-protocol-http HTTP support in wxProtocol
938 --enable-protocol-ftp FTP support in wxProtocol
939 --enable-protocol-file FILE support in wxProtocol
940 --enable-threads use threads
941 --enable-docview use document view architecture
942 --enable-help use help subsystem
943 --enable-mshtmlhelp use MS HTML Help (win32)
944 --enable-html use wxHTML sub-library
945 --enable-htmlhelp use wxHTML-based help
946 --enable-constraints use layout-constraints system
947 --enable-printarch use printing architecture
948 --enable-mdi use multiple document interface architecture
8a7b1113 949 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
950 --enable-loggui use standard GUI logger
951 --enable-logwin use wxLogWindow
952 --enable-logdialog use wxLogDialog
953 --enable-postscript use wxPostscriptDC device context (default for gtk+)
954 --enable-prologio not available; see contrib
955 --enable-resources not available; see contrib
956 --enable-clipboard use wxClipboard class
957 --enable-dnd use Drag'n'Drop classes
958 --enable-metafile use win32 metafiles
959 --enable-controls use all usual controls
960 --enable-accel use accelerators
961 --enable-button use wxButton class
962 --enable-bmpbutton use wxBitmapButton class
963 --enable-calendar use wxCalendarCtrl class
964 --enable-caret use wxCaret class
965 --enable-checkbox use wxCheckBox class
966 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
967 --enable-choice use wxChoice class
968 --enable-combobox use wxComboBox class
969 --enable-display use wxDisplay class
970 --enable-gauge use wxGauge class
971 --enable-grid use wxGrid class
972 --enable-imaglist use wxImageList class
973 --enable-listbook use wxListbook class
974 --enable-listbox use wxListBox class
975 --enable-listctrl use wxListCtrl class
976 --enable-notebook use wxNotebook class
977 --enable-radiobox use wxRadioBox class
978 --enable-radiobtn use wxRadioButton class
979 --enable-sash use wxSashWindow class
980 --enable-scrollbar use wxScrollBar class and scrollable windows
981 --enable-slider use wxSlider class
982 --enable-spinbtn use wxSpinButton class
983 --enable-spinctrl use wxSpinCtrl class
984 --enable-splitter use wxSplitterWindow class
985 --enable-statbmp use wxStaticBitmap class
986 --enable-statbox use wxStaticBox class
987 --enable-statline use wxStaticLine class
988 --enable-stattext use wxStaticText class
989 --enable-statusbar use wxStatusBar class
990 --enable-tabdialog use wxTabControl class
991 --enable-textctrl use wxTextCtrl class
992 --enable-togglebtn use wxToggleButton class
993 --enable-toolbar use wxToolBar class
994 --enable-tbarnative use native wxToolBar class
995 --enable-tbarsmpl use wxToolBarSimple class
996 --enable-treectrl use wxTreeCtrl class
997 --enable-tipwindow use wxTipWindow class
998 --enable-popupwin use wxPopUpWindow class
999 --enable-commondlg use all common dialogs
1000 --enable-choicedlg use wxChoiceDialog
1001 --enable-coldlg use wxColourDialog
1002 --enable-filedlg use wxFileDialog
1003 --enable-finddlg use wxFindReplaceDialog
1004 --enable-fontdlg use wxFontDialog
1005 --enable-dirdlg use wxDirDialog
1006 --enable-msgdlg use wxMessageDialog
1007 --enable-numberdlg use wxNumberEntryDialog
1008 --enable-splash use wxSplashScreen
1009 --enable-textdlg use wxTextDialog
1010 --enable-tipdlg use startup tips
1011 --enable-progressdlg use wxProgressDialog
1012 --enable-wizarddlg use wxWizard
1013 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1014 --enable-miniframe use wxMiniFrame class
1015 --enable-tooltips use wxToolTip class
1016 --enable-splines use spline drawing code
1017 --enable-validators use wxValidator and derived classes
1018 --enable-busyinfo use wxBusyInfo
1019 --enable-joystick use wxJoystick (Linux only)
1020 --enable-metafiles use wxMetaFile (Windows only)
1021 --enable-dragimage use wxDragImage
1022 --enable-accessibility enable accessibility support
1023 --enable-palette use wxPalette class
1024 --enable-image use wxImage class
1025 --enable-gif use gif images (GIF file format)
1026 --enable-pcx use pcx images (PCX file format)
1027 --enable-iff use iff images (IFF file format)
1028 --enable-pnm use pnm images (PNM file format)
1029 --enable-xpm use xpm images (XPM file format)
1030 --enable-icocur use Windows ICO and CUR formats
1031 --enable-official_build official build of wxWindows (win32 DLL only)
1032 --enable-vendor=VENDOR vendor name (win32 DLL only)
1033 --disable-largefile omit support for large files
1034 --disable-gtktest do not try to compile and run a test GTK+ program
1035 --disable-gtktest Do not try to compile and run a test GTK program
1036 --disable-sdltest Do not try to compile and run a test SDL program
1037 --enable-omf use OMF object format (OS/2)
1038 --disable-precomp-headers don't use precompiled headers even if compiler can
1039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gtk use GTK+
1044 --with-motif use Motif/Lesstif
1045 --with-mac use Mac OS X
1046 --with-cocoa use Cocoa
1047 --with-wine use Wine
1048 --with-msw use MS-Windows
1049 --with-pm use OS/2 Presentation Manager
1050 --with-mgl use SciTech MGL
1051 --with-microwin use MicroWindows
1052 --with-x11 use X11
1053 --with-libpng use libpng (PNG image format)
1054 --with-libjpeg use libjpeg (JPEG file format)
1055 --with-libtiff use libtiff (TIFF file format)
1056 --with-libxpm use libxpm (XPM file format)
1057 --with-libmspack use libmspack (CHM help files loading)
1058 --with-sdl use SDL for audio on Unix
1059 --with-opengl use OpenGL (or Mesa)
1060 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1061 --with-regex enable support for wxRegEx class
1062 --with-zlib use zlib for LZW compression
1063 --with-odbc use the IODBC and wxODBC classes
1064 --with-expat enable XML support using expat parser
1065 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1066 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1067 --with-x use the X Window System
1068 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1069 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1070 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1071 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1072 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1073
1074Some influential environment variables:
dcc1b6ad
VS
1075 CC C compiler command
1076 CFLAGS C compiler flags
1077 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1078 nonstandard directory <lib dir>
1079 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1080 headers in a nonstandard directory <include dir>
1081 CPP C preprocessor
1082 CXX C++ compiler command
1083 CXXFLAGS C++ compiler flags
1084 CXXCPP C++ preprocessor
a848cd7e
SC
1085
1086Use these variables to override the choices made by `configure' or to help
1087it to find libraries and programs with nonstandard names/locations.
1088
1089Report bugs to <wx-dev@lists.wxwindows.org>.
1090_ACEOF
1091fi
1092
1093if test "$ac_init_help" = "recursive"; then
1094 # If there are subdirs, report their specific --help.
1095 ac_popdir=`pwd`
1096 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1097 test -d $ac_dir || continue
1098 ac_builddir=.
1099
1100if test "$ac_dir" != .; then
1101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1102 # A "../" for each directory in $ac_dir_suffix.
1103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1104else
1105 ac_dir_suffix= ac_top_builddir=
1106fi
1107
1108case $srcdir in
1109 .) # No --srcdir option. We are building in place.
1110 ac_srcdir=.
1111 if test -z "$ac_top_builddir"; then
1112 ac_top_srcdir=.
1113 else
1114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1115 fi ;;
1116 [\\/]* | ?:[\\/]* ) # Absolute path.
1117 ac_srcdir=$srcdir$ac_dir_suffix;
1118 ac_top_srcdir=$srcdir ;;
1119 *) # Relative path.
1120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1121 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1122esac
8a7b1113
VZ
1123# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1124# absolute.
1125ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1126ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1127ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1128ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a848cd7e
SC
1129
1130 cd $ac_dir
1131 # Check for guested configure; otherwise get Cygnus style configure.
1132 if test -f $ac_srcdir/configure.gnu; then
1133 echo
1134 $SHELL $ac_srcdir/configure.gnu --help=recursive
1135 elif test -f $ac_srcdir/configure; then
1136 echo
1137 $SHELL $ac_srcdir/configure --help=recursive
1138 elif test -f $ac_srcdir/configure.ac ||
8a7b1113 1139 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1140 echo
1141 $ac_configure --help
1142 else
1143 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1144 fi
dcc1b6ad 1145 cd $ac_popdir
a848cd7e
SC
1146 done
1147fi
1148
1149test -n "$ac_init_help" && exit 0
1150if $ac_init_version; then
1151 cat <<\_ACEOF
1152wxWindows configure 2.5.1
8a7b1113 1153generated by GNU Autoconf 2.57
a848cd7e 1154
8a7b1113
VZ
1155Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1156Free Software Foundation, Inc.
a848cd7e
SC
1157This configure script is free software; the Free Software Foundation
1158gives unlimited permission to copy, distribute and modify it.
1159_ACEOF
1160 exit 0
1161fi
1162exec 5>config.log
1163cat >&5 <<_ACEOF
1164This file contains any messages produced by compilers while
1165running configure, to aid debugging if configure makes a mistake.
1166
1167It was created by wxWindows $as_me 2.5.1, which was
8a7b1113 1168generated by GNU Autoconf 2.57. Invocation command line was
a848cd7e
SC
1169
1170 $ $0 $@
1171
1172_ACEOF
1173{
1174cat <<_ASUNAME
1175## --------- ##
1176## Platform. ##
1177## --------- ##
1178
1179hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1180uname -m = `(uname -m) 2>/dev/null || echo unknown`
1181uname -r = `(uname -r) 2>/dev/null || echo unknown`
1182uname -s = `(uname -s) 2>/dev/null || echo unknown`
1183uname -v = `(uname -v) 2>/dev/null || echo unknown`
1184
1185/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1186/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1187
1188/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1189/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1190/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1191hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1192/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1193/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1194/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1195
1196_ASUNAME
1197
1198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1199for as_dir in $PATH
1200do
1201 IFS=$as_save_IFS
1202 test -z "$as_dir" && as_dir=.
1203 echo "PATH: $as_dir"
1204done
1205
1206} >&5
1207
1208cat >&5 <<_ACEOF
1209
1210
1211## ----------- ##
1212## Core tests. ##
1213## ----------- ##
1214
1215_ACEOF
1216
1217
1218# Keep a trace of the command line.
1219# Strip out --no-create and --no-recursion so they do not pile up.
1220# Strip out --silent because we don't want to record it for future runs.
1221# Also quote any args containing shell meta-characters.
1222# Make two passes to allow for proper duplicate-argument suppression.
1223ac_configure_args=
1224ac_configure_args0=
1225ac_configure_args1=
1226ac_sep=
1227ac_must_keep_next=false
1228for ac_pass in 1 2
1229do
1230 for ac_arg
1231 do
1232 case $ac_arg in
1233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 continue ;;
1237 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1238 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1239 esac
1240 case $ac_pass in
1241 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1242 2)
1243 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1244 if test $ac_must_keep_next = true; then
8a7b1113 1245 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1246 else
8a7b1113
VZ
1247 case $ac_arg in
1248 *=* | --config-cache | -C | -disable-* | --disable-* \
1249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1251 | -with-* | --with-* | -without-* | --without-* | --x)
1252 case "$ac_configure_args0 " in
1253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1254 esac
1255 ;;
1256 -* ) ac_must_keep_next=true ;;
1257 esac
a848cd7e
SC
1258 fi
1259 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1260 # Get rid of the leading space.
1261 ac_sep=" "
1262 ;;
1263 esac
1264 done
1265done
1266$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1267$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1268
1269# When interrupted or exit'd, cleanup temporary files, and complete
1270# config.log. We remove comments because anyway the quotes in there
1271# would cause problems or look ugly.
1272# WARNING: Be sure not to use single quotes in there, as some shells,
1273# such as our DU 5.0 friend, will then `close' the trap.
1274trap 'exit_status=$?
1275 # Save into config.log some information that might help in debugging.
1276 {
1277 echo
1278
1279 cat <<\_ASBOX
1280## ---------------- ##
1281## Cache variables. ##
1282## ---------------- ##
1283_ASBOX
1284 echo
1285 # The following way of writing the cache mishandles newlines in values,
1286{
1287 (set) 2>&1 |
1288 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1289 *ac_space=\ *)
1290 sed -n \
8a7b1113
VZ
1291 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1293 ;;
1294 *)
1295 sed -n \
8a7b1113 1296 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1297 ;;
1298 esac;
1299}
1300 echo
1301
1302 cat <<\_ASBOX
1303## ----------------- ##
1304## Output variables. ##
1305## ----------------- ##
1306_ASBOX
1307 echo
1308 for ac_var in $ac_subst_vars
1309 do
1310 eval ac_val=$`echo $ac_var`
1311 echo "$ac_var='"'"'$ac_val'"'"'"
1312 done | sort
1313 echo
1314
1315 if test -n "$ac_subst_files"; then
1316 cat <<\_ASBOX
1317## ------------- ##
1318## Output files. ##
1319## ------------- ##
1320_ASBOX
1321 echo
1322 for ac_var in $ac_subst_files
1323 do
1324 eval ac_val=$`echo $ac_var`
8a7b1113 1325 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1326 done | sort
1327 echo
1328 fi
1329
1330 if test -s confdefs.h; then
1331 cat <<\_ASBOX
1332## ----------- ##
1333## confdefs.h. ##
1334## ----------- ##
1335_ASBOX
1336 echo
1337 sed "/^$/d" confdefs.h | sort
1338 echo
1339 fi
1340 test "$ac_signal" != 0 &&
1341 echo "$as_me: caught signal $ac_signal"
1342 echo "$as_me: exit $exit_status"
1343 } >&5
8a7b1113 1344 rm -f core core.* *.core &&
a848cd7e
SC
1345 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1346 exit $exit_status
1347 ' 0
1348for ac_signal in 1 2 13 15; do
1349 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1350done
1351ac_signal=0
1352
1353# confdefs.h avoids OS command line length limits that DEFS can exceed.
1354rm -rf conftest* confdefs.h
1355# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1356echo >confdefs.h
1357
1358# Predefined preprocessor variables.
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_NAME "$PACKAGE_NAME"
1362_ACEOF
1363
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_VERSION "$PACKAGE_VERSION"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_STRING "$PACKAGE_STRING"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1382_ACEOF
1383
1384
1385# Let the site file select an alternate cache file if it wants to.
1386# Prefer explicitly selected file to automatically selected ones.
1387if test -z "$CONFIG_SITE"; then
1388 if test "x$prefix" != xNONE; then
1389 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1390 else
1391 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1392 fi
1393fi
1394for ac_site_file in $CONFIG_SITE; do
1395 if test -r "$ac_site_file"; then
1396 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1397echo "$as_me: loading site script $ac_site_file" >&6;}
1398 sed 's/^/| /' "$ac_site_file" >&5
1399 . "$ac_site_file"
1400 fi
1401done
1402
1403if test -r "$cache_file"; then
1404 # Some versions of bash will fail to source /dev/null (special
1405 # files actually), so we avoid doing that.
1406 if test -f "$cache_file"; then
1407 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1408echo "$as_me: loading cache $cache_file" >&6;}
1409 case $cache_file in
1410 [\\/]* | ?:[\\/]* ) . $cache_file;;
1411 *) . ./$cache_file;;
1412 esac
1413 fi
1414else
1415 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1416echo "$as_me: creating cache $cache_file" >&6;}
1417 >$cache_file
1418fi
1419
1420# Check that the precious variables saved in the cache have kept the same
1421# value.
1422ac_cache_corrupted=false
1423for ac_var in `(set) 2>&1 |
8a7b1113 1424 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1425 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1426 eval ac_new_set=\$ac_env_${ac_var}_set
1427 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1428 eval ac_new_val="\$ac_env_${ac_var}_value"
1429 case $ac_old_set,$ac_new_set in
1430 set,)
1431 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1432echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1433 ac_cache_corrupted=: ;;
1434 ,set)
1435 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1436echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1437 ac_cache_corrupted=: ;;
1438 ,);;
1439 *)
1440 if test "x$ac_old_val" != "x$ac_new_val"; then
8a7b1113 1441 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1442echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
8a7b1113 1443 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1444echo "$as_me: former value: $ac_old_val" >&2;}
8a7b1113 1445 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1446echo "$as_me: current value: $ac_new_val" >&2;}
8a7b1113 1447 ac_cache_corrupted=:
a848cd7e
SC
1448 fi;;
1449 esac
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1452 case $ac_new_val in
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1456 esac
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460 esac
1461 fi
1462done
1463if $ac_cache_corrupted; then
1464 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1465echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1466 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1467echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1468 { (exit 1); exit 1; }; }
1469fi
1470
1471ac_ext=c
1472ac_cpp='$CPP $CPPFLAGS'
1473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1475ac_compiler_gnu=$ac_cv_c_compiler_gnu
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506ac_aux_dir=
1507for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1508 if test -f $ac_dir/install-sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install-sh -c"
1511 break
1512 elif test -f $ac_dir/install.sh; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/install.sh -c"
1515 break
1516 elif test -f $ac_dir/shtool; then
1517 ac_aux_dir=$ac_dir
1518 ac_install_sh="$ac_aux_dir/shtool install -c"
1519 break
1520 fi
1521done
1522if test -z "$ac_aux_dir"; then
1523 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1524echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1525 { (exit 1); exit 1; }; }
1526fi
1527ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1528ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1529ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1530
1531# Make sure we can run config.sub.
1532$ac_config_sub sun4 >/dev/null 2>&1 ||
1533 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1534echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535 { (exit 1); exit 1; }; }
1536
1537echo "$as_me:$LINENO: checking build system type" >&5
1538echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539if test "${ac_cv_build+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1541else
1542 ac_cv_build_alias=$build_alias
1543test -z "$ac_cv_build_alias" &&
1544 ac_cv_build_alias=`$ac_config_guess`
1545test -z "$ac_cv_build_alias" &&
1546 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1547echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548 { (exit 1); exit 1; }; }
1549ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1550 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1552 { (exit 1); exit 1; }; }
1553
1554fi
1555echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1556echo "${ECHO_T}$ac_cv_build" >&6
1557build=$ac_cv_build
1558build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561
1562
1563echo "$as_me:$LINENO: checking host system type" >&5
1564echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565if test "${ac_cv_host+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 ac_cv_host_alias=$host_alias
1569test -z "$ac_cv_host_alias" &&
1570 ac_cv_host_alias=$ac_cv_build_alias
1571ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1573echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1575
1576fi
1577echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1578echo "${ECHO_T}$ac_cv_host" >&6
1579host=$ac_cv_host
1580host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
1584
1585echo "$as_me:$LINENO: checking target system type" >&5
1586echo $ECHO_N "checking target system type... $ECHO_C" >&6
1587if test "${ac_cv_target+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 ac_cv_target_alias=$target_alias
1591test "x$ac_cv_target_alias" = "x" &&
1592 ac_cv_target_alias=$ac_cv_host_alias
1593ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1594 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1595echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1596 { (exit 1); exit 1; }; }
1597
1598fi
1599echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1600echo "${ECHO_T}$ac_cv_target" >&6
1601target=$ac_cv_target
1602target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1605
1606
1607# The aliases save the names the user supplied, while $host etc.
1608# will get canonicalized.
1609test -n "$target_alias" &&
1610 test "$program_prefix$program_suffix$program_transform_name" = \
1611 NONENONEs,x,x, &&
1612 program_prefix=${target_alias}-
1613
1614
1615
1616WX_MAJOR_VERSION_NUMBER=2
1617WX_MINOR_VERSION_NUMBER=5
1618WX_RELEASE_NUMBER=1
1619
1620WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1621WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1622
1623WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1624
1625WX_CURRENT=1
1626WX_REVISION=0
1627WX_AGE=0
1628
1629
1630
1631USE_UNIX=1
1632USE_OS2=0
1633USE_WIN32=0
1634USE_DOS=0
1635USE_BEOS=0
1636USE_MAC=0
1637
1638USE_AIX=
1639USE_BSD= USE_DARWIN= USE_FREEBSD=
1640USE_GNU= USE_HPUX=
1641USE_LINUX=
1642USE_NETBSD=
1643USE_OPENBSD=
1644USE_OSF= USE_SGI=
1645USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1646USE_ULTRIX=
1647USE_UNIXWARE=
1648
1649USE_ALPHA=
1650
1651NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1652
1653ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1654
1655DEFAULT_wxUSE_COCOA=0
1656DEFAULT_wxUSE_GTK=0
1657DEFAULT_wxUSE_MAC=0
1658DEFAULT_wxUSE_MGL=0
1659DEFAULT_wxUSE_MICROWIN=0
1660DEFAULT_wxUSE_MOTIF=0
1661DEFAULT_wxUSE_MSW=0
1662DEFAULT_wxUSE_PM=0
1663DEFAULT_wxUSE_X11=0
1664
1665DEFAULT_DEFAULT_wxUSE_COCOA=0
1666DEFAULT_DEFAULT_wxUSE_GTK=0
1667DEFAULT_DEFAULT_wxUSE_MAC=0
1668DEFAULT_DEFAULT_wxUSE_MGL=0
1669DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1670DEFAULT_DEFAULT_wxUSE_MOTIF=0
1671DEFAULT_DEFAULT_wxUSE_MSW=0
1672DEFAULT_DEFAULT_wxUSE_PM=0
1673DEFAULT_DEFAULT_wxUSE_X11=0
1674
1675PROGRAM_EXT=
1676SO_SUFFIX=so
1677SAMPLES_RPATH_FLAG=
1678SAMPLES_RPATH_POSTLINK=
1679
1680case "${host}" in
1681 *-hp-hpux* )
1682 USE_HPUX=1
1683 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1684 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1685 SO_SUFFIX=sl
1686 cat >>confdefs.h <<\_ACEOF
1687#define __HPUX__ 1
1688_ACEOF
1689
1690 ;;
1691 *-*-linux* )
1692 USE_LINUX=1
1693 cat >>confdefs.h <<\_ACEOF
1694#define __LINUX__ 1
1695_ACEOF
1696
1697 TMP=`uname -m`
1698 if test "x$TMP" = "xalpha"; then
1699 USE_ALPHA=1
1700 cat >>confdefs.h <<\_ACEOF
1701#define __ALPHA__ 1
1702_ACEOF
1703
1704 fi
1705 DEFAULT_DEFAULT_wxUSE_GTK=1
1706 ;;
1707 *-*-gnu* | *-*-k*bsd*-gnu )
1708 USE_GNU=1
1709 TMP=`uname -m`
1710 if test "x$TMP" = "xalpha"; then
1711 USE_ALPHA=1
1712 cat >>confdefs.h <<\_ACEOF
1713#define __ALPHA__ 1
1714_ACEOF
1715
1716 fi
1717 DEFAULT_DEFAULT_wxUSE_GTK=1
1718 ;;
1719 *-*-irix5* | *-*-irix6* )
1720 USE_SGI=1
1721 USE_SVR4=1
1722 cat >>confdefs.h <<\_ACEOF
1723#define __SGI__ 1
1724_ACEOF
1725
1726 cat >>confdefs.h <<\_ACEOF
1727#define __SVR4__ 1
1728_ACEOF
1729
1730 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1731 ;;
1732 *-*-solaris2* )
1733 USE_SUN=1
1734 USE_SOLARIS=1
1735 USE_SVR4=1
1736 cat >>confdefs.h <<\_ACEOF
1737#define __SUN__ 1
1738_ACEOF
1739
1740 cat >>confdefs.h <<\_ACEOF
1741#define __SOLARIS__ 1
1742_ACEOF
1743
1744 cat >>confdefs.h <<\_ACEOF
1745#define __SVR4__ 1
1746_ACEOF
1747
1748 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1749 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1750 ;;
1751 *-*-sunos4* )
1752 USE_SUN=1
1753 USE_SUNOS=1
1754 USE_BSD=1
1755 cat >>confdefs.h <<\_ACEOF
1756#define __SUN__ 1
1757_ACEOF
1758
1759 cat >>confdefs.h <<\_ACEOF
1760#define __SUNOS__ 1
1761_ACEOF
1762
1763 cat >>confdefs.h <<\_ACEOF
1764#define __BSD__ 1
1765_ACEOF
1766
1767 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1768 ;;
1769 *-*-freebsd*)
1770 USE_BSD=1
1771 USE_FREEBSD=1
1772 cat >>confdefs.h <<\_ACEOF
1773#define __FREEBSD__ 1
1774_ACEOF
1775
1776 cat >>confdefs.h <<\_ACEOF
1777#define __BSD__ 1
1778_ACEOF
1779
1780 DEFAULT_DEFAULT_wxUSE_GTK=1
1781 ;;
1782 *-*-openbsd*)
1783 USE_BSD=1
1784 USE_OPENBSD=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __OPENBSD__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __BSD__ 1
1791_ACEOF
1792
1793 DEFAULT_DEFAULT_wxUSE_GTK=1
1794 ;;
1795 *-*-netbsd*)
1796 USE_BSD=1
1797 USE_NETBSD=1
1798 cat >>confdefs.h <<\_ACEOF
1799#define __NETBSD__ 1
1800_ACEOF
1801
1802 cat >>confdefs.h <<\_ACEOF
1803#define __BSD__ 1
1804_ACEOF
1805
1806 DEFAULT_DEFAULT_wxUSE_GTK=1
1807 ;;
1808 *-*-osf* )
1809 USE_ALPHA=1
1810 USE_OSF=1
1811 cat >>confdefs.h <<\_ACEOF
1812#define __ALPHA__ 1
1813_ACEOF
1814
1815 cat >>confdefs.h <<\_ACEOF
1816#define __OSF__ 1
1817_ACEOF
1818
1819 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1820 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1821 ;;
1822 *-*-dgux5* )
1823 USE_ALPHA=1
1824 USE_SVR4=1
1825 cat >>confdefs.h <<\_ACEOF
1826#define __ALPHA__ 1
1827_ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830#define __SVR4__ 1
1831_ACEOF
1832
1833 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1834 ;;
1835 *-*-sysv5* )
1836 USE_SYSV=1
1837 USE_SVR4=1
1838 cat >>confdefs.h <<\_ACEOF
1839#define __SYSV__ 1
1840_ACEOF
1841
1842 cat >>confdefs.h <<\_ACEOF
1843#define __SVR4__ 1
1844_ACEOF
1845
1846 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1847 ;;
1848 *-*-aix* )
1849 USE_AIX=1
1850 USE_SYSV=1
1851 USE_SVR4=1
1852 SO_SUFFIX=a
1853 cat >>confdefs.h <<\_ACEOF
1854#define __AIX__ 1
1855_ACEOF
1856
1857 cat >>confdefs.h <<\_ACEOF
1858#define __SYSV__ 1
1859_ACEOF
1860
1861 cat >>confdefs.h <<\_ACEOF
1862#define __SVR4__ 1
1863_ACEOF
1864
1865 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1866 ;;
1867
1868 *-*-*UnixWare*)
1869 USE_SYSV=1
1870 USE_SVR4=1
1871 USE_UNIXWARE=1
1872 cat >>confdefs.h <<\_ACEOF
1873#define __UNIXWARE__ 1
1874_ACEOF
1875
1876 ;;
1877
1878 *-*-cygwin* | *-*-mingw32* )
1879 SO_SUFFIX=dll
1880 PROGRAM_EXT=".exe"
1881 RESCOMP=windres
1882 DEFAULT_DEFAULT_wxUSE_MSW=1
1883 ;;
1884
1885 *-pc-msdosdjgpp )
1886 USE_UNIX=0
1887 USE_DOS=1
1888 cat >>confdefs.h <<\_ACEOF
1889#define __DOS__ 1
1890_ACEOF
1891
1892 PROGRAM_EXT=".exe"
1893 DEFAULT_DEFAULT_wxUSE_MGL=1
1894 LIBS="$LIBS -lstdc++"
1895 ;;
1896
1897 *-pc-os2_emx | *-pc-os2-emx )
1898 cat >>confdefs.h <<\_ACEOF
1899#define __EMX__ 1
1900_ACEOF
1901
1902 USE_OS2=1
1903 cat >>confdefs.h <<\_ACEOF
1904#define __OS2__ 1
1905_ACEOF
1906
1907 PROGRAM_EXT=".exe"
1908 DEFAULT_DEFAULT_wxUSE_PM=1
1909 CXX=gcc
1910 LDFLAGS="$LDFLAGS -Zcrtdll"
1911 ac_executable_extensions=".exe"
1912 export ac_executable_extensions
1913 ac_save_IFS="$IFS"
1914 IFS='\\'
1915 ac_TEMP_PATH=
1916 for ac_dir in $PATH; do
1917 IFS=$ac_save_IFS
1918 if test -z "$ac_TEMP_PATH"; then
1919 ac_TEMP_PATH="$ac_dir"
1920 else
1921 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1922 fi
1923 done
1924 export PATH="$ac_TEMP_PATH"
1925 unset ac_TEMP_PATH
1926 ;;
1927
1928 powerpc-*-darwin* )
1929 USE_BSD=1
1930 USE_DARWIN=1
1931 SO_SUFFIX=dylib
1932 cat >>confdefs.h <<\_ACEOF
1933#define __BSD__ 1
1934_ACEOF
1935
1936 cat >>confdefs.h <<\_ACEOF
1937#define __DARWIN__ 1
1938_ACEOF
1939
1940 cat >>confdefs.h <<\_ACEOF
1941#define __POWERPC__ 1
1942_ACEOF
1943
1944 cat >>confdefs.h <<\_ACEOF
1945#define TARGET_CARBON 1
1946_ACEOF
1947
1948 DEFAULT_DEFAULT_wxUSE_MAC=1
1949 ;;
1950
1951 *-*-beos* )
1952 USE_BEOS=1
1953 cat >>confdefs.h <<\_ACEOF
1954#define __BEOS__ 1
1955_ACEOF
1956
1957 ;;
1958
1959 *)
1960 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1961echo "$as_me: error: unknown system type ${host}." >&2;}
1962 { (exit 1); exit 1; }; }
1963esac
1964
1965
1966
1967
1968 wx_arg_cache_file="configarg.cache"
1969 echo "loading argument cache $wx_arg_cache_file"
1970 rm -f ${wx_arg_cache_file}.tmp
1971 touch ${wx_arg_cache_file}.tmp
1972 touch ${wx_arg_cache_file}
1973
1974
1975DEBUG_CONFIGURE=0
1976if test $DEBUG_CONFIGURE = 1; then
1977 DEFAULT_wxUSE_UNIVERSAL=no
1978 DEFAULT_wxUSE_STL=no
1979
1980 DEFAULT_wxUSE_NANOX=no
1981
1982 DEFAULT_wxUSE_THREADS=yes
1983
1984 DEFAULT_wxUSE_SHARED=yes
1985 DEFAULT_wxUSE_OPTIMISE=no
1986 DEFAULT_wxUSE_PROFILE=no
1987 DEFAULT_wxUSE_NO_DEPS=no
1988 DEFAULT_wxUSE_NO_RTTI=no
1989 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1990 DEFAULT_wxUSE_PERMISSIVE=no
1991 DEFAULT_wxUSE_DEBUG_FLAG=yes
1992 DEFAULT_wxUSE_DEBUG_INFO=yes
1993 DEFAULT_wxUSE_DEBUG_GDB=yes
1994 DEFAULT_wxUSE_MEM_TRACING=no
1995 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1996 DEFAULT_wxUSE_DMALLOC=no
1997 DEFAULT_wxUSE_APPLE_IEEE=no
1998
1999 DEFAULT_wxUSE_EXCEPTIONS=no
2000 DEFAULT_wxUSE_LOG=yes
2001 DEFAULT_wxUSE_LOGWINDOW=no
2002 DEFAULT_wxUSE_LOGGUI=no
2003 DEFAULT_wxUSE_LOGDIALOG=no
2004
2005 DEFAULT_wxUSE_GUI=yes
2006 DEFAULT_wxUSE_CONTROLS=no
2007
2008 DEFAULT_wxUSE_REGEX=no
2009 DEFAULT_wxUSE_XML=no
2010 DEFAULT_wxUSE_EXPAT=no
2011 DEFAULT_wxUSE_ZLIB=no
2012 DEFAULT_wxUSE_LIBPNG=no
2013 DEFAULT_wxUSE_LIBJPEG=no
2014 DEFAULT_wxUSE_LIBTIFF=no
2015 DEFAULT_wxUSE_LIBXPM=no
2016 DEFAULT_wxUSE_LIBMSPACK=no
2017 DEFAULT_wxUSE_LIBSDL=no
2018 DEFAULT_wxUSE_ODBC=no
2019 DEFAULT_wxUSE_OPENGL=no
2020
2021 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2022 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2023 DEFAULT_wxUSE_STD_IOSTREAM=no
2024 DEFAULT_wxUSE_CMDLINE_PARSER=no
2025 DEFAULT_wxUSE_DATETIME=no
2026 DEFAULT_wxUSE_TIMER=no
2027 DEFAULT_wxUSE_STOPWATCH=no
2028 DEFAULT_wxUSE_FILE=no
2029 DEFAULT_wxUSE_FFILE=no
2030 DEFAULT_wxUSE_TEXTBUFFER=no
2031 DEFAULT_wxUSE_TEXTFILE=no
2032 DEFAULT_wxUSE_SOUND=no
2033 DEFAULT_wxUSE_INTL=no
2034 DEFAULT_wxUSE_CONFIG=no
2035 DEFAULT_wxUSE_FONTMAP=no
2036 DEFAULT_wxUSE_STREAMS=no
2037 DEFAULT_wxUSE_SOCKETS=no
2038 DEFAULT_wxUSE_OLE=no
2039 DEFAULT_wxUSE_DATAOBJ=no
2040 DEFAULT_wxUSE_DIALUP_MANAGER=no
2041 DEFAULT_wxUSE_JOYSTICK=no
2042 DEFAULT_wxUSE_DYNLIB_CLASS=no
2043 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2044 DEFAULT_wxUSE_LONGLONG=no
2045 DEFAULT_wxUSE_GEOMETRY=no
2046
2047 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2048 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2049 DEFAULT_wxUSE_POSTSCRIPT=no
2050
2051 DEFAULT_wxUSE_CLIPBOARD=no
2052 DEFAULT_wxUSE_TOOLTIPS=no
2053 DEFAULT_wxUSE_DRAG_AND_DROP=no
2054 DEFAULT_wxUSE_DRAGIMAGE=no
2055 DEFAULT_wxUSE_SPLINES=no
2056
8a7b1113 2057 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2058 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2059 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2060 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2061
2062 DEFAULT_wxUSE_RESOURCES=no
2063 DEFAULT_wxUSE_CONSTRAINTS=no
2064 DEFAULT_wxUSE_IPC=no
2065 DEFAULT_wxUSE_HELP=no
2066 DEFAULT_wxUSE_MS_HTML_HELP=no
2067 DEFAULT_wxUSE_WXHTML_HELP=no
2068 DEFAULT_wxUSE_TREELAYOUT=no
2069 DEFAULT_wxUSE_METAFILE=no
2070 DEFAULT_wxUSE_MIMETYPE=no
2071 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2072 DEFAULT_wxUSE_PROTOCOL=no
2073 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2074 DEFAULT_wxUSE_PROTOCOL_FTP=no
2075 DEFAULT_wxUSE_PROTOCOL_FILE=no
2076 DEFAULT_wxUSE_URL=no
2077
2078 DEFAULT_wxUSE_COMMONDLGS=no
2079 DEFAULT_wxUSE_CHOICEDLG=no
2080 DEFAULT_wxUSE_COLOURDLG=no
2081 DEFAULT_wxUSE_DIRDLG=no
2082 DEFAULT_wxUSE_FILEDLG=no
2083 DEFAULT_wxUSE_FINDREPLDLG=no
2084 DEFAULT_wxUSE_FONTDLG=no
2085 DEFAULT_wxUSE_MSGDLG=no
2086 DEFAULT_wxUSE_NUMBERDLG=no
2087 DEFAULT_wxUSE_TEXTDLG=no
2088 DEFAULT_wxUSE_SPLASH=no
2089 DEFAULT_wxUSE_STARTUP_TIPS=no
2090 DEFAULT_wxUSE_PROGRESSDLG=no
2091 DEFAULT_wxUSE_WIZARDDLG=no
2092
2093 DEFAULT_wxUSE_MENUS=no
2094 DEFAULT_wxUSE_MINIFRAME=no
2095 DEFAULT_wxUSE_HTML=no
2096 DEFAULT_wxUSE_FILESYSTEM=no
2097 DEFAULT_wxUSE_FS_INET=no
2098 DEFAULT_wxUSE_FS_ZIP=no
2099 DEFAULT_wxUSE_BUSYINFO=no
2100 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2101 DEFAULT_wxUSE_VALIDATORS=no
2102
2103 DEFAULT_wxUSE_ACCEL=no
2104 DEFAULT_wxUSE_BUTTON=no
2105 DEFAULT_wxUSE_BMPBUTTON=no
2106 DEFAULT_wxUSE_CALCTRL=no
2107 DEFAULT_wxUSE_CARET=no
2108 DEFAULT_wxUSE_CHECKBOX=no
2109 DEFAULT_wxUSE_CHECKLST=no
2110 DEFAULT_wxUSE_CHOICE=no
2111 DEFAULT_wxUSE_COMBOBOX=no
2112 DEFAULT_wxUSE_DISPLAY=no
2113 DEFAULT_wxUSE_GAUGE=no
2114 DEFAULT_wxUSE_GRID=no
2115 DEFAULT_wxUSE_IMAGLIST=no
2116 DEFAULT_wxUSE_LISTBOOK=no
2117 DEFAULT_wxUSE_LISTBOX=no
2118 DEFAULT_wxUSE_LISTCTRL=no
2119 DEFAULT_wxUSE_NOTEBOOK=no
2120 DEFAULT_wxUSE_RADIOBOX=no
2121 DEFAULT_wxUSE_RADIOBTN=no
2122 DEFAULT_wxUSE_SASH=no
2123 DEFAULT_wxUSE_SCROLLBAR=no
2124 DEFAULT_wxUSE_SLIDER=no
2125 DEFAULT_wxUSE_SPINBTN=no
2126 DEFAULT_wxUSE_SPINCTRL=no
2127 DEFAULT_wxUSE_SPLITTER=no
2128 DEFAULT_wxUSE_STATBMP=no
2129 DEFAULT_wxUSE_STATBOX=no
2130 DEFAULT_wxUSE_STATLINE=no
2131 DEFAULT_wxUSE_STATTEXT=no
2132 DEFAULT_wxUSE_STATUSBAR=yes
2133 DEFAULT_wxUSE_TABDIALOG=no
2134 DEFAULT_wxUSE_TEXTCTRL=no
2135 DEFAULT_wxUSE_TOGGLEBTN=no
2136 DEFAULT_wxUSE_TOOLBAR=no
2137 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2138 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2139 DEFAULT_wxUSE_TREECTRL=no
2140 DEFAULT_wxUSE_POPUPWIN=no
2141 DEFAULT_wxUSE_TIPWINDOW=no
2142
2143 DEFAULT_wxUSE_UNICODE=no
2144 DEFAULT_wxUSE_UNICODE_MSLU=no
2145 DEFAULT_wxUSE_WCSRTOMBS=no
2146
2147 DEFAULT_wxUSE_PALETTE=no
2148 DEFAULT_wxUSE_IMAGE=no
2149 DEFAULT_wxUSE_GIF=no
2150 DEFAULT_wxUSE_PCX=no
2151 DEFAULT_wxUSE_PNM=no
2152 DEFAULT_wxUSE_IFF=no
2153 DEFAULT_wxUSE_XPM=no
2154 DEFAULT_wxUSE_ICO_CUR=no
2155 DEFAULT_wxUSE_ACCESSIBILITY=no
2156
2157 DEFAULT_wxUSE_MONOLITHIC=no
2158 DEFAULT_wxUSE_PLUGINS=no
2159 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2160else
2161 DEFAULT_wxUSE_UNIVERSAL=no
2162 DEFAULT_wxUSE_STL=no
2163
2164 DEFAULT_wxUSE_NANOX=no
2165
2166 DEFAULT_wxUSE_THREADS=yes
2167
2168 DEFAULT_wxUSE_SHARED=yes
2169 DEFAULT_wxUSE_OPTIMISE=yes
2170 DEFAULT_wxUSE_PROFILE=no
2171 DEFAULT_wxUSE_NO_DEPS=no
2172 DEFAULT_wxUSE_NO_RTTI=no
2173 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2174 DEFAULT_wxUSE_PERMISSIVE=no
2175 DEFAULT_wxUSE_DEBUG_FLAG=no
2176 DEFAULT_wxUSE_DEBUG_INFO=no
2177 DEFAULT_wxUSE_DEBUG_GDB=no
2178 DEFAULT_wxUSE_MEM_TRACING=no
2179 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2180 DEFAULT_wxUSE_DMALLOC=no
2181 DEFAULT_wxUSE_APPLE_IEEE=yes
2182
2183 DEFAULT_wxUSE_EXCEPTIONS=yes
2184 DEFAULT_wxUSE_LOG=yes
2185 DEFAULT_wxUSE_LOGWINDOW=yes
2186 DEFAULT_wxUSE_LOGGUI=yes
2187 DEFAULT_wxUSE_LOGDIALOG=yes
2188
2189 DEFAULT_wxUSE_GUI=yes
2190
2191 DEFAULT_wxUSE_REGEX=yes
2192 DEFAULT_wxUSE_XML=yes
2193 DEFAULT_wxUSE_EXPAT=yes
2194 DEFAULT_wxUSE_ZLIB=yes
2195 DEFAULT_wxUSE_LIBPNG=yes
2196 DEFAULT_wxUSE_LIBJPEG=yes
2197 DEFAULT_wxUSE_LIBTIFF=yes
2198 DEFAULT_wxUSE_LIBXPM=yes
2199 DEFAULT_wxUSE_LIBMSPACK=yes
2200 DEFAULT_wxUSE_LIBSDL=no
2201 DEFAULT_wxUSE_ODBC=no
2202 DEFAULT_wxUSE_OPENGL=no
2203
2204 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2205 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2206 DEFAULT_wxUSE_STD_IOSTREAM=no
2207 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2208 DEFAULT_wxUSE_DATETIME=yes
2209 DEFAULT_wxUSE_TIMER=yes
2210 DEFAULT_wxUSE_STOPWATCH=yes
2211 DEFAULT_wxUSE_FILE=yes
2212 DEFAULT_wxUSE_FFILE=yes
2213 DEFAULT_wxUSE_TEXTBUFFER=yes
2214 DEFAULT_wxUSE_TEXTFILE=yes
2215 DEFAULT_wxUSE_SOUND=yes
2216 DEFAULT_wxUSE_INTL=yes
2217 DEFAULT_wxUSE_CONFIG=yes
2218 DEFAULT_wxUSE_FONTMAP=yes
2219 DEFAULT_wxUSE_STREAMS=yes
2220 DEFAULT_wxUSE_SOCKETS=yes
2221 DEFAULT_wxUSE_OLE=yes
2222 DEFAULT_wxUSE_DATAOBJ=yes
2223 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2224 DEFAULT_wxUSE_JOYSTICK=yes
2225 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2226 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2227 DEFAULT_wxUSE_LONGLONG=yes
2228 DEFAULT_wxUSE_GEOMETRY=yes
2229
2230 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2231 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2232 DEFAULT_wxUSE_POSTSCRIPT=yes
2233
2234 DEFAULT_wxUSE_CLIPBOARD=yes
2235 DEFAULT_wxUSE_TOOLTIPS=yes
2236 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2237 DEFAULT_wxUSE_DRAGIMAGE=yes
2238 DEFAULT_wxUSE_SPLINES=yes
2239
8a7b1113 2240 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2241 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2242 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2243 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2244
2245 DEFAULT_wxUSE_RESOURCES=no
2246 DEFAULT_wxUSE_CONSTRAINTS=yes
2247 DEFAULT_wxUSE_IPC=yes
2248 DEFAULT_wxUSE_HELP=yes
2249 DEFAULT_wxUSE_MS_HTML_HELP=yes
2250 DEFAULT_wxUSE_WXHTML_HELP=yes
2251 DEFAULT_wxUSE_TREELAYOUT=yes
2252 DEFAULT_wxUSE_METAFILE=yes
2253 DEFAULT_wxUSE_MIMETYPE=yes
2254 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2255 DEFAULT_wxUSE_PROTOCOL=yes
2256 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2257 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2258 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2259 DEFAULT_wxUSE_URL=yes
2260
2261 DEFAULT_wxUSE_COMMONDLGS=yes
2262 DEFAULT_wxUSE_CHOICEDLG=yes
2263 DEFAULT_wxUSE_COLOURDLG=yes
2264 DEFAULT_wxUSE_DIRDLG=yes
2265 DEFAULT_wxUSE_FILEDLG=yes
2266 DEFAULT_wxUSE_FINDREPLDLG=yes
2267 DEFAULT_wxUSE_FONTDLG=yes
2268 DEFAULT_wxUSE_MSGDLG=yes
2269 DEFAULT_wxUSE_NUMBERDLG=yes
2270 DEFAULT_wxUSE_TEXTDLG=yes
2271 DEFAULT_wxUSE_SPLASH=yes
2272 DEFAULT_wxUSE_STARTUP_TIPS=yes
2273 DEFAULT_wxUSE_PROGRESSDLG=yes
2274 DEFAULT_wxUSE_WIZARDDLG=yes
2275
2276 DEFAULT_wxUSE_MENUS=yes
2277 DEFAULT_wxUSE_MINIFRAME=yes
2278 DEFAULT_wxUSE_HTML=yes
2279 DEFAULT_wxUSE_FILESYSTEM=yes
2280 DEFAULT_wxUSE_FS_INET=yes
2281 DEFAULT_wxUSE_FS_ZIP=yes
2282 DEFAULT_wxUSE_BUSYINFO=yes
2283 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2284 DEFAULT_wxUSE_VALIDATORS=yes
2285
2286 DEFAULT_wxUSE_ACCEL=yes
2287 DEFAULT_wxUSE_BUTTON=yes
2288 DEFAULT_wxUSE_BMPBUTTON=yes
2289 DEFAULT_wxUSE_CALCTRL=yes
2290 DEFAULT_wxUSE_CARET=yes
2291 DEFAULT_wxUSE_CHECKBOX=yes
2292 DEFAULT_wxUSE_CHECKLST=yes
2293 DEFAULT_wxUSE_CHOICE=yes
2294 DEFAULT_wxUSE_COMBOBOX=yes
2295 DEFAULT_wxUSE_DISPLAY=yes
2296 DEFAULT_wxUSE_GAUGE=yes
2297 DEFAULT_wxUSE_GRID=yes
2298 DEFAULT_wxUSE_IMAGLIST=yes
2299 DEFAULT_wxUSE_LISTBOOK=yes
2300 DEFAULT_wxUSE_LISTBOX=yes
2301 DEFAULT_wxUSE_LISTCTRL=yes
2302 DEFAULT_wxUSE_NOTEBOOK=yes
2303 DEFAULT_wxUSE_RADIOBOX=yes
2304 DEFAULT_wxUSE_RADIOBTN=yes
2305 DEFAULT_wxUSE_SASH=yes
2306 DEFAULT_wxUSE_SCROLLBAR=yes
2307 DEFAULT_wxUSE_SLIDER=yes
2308 DEFAULT_wxUSE_SPINBTN=yes
2309 DEFAULT_wxUSE_SPINCTRL=yes
2310 DEFAULT_wxUSE_SPLITTER=yes
2311 DEFAULT_wxUSE_STATBMP=yes
2312 DEFAULT_wxUSE_STATBOX=yes
2313 DEFAULT_wxUSE_STATLINE=yes
2314 DEFAULT_wxUSE_STATTEXT=yes
2315 DEFAULT_wxUSE_STATUSBAR=yes
2316 DEFAULT_wxUSE_TABDIALOG=no
2317 DEFAULT_wxUSE_TEXTCTRL=yes
2318 DEFAULT_wxUSE_TOGGLEBTN=yes
2319 DEFAULT_wxUSE_TOOLBAR=yes
2320 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2321 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2322 DEFAULT_wxUSE_TREECTRL=yes
2323 DEFAULT_wxUSE_POPUPWIN=yes
2324 DEFAULT_wxUSE_TIPWINDOW=yes
2325
2326 DEFAULT_wxUSE_UNICODE=no
2327 DEFAULT_wxUSE_UNICODE_MSLU=yes
2328 DEFAULT_wxUSE_WCSRTOMBS=no
2329
2330 DEFAULT_wxUSE_PALETTE=yes
2331 DEFAULT_wxUSE_IMAGE=yes
2332 DEFAULT_wxUSE_GIF=yes
2333 DEFAULT_wxUSE_PCX=yes
2334 DEFAULT_wxUSE_IFF=no
2335 DEFAULT_wxUSE_PNM=yes
2336 DEFAULT_wxUSE_XPM=yes
2337 DEFAULT_wxUSE_ICO_CUR=yes
2338 DEFAULT_wxUSE_ACCESSIBILITY=no
2339
2340 DEFAULT_wxUSE_MONOLITHIC=no
2341 DEFAULT_wxUSE_PLUGINS=no
2342 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2343fi
2344
2345
2346
2347for toolkit in `echo $ALL_TOOLKITS`; do
2348 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2349 if test "x$LINE" != "x" ; then
2350 has_toolkit_in_cache=1
2351 eval "DEFAULT_$LINE"
2352 eval "CACHE_$toolkit=1"
2353 fi
2354done
2355
2356
2357
2358 enablestring=
2359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2360echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2361 no_cache=0
2362 # Check whether --enable-gui or --disable-gui was given.
2363if test "${enable_gui+set}" = set; then
2364 enableval="$enable_gui"
2365
2366 if test "$enableval" = yes; then
2367 ac_cv_use_gui='wxUSE_GUI=yes'
2368 else
2369 ac_cv_use_gui='wxUSE_GUI=no'
2370 fi
2371
2372else
2373
2374 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2375 if test "x$LINE" != x ; then
2376 eval "DEFAULT_$LINE"
2377 else
2378 no_cache=1
2379 fi
2380
2381 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2382
2383fi;
2384
2385 eval "$ac_cv_use_gui"
2386 if test "$no_cache" != 1; then
2387 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2388 fi
2389
2390 if test "$wxUSE_GUI" = yes; then
2391 echo "$as_me:$LINENO: result: yes" >&5
2392echo "${ECHO_T}yes" >&6
2393 else
2394 echo "$as_me:$LINENO: result: no" >&5
2395echo "${ECHO_T}no" >&6
2396 fi
2397
2398
2399 enablestring=
2400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2401echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2402 no_cache=0
2403 # Check whether --enable-monolithic or --disable-monolithic was given.
2404if test "${enable_monolithic+set}" = set; then
2405 enableval="$enable_monolithic"
2406
2407 if test "$enableval" = yes; then
2408 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2409 else
2410 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2411 fi
2412
2413else
2414
2415 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2416 if test "x$LINE" != x ; then
2417 eval "DEFAULT_$LINE"
2418 else
2419 no_cache=1
2420 fi
2421
2422 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2423
2424fi;
2425
2426 eval "$ac_cv_use_monolithic"
2427 if test "$no_cache" != 1; then
2428 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2429 fi
2430
2431 if test "$wxUSE_MONOLITHIC" = yes; then
2432 echo "$as_me:$LINENO: result: yes" >&5
2433echo "${ECHO_T}yes" >&6
2434 else
2435 echo "$as_me:$LINENO: result: no" >&5
2436echo "${ECHO_T}no" >&6
2437 fi
2438
2439
2440 enablestring=
2441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2442echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2443 no_cache=0
2444 # Check whether --enable-plugins or --disable-plugins was given.
2445if test "${enable_plugins+set}" = set; then
2446 enableval="$enable_plugins"
2447
2448 if test "$enableval" = yes; then
2449 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2450 else
2451 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2452 fi
2453
2454else
2455
2456 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2457 if test "x$LINE" != x ; then
2458 eval "DEFAULT_$LINE"
2459 else
2460 no_cache=1
2461 fi
2462
2463 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2464
2465fi;
2466
2467 eval "$ac_cv_use_plugins"
2468 if test "$no_cache" != 1; then
2469 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2470 fi
2471
2472 if test "$wxUSE_PLUGINS" = yes; then
2473 echo "$as_me:$LINENO: result: yes" >&5
2474echo "${ECHO_T}yes" >&6
2475 else
2476 echo "$as_me:$LINENO: result: no" >&5
2477echo "${ECHO_T}no" >&6
2478 fi
2479
2480
2481if test "$wxUSE_GUI" = "yes"; then
2482
2483
2484 enablestring=
2485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2486echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2487 no_cache=0
2488 # Check whether --enable-universal or --disable-universal was given.
2489if test "${enable_universal+set}" = set; then
2490 enableval="$enable_universal"
2491
2492 if test "$enableval" = yes; then
2493 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2494 else
2495 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2496 fi
2497
2498else
2499
2500 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2501 if test "x$LINE" != x ; then
2502 eval "DEFAULT_$LINE"
2503 else
2504 no_cache=1
2505 fi
2506
2507 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2508
2509fi;
2510
2511 eval "$ac_cv_use_universal"
2512 if test "$no_cache" != 1; then
2513 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2514 fi
2515
2516 if test "$wxUSE_UNIVERSAL" = yes; then
2517 echo "$as_me:$LINENO: result: yes" >&5
2518echo "${ECHO_T}yes" >&6
2519 else
2520 echo "$as_me:$LINENO: result: no" >&5
2521echo "${ECHO_T}no" >&6
2522 fi
2523
2524
2525# Check whether --with-gtk or --without-gtk was given.
2526if test "${with_gtk+set}" = set; then
2527 withval="$with_gtk"
2528 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2529fi;
2530
2531# Check whether --with-motif or --without-motif was given.
2532if test "${with_motif+set}" = set; then
2533 withval="$with_motif"
2534 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2535fi;
2536
2537# Check whether --with-mac or --without-mac was given.
2538if test "${with_mac+set}" = set; then
2539 withval="$with_mac"
2540 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2541fi;
2542
2543# Check whether --with-cocoa or --without-cocoa was given.
2544if test "${with_cocoa+set}" = set; then
2545 withval="$with_cocoa"
2546 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2547fi;
2548
2549# Check whether --with-wine or --without-wine was given.
2550if test "${with_wine+set}" = set; then
2551 withval="$with_wine"
2552 wxUSE_WINE="$withval" CACHE_WINE=1
2553fi;
2554
2555# Check whether --with-msw or --without-msw was given.
2556if test "${with_msw+set}" = set; then
2557 withval="$with_msw"
2558 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2559fi;
2560
2561# Check whether --with-pm or --without-pm was given.
2562if test "${with_pm+set}" = set; then
2563 withval="$with_pm"
2564 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2565fi;
2566
2567# Check whether --with-mgl or --without-mgl was given.
2568if test "${with_mgl+set}" = set; then
2569 withval="$with_mgl"
2570 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2571fi;
2572
2573# Check whether --with-microwin or --without-microwin was given.
2574if test "${with_microwin+set}" = set; then
2575 withval="$with_microwin"
2576 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2577fi;
2578
2579# Check whether --with-x11 or --without-x11 was given.
2580if test "${with_x11+set}" = set; then
2581 withval="$with_x11"
2582 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2583fi;
2584
2585 enablestring=
2586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2587echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2588 no_cache=0
2589 # Check whether --enable-nanox or --disable-nanox was given.
2590if test "${enable_nanox+set}" = set; then
2591 enableval="$enable_nanox"
2592
2593 if test "$enableval" = yes; then
2594 ac_cv_use_nanox='wxUSE_NANOX=yes'
2595 else
2596 ac_cv_use_nanox='wxUSE_NANOX=no'
2597 fi
2598
2599else
2600
2601 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2602 if test "x$LINE" != x ; then
2603 eval "DEFAULT_$LINE"
2604 else
2605 no_cache=1
2606 fi
2607
2608 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2609
2610fi;
2611
2612 eval "$ac_cv_use_nanox"
2613 if test "$no_cache" != 1; then
2614 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2615 fi
2616
2617 if test "$wxUSE_NANOX" = yes; then
2618 echo "$as_me:$LINENO: result: yes" >&5
2619echo "${ECHO_T}yes" >&6
2620 else
2621 echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6
2623 fi
2624
2625
2626
2627 enablestring=
2628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2629echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2630 no_cache=0
2631 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2632if test "${enable_gtk2+set}" = set; then
2633 enableval="$enable_gtk2"
2634
2635 if test "$enableval" = yes; then
2636 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2637 else
2638 ac_cv_use_gtk2='wxUSE_GTK2=no'
2639 fi
2640
2641else
2642
2643 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2644 if test "x$LINE" != x ; then
2645 eval "DEFAULT_$LINE"
2646 else
2647 no_cache=1
2648 fi
2649
2650 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2651
2652fi;
2653
2654 eval "$ac_cv_use_gtk2"
2655 if test "$no_cache" != 1; then
2656 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2657 fi
2658
2659 if test "$wxUSE_GTK2" = yes; then
2660 echo "$as_me:$LINENO: result: yes" >&5
2661echo "${ECHO_T}yes" >&6
2662 else
2663 echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6
2665 fi
2666
2667
2668 enablestring=
2669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2670echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2671 no_cache=0
2672 # Check whether --enable-gpe or --disable-gpe was given.
2673if test "${enable_gpe+set}" = set; then
2674 enableval="$enable_gpe"
2675
2676 if test "$enableval" = yes; then
2677 ac_cv_use_gpe='wxUSE_GPE=yes'
2678 else
2679 ac_cv_use_gpe='wxUSE_GPE=no'
2680 fi
2681
2682else
2683
2684 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2685 if test "x$LINE" != x ; then
2686 eval "DEFAULT_$LINE"
2687 else
2688 no_cache=1
2689 fi
2690
2691 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2692
2693fi;
2694
2695 eval "$ac_cv_use_gpe"
2696 if test "$no_cache" != 1; then
2697 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2698 fi
2699
2700 if test "$wxUSE_GPE" = yes; then
2701 echo "$as_me:$LINENO: result: yes" >&5
2702echo "${ECHO_T}yes" >&6
2703 else
2704 echo "$as_me:$LINENO: result: no" >&5
2705echo "${ECHO_T}no" >&6
2706 fi
2707
2708
2709
2710 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2711echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2712 no_cache=0
2713
2714# Check whether --with-libpng or --without-libpng was given.
2715if test "${with_libpng+set}" = set; then
2716 withval="$with_libpng"
2717
2718 if test "$withval" = yes; then
2719 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2720 elif test "$withval" = no; then
2721 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2722 elif test "$withval" = sys; then
2723 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2724 elif test "$withval" = builtin; then
2725 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2726 else
2727 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2728echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2729 { (exit 1); exit 1; }; }
2730 fi
2731
2732else
2733
2734 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2735 if test "x$LINE" != x ; then
2736 eval "DEFAULT_$LINE"
2737 else
2738 no_cache=1
2739 fi
2740
2741 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2742
2743fi;
2744
2745 eval "$ac_cv_use_libpng"
2746 if test "$no_cache" != 1; then
2747 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2748 fi
2749
2750 if test "$wxUSE_LIBPNG" = yes; then
2751 echo "$as_me:$LINENO: result: yes" >&5
2752echo "${ECHO_T}yes" >&6
2753 elif test "$wxUSE_LIBPNG" = no; then
2754 echo "$as_me:$LINENO: result: no" >&5
2755echo "${ECHO_T}no" >&6
2756 elif test "$wxUSE_LIBPNG" = sys; then
2757 echo "$as_me:$LINENO: result: system version" >&5
2758echo "${ECHO_T}system version" >&6
2759 elif test "$wxUSE_LIBPNG" = builtin; then
2760 echo "$as_me:$LINENO: result: builtin version" >&5
2761echo "${ECHO_T}builtin version" >&6
2762 else
2763 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2764echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2765 { (exit 1); exit 1; }; }
2766 fi
2767
2768
2769 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2770echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2771 no_cache=0
2772
2773# Check whether --with-libjpeg or --without-libjpeg was given.
2774if test "${with_libjpeg+set}" = set; then
2775 withval="$with_libjpeg"
2776
2777 if test "$withval" = yes; then
2778 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2779 elif test "$withval" = no; then
2780 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2781 elif test "$withval" = sys; then
2782 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2783 elif test "$withval" = builtin; then
2784 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2785 else
2786 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2787echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2788 { (exit 1); exit 1; }; }
2789 fi
2790
2791else
2792
2793 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2794 if test "x$LINE" != x ; then
2795 eval "DEFAULT_$LINE"
2796 else
2797 no_cache=1
2798 fi
2799
2800 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2801
2802fi;
2803
2804 eval "$ac_cv_use_libjpeg"
2805 if test "$no_cache" != 1; then
2806 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2807 fi
2808
2809 if test "$wxUSE_LIBJPEG" = yes; then
2810 echo "$as_me:$LINENO: result: yes" >&5
2811echo "${ECHO_T}yes" >&6
2812 elif test "$wxUSE_LIBJPEG" = no; then
2813 echo "$as_me:$LINENO: result: no" >&5
2814echo "${ECHO_T}no" >&6
2815 elif test "$wxUSE_LIBJPEG" = sys; then
2816 echo "$as_me:$LINENO: result: system version" >&5
2817echo "${ECHO_T}system version" >&6
2818 elif test "$wxUSE_LIBJPEG" = builtin; then
2819 echo "$as_me:$LINENO: result: builtin version" >&5
2820echo "${ECHO_T}builtin version" >&6
2821 else
2822 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2823echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2824 { (exit 1); exit 1; }; }
2825 fi
2826
2827
2828 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2829echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2830 no_cache=0
2831
2832# Check whether --with-libtiff or --without-libtiff was given.
2833if test "${with_libtiff+set}" = set; then
2834 withval="$with_libtiff"
2835
2836 if test "$withval" = yes; then
2837 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2838 elif test "$withval" = no; then
2839 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2840 elif test "$withval" = sys; then
2841 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2842 elif test "$withval" = builtin; then
2843 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2844 else
2845 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2846echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2847 { (exit 1); exit 1; }; }
2848 fi
2849
2850else
2851
2852 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2853 if test "x$LINE" != x ; then
2854 eval "DEFAULT_$LINE"
2855 else
2856 no_cache=1
2857 fi
2858
2859 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2860
2861fi;
2862
2863 eval "$ac_cv_use_libtiff"
2864 if test "$no_cache" != 1; then
2865 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2866 fi
2867
2868 if test "$wxUSE_LIBTIFF" = yes; then
2869 echo "$as_me:$LINENO: result: yes" >&5
2870echo "${ECHO_T}yes" >&6
2871 elif test "$wxUSE_LIBTIFF" = no; then
2872 echo "$as_me:$LINENO: result: no" >&5
2873echo "${ECHO_T}no" >&6
2874 elif test "$wxUSE_LIBTIFF" = sys; then
2875 echo "$as_me:$LINENO: result: system version" >&5
2876echo "${ECHO_T}system version" >&6
2877 elif test "$wxUSE_LIBTIFF" = builtin; then
2878 echo "$as_me:$LINENO: result: builtin version" >&5
2879echo "${ECHO_T}builtin version" >&6
2880 else
2881 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2882echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2883 { (exit 1); exit 1; }; }
2884 fi
2885
2886
2887 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2888echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2889 no_cache=0
2890
2891# Check whether --with-libxpm or --without-libxpm was given.
2892if test "${with_libxpm+set}" = set; then
2893 withval="$with_libxpm"
2894
2895 if test "$withval" = yes; then
2896 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2897 elif test "$withval" = no; then
2898 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2899 elif test "$withval" = sys; then
2900 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2901 elif test "$withval" = builtin; then
2902 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2903 else
2904 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2905echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2906 { (exit 1); exit 1; }; }
2907 fi
2908
2909else
2910
2911 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2912 if test "x$LINE" != x ; then
2913 eval "DEFAULT_$LINE"
2914 else
2915 no_cache=1
2916 fi
2917
2918 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2919
2920fi;
2921
2922 eval "$ac_cv_use_libxpm"
2923 if test "$no_cache" != 1; then
2924 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2925 fi
2926
2927 if test "$wxUSE_LIBXPM" = yes; then
2928 echo "$as_me:$LINENO: result: yes" >&5
2929echo "${ECHO_T}yes" >&6
2930 elif test "$wxUSE_LIBXPM" = no; then
2931 echo "$as_me:$LINENO: result: no" >&5
2932echo "${ECHO_T}no" >&6
2933 elif test "$wxUSE_LIBXPM" = sys; then
2934 echo "$as_me:$LINENO: result: system version" >&5
2935echo "${ECHO_T}system version" >&6
2936 elif test "$wxUSE_LIBXPM" = builtin; then
2937 echo "$as_me:$LINENO: result: builtin version" >&5
2938echo "${ECHO_T}builtin version" >&6
2939 else
2940 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2941echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2942 { (exit 1); exit 1; }; }
2943 fi
2944
2945
2946 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2947echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2948 no_cache=0
2949
2950# Check whether --with-libmspack or --without-libmspack was given.
2951if test "${with_libmspack+set}" = set; then
2952 withval="$with_libmspack"
2953
2954 if test "$withval" = yes; then
2955 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2956 else
2957 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2958 fi
2959
2960else
2961
2962 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2963 if test "x$LINE" != x ; then
2964 eval "DEFAULT_$LINE"
2965 else
2966 no_cache=1
2967 fi
2968
2969 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2970
2971fi;
2972
2973 eval "$ac_cv_use_libmspack"
2974 if test "$no_cache" != 1; then
2975 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2976 fi
2977
2978 if test "$wxUSE_LIBMSPACK" = yes; then
2979 echo "$as_me:$LINENO: result: yes" >&5
2980echo "${ECHO_T}yes" >&6
2981 else
2982 echo "$as_me:$LINENO: result: no" >&5
2983echo "${ECHO_T}no" >&6
2984 fi
2985
2986
2987 echo "$as_me:$LINENO: checking for --with-sdl" >&5
2988echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
2989 no_cache=0
2990
2991# Check whether --with-sdl or --without-sdl was given.
2992if test "${with_sdl+set}" = set; then
2993 withval="$with_sdl"
2994
2995 if test "$withval" = yes; then
2996 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
2997 else
2998 ac_cv_use_sdl='wxUSE_LIBSDL=no'
2999 fi
3000
3001else
3002
3003 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3004 if test "x$LINE" != x ; then
3005 eval "DEFAULT_$LINE"
3006 else
3007 no_cache=1
3008 fi
3009
3010 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3011
3012fi;
3013
3014 eval "$ac_cv_use_sdl"
3015 if test "$no_cache" != 1; then
3016 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3017 fi
3018
3019 if test "$wxUSE_LIBSDL" = yes; then
3020 echo "$as_me:$LINENO: result: yes" >&5
3021echo "${ECHO_T}yes" >&6
3022 else
3023 echo "$as_me:$LINENO: result: no" >&5
3024echo "${ECHO_T}no" >&6
3025 fi
3026
3027
3028 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3029echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3030 no_cache=0
3031
3032# Check whether --with-opengl or --without-opengl was given.
3033if test "${with_opengl+set}" = set; then
3034 withval="$with_opengl"
3035
3036 if test "$withval" = yes; then
3037 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3038 else
3039 ac_cv_use_opengl='wxUSE_OPENGL=no'
3040 fi
3041
3042else
3043
3044 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3045 if test "x$LINE" != x ; then
3046 eval "DEFAULT_$LINE"
3047 else
3048 no_cache=1
3049 fi
3050
3051 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3052
3053fi;
3054
3055 eval "$ac_cv_use_opengl"
3056 if test "$no_cache" != 1; then
3057 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3058 fi
3059
3060 if test "$wxUSE_OPENGL" = yes; then
3061 echo "$as_me:$LINENO: result: yes" >&5
3062echo "${ECHO_T}yes" >&6
3063 else
3064 echo "$as_me:$LINENO: result: no" >&5
3065echo "${ECHO_T}no" >&6
3066 fi
3067
3068
3069fi
3070
3071
3072 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3073echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3074 no_cache=0
3075
3076# Check whether --with-dmalloc or --without-dmalloc was given.
3077if test "${with_dmalloc+set}" = set; then
3078 withval="$with_dmalloc"
3079
3080 if test "$withval" = yes; then
3081 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3082 else
3083 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3084 fi
3085
3086else
3087
3088 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3089 if test "x$LINE" != x ; then
3090 eval "DEFAULT_$LINE"
3091 else
3092 no_cache=1
3093 fi
3094
3095 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3096
3097fi;
3098
3099 eval "$ac_cv_use_dmalloc"
3100 if test "$no_cache" != 1; then
3101 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3102 fi
3103
3104 if test "$wxUSE_DMALLOC" = yes; then
3105 echo "$as_me:$LINENO: result: yes" >&5
3106echo "${ECHO_T}yes" >&6
3107 else
3108 echo "$as_me:$LINENO: result: no" >&5
3109echo "${ECHO_T}no" >&6
3110 fi
3111
3112
3113 echo "$as_me:$LINENO: checking for --with-regex" >&5
3114echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3115 no_cache=0
3116
3117# Check whether --with-regex or --without-regex was given.
3118if test "${with_regex+set}" = set; then
3119 withval="$with_regex"
3120
3121 if test "$withval" = yes; then
3122 ac_cv_use_regex='wxUSE_REGEX=yes'
3123 elif test "$withval" = no; then
3124 ac_cv_use_regex='wxUSE_REGEX=no'
3125 elif test "$withval" = sys; then
3126 ac_cv_use_regex='wxUSE_REGEX=sys'
3127 elif test "$withval" = builtin; then
3128 ac_cv_use_regex='wxUSE_REGEX=builtin'
3129 else
3130 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3131echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3132 { (exit 1); exit 1; }; }
3133 fi
3134
3135else
3136
3137 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3145
3146fi;
3147
3148 eval "$ac_cv_use_regex"
3149 if test "$no_cache" != 1; then
3150 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3151 fi
3152
3153 if test "$wxUSE_REGEX" = yes; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155echo "${ECHO_T}yes" >&6
3156 elif test "$wxUSE_REGEX" = no; then
3157 echo "$as_me:$LINENO: result: no" >&5
3158echo "${ECHO_T}no" >&6
3159 elif test "$wxUSE_REGEX" = sys; then
3160 echo "$as_me:$LINENO: result: system version" >&5
3161echo "${ECHO_T}system version" >&6
3162 elif test "$wxUSE_REGEX" = builtin; then
3163 echo "$as_me:$LINENO: result: builtin version" >&5
3164echo "${ECHO_T}builtin version" >&6
3165 else
3166 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3167echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3168 { (exit 1); exit 1; }; }
3169 fi
3170
3171
3172 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3173echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3174 no_cache=0
3175
3176# Check whether --with-zlib or --without-zlib was given.
3177if test "${with_zlib+set}" = set; then
3178 withval="$with_zlib"
3179
3180 if test "$withval" = yes; then
3181 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3182 elif test "$withval" = no; then
3183 ac_cv_use_zlib='wxUSE_ZLIB=no'
3184 elif test "$withval" = sys; then
3185 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3186 elif test "$withval" = builtin; then
3187 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3188 else
3189 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3190echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3191 { (exit 1); exit 1; }; }
3192 fi
3193
3194else
3195
3196 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3197 if test "x$LINE" != x ; then
3198 eval "DEFAULT_$LINE"
3199 else
3200 no_cache=1
3201 fi
3202
3203 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3204
3205fi;
3206
3207 eval "$ac_cv_use_zlib"
3208 if test "$no_cache" != 1; then
3209 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3210 fi
3211
3212 if test "$wxUSE_ZLIB" = yes; then
3213 echo "$as_me:$LINENO: result: yes" >&5
3214echo "${ECHO_T}yes" >&6
3215 elif test "$wxUSE_ZLIB" = no; then
3216 echo "$as_me:$LINENO: result: no" >&5
3217echo "${ECHO_T}no" >&6
3218 elif test "$wxUSE_ZLIB" = sys; then
3219 echo "$as_me:$LINENO: result: system version" >&5
3220echo "${ECHO_T}system version" >&6
3221 elif test "$wxUSE_ZLIB" = builtin; then
3222 echo "$as_me:$LINENO: result: builtin version" >&5
3223echo "${ECHO_T}builtin version" >&6
3224 else
3225 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3226echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3227 { (exit 1); exit 1; }; }
3228 fi
3229
3230
3231 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3232echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3233 no_cache=0
3234
3235# Check whether --with-odbc or --without-odbc was given.
3236if test "${with_odbc+set}" = set; then
3237 withval="$with_odbc"
3238
3239 if test "$withval" = yes; then
3240 ac_cv_use_odbc='wxUSE_ODBC=yes'
3241 elif test "$withval" = no; then
3242 ac_cv_use_odbc='wxUSE_ODBC=no'
3243 elif test "$withval" = sys; then
3244 ac_cv_use_odbc='wxUSE_ODBC=sys'
3245 elif test "$withval" = builtin; then
3246 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3247 else
3248 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3249echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3250 { (exit 1); exit 1; }; }
3251 fi
3252
3253else
3254
3255 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3256 if test "x$LINE" != x ; then
3257 eval "DEFAULT_$LINE"
3258 else
3259 no_cache=1
3260 fi
3261
3262 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3263
3264fi;
3265
3266 eval "$ac_cv_use_odbc"
3267 if test "$no_cache" != 1; then
3268 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3269 fi
3270
3271 if test "$wxUSE_ODBC" = yes; then
3272 echo "$as_me:$LINENO: result: yes" >&5
3273echo "${ECHO_T}yes" >&6
3274 elif test "$wxUSE_ODBC" = no; then
3275 echo "$as_me:$LINENO: result: no" >&5
3276echo "${ECHO_T}no" >&6
3277 elif test "$wxUSE_ODBC" = sys; then
3278 echo "$as_me:$LINENO: result: system version" >&5
3279echo "${ECHO_T}system version" >&6
3280 elif test "$wxUSE_ODBC" = builtin; then
3281 echo "$as_me:$LINENO: result: builtin version" >&5
3282echo "${ECHO_T}builtin version" >&6
3283 else
3284 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3285echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3286 { (exit 1); exit 1; }; }
3287 fi
3288
3289
3290 echo "$as_me:$LINENO: checking for --with-expat" >&5
3291echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3292 no_cache=0
3293
3294# Check whether --with-expat or --without-expat was given.
3295if test "${with_expat+set}" = set; then
3296 withval="$with_expat"
3297
3298 if test "$withval" = yes; then
3299 ac_cv_use_expat='wxUSE_EXPAT=yes'
3300 elif test "$withval" = no; then
3301 ac_cv_use_expat='wxUSE_EXPAT=no'
3302 elif test "$withval" = sys; then
3303 ac_cv_use_expat='wxUSE_EXPAT=sys'
3304 elif test "$withval" = builtin; then
3305 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3306 else
3307 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3308echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3309 { (exit 1); exit 1; }; }
3310 fi
3311
3312else
3313
3314 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3315 if test "x$LINE" != x ; then
3316 eval "DEFAULT_$LINE"
3317 else
3318 no_cache=1
3319 fi
3320
3321 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3322
3323fi;
3324
3325 eval "$ac_cv_use_expat"
3326 if test "$no_cache" != 1; then
3327 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3328 fi
3329
3330 if test "$wxUSE_EXPAT" = yes; then
3331 echo "$as_me:$LINENO: result: yes" >&5
3332echo "${ECHO_T}yes" >&6
3333 elif test "$wxUSE_EXPAT" = no; then
3334 echo "$as_me:$LINENO: result: no" >&5
3335echo "${ECHO_T}no" >&6
3336 elif test "$wxUSE_EXPAT" = sys; then
3337 echo "$as_me:$LINENO: result: system version" >&5
3338echo "${ECHO_T}system version" >&6
3339 elif test "$wxUSE_EXPAT" = builtin; then
3340 echo "$as_me:$LINENO: result: builtin version" >&5
3341echo "${ECHO_T}builtin version" >&6
3342 else
3343 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3344echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3345 { (exit 1); exit 1; }; }
3346 fi
3347
3348
3349
3350
3351 enablestring=
3352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3353echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3354 no_cache=0
3355 # Check whether --enable-shared or --disable-shared was given.
3356if test "${enable_shared+set}" = set; then
3357 enableval="$enable_shared"
3358
3359 if test "$enableval" = yes; then
3360 ac_cv_use_shared='wxUSE_SHARED=yes'
3361 else
3362 ac_cv_use_shared='wxUSE_SHARED=no'
3363 fi
3364
3365else
3366
3367 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3368 if test "x$LINE" != x ; then
3369 eval "DEFAULT_$LINE"
3370 else
3371 no_cache=1
3372 fi
3373
3374 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3375
3376fi;
3377
3378 eval "$ac_cv_use_shared"
3379 if test "$no_cache" != 1; then
3380 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3381 fi
3382
3383 if test "$wxUSE_SHARED" = yes; then
3384 echo "$as_me:$LINENO: result: yes" >&5
3385echo "${ECHO_T}yes" >&6
3386 else
3387 echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
3389 fi
3390
3391
3392 enablestring=
3393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3394echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3395 no_cache=0
3396 # Check whether --enable-optimise or --disable-optimise was given.
3397if test "${enable_optimise+set}" = set; then
3398 enableval="$enable_optimise"
3399
3400 if test "$enableval" = yes; then
3401 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3402 else
3403 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3404 fi
3405
3406else
3407
3408 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3409 if test "x$LINE" != x ; then
3410 eval "DEFAULT_$LINE"
3411 else
3412 no_cache=1
3413 fi
3414
3415 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3416
3417fi;
3418
3419 eval "$ac_cv_use_optimise"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_OPTIMISE" = yes; then
3425 echo "$as_me:$LINENO: result: yes" >&5
3426echo "${ECHO_T}yes" >&6
3427 else
3428 echo "$as_me:$LINENO: result: no" >&5
3429echo "${ECHO_T}no" >&6
3430 fi
3431
3432
3433 enablestring=
3434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3435echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3436 no_cache=0
3437 # Check whether --enable-debug or --disable-debug was given.
3438if test "${enable_debug+set}" = set; then
3439 enableval="$enable_debug"
3440
3441 if test "$enableval" = yes; then
3442 ac_cv_use_debug='wxUSE_DEBUG=yes'
3443 else
3444 ac_cv_use_debug='wxUSE_DEBUG=no'
3445 fi
3446
3447else
3448
3449 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3457
3458fi;
3459
3460 eval "$ac_cv_use_debug"
3461 if test "$no_cache" != 1; then
3462 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3463 fi
3464
3465 if test "$wxUSE_DEBUG" = yes; then
3466 echo "$as_me:$LINENO: result: yes" >&5
3467echo "${ECHO_T}yes" >&6
3468 else
3469 echo "$as_me:$LINENO: result: no" >&5
3470echo "${ECHO_T}no" >&6
3471 fi
3472
3473
3474 enablestring=
3475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3476echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3477 no_cache=0
3478 # Check whether --enable-stl or --disable-stl was given.
3479if test "${enable_stl+set}" = set; then
3480 enableval="$enable_stl"
3481
3482 if test "$enableval" = yes; then
3483 ac_cv_use_stl='wxUSE_STL=yes'
3484 else
3485 ac_cv_use_stl='wxUSE_STL=no'
3486 fi
3487
3488else
3489
3490 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3491 if test "x$LINE" != x ; then
3492 eval "DEFAULT_$LINE"
3493 else
3494 no_cache=1
3495 fi
3496
3497 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3498
3499fi;
3500
3501 eval "$ac_cv_use_stl"
3502 if test "$no_cache" != 1; then
3503 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3504 fi
3505
3506 if test "$wxUSE_STL" = yes; then
3507 echo "$as_me:$LINENO: result: yes" >&5
3508echo "${ECHO_T}yes" >&6
3509 else
3510 echo "$as_me:$LINENO: result: no" >&5
3511echo "${ECHO_T}no" >&6
3512 fi
3513
3514if test "$USE_OS2" = "1"; then
3515
3516 enablestring=
3517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3518echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3519 no_cache=0
3520 # Check whether --enable-omf or --disable-omf was given.
3521if test "${enable_omf+set}" = set; then
3522 enableval="$enable_omf"
3523
3524 if test "$enableval" = yes; then
3525 ac_cv_use_omf='wxUSE_OMF=yes'
3526 else
3527 ac_cv_use_omf='wxUSE_OMF=no'
3528 fi
3529
3530else
3531
3532 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3533 if test "x$LINE" != x ; then
3534 eval "DEFAULT_$LINE"
3535 else
3536 no_cache=1
3537 fi
3538
3539 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3540
3541fi;
3542
3543 eval "$ac_cv_use_omf"
3544 if test "$no_cache" != 1; then
3545 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3546 fi
3547
3548 if test "$wxUSE_OMF" = yes; then
3549 echo "$as_me:$LINENO: result: yes" >&5
3550echo "${ECHO_T}yes" >&6
3551 else
3552 echo "$as_me:$LINENO: result: no" >&5
3553echo "${ECHO_T}no" >&6
3554 fi
3555
3556fi
3557
3558if test "$wxUSE_DEBUG" = "yes"; then
3559 DEFAULT_wxUSE_DEBUG_FLAG=yes
3560 DEFAULT_wxUSE_DEBUG_INFO=yes
3561 BUILD=debug
3562elif test "$wxUSE_DEBUG" = "no"; then
3563 DEFAULT_wxUSE_DEBUG_FLAG=no
3564 DEFAULT_wxUSE_DEBUG_INFO=no
3565 BUILD=release
3566fi
3567
3568
3569 enablestring=
3570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3571echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3572 no_cache=0
3573 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3574if test "${enable_debug_flag+set}" = set; then
3575 enableval="$enable_debug_flag"
3576
3577 if test "$enableval" = yes; then
3578 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3579 else
3580 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3581 fi
3582
3583else
3584
3585 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3586 if test "x$LINE" != x ; then
3587 eval "DEFAULT_$LINE"
3588 else
3589 no_cache=1
3590 fi
3591
3592 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3593
3594fi;
3595
3596 eval "$ac_cv_use_debug_flag"
3597 if test "$no_cache" != 1; then
3598 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3599 fi
3600
3601 if test "$wxUSE_DEBUG_FLAG" = yes; then
3602 echo "$as_me:$LINENO: result: yes" >&5
3603echo "${ECHO_T}yes" >&6
3604 else
3605 echo "$as_me:$LINENO: result: no" >&5
3606echo "${ECHO_T}no" >&6
3607 fi
3608
3609
3610 enablestring=
3611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3612echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3613 no_cache=0
3614 # Check whether --enable-debug_info or --disable-debug_info was given.
3615if test "${enable_debug_info+set}" = set; then
3616 enableval="$enable_debug_info"
3617
3618 if test "$enableval" = yes; then
3619 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3620 else
3621 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3622 fi
3623
3624else
3625
3626 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3627 if test "x$LINE" != x ; then
3628 eval "DEFAULT_$LINE"
3629 else
3630 no_cache=1
3631 fi
3632
3633 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3634
3635fi;
3636
3637 eval "$ac_cv_use_debug_info"
3638 if test "$no_cache" != 1; then
3639 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3640 fi
3641
3642 if test "$wxUSE_DEBUG_INFO" = yes; then
3643 echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6
3648 fi
3649
3650
3651 enablestring=
3652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3653echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3654 no_cache=0
3655 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3656if test "${enable_debug_gdb+set}" = set; then
3657 enableval="$enable_debug_gdb"
3658
3659 if test "$enableval" = yes; then
3660 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3661 else
3662 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3663 fi
3664
3665else
3666
3667 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3668 if test "x$LINE" != x ; then
3669 eval "DEFAULT_$LINE"
3670 else
3671 no_cache=1
3672 fi
3673
3674 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3675
3676fi;
3677
3678 eval "$ac_cv_use_debug_gdb"
3679 if test "$no_cache" != 1; then
3680 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3681 fi
3682
3683 if test "$wxUSE_DEBUG_GDB" = yes; then
3684 echo "$as_me:$LINENO: result: yes" >&5
3685echo "${ECHO_T}yes" >&6
3686 else
3687 echo "$as_me:$LINENO: result: no" >&5
3688echo "${ECHO_T}no" >&6
3689 fi
3690
3691
3692 enablestring=
3693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3694echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3695 no_cache=0
3696 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3697if test "${enable_debug_cntxt+set}" = set; then
3698 enableval="$enable_debug_cntxt"
3699
3700 if test "$enableval" = yes; then
3701 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3702 else
3703 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3704 fi
3705
3706else
3707
3708 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3709 if test "x$LINE" != x ; then
3710 eval "DEFAULT_$LINE"
3711 else
3712 no_cache=1
3713 fi
3714
3715 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3716
3717fi;
3718
3719 eval "$ac_cv_use_debug_cntxt"
3720 if test "$no_cache" != 1; then
3721 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3722 fi
3723
3724 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3725 echo "$as_me:$LINENO: result: yes" >&5
3726echo "${ECHO_T}yes" >&6
3727 else
3728 echo "$as_me:$LINENO: result: no" >&5
3729echo "${ECHO_T}no" >&6
3730 fi
3731
3732
3733 enablestring=
3734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3735echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3736 no_cache=0
3737 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3738if test "${enable_mem_tracing+set}" = set; then
3739 enableval="$enable_mem_tracing"
3740
3741 if test "$enableval" = yes; then
3742 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3743 else
3744 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3745 fi
3746
3747else
3748
3749 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3750 if test "x$LINE" != x ; then
3751 eval "DEFAULT_$LINE"
3752 else
3753 no_cache=1
3754 fi
3755
3756 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3757
3758fi;
3759
3760 eval "$ac_cv_use_mem_tracing"
3761 if test "$no_cache" != 1; then
3762 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3763 fi
3764
3765 if test "$wxUSE_MEM_TRACING" = yes; then
3766 echo "$as_me:$LINENO: result: yes" >&5
3767echo "${ECHO_T}yes" >&6
3768 else
3769 echo "$as_me:$LINENO: result: no" >&5
3770echo "${ECHO_T}no" >&6
3771 fi
3772
3773
3774 enablestring=
3775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3776echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3777 no_cache=0
3778 # Check whether --enable-profile or --disable-profile was given.
3779if test "${enable_profile+set}" = set; then
3780 enableval="$enable_profile"
3781
3782 if test "$enableval" = yes; then
3783 ac_cv_use_profile='wxUSE_PROFILE=yes'
3784 else
3785 ac_cv_use_profile='wxUSE_PROFILE=no'
3786 fi
3787
3788else
3789
3790 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3791 if test "x$LINE" != x ; then
3792 eval "DEFAULT_$LINE"
3793 else
3794 no_cache=1
3795 fi
3796
3797 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3798
3799fi;
3800
3801 eval "$ac_cv_use_profile"
3802 if test "$no_cache" != 1; then
3803 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3804 fi
3805
3806 if test "$wxUSE_PROFILE" = yes; then
3807 echo "$as_me:$LINENO: result: yes" >&5
3808echo "${ECHO_T}yes" >&6
3809 else
3810 echo "$as_me:$LINENO: result: no" >&5
3811echo "${ECHO_T}no" >&6
3812 fi
3813
3814
3815 enablestring=
3816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3817echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3818 no_cache=0
3819 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3820if test "${enable_no_rtti+set}" = set; then
3821 enableval="$enable_no_rtti"
3822
3823 if test "$enableval" = yes; then
3824 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3825 else
3826 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3827 fi
3828
3829else
3830
3831 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3832 if test "x$LINE" != x ; then
3833 eval "DEFAULT_$LINE"
3834 else
3835 no_cache=1
3836 fi
3837
3838 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3839
3840fi;
3841
3842 eval "$ac_cv_use_no_rtti"
3843 if test "$no_cache" != 1; then
3844 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3845 fi
3846
3847 if test "$wxUSE_NO_RTTI" = yes; then
3848 echo "$as_me:$LINENO: result: yes" >&5
3849echo "${ECHO_T}yes" >&6
3850 else
3851 echo "$as_me:$LINENO: result: no" >&5
3852echo "${ECHO_T}no" >&6
3853 fi
3854
3855
3856 enablestring=
3857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3858echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3859 no_cache=0
3860 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3861if test "${enable_no_exceptions+set}" = set; then
3862 enableval="$enable_no_exceptions"
3863
3864 if test "$enableval" = yes; then
3865 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3866 else
3867 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3868 fi
3869
3870else
3871
3872 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3873 if test "x$LINE" != x ; then
3874 eval "DEFAULT_$LINE"
3875 else
3876 no_cache=1
3877 fi
3878
3879 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3880
3881fi;
3882
3883 eval "$ac_cv_use_no_exceptions"
3884 if test "$no_cache" != 1; then
3885 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3886 fi
3887
3888 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3889 echo "$as_me:$LINENO: result: yes" >&5
3890echo "${ECHO_T}yes" >&6
3891 else
3892 echo "$as_me:$LINENO: result: no" >&5
3893echo "${ECHO_T}no" >&6
3894 fi
3895
3896
3897 enablestring=
3898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3899echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3900 no_cache=0
3901 # Check whether --enable-permissive or --disable-permissive was given.
3902if test "${enable_permissive+set}" = set; then
3903 enableval="$enable_permissive"
3904
3905 if test "$enableval" = yes; then
3906 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3907 else
3908 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3909 fi
3910
3911else
3912
3913 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3914 if test "x$LINE" != x ; then
3915 eval "DEFAULT_$LINE"
3916 else
3917 no_cache=1
3918 fi
3919
3920 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3921
3922fi;
3923
3924 eval "$ac_cv_use_permissive"
3925 if test "$no_cache" != 1; then
3926 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3927 fi
3928
3929 if test "$wxUSE_PERMISSIVE" = yes; then
3930 echo "$as_me:$LINENO: result: yes" >&5
3931echo "${ECHO_T}yes" >&6
3932 else
3933 echo "$as_me:$LINENO: result: no" >&5
3934echo "${ECHO_T}no" >&6
3935 fi
3936
3937
3938 enablestring=
3939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3940echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3941 no_cache=0
3942 # Check whether --enable-no_deps or --disable-no_deps was given.
3943if test "${enable_no_deps+set}" = set; then
3944 enableval="$enable_no_deps"
3945
3946 if test "$enableval" = yes; then
3947 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3948 else
3949 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3950 fi
3951
3952else
3953
3954 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3955 if test "x$LINE" != x ; then
3956 eval "DEFAULT_$LINE"
3957 else
3958 no_cache=1
3959 fi
3960
3961 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3962
3963fi;
3964
3965 eval "$ac_cv_use_no_deps"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_NO_DEPS" = yes; then
3971 echo "$as_me:$LINENO: result: yes" >&5
3972echo "${ECHO_T}yes" >&6
3973 else
3974 echo "$as_me:$LINENO: result: no" >&5
3975echo "${ECHO_T}no" >&6
3976 fi
3977
3978
3979
3980 enablestring=
3981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3982echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3983 no_cache=0
3984 # Check whether --enable-compat22 or --disable-compat22 was given.
3985if test "${enable_compat22+set}" = set; then
3986 enableval="$enable_compat22"
3987
3988 if test "$enableval" = yes; then
3989 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3990 else
3991 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3992 fi
3993
3994else
3995
3996 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3997 if test "x$LINE" != x ; then
3998 eval "DEFAULT_$LINE"
3999 else
4000 no_cache=1
4001 fi
4002
4003 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4004
4005fi;
4006
4007 eval "$ac_cv_use_compat22"
4008 if test "$no_cache" != 1; then
4009 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4010 fi
4011
4012 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4013 echo "$as_me:$LINENO: result: yes" >&5
4014echo "${ECHO_T}yes" >&6
4015 else
4016 echo "$as_me:$LINENO: result: no" >&5
4017echo "${ECHO_T}no" >&6
4018 fi
4019
4020
4021 enablestring=disable
4022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4023echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4024 no_cache=0
4025 # Check whether --enable-compat24 or --disable-compat24 was given.
4026if test "${enable_compat24+set}" = set; then
4027 enableval="$enable_compat24"
4028
4029 if test "$enableval" = yes; then
4030 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4031 else
4032 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4033 fi
4034
4035else
4036
4037 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4038 if test "x$LINE" != x ; then
4039 eval "DEFAULT_$LINE"
4040 else
4041 no_cache=1
4042 fi
4043
4044 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4045
4046fi;
4047
4048 eval "$ac_cv_use_compat24"
4049 if test "$no_cache" != 1; then
4050 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4051 fi
4052
4053 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4054 echo "$as_me:$LINENO: result: yes" >&5
4055echo "${ECHO_T}yes" >&6
4056 else
4057 echo "$as_me:$LINENO: result: no" >&5
4058echo "${ECHO_T}no" >&6
4059 fi
4060
4061
4062# Check whether --enable-rpath or --disable-rpath was given.
4063if test "${enable_rpath+set}" = set; then
4064 enableval="$enable_rpath"
4065 wxRPATH_DIR="$enableval"
4066fi;
4067
4068if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4069 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4070fi
4071
4072
4073
4074
4075 enablestring=
4076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4077echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4078 no_cache=0
4079 # Check whether --enable-intl or --disable-intl was given.
4080if test "${enable_intl+set}" = set; then
4081 enableval="$enable_intl"
4082
4083 if test "$enableval" = yes; then
4084 ac_cv_use_intl='wxUSE_INTL=yes'
4085 else
4086 ac_cv_use_intl='wxUSE_INTL=no'
4087 fi
4088
4089else
4090
4091 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4092 if test "x$LINE" != x ; then
4093 eval "DEFAULT_$LINE"
4094 else
4095 no_cache=1
4096 fi
4097
4098 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4099
4100fi;
4101
4102 eval "$ac_cv_use_intl"
4103 if test "$no_cache" != 1; then
4104 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4105 fi
4106
4107 if test "$wxUSE_INTL" = yes; then
4108 echo "$as_me:$LINENO: result: yes" >&5
4109echo "${ECHO_T}yes" >&6
4110 else
4111 echo "$as_me:$LINENO: result: no" >&5
4112echo "${ECHO_T}no" >&6
4113 fi
4114
4115
4116 enablestring=
4117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4118echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4119 no_cache=0
4120 # Check whether --enable-config or --disable-config was given.
4121if test "${enable_config+set}" = set; then
4122 enableval="$enable_config"
4123
4124 if test "$enableval" = yes; then
4125 ac_cv_use_config='wxUSE_CONFIG=yes'
4126 else
4127 ac_cv_use_config='wxUSE_CONFIG=no'
4128 fi
4129
4130else
4131
4132 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4133 if test "x$LINE" != x ; then
4134 eval "DEFAULT_$LINE"
4135 else
4136 no_cache=1
4137 fi
4138
4139 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4140
4141fi;
4142
4143 eval "$ac_cv_use_config"
4144 if test "$no_cache" != 1; then
4145 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4146 fi
4147
4148 if test "$wxUSE_CONFIG" = yes; then
4149 echo "$as_me:$LINENO: result: yes" >&5
4150echo "${ECHO_T}yes" >&6
4151 else
4152 echo "$as_me:$LINENO: result: no" >&5
4153echo "${ECHO_T}no" >&6
4154 fi
4155
4156
4157
4158 enablestring=
4159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4160echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4161 no_cache=0
4162 # Check whether --enable-protocols or --disable-protocols was given.
4163if test "${enable_protocols+set}" = set; then
4164 enableval="$enable_protocols"
4165
4166 if test "$enableval" = yes; then
4167 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4168 else
4169 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4170 fi
4171
4172else
4173
4174 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4175 if test "x$LINE" != x ; then
4176 eval "DEFAULT_$LINE"
4177 else
4178 no_cache=1
4179 fi
4180
4181 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4182
4183fi;
4184
4185 eval "$ac_cv_use_protocols"
4186 if test "$no_cache" != 1; then
4187 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4188 fi
4189
4190 if test "$wxUSE_PROTOCOL" = yes; then
4191 echo "$as_me:$LINENO: result: yes" >&5
4192echo "${ECHO_T}yes" >&6
4193 else
4194 echo "$as_me:$LINENO: result: no" >&5
4195echo "${ECHO_T}no" >&6
4196 fi
4197
4198
4199 enablestring=
4200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4201echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4202 no_cache=0
4203 # Check whether --enable-ftp or --disable-ftp was given.
4204if test "${enable_ftp+set}" = set; then
4205 enableval="$enable_ftp"
4206
4207 if test "$enableval" = yes; then
4208 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4209 else
4210 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4211 fi
4212
4213else
4214
4215 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4216 if test "x$LINE" != x ; then
4217 eval "DEFAULT_$LINE"
4218 else
4219 no_cache=1
4220 fi
4221
4222 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4223
4224fi;
4225
4226 eval "$ac_cv_use_ftp"
4227 if test "$no_cache" != 1; then
4228 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4229 fi
4230
4231 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4232 echo "$as_me:$LINENO: result: yes" >&5
4233echo "${ECHO_T}yes" >&6
4234 else
4235 echo "$as_me:$LINENO: result: no" >&5
4236echo "${ECHO_T}no" >&6
4237 fi
4238
4239
4240 enablestring=
4241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4242echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4243 no_cache=0
4244 # Check whether --enable-http or --disable-http was given.
4245if test "${enable_http+set}" = set; then
4246 enableval="$enable_http"
4247
4248 if test "$enableval" = yes; then
4249 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4250 else
4251 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4252 fi
4253
4254else
4255
4256 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4257 if test "x$LINE" != x ; then
4258 eval "DEFAULT_$LINE"
4259 else
4260 no_cache=1
4261 fi
4262
4263 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4264
4265fi;
4266
4267 eval "$ac_cv_use_http"
4268 if test "$no_cache" != 1; then
4269 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4270 fi
4271
4272 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4273 echo "$as_me:$LINENO: result: yes" >&5
4274echo "${ECHO_T}yes" >&6
4275 else
4276 echo "$as_me:$LINENO: result: no" >&5
4277echo "${ECHO_T}no" >&6
4278 fi
4279
4280
4281 enablestring=
4282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4283echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4284 no_cache=0
4285 # Check whether --enable-fileproto or --disable-fileproto was given.
4286if test "${enable_fileproto+set}" = set; then
4287 enableval="$enable_fileproto"
4288
4289 if test "$enableval" = yes; then
4290 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4291 else
4292 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4293 fi
4294
4295else
4296
4297 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4298 if test "x$LINE" != x ; then
4299 eval "DEFAULT_$LINE"
4300 else
4301 no_cache=1
4302 fi
4303
4304 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4305
4306fi;
4307
4308 eval "$ac_cv_use_fileproto"
4309 if test "$no_cache" != 1; then
4310 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4311 fi
4312
4313 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4314 echo "$as_me:$LINENO: result: yes" >&5
4315echo "${ECHO_T}yes" >&6
4316 else
4317 echo "$as_me:$LINENO: result: no" >&5
4318echo "${ECHO_T}no" >&6
4319 fi
4320
4321
4322 enablestring=
4323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4324echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4325 no_cache=0
4326 # Check whether --enable-sockets or --disable-sockets was given.
4327if test "${enable_sockets+set}" = set; then
4328 enableval="$enable_sockets"
4329
4330 if test "$enableval" = yes; then
4331 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4332 else
4333 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4334 fi
4335
4336else
4337
4338 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4339 if test "x$LINE" != x ; then
4340 eval "DEFAULT_$LINE"
4341 else
4342 no_cache=1
4343 fi
4344
4345 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4346
4347fi;
4348
4349 eval "$ac_cv_use_sockets"
4350 if test "$no_cache" != 1; then
4351 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4352 fi
4353
4354 if test "$wxUSE_SOCKETS" = yes; then
4355 echo "$as_me:$LINENO: result: yes" >&5
4356echo "${ECHO_T}yes" >&6
4357 else
4358 echo "$as_me:$LINENO: result: no" >&5
4359echo "${ECHO_T}no" >&6
4360 fi
4361
4362
4363 enablestring=
4364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4365echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4366 no_cache=0
4367 # Check whether --enable-ole or --disable-ole was given.
4368if test "${enable_ole+set}" = set; then
4369 enableval="$enable_ole"
4370
4371 if test "$enableval" = yes; then
4372 ac_cv_use_ole='wxUSE_OLE=yes'
4373 else
4374 ac_cv_use_ole='wxUSE_OLE=no'
4375 fi
4376
4377else
4378
4379 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4380 if test "x$LINE" != x ; then
4381 eval "DEFAULT_$LINE"
4382 else
4383 no_cache=1
4384 fi
4385
4386 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4387
4388fi;
4389
4390 eval "$ac_cv_use_ole"
4391 if test "$no_cache" != 1; then
4392 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4393 fi
4394
4395 if test "$wxUSE_OLE" = yes; then
4396 echo "$as_me:$LINENO: result: yes" >&5
4397echo "${ECHO_T}yes" >&6
4398 else
4399 echo "$as_me:$LINENO: result: no" >&5
4400echo "${ECHO_T}no" >&6
4401 fi
4402
4403
4404 enablestring=
4405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4406echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4407 no_cache=0
4408 # Check whether --enable-dataobj or --disable-dataobj was given.
4409if test "${enable_dataobj+set}" = set; then
4410 enableval="$enable_dataobj"
4411
4412 if test "$enableval" = yes; then
4413 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4414 else
4415 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4416 fi
4417
4418else
4419
4420 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4421 if test "x$LINE" != x ; then
4422 eval "DEFAULT_$LINE"
4423 else
4424 no_cache=1
4425 fi
4426
4427 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4428
4429fi;
4430
4431 eval "$ac_cv_use_dataobj"
4432 if test "$no_cache" != 1; then
4433 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4434 fi
4435
4436 if test "$wxUSE_DATAOBJ" = yes; then
4437 echo "$as_me:$LINENO: result: yes" >&5
4438echo "${ECHO_T}yes" >&6
4439 else
4440 echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6
4442 fi
4443
4444
4445
4446 enablestring=
4447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4448echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4449 no_cache=0
4450 # Check whether --enable-ipc or --disable-ipc was given.
4451if test "${enable_ipc+set}" = set; then
4452 enableval="$enable_ipc"
4453
4454 if test "$enableval" = yes; then
4455 ac_cv_use_ipc='wxUSE_IPC=yes'
4456 else
4457 ac_cv_use_ipc='wxUSE_IPC=no'
4458 fi
4459
4460else
4461
4462 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4463 if test "x$LINE" != x ; then
4464 eval "DEFAULT_$LINE"
4465 else
4466 no_cache=1
4467 fi
4468
4469 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4470
4471fi;
4472
4473 eval "$ac_cv_use_ipc"
4474 if test "$no_cache" != 1; then
4475 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4476 fi
4477
4478 if test "$wxUSE_IPC" = yes; then
4479 echo "$as_me:$LINENO: result: yes" >&5
4480echo "${ECHO_T}yes" >&6
4481 else
4482 echo "$as_me:$LINENO: result: no" >&5
4483echo "${ECHO_T}no" >&6
4484 fi
4485
4486
4487
4488 enablestring=
4489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4490echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4491 no_cache=0
4492 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4493if test "${enable_apple_ieee+set}" = set; then
4494 enableval="$enable_apple_ieee"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4498 else
4499 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4500 fi
4501
4502else
4503
4504 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4512
4513fi;
4514
4515 eval "$ac_cv_use_apple_ieee"
4516 if test "$no_cache" != 1; then
4517 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4518 fi
4519
4520 if test "$wxUSE_APPLE_IEEE" = yes; then
4521 echo "$as_me:$LINENO: result: yes" >&5
4522echo "${ECHO_T}yes" >&6
4523 else
4524 echo "$as_me:$LINENO: result: no" >&5
4525echo "${ECHO_T}no" >&6
4526 fi
4527
4528
4529 enablestring=
4530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4531echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4532 no_cache=0
4533 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4534if test "${enable_catch_segvs+set}" = set; then
4535 enableval="$enable_catch_segvs"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4539 else
4540 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4553
4554fi;
4555
4556 eval "$ac_cv_use_catch_segvs"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4562 echo "$as_me:$LINENO: result: yes" >&5
4563echo "${ECHO_T}yes" >&6
4564 else
4565 echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567 fi
4568
4569
4570 enablestring=
4571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4572echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4573 no_cache=0
4574 # Check whether --enable-cmdline or --disable-cmdline was given.
4575if test "${enable_cmdline+set}" = set; then
4576 enableval="$enable_cmdline"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4580 else
4581 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4594
4595fi;
4596
4597 eval "$ac_cv_use_cmdline"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4603 echo "$as_me:$LINENO: result: yes" >&5
4604echo "${ECHO_T}yes" >&6
4605 else
4606 echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6
4608 fi
4609
4610
4611 enablestring=
4612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4613echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4614 no_cache=0
4615 # Check whether --enable-datetime or --disable-datetime was given.
4616if test "${enable_datetime+set}" = set; then
4617 enableval="$enable_datetime"
4618
4619 if test "$enableval" = yes; then
4620 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4621 else
4622 ac_cv_use_datetime='wxUSE_DATETIME=no'
4623 fi
4624
4625else
4626
4627 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4635
4636fi;
4637
4638 eval "$ac_cv_use_datetime"
4639 if test "$no_cache" != 1; then
4640 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4641 fi
4642
4643 if test "$wxUSE_DATETIME" = yes; then
4644 echo "$as_me:$LINENO: result: yes" >&5
4645echo "${ECHO_T}yes" >&6
4646 else
4647 echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6
4649 fi
4650
4651
4652 enablestring=
4653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4654echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4655 no_cache=0
4656 # Check whether --enable-dialupman or --disable-dialupman was given.
4657if test "${enable_dialupman+set}" = set; then
4658 enableval="$enable_dialupman"
4659
4660 if test "$enableval" = yes; then
4661 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4662 else
4663 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4664 fi
4665
4666else
4667
4668 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4669 if test "x$LINE" != x ; then
4670 eval "DEFAULT_$LINE"
4671 else
4672 no_cache=1
4673 fi
4674
4675 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4676
4677fi;
4678
4679 eval "$ac_cv_use_dialupman"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4685 echo "$as_me:$LINENO: result: yes" >&5
4686echo "${ECHO_T}yes" >&6
4687 else
4688 echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6
4690 fi
4691
4692
4693 enablestring=
4694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4695echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4696 no_cache=0
4697 # Check whether --enable-dynlib or --disable-dynlib was given.
4698if test "${enable_dynlib+set}" = set; then
4699 enableval="$enable_dynlib"
4700
4701 if test "$enableval" = yes; then
4702 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4703 else
4704 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4705 fi
4706
4707else
4708
4709 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4710 if test "x$LINE" != x ; then
4711 eval "DEFAULT_$LINE"
4712 else
4713 no_cache=1
4714 fi
4715
4716 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4717
4718fi;
4719
4720 eval "$ac_cv_use_dynlib"
4721 if test "$no_cache" != 1; then
4722 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4723 fi
4724
4725 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4726 echo "$as_me:$LINENO: result: yes" >&5
4727echo "${ECHO_T}yes" >&6
4728 else
4729 echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6
4731 fi
4732
4733
4734 enablestring=
4735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4736echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4737 no_cache=0
4738 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4739if test "${enable_dynamicloader+set}" = set; then
4740 enableval="$enable_dynamicloader"
4741
4742 if test "$enableval" = yes; then
4743 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4744 else
4745 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4746 fi
4747
4748else
4749
4750 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4751 if test "x$LINE" != x ; then
4752 eval "DEFAULT_$LINE"
4753 else
4754 no_cache=1
4755 fi
4756
4757 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4758
4759fi;
4760
4761 eval "$ac_cv_use_dynamicloader"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4767 echo "$as_me:$LINENO: result: yes" >&5
4768echo "${ECHO_T}yes" >&6
4769 else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772 fi
4773
4774
4775 enablestring=
4776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4777echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4778 no_cache=0
4779 # Check whether --enable-exceptions or --disable-exceptions was given.
4780if test "${enable_exceptions+set}" = set; then
4781 enableval="$enable_exceptions"
4782
4783 if test "$enableval" = yes; then
4784 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4785 else
4786 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4787 fi
4788
4789else
4790
4791 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4792 if test "x$LINE" != x ; then
4793 eval "DEFAULT_$LINE"
4794 else
4795 no_cache=1
4796 fi
4797
4798 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4799
4800fi;
4801
4802 eval "$ac_cv_use_exceptions"
4803 if test "$no_cache" != 1; then
4804 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4805 fi
4806
4807 if test "$wxUSE_EXCEPTIONS" = yes; then
4808 echo "$as_me:$LINENO: result: yes" >&5
4809echo "${ECHO_T}yes" >&6
4810 else
4811 echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6
4813 fi
4814
4815
4816 enablestring=
4817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4818echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4819 no_cache=0
4820 # Check whether --enable-ffile or --disable-ffile was given.
4821if test "${enable_ffile+set}" = set; then
4822 enableval="$enable_ffile"
4823
4824 if test "$enableval" = yes; then
4825 ac_cv_use_ffile='wxUSE_FFILE=yes'
4826 else
4827 ac_cv_use_ffile='wxUSE_FFILE=no'
4828 fi
4829
4830else
4831
4832 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4840
4841fi;
4842
4843 eval "$ac_cv_use_ffile"
4844 if test "$no_cache" != 1; then
4845 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4846 fi
4847
4848 if test "$wxUSE_FFILE" = yes; then
4849 echo "$as_me:$LINENO: result: yes" >&5
4850echo "${ECHO_T}yes" >&6
4851 else
4852 echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6
4854 fi
4855
4856
4857 enablestring=
4858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4859echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4860 no_cache=0
4861 # Check whether --enable-file or --disable-file was given.
4862if test "${enable_file+set}" = set; then
4863 enableval="$enable_file"
4864
4865 if test "$enableval" = yes; then
4866 ac_cv_use_file='wxUSE_FILE=yes'
4867 else
4868 ac_cv_use_file='wxUSE_FILE=no'
4869 fi
4870
4871else
4872
4873 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4874 if test "x$LINE" != x ; then
4875 eval "DEFAULT_$LINE"
4876 else
4877 no_cache=1
4878 fi
4879
4880 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4881
4882fi;
4883
4884 eval "$ac_cv_use_file"
4885 if test "$no_cache" != 1; then
4886 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4887 fi
4888
4889 if test "$wxUSE_FILE" = yes; then
4890 echo "$as_me:$LINENO: result: yes" >&5
4891echo "${ECHO_T}yes" >&6
4892 else
4893 echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6
4895 fi
4896
4897
4898 enablestring=
4899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4900echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4901 no_cache=0
4902 # Check whether --enable-filesystem or --disable-filesystem was given.
4903if test "${enable_filesystem+set}" = set; then
4904 enableval="$enable_filesystem"
4905
4906 if test "$enableval" = yes; then
4907 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4908 else
4909 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4910 fi
4911
4912else
4913
4914 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4915 if test "x$LINE" != x ; then
4916 eval "DEFAULT_$LINE"
4917 else
4918 no_cache=1
4919 fi
4920
4921 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4922
4923fi;
4924
4925 eval "$ac_cv_use_filesystem"
4926 if test "$no_cache" != 1; then
4927 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4928 fi
4929
4930 if test "$wxUSE_FILESYSTEM" = yes; then
4931 echo "$as_me:$LINENO: result: yes" >&5
4932echo "${ECHO_T}yes" >&6
4933 else
4934 echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936 fi
4937
4938
4939 enablestring=
4940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4941echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4942 no_cache=0
4943 # Check whether --enable-fontmap or --disable-fontmap was given.
4944if test "${enable_fontmap+set}" = set; then
4945 enableval="$enable_fontmap"
4946
4947 if test "$enableval" = yes; then
4948 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4949 else
4950 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4951 fi
4952
4953else
4954
4955 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4956 if test "x$LINE" != x ; then
4957 eval "DEFAULT_$LINE"
4958 else
4959 no_cache=1
4960 fi
4961
4962 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4963
4964fi;
4965
4966 eval "$ac_cv_use_fontmap"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_FONTMAP" = yes; then
4972 echo "$as_me:$LINENO: result: yes" >&5
4973echo "${ECHO_T}yes" >&6
4974 else
4975 echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6
4977 fi
4978
4979
4980 enablestring=
4981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4982echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
4983 no_cache=0
4984 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4985if test "${enable_fs_inet+set}" = set; then
4986 enableval="$enable_fs_inet"
4987
4988 if test "$enableval" = yes; then
4989 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4990 else
4991 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4992 fi
4993
4994else
4995
4996 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4997 if test "x$LINE" != x ; then
4998 eval "DEFAULT_$LINE"
4999 else
5000 no_cache=1
5001 fi
5002
5003 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5004
5005fi;
5006
5007 eval "$ac_cv_use_fs_inet"
5008 if test "$no_cache" != 1; then
5009 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5010 fi
5011
5012 if test "$wxUSE_FS_INET" = yes; then
5013 echo "$as_me:$LINENO: result: yes" >&5
5014echo "${ECHO_T}yes" >&6
5015 else
5016 echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6
5018 fi
5019
5020
5021 enablestring=
5022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5023echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5024 no_cache=0
5025 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5026if test "${enable_fs_zip+set}" = set; then
5027 enableval="$enable_fs_zip"
5028
5029 if test "$enableval" = yes; then
5030 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5031 else
5032 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5033 fi
5034
5035else
5036
5037 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5038 if test "x$LINE" != x ; then
5039 eval "DEFAULT_$LINE"
5040 else
5041 no_cache=1
5042 fi
5043
5044 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5045
5046fi;
5047
5048 eval "$ac_cv_use_fs_zip"
5049 if test "$no_cache" != 1; then
5050 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5051 fi
5052
5053 if test "$wxUSE_FS_ZIP" = yes; then
5054 echo "$as_me:$LINENO: result: yes" >&5
5055echo "${ECHO_T}yes" >&6
5056 else
5057 echo "$as_me:$LINENO: result: no" >&5
5058echo "${ECHO_T}no" >&6
5059 fi
5060
5061
5062 enablestring=
5063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5064echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5065 no_cache=0
5066 # Check whether --enable-geometry or --disable-geometry was given.
5067if test "${enable_geometry+set}" = set; then
5068 enableval="$enable_geometry"
5069
5070 if test "$enableval" = yes; then
5071 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5072 else
5073 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5074 fi
5075
5076else
5077
5078 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5079 if test "x$LINE" != x ; then
5080 eval "DEFAULT_$LINE"
5081 else
5082 no_cache=1
5083 fi
5084
5085 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5086
5087fi;
5088
5089 eval "$ac_cv_use_geometry"
5090 if test "$no_cache" != 1; then
5091 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5092 fi
5093
5094 if test "$wxUSE_GEOMETRY" = yes; then
5095 echo "$as_me:$LINENO: result: yes" >&5
5096echo "${ECHO_T}yes" >&6
5097 else
5098 echo "$as_me:$LINENO: result: no" >&5
5099echo "${ECHO_T}no" >&6
5100 fi
5101
5102
5103 enablestring=
5104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5105echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5106 no_cache=0
5107 # Check whether --enable-log or --disable-log was given.
5108if test "${enable_log+set}" = set; then
5109 enableval="$enable_log"
5110
5111 if test "$enableval" = yes; then
5112 ac_cv_use_log='wxUSE_LOG=yes'
5113 else
5114 ac_cv_use_log='wxUSE_LOG=no'
5115 fi
5116
5117else
5118
5119 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5120 if test "x$LINE" != x ; then
5121 eval "DEFAULT_$LINE"
5122 else
5123 no_cache=1
5124 fi
5125
5126 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5127
5128fi;
5129
5130 eval "$ac_cv_use_log"
5131 if test "$no_cache" != 1; then
5132 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5133 fi
5134
5135 if test "$wxUSE_LOG" = yes; then
5136 echo "$as_me:$LINENO: result: yes" >&5
5137echo "${ECHO_T}yes" >&6
5138 else
5139 echo "$as_me:$LINENO: result: no" >&5
5140echo "${ECHO_T}no" >&6
5141 fi
5142
5143
5144 enablestring=
5145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5146echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5147 no_cache=0
5148 # Check whether --enable-longlong or --disable-longlong was given.
5149if test "${enable_longlong+set}" = set; then
5150 enableval="$enable_longlong"
5151
5152 if test "$enableval" = yes; then
5153 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5154 else
5155 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5156 fi
5157
5158else
5159
5160 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5161 if test "x$LINE" != x ; then
5162 eval "DEFAULT_$LINE"
5163 else
5164 no_cache=1
5165 fi
5166
5167 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5168
5169fi;
5170
5171 eval "$ac_cv_use_longlong"
5172 if test "$no_cache" != 1; then
5173 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5174 fi
5175
5176 if test "$wxUSE_LONGLONG" = yes; then
5177 echo "$as_me:$LINENO: result: yes" >&5
5178echo "${ECHO_T}yes" >&6
5179 else
5180 echo "$as_me:$LINENO: result: no" >&5
5181echo "${ECHO_T}no" >&6
5182 fi
5183
5184
5185 enablestring=
5186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5187echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5188 no_cache=0
5189 # Check whether --enable-mimetype or --disable-mimetype was given.
5190if test "${enable_mimetype+set}" = set; then
5191 enableval="$enable_mimetype"
5192
5193 if test "$enableval" = yes; then
5194 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5195 else
5196 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5197 fi
5198
5199else
5200
5201 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5202 if test "x$LINE" != x ; then
5203 eval "DEFAULT_$LINE"
5204 else
5205 no_cache=1
5206 fi
5207
5208 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5209
5210fi;
5211
5212 eval "$ac_cv_use_mimetype"
5213 if test "$no_cache" != 1; then
5214 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5215 fi
5216
5217 if test "$wxUSE_MIMETYPE" = yes; then
5218 echo "$as_me:$LINENO: result: yes" >&5
5219echo "${ECHO_T}yes" >&6
5220 else
5221 echo "$as_me:$LINENO: result: no" >&5
5222echo "${ECHO_T}no" >&6
5223 fi
5224
5225
5226 enablestring=
5227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5228echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5229 no_cache=0
5230 # Check whether --enable-mslu or --disable-mslu was given.
5231if test "${enable_mslu+set}" = set; then
5232 enableval="$enable_mslu"
5233
5234 if test "$enableval" = yes; then
5235 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5236 else
5237 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5238 fi
5239
5240else
5241
5242 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5243 if test "x$LINE" != x ; then
5244 eval "DEFAULT_$LINE"
5245 else
5246 no_cache=1
5247 fi
5248
5249 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5250
5251fi;
5252
5253 eval "$ac_cv_use_mslu"
5254 if test "$no_cache" != 1; then
5255 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5256 fi
5257
5258 if test "$wxUSE_UNICODE_MSLU" = yes; then
5259 echo "$as_me:$LINENO: result: yes" >&5
5260echo "${ECHO_T}yes" >&6
5261 else
5262 echo "$as_me:$LINENO: result: no" >&5
5263echo "${ECHO_T}no" >&6
5264 fi
5265
5266
5267 enablestring=
5268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5269echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5270 no_cache=0
5271 # Check whether --enable-snglinst or --disable-snglinst was given.
5272if test "${enable_snglinst+set}" = set; then
5273 enableval="$enable_snglinst"
5274
5275 if test "$enableval" = yes; then
5276 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5277 else
5278 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5279 fi
5280
5281else
5282
5283 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5284 if test "x$LINE" != x ; then
5285 eval "DEFAULT_$LINE"
5286 else
5287 no_cache=1
5288 fi
5289
5290 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5291
5292fi;
5293
5294 eval "$ac_cv_use_snglinst"
5295 if test "$no_cache" != 1; then
5296 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5297 fi
5298
5299 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5300 echo "$as_me:$LINENO: result: yes" >&5
5301echo "${ECHO_T}yes" >&6
5302 else
5303 echo "$as_me:$LINENO: result: no" >&5
5304echo "${ECHO_T}no" >&6
5305 fi
5306
5307
5308 enablestring=
5309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5310echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5311 no_cache=0
5312 # Check whether --enable-streams or --disable-streams was given.
5313if test "${enable_streams+set}" = set; then
5314 enableval="$enable_streams"
5315
5316 if test "$enableval" = yes; then
5317 ac_cv_use_streams='wxUSE_STREAMS=yes'
5318 else
5319 ac_cv_use_streams='wxUSE_STREAMS=no'
5320 fi
5321
5322else
5323
5324 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5325 if test "x$LINE" != x ; then
5326 eval "DEFAULT_$LINE"
5327 else
5328 no_cache=1
5329 fi
5330
5331 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5332
5333fi;
5334
5335 eval "$ac_cv_use_streams"
5336 if test "$no_cache" != 1; then
5337 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5338 fi
5339
5340 if test "$wxUSE_STREAMS" = yes; then
5341 echo "$as_me:$LINENO: result: yes" >&5
5342echo "${ECHO_T}yes" >&6
5343 else
5344 echo "$as_me:$LINENO: result: no" >&5
5345echo "${ECHO_T}no" >&6
5346 fi
5347
5348
5349 enablestring=
5350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5351echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5352 no_cache=0
5353 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5354if test "${enable_std_iostreams+set}" = set; then
5355 enableval="$enable_std_iostreams"
5356
5357 if test "$enableval" = yes; then
5358 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5359 else
5360 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5361 fi
5362
5363else
5364
5365 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5373
5374fi;
5375
5376 eval "$ac_cv_use_std_iostreams"
5377 if test "$no_cache" != 1; then
5378 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5379 fi
5380
5381 if test "$wxUSE_STD_IOSTREAM" = yes; then
5382 echo "$as_me:$LINENO: result: yes" >&5
5383echo "${ECHO_T}yes" >&6
5384 else
5385 echo "$as_me:$LINENO: result: no" >&5
5386echo "${ECHO_T}no" >&6
5387 fi
5388
5389
5390 enablestring=
5391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5392echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5393 no_cache=0
5394 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5395if test "${enable_stopwatch+set}" = set; then
5396 enableval="$enable_stopwatch"
5397
5398 if test "$enableval" = yes; then
5399 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5400 else
5401 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5402 fi
5403
5404else
5405
5406 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5407 if test "x$LINE" != x ; then
5408 eval "DEFAULT_$LINE"
5409 else
5410 no_cache=1
5411 fi
5412
5413 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5414
5415fi;
5416
5417 eval "$ac_cv_use_stopwatch"
5418 if test "$no_cache" != 1; then
5419 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5420 fi
5421
5422 if test "$wxUSE_STOPWATCH" = yes; then
5423 echo "$as_me:$LINENO: result: yes" >&5
5424echo "${ECHO_T}yes" >&6
5425 else
5426 echo "$as_me:$LINENO: result: no" >&5
5427echo "${ECHO_T}no" >&6
5428 fi
5429
5430
5431 enablestring=
5432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5433echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5434 no_cache=0
5435 # Check whether --enable-system_options or --disable-system_options was given.
5436if test "${enable_system_options+set}" = set; then
5437 enableval="$enable_system_options"
5438
5439 if test "$enableval" = yes; then
5440 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5441 else
5442 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5443 fi
5444
5445else
5446
5447 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5448 if test "x$LINE" != x ; then
5449 eval "DEFAULT_$LINE"
5450 else
5451 no_cache=1
5452 fi
5453
5454 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5455
5456fi;
5457
5458 eval "$ac_cv_use_system_options"
5459 if test "$no_cache" != 1; then
5460 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5461 fi
5462
5463 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5464 echo "$as_me:$LINENO: result: yes" >&5
5465echo "${ECHO_T}yes" >&6
5466 else
5467 echo "$as_me:$LINENO: result: no" >&5
5468echo "${ECHO_T}no" >&6
5469 fi
5470
5471
5472 enablestring=
5473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5474echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5475 no_cache=0
5476 # Check whether --enable-textbuf or --disable-textbuf was given.
5477if test "${enable_textbuf+set}" = set; then
5478 enableval="$enable_textbuf"
5479
5480 if test "$enableval" = yes; then
5481 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5482 else
5483 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5484 fi
5485
5486else
5487
5488 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5489 if test "x$LINE" != x ; then
5490 eval "DEFAULT_$LINE"
5491 else
5492 no_cache=1
5493 fi
5494
5495 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5496
5497fi;
5498
5499 eval "$ac_cv_use_textbuf"
5500 if test "$no_cache" != 1; then
5501 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5502 fi
5503
5504 if test "$wxUSE_TEXTBUFFER" = yes; then
5505 echo "$as_me:$LINENO: result: yes" >&5
5506echo "${ECHO_T}yes" >&6
5507 else
5508 echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510 fi
5511
5512
5513 enablestring=
5514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5515echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5516 no_cache=0
5517 # Check whether --enable-textfile or --disable-textfile was given.
5518if test "${enable_textfile+set}" = set; then
5519 enableval="$enable_textfile"
5520
5521 if test "$enableval" = yes; then
5522 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5523 else
5524 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5525 fi
5526
5527else
5528
5529 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5530 if test "x$LINE" != x ; then
5531 eval "DEFAULT_$LINE"
5532 else
5533 no_cache=1
5534 fi
5535
5536 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5537
5538fi;
5539
5540 eval "$ac_cv_use_textfile"
5541 if test "$no_cache" != 1; then
5542 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5543 fi
5544
5545 if test "$wxUSE_TEXTFILE" = yes; then
5546 echo "$as_me:$LINENO: result: yes" >&5
5547echo "${ECHO_T}yes" >&6
5548 else
5549 echo "$as_me:$LINENO: result: no" >&5
5550echo "${ECHO_T}no" >&6
5551 fi
5552
5553
5554 enablestring=
5555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5556echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5557 no_cache=0
5558 # Check whether --enable-timer or --disable-timer was given.
5559if test "${enable_timer+set}" = set; then
5560 enableval="$enable_timer"
5561
5562 if test "$enableval" = yes; then
5563 ac_cv_use_timer='wxUSE_TIMER=yes'
5564 else
5565 ac_cv_use_timer='wxUSE_TIMER=no'
5566 fi
5567
5568else
5569
5570 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5571 if test "x$LINE" != x ; then
5572 eval "DEFAULT_$LINE"
5573 else
5574 no_cache=1
5575 fi
5576
5577 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5578
5579fi;
5580
5581 eval "$ac_cv_use_timer"
5582 if test "$no_cache" != 1; then
5583 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5584 fi
5585
5586 if test "$wxUSE_TIMER" = yes; then
5587 echo "$as_me:$LINENO: result: yes" >&5
5588echo "${ECHO_T}yes" >&6
5589 else
5590 echo "$as_me:$LINENO: result: no" >&5
5591echo "${ECHO_T}no" >&6
5592 fi
5593
5594
5595 enablestring=
5596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5597echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5598 no_cache=0
5599 # Check whether --enable-unicode or --disable-unicode was given.
5600if test "${enable_unicode+set}" = set; then
5601 enableval="$enable_unicode"
5602
5603 if test "$enableval" = yes; then
5604 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5605 else
5606 ac_cv_use_unicode='wxUSE_UNICODE=no'
5607 fi
5608
5609else
5610
5611 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5612 if test "x$LINE" != x ; then
5613 eval "DEFAULT_$LINE"
5614 else
5615 no_cache=1
5616 fi
5617
5618 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5619
5620fi;
5621
5622 eval "$ac_cv_use_unicode"
5623 if test "$no_cache" != 1; then
5624 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5625 fi
5626
5627 if test "$wxUSE_UNICODE" = yes; then
5628 echo "$as_me:$LINENO: result: yes" >&5
5629echo "${ECHO_T}yes" >&6
5630 else
5631 echo "$as_me:$LINENO: result: no" >&5
5632echo "${ECHO_T}no" >&6
5633 fi
5634
5635
5636 enablestring=
5637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5638echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5639 no_cache=0
5640 # Check whether --enable-sound or --disable-sound was given.
5641if test "${enable_sound+set}" = set; then
5642 enableval="$enable_sound"
5643
5644 if test "$enableval" = yes; then
5645 ac_cv_use_sound='wxUSE_SOUND=yes'
5646 else
5647 ac_cv_use_sound='wxUSE_SOUND=no'
5648 fi
5649
5650else
5651
5652 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5653 if test "x$LINE" != x ; then
5654 eval "DEFAULT_$LINE"
5655 else
5656 no_cache=1
5657 fi
5658
5659 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5660
5661fi;
5662
5663 eval "$ac_cv_use_sound"
5664 if test "$no_cache" != 1; then
5665 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5666 fi
5667
5668 if test "$wxUSE_SOUND" = yes; then
5669 echo "$as_me:$LINENO: result: yes" >&5
5670echo "${ECHO_T}yes" >&6
5671 else
5672 echo "$as_me:$LINENO: result: no" >&5
5673echo "${ECHO_T}no" >&6
5674 fi
5675
5676
5677 enablestring=
5678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5679echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5680 no_cache=0
5681 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5682if test "${enable_wxprintfv+set}" = set; then
5683 enableval="$enable_wxprintfv"
5684
5685 if test "$enableval" = yes; then
5686 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5687 else
5688 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5689 fi
5690
5691else
5692
5693 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5694 if test "x$LINE" != x ; then
5695 eval "DEFAULT_$LINE"
5696 else
5697 no_cache=1
5698 fi
5699
5700 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5701
5702fi;
5703
5704 eval "$ac_cv_use_wxprintfv"
5705 if test "$no_cache" != 1; then
5706 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5707 fi
5708
5709 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5710 echo "$as_me:$LINENO: result: yes" >&5
5711echo "${ECHO_T}yes" >&6
5712 else
5713 echo "$as_me:$LINENO: result: no" >&5
5714echo "${ECHO_T}no" >&6
5715 fi
5716
5717
5718 enablestring=
5719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5720echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5721 no_cache=0
5722 # Check whether --enable-zipstream or --disable-zipstream was given.
5723if test "${enable_zipstream+set}" = set; then
5724 enableval="$enable_zipstream"
5725
5726 if test "$enableval" = yes; then
5727 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5728 else
5729 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5730 fi
5731
5732else
5733
5734 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5735 if test "x$LINE" != x ; then
5736 eval "DEFAULT_$LINE"
5737 else
5738 no_cache=1
5739 fi
5740
5741 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5742
5743fi;
5744
5745 eval "$ac_cv_use_zipstream"
5746 if test "$no_cache" != 1; then
5747 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5748 fi
5749
5750 if test "$wxUSE_ZIPSTREAM" = yes; then
5751 echo "$as_me:$LINENO: result: yes" >&5
5752echo "${ECHO_T}yes" >&6
5753 else
5754 echo "$as_me:$LINENO: result: no" >&5
5755echo "${ECHO_T}no" >&6
5756 fi
5757
5758
a848cd7e
SC
5759
5760 enablestring=
5761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5762echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5763 no_cache=0
5764 # Check whether --enable-url or --disable-url was given.
5765if test "${enable_url+set}" = set; then
5766 enableval="$enable_url"
5767
5768 if test "$enableval" = yes; then
5769 ac_cv_use_url='wxUSE_URL=yes'
5770 else
5771 ac_cv_use_url='wxUSE_URL=no'
5772 fi
5773
5774else
5775
5776 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5777 if test "x$LINE" != x ; then
5778 eval "DEFAULT_$LINE"
5779 else
5780 no_cache=1
5781 fi
5782
5783 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5784
5785fi;
5786
5787 eval "$ac_cv_use_url"
5788 if test "$no_cache" != 1; then
5789 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5790 fi
5791
5792 if test "$wxUSE_URL" = yes; then
5793 echo "$as_me:$LINENO: result: yes" >&5
5794echo "${ECHO_T}yes" >&6
5795 else
5796 echo "$as_me:$LINENO: result: no" >&5
5797echo "${ECHO_T}no" >&6
5798 fi
5799
5800
5801 enablestring=
5802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5803echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5804 no_cache=0
5805 # Check whether --enable-protocol or --disable-protocol was given.
5806if test "${enable_protocol+set}" = set; then
5807 enableval="$enable_protocol"
5808
5809 if test "$enableval" = yes; then
5810 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5811 else
5812 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5813 fi
5814
5815else
5816
5817 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5818 if test "x$LINE" != x ; then
5819 eval "DEFAULT_$LINE"
5820 else
5821 no_cache=1
5822 fi
5823
5824 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5825
5826fi;
5827
5828 eval "$ac_cv_use_protocol"
5829 if test "$no_cache" != 1; then
5830 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5831 fi
5832
5833 if test "$wxUSE_PROTOCOL" = yes; then
5834 echo "$as_me:$LINENO: result: yes" >&5
5835echo "${ECHO_T}yes" >&6
5836 else
5837 echo "$as_me:$LINENO: result: no" >&5
5838echo "${ECHO_T}no" >&6
5839 fi
5840
5841
5842 enablestring=
5843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5844echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5845 no_cache=0
5846 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5847if test "${enable_protocol_http+set}" = set; then
5848 enableval="$enable_protocol_http"
5849
5850 if test "$enableval" = yes; then
5851 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5852 else
5853 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5854 fi
5855
5856else
5857
5858 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5859 if test "x$LINE" != x ; then
5860 eval "DEFAULT_$LINE"
5861 else
5862 no_cache=1
5863 fi
5864
5865 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5866
5867fi;
5868
5869 eval "$ac_cv_use_protocol_http"
5870 if test "$no_cache" != 1; then
5871 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5872 fi
5873
5874 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5875 echo "$as_me:$LINENO: result: yes" >&5
5876echo "${ECHO_T}yes" >&6
5877 else
5878 echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6
5880 fi
5881
5882
5883 enablestring=
5884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5885echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5886 no_cache=0
5887 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5888if test "${enable_protocol_ftp+set}" = set; then
5889 enableval="$enable_protocol_ftp"
5890
5891 if test "$enableval" = yes; then
5892 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5893 else
5894 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5895 fi
5896
5897else
5898
5899 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5900 if test "x$LINE" != x ; then
5901 eval "DEFAULT_$LINE"
5902 else
5903 no_cache=1
5904 fi
5905
5906 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5907
5908fi;
5909
5910 eval "$ac_cv_use_protocol_ftp"
5911 if test "$no_cache" != 1; then
5912 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5913 fi
5914
5915 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5916 echo "$as_me:$LINENO: result: yes" >&5
5917echo "${ECHO_T}yes" >&6
5918 else
5919 echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6
5921 fi
5922
5923
5924 enablestring=
5925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5926echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5927 no_cache=0
5928 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5929if test "${enable_protocol_file+set}" = set; then
5930 enableval="$enable_protocol_file"
5931
5932 if test "$enableval" = yes; then
5933 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5934 else
5935 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5936 fi
5937
5938else
5939
5940 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5941 if test "x$LINE" != x ; then
5942 eval "DEFAULT_$LINE"
5943 else
5944 no_cache=1
5945 fi
5946
5947 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5948
5949fi;
5950
5951 eval "$ac_cv_use_protocol_file"
5952 if test "$no_cache" != 1; then
5953 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5954 fi
5955
5956 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5957 echo "$as_me:$LINENO: result: yes" >&5
5958echo "${ECHO_T}yes" >&6
5959 else
5960 echo "$as_me:$LINENO: result: no" >&5
5961echo "${ECHO_T}no" >&6
5962 fi
5963
5964
5965
5966
5967
5968 enablestring=
5969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5970echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5971 no_cache=0
5972 # Check whether --enable-threads or --disable-threads was given.
5973if test "${enable_threads+set}" = set; then
5974 enableval="$enable_threads"
5975
5976 if test "$enableval" = yes; then
5977 ac_cv_use_threads='wxUSE_THREADS=yes'
5978 else
5979 ac_cv_use_threads='wxUSE_THREADS=no'
5980 fi
5981
5982else
5983
5984 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5985 if test "x$LINE" != x ; then
5986 eval "DEFAULT_$LINE"
5987 else
5988 no_cache=1
5989 fi
5990
5991 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5992
5993fi;
5994
5995 eval "$ac_cv_use_threads"
5996 if test "$no_cache" != 1; then
5997 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5998 fi
5999
6000 if test "$wxUSE_THREADS" = yes; then
6001 echo "$as_me:$LINENO: result: yes" >&5
6002echo "${ECHO_T}yes" >&6
6003 else
6004 echo "$as_me:$LINENO: result: no" >&5
6005echo "${ECHO_T}no" >&6
6006 fi
6007
6008
6009if test "$wxUSE_GUI" = "yes"; then
6010
6011
6012
6013 enablestring=
6014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6015echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6016 no_cache=0
6017 # Check whether --enable-docview or --disable-docview was given.
6018if test "${enable_docview+set}" = set; then
6019 enableval="$enable_docview"
6020
6021 if test "$enableval" = yes; then
6022 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6023 else
6024 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6025 fi
6026
6027else
6028
6029 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6030 if test "x$LINE" != x ; then
6031 eval "DEFAULT_$LINE"
6032 else
6033 no_cache=1
6034 fi
6035
6036 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6037
6038fi;
6039
6040 eval "$ac_cv_use_docview"
6041 if test "$no_cache" != 1; then
6042 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6043 fi
6044
6045 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6046 echo "$as_me:$LINENO: result: yes" >&5
6047echo "${ECHO_T}yes" >&6
6048 else
6049 echo "$as_me:$LINENO: result: no" >&5
6050echo "${ECHO_T}no" >&6
6051 fi
6052
6053
6054 enablestring=
6055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6056echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6057 no_cache=0
6058 # Check whether --enable-help or --disable-help was given.
6059if test "${enable_help+set}" = set; then
6060 enableval="$enable_help"
6061
6062 if test "$enableval" = yes; then
6063 ac_cv_use_help='wxUSE_HELP=yes'
6064 else
6065 ac_cv_use_help='wxUSE_HELP=no'
6066 fi
6067
6068else
6069
6070 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6071 if test "x$LINE" != x ; then
6072 eval "DEFAULT_$LINE"
6073 else
6074 no_cache=1
6075 fi
6076
6077 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6078
6079fi;
6080
6081 eval "$ac_cv_use_help"
6082 if test "$no_cache" != 1; then
6083 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6084 fi
6085
6086 if test "$wxUSE_HELP" = yes; then
6087 echo "$as_me:$LINENO: result: yes" >&5
6088echo "${ECHO_T}yes" >&6
6089 else
6090 echo "$as_me:$LINENO: result: no" >&5
6091echo "${ECHO_T}no" >&6
6092 fi
6093
6094
6095 enablestring=
6096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6097echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6098 no_cache=0
6099 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6100if test "${enable_mshtmlhelp+set}" = set; then
6101 enableval="$enable_mshtmlhelp"
6102
6103 if test "$enableval" = yes; then
6104 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6105 else
6106 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6107 fi
6108
6109else
6110
6111 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6112 if test "x$LINE" != x ; then
6113 eval "DEFAULT_$LINE"
6114 else
6115 no_cache=1
6116 fi
6117
6118 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6119
6120fi;
6121
6122 eval "$ac_cv_use_mshtmlhelp"
6123 if test "$no_cache" != 1; then
6124 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6125 fi
6126
6127 if test "$wxUSE_MS_HTML_HELP" = yes; then
6128 echo "$as_me:$LINENO: result: yes" >&5
6129echo "${ECHO_T}yes" >&6
6130 else
6131 echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6
6133 fi
6134
6135
6136 enablestring=
6137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6138echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6139 no_cache=0
6140 # Check whether --enable-html or --disable-html was given.
6141if test "${enable_html+set}" = set; then
6142 enableval="$enable_html"
6143
6144 if test "$enableval" = yes; then
6145 ac_cv_use_html='wxUSE_HTML=yes'
6146 else
6147 ac_cv_use_html='wxUSE_HTML=no'
6148 fi
6149
6150else
6151
6152 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6153 if test "x$LINE" != x ; then
6154 eval "DEFAULT_$LINE"
6155 else
6156 no_cache=1
6157 fi
6158
6159 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6160
6161fi;
6162
6163 eval "$ac_cv_use_html"
6164 if test "$no_cache" != 1; then
6165 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6166 fi
6167
6168 if test "$wxUSE_HTML" = yes; then
6169 echo "$as_me:$LINENO: result: yes" >&5
6170echo "${ECHO_T}yes" >&6
6171 else
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
6174 fi
6175
6176
6177 enablestring=
6178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6179echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6180 no_cache=0
6181 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6182if test "${enable_htmlhelp+set}" = set; then
6183 enableval="$enable_htmlhelp"
6184
6185 if test "$enableval" = yes; then
6186 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6187 else
6188 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6189 fi
6190
6191else
6192
6193 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6201
6202fi;
6203
6204 eval "$ac_cv_use_htmlhelp"
6205 if test "$no_cache" != 1; then
6206 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6207 fi
6208
6209 if test "$wxUSE_WXHTML_HELP" = yes; then
6210 echo "$as_me:$LINENO: result: yes" >&5
6211echo "${ECHO_T}yes" >&6
6212 else
6213 echo "$as_me:$LINENO: result: no" >&5
6214echo "${ECHO_T}no" >&6
6215 fi
6216
6217
6218 enablestring=
6219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6220echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6221 no_cache=0
6222 # Check whether --enable-constraints or --disable-constraints was given.
6223if test "${enable_constraints+set}" = set; then
6224 enableval="$enable_constraints"
6225
6226 if test "$enableval" = yes; then
6227 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6228 else
6229 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6230 fi
6231
6232else
6233
6234 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
6241 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6242
6243fi;
6244
6245 eval "$ac_cv_use_constraints"
6246 if test "$no_cache" != 1; then
6247 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6248 fi
6249
6250 if test "$wxUSE_CONSTRAINTS" = yes; then
6251 echo "$as_me:$LINENO: result: yes" >&5
6252echo "${ECHO_T}yes" >&6
6253 else
6254 echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6
6256 fi
6257
6258
6259 enablestring=
6260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6261echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6262 no_cache=0
6263 # Check whether --enable-printarch or --disable-printarch was given.
6264if test "${enable_printarch+set}" = set; then
6265 enableval="$enable_printarch"
6266
6267 if test "$enableval" = yes; then
6268 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6269 else
6270 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6271 fi
6272
6273else
6274
6275 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6283
6284fi;
6285
6286 eval "$ac_cv_use_printarch"
6287 if test "$no_cache" != 1; then
6288 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6289 fi
6290
6291 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6292 echo "$as_me:$LINENO: result: yes" >&5
6293echo "${ECHO_T}yes" >&6
6294 else
6295 echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6
6297 fi
6298
6299
6300 enablestring=
6301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6302echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6303 no_cache=0
6304 # Check whether --enable-mdi or --disable-mdi was given.
6305if test "${enable_mdi+set}" = set; then
6306 enableval="$enable_mdi"
6307
6308 if test "$enableval" = yes; then
8a7b1113 6309 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6310 else
8a7b1113 6311 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6312 fi
6313
6314else
6315
8a7b1113 6316 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6317 if test "x$LINE" != x ; then
6318 eval "DEFAULT_$LINE"
6319 else
6320 no_cache=1
6321 fi
6322
8a7b1113 6323 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6324
6325fi;
6326
6327 eval "$ac_cv_use_mdi"
6328 if test "$no_cache" != 1; then
6329 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6330 fi
6331
8a7b1113
VZ
6332 if test "$wxUSE_MDI" = yes; then
6333 echo "$as_me:$LINENO: result: yes" >&5
6334echo "${ECHO_T}yes" >&6
6335 else
6336 echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6
6338 fi
6339
6340
6341 enablestring=
6342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6343echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6344 no_cache=0
6345 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6346if test "${enable_mdidoc+set}" = set; then
6347 enableval="$enable_mdidoc"
6348
6349 if test "$enableval" = yes; then
6350 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6351 else
6352 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6353 fi
6354
6355else
6356
6357 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6365
6366fi;
6367
6368 eval "$ac_cv_use_mdidoc"
6369 if test "$no_cache" != 1; then
6370 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6371 fi
6372
a848cd7e
SC
6373 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6374 echo "$as_me:$LINENO: result: yes" >&5
6375echo "${ECHO_T}yes" >&6
6376 else
6377 echo "$as_me:$LINENO: result: no" >&5
6378echo "${ECHO_T}no" >&6
6379 fi
6380
6381
6382 enablestring=
6383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6384echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6385 no_cache=0
6386 # Check whether --enable-loggui or --disable-loggui was given.
6387if test "${enable_loggui+set}" = set; then
6388 enableval="$enable_loggui"
6389
6390 if test "$enableval" = yes; then
6391 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6392 else
6393 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6394 fi
6395
6396else
6397
6398 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6399 if test "x$LINE" != x ; then
6400 eval "DEFAULT_$LINE"
6401 else
6402 no_cache=1
6403 fi
6404
6405 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6406
6407fi;
6408
6409 eval "$ac_cv_use_loggui"
6410 if test "$no_cache" != 1; then
6411 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6412 fi
6413
6414 if test "$wxUSE_LOGGUI" = yes; then
6415 echo "$as_me:$LINENO: result: yes" >&5
6416echo "${ECHO_T}yes" >&6
6417 else
6418 echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6
6420 fi
6421
6422
6423 enablestring=
6424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6425echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6426 no_cache=0
6427 # Check whether --enable-logwin or --disable-logwin was given.
6428if test "${enable_logwin+set}" = set; then
6429 enableval="$enable_logwin"
6430
6431 if test "$enableval" = yes; then
6432 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6433 else
6434 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6435 fi
6436
6437else
6438
6439 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6440 if test "x$LINE" != x ; then
6441 eval "DEFAULT_$LINE"
6442 else
6443 no_cache=1
6444 fi
6445
6446 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6447
6448fi;
6449
6450 eval "$ac_cv_use_logwin"
6451 if test "$no_cache" != 1; then
6452 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6453 fi
6454
6455 if test "$wxUSE_LOGWINDOW" = yes; then
6456 echo "$as_me:$LINENO: result: yes" >&5
6457echo "${ECHO_T}yes" >&6
6458 else
6459 echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6
6461 fi
6462
6463
6464 enablestring=
6465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6466echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6467 no_cache=0
6468 # Check whether --enable-logdialog or --disable-logdialog was given.
6469if test "${enable_logdialog+set}" = set; then
6470 enableval="$enable_logdialog"
6471
6472 if test "$enableval" = yes; then
6473 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6474 else
6475 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6476 fi
6477
6478else
6479
6480 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6481 if test "x$LINE" != x ; then
6482 eval "DEFAULT_$LINE"
6483 else
6484 no_cache=1
6485 fi
6486
6487 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6488
6489fi;
6490
6491 eval "$ac_cv_use_logdialog"
6492 if test "$no_cache" != 1; then
6493 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6494 fi
6495
6496 if test "$wxUSE_LOGDIALOG" = yes; then
6497 echo "$as_me:$LINENO: result: yes" >&5
6498echo "${ECHO_T}yes" >&6
6499 else
6500 echo "$as_me:$LINENO: result: no" >&5
6501echo "${ECHO_T}no" >&6
6502 fi
6503
6504
6505
6506 enablestring=
6507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6508echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6509 no_cache=0
6510 # Check whether --enable-postscript or --disable-postscript was given.
6511if test "${enable_postscript+set}" = set; then
6512 enableval="$enable_postscript"
6513
6514 if test "$enableval" = yes; then
6515 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6516 else
6517 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6518 fi
6519
6520else
6521
6522 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6523 if test "x$LINE" != x ; then
6524 eval "DEFAULT_$LINE"
6525 else
6526 no_cache=1
6527 fi
6528
6529 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6530
6531fi;
6532
6533 eval "$ac_cv_use_postscript"
6534 if test "$no_cache" != 1; then
6535 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6536 fi
6537
6538 if test "$wxUSE_POSTSCRIPT" = yes; then
6539 echo "$as_me:$LINENO: result: yes" >&5
6540echo "${ECHO_T}yes" >&6
6541 else
6542 echo "$as_me:$LINENO: result: no" >&5
6543echo "${ECHO_T}no" >&6
6544 fi
6545
6546
6547
6548
6549
6550 enablestring=
6551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6552echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6553 no_cache=0
6554 # Check whether --enable-prologio or --disable-prologio was given.
6555if test "${enable_prologio+set}" = set; then
6556 enableval="$enable_prologio"
6557
6558 if test "$enableval" = yes; then
6559 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6560 else
6561 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6562 fi
6563
6564else
6565
6566 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6567 if test "x$LINE" != x ; then
6568 eval "DEFAULT_$LINE"
6569 else
6570 no_cache=1
6571 fi
6572
6573 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6574
6575fi;
6576
6577 eval "$ac_cv_use_prologio"
6578 if test "$no_cache" != 1; then
6579 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6580 fi
6581
6582 if test "$wxUSE_PROLOGIO" = yes; then
6583 echo "$as_me:$LINENO: result: yes" >&5
6584echo "${ECHO_T}yes" >&6
6585 else
6586 echo "$as_me:$LINENO: result: no" >&5
6587echo "${ECHO_T}no" >&6
6588 fi
6589
6590
6591 enablestring=
6592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6593echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6594 no_cache=0
6595 # Check whether --enable-resources or --disable-resources was given.
6596if test "${enable_resources+set}" = set; then
6597 enableval="$enable_resources"
6598
6599 if test "$enableval" = yes; then
6600 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6601 else
6602 ac_cv_use_resources='wxUSE_RESOURCES=no'
6603 fi
6604
6605else
6606
6607 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6608 if test "x$LINE" != x ; then
6609 eval "DEFAULT_$LINE"
6610 else
6611 no_cache=1
6612 fi
6613
6614 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6615
6616fi;
6617
6618 eval "$ac_cv_use_resources"
6619 if test "$no_cache" != 1; then
6620 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6621 fi
6622
6623 if test "$wxUSE_RESOURCES" = yes; then
6624 echo "$as_me:$LINENO: result: yes" >&5
6625echo "${ECHO_T}yes" >&6
6626 else
6627 echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6
6629 fi
6630
6631
6632
6633
6634 enablestring=
6635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6636echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6637 no_cache=0
6638 # Check whether --enable-clipboard or --disable-clipboard was given.
6639if test "${enable_clipboard+set}" = set; then
6640 enableval="$enable_clipboard"
6641
6642 if test "$enableval" = yes; then
6643 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6644 else
6645 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6646 fi
6647
6648else
6649
6650 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6651 if test "x$LINE" != x ; then
6652 eval "DEFAULT_$LINE"
6653 else
6654 no_cache=1
6655 fi
6656
6657 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6658
6659fi;
6660
6661 eval "$ac_cv_use_clipboard"
6662 if test "$no_cache" != 1; then
6663 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6664 fi
6665
6666 if test "$wxUSE_CLIPBOARD" = yes; then
6667 echo "$as_me:$LINENO: result: yes" >&5
6668echo "${ECHO_T}yes" >&6
6669 else
6670 echo "$as_me:$LINENO: result: no" >&5
6671echo "${ECHO_T}no" >&6
6672 fi
6673
6674
6675 enablestring=
6676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6677echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6678 no_cache=0
6679 # Check whether --enable-dnd or --disable-dnd was given.
6680if test "${enable_dnd+set}" = set; then
6681 enableval="$enable_dnd"
6682
6683 if test "$enableval" = yes; then
6684 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6685 else
6686 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6687 fi
6688
6689else
6690
6691 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6692 if test "x$LINE" != x ; then
6693 eval "DEFAULT_$LINE"
6694 else
6695 no_cache=1
6696 fi
6697
6698 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6699
6700fi;
6701
6702 eval "$ac_cv_use_dnd"
6703 if test "$no_cache" != 1; then
6704 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6705 fi
6706
6707 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6708 echo "$as_me:$LINENO: result: yes" >&5
6709echo "${ECHO_T}yes" >&6
6710 else
6711 echo "$as_me:$LINENO: result: no" >&5
6712echo "${ECHO_T}no" >&6
6713 fi
6714
6715
6716 enablestring=
6717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6718echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6719 no_cache=0
6720 # Check whether --enable-metafile or --disable-metafile was given.
6721if test "${enable_metafile+set}" = set; then
6722 enableval="$enable_metafile"
6723
6724 if test "$enableval" = yes; then
6725 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6726 else
6727 ac_cv_use_metafile='wxUSE_METAFILE=no'
6728 fi
6729
6730else
6731
6732 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6733 if test "x$LINE" != x ; then
6734 eval "DEFAULT_$LINE"
6735 else
6736 no_cache=1
6737 fi
6738
6739 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6740
6741fi;
6742
6743 eval "$ac_cv_use_metafile"
6744 if test "$no_cache" != 1; then
6745 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6746 fi
6747
6748 if test "$wxUSE_METAFILE" = yes; then
6749 echo "$as_me:$LINENO: result: yes" >&5
6750echo "${ECHO_T}yes" >&6
6751 else
6752 echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6
6754 fi
6755
6756
6757
6758
6759
6760 enablestring=
6761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6762echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6763 no_cache=0
6764 # Check whether --enable-controls or --disable-controls was given.
6765if test "${enable_controls+set}" = set; then
6766 enableval="$enable_controls"
6767
6768 if test "$enableval" = yes; then
6769 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6770 else
6771 ac_cv_use_controls='wxUSE_CONTROLS=no'
6772 fi
6773
6774else
6775
6776 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6777 if test "x$LINE" != x ; then
6778 eval "DEFAULT_$LINE"
6779 else
6780 no_cache=1
6781 fi
6782
6783 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6784
6785fi;
6786
6787 eval "$ac_cv_use_controls"
6788 if test "$no_cache" != 1; then
6789 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6790 fi
6791
6792 if test "$wxUSE_CONTROLS" = yes; then
6793 echo "$as_me:$LINENO: result: yes" >&5
6794echo "${ECHO_T}yes" >&6
6795 else
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
6798 fi
6799
6800
6801if test "$wxUSE_CONTROLS" = "yes"; then
6802 DEFAULT_wxUSE_ACCEL=yes
6803 DEFAULT_wxUSE_BMPBUTTON=yes
6804 DEFAULT_wxUSE_BUTTON=yes
6805 DEFAULT_wxUSE_CALCTRL=no
6806 DEFAULT_wxUSE_CARET=yes
6807 DEFAULT_wxUSE_COMBOBOX=yes
6808 DEFAULT_wxUSE_CHECKBOX=yes
6809 DEFAULT_wxUSE_CHECKLISTBOX=yes
6810 DEFAULT_wxUSE_CHOICE=yes
6811 DEFAULT_wxUSE_GAUGE=yes
6812 DEFAULT_wxUSE_GRID=yes
6813 DEFAULT_wxUSE_IMAGLIST=yes
6814 DEFAULT_wxUSE_LISTBOOK=yes
6815 DEFAULT_wxUSE_LISTBOX=yes
6816 DEFAULT_wxUSE_LISTCTRL=yes
6817 DEFAULT_wxUSE_NOTEBOOK=yes
6818 DEFAULT_wxUSE_RADIOBOX=yes
6819 DEFAULT_wxUSE_RADIOBTN=yes
6820 DEFAULT_wxUSE_SASH=yes
6821 DEFAULT_wxUSE_SCROLLBAR=yes
6822 DEFAULT_wxUSE_SLIDER=yes
6823 DEFAULT_wxUSE_SPINBTN=yes
6824 DEFAULT_wxUSE_SPINCTRL=yes
6825 DEFAULT_wxUSE_SPLITTER=yes
6826 DEFAULT_wxUSE_STATBMP=yes
6827 DEFAULT_wxUSE_STATBOX=yes
6828 DEFAULT_wxUSE_STATLINE=yes
6829 DEFAULT_wxUSE_STATUSBAR=yes
6830 DEFAULT_wxUSE_TAB_DIALOG=yes
6831 DEFAULT_wxUSE_TOGGLEBTN=yes
6832 DEFAULT_wxUSE_TOOLBAR=yes
6833 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6834 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6835 DEFAULT_wxUSE_TOOLTIPS=yes
6836 DEFAULT_wxUSE_TREECTRL=yes
6837 DEFAULT_wxUSE_POPUPWIN=yes
6838 DEFAULT_wxUSE_TIPWINDOW=yes
6839elif test "$wxUSE_CONTROLS" = "no"; then
6840 DEFAULT_wxUSE_ACCEL=no
6841 DEFAULT_wxUSE_BMPBUTTON=no
6842 DEFAULT_wxUSE_BUTTON=no
6843 DEFAULT_wxUSE_CALCTRL=no
6844 DEFAULT_wxUSE_CARET=no
6845 DEFAULT_wxUSE_COMBOBOX=no
6846 DEFAULT_wxUSE_CHECKBOX=no
6847 DEFAULT_wxUSE_CHECKLISTBOX=no
6848 DEFAULT_wxUSE_CHOICE=no
6849 DEFAULT_wxUSE_GAUGE=no
6850 DEFAULT_wxUSE_GRID=no
6851 DEFAULT_wxUSE_IMAGLIST=no
6852 DEFAULT_wxUSE_LISTBOOK=no
6853 DEFAULT_wxUSE_LISTBOX=no
6854 DEFAULT_wxUSE_LISTCTRL=no
6855 DEFAULT_wxUSE_NOTEBOOK=no
6856 DEFAULT_wxUSE_RADIOBOX=no
6857 DEFAULT_wxUSE_RADIOBTN=no
6858 DEFAULT_wxUSE_SASH=no
6859 DEFAULT_wxUSE_SCROLLBAR=no
6860 DEFAULT_wxUSE_SLIDER=no
6861 DEFAULT_wxUSE_SPINBTN=no
6862 DEFAULT_wxUSE_SPINCTRL=no
6863 DEFAULT_wxUSE_SPLITTER=no
6864 DEFAULT_wxUSE_STATBMP=no
6865 DEFAULT_wxUSE_STATBOX=no
6866 DEFAULT_wxUSE_STATLINE=no
6867 DEFAULT_wxUSE_STATUSBAR=no
6868 DEFAULT_wxUSE_TAB_DIALOG=no
6869 DEFAULT_wxUSE_TOGGLEBTN=no
6870 DEFAULT_wxUSE_TOOLBAR=no
6871 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6872 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6873 DEFAULT_wxUSE_TOOLTIPS=no
6874 DEFAULT_wxUSE_TREECTRL=no
6875 DEFAULT_wxUSE_POPUPWIN=no
6876 DEFAULT_wxUSE_TIPWINDOW=no
6877fi
6878
6879## FIXME: This is a blatant hack
6880if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6881 wxUSE_PRINTING_ARCHITECTURE=no
6882 wxUSE_DRAG_AND_DROP=no
6883 # Generic notebook requires tab dialog
6884 DEFAULT_wxUSE_TABDIALOG=yes
6885 DEFAULT_wxUSE_SCROLLBAR=no
6886 DEFAULT_wxUSE_TOOLTIPS=no
6887 DEFAULT_wxUSE_DRAGIMAGE=no
6888fi
6889
6890
6891 enablestring=
6892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6893echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6894 no_cache=0
6895 # Check whether --enable-accel or --disable-accel was given.
6896if test "${enable_accel+set}" = set; then
6897 enableval="$enable_accel"
6898
6899 if test "$enableval" = yes; then
6900 ac_cv_use_accel='wxUSE_ACCEL=yes'
6901 else
6902 ac_cv_use_accel='wxUSE_ACCEL=no'
6903 fi
6904
6905else
6906
6907 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6908 if test "x$LINE" != x ; then
6909 eval "DEFAULT_$LINE"
6910 else
6911 no_cache=1
6912 fi
6913
6914 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6915
6916fi;
6917
6918 eval "$ac_cv_use_accel"
6919 if test "$no_cache" != 1; then
6920 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6921 fi
6922
6923 if test "$wxUSE_ACCEL" = yes; then
6924 echo "$as_me:$LINENO: result: yes" >&5
6925echo "${ECHO_T}yes" >&6
6926 else
6927 echo "$as_me:$LINENO: result: no" >&5
6928echo "${ECHO_T}no" >&6
6929 fi
6930
6931
6932 enablestring=
6933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6934echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6935 no_cache=0
6936 # Check whether --enable-button or --disable-button was given.
6937if test "${enable_button+set}" = set; then
6938 enableval="$enable_button"
6939
6940 if test "$enableval" = yes; then
6941 ac_cv_use_button='wxUSE_BUTTON=yes'
6942 else
6943 ac_cv_use_button='wxUSE_BUTTON=no'
6944 fi
6945
6946else
6947
6948 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6949 if test "x$LINE" != x ; then
6950 eval "DEFAULT_$LINE"
6951 else
6952 no_cache=1
6953 fi
6954
6955 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6956
6957fi;
6958
6959 eval "$ac_cv_use_button"
6960 if test "$no_cache" != 1; then
6961 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6962 fi
6963
6964 if test "$wxUSE_BUTTON" = yes; then
6965 echo "$as_me:$LINENO: result: yes" >&5
6966echo "${ECHO_T}yes" >&6
6967 else
6968 echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6
6970 fi
6971
6972
6973 enablestring=
6974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6975echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6976 no_cache=0
6977 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6978if test "${enable_bmpbutton+set}" = set; then
6979 enableval="$enable_bmpbutton"
6980
6981 if test "$enableval" = yes; then
6982 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6983 else
6984 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6985 fi
6986
6987else
6988
6989 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6990 if test "x$LINE" != x ; then
6991 eval "DEFAULT_$LINE"
6992 else
6993 no_cache=1
6994 fi
6995
6996 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6997
6998fi;
6999
7000 eval "$ac_cv_use_bmpbutton"
7001 if test "$no_cache" != 1; then
7002 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7003 fi
7004
7005 if test "$wxUSE_BMPBUTTON" = yes; then
7006 echo "$as_me:$LINENO: result: yes" >&5
7007echo "${ECHO_T}yes" >&6
7008 else
7009 echo "$as_me:$LINENO: result: no" >&5
7010echo "${ECHO_T}no" >&6
7011 fi
7012
7013
7014 enablestring=
7015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7016echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7017 no_cache=0
7018 # Check whether --enable-calendar or --disable-calendar was given.
7019if test "${enable_calendar+set}" = set; then
7020 enableval="$enable_calendar"
7021
7022 if test "$enableval" = yes; then
7023 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7024 else
7025 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7026 fi
7027
7028else
7029
7030 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7031 if test "x$LINE" != x ; then
7032 eval "DEFAULT_$LINE"
7033 else
7034 no_cache=1
7035 fi
7036
7037 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7038
7039fi;
7040
7041 eval "$ac_cv_use_calendar"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_CALCTRL" = yes; then
7047 echo "$as_me:$LINENO: result: yes" >&5
7048echo "${ECHO_T}yes" >&6
7049 else
7050 echo "$as_me:$LINENO: result: no" >&5
7051echo "${ECHO_T}no" >&6
7052 fi
7053
7054
7055 enablestring=
7056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7057echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7058 no_cache=0
7059 # Check whether --enable-caret or --disable-caret was given.
7060if test "${enable_caret+set}" = set; then
7061 enableval="$enable_caret"
7062
7063 if test "$enableval" = yes; then
7064 ac_cv_use_caret='wxUSE_CARET=yes'
7065 else
7066 ac_cv_use_caret='wxUSE_CARET=no'
7067 fi
7068
7069else
7070
7071 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7072 if test "x$LINE" != x ; then
7073 eval "DEFAULT_$LINE"
7074 else
7075 no_cache=1
7076 fi
7077
7078 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7079
7080fi;
7081
7082 eval "$ac_cv_use_caret"
7083 if test "$no_cache" != 1; then
7084 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7085 fi
7086
7087 if test "$wxUSE_CARET" = yes; then
7088 echo "$as_me:$LINENO: result: yes" >&5
7089echo "${ECHO_T}yes" >&6
7090 else
7091 echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6
7093 fi
7094
7095
7096 enablestring=
7097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7098echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7099 no_cache=0
7100 # Check whether --enable-checkbox or --disable-checkbox was given.
7101if test "${enable_checkbox+set}" = set; then
7102 enableval="$enable_checkbox"
7103
7104 if test "$enableval" = yes; then
7105 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7106 else
7107 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7108 fi
7109
7110else
7111
7112 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7113 if test "x$LINE" != x ; then
7114 eval "DEFAULT_$LINE"
7115 else
7116 no_cache=1
7117 fi
7118
7119 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7120
7121fi;
7122
7123 eval "$ac_cv_use_checkbox"
7124 if test "$no_cache" != 1; then
7125 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7126 fi
7127
7128 if test "$wxUSE_CHECKBOX" = yes; then
7129 echo "$as_me:$LINENO: result: yes" >&5
7130echo "${ECHO_T}yes" >&6
7131 else
7132 echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6
7134 fi
7135
7136
7137 enablestring=
7138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7139echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7140 no_cache=0
7141 # Check whether --enable-checklst or --disable-checklst was given.
7142if test "${enable_checklst+set}" = set; then
7143 enableval="$enable_checklst"
7144
7145 if test "$enableval" = yes; then
7146 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7147 else
7148 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7149 fi
7150
7151else
7152
7153 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7154 if test "x$LINE" != x ; then
7155 eval "DEFAULT_$LINE"
7156 else
7157 no_cache=1
7158 fi
7159
7160 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7161
7162fi;
7163
7164 eval "$ac_cv_use_checklst"
7165 if test "$no_cache" != 1; then
7166 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7167 fi
7168
7169 if test "$wxUSE_CHECKLST" = yes; then
7170 echo "$as_me:$LINENO: result: yes" >&5
7171echo "${ECHO_T}yes" >&6
7172 else
7173 echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6
7175 fi
7176
7177
7178 enablestring=
7179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7180echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7181 no_cache=0
7182 # Check whether --enable-choice or --disable-choice was given.
7183if test "${enable_choice+set}" = set; then
7184 enableval="$enable_choice"
7185
7186 if test "$enableval" = yes; then
7187 ac_cv_use_choice='wxUSE_CHOICE=yes'
7188 else
7189 ac_cv_use_choice='wxUSE_CHOICE=no'
7190 fi
7191
7192else
7193
7194 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7195 if test "x$LINE" != x ; then
7196 eval "DEFAULT_$LINE"
7197 else
7198 no_cache=1
7199 fi
7200
7201 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7202
7203fi;
7204
7205 eval "$ac_cv_use_choice"
7206 if test "$no_cache" != 1; then
7207 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7208 fi
7209
7210 if test "$wxUSE_CHOICE" = yes; then
7211 echo "$as_me:$LINENO: result: yes" >&5
7212echo "${ECHO_T}yes" >&6
7213 else
7214 echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6
7216 fi
7217
7218
7219 enablestring=
7220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7221echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7222 no_cache=0
7223 # Check whether --enable-combobox or --disable-combobox was given.
7224if test "${enable_combobox+set}" = set; then
7225 enableval="$enable_combobox"
7226
7227 if test "$enableval" = yes; then
7228 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7229 else
7230 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7231 fi
7232
7233else
7234
7235 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7236 if test "x$LINE" != x ; then
7237 eval "DEFAULT_$LINE"
7238 else
7239 no_cache=1
7240 fi
7241
7242 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7243
7244fi;
7245
7246 eval "$ac_cv_use_combobox"
7247 if test "$no_cache" != 1; then
7248 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7249 fi
7250
7251 if test "$wxUSE_COMBOBOX" = yes; then
7252 echo "$as_me:$LINENO: result: yes" >&5
7253echo "${ECHO_T}yes" >&6
7254 else
7255 echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257 fi
7258
7259
7260 enablestring=
7261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7262echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7263 no_cache=0
7264 # Check whether --enable-display or --disable-display was given.
7265if test "${enable_display+set}" = set; then
7266 enableval="$enable_display"
7267
7268 if test "$enableval" = yes; then
7269 ac_cv_use_display='wxUSE_DISPLAY=yes'
7270 else
7271 ac_cv_use_display='wxUSE_DISPLAY=no'
7272 fi
7273
7274else
7275
7276 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7277 if test "x$LINE" != x ; then
7278 eval "DEFAULT_$LINE"
7279 else
7280 no_cache=1
7281 fi
7282
7283 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7284
7285fi;
7286
7287 eval "$ac_cv_use_display"
7288 if test "$no_cache" != 1; then
7289 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7290 fi
7291
7292 if test "$wxUSE_DISPLAY" = yes; then
7293 echo "$as_me:$LINENO: result: yes" >&5
7294echo "${ECHO_T}yes" >&6
7295 else
7296 echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6
7298 fi
7299
7300
7301 enablestring=
7302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7303echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7304 no_cache=0
7305 # Check whether --enable-gauge or --disable-gauge was given.
7306if test "${enable_gauge+set}" = set; then
7307 enableval="$enable_gauge"
7308
7309 if test "$enableval" = yes; then
7310 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7311 else
7312 ac_cv_use_gauge='wxUSE_GAUGE=no'
7313 fi
7314
7315else
7316
7317 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7318 if test "x$LINE" != x ; then
7319 eval "DEFAULT_$LINE"
7320 else
7321 no_cache=1
7322 fi
7323
7324 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7325
7326fi;
7327
7328 eval "$ac_cv_use_gauge"
7329 if test "$no_cache" != 1; then
7330 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7331 fi
7332
7333 if test "$wxUSE_GAUGE" = yes; then
7334 echo "$as_me:$LINENO: result: yes" >&5
7335echo "${ECHO_T}yes" >&6
7336 else
7337 echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6
7339 fi
7340
7341
7342 enablestring=
7343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7344echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7345 no_cache=0
7346 # Check whether --enable-grid or --disable-grid was given.
7347if test "${enable_grid+set}" = set; then
7348 enableval="$enable_grid"
7349
7350 if test "$enableval" = yes; then
7351 ac_cv_use_grid='wxUSE_GRID=yes'
7352 else
7353 ac_cv_use_grid='wxUSE_GRID=no'
7354 fi
7355
7356else
7357
7358 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7359 if test "x$LINE" != x ; then
7360 eval "DEFAULT_$LINE"
7361 else
7362 no_cache=1
7363 fi
7364
7365 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7366
7367fi;
7368
7369 eval "$ac_cv_use_grid"
7370 if test "$no_cache" != 1; then
7371 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7372 fi
7373
7374 if test "$wxUSE_GRID" = yes; then
7375 echo "$as_me:$LINENO: result: yes" >&5
7376echo "${ECHO_T}yes" >&6
7377 else
7378 echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6
7380 fi
7381
7382
7383 enablestring=
7384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7385echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7386 no_cache=0
7387 # Check whether --enable-imaglist or --disable-imaglist was given.
7388if test "${enable_imaglist+set}" = set; then
7389 enableval="$enable_imaglist"
7390
7391 if test "$enableval" = yes; then
7392 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7393 else
7394 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7395 fi
7396
7397else
7398
7399 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7400 if test "x$LINE" != x ; then
7401 eval "DEFAULT_$LINE"
7402 else
7403 no_cache=1
7404 fi
7405
7406 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7407
7408fi;
7409
7410 eval "$ac_cv_use_imaglist"
7411 if test "$no_cache" != 1; then
7412 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7413 fi
7414
7415 if test "$wxUSE_IMAGLIST" = yes; then
7416 echo "$as_me:$LINENO: result: yes" >&5
7417echo "${ECHO_T}yes" >&6
7418 else
7419 echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
7421 fi
7422
7423
7424 enablestring=
7425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7426echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7427 no_cache=0
7428 # Check whether --enable-listbook or --disable-listbook was given.
7429if test "${enable_listbook+set}" = set; then
7430 enableval="$enable_listbook"
7431
7432 if test "$enableval" = yes; then
7433 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7434 else
7435 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7436 fi
7437
7438else
7439
7440 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7441 if test "x$LINE" != x ; then
7442 eval "DEFAULT_$LINE"
7443 else
7444 no_cache=1
7445 fi
7446
7447 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7448
7449fi;
7450
7451 eval "$ac_cv_use_listbook"
7452 if test "$no_cache" != 1; then
7453 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7454 fi
7455
7456 if test "$wxUSE_LISTBOOK" = yes; then
7457 echo "$as_me:$LINENO: result: yes" >&5
7458echo "${ECHO_T}yes" >&6
7459 else
7460 echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6
7462 fi
7463
7464
7465 enablestring=
7466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7467echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7468 no_cache=0
7469 # Check whether --enable-listbox or --disable-listbox was given.
7470if test "${enable_listbox+set}" = set; then
7471 enableval="$enable_listbox"
7472
7473 if test "$enableval" = yes; then
7474 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7475 else
7476 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7477 fi
7478
7479else
7480
7481 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7482 if test "x$LINE" != x ; then
7483 eval "DEFAULT_$LINE"
7484 else
7485 no_cache=1
7486 fi
7487
7488 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7489
7490fi;
7491
7492 eval "$ac_cv_use_listbox"
7493 if test "$no_cache" != 1; then
7494 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7495 fi
7496
7497 if test "$wxUSE_LISTBOX" = yes; then
7498 echo "$as_me:$LINENO: result: yes" >&5
7499echo "${ECHO_T}yes" >&6
7500 else
7501 echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6
7503 fi
7504
7505
7506 enablestring=
7507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7508echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7509 no_cache=0
7510 # Check whether --enable-listctrl or --disable-listctrl was given.
7511if test "${enable_listctrl+set}" = set; then
7512 enableval="$enable_listctrl"
7513
7514 if test "$enableval" = yes; then
7515 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7516 else
7517 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7518 fi
7519
7520else
7521
7522 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7523 if test "x$LINE" != x ; then
7524 eval "DEFAULT_$LINE"
7525 else
7526 no_cache=1
7527 fi
7528
7529 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7530
7531fi;
7532
7533 eval "$ac_cv_use_listctrl"
7534 if test "$no_cache" != 1; then
7535 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7536 fi
7537
7538 if test "$wxUSE_LISTCTRL" = yes; then
7539 echo "$as_me:$LINENO: result: yes" >&5
7540echo "${ECHO_T}yes" >&6
7541 else
7542 echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6
7544 fi
7545
7546
7547 enablestring=
7548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7549echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7550 no_cache=0
7551 # Check whether --enable-notebook or --disable-notebook was given.
7552if test "${enable_notebook+set}" = set; then
7553 enableval="$enable_notebook"
7554
7555 if test "$enableval" = yes; then
7556 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7557 else
7558 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7559 fi
7560
7561else
7562
7563 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7564 if test "x$LINE" != x ; then
7565 eval "DEFAULT_$LINE"
7566 else
7567 no_cache=1
7568 fi
7569
7570 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7571
7572fi;
7573
7574 eval "$ac_cv_use_notebook"
7575 if test "$no_cache" != 1; then
7576 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7577 fi
7578
7579 if test "$wxUSE_NOTEBOOK" = yes; then
7580 echo "$as_me:$LINENO: result: yes" >&5
7581echo "${ECHO_T}yes" >&6
7582 else
7583 echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6
7585 fi
7586
7587
7588 enablestring=
7589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7590echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7591 no_cache=0
7592 # Check whether --enable-radiobox or --disable-radiobox was given.
7593if test "${enable_radiobox+set}" = set; then
7594 enableval="$enable_radiobox"
7595
7596 if test "$enableval" = yes; then
7597 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7598 else
7599 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7600 fi
7601
7602else
7603
7604 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7605 if test "x$LINE" != x ; then
7606 eval "DEFAULT_$LINE"
7607 else
7608 no_cache=1
7609 fi
7610
7611 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7612
7613fi;
7614
7615 eval "$ac_cv_use_radiobox"
7616 if test "$no_cache" != 1; then
7617 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7618 fi
7619
7620 if test "$wxUSE_RADIOBOX" = yes; then
7621 echo "$as_me:$LINENO: result: yes" >&5
7622echo "${ECHO_T}yes" >&6
7623 else
7624 echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6
7626 fi
7627
7628
7629 enablestring=
7630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7631echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7632 no_cache=0
7633 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7634if test "${enable_radiobtn+set}" = set; then
7635 enableval="$enable_radiobtn"
7636
7637 if test "$enableval" = yes; then
7638 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7639 else
7640 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7641 fi
7642
7643else
7644
7645 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7646 if test "x$LINE" != x ; then
7647 eval "DEFAULT_$LINE"
7648 else
7649 no_cache=1
7650 fi
7651
7652 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7653
7654fi;
7655
7656 eval "$ac_cv_use_radiobtn"
7657 if test "$no_cache" != 1; then
7658 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7659 fi
7660
7661 if test "$wxUSE_RADIOBTN" = yes; then
7662 echo "$as_me:$LINENO: result: yes" >&5
7663echo "${ECHO_T}yes" >&6
7664 else
7665 echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6
7667 fi
7668
7669
7670 enablestring=
7671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7672echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7673 no_cache=0
7674 # Check whether --enable-sash or --disable-sash was given.
7675if test "${enable_sash+set}" = set; then
7676 enableval="$enable_sash"
7677
7678 if test "$enableval" = yes; then
7679 ac_cv_use_sash='wxUSE_SASH=yes'
7680 else
7681 ac_cv_use_sash='wxUSE_SASH=no'
7682 fi
7683
7684else
7685
7686 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7687 if test "x$LINE" != x ; then
7688 eval "DEFAULT_$LINE"
7689 else
7690 no_cache=1
7691 fi
7692
7693 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7694
7695fi;
7696
7697 eval "$ac_cv_use_sash"
7698 if test "$no_cache" != 1; then
7699 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7700 fi
7701
7702 if test "$wxUSE_SASH" = yes; then
7703 echo "$as_me:$LINENO: result: yes" >&5
7704echo "${ECHO_T}yes" >&6
7705 else
7706 echo "$as_me:$LINENO: result: no" >&5
7707echo "${ECHO_T}no" >&6
7708 fi
7709
7710
7711 enablestring=
7712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7713echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7714 no_cache=0
7715 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7716if test "${enable_scrollbar+set}" = set; then
7717 enableval="$enable_scrollbar"
7718
7719 if test "$enableval" = yes; then
7720 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7721 else
7722 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7723 fi
7724
7725else
7726
7727 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7728 if test "x$LINE" != x ; then
7729 eval "DEFAULT_$LINE"
7730 else
7731 no_cache=1
7732 fi
7733
7734 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7735
7736fi;
7737
7738 eval "$ac_cv_use_scrollbar"
7739 if test "$no_cache" != 1; then
7740 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7741 fi
7742
7743 if test "$wxUSE_SCROLLBAR" = yes; then
7744 echo "$as_me:$LINENO: result: yes" >&5
7745echo "${ECHO_T}yes" >&6
7746 else
7747 echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6
7749 fi
7750
7751
7752 enablestring=
7753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7754echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7755 no_cache=0
7756 # Check whether --enable-slider or --disable-slider was given.
7757if test "${enable_slider+set}" = set; then
7758 enableval="$enable_slider"
7759
7760 if test "$enableval" = yes; then
7761 ac_cv_use_slider='wxUSE_SLIDER=yes'
7762 else
7763 ac_cv_use_slider='wxUSE_SLIDER=no'
7764 fi
7765
7766else
7767
7768 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7769 if test "x$LINE" != x ; then
7770 eval "DEFAULT_$LINE"
7771 else
7772 no_cache=1
7773 fi
7774
7775 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7776
7777fi;
7778
7779 eval "$ac_cv_use_slider"
7780 if test "$no_cache" != 1; then
7781 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7782 fi
7783
7784 if test "$wxUSE_SLIDER" = yes; then
7785 echo "$as_me:$LINENO: result: yes" >&5
7786echo "${ECHO_T}yes" >&6
7787 else
7788 echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6
7790 fi
7791
7792
7793 enablestring=
7794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7795echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7796 no_cache=0
7797 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7798if test "${enable_spinbtn+set}" = set; then
7799 enableval="$enable_spinbtn"
7800
7801 if test "$enableval" = yes; then
7802 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7803 else
7804 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7805 fi
7806
7807else
7808
7809 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7810 if test "x$LINE" != x ; then
7811 eval "DEFAULT_$LINE"
7812 else
7813 no_cache=1
7814 fi
7815
7816 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7817
7818fi;
7819
7820 eval "$ac_cv_use_spinbtn"
7821 if test "$no_cache" != 1; then
7822 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7823 fi
7824
7825 if test "$wxUSE_SPINBTN" = yes; then
7826 echo "$as_me:$LINENO: result: yes" >&5
7827echo "${ECHO_T}yes" >&6
7828 else
7829 echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6
7831 fi
7832
7833
7834 enablestring=
7835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7836echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7837 no_cache=0
7838 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7839if test "${enable_spinctrl+set}" = set; then
7840 enableval="$enable_spinctrl"
7841
7842 if test "$enableval" = yes; then
7843 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7844 else
7845 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7846 fi
7847
7848else
7849
7850 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7851 if test "x$LINE" != x ; then
7852 eval "DEFAULT_$LINE"
7853 else
7854 no_cache=1
7855 fi
7856
7857 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7858
7859fi;
7860
7861 eval "$ac_cv_use_spinctrl"
7862 if test "$no_cache" != 1; then
7863 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7864 fi
7865
7866 if test "$wxUSE_SPINCTRL" = yes; then
7867 echo "$as_me:$LINENO: result: yes" >&5
7868echo "${ECHO_T}yes" >&6
7869 else
7870 echo "$as_me:$LINENO: result: no" >&5
7871echo "${ECHO_T}no" >&6
7872 fi
7873
7874
7875 enablestring=
7876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7877echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7878 no_cache=0
7879 # Check whether --enable-splitter or --disable-splitter was given.
7880if test "${enable_splitter+set}" = set; then
7881 enableval="$enable_splitter"
7882
7883 if test "$enableval" = yes; then
7884 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7885 else
7886 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7887 fi
7888
7889else
7890
7891 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7892 if test "x$LINE" != x ; then
7893 eval "DEFAULT_$LINE"
7894 else
7895 no_cache=1
7896 fi
7897
7898 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7899
7900fi;
7901
7902 eval "$ac_cv_use_splitter"
7903 if test "$no_cache" != 1; then
7904 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7905 fi
7906
7907 if test "$wxUSE_SPLITTER" = yes; then
7908 echo "$as_me:$LINENO: result: yes" >&5
7909echo "${ECHO_T}yes" >&6
7910 else
7911 echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6
7913 fi
7914
7915
7916 enablestring=
7917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7918echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7919 no_cache=0
7920 # Check whether --enable-statbmp or --disable-statbmp was given.
7921if test "${enable_statbmp+set}" = set; then
7922 enableval="$enable_statbmp"
7923
7924 if test "$enableval" = yes; then
7925 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7926 else
7927 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7928 fi
7929
7930else
7931
7932 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7933 if test "x$LINE" != x ; then
7934 eval "DEFAULT_$LINE"
7935 else
7936 no_cache=1
7937 fi
7938
7939 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7940
7941fi;
7942
7943 eval "$ac_cv_use_statbmp"
7944 if test "$no_cache" != 1; then
7945 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7946 fi
7947
7948 if test "$wxUSE_STATBMP" = yes; then
7949 echo "$as_me:$LINENO: result: yes" >&5
7950echo "${ECHO_T}yes" >&6
7951 else
7952 echo "$as_me:$LINENO: result: no" >&5
7953echo "${ECHO_T}no" >&6
7954 fi
7955
7956
7957 enablestring=
7958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7959echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7960 no_cache=0
7961 # Check whether --enable-statbox or --disable-statbox was given.
7962if test "${enable_statbox+set}" = set; then
7963 enableval="$enable_statbox"
7964
7965 if test "$enableval" = yes; then
7966 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7967 else
7968 ac_cv_use_statbox='wxUSE_STATBOX=no'
7969 fi
7970
7971else
7972
7973 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7974 if test "x$LINE" != x ; then
7975 eval "DEFAULT_$LINE"
7976 else
7977 no_cache=1
7978 fi
7979
7980 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7981
7982fi;
7983
7984 eval "$ac_cv_use_statbox"
7985 if test "$no_cache" != 1; then
7986 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7987 fi
7988
7989 if test "$wxUSE_STATBOX" = yes; then
7990 echo "$as_me:$LINENO: result: yes" >&5
7991echo "${ECHO_T}yes" >&6
7992 else
7993 echo "$as_me:$LINENO: result: no" >&5
7994echo "${ECHO_T}no" >&6
7995 fi
7996
7997
7998 enablestring=
7999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8000echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8001 no_cache=0
8002 # Check whether --enable-statline or --disable-statline was given.
8003if test "${enable_statline+set}" = set; then
8004 enableval="$enable_statline"
8005
8006 if test "$enableval" = yes; then
8007 ac_cv_use_statline='wxUSE_STATLINE=yes'
8008 else
8009 ac_cv_use_statline='wxUSE_STATLINE=no'
8010 fi
8011
8012else
8013
8014 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8015 if test "x$LINE" != x ; then
8016 eval "DEFAULT_$LINE"
8017 else
8018 no_cache=1
8019 fi
8020
8021 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8022
8023fi;
8024
8025 eval "$ac_cv_use_statline"
8026 if test "$no_cache" != 1; then
8027 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8028 fi
8029
8030 if test "$wxUSE_STATLINE" = yes; then
8031 echo "$as_me:$LINENO: result: yes" >&5
8032echo "${ECHO_T}yes" >&6
8033 else
8034 echo "$as_me:$LINENO: result: no" >&5
8035echo "${ECHO_T}no" >&6
8036 fi
8037
8038
8039 enablestring=
8040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8041echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8042 no_cache=0
8043 # Check whether --enable-stattext or --disable-stattext was given.
8044if test "${enable_stattext+set}" = set; then
8045 enableval="$enable_stattext"
8046
8047 if test "$enableval" = yes; then
8048 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8049 else
8050 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8051 fi
8052
8053else
8054
8055 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8056 if test "x$LINE" != x ; then
8057 eval "DEFAULT_$LINE"
8058 else
8059 no_cache=1
8060 fi
8061
8062 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8063
8064fi;
8065
8066 eval "$ac_cv_use_stattext"
8067 if test "$no_cache" != 1; then
8068 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8069 fi
8070
8071 if test "$wxUSE_STATTEXT" = yes; then
8072 echo "$as_me:$LINENO: result: yes" >&5
8073echo "${ECHO_T}yes" >&6
8074 else
8075 echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6
8077 fi
8078
8079
8080 enablestring=
8081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8082echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8083 no_cache=0
8084 # Check whether --enable-statusbar or --disable-statusbar was given.
8085if test "${enable_statusbar+set}" = set; then
8086 enableval="$enable_statusbar"
8087
8088 if test "$enableval" = yes; then
8089 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8090 else
8091 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8092 fi
8093
8094else
8095
8096 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8097 if test "x$LINE" != x ; then
8098 eval "DEFAULT_$LINE"
8099 else
8100 no_cache=1
8101 fi
8102
8103 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8104
8105fi;
8106
8107 eval "$ac_cv_use_statusbar"
8108 if test "$no_cache" != 1; then
8109 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8110 fi
8111
8112 if test "$wxUSE_STATUSBAR" = yes; then
8113 echo "$as_me:$LINENO: result: yes" >&5
8114echo "${ECHO_T}yes" >&6
8115 else
8116 echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6
8118 fi
8119
8120
8121 enablestring=
8122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8123echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8124 no_cache=0
8125 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8126if test "${enable_tabdialog+set}" = set; then
8127 enableval="$enable_tabdialog"
8128
8129 if test "$enableval" = yes; then
8130 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8131 else
8132 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8133 fi
8134
8135else
8136
8137 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8138 if test "x$LINE" != x ; then
8139 eval "DEFAULT_$LINE"
8140 else
8141 no_cache=1
8142 fi
8143
8144 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8145
8146fi;
8147
8148 eval "$ac_cv_use_tabdialog"
8149 if test "$no_cache" != 1; then
8150 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8151 fi
8152
8153 if test "$wxUSE_TABDIALOG" = yes; then
8154 echo "$as_me:$LINENO: result: yes" >&5
8155echo "${ECHO_T}yes" >&6
8156 else
8157 echo "$as_me:$LINENO: result: no" >&5
8158echo "${ECHO_T}no" >&6
8159 fi
8160
8161
8162 enablestring=
8163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8164echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8165 no_cache=0
8166 # Check whether --enable-textctrl or --disable-textctrl was given.
8167if test "${enable_textctrl+set}" = set; then
8168 enableval="$enable_textctrl"
8169
8170 if test "$enableval" = yes; then
8171 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8172 else
8173 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8174 fi
8175
8176else
8177
8178 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8179 if test "x$LINE" != x ; then
8180 eval "DEFAULT_$LINE"
8181 else
8182 no_cache=1
8183 fi
8184
8185 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8186
8187fi;
8188
8189 eval "$ac_cv_use_textctrl"
8190 if test "$no_cache" != 1; then
8191 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8192 fi
8193
8194 if test "$wxUSE_TEXTCTRL" = yes; then
8195 echo "$as_me:$LINENO: result: yes" >&5
8196echo "${ECHO_T}yes" >&6
8197 else
8198 echo "$as_me:$LINENO: result: no" >&5
8199echo "${ECHO_T}no" >&6
8200 fi
8201
8202
8203 enablestring=
8204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8205echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8206 no_cache=0
8207 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8208if test "${enable_togglebtn+set}" = set; then
8209 enableval="$enable_togglebtn"
8210
8211 if test "$enableval" = yes; then
8212 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8213 else
8214 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8215 fi
8216
8217else
8218
8219 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8220 if test "x$LINE" != x ; then
8221 eval "DEFAULT_$LINE"
8222 else
8223 no_cache=1
8224 fi
8225
8226 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8227
8228fi;
8229
8230 eval "$ac_cv_use_togglebtn"
8231 if test "$no_cache" != 1; then
8232 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8233 fi
8234
8235 if test "$wxUSE_TOGGLEBTN" = yes; then
8236 echo "$as_me:$LINENO: result: yes" >&5
8237echo "${ECHO_T}yes" >&6
8238 else
8239 echo "$as_me:$LINENO: result: no" >&5
8240echo "${ECHO_T}no" >&6
8241 fi
8242
8243
8244 enablestring=
8245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8246echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8247 no_cache=0
8248 # Check whether --enable-toolbar or --disable-toolbar was given.
8249if test "${enable_toolbar+set}" = set; then
8250 enableval="$enable_toolbar"
8251
8252 if test "$enableval" = yes; then
8253 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8254 else
8255 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8256 fi
8257
8258else
8259
8260 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8261 if test "x$LINE" != x ; then
8262 eval "DEFAULT_$LINE"
8263 else
8264 no_cache=1
8265 fi
8266
8267 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8268
8269fi;
8270
8271 eval "$ac_cv_use_toolbar"
8272 if test "$no_cache" != 1; then
8273 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8274 fi
8275
8276 if test "$wxUSE_TOOLBAR" = yes; then
8277 echo "$as_me:$LINENO: result: yes" >&5
8278echo "${ECHO_T}yes" >&6
8279 else
8280 echo "$as_me:$LINENO: result: no" >&5
8281echo "${ECHO_T}no" >&6
8282 fi
8283
8284
8285 enablestring=
8286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8287echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8288 no_cache=0
8289 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8290if test "${enable_tbarnative+set}" = set; then
8291 enableval="$enable_tbarnative"
8292
8293 if test "$enableval" = yes; then
8294 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8295 else
8296 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8297 fi
8298
8299else
8300
8301 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8302 if test "x$LINE" != x ; then
8303 eval "DEFAULT_$LINE"
8304 else
8305 no_cache=1
8306 fi
8307
8308 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8309
8310fi;
8311
8312 eval "$ac_cv_use_tbarnative"
8313 if test "$no_cache" != 1; then
8314 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8315 fi
8316
8317 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8318 echo "$as_me:$LINENO: result: yes" >&5
8319echo "${ECHO_T}yes" >&6
8320 else
8321 echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
8323 fi
8324
8325
8326 enablestring=
8327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8328echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8329 no_cache=0
8330 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8331if test "${enable_tbarsmpl+set}" = set; then
8332 enableval="$enable_tbarsmpl"
8333
8334 if test "$enableval" = yes; then
8335 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8336 else
8337 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8338 fi
8339
8340else
8341
8342 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8343 if test "x$LINE" != x ; then
8344 eval "DEFAULT_$LINE"
8345 else
8346 no_cache=1
8347 fi
8348
8349 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8350
8351fi;
8352
8353 eval "$ac_cv_use_tbarsmpl"
8354 if test "$no_cache" != 1; then
8355 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8356 fi
8357
8358 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8359 echo "$as_me:$LINENO: result: yes" >&5
8360echo "${ECHO_T}yes" >&6
8361 else
8362 echo "$as_me:$LINENO: result: no" >&5
8363echo "${ECHO_T}no" >&6
8364 fi
8365
8366
8367 enablestring=
8368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8369echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8370 no_cache=0
8371 # Check whether --enable-treectrl or --disable-treectrl was given.
8372if test "${enable_treectrl+set}" = set; then
8373 enableval="$enable_treectrl"
8374
8375 if test "$enableval" = yes; then
8376 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8377 else
8378 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8379 fi
8380
8381else
8382
8383 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8384 if test "x$LINE" != x ; then
8385 eval "DEFAULT_$LINE"
8386 else
8387 no_cache=1
8388 fi
8389
8390 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8391
8392fi;
8393
8394 eval "$ac_cv_use_treectrl"
8395 if test "$no_cache" != 1; then
8396 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8397 fi
8398
8399 if test "$wxUSE_TREECTRL" = yes; then
8400 echo "$as_me:$LINENO: result: yes" >&5
8401echo "${ECHO_T}yes" >&6
8402 else
8403 echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6
8405 fi
8406
8407
8408 enablestring=
8409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8410echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8411 no_cache=0
8412 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8413if test "${enable_tipwindow+set}" = set; then
8414 enableval="$enable_tipwindow"
8415
8416 if test "$enableval" = yes; then
8417 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8418 else
8419 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8420 fi
8421
8422else
8423
8424 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8425 if test "x$LINE" != x ; then
8426 eval "DEFAULT_$LINE"
8427 else
8428 no_cache=1
8429 fi
8430
8431 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8432
8433fi;
8434
8435 eval "$ac_cv_use_tipwindow"
8436 if test "$no_cache" != 1; then
8437 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8438 fi
8439
8440 if test "$wxUSE_TIPWINDOW" = yes; then
8441 echo "$as_me:$LINENO: result: yes" >&5
8442echo "${ECHO_T}yes" >&6
8443 else
8444 echo "$as_me:$LINENO: result: no" >&5
8445echo "${ECHO_T}no" >&6
8446 fi
8447
8448
8449 enablestring=
8450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8451echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8452 no_cache=0
8453 # Check whether --enable-popupwin or --disable-popupwin was given.
8454if test "${enable_popupwin+set}" = set; then
8455 enableval="$enable_popupwin"
8456
8457 if test "$enableval" = yes; then
8458 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8459 else
8460 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8461 fi
8462
8463else
8464
8465 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8466 if test "x$LINE" != x ; then
8467 eval "DEFAULT_$LINE"
8468 else
8469 no_cache=1
8470 fi
8471
8472 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8473
8474fi;
8475
8476 eval "$ac_cv_use_popupwin"
8477 if test "$no_cache" != 1; then
8478 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8479 fi
8480
8481 if test "$wxUSE_POPUPWIN" = yes; then
8482 echo "$as_me:$LINENO: result: yes" >&5
8483echo "${ECHO_T}yes" >&6
8484 else
8485 echo "$as_me:$LINENO: result: no" >&5
8486echo "${ECHO_T}no" >&6
8487 fi
8488
8489
8490
8491
8492 enablestring=
8493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8494echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8495 no_cache=0
8496 # Check whether --enable-commondlg or --disable-commondlg was given.
8497if test "${enable_commondlg+set}" = set; then
8498 enableval="$enable_commondlg"
8499
8500 if test "$enableval" = yes; then
8501 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8502 else
8503 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8504 fi
8505
8506else
8507
8508 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8509 if test "x$LINE" != x ; then
8510 eval "DEFAULT_$LINE"
8511 else
8512 no_cache=1
8513 fi
8514
8515 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8516
8517fi;
8518
8519 eval "$ac_cv_use_commondlg"
8520 if test "$no_cache" != 1; then
8521 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8522 fi
8523
8524 if test "$wxUSE_COMMONDLGS" = yes; then
8525 echo "$as_me:$LINENO: result: yes" >&5
8526echo "${ECHO_T}yes" >&6
8527 else
8528 echo "$as_me:$LINENO: result: no" >&5
8529echo "${ECHO_T}no" >&6
8530 fi
8531
8532
8533 enablestring=
8534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8535echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8536 no_cache=0
8537 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8538if test "${enable_choicedlg+set}" = set; then
8539 enableval="$enable_choicedlg"
8540
8541 if test "$enableval" = yes; then
8542 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8543 else
8544 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8545 fi
8546
8547else
8548
8549 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8550 if test "x$LINE" != x ; then
8551 eval "DEFAULT_$LINE"
8552 else
8553 no_cache=1
8554 fi
8555
8556 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8557
8558fi;
8559
8560 eval "$ac_cv_use_choicedlg"
8561 if test "$no_cache" != 1; then
8562 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8563 fi
8564
8565 if test "$wxUSE_CHOICEDLG" = yes; then
8566 echo "$as_me:$LINENO: result: yes" >&5
8567echo "${ECHO_T}yes" >&6
8568 else
8569 echo "$as_me:$LINENO: result: no" >&5
8570echo "${ECHO_T}no" >&6
8571 fi
8572
8573
8574 enablestring=
8575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8576echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8577 no_cache=0
8578 # Check whether --enable-coldlg or --disable-coldlg was given.
8579if test "${enable_coldlg+set}" = set; then
8580 enableval="$enable_coldlg"
8581
8582 if test "$enableval" = yes; then
8583 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8584 else
8585 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8586 fi
8587
8588else
8589
8590 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8591 if test "x$LINE" != x ; then
8592 eval "DEFAULT_$LINE"
8593 else
8594 no_cache=1
8595 fi
8596
8597 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8598
8599fi;
8600
8601 eval "$ac_cv_use_coldlg"
8602 if test "$no_cache" != 1; then
8603 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8604 fi
8605
8606 if test "$wxUSE_COLOURDLG" = yes; then
8607 echo "$as_me:$LINENO: result: yes" >&5
8608echo "${ECHO_T}yes" >&6
8609 else
8610 echo "$as_me:$LINENO: result: no" >&5
8611echo "${ECHO_T}no" >&6
8612 fi
8613
8614
8615 enablestring=
8616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8617echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8618 no_cache=0
8619 # Check whether --enable-filedlg or --disable-filedlg was given.
8620if test "${enable_filedlg+set}" = set; then
8621 enableval="$enable_filedlg"
8622
8623 if test "$enableval" = yes; then
8624 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8625 else
8626 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8627 fi
8628
8629else
8630
8631 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8632 if test "x$LINE" != x ; then
8633 eval "DEFAULT_$LINE"
8634 else
8635 no_cache=1
8636 fi
8637
8638 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8639
8640fi;
8641
8642 eval "$ac_cv_use_filedlg"
8643 if test "$no_cache" != 1; then
8644 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8645 fi
8646
8647 if test "$wxUSE_FILEDLG" = yes; then
8648 echo "$as_me:$LINENO: result: yes" >&5
8649echo "${ECHO_T}yes" >&6
8650 else
8651 echo "$as_me:$LINENO: result: no" >&5
8652echo "${ECHO_T}no" >&6
8653 fi
8654
8655
8656 enablestring=
8657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8658echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8659 no_cache=0
8660 # Check whether --enable-finddlg or --disable-finddlg was given.
8661if test "${enable_finddlg+set}" = set; then
8662 enableval="$enable_finddlg"
8663
8664 if test "$enableval" = yes; then
8665 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8666 else
8667 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8668 fi
8669
8670else
8671
8672 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8673 if test "x$LINE" != x ; then
8674 eval "DEFAULT_$LINE"
8675 else
8676 no_cache=1
8677 fi
8678
8679 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8680
8681fi;
8682
8683 eval "$ac_cv_use_finddlg"
8684 if test "$no_cache" != 1; then
8685 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8686 fi
8687
8688 if test "$wxUSE_FINDREPLDLG" = yes; then
8689 echo "$as_me:$LINENO: result: yes" >&5
8690echo "${ECHO_T}yes" >&6
8691 else
8692 echo "$as_me:$LINENO: result: no" >&5
8693echo "${ECHO_T}no" >&6
8694 fi
8695
8696
8697 enablestring=
8698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8699echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8700 no_cache=0
8701 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8702if test "${enable_fontdlg+set}" = set; then
8703 enableval="$enable_fontdlg"
8704
8705 if test "$enableval" = yes; then
8706 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8707 else
8708 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8709 fi
8710
8711else
8712
8713 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8714 if test "x$LINE" != x ; then
8715 eval "DEFAULT_$LINE"
8716 else
8717 no_cache=1
8718 fi
8719
8720 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8721
8722fi;
8723
8724 eval "$ac_cv_use_fontdlg"
8725 if test "$no_cache" != 1; then
8726 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8727 fi
8728
8729 if test "$wxUSE_FONTDLG" = yes; then
8730 echo "$as_me:$LINENO: result: yes" >&5
8731echo "${ECHO_T}yes" >&6
8732 else
8733 echo "$as_me:$LINENO: result: no" >&5
8734echo "${ECHO_T}no" >&6
8735 fi
8736
8737
8738 enablestring=
8739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8740echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8741 no_cache=0
8742 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8743if test "${enable_dirdlg+set}" = set; then
8744 enableval="$enable_dirdlg"
8745
8746 if test "$enableval" = yes; then
8747 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8748 else
8749 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8750 fi
8751
8752else
8753
8754 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8755 if test "x$LINE" != x ; then
8756 eval "DEFAULT_$LINE"
8757 else
8758 no_cache=1
8759 fi
8760
8761 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8762
8763fi;
8764
8765 eval "$ac_cv_use_dirdlg"
8766 if test "$no_cache" != 1; then
8767 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8768 fi
8769
8770 if test "$wxUSE_DIRDLG" = yes; then
8771 echo "$as_me:$LINENO: result: yes" >&5
8772echo "${ECHO_T}yes" >&6
8773 else
8774 echo "$as_me:$LINENO: result: no" >&5
8775echo "${ECHO_T}no" >&6
8776 fi
8777
8778
8779 enablestring=
8780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8781echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8782 no_cache=0
8783 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8784if test "${enable_msgdlg+set}" = set; then
8785 enableval="$enable_msgdlg"
8786
8787 if test "$enableval" = yes; then
8788 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8789 else
8790 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8791 fi
8792
8793else
8794
8795 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8796 if test "x$LINE" != x ; then
8797 eval "DEFAULT_$LINE"
8798 else
8799 no_cache=1
8800 fi
8801
8802 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8803
8804fi;
8805
8806 eval "$ac_cv_use_msgdlg"
8807 if test "$no_cache" != 1; then
8808 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8809 fi
8810
8811 if test "$wxUSE_MSGDLG" = yes; then
8812 echo "$as_me:$LINENO: result: yes" >&5
8813echo "${ECHO_T}yes" >&6
8814 else
8815 echo "$as_me:$LINENO: result: no" >&5
8816echo "${ECHO_T}no" >&6
8817 fi
8818
8819
8820 enablestring=
8821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8822echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8823 no_cache=0
8824 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8825if test "${enable_numberdlg+set}" = set; then
8826 enableval="$enable_numberdlg"
8827
8828 if test "$enableval" = yes; then
8829 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8830 else
8831 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8832 fi
8833
8834else
8835
8836 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8837 if test "x$LINE" != x ; then
8838 eval "DEFAULT_$LINE"
8839 else
8840 no_cache=1
8841 fi
8842
8843 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8844
8845fi;
8846
8847 eval "$ac_cv_use_numberdlg"
8848 if test "$no_cache" != 1; then
8849 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8850 fi
8851
8852 if test "$wxUSE_NUMBERDLG" = yes; then
8853 echo "$as_me:$LINENO: result: yes" >&5
8854echo "${ECHO_T}yes" >&6
8855 else
8856 echo "$as_me:$LINENO: result: no" >&5
8857echo "${ECHO_T}no" >&6
8858 fi
8859
8860
8861 enablestring=
8862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8863echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8864 no_cache=0
8865 # Check whether --enable-splash or --disable-splash was given.
8866if test "${enable_splash+set}" = set; then
8867 enableval="$enable_splash"
8868
8869 if test "$enableval" = yes; then
8870 ac_cv_use_splash='wxUSE_SPLASH=yes'
8871 else
8872 ac_cv_use_splash='wxUSE_SPLASH=no'
8873 fi
8874
8875else
8876
8877 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8878 if test "x$LINE" != x ; then
8879 eval "DEFAULT_$LINE"
8880 else
8881 no_cache=1
8882 fi
8883
8884 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8885
8886fi;
8887
8888 eval "$ac_cv_use_splash"
8889 if test "$no_cache" != 1; then
8890 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8891 fi
8892
8893 if test "$wxUSE_SPLASH" = yes; then
8894 echo "$as_me:$LINENO: result: yes" >&5
8895echo "${ECHO_T}yes" >&6
8896 else
8897 echo "$as_me:$LINENO: result: no" >&5
8898echo "${ECHO_T}no" >&6
8899 fi
8900
8901
8902 enablestring=
8903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8904echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8905 no_cache=0
8906 # Check whether --enable-textdlg or --disable-textdlg was given.
8907if test "${enable_textdlg+set}" = set; then
8908 enableval="$enable_textdlg"
8909
8910 if test "$enableval" = yes; then
8911 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8912 else
8913 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8914 fi
8915
8916else
8917
8918 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8919 if test "x$LINE" != x ; then
8920 eval "DEFAULT_$LINE"
8921 else
8922 no_cache=1
8923 fi
8924
8925 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8926
8927fi;
8928
8929 eval "$ac_cv_use_textdlg"
8930 if test "$no_cache" != 1; then
8931 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8932 fi
8933
8934 if test "$wxUSE_TEXTDLG" = yes; then
8935 echo "$as_me:$LINENO: result: yes" >&5
8936echo "${ECHO_T}yes" >&6
8937 else
8938 echo "$as_me:$LINENO: result: no" >&5
8939echo "${ECHO_T}no" >&6
8940 fi
8941
8942
8943 enablestring=
8944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8945echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8946 no_cache=0
8947 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8948if test "${enable_tipdlg+set}" = set; then
8949 enableval="$enable_tipdlg"
8950
8951 if test "$enableval" = yes; then
8952 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8953 else
8954 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8955 fi
8956
8957else
8958
8959 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8960 if test "x$LINE" != x ; then
8961 eval "DEFAULT_$LINE"
8962 else
8963 no_cache=1
8964 fi
8965
8966 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8967
8968fi;
8969
8970 eval "$ac_cv_use_tipdlg"
8971 if test "$no_cache" != 1; then
8972 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8973 fi
8974
8975 if test "$wxUSE_STARTUP_TIPS" = yes; then
8976 echo "$as_me:$LINENO: result: yes" >&5
8977echo "${ECHO_T}yes" >&6
8978 else
8979 echo "$as_me:$LINENO: result: no" >&5
8980echo "${ECHO_T}no" >&6
8981 fi
8982
8983
8984 enablestring=
8985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8986echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8987 no_cache=0
8988 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8989if test "${enable_progressdlg+set}" = set; then
8990 enableval="$enable_progressdlg"
8991
8992 if test "$enableval" = yes; then
8993 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8994 else
8995 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8996 fi
8997
8998else
8999
9000 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9001 if test "x$LINE" != x ; then
9002 eval "DEFAULT_$LINE"
9003 else
9004 no_cache=1
9005 fi
9006
9007 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9008
9009fi;
9010
9011 eval "$ac_cv_use_progressdlg"
9012 if test "$no_cache" != 1; then
9013 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9014 fi
9015
9016 if test "$wxUSE_PROGRESSDLG" = yes; then
9017 echo "$as_me:$LINENO: result: yes" >&5
9018echo "${ECHO_T}yes" >&6
9019 else
9020 echo "$as_me:$LINENO: result: no" >&5
9021echo "${ECHO_T}no" >&6
9022 fi
9023
9024
9025 enablestring=
9026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9027echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9028 no_cache=0
9029 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9030if test "${enable_wizarddlg+set}" = set; then
9031 enableval="$enable_wizarddlg"
9032
9033 if test "$enableval" = yes; then
9034 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9035 else
9036 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9037 fi
9038
9039else
9040
9041 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9042 if test "x$LINE" != x ; then
9043 eval "DEFAULT_$LINE"
9044 else
9045 no_cache=1
9046 fi
9047
9048 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9049
9050fi;
9051
9052 eval "$ac_cv_use_wizarddlg"
9053 if test "$no_cache" != 1; then
9054 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9055 fi
9056
9057 if test "$wxUSE_WIZARDDLG" = yes; then
9058 echo "$as_me:$LINENO: result: yes" >&5
9059echo "${ECHO_T}yes" >&6
9060 else
9061 echo "$as_me:$LINENO: result: no" >&5
9062echo "${ECHO_T}no" >&6
9063 fi
9064
9065
9066
9067
9068 enablestring=
9069 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9070echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9071 no_cache=0
9072 # Check whether --enable-menus or --disable-menus was given.
9073if test "${enable_menus+set}" = set; then
9074 enableval="$enable_menus"
9075
9076 if test "$enableval" = yes; then
9077 ac_cv_use_menus='wxUSE_MENUS=yes'
9078 else
9079 ac_cv_use_menus='wxUSE_MENUS=no'
9080 fi
9081
9082else
9083
9084 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9085 if test "x$LINE" != x ; then
9086 eval "DEFAULT_$LINE"
9087 else
9088 no_cache=1
9089 fi
9090
9091 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9092
9093fi;
9094
9095 eval "$ac_cv_use_menus"
9096 if test "$no_cache" != 1; then
9097 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9098 fi
9099
9100 if test "$wxUSE_MENUS" = yes; then
9101 echo "$as_me:$LINENO: result: yes" >&5
9102echo "${ECHO_T}yes" >&6
9103 else
9104 echo "$as_me:$LINENO: result: no" >&5
9105echo "${ECHO_T}no" >&6
9106 fi
9107
9108
9109 enablestring=
9110 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9111echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9112 no_cache=0
9113 # Check whether --enable-miniframe or --disable-miniframe was given.
9114if test "${enable_miniframe+set}" = set; then
9115 enableval="$enable_miniframe"
9116
9117 if test "$enableval" = yes; then
9118 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9119 else
9120 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9121 fi
9122
9123else
9124
9125 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9126 if test "x$LINE" != x ; then
9127 eval "DEFAULT_$LINE"
9128 else
9129 no_cache=1
9130 fi
9131
9132 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9133
9134fi;
9135
9136 eval "$ac_cv_use_miniframe"
9137 if test "$no_cache" != 1; then
9138 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9139 fi
9140
9141 if test "$wxUSE_MINIFRAME" = yes; then
9142 echo "$as_me:$LINENO: result: yes" >&5
9143echo "${ECHO_T}yes" >&6
9144 else
9145 echo "$as_me:$LINENO: result: no" >&5
9146echo "${ECHO_T}no" >&6
9147 fi
9148
9149
9150 enablestring=
9151 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9152echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9153 no_cache=0
9154 # Check whether --enable-tooltips or --disable-tooltips was given.
9155if test "${enable_tooltips+set}" = set; then
9156 enableval="$enable_tooltips"
9157
9158 if test "$enableval" = yes; then
9159 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9160 else
9161 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9162 fi
9163
9164else
9165
9166 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9167 if test "x$LINE" != x ; then
9168 eval "DEFAULT_$LINE"
9169 else
9170 no_cache=1
9171 fi
9172
9173 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9174
9175fi;
9176
9177 eval "$ac_cv_use_tooltips"
9178 if test "$no_cache" != 1; then
9179 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9180 fi
9181
9182 if test "$wxUSE_TOOLTIPS" = yes; then
9183 echo "$as_me:$LINENO: result: yes" >&5
9184echo "${ECHO_T}yes" >&6
9185 else
9186 echo "$as_me:$LINENO: result: no" >&5
9187echo "${ECHO_T}no" >&6
9188 fi
9189
9190
9191 enablestring=
9192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9193echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9194 no_cache=0
9195 # Check whether --enable-splines or --disable-splines was given.
9196if test "${enable_splines+set}" = set; then
9197 enableval="$enable_splines"
9198
9199 if test "$enableval" = yes; then
9200 ac_cv_use_splines='wxUSE_SPLINES=yes'
9201 else
9202 ac_cv_use_splines='wxUSE_SPLINES=no'
9203 fi
9204
9205else
9206
9207 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9208 if test "x$LINE" != x ; then
9209 eval "DEFAULT_$LINE"
9210 else
9211 no_cache=1
9212 fi
9213
9214 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9215
9216fi;
9217
9218 eval "$ac_cv_use_splines"
9219 if test "$no_cache" != 1; then
9220 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9221 fi
9222
9223 if test "$wxUSE_SPLINES" = yes; then
9224 echo "$as_me:$LINENO: result: yes" >&5
9225echo "${ECHO_T}yes" >&6
9226 else
9227 echo "$as_me:$LINENO: result: no" >&5
9228echo "${ECHO_T}no" >&6
9229 fi
9230
9231
9232 enablestring=
9233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9234echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9235 no_cache=0
9236 # Check whether --enable-validators or --disable-validators was given.
9237if test "${enable_validators+set}" = set; then
9238 enableval="$enable_validators"
9239
9240 if test "$enableval" = yes; then
9241 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9242 else
9243 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9244 fi
9245
9246else
9247
9248 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9249 if test "x$LINE" != x ; then
9250 eval "DEFAULT_$LINE"
9251 else
9252 no_cache=1
9253 fi
9254
9255 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9256
9257fi;
9258
9259 eval "$ac_cv_use_validators"
9260 if test "$no_cache" != 1; then
9261 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9262 fi
9263
9264 if test "$wxUSE_VALIDATORS" = yes; then
9265 echo "$as_me:$LINENO: result: yes" >&5
9266echo "${ECHO_T}yes" >&6
9267 else
9268 echo "$as_me:$LINENO: result: no" >&5
9269echo "${ECHO_T}no" >&6
9270 fi
9271
9272
9273 enablestring=
9274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9275echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9276 no_cache=0
9277 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9278if test "${enable_busyinfo+set}" = set; then
9279 enableval="$enable_busyinfo"
9280
9281 if test "$enableval" = yes; then
9282 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9283 else
9284 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9285 fi
9286
9287else
9288
9289 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9290 if test "x$LINE" != x ; then
9291 eval "DEFAULT_$LINE"
9292 else
9293 no_cache=1
9294 fi
9295
9296 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9297
9298fi;
9299
9300 eval "$ac_cv_use_busyinfo"
9301 if test "$no_cache" != 1; then
9302 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9303 fi
9304
9305 if test "$wxUSE_BUSYINFO" = yes; then
9306 echo "$as_me:$LINENO: result: yes" >&5
9307echo "${ECHO_T}yes" >&6
9308 else
9309 echo "$as_me:$LINENO: result: no" >&5
9310echo "${ECHO_T}no" >&6
9311 fi
9312
9313
9314 enablestring=
9315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9316echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9317 no_cache=0
9318 # Check whether --enable-joystick or --disable-joystick was given.
9319if test "${enable_joystick+set}" = set; then
9320 enableval="$enable_joystick"
9321
9322 if test "$enableval" = yes; then
9323 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9324 else
9325 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9326 fi
9327
9328else
9329
9330 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9331 if test "x$LINE" != x ; then
9332 eval "DEFAULT_$LINE"
9333 else
9334 no_cache=1
9335 fi
9336
9337 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9338
9339fi;
9340
9341 eval "$ac_cv_use_joystick"
9342 if test "$no_cache" != 1; then
9343 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9344 fi
9345
9346 if test "$wxUSE_JOYSTICK" = yes; then
9347 echo "$as_me:$LINENO: result: yes" >&5
9348echo "${ECHO_T}yes" >&6
9349 else
9350 echo "$as_me:$LINENO: result: no" >&5
9351echo "${ECHO_T}no" >&6
9352 fi
9353
9354
9355 enablestring=
9356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9357echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9358 no_cache=0
9359 # Check whether --enable-metafile or --disable-metafile was given.
9360if test "${enable_metafile+set}" = set; then
9361 enableval="$enable_metafile"
9362
9363 if test "$enableval" = yes; then
9364 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9365 else
9366 ac_cv_use_metafile='wxUSE_METAFILE=no'
9367 fi
9368
9369else
9370
9371 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9372 if test "x$LINE" != x ; then
9373 eval "DEFAULT_$LINE"
9374 else
9375 no_cache=1
9376 fi
9377
9378 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9379
9380fi;
9381
9382 eval "$ac_cv_use_metafile"
9383 if test "$no_cache" != 1; then
9384 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9385 fi
9386
9387 if test "$wxUSE_METAFILE" = yes; then
9388 echo "$as_me:$LINENO: result: yes" >&5
9389echo "${ECHO_T}yes" >&6
9390 else
9391 echo "$as_me:$LINENO: result: no" >&5
9392echo "${ECHO_T}no" >&6
9393 fi
9394
9395
9396 enablestring=
9397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9398echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9399 no_cache=0
9400 # Check whether --enable-dragimage or --disable-dragimage was given.
9401if test "${enable_dragimage+set}" = set; then
9402 enableval="$enable_dragimage"
9403
9404 if test "$enableval" = yes; then
9405 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9406 else
9407 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9408 fi
9409
9410else
9411
9412 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9413 if test "x$LINE" != x ; then
9414 eval "DEFAULT_$LINE"
9415 else
9416 no_cache=1
9417 fi
9418
9419 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9420
9421fi;
9422
9423 eval "$ac_cv_use_dragimage"
9424 if test "$no_cache" != 1; then
9425 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9426 fi
9427
9428 if test "$wxUSE_DRAGIMAGE" = yes; then
9429 echo "$as_me:$LINENO: result: yes" >&5
9430echo "${ECHO_T}yes" >&6
9431 else
9432 echo "$as_me:$LINENO: result: no" >&5
9433echo "${ECHO_T}no" >&6
9434 fi
9435
9436
9437 enablestring=
9438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9439echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9440 no_cache=0
9441 # Check whether --enable-accessibility or --disable-accessibility was given.
9442if test "${enable_accessibility+set}" = set; then
9443 enableval="$enable_accessibility"
9444
9445 if test "$enableval" = yes; then
9446 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9447 else
9448 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9449 fi
9450
9451else
9452
9453 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9454 if test "x$LINE" != x ; then
9455 eval "DEFAULT_$LINE"
9456 else
9457 no_cache=1
9458 fi
9459
9460 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9461
9462fi;
9463
9464 eval "$ac_cv_use_accessibility"
9465 if test "$no_cache" != 1; then
9466 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9467 fi
9468
9469 if test "$wxUSE_ACCESSIBILITY" = yes; then
9470 echo "$as_me:$LINENO: result: yes" >&5
9471echo "${ECHO_T}yes" >&6
9472 else
9473 echo "$as_me:$LINENO: result: no" >&5
9474echo "${ECHO_T}no" >&6
9475 fi
9476
9477
9478
9479
9480 enablestring=
9481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9482echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9483 no_cache=0
9484 # Check whether --enable-palette or --disable-palette was given.
9485if test "${enable_palette+set}" = set; then
9486 enableval="$enable_palette"
9487
9488 if test "$enableval" = yes; then
9489 ac_cv_use_palette='wxUSE_PALETTE=yes'
9490 else
9491 ac_cv_use_palette='wxUSE_PALETTE=no'
9492 fi
9493
9494else
9495
9496 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9497 if test "x$LINE" != x ; then
9498 eval "DEFAULT_$LINE"
9499 else
9500 no_cache=1
9501 fi
9502
9503 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9504
9505fi;
9506
9507 eval "$ac_cv_use_palette"
9508 if test "$no_cache" != 1; then
9509 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9510 fi
9511
9512 if test "$wxUSE_PALETTE" = yes; then
9513 echo "$as_me:$LINENO: result: yes" >&5
9514echo "${ECHO_T}yes" >&6
9515 else
9516 echo "$as_me:$LINENO: result: no" >&5
9517echo "${ECHO_T}no" >&6
9518 fi
9519
9520
9521 enablestring=
9522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9523echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9524 no_cache=0
9525 # Check whether --enable-image or --disable-image was given.
9526if test "${enable_image+set}" = set; then
9527 enableval="$enable_image"
9528
9529 if test "$enableval" = yes; then
9530 ac_cv_use_image='wxUSE_IMAGE=yes'
9531 else
9532 ac_cv_use_image='wxUSE_IMAGE=no'
9533 fi
9534
9535else
9536
9537 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9538 if test "x$LINE" != x ; then
9539 eval "DEFAULT_$LINE"
9540 else
9541 no_cache=1
9542 fi
9543
9544 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9545
9546fi;
9547
9548 eval "$ac_cv_use_image"
9549 if test "$no_cache" != 1; then
9550 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9551 fi
9552
9553 if test "$wxUSE_IMAGE" = yes; then
9554 echo "$as_me:$LINENO: result: yes" >&5
9555echo "${ECHO_T}yes" >&6
9556 else
9557 echo "$as_me:$LINENO: result: no" >&5
9558echo "${ECHO_T}no" >&6
9559 fi
9560
9561
9562 enablestring=
9563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9564echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9565 no_cache=0
9566 # Check whether --enable-gif or --disable-gif was given.
9567if test "${enable_gif+set}" = set; then
9568 enableval="$enable_gif"
9569
9570 if test "$enableval" = yes; then
9571 ac_cv_use_gif='wxUSE_GIF=yes'
9572 else
9573 ac_cv_use_gif='wxUSE_GIF=no'
9574 fi
9575
9576else
9577
9578 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9579 if test "x$LINE" != x ; then
9580 eval "DEFAULT_$LINE"
9581 else
9582 no_cache=1
9583 fi
9584
9585 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9586
9587fi;
9588
9589 eval "$ac_cv_use_gif"
9590 if test "$no_cache" != 1; then
9591 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9592 fi
9593
9594 if test "$wxUSE_GIF" = yes; then
9595 echo "$as_me:$LINENO: result: yes" >&5
9596echo "${ECHO_T}yes" >&6
9597 else
9598 echo "$as_me:$LINENO: result: no" >&5
9599echo "${ECHO_T}no" >&6
9600 fi
9601
9602
9603 enablestring=
9604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9605echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9606 no_cache=0
9607 # Check whether --enable-pcx or --disable-pcx was given.
9608if test "${enable_pcx+set}" = set; then
9609 enableval="$enable_pcx"
9610
9611 if test "$enableval" = yes; then
9612 ac_cv_use_pcx='wxUSE_PCX=yes'
9613 else
9614 ac_cv_use_pcx='wxUSE_PCX=no'
9615 fi
9616
9617else
9618
9619 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9620 if test "x$LINE" != x ; then
9621 eval "DEFAULT_$LINE"
9622 else
9623 no_cache=1
9624 fi
9625
9626 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9627
9628fi;
9629
9630 eval "$ac_cv_use_pcx"
9631 if test "$no_cache" != 1; then
9632 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9633 fi
9634
9635 if test "$wxUSE_PCX" = yes; then
9636 echo "$as_me:$LINENO: result: yes" >&5
9637echo "${ECHO_T}yes" >&6
9638 else
9639 echo "$as_me:$LINENO: result: no" >&5
9640echo "${ECHO_T}no" >&6
9641 fi
9642
9643
9644 enablestring=
9645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9646echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9647 no_cache=0
9648 # Check whether --enable-iff or --disable-iff was given.
9649if test "${enable_iff+set}" = set; then
9650 enableval="$enable_iff"
9651
9652 if test "$enableval" = yes; then
9653 ac_cv_use_iff='wxUSE_IFF=yes'
9654 else
9655 ac_cv_use_iff='wxUSE_IFF=no'
9656 fi
9657
9658else
9659
9660 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9661 if test "x$LINE" != x ; then
9662 eval "DEFAULT_$LINE"
9663 else
9664 no_cache=1
9665 fi
9666
9667 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9668
9669fi;
9670
9671 eval "$ac_cv_use_iff"
9672 if test "$no_cache" != 1; then
9673 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9674 fi
9675
9676 if test "$wxUSE_IFF" = yes; then
9677 echo "$as_me:$LINENO: result: yes" >&5
9678echo "${ECHO_T}yes" >&6
9679 else
9680 echo "$as_me:$LINENO: result: no" >&5
9681echo "${ECHO_T}no" >&6
9682 fi
9683
9684
9685 enablestring=
9686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9687echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9688 no_cache=0
9689 # Check whether --enable-pnm or --disable-pnm was given.
9690if test "${enable_pnm+set}" = set; then
9691 enableval="$enable_pnm"
9692
9693 if test "$enableval" = yes; then
9694 ac_cv_use_pnm='wxUSE_PNM=yes'
9695 else
9696 ac_cv_use_pnm='wxUSE_PNM=no'
9697 fi
9698
9699else
9700
9701 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9702 if test "x$LINE" != x ; then
9703 eval "DEFAULT_$LINE"
9704 else
9705 no_cache=1
9706 fi
9707
9708 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9709
9710fi;
9711
9712 eval "$ac_cv_use_pnm"
9713 if test "$no_cache" != 1; then
9714 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9715 fi
9716
9717 if test "$wxUSE_PNM" = yes; then
9718 echo "$as_me:$LINENO: result: yes" >&5
9719echo "${ECHO_T}yes" >&6
9720 else
9721 echo "$as_me:$LINENO: result: no" >&5
9722echo "${ECHO_T}no" >&6
9723 fi
9724
9725
9726 enablestring=
9727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9728echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9729 no_cache=0
9730 # Check whether --enable-xpm or --disable-xpm was given.
9731if test "${enable_xpm+set}" = set; then
9732 enableval="$enable_xpm"
9733
9734 if test "$enableval" = yes; then
9735 ac_cv_use_xpm='wxUSE_XPM=yes'
9736 else
9737 ac_cv_use_xpm='wxUSE_XPM=no'
9738 fi
9739
9740else
9741
9742 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9743 if test "x$LINE" != x ; then
9744 eval "DEFAULT_$LINE"
9745 else
9746 no_cache=1
9747 fi
9748
9749 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9750
9751fi;
9752
9753 eval "$ac_cv_use_xpm"
9754 if test "$no_cache" != 1; then
9755 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9756 fi
9757
9758 if test "$wxUSE_XPM" = yes; then
9759 echo "$as_me:$LINENO: result: yes" >&5
9760echo "${ECHO_T}yes" >&6
9761 else
9762 echo "$as_me:$LINENO: result: no" >&5
9763echo "${ECHO_T}no" >&6
9764 fi
9765
9766
9767 enablestring=
9768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9769echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9770 no_cache=0
9771 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9772if test "${enable_ico_cur+set}" = set; then
9773 enableval="$enable_ico_cur"
9774
9775 if test "$enableval" = yes; then
9776 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9777 else
9778 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9779 fi
9780
9781else
9782
9783 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9784 if test "x$LINE" != x ; then
9785 eval "DEFAULT_$LINE"
9786 else
9787 no_cache=1
9788 fi
9789
9790 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9791
9792fi;
9793
9794 eval "$ac_cv_use_ico_cur"
9795 if test "$no_cache" != 1; then
9796 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9797 fi
9798
9799 if test "$wxUSE_ICO_CUR" = yes; then
9800 echo "$as_me:$LINENO: result: yes" >&5
9801echo "${ECHO_T}yes" >&6
9802 else
9803 echo "$as_me:$LINENO: result: no" >&5
9804echo "${ECHO_T}no" >&6
9805 fi
9806
9807
9808fi
9809
9810
9811
9812 enablestring=
9813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9814echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9815 no_cache=0
9816 # Check whether --enable-official_build or --disable-official_build was given.
9817if test "${enable_official_build+set}" = set; then
9818 enableval="$enable_official_build"
9819
9820 if test "$enableval" = yes; then
9821 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9822 else
9823 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9824 fi
9825
9826else
9827
9828 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9829 if test "x$LINE" != x ; then
9830 eval "DEFAULT_$LINE"
9831 else
9832 no_cache=1
9833 fi
9834
9835 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9836
9837fi;
9838
9839 eval "$ac_cv_use_official_build"
9840 if test "$no_cache" != 1; then
9841 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9842 fi
9843
9844 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9845 echo "$as_me:$LINENO: result: yes" >&5
9846echo "${ECHO_T}yes" >&6
9847 else
9848 echo "$as_me:$LINENO: result: no" >&5
9849echo "${ECHO_T}no" >&6
9850 fi
9851
9852# Check whether --enable-vendor or --disable-vendor was given.
9853if test "${enable_vendor+set}" = set; then
9854 enableval="$enable_vendor"
9855 VENDOR="$enableval"
9856fi;
9857if test "x$VENDOR" = "x"; then
9858 VENDOR="custom"
9859fi
9860
9861case "${host}" in
9862 *-pc-os2_emx | *-pc-os2-emx )
9863 PATH_IFS=';'
a848cd7e
SC
9864 ;;
9865 *)
9866 PATH_IFS=':'
9867 ;;
9868esac
9869
9870
9871
9872 echo "saving argument cache $wx_arg_cache_file"
9873 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9874
9875
9876
9877echo "$as_me:$LINENO: checking for toolkit" >&5
9878echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9879
9880# In Wine, we need to default to MSW, not GTK or MOTIF
9881if test "$wxUSE_WINE" = "yes"; then
9882 DEFAULT_DEFAULT_wxUSE_GTK=0
9883 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9884 DEFAULT_DEFAULT_wxUSE_MSW=1
9885 wxUSE_SHARED=no
9886fi
9887
9888if test "$wxUSE_GUI" = "yes"; then
9889
9890 if test "$USE_BEOS" = 1; then
9891 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9892echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9893 { (exit 1); exit 1; }; }
9894 fi
9895
9896 if test "$TOOLKIT_GIVEN" = 1; then
9897 for toolkit in `echo $ALL_TOOLKITS`; do
9898 var=wxUSE_$toolkit
9899 eval "value=\$${var}"
9900 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9901 done
9902 else
9903 for toolkit in `echo $ALL_TOOLKITS`; do
9904 if test "$has_toolkit_in_cache" != 1; then
9905 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9906 else
9907 var=DEFAULT_wxUSE_$toolkit
9908 fi
9909 eval "wxUSE_$toolkit=\$${var}"
9910 done
9911 fi
9912
9913 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9914 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9915 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9916
9917 case "${host}" in
9918 *-pc-os2_emx | *-pc-os2-emx )
9919 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9920 esac
9921
9922 case "$NUM_TOOLKITS" in
9923 1)
9924 ;;
9925 0)
9926 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9927echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9928 { (exit 1); exit 1; }; }
9929 ;;
9930 *)
9931 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9932echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9933 { (exit 1); exit 1; }; }
9934 esac
9935
9936 for toolkit in `echo $ALL_TOOLKITS`; do
9937 var=wxUSE_$toolkit
9938 eval "value=\$${var}"
9939 if test "x$value" != x; then
9940 cache_var=CACHE_$toolkit
9941 eval "cache=\$${cache_var}"
9942 if test "$cache" = 1; then
9943 echo "$var=$value" >> ${wx_arg_cache_file}
9944 fi
9945 if test "$value" = 1; then
9946 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9947 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9948echo "${ECHO_T}$toolkit_echo" >&6
9949 fi
9950 fi
9951 done
9952else
9953 if test "x$host_alias" != "x"; then
9954 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9955echo "${ECHO_T}base ($host_alias hosted) only" >&6
9956 else
9957 echo "$as_me:$LINENO: result: base only" >&5
9958echo "${ECHO_T}base only" >&6
9959 fi
9960fi
9961
9962wants_win32=0
9963doesnt_want_win32=0
9964case "${host}" in
9965 *-*-cygwin*)
9966 if test "$wxUSE_MSW" = 1 ; then
9967 wants_win32=1
9968 else
9969 doesnt_want_win32=1
9970 fi
9971 ;;
9972 *-*-mingw*)
9973 wants_win32=1
9974 ;;
9975esac
9976
9977if test "$wxUSE_WINE" = "yes"; then
9978 wants_win32=1
9979 CC=winegcc
9980 CXX=wineg++
9981 RESCOMP=wrc
9982 LDFLAGS_GUI="-mwindows"
9983fi
9984
9985if test "$wants_win32" = 1 ; then
9986 USE_UNIX=0
9987 USE_WIN32=1
9988 cat >>confdefs.h <<\_ACEOF
9989#define __WIN32__ 1
9990_ACEOF
9991
9992 cat >>confdefs.h <<\_ACEOF
9993#define __WIN95__ 1
9994_ACEOF
9995
9996 cat >>confdefs.h <<\_ACEOF
9997#define __WINDOWS__ 1
9998_ACEOF
9999
10000 cat >>confdefs.h <<\_ACEOF
10001#define __GNUWIN32__ 1
10002_ACEOF
10003
10004 cat >>confdefs.h <<\_ACEOF
10005#define STRICT 1
10006_ACEOF
10007
10008 cat >>confdefs.h <<\_ACEOF
10009#define WINVER 0x0400
10010_ACEOF
10011
10012fi
10013if test "$doesnt_want_win32" = 1 ; then
10014 USE_UNIX=1
10015 USE_WIN32=0
10016fi
10017
10018if test "$USE_UNIX" = 1 ; then
10019 wxUSE_UNIX=yes
10020 cat >>confdefs.h <<\_ACEOF
10021#define __UNIX__ 1
10022_ACEOF
10023
10024fi
10025
10026
10027cat >confcache <<\_ACEOF
10028# This file is a shell script that caches the results of configure
10029# tests run on this system so they can be shared between configure
10030# scripts and configure runs, see configure's option --config-cache.
10031# It is not useful on other systems. If it contains results you don't
10032# want to keep, you may remove or edit it.
10033#
10034# config.status only pays attention to the cache file if you give it
10035# the --recheck option to rerun configure.
10036#
10037# `ac_cv_env_foo' variables (set or unset) will be overridden when
10038# loading this file, other *unset* `ac_cv_foo' will be assigned the
10039# following values.
10040
10041_ACEOF
10042
10043# The following way of writing the cache mishandles newlines in values,
10044# but we know of no workaround that is simple, portable, and efficient.
10045# So, don't put newlines in cache variables' values.
10046# Ultrix sh set writes to stderr and can't be redirected directly,
10047# and sets the high bit in the cache file unless we assign to the vars.
10048{
10049 (set) 2>&1 |
10050 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10051 *ac_space=\ *)
10052 # `set' does not quote correctly, so add quotes (double-quote
10053 # substitution turns \\\\ into \\, and sed turns \\ into \).
10054 sed -n \
8a7b1113
VZ
10055 "s/'/'\\\\''/g;
10056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10057 ;;
10058 *)
10059 # `set' quotes correctly as required by POSIX, so do not add quotes.
10060 sed -n \
8a7b1113 10061 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10062 ;;
10063 esac;
10064} |
10065 sed '
10066 t clear
10067 : clear
10068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10069 t end
10070 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10071 : end' >>confcache
10072if diff $cache_file confcache >/dev/null 2>&1; then :; else
10073 if test -w $cache_file; then
10074 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10075 cat confcache >$cache_file
10076 else
10077 echo "not updating unwritable cache $cache_file"
10078 fi
10079fi
10080rm -f confcache
10081
10082if test "$build" != "$host" ; then
10083 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10084 CC=$host_alias-gcc
10085 CXX=$host_alias-c++
10086 AR=$host_alias-ar
10087 RANLIB=$host_alias-ranlib
10088 DLLTOOL=$host_alias-dlltool
10089 RESCOMP=$host_alias-windres
10090 LD=$host_alias-ld
10091 NM=$host_alias-nm
10092 STRIP=$host_alias-strip
10093 else
10094 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10095echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10096 { (exit 1); exit 1; }; }
10097 fi
10098fi
10099
10100CFLAGS=${CFLAGS:=}
10101ac_ext=c
10102ac_cpp='$CPP $CPPFLAGS'
10103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10105ac_compiler_gnu=$ac_cv_c_compiler_gnu
10106if test -n "$ac_tool_prefix"; then
10107 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10108set dummy ${ac_tool_prefix}gcc; ac_word=$2
10109echo "$as_me:$LINENO: checking for $ac_word" >&5
10110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10111if test "${ac_cv_prog_CC+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113else
10114 if test -n "$CC"; then
10115 ac_cv_prog_CC="$CC" # Let the user override the test.
10116else
10117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118for as_dir in $PATH
10119do
10120 IFS=$as_save_IFS
10121 test -z "$as_dir" && as_dir=.
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10124 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10126 break 2
10127 fi
10128done
10129done
10130
10131fi
10132fi
10133CC=$ac_cv_prog_CC
10134if test -n "$CC"; then
10135 echo "$as_me:$LINENO: result: $CC" >&5
10136echo "${ECHO_T}$CC" >&6
10137else
10138 echo "$as_me:$LINENO: result: no" >&5
10139echo "${ECHO_T}no" >&6
10140fi
10141
10142fi
10143if test -z "$ac_cv_prog_CC"; then
10144 ac_ct_CC=$CC
10145 # Extract the first word of "gcc", so it can be a program name with args.
10146set dummy gcc; ac_word=$2
10147echo "$as_me:$LINENO: checking for $ac_word" >&5
10148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10149if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151else
10152 if test -n "$ac_ct_CC"; then
10153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10154else
10155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156for as_dir in $PATH
10157do
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10162 ac_cv_prog_ac_ct_CC="gcc"
10163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10165 fi
10166done
10167done
10168
10169fi
10170fi
10171ac_ct_CC=$ac_cv_prog_ac_ct_CC
10172if test -n "$ac_ct_CC"; then
10173 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10174echo "${ECHO_T}$ac_ct_CC" >&6
10175else
10176 echo "$as_me:$LINENO: result: no" >&5
10177echo "${ECHO_T}no" >&6
10178fi
10179
10180 CC=$ac_ct_CC
10181else
10182 CC="$ac_cv_prog_CC"
10183fi
10184
10185if test -z "$CC"; then
10186 if test -n "$ac_tool_prefix"; then
10187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10188set dummy ${ac_tool_prefix}cc; ac_word=$2
10189echo "$as_me:$LINENO: checking for $ac_word" >&5
10190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10191if test "${ac_cv_prog_CC+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193else
10194 if test -n "$CC"; then
10195 ac_cv_prog_CC="$CC" # Let the user override the test.
10196else
10197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198for as_dir in $PATH
10199do
10200 IFS=$as_save_IFS
10201 test -z "$as_dir" && as_dir=.
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10204 ac_cv_prog_CC="${ac_tool_prefix}cc"
10205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 break 2
10207 fi
10208done
10209done
10210
10211fi
10212fi
10213CC=$ac_cv_prog_CC
10214if test -n "$CC"; then
10215 echo "$as_me:$LINENO: result: $CC" >&5
10216echo "${ECHO_T}$CC" >&6
10217else
10218 echo "$as_me:$LINENO: result: no" >&5
10219echo "${ECHO_T}no" >&6
10220fi
10221
10222fi
10223if test -z "$ac_cv_prog_CC"; then
10224 ac_ct_CC=$CC
10225 # Extract the first word of "cc", so it can be a program name with args.
10226set dummy cc; ac_word=$2
10227echo "$as_me:$LINENO: checking for $ac_word" >&5
10228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231else
10232 if test -n "$ac_ct_CC"; then
10233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10234else
10235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236for as_dir in $PATH
10237do
10238 IFS=$as_save_IFS
10239 test -z "$as_dir" && as_dir=.
10240 for ac_exec_ext in '' $ac_executable_extensions; do
10241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10242 ac_cv_prog_ac_ct_CC="cc"
10243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10244 break 2
10245 fi
10246done
10247done
10248
10249fi
10250fi
10251ac_ct_CC=$ac_cv_prog_ac_ct_CC
10252if test -n "$ac_ct_CC"; then
10253 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10254echo "${ECHO_T}$ac_ct_CC" >&6
10255else
10256 echo "$as_me:$LINENO: result: no" >&5
10257echo "${ECHO_T}no" >&6
10258fi
10259
10260 CC=$ac_ct_CC
10261else
10262 CC="$ac_cv_prog_CC"
10263fi
10264
10265fi
10266if test -z "$CC"; then
10267 # Extract the first word of "cc", so it can be a program name with args.
10268set dummy cc; ac_word=$2
10269echo "$as_me:$LINENO: checking for $ac_word" >&5
10270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10271if test "${ac_cv_prog_CC+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273else
10274 if test -n "$CC"; then
10275 ac_cv_prog_CC="$CC" # Let the user override the test.
10276else
10277 ac_prog_rejected=no
10278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279for as_dir in $PATH
10280do
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
10284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10286 ac_prog_rejected=yes
10287 continue
10288 fi
10289 ac_cv_prog_CC="cc"
10290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 break 2
10292 fi
10293done
10294done
10295
10296if test $ac_prog_rejected = yes; then
10297 # We found a bogon in the path, so make sure we never use it.
10298 set dummy $ac_cv_prog_CC
10299 shift
10300 if test $# != 0; then
10301 # We chose a different compiler from the bogus one.
10302 # However, it has the same basename, so the bogon will be chosen
10303 # first if we set CC to just the basename; use the full file name.
10304 shift
10305 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10306 fi
10307fi
10308fi
10309fi
10310CC=$ac_cv_prog_CC
10311if test -n "$CC"; then
10312 echo "$as_me:$LINENO: result: $CC" >&5
10313echo "${ECHO_T}$CC" >&6
10314else
10315 echo "$as_me:$LINENO: result: no" >&5
10316echo "${ECHO_T}no" >&6
10317fi
10318
10319fi
10320if test -z "$CC"; then
10321 if test -n "$ac_tool_prefix"; then
10322 for ac_prog in cl
10323 do
10324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10325set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10326echo "$as_me:$LINENO: checking for $ac_word" >&5
10327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10328if test "${ac_cv_prog_CC+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330else
10331 if test -n "$CC"; then
10332 ac_cv_prog_CC="$CC" # Let the user override the test.
10333else
10334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335for as_dir in $PATH
10336do
10337 IFS=$as_save_IFS
10338 test -z "$as_dir" && as_dir=.
10339 for ac_exec_ext in '' $ac_executable_extensions; do
10340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10341 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10343 break 2
10344 fi
10345done
10346done
10347
10348fi
10349fi
10350CC=$ac_cv_prog_CC
10351if test -n "$CC"; then
10352 echo "$as_me:$LINENO: result: $CC" >&5
10353echo "${ECHO_T}$CC" >&6
10354else
10355 echo "$as_me:$LINENO: result: no" >&5
10356echo "${ECHO_T}no" >&6
10357fi
10358
10359 test -n "$CC" && break
10360 done
10361fi
10362if test -z "$CC"; then
10363 ac_ct_CC=$CC
10364 for ac_prog in cl
10365do
10366 # Extract the first word of "$ac_prog", so it can be a program name with args.
10367set dummy $ac_prog; ac_word=$2
10368echo "$as_me:$LINENO: checking for $ac_word" >&5
10369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10370if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372else
10373 if test -n "$ac_ct_CC"; then
10374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10375else
10376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377for as_dir in $PATH
10378do
10379 IFS=$as_save_IFS
10380 test -z "$as_dir" && as_dir=.
10381 for ac_exec_ext in '' $ac_executable_extensions; do
10382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10383 ac_cv_prog_ac_ct_CC="$ac_prog"
10384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 break 2
10386 fi
10387done
10388done
10389
10390fi
10391fi
10392ac_ct_CC=$ac_cv_prog_ac_ct_CC
10393if test -n "$ac_ct_CC"; then
10394 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10395echo "${ECHO_T}$ac_ct_CC" >&6
10396else
10397 echo "$as_me:$LINENO: result: no" >&5
10398echo "${ECHO_T}no" >&6
10399fi
10400
10401 test -n "$ac_ct_CC" && break
10402done
10403
10404 CC=$ac_ct_CC
10405fi
10406
10407fi
10408
10409
10410test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10411See \`config.log' for more details." >&5
10412echo "$as_me: error: no acceptable C compiler found in \$PATH
10413See \`config.log' for more details." >&2;}
10414 { (exit 1); exit 1; }; }
10415
10416# Provide some information about the compiler.
10417echo "$as_me:$LINENO:" \
10418 "checking for C compiler version" >&5
10419ac_compiler=`set X $ac_compile; echo $2`
10420{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10421 (eval $ac_compiler --version </dev/null >&5) 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }
10425{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10426 (eval $ac_compiler -v </dev/null >&5) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }
10430{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10431 (eval $ac_compiler -V </dev/null >&5) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }
10435
10436cat >conftest.$ac_ext <<_ACEOF
8a7b1113 10437#line $LINENO "configure"
a848cd7e
SC
10438/* confdefs.h. */
10439_ACEOF
10440cat confdefs.h >>conftest.$ac_ext
10441cat >>conftest.$ac_ext <<_ACEOF
10442/* end confdefs.h. */
10443
10444int
10445main ()
10446{
10447
10448 ;
10449 return 0;
10450}
10451_ACEOF
10452ac_clean_files_save=$ac_clean_files
10453ac_clean_files="$ac_clean_files a.out a.exe b.out"
10454# Try to create an executable without -o first, disregard a.out.
10455# It will help us diagnose broken compilers, and finding out an intuition
10456# of exeext.
8a7b1113
VZ
10457echo "$as_me:$LINENO: checking for C compiler default output" >&5
10458echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
a848cd7e
SC
10459ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10460if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10461 (eval $ac_link_default) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; then
10465 # Find the output, starting from the most likely. This scheme is
10466# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10467# resort.
10468
10469# Be careful to initialize this variable, since it used to be cached.
10470# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10471ac_cv_exeext=
10472# b.out is created by i960 compilers.
10473for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10474do
10475 test -f "$ac_file" || continue
10476 case $ac_file in
10477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
8a7b1113 10478 ;;
a848cd7e 10479 conftest.$ac_ext )
8a7b1113
VZ
10480 # This is the source file.
10481 ;;
a848cd7e 10482 [ab].out )
8a7b1113
VZ
10483 # We found the default executable, but exeext='' is most
10484 # certainly right.
10485 break;;
a848cd7e 10486 *.* )
8a7b1113
VZ
10487 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10488 # FIXME: I believe we export ac_cv_exeext for Libtool,
10489 # but it would be cool to find out if it's true. Does anybody
10490 # maintain Libtool? --akim.
10491 export ac_cv_exeext
10492 break;;
a848cd7e 10493 * )
8a7b1113 10494 break;;
a848cd7e
SC
10495 esac
10496done
10497else
10498 echo "$as_me: failed program was:" >&5
10499sed 's/^/| /' conftest.$ac_ext >&5
10500
10501{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10502See \`config.log' for more details." >&5
10503echo "$as_me: error: C compiler cannot create executables
10504See \`config.log' for more details." >&2;}
10505 { (exit 77); exit 77; }; }
10506fi
10507
10508ac_exeext=$ac_cv_exeext
10509echo "$as_me:$LINENO: result: $ac_file" >&5
10510echo "${ECHO_T}$ac_file" >&6
10511
10512# Check the compiler produces executables we can run. If not, either
10513# the compiler is broken, or we cross compile.
10514echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10515echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10516# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10517# If not cross compiling, check that we can run a simple program.
10518if test "$cross_compiling" != yes; then
10519 if { ac_try='./$ac_file'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 cross_compiling=no
10526 else
10527 if test "$cross_compiling" = maybe; then
10528 cross_compiling=yes
10529 else
10530 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10531If you meant to cross compile, use \`--host'.
10532See \`config.log' for more details." >&5
10533echo "$as_me: error: cannot run C compiled programs.
10534If you meant to cross compile, use \`--host'.
10535See \`config.log' for more details." >&2;}
10536 { (exit 1); exit 1; }; }
10537 fi
10538 fi
10539fi
10540echo "$as_me:$LINENO: result: yes" >&5
10541echo "${ECHO_T}yes" >&6
10542
10543rm -f a.out a.exe conftest$ac_cv_exeext b.out
10544ac_clean_files=$ac_clean_files_save
10545# Check the compiler produces executables we can run. If not, either
10546# the compiler is broken, or we cross compile.
10547echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10548echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10549echo "$as_me:$LINENO: result: $cross_compiling" >&5
10550echo "${ECHO_T}$cross_compiling" >&6
10551
10552echo "$as_me:$LINENO: checking for suffix of executables" >&5
10553echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555 (eval $ac_link) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; then
10559 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10560# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10561# work properly (i.e., refer to `conftest.exe'), while it won't with
10562# `rm'.
10563for ac_file in conftest.exe conftest conftest.*; do
10564 test -f "$ac_file" || continue
10565 case $ac_file in
10566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10567 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a7b1113
VZ
10568 export ac_cv_exeext
10569 break;;
a848cd7e
SC
10570 * ) break;;
10571 esac
10572done
10573else
10574 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10575See \`config.log' for more details." >&5
10576echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10577See \`config.log' for more details." >&2;}
10578 { (exit 1); exit 1; }; }
10579fi
10580
10581rm -f conftest$ac_cv_exeext
10582echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10583echo "${ECHO_T}$ac_cv_exeext" >&6
10584
10585rm -f conftest.$ac_ext
10586EXEEXT=$ac_cv_exeext
10587ac_exeext=$EXEEXT
10588echo "$as_me:$LINENO: checking for suffix of object files" >&5
10589echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10590if test "${ac_cv_objext+set}" = set; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10592else
10593 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 10594#line $LINENO "configure"
a848cd7e
SC
10595/* confdefs.h. */
10596_ACEOF
10597cat confdefs.h >>conftest.$ac_ext
10598cat >>conftest.$ac_ext <<_ACEOF
10599/* end confdefs.h. */
10600
10601int
10602main ()
10603{
10604
10605 ;
10606 return 0;
10607}
10608_ACEOF
10609rm -f conftest.o conftest.obj
10610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611 (eval $ac_compile) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; then
10615 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10616 case $ac_file in
10617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10618 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10619 break;;
10620 esac
10621done
10622else
10623 echo "$as_me: failed program was:" >&5
10624sed 's/^/| /' conftest.$ac_ext >&5
10625
10626{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10627See \`config.log' for more details." >&5
10628echo "$as_me: error: cannot compute suffix of object files: cannot compile
10629See \`config.log' for more details." >&2;}
10630 { (exit 1); exit 1; }; }
10631fi
10632
10633rm -f conftest.$ac_cv_objext conftest.$ac_ext
10634fi
10635echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10636echo "${ECHO_T}$ac_cv_objext" >&6
10637OBJEXT=$ac_cv_objext
10638ac_objext=$OBJEXT
10639echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10640echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10641if test "${ac_cv_c_compiler_gnu+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643else
10644 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 10645#line $LINENO "configure"
a848cd7e
SC
10646/* confdefs.h. */
10647_ACEOF
10648cat confdefs.h >>conftest.$ac_ext
10649cat >>conftest.$ac_ext <<_ACEOF
10650/* end confdefs.h. */
10651
10652int
10653main ()
10654{
10655#ifndef __GNUC__
10656 choke me
10657#endif
10658
10659 ;
10660 return 0;
10661}
10662_ACEOF
10663rm -f conftest.$ac_objext
10664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 10665 (eval $ac_compile) 2>&5
a848cd7e 10666 ac_status=$?
a848cd7e
SC
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
8a7b1113 10669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_compiler_gnu=yes
10676else
10677 echo "$as_me: failed program was:" >&5
10678sed 's/^/| /' conftest.$ac_ext >&5
10679
10680ac_compiler_gnu=no
10681fi
8a7b1113 10682rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10683ac_cv_c_compiler_gnu=$ac_compiler_gnu
10684
10685fi
10686echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10687echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10688GCC=`test $ac_compiler_gnu = yes && echo yes`
10689ac_test_CFLAGS=${CFLAGS+set}
10690ac_save_CFLAGS=$CFLAGS
10691CFLAGS="-g"
10692echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10693echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10694if test "${ac_cv_prog_cc_g+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696else
10697 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 10698#line $LINENO "configure"
a848cd7e
SC
10699/* confdefs.h. */
10700_ACEOF
10701cat confdefs.h >>conftest.$ac_ext
10702cat >>conftest.$ac_ext <<_ACEOF
10703/* end confdefs.h. */
10704
10705int
10706main ()
10707{
10708
10709 ;
10710 return 0;
10711}
10712_ACEOF
10713rm -f conftest.$ac_objext
10714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 10715 (eval $ac_compile) 2>&5
a848cd7e 10716 ac_status=$?
a848cd7e
SC
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
8a7b1113 10719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_cv_prog_cc_g=yes
10726else
10727 echo "$as_me: failed program was:" >&5
10728sed 's/^/| /' conftest.$ac_ext >&5
10729
10730ac_cv_prog_cc_g=no
10731fi
8a7b1113 10732rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10733fi
10734echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10735echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10736if test "$ac_test_CFLAGS" = set; then
10737 CFLAGS=$ac_save_CFLAGS
10738elif test $ac_cv_prog_cc_g = yes; then
10739 if test "$GCC" = yes; then
10740 CFLAGS="-g -O2"
10741 else
10742 CFLAGS="-g"
10743 fi
10744else
10745 if test "$GCC" = yes; then
10746 CFLAGS="-O2"
10747 else
10748 CFLAGS=
10749 fi
10750fi
10751echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10752echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10753if test "${ac_cv_prog_cc_stdc+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755else
10756 ac_cv_prog_cc_stdc=no
10757ac_save_CC=$CC
10758cat >conftest.$ac_ext <<_ACEOF
8a7b1113 10759#line $LINENO "configure"
a848cd7e
SC
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h. */
10765#include <stdarg.h>
10766#include <stdio.h>
10767#include <sys/types.h>
10768#include <sys/stat.h>
10769/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10770struct buf { int x; };
10771FILE * (*rcsopen) (struct buf *, struct stat *, int);
10772static char *e (p, i)
10773 char **p;
10774 int i;
10775{
10776 return p[i];
10777}
10778static char *f (char * (*g) (char **, int), char **p, ...)
10779{
10780 char *s;
10781 va_list v;
10782 va_start (v,p);
10783 s = g (p, va_arg (v,int));
10784 va_end (v);
10785 return s;
10786}
a848cd7e
SC
10787int test (int i, double x);
10788struct s1 {int (*f) (int a);};
10789struct s2 {int (*f) (double a);};
10790int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10791int argc;
10792char **argv;
10793int
10794main ()
10795{
10796return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10797 ;
10798 return 0;
10799}
10800_ACEOF
10801# Don't try gcc -ansi; that turns off useful extensions and
10802# breaks some systems' header files.
10803# AIX -qlanglvl=ansi
10804# Ultrix and OSF/1 -std1
10805# HP-UX 10.20 and later -Ae
10806# HP-UX older versions -Aa -D_HPUX_SOURCE
10807# SVR4 -Xc -D__EXTENSIONS__
10808for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10809do
10810 CC="$ac_save_CC $ac_arg"
10811 rm -f conftest.$ac_objext
10812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 10813 (eval $ac_compile) 2>&5
a848cd7e 10814 ac_status=$?
a848cd7e
SC
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
8a7b1113 10817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10823 ac_cv_prog_cc_stdc=$ac_arg
10824break
10825else
10826 echo "$as_me: failed program was:" >&5
10827sed 's/^/| /' conftest.$ac_ext >&5
10828
10829fi
8a7b1113 10830rm -f conftest.$ac_objext
a848cd7e
SC
10831done
10832rm -f conftest.$ac_ext conftest.$ac_objext
10833CC=$ac_save_CC
10834
10835fi
10836
10837case "x$ac_cv_prog_cc_stdc" in
10838 x|xno)
10839 echo "$as_me:$LINENO: result: none needed" >&5
10840echo "${ECHO_T}none needed" >&6 ;;
10841 *)
10842 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10843echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10844 CC="$CC $ac_cv_prog_cc_stdc" ;;
10845esac
10846
10847# Some people use a C++ compiler to compile C. Since we use `exit',
10848# in C++ we need to declare it. In case someone uses the same compiler
10849# for both compiling C and C++ we need to have the C++ compiler decide
10850# the declaration of exit, since it's the most demanding environment.
10851cat >conftest.$ac_ext <<_ACEOF
10852#ifndef __cplusplus
10853 choke me
10854#endif
10855_ACEOF
10856rm -f conftest.$ac_objext
10857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 10858 (eval $ac_compile) 2>&5
a848cd7e 10859 ac_status=$?
a848cd7e
SC
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } &&
8a7b1113 10862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864 (eval $ac_try) 2>&5
10865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; }; then
10868 for ac_declaration in \
10869 '' \
10870 'extern "C" void std::exit (int) throw (); using std::exit;' \
10871 'extern "C" void std::exit (int); using std::exit;' \
10872 'extern "C" void exit (int) throw ();' \
10873 'extern "C" void exit (int);' \
10874 'void exit (int);'
10875do
10876 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 10877#line $LINENO "configure"
a848cd7e
SC
10878/* confdefs.h. */
10879_ACEOF
10880cat confdefs.h >>conftest.$ac_ext
10881cat >>conftest.$ac_ext <<_ACEOF
10882/* end confdefs.h. */
10883$ac_declaration
10884#include <stdlib.h>
10885int
10886main ()
10887{
10888exit (42);
10889 ;
10890 return 0;
10891}
10892_ACEOF
10893rm -f conftest.$ac_objext
10894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 10895 (eval $ac_compile) 2>&5
a848cd7e 10896 ac_status=$?
a848cd7e
SC
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
8a7b1113 10899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10905 :
10906else
10907 echo "$as_me: failed program was:" >&5
10908sed 's/^/| /' conftest.$ac_ext >&5
10909
10910continue
10911fi
8a7b1113 10912rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 10913 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 10914#line $LINENO "configure"
a848cd7e
SC
10915/* confdefs.h. */
10916_ACEOF
10917cat confdefs.h >>conftest.$ac_ext
10918cat >>conftest.$ac_ext <<_ACEOF
10919/* end confdefs.h. */
10920$ac_declaration
10921int
10922main ()
10923{
10924exit (42);
10925 ;
10926 return 0;
10927}
10928_ACEOF
10929rm -f conftest.$ac_objext
10930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 10931 (eval $ac_compile) 2>&5
a848cd7e 10932 ac_status=$?
a848cd7e
SC
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } &&
8a7b1113 10935 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937 (eval $ac_try) 2>&5
10938 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; }; then
10941 break
10942else
10943 echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
10946fi
8a7b1113 10947rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10948done
10949rm -f conftest*
10950if test -n "$ac_declaration"; then
10951 echo '#ifdef __cplusplus' >>confdefs.h
10952 echo $ac_declaration >>confdefs.h
10953 echo '#endif' >>confdefs.h
10954fi
10955
10956else
10957 echo "$as_me: failed program was:" >&5
10958sed 's/^/| /' conftest.$ac_ext >&5
10959
10960fi
8a7b1113 10961rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10962ac_ext=c
10963ac_cpp='$CPP $CPPFLAGS'
10964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10966ac_compiler_gnu=$ac_cv_c_compiler_gnu
10967
10968
10969
10970ac_ext=c
10971ac_cpp='$CPP $CPPFLAGS'
10972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10974ac_compiler_gnu=$ac_cv_c_compiler_gnu
10975echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10976echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10977# On Suns, sometimes $CPP names a directory.
10978if test -n "$CPP" && test -d "$CPP"; then
10979 CPP=
10980fi
10981if test -z "$CPP"; then
10982 if test "${ac_cv_prog_CPP+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984else
10985 # Double quotes because CPP needs to be expanded
10986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10987 do
10988 ac_preproc_ok=false
10989for ac_c_preproc_warn_flag in '' yes
10990do
10991 # Use a header file that comes with gcc, so configuring glibc
10992 # with a fresh cross-compiler works.
10993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10994 # <limits.h> exists even on freestanding compilers.
10995 # On the NeXT, cc -E runs the code through the compiler's parser,
10996 # not just through cpp. "Syntax error" is here to catch this case.
10997 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 10998#line $LINENO "configure"
a848cd7e
SC
10999/* confdefs.h. */
11000_ACEOF
11001cat confdefs.h >>conftest.$ac_ext
11002cat >>conftest.$ac_ext <<_ACEOF
11003/* end confdefs.h. */
11004#ifdef __STDC__
11005# include <limits.h>
11006#else
11007# include <assert.h>
11008#endif
8a7b1113 11009 Syntax error
a848cd7e
SC
11010_ACEOF
11011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11013 ac_status=$?
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } >/dev/null; then
11019 if test -s conftest.err; then
11020 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
11021 else
11022 ac_cpp_err=
11023 fi
11024else
11025 ac_cpp_err=yes
11026fi
11027if test -z "$ac_cpp_err"; then
11028 :
11029else
11030 echo "$as_me: failed program was:" >&5
11031sed 's/^/| /' conftest.$ac_ext >&5
11032
11033 # Broken: fails on valid input.
11034continue
11035fi
11036rm -f conftest.err conftest.$ac_ext
11037
11038 # OK, works on sane cases. Now check whether non-existent headers
11039 # can be detected and how.
11040 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 11041#line $LINENO "configure"
a848cd7e
SC
11042/* confdefs.h. */
11043_ACEOF
11044cat confdefs.h >>conftest.$ac_ext
11045cat >>conftest.$ac_ext <<_ACEOF
11046/* end confdefs.h. */
11047#include <ac_nonexistent.h>
11048_ACEOF
11049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11051 ac_status=$?
11052 grep -v '^ *+' conftest.er1 >conftest.err
11053 rm -f conftest.er1
11054 cat conftest.err >&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } >/dev/null; then
11057 if test -s conftest.err; then
11058 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
11059 else
11060 ac_cpp_err=
11061 fi
11062else
11063 ac_cpp_err=yes
11064fi
11065if test -z "$ac_cpp_err"; then
11066 # Broken: success on invalid input.
11067continue
11068else
11069 echo "$as_me: failed program was:" >&5
11070sed 's/^/| /' conftest.$ac_ext >&5
11071
11072 # Passes both tests.
11073ac_preproc_ok=:
11074break
11075fi
11076rm -f conftest.err conftest.$ac_ext
11077
11078done
11079# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11080rm -f conftest.err conftest.$ac_ext
11081if $ac_preproc_ok; then
11082 break
11083fi
11084
11085 done
11086 ac_cv_prog_CPP=$CPP
11087
11088fi
11089 CPP=$ac_cv_prog_CPP
11090else
11091 ac_cv_prog_CPP=$CPP
11092fi
11093echo "$as_me:$LINENO: result: $CPP" >&5
11094echo "${ECHO_T}$CPP" >&6
11095ac_preproc_ok=false
11096for ac_c_preproc_warn_flag in '' yes
11097do
11098 # Use a header file that comes with gcc, so configuring glibc
11099 # with a fresh cross-compiler works.
11100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11101 # <limits.h> exists even on freestanding compilers.
11102 # On the NeXT, cc -E runs the code through the compiler's parser,
11103 # not just through cpp. "Syntax error" is here to catch this case.
11104 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 11105#line $LINENO "configure"
a848cd7e
SC
11106/* confdefs.h. */
11107_ACEOF
11108cat confdefs.h >>conftest.$ac_ext
11109cat >>conftest.$ac_ext <<_ACEOF
11110/* end confdefs.h. */
11111#ifdef __STDC__
11112# include <limits.h>
11113#else
11114# include <assert.h>
11115#endif
8a7b1113 11116 Syntax error
a848cd7e
SC
11117_ACEOF
11118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } >/dev/null; then
11126 if test -s conftest.err; then
11127 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
11128 else
11129 ac_cpp_err=
11130 fi
11131else
11132 ac_cpp_err=yes
11133fi
11134if test -z "$ac_cpp_err"; then
11135 :
11136else
11137 echo "$as_me: failed program was:" >&5
11138sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 # Broken: fails on valid input.
11141continue
11142fi
11143rm -f conftest.err conftest.$ac_ext
11144
11145 # OK, works on sane cases. Now check whether non-existent headers
11146 # can be detected and how.
11147 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 11148#line $LINENO "configure"
a848cd7e
SC
11149/* confdefs.h. */
11150_ACEOF
11151cat confdefs.h >>conftest.$ac_ext
11152cat >>conftest.$ac_ext <<_ACEOF
11153/* end confdefs.h. */
11154#include <ac_nonexistent.h>
11155_ACEOF
11156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11158 ac_status=$?
11159 grep -v '^ *+' conftest.er1 >conftest.err
11160 rm -f conftest.er1
11161 cat conftest.err >&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } >/dev/null; then
11164 if test -s conftest.err; then
11165 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
11166 else
11167 ac_cpp_err=
11168 fi
11169else
11170 ac_cpp_err=yes
11171fi
11172if test -z "$ac_cpp_err"; then
11173 # Broken: success on invalid input.
11174continue
11175else
11176 echo "$as_me: failed program was:" >&5
11177sed 's/^/| /' conftest.$ac_ext >&5
11178
11179 # Passes both tests.
11180ac_preproc_ok=:
11181break
11182fi
11183rm -f conftest.err conftest.$ac_ext
11184
11185done
11186# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11187rm -f conftest.err conftest.$ac_ext
11188if $ac_preproc_ok; then
11189 :
11190else
11191 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11192See \`config.log' for more details." >&5
11193echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11194See \`config.log' for more details." >&2;}
11195 { (exit 1); exit 1; }; }
11196fi
11197
11198ac_ext=c
11199ac_cpp='$CPP $CPPFLAGS'
11200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11202ac_compiler_gnu=$ac_cv_c_compiler_gnu
11203
11204
11205echo "$as_me:$LINENO: checking for egrep" >&5
11206echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11207if test "${ac_cv_prog_egrep+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209else
11210 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11211 then ac_cv_prog_egrep='grep -E'
11212 else ac_cv_prog_egrep='egrep'
11213 fi
11214fi
11215echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11216echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11217 EGREP=$ac_cv_prog_egrep
11218
11219
11220if test $ac_cv_c_compiler_gnu = yes; then
11221 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11222echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11223if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225else
11226 ac_pattern="Autoconf.*'x'"
11227 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 11228#line $LINENO "configure"
a848cd7e
SC
11229/* confdefs.h. */
11230_ACEOF
11231cat confdefs.h >>conftest.$ac_ext
11232cat >>conftest.$ac_ext <<_ACEOF
11233/* end confdefs.h. */
11234#include <sgtty.h>
11235Autoconf TIOCGETP
11236_ACEOF
11237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11238 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11239 ac_cv_prog_gcc_traditional=yes
11240else
11241 ac_cv_prog_gcc_traditional=no
11242fi
11243rm -f conftest*
11244
11245
11246 if test $ac_cv_prog_gcc_traditional = no; then
11247 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 11248#line $LINENO "configure"
a848cd7e
SC
11249/* confdefs.h. */
11250_ACEOF
11251cat confdefs.h >>conftest.$ac_ext
11252cat >>conftest.$ac_ext <<_ACEOF
11253/* end confdefs.h. */
11254#include <termio.h>
11255Autoconf TCGETA
11256_ACEOF
11257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11258 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11259 ac_cv_prog_gcc_traditional=yes
11260fi
11261rm -f conftest*
11262
11263 fi
11264fi
11265echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11266echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11267 if test $ac_cv_prog_gcc_traditional = yes; then
11268 CC="$CC -traditional"
11269 fi
11270fi
11271
11272
11273
11274
11275ac_ext=cc
11276ac_cpp='$CXXCPP $CPPFLAGS'
11277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11280
11281
11282CXXFLAGS=${CXXFLAGS:=}
11283ac_ext=cc
11284ac_cpp='$CXXCPP $CPPFLAGS'
11285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11288if test -n "$ac_tool_prefix"; then
11289 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11290 do
11291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11292set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11293echo "$as_me:$LINENO: checking for $ac_word" >&5
11294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11295if test "${ac_cv_prog_CXX+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297else
11298 if test -n "$CXX"; then
11299 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11300else
11301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302for as_dir in $PATH
11303do
11304 IFS=$as_save_IFS
11305 test -z "$as_dir" && as_dir=.
11306 for ac_exec_ext in '' $ac_executable_extensions; do
11307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11308 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11310 break 2
11311 fi
11312done
11313done
11314
11315fi
11316fi
11317CXX=$ac_cv_prog_CXX
11318if test -n "$CXX"; then
11319 echo "$as_me:$LINENO: result: $CXX" >&5
11320echo "${ECHO_T}$CXX" >&6
11321else
11322 echo "$as_me:$LINENO: result: no" >&5
11323echo "${ECHO_T}no" >&6
11324fi
11325
11326 test -n "$CXX" && break
11327 done
11328fi
11329if test -z "$CXX"; then
11330 ac_ct_CXX=$CXX
11331 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11332do
11333 # Extract the first word of "$ac_prog", so it can be a program name with args.
11334set dummy $ac_prog; ac_word=$2
11335echo "$as_me:$LINENO: checking for $ac_word" >&5
11336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11337if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340 if test -n "$ac_ct_CXX"; then
11341 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11342else
11343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344for as_dir in $PATH
11345do
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
11349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11350 ac_cv_prog_ac_ct_CXX="$ac_prog"
11351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11352 break 2
11353 fi
11354done
11355done
11356
11357fi
11358fi
11359ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11360if test -n "$ac_ct_CXX"; then
11361 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11362echo "${ECHO_T}$ac_ct_CXX" >&6
11363else
11364 echo "$as_me:$LINENO: result: no" >&5
11365echo "${ECHO_T}no" >&6
11366fi
11367
11368 test -n "$ac_ct_CXX" && break
11369done
11370test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11371
11372 CXX=$ac_ct_CXX
11373fi
11374
11375
11376# Provide some information about the compiler.
11377echo "$as_me:$LINENO:" \
11378 "checking for C++ compiler version" >&5
11379ac_compiler=`set X $ac_compile; echo $2`
11380{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11381 (eval $ac_compiler --version </dev/null >&5) 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }
11385{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11386 (eval $ac_compiler -v </dev/null >&5) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }
11390{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11391 (eval $ac_compiler -V </dev/null >&5) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }
11395
11396echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11397echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11398if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400else
11401 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 11402#line $LINENO "configure"
a848cd7e
SC
11403/* confdefs.h. */
11404_ACEOF
11405cat confdefs.h >>conftest.$ac_ext
11406cat >>conftest.$ac_ext <<_ACEOF
11407/* end confdefs.h. */
11408
11409int
11410main ()
11411{
11412#ifndef __GNUC__
11413 choke me
11414#endif
11415
11416 ;
11417 return 0;
11418}
11419_ACEOF
11420rm -f conftest.$ac_objext
11421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 11422 (eval $ac_compile) 2>&5
a848cd7e 11423 ac_status=$?
a848cd7e
SC
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
8a7b1113 11426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11429 ac_status=$?
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 ac_compiler_gnu=yes
11433else
11434 echo "$as_me: failed program was:" >&5
11435sed 's/^/| /' conftest.$ac_ext >&5
11436
11437ac_compiler_gnu=no
11438fi
8a7b1113 11439rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11440ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11441
11442fi
11443echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11444echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11445GXX=`test $ac_compiler_gnu = yes && echo yes`
11446ac_test_CXXFLAGS=${CXXFLAGS+set}
11447ac_save_CXXFLAGS=$CXXFLAGS
11448CXXFLAGS="-g"
11449echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11450echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11451if test "${ac_cv_prog_cxx_g+set}" = set; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11453else
11454 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 11455#line $LINENO "configure"
a848cd7e
SC
11456/* confdefs.h. */
11457_ACEOF
11458cat confdefs.h >>conftest.$ac_ext
11459cat >>conftest.$ac_ext <<_ACEOF
11460/* end confdefs.h. */
11461
11462int
11463main ()
11464{
11465
11466 ;
11467 return 0;
11468}
11469_ACEOF
11470rm -f conftest.$ac_objext
11471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 11472 (eval $ac_compile) 2>&5
a848cd7e 11473 ac_status=$?
a848cd7e
SC
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
8a7b1113 11476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11479 ac_status=$?
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 ac_cv_prog_cxx_g=yes
11483else
11484 echo "$as_me: failed program was:" >&5
11485sed 's/^/| /' conftest.$ac_ext >&5
11486
11487ac_cv_prog_cxx_g=no
11488fi
8a7b1113 11489rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11490fi
11491echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11492echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11493if test "$ac_test_CXXFLAGS" = set; then
11494 CXXFLAGS=$ac_save_CXXFLAGS
11495elif test $ac_cv_prog_cxx_g = yes; then
11496 if test "$GXX" = yes; then
11497 CXXFLAGS="-g -O2"
11498 else
11499 CXXFLAGS="-g"
11500 fi
11501else
11502 if test "$GXX" = yes; then
11503 CXXFLAGS="-O2"
11504 else
11505 CXXFLAGS=
11506 fi
11507fi
11508for ac_declaration in \
11509 '' \
11510 'extern "C" void std::exit (int) throw (); using std::exit;' \
11511 'extern "C" void std::exit (int); using std::exit;' \
11512 'extern "C" void exit (int) throw ();' \
11513 'extern "C" void exit (int);' \
11514 'void exit (int);'
11515do
11516 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 11517#line $LINENO "configure"
a848cd7e
SC
11518/* confdefs.h. */
11519_ACEOF
11520cat confdefs.h >>conftest.$ac_ext
11521cat >>conftest.$ac_ext <<_ACEOF
11522/* end confdefs.h. */
11523$ac_declaration
11524#include <stdlib.h>
11525int
11526main ()
11527{
11528exit (42);
11529 ;
11530 return 0;
11531}
11532_ACEOF
11533rm -f conftest.$ac_objext
11534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 11535 (eval $ac_compile) 2>&5
a848cd7e 11536 ac_status=$?
a848cd7e
SC
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
8a7b1113 11539 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 :
11546else
11547 echo "$as_me: failed program was:" >&5
11548sed 's/^/| /' conftest.$ac_ext >&5
11549
11550continue
11551fi
8a7b1113 11552rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 11553 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 11554#line $LINENO "configure"
a848cd7e
SC
11555/* confdefs.h. */
11556_ACEOF
11557cat confdefs.h >>conftest.$ac_ext
11558cat >>conftest.$ac_ext <<_ACEOF
11559/* end confdefs.h. */
11560$ac_declaration
11561int
11562main ()
11563{
11564exit (42);
11565 ;
11566 return 0;
11567}
11568_ACEOF
11569rm -f conftest.$ac_objext
11570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 11571 (eval $ac_compile) 2>&5
a848cd7e 11572 ac_status=$?
a848cd7e
SC
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } &&
8a7b1113 11575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; }; then
11581 break
11582else
11583 echo "$as_me: failed program was:" >&5
11584sed 's/^/| /' conftest.$ac_ext >&5
11585
11586fi
8a7b1113 11587rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11588done
11589rm -f conftest*
11590if test -n "$ac_declaration"; then
11591 echo '#ifdef __cplusplus' >>confdefs.h
11592 echo $ac_declaration >>confdefs.h
11593 echo '#endif' >>confdefs.h
11594fi
11595
11596ac_ext=cc
11597ac_cpp='$CXXCPP $CPPFLAGS'
11598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11601
11602
11603ac_ext=c
11604ac_cpp='$CPP $CPPFLAGS'
11605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11607ac_compiler_gnu=$ac_cv_c_compiler_gnu
11608
11609
11610echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11611echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11612GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11613if test "$GCC" = "yes" ; then
11614 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11615 sed -n '1,/End of search list\./p' | \
11616 grep '^ */usr/local/include$' 2>&1 /dev/null \
11617 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11618fi
11619echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11620echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11621
11622if test -n "$ac_tool_prefix"; then
11623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11624set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11625echo "$as_me:$LINENO: checking for $ac_word" >&5
11626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11627if test "${ac_cv_prog_RANLIB+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629else
11630 if test -n "$RANLIB"; then
11631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11632else
11633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634for as_dir in $PATH
11635do
11636 IFS=$as_save_IFS
11637 test -z "$as_dir" && as_dir=.
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 break 2
11643 fi
11644done
11645done
11646
11647fi
11648fi
11649RANLIB=$ac_cv_prog_RANLIB
11650if test -n "$RANLIB"; then
11651 echo "$as_me:$LINENO: result: $RANLIB" >&5
11652echo "${ECHO_T}$RANLIB" >&6
11653else
11654 echo "$as_me:$LINENO: result: no" >&5
11655echo "${ECHO_T}no" >&6
11656fi
11657
11658fi
11659if test -z "$ac_cv_prog_RANLIB"; then
11660 ac_ct_RANLIB=$RANLIB
11661 # Extract the first word of "ranlib", so it can be a program name with args.
11662set dummy ranlib; ac_word=$2
11663echo "$as_me:$LINENO: checking for $ac_word" >&5
11664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11665if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667else
11668 if test -n "$ac_ct_RANLIB"; then
11669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11670else
11671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672for as_dir in $PATH
11673do
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11678 ac_cv_prog_ac_ct_RANLIB="ranlib"
11679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11680 break 2
11681 fi
11682done
11683done
11684
11685 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11686fi
11687fi
11688ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11689if test -n "$ac_ct_RANLIB"; then
11690 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11691echo "${ECHO_T}$ac_ct_RANLIB" >&6
11692else
11693 echo "$as_me:$LINENO: result: no" >&5
11694echo "${ECHO_T}no" >&6
11695fi
11696
11697 RANLIB=$ac_ct_RANLIB
11698else
11699 RANLIB="$ac_cv_prog_RANLIB"
11700fi
11701
11702
11703# Extract the first word of "ar", so it can be a program name with args.
11704set dummy ar; ac_word=$2
11705echo "$as_me:$LINENO: checking for $ac_word" >&5
11706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11707if test "${ac_cv_prog_AR+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11709else
11710 if test -n "$AR"; then
11711 ac_cv_prog_AR="$AR" # Let the user override the test.
11712else
11713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714for as_dir in $PATH
11715do
11716 IFS=$as_save_IFS
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11720 ac_cv_prog_AR="ar"
11721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 break 2
11723 fi
11724done
11725done
11726
11727fi
11728fi
11729AR=$ac_cv_prog_AR
11730if test -n "$AR"; then
11731 echo "$as_me:$LINENO: result: $AR" >&5
11732echo "${ECHO_T}$AR" >&6
11733else
11734 echo "$as_me:$LINENO: result: no" >&5
11735echo "${ECHO_T}no" >&6
11736fi
11737
11738if test "x$AR" = "x" ; then
11739 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11740echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11741 { (exit 1); exit 1; }; }
11742fi
11743
11744# Find a good install program. We prefer a C program (faster),
11745# so one script is as good as another. But avoid the broken or
11746# incompatible versions:
11747# SysV /etc/install, /usr/sbin/install
11748# SunOS /usr/etc/install
11749# IRIX /sbin/install
11750# AIX /bin/install
11751# AmigaOS /C/install, which installs bootblocks on floppy discs
11752# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11753# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11754# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a848cd7e
SC
11755# ./install, which can be erroneously created by make from ./install.sh.
11756echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11757echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11758if test -z "$INSTALL"; then
11759if test "${ac_cv_path_install+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761else
11762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763for as_dir in $PATH
11764do
11765 IFS=$as_save_IFS
11766 test -z "$as_dir" && as_dir=.
11767 # Account for people who put trailing slashes in PATH elements.
11768case $as_dir/ in
11769 ./ | .// | /cC/* | \
11770 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a848cd7e
SC
11771 /usr/ucb/* ) ;;
11772 *)
11773 # OSF1 and SCO ODT 3.0 have their own names for install.
11774 # Don't use installbsd from OSF since it installs stuff as root
11775 # by default.
11776 for ac_prog in ginstall scoinst install; do
11777 for ac_exec_ext in '' $ac_executable_extensions; do
8a7b1113
VZ
11778 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11779 if test $ac_prog = install &&
11780 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11781 # AIX install. It has an incompatible calling convention.
11782 :
11783 elif test $ac_prog = install &&
11784 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11785 # program-specific install script used by HP pwplus--don't use.
11786 :
11787 else
11788 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11789 break 3
11790 fi
11791 fi
a848cd7e
SC
11792 done
11793 done
11794 ;;
11795esac
11796done
11797
11798
11799fi
11800 if test "${ac_cv_path_install+set}" = set; then
11801 INSTALL=$ac_cv_path_install
11802 else
11803 # As a last resort, use the slow shell script. We don't cache a
11804 # path for INSTALL within a source directory, because that will
11805 # break other packages using the cache if that directory is
11806 # removed, or if the path is relative.
11807 INSTALL=$ac_install_sh
11808 fi
11809fi
11810echo "$as_me:$LINENO: result: $INSTALL" >&5
11811echo "${ECHO_T}$INSTALL" >&6
11812
11813# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11814# It thinks the first close brace ends the variable substitution.
11815test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11816
11817test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11818
11819test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11820
11821
11822case ${INSTALL} in
11823 /* ) # Absolute
11824 ;;
11825 ?:* ) # Drive letter, considered as absolute.
11826 ;;
11827 *)
11828 INSTALL=`pwd`/${INSTALL} ;;
11829esac
11830
11831case ${host} in
11832 *-hp-hpux* )
11833 INSTALL_DIR="mkdir"
11834 ;;
11835
11836 *) INSTALL_DIR="$INSTALL -d"
11837 ;;
11838esac
11839
11840
11841case "${host}" in
11842
11843 powerpc-*-darwin* )
11844 INSTALL_PROGRAM="cp -fp"
11845 INSTALL_DATA="cp -fp"
11846 ;;
11847 *)
11848 ;;
11849esac
11850
11851# Extract the first word of "strip", so it can be a program name with args.
11852set dummy strip; ac_word=$2
11853echo "$as_me:$LINENO: checking for $ac_word" >&5
11854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11855if test "${ac_cv_prog_STRIP+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857else
11858 if test -n "$STRIP"; then
11859 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11860else
11861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11868 ac_cv_prog_STRIP="strip"
11869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11871 fi
11872done
11873done
11874
11875 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11876fi
11877fi
11878STRIP=$ac_cv_prog_STRIP
11879if test -n "$STRIP"; then
11880 echo "$as_me:$LINENO: result: $STRIP" >&5
11881echo "${ECHO_T}$STRIP" >&6
11882else
11883 echo "$as_me:$LINENO: result: no" >&5
11884echo "${ECHO_T}no" >&6
11885fi
11886
11887
11888echo "$as_me:$LINENO: checking if make is GNU make" >&5
11889echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11890if test "${wx_cv_prog_makeisgnu+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11892else
11893
11894 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11895 egrep -s GNU > /dev/null); then
11896 wx_cv_prog_makeisgnu="yes"
11897 else
11898 wx_cv_prog_makeisgnu="no"
11899 fi
11900
11901fi
11902echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11903echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11904
11905if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11906 IF_GNU_MAKE=""
11907else
11908 IF_GNU_MAKE="#"
11909fi
11910
11911
11912
11913if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11914echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11915echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11916if test "${wx_cv_prog_makevpath+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918else
11919
11920cat - << EOF > confMake
11921check : file
11922 cp \$? \$@
11923 cp \$? final_file
11924EOF
11925
11926if test ! -d sub ; then
11927 mkdir sub
11928fi
11929echo dummy > sub/file
11930${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
11931RESULT=$?
11932rm -f sub/file check final_file confMake
11933rmdir sub
11934if test "$RESULT" = 0; then
11935 wx_cv_prog_makevpath="yes"
11936else
11937 wx_cv_prog_makevpath="no"
11938fi
11939
11940fi
11941echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11942echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
11943
11944if test "x$wx_cv_prog_makevpath" != "xyes"; then
11945{ { echo "$as_me:$LINENO: error:
11946You need a make-utility that is able to use the variable
11947VPATH correctly.
11948If your version of make does not support VPATH correctly,
11949please install GNU-make (possibly as gmake), and start
11950configure with the following command:
11951export MAKE=gmake; ./configure for sh-type shells
11952setenv MAKE gmake; ./configure for csh-type shells
11953Also please do remember to use gmake in this case every time
11954you are trying to compile.
11955" >&5
11956echo "$as_me: error:
11957You need a make-utility that is able to use the variable
11958VPATH correctly.
11959If your version of make does not support VPATH correctly,
11960please install GNU-make (possibly as gmake), and start
11961configure with the following command:
11962export MAKE=gmake; ./configure for sh-type shells
11963setenv MAKE gmake; ./configure for csh-type shells
11964Also please do remember to use gmake in this case every time
11965you are trying to compile.
11966" >&2;}
11967 { (exit 1); exit 1; }; }
11968fi fi
11969echo "$as_me:$LINENO: checking whether ln -s works" >&5
11970echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11971LN_S=$as_ln_s
11972if test "$LN_S" = "ln -s"; then
11973 echo "$as_me:$LINENO: result: yes" >&5
11974echo "${ECHO_T}yes" >&6
11975else
11976 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11977echo "${ECHO_T}no, using $LN_S" >&6
11978fi
11979
11980
11981
11982case "${host}" in
11983 *-pc-os2_emx | *-pc-os2-emx )
11984 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
11985 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11986echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11987if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989else
11990 ac_check_lib_save_LIBS=$LIBS
11991LIBS="-lcExt $LIBS"
11992cat >conftest.$ac_ext <<_ACEOF
8a7b1113 11993#line $LINENO "configure"
a848cd7e
SC
11994/* confdefs.h. */
11995_ACEOF
11996cat confdefs.h >>conftest.$ac_ext
11997cat >>conftest.$ac_ext <<_ACEOF
11998/* end confdefs.h. */
11999
12000/* Override any gcc2 internal prototype to avoid an error. */
12001#ifdef __cplusplus
12002extern "C"
12003#endif
12004/* We use char because int might match the return type of a gcc2
12005 builtin and then its argument prototype would still apply. */
12006char drand48 ();
12007int
12008main ()
12009{
12010drand48 ();
12011 ;
12012 return 0;
12013}
12014_ACEOF
12015rm -f conftest.$ac_objext conftest$ac_exeext
12016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 12017 (eval $ac_link) 2>&5
a848cd7e 12018 ac_status=$?
a848cd7e
SC
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
8a7b1113 12021 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
12027 ac_cv_lib_cExt_drand48=yes
12028else
12029 echo "$as_me: failed program was:" >&5
12030sed 's/^/| /' conftest.$ac_ext >&5
12031
12032ac_cv_lib_cExt_drand48=no
12033fi
8a7b1113 12034rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12035LIBS=$ac_check_lib_save_LIBS
12036fi
12037echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12038echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12039if test $ac_cv_lib_cExt_drand48 = yes; then
12040 LIBS="$LIBS -lcExt"
12041fi
12042
12043 else
12044 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12045 fi
12046 echo "$as_me:$LINENO: checking for gcc version" >&5
12047echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12048if test "${wx_cv_gccversion+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050else
12051
12052 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12053#line $LINENO "configure"
a848cd7e
SC
12054/* confdefs.h. */
12055_ACEOF
12056cat confdefs.h >>conftest.$ac_ext
12057cat >>conftest.$ac_ext <<_ACEOF
12058/* end confdefs.h. */
12059
12060int
12061main ()
12062{
12063
12064 #if (__GNUC__ < 3)
12065 #error old gcc
12066 #endif
12067
12068 ;
12069 return 0;
12070}
12071_ACEOF
12072rm -f conftest.$ac_objext
12073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 12074 (eval $ac_compile) 2>&5
a848cd7e 12075 ac_status=$?
a848cd7e
SC
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } &&
8a7b1113 12078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084
12085 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12086#line $LINENO "configure"
a848cd7e
SC
12087/* confdefs.h. */
12088_ACEOF
12089cat confdefs.h >>conftest.$ac_ext
12090cat >>conftest.$ac_ext <<_ACEOF
12091/* end confdefs.h. */
12092
12093int
12094main ()
12095{
12096
12097 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12098 #error intermediate gcc
12099 #endif
12100
12101 ;
12102 return 0;
12103}
12104_ACEOF
12105rm -f conftest.$ac_objext
12106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 12107 (eval $ac_compile) 2>&5
a848cd7e 12108 ac_status=$?
a848cd7e
SC
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
8a7b1113 12111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117
12118 wx_cv_gccversion=Innotek
12119
12120else
12121 echo "$as_me: failed program was:" >&5
12122sed 's/^/| /' conftest.$ac_ext >&5
12123
12124
12125 wx_cv_gccversion=3
12126
12127
12128fi
8a7b1113 12129rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12130
12131else
12132 echo "$as_me: failed program was:" >&5
12133sed 's/^/| /' conftest.$ac_ext >&5
12134
12135
12136 wx_cv_gccversion=2
12137
12138
12139fi
8a7b1113 12140rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12141
12142fi
12143echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12144echo "${ECHO_T}$wx_cv_gccversion" >&6
12145 if test "$wx_cv_gccversion" = "2"; then
12146 LIBS="$LIBS -lstdcpp"
12147 LDFLAGS="$LDFLAGS -Zsysv-signals"
12148 else
12149 if test "$wx_cv_gccversion" = "3"; then
12150 LIBS="$LIBS -lstdcxx"
12151 LDFLAGS="$LDFLAGS -Zsysv-signals"
12152 else
12153 LIBS="$LIBS -lstdc++"
12154 fi
12155 fi
12156 if test "$wxUSE_OMF" = "yes"; then
12157 LDFLAGS="$LDFLAGS -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
12158 fi
12159 ;;
12160 *)
12161
12162
12163
12164 ac_ext=cc
12165ac_cpp='$CXXCPP $CPPFLAGS'
12166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12169
12170
12171
12172echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12173echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12174if test "${ac_cv_string_strcasecmp+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176else
12177
12178 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12179#line $LINENO "configure"
a848cd7e
SC
12180/* confdefs.h. */
12181_ACEOF
12182cat confdefs.h >>conftest.$ac_ext
12183cat >>conftest.$ac_ext <<_ACEOF
12184/* end confdefs.h. */
12185
12186 #include <string.h>
12187
12188int
12189main ()
12190{
12191
12192 strcasecmp("foo", "bar");
12193
12194 ;
12195 return 0;
12196}
12197_ACEOF
12198rm -f conftest.$ac_objext conftest$ac_exeext
12199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 12200 (eval $ac_link) 2>&5
a848cd7e 12201 ac_status=$?
a848cd7e
SC
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
8a7b1113 12204 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
12210 ac_cv_string_strcasecmp=yes
12211else
12212 echo "$as_me: failed program was:" >&5
12213sed 's/^/| /' conftest.$ac_ext >&5
12214
12215ac_cv_string_strcasecmp=no
12216
12217fi
8a7b1113 12218rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12219
12220fi
12221echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12222echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12223
12224 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12225 cat >>confdefs.h <<\_ACEOF
12226#define HAVE_STRCASECMP_IN_STRING_H 1
12227_ACEOF
12228
12229 else
12230 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12231echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12232if test "${ac_cv_strings_strcasecmp+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234else
12235
12236 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12237#line $LINENO "configure"
a848cd7e
SC
12238/* confdefs.h. */
12239_ACEOF
12240cat confdefs.h >>conftest.$ac_ext
12241cat >>conftest.$ac_ext <<_ACEOF
12242/* end confdefs.h. */
12243
12244 #include <strings.h>
12245
12246int
12247main ()
12248{
12249
12250 strcasecmp("foo", "bar");
12251
12252 ;
12253 return 0;
12254}
12255_ACEOF
12256rm -f conftest.$ac_objext conftest$ac_exeext
12257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 12258 (eval $ac_link) 2>&5
a848cd7e 12259 ac_status=$?
a848cd7e
SC
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } &&
8a7b1113 12262 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264 (eval $ac_try) 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; }; then
12268 ac_cv_strings_strcasecmp=yes
12269else
12270 echo "$as_me: failed program was:" >&5
12271sed 's/^/| /' conftest.$ac_ext >&5
12272
12273ac_cv_strings_strcasecmp=no
12274
12275fi
8a7b1113 12276rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12277
12278fi
12279echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12280echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12281
12282 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12283 cat >>confdefs.h <<\_ACEOF
12284#define HAVE_STRCASECMP_IN_STRINGS_H 1
12285_ACEOF
12286
12287 else
12288 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12289echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12290 { (exit 1); exit 1; }; }
12291 fi
12292 fi
12293
12294 ac_ext=c
12295ac_cpp='$CPP $CPPFLAGS'
12296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298ac_compiler_gnu=$ac_cv_c_compiler_gnu
12299
12300 ;;
12301esac
12302
12303
12304echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12305echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12306if test "${ac_cv_header_stdc+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12310#line $LINENO "configure"
a848cd7e
SC
12311/* confdefs.h. */
12312_ACEOF
12313cat confdefs.h >>conftest.$ac_ext
12314cat >>conftest.$ac_ext <<_ACEOF
12315/* end confdefs.h. */
12316#include <stdlib.h>
12317#include <stdarg.h>
12318#include <string.h>
12319#include <float.h>
12320
12321int
12322main ()
12323{
12324
12325 ;
12326 return 0;
12327}
12328_ACEOF
12329rm -f conftest.$ac_objext
12330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 12331 (eval $ac_compile) 2>&5
a848cd7e 12332 ac_status=$?
a848cd7e
SC
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } &&
8a7b1113 12335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 ac_cv_header_stdc=yes
12342else
12343 echo "$as_me: failed program was:" >&5
12344sed 's/^/| /' conftest.$ac_ext >&5
12345
12346ac_cv_header_stdc=no
12347fi
8a7b1113 12348rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12349
12350if test $ac_cv_header_stdc = yes; then
12351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12352 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12353#line $LINENO "configure"
a848cd7e
SC
12354/* confdefs.h. */
12355_ACEOF
12356cat confdefs.h >>conftest.$ac_ext
12357cat >>conftest.$ac_ext <<_ACEOF
12358/* end confdefs.h. */
12359#include <string.h>
12360
12361_ACEOF
12362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12363 $EGREP "memchr" >/dev/null 2>&1; then
12364 :
12365else
12366 ac_cv_header_stdc=no
12367fi
12368rm -f conftest*
12369
12370fi
12371
12372if test $ac_cv_header_stdc = yes; then
12373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12374 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12375#line $LINENO "configure"
a848cd7e
SC
12376/* confdefs.h. */
12377_ACEOF
12378cat confdefs.h >>conftest.$ac_ext
12379cat >>conftest.$ac_ext <<_ACEOF
12380/* end confdefs.h. */
12381#include <stdlib.h>
12382
12383_ACEOF
12384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12385 $EGREP "free" >/dev/null 2>&1; then
12386 :
12387else
12388 ac_cv_header_stdc=no
12389fi
12390rm -f conftest*
12391
12392fi
12393
12394if test $ac_cv_header_stdc = yes; then
12395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12396 if test "$cross_compiling" = yes; then
12397 :
12398else
12399 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12400#line $LINENO "configure"
a848cd7e
SC
12401/* confdefs.h. */
12402_ACEOF
12403cat confdefs.h >>conftest.$ac_ext
12404cat >>conftest.$ac_ext <<_ACEOF
12405/* end confdefs.h. */
12406#include <ctype.h>
12407#if ((' ' & 0x0FF) == 0x020)
12408# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12409# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12410#else
12411# define ISLOWER(c) \
8a7b1113
VZ
12412 (('a' <= (c) && (c) <= 'i') \
12413 || ('j' <= (c) && (c) <= 'r') \
12414 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12415# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12416#endif
12417
12418#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12419int
12420main ()
12421{
12422 int i;
12423 for (i = 0; i < 256; i++)
12424 if (XOR (islower (i), ISLOWER (i))
8a7b1113 12425 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12426 exit(2);
12427 exit (0);
12428}
12429_ACEOF
12430rm -f conftest$ac_exeext
12431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12432 (eval $ac_link) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
12441 :
12442else
12443 echo "$as_me: program exited with status $ac_status" >&5
12444echo "$as_me: failed program was:" >&5
12445sed 's/^/| /' conftest.$ac_ext >&5
12446
12447( exit $ac_status )
12448ac_cv_header_stdc=no
12449fi
8a7b1113 12450rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12451fi
12452fi
12453fi
12454echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12455echo "${ECHO_T}$ac_cv_header_stdc" >&6
12456if test $ac_cv_header_stdc = yes; then
12457
12458cat >>confdefs.h <<\_ACEOF
12459#define STDC_HEADERS 1
12460_ACEOF
12461
12462fi
12463
12464# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8a7b1113 12475 inttypes.h stdint.h unistd.h
a848cd7e
SC
12476do
12477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12478echo "$as_me:$LINENO: checking for $ac_header" >&5
12479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12480if eval "test \"\${$as_ac_Header+set}\" = set"; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482else
12483 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12484#line $LINENO "configure"
a848cd7e
SC
12485/* confdefs.h. */
12486_ACEOF
12487cat confdefs.h >>conftest.$ac_ext
12488cat >>conftest.$ac_ext <<_ACEOF
12489/* end confdefs.h. */
12490$ac_includes_default
12491
12492#include <$ac_header>
12493_ACEOF
12494rm -f conftest.$ac_objext
12495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 12496 (eval $ac_compile) 2>&5
a848cd7e 12497 ac_status=$?
a848cd7e
SC
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } &&
8a7b1113 12500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12503 ac_status=$?
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; }; then
12506 eval "$as_ac_Header=yes"
12507else
12508 echo "$as_me: failed program was:" >&5
12509sed 's/^/| /' conftest.$ac_ext >&5
12510
12511eval "$as_ac_Header=no"
12512fi
8a7b1113 12513rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12514fi
12515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12517if test `eval echo '${'$as_ac_Header'}'` = yes; then
12518 cat >>confdefs.h <<_ACEOF
12519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12520_ACEOF
12521
12522fi
12523
12524done
12525
12526
12527
12528for ac_header in stdlib.h
12529do
12530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12531if eval "test \"\${$as_ac_Header+set}\" = set"; then
12532 echo "$as_me:$LINENO: checking for $ac_header" >&5
12533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12534if eval "test \"\${$as_ac_Header+set}\" = set"; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12536fi
12537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12539else
12540 # Is the header compilable?
12541echo "$as_me:$LINENO: checking $ac_header usability" >&5
12542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12543cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12544#line $LINENO "configure"
a848cd7e
SC
12545/* confdefs.h. */
12546_ACEOF
12547cat confdefs.h >>conftest.$ac_ext
12548cat >>conftest.$ac_ext <<_ACEOF
12549/* end confdefs.h. */
12550$ac_includes_default
12551#include <$ac_header>
12552_ACEOF
12553rm -f conftest.$ac_objext
12554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 12555 (eval $ac_compile) 2>&5
a848cd7e 12556 ac_status=$?
a848cd7e
SC
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
8a7b1113 12559 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 ac_header_compiler=yes
12566else
12567 echo "$as_me: failed program was:" >&5
12568sed 's/^/| /' conftest.$ac_ext >&5
12569
12570ac_header_compiler=no
12571fi
8a7b1113 12572rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12574echo "${ECHO_T}$ac_header_compiler" >&6
12575
12576# Is the header present?
12577echo "$as_me:$LINENO: checking $ac_header presence" >&5
12578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12579cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12580#line $LINENO "configure"
a848cd7e
SC
12581/* confdefs.h. */
12582_ACEOF
12583cat confdefs.h >>conftest.$ac_ext
12584cat >>conftest.$ac_ext <<_ACEOF
12585/* end confdefs.h. */
12586#include <$ac_header>
12587_ACEOF
12588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } >/dev/null; then
12596 if test -s conftest.err; then
12597 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
12598 else
12599 ac_cpp_err=
12600 fi
12601else
12602 ac_cpp_err=yes
12603fi
12604if test -z "$ac_cpp_err"; then
12605 ac_header_preproc=yes
12606else
12607 echo "$as_me: failed program was:" >&5
12608sed 's/^/| /' conftest.$ac_ext >&5
12609
12610 ac_header_preproc=no
12611fi
12612rm -f conftest.err conftest.$ac_ext
12613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12614echo "${ECHO_T}$ac_header_preproc" >&6
12615
12616# So? What about this header?
8a7b1113
VZ
12617case $ac_header_compiler:$ac_header_preproc in
12618 yes:no )
a848cd7e
SC
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
12621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12623 (
12624 cat <<\_ASBOX
12625## ------------------------------------ ##
12626## Report this to bug-autoconf@gnu.org. ##
12627## ------------------------------------ ##
12628_ASBOX
12629 ) |
12630 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 12631 ;;
8a7b1113 12632 no:yes )
a848cd7e
SC
12633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
12635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
12637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
12639 (
12640 cat <<\_ASBOX
8a7b1113
VZ
12641## ------------------------------------ ##
12642## Report this to bug-autoconf@gnu.org. ##
12643## ------------------------------------ ##
a848cd7e
SC
12644_ASBOX
12645 ) |
12646 sed "s/^/$as_me: WARNING: /" >&2
12647 ;;
12648esac
12649echo "$as_me:$LINENO: checking for $ac_header" >&5
12650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12651if eval "test \"\${$as_ac_Header+set}\" = set"; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653else
8a7b1113 12654 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
12655fi
12656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12658
12659fi
12660if test `eval echo '${'$as_ac_Header'}'` = yes; then
12661 cat >>confdefs.h <<_ACEOF
12662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12663_ACEOF
12664
12665fi
12666
12667done
12668
12669
12670for ac_header in malloc.h
12671do
12672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12673if eval "test \"\${$as_ac_Header+set}\" = set"; then
12674 echo "$as_me:$LINENO: checking for $ac_header" >&5
12675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12676if eval "test \"\${$as_ac_Header+set}\" = set"; then
12677 echo $ECHO_N "(cached) $ECHO_C" >&6
12678fi
12679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12681else
12682 # Is the header compilable?
12683echo "$as_me:$LINENO: checking $ac_header usability" >&5
12684echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12685cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12686#line $LINENO "configure"
a848cd7e
SC
12687/* confdefs.h. */
12688_ACEOF
12689cat confdefs.h >>conftest.$ac_ext
12690cat >>conftest.$ac_ext <<_ACEOF
12691/* end confdefs.h. */
12692$ac_includes_default
12693#include <$ac_header>
12694_ACEOF
12695rm -f conftest.$ac_objext
12696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 12697 (eval $ac_compile) 2>&5
a848cd7e 12698 ac_status=$?
a848cd7e
SC
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
8a7b1113 12701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; }; then
12707 ac_header_compiler=yes
12708else
12709 echo "$as_me: failed program was:" >&5
12710sed 's/^/| /' conftest.$ac_ext >&5
12711
12712ac_header_compiler=no
12713fi
8a7b1113 12714rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12715echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12716echo "${ECHO_T}$ac_header_compiler" >&6
12717
12718# Is the header present?
12719echo "$as_me:$LINENO: checking $ac_header presence" >&5
12720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12721cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12722#line $LINENO "configure"
a848cd7e
SC
12723/* confdefs.h. */
12724_ACEOF
12725cat confdefs.h >>conftest.$ac_ext
12726cat >>conftest.$ac_ext <<_ACEOF
12727/* end confdefs.h. */
12728#include <$ac_header>
12729_ACEOF
12730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12732 ac_status=$?
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } >/dev/null; then
12738 if test -s conftest.err; then
12739 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
12740 else
12741 ac_cpp_err=
12742 fi
12743else
12744 ac_cpp_err=yes
12745fi
12746if test -z "$ac_cpp_err"; then
12747 ac_header_preproc=yes
12748else
12749 echo "$as_me: failed program was:" >&5
12750sed 's/^/| /' conftest.$ac_ext >&5
12751
12752 ac_header_preproc=no
12753fi
12754rm -f conftest.err conftest.$ac_ext
12755echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12756echo "${ECHO_T}$ac_header_preproc" >&6
12757
12758# So? What about this header?
8a7b1113
VZ
12759case $ac_header_compiler:$ac_header_preproc in
12760 yes:no )
a848cd7e
SC
12761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12762echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
12763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12765 (
12766 cat <<\_ASBOX
12767## ------------------------------------ ##
12768## Report this to bug-autoconf@gnu.org. ##
12769## ------------------------------------ ##
12770_ASBOX
12771 ) |
12772 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 12773 ;;
8a7b1113 12774 no:yes )
a848cd7e
SC
12775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12776echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
12777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12778echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
12779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
12781 (
12782 cat <<\_ASBOX
8a7b1113
VZ
12783## ------------------------------------ ##
12784## Report this to bug-autoconf@gnu.org. ##
12785## ------------------------------------ ##
a848cd7e
SC
12786_ASBOX
12787 ) |
12788 sed "s/^/$as_me: WARNING: /" >&2
12789 ;;
12790esac
12791echo "$as_me:$LINENO: checking for $ac_header" >&5
12792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12793if eval "test \"\${$as_ac_Header+set}\" = set"; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12795else
8a7b1113 12796 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
12797fi
12798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12800
12801fi
12802if test `eval echo '${'$as_ac_Header'}'` = yes; then
12803 cat >>confdefs.h <<_ACEOF
12804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12805_ACEOF
12806
12807fi
12808
12809done
12810
12811
12812for ac_header in unistd.h
12813do
12814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12815if eval "test \"\${$as_ac_Header+set}\" = set"; then
12816 echo "$as_me:$LINENO: checking for $ac_header" >&5
12817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12818if eval "test \"\${$as_ac_Header+set}\" = set"; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820fi
12821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12823else
12824 # Is the header compilable?
12825echo "$as_me:$LINENO: checking $ac_header usability" >&5
12826echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12827cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12828#line $LINENO "configure"
a848cd7e
SC
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834$ac_includes_default
12835#include <$ac_header>
12836_ACEOF
12837rm -f conftest.$ac_objext
12838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 12839 (eval $ac_compile) 2>&5
a848cd7e 12840 ac_status=$?
a848cd7e
SC
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } &&
8a7b1113 12843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; }; then
12849 ac_header_compiler=yes
12850else
12851 echo "$as_me: failed program was:" >&5
12852sed 's/^/| /' conftest.$ac_ext >&5
12853
12854ac_header_compiler=no
12855fi
8a7b1113 12856rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12857echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12858echo "${ECHO_T}$ac_header_compiler" >&6
12859
12860# Is the header present?
12861echo "$as_me:$LINENO: checking $ac_header presence" >&5
12862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12863cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12864#line $LINENO "configure"
a848cd7e
SC
12865/* confdefs.h. */
12866_ACEOF
12867cat confdefs.h >>conftest.$ac_ext
12868cat >>conftest.$ac_ext <<_ACEOF
12869/* end confdefs.h. */
12870#include <$ac_header>
12871_ACEOF
12872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12874 ac_status=$?
12875 grep -v '^ *+' conftest.er1 >conftest.err
12876 rm -f conftest.er1
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } >/dev/null; then
12880 if test -s conftest.err; then
12881 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
12882 else
12883 ac_cpp_err=
12884 fi
12885else
12886 ac_cpp_err=yes
12887fi
12888if test -z "$ac_cpp_err"; then
12889 ac_header_preproc=yes
12890else
12891 echo "$as_me: failed program was:" >&5
12892sed 's/^/| /' conftest.$ac_ext >&5
12893
12894 ac_header_preproc=no
12895fi
12896rm -f conftest.err conftest.$ac_ext
12897echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12898echo "${ECHO_T}$ac_header_preproc" >&6
12899
12900# So? What about this header?
8a7b1113
VZ
12901case $ac_header_compiler:$ac_header_preproc in
12902 yes:no )
a848cd7e
SC
12903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
12905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12907 (
12908 cat <<\_ASBOX
12909## ------------------------------------ ##
12910## Report this to bug-autoconf@gnu.org. ##
12911## ------------------------------------ ##
12912_ASBOX
12913 ) |
12914 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 12915 ;;
8a7b1113 12916 no:yes )
a848cd7e
SC
12917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
12923 (
12924 cat <<\_ASBOX
8a7b1113
VZ
12925## ------------------------------------ ##
12926## Report this to bug-autoconf@gnu.org. ##
12927## ------------------------------------ ##
a848cd7e
SC
12928_ASBOX
12929 ) |
12930 sed "s/^/$as_me: WARNING: /" >&2
12931 ;;
12932esac
12933echo "$as_me:$LINENO: checking for $ac_header" >&5
12934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12935if eval "test \"\${$as_ac_Header+set}\" = set"; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937else
8a7b1113 12938 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
12939fi
12940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12942
12943fi
12944if test `eval echo '${'$as_ac_Header'}'` = yes; then
12945 cat >>confdefs.h <<_ACEOF
12946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12947_ACEOF
12948
12949fi
12950
12951done
12952
12953
12954for ac_header in wchar.h
12955do
12956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12957if eval "test \"\${$as_ac_Header+set}\" = set"; then
12958 echo "$as_me:$LINENO: checking for $ac_header" >&5
12959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12960if eval "test \"\${$as_ac_Header+set}\" = set"; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962fi
12963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12965else
12966 # Is the header compilable?
12967echo "$as_me:$LINENO: checking $ac_header usability" >&5
12968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12969cat >conftest.$ac_ext <<_ACEOF
8a7b1113 12970#line $LINENO "configure"
a848cd7e
SC
12971/* confdefs.h. */
12972_ACEOF
12973cat confdefs.h >>conftest.$ac_ext
12974cat >>conftest.$ac_ext <<_ACEOF
12975/* end confdefs.h. */
12976$ac_includes_default
12977#include <$ac_header>
12978_ACEOF
12979rm -f conftest.$ac_objext
12980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 12981 (eval $ac_compile) 2>&5
a848cd7e 12982 ac_status=$?
a848cd7e
SC
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
8a7b1113 12985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_header_compiler=yes
12992else
12993 echo "$as_me: failed program was:" >&5
12994sed 's/^/| /' conftest.$ac_ext >&5
12995
12996ac_header_compiler=no
12997fi
8a7b1113 12998rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12999echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13000echo "${ECHO_T}$ac_header_compiler" >&6
13001
13002# Is the header present?
13003echo "$as_me:$LINENO: checking $ac_header presence" >&5
13004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13005cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13006#line $LINENO "configure"
a848cd7e
SC
13007/* confdefs.h. */
13008_ACEOF
13009cat confdefs.h >>conftest.$ac_ext
13010cat >>conftest.$ac_ext <<_ACEOF
13011/* end confdefs.h. */
13012#include <$ac_header>
13013_ACEOF
13014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13016 ac_status=$?
13017 grep -v '^ *+' conftest.er1 >conftest.err
13018 rm -f conftest.er1
13019 cat conftest.err >&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } >/dev/null; then
13022 if test -s conftest.err; then
13023 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
13024 else
13025 ac_cpp_err=
13026 fi
13027else
13028 ac_cpp_err=yes
13029fi
13030if test -z "$ac_cpp_err"; then
13031 ac_header_preproc=yes
13032else
13033 echo "$as_me: failed program was:" >&5
13034sed 's/^/| /' conftest.$ac_ext >&5
13035
13036 ac_header_preproc=no
13037fi
13038rm -f conftest.err conftest.$ac_ext
13039echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13040echo "${ECHO_T}$ac_header_preproc" >&6
13041
13042# So? What about this header?
8a7b1113
VZ
13043case $ac_header_compiler:$ac_header_preproc in
13044 yes:no )
a848cd7e
SC
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13046echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
13047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13049 (
13050 cat <<\_ASBOX
13051## ------------------------------------ ##
13052## Report this to bug-autoconf@gnu.org. ##
13053## ------------------------------------ ##
13054_ASBOX
13055 ) |
13056 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 13057 ;;
8a7b1113 13058 no:yes )
a848cd7e
SC
13059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13060echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
13061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13062echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13064echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
13065 (
13066 cat <<\_ASBOX
8a7b1113
VZ
13067## ------------------------------------ ##
13068## Report this to bug-autoconf@gnu.org. ##
13069## ------------------------------------ ##
a848cd7e
SC
13070_ASBOX
13071 ) |
13072 sed "s/^/$as_me: WARNING: /" >&2
13073 ;;
13074esac
13075echo "$as_me:$LINENO: checking for $ac_header" >&5
13076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13077if eval "test \"\${$as_ac_Header+set}\" = set"; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079else
8a7b1113 13080 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
13081fi
13082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13084
13085fi
13086if test `eval echo '${'$as_ac_Header'}'` = yes; then
13087 cat >>confdefs.h <<_ACEOF
13088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13089_ACEOF
13090
13091fi
13092
13093done
13094
13095
13096if test "$ac_cv_header_wchar_h" != "yes"; then
13097
13098for ac_header in wcstr.h
13099do
13100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13101if eval "test \"\${$as_ac_Header+set}\" = set"; then
13102 echo "$as_me:$LINENO: checking for $ac_header" >&5
13103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13104if eval "test \"\${$as_ac_Header+set}\" = set"; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13106fi
13107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13109else
13110 # Is the header compilable?
13111echo "$as_me:$LINENO: checking $ac_header usability" >&5
13112echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13113cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13114#line $LINENO "configure"
a848cd7e
SC
13115/* confdefs.h. */
13116_ACEOF
13117cat confdefs.h >>conftest.$ac_ext
13118cat >>conftest.$ac_ext <<_ACEOF
13119/* end confdefs.h. */
13120$ac_includes_default
13121#include <$ac_header>
13122_ACEOF
13123rm -f conftest.$ac_objext
13124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 13125 (eval $ac_compile) 2>&5
a848cd7e 13126 ac_status=$?
a848cd7e
SC
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } &&
8a7b1113 13129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13135 ac_header_compiler=yes
13136else
13137 echo "$as_me: failed program was:" >&5
13138sed 's/^/| /' conftest.$ac_ext >&5
13139
13140ac_header_compiler=no
13141fi
8a7b1113 13142rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13143echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13144echo "${ECHO_T}$ac_header_compiler" >&6
13145
13146# Is the header present?
13147echo "$as_me:$LINENO: checking $ac_header presence" >&5
13148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13149cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13150#line $LINENO "configure"
a848cd7e
SC
13151/* confdefs.h. */
13152_ACEOF
13153cat confdefs.h >>conftest.$ac_ext
13154cat >>conftest.$ac_ext <<_ACEOF
13155/* end confdefs.h. */
13156#include <$ac_header>
13157_ACEOF
13158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13160 ac_status=$?
13161 grep -v '^ *+' conftest.er1 >conftest.err
13162 rm -f conftest.er1
13163 cat conftest.err >&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } >/dev/null; then
13166 if test -s conftest.err; then
13167 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
13168 else
13169 ac_cpp_err=
13170 fi
13171else
13172 ac_cpp_err=yes
13173fi
13174if test -z "$ac_cpp_err"; then
13175 ac_header_preproc=yes
13176else
13177 echo "$as_me: failed program was:" >&5
13178sed 's/^/| /' conftest.$ac_ext >&5
13179
13180 ac_header_preproc=no
13181fi
13182rm -f conftest.err conftest.$ac_ext
13183echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13184echo "${ECHO_T}$ac_header_preproc" >&6
13185
13186# So? What about this header?
8a7b1113
VZ
13187case $ac_header_compiler:$ac_header_preproc in
13188 yes:no )
a848cd7e
SC
13189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
13191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13192echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13193 (
13194 cat <<\_ASBOX
13195## ------------------------------------ ##
13196## Report this to bug-autoconf@gnu.org. ##
13197## ------------------------------------ ##
13198_ASBOX
13199 ) |
13200 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 13201 ;;
8a7b1113 13202 no:yes )
a848cd7e
SC
13203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13204echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
13205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13206echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
13207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
13209 (
13210 cat <<\_ASBOX
8a7b1113
VZ
13211## ------------------------------------ ##
13212## Report this to bug-autoconf@gnu.org. ##
13213## ------------------------------------ ##
a848cd7e
SC
13214_ASBOX
13215 ) |
13216 sed "s/^/$as_me: WARNING: /" >&2
13217 ;;
13218esac
13219echo "$as_me:$LINENO: checking for $ac_header" >&5
13220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13221if eval "test \"\${$as_ac_Header+set}\" = set"; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223else
8a7b1113 13224 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
13225fi
13226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13228
13229fi
13230if test `eval echo '${'$as_ac_Header'}'` = yes; then
13231 cat >>confdefs.h <<_ACEOF
13232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13233_ACEOF
13234
13235fi
13236
13237done
13238
13239fi
13240
13241
13242for ac_header in fnmatch.h
13243do
13244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13245if eval "test \"\${$as_ac_Header+set}\" = set"; then
13246 echo "$as_me:$LINENO: checking for $ac_header" >&5
13247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13248if eval "test \"\${$as_ac_Header+set}\" = set"; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250fi
13251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13253else
13254 # Is the header compilable?
13255echo "$as_me:$LINENO: checking $ac_header usability" >&5
13256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13257cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13258#line $LINENO "configure"
a848cd7e
SC
13259/* confdefs.h. */
13260_ACEOF
13261cat confdefs.h >>conftest.$ac_ext
13262cat >>conftest.$ac_ext <<_ACEOF
13263/* end confdefs.h. */
13264$ac_includes_default
13265#include <$ac_header>
13266_ACEOF
13267rm -f conftest.$ac_objext
13268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 13269 (eval $ac_compile) 2>&5
a848cd7e 13270 ac_status=$?
a848cd7e
SC
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
8a7b1113 13273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_header_compiler=yes
13280else
13281 echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
13284ac_header_compiler=no
13285fi
8a7b1113 13286rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13288echo "${ECHO_T}$ac_header_compiler" >&6
13289
13290# Is the header present?
13291echo "$as_me:$LINENO: checking $ac_header presence" >&5
13292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13293cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13294#line $LINENO "configure"
a848cd7e
SC
13295/* confdefs.h. */
13296_ACEOF
13297cat confdefs.h >>conftest.$ac_ext
13298cat >>conftest.$ac_ext <<_ACEOF
13299/* end confdefs.h. */
13300#include <$ac_header>
13301_ACEOF
13302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13304 ac_status=$?
13305 grep -v '^ *+' conftest.er1 >conftest.err
13306 rm -f conftest.er1
13307 cat conftest.err >&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } >/dev/null; then
13310 if test -s conftest.err; then
13311 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
13312 else
13313 ac_cpp_err=
13314 fi
13315else
13316 ac_cpp_err=yes
13317fi
13318if test -z "$ac_cpp_err"; then
13319 ac_header_preproc=yes
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 ac_header_preproc=no
13325fi
13326rm -f conftest.err conftest.$ac_ext
13327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13328echo "${ECHO_T}$ac_header_preproc" >&6
13329
13330# So? What about this header?
8a7b1113
VZ
13331case $ac_header_compiler:$ac_header_preproc in
13332 yes:no )
a848cd7e
SC
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13336echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13337 (
13338 cat <<\_ASBOX
13339## ------------------------------------ ##
13340## Report this to bug-autoconf@gnu.org. ##
13341## ------------------------------------ ##
13342_ASBOX
13343 ) |
13344 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 13345 ;;
8a7b1113 13346 no:yes )
a848cd7e
SC
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13348echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
13349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13350echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
13353 (
13354 cat <<\_ASBOX
8a7b1113
VZ
13355## ------------------------------------ ##
13356## Report this to bug-autoconf@gnu.org. ##
13357## ------------------------------------ ##
a848cd7e
SC
13358_ASBOX
13359 ) |
13360 sed "s/^/$as_me: WARNING: /" >&2
13361 ;;
13362esac
13363echo "$as_me:$LINENO: checking for $ac_header" >&5
13364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13365if eval "test \"\${$as_ac_Header+set}\" = set"; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367else
8a7b1113 13368 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
13369fi
13370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13372
13373fi
13374if test `eval echo '${'$as_ac_Header'}'` = yes; then
13375 cat >>confdefs.h <<_ACEOF
13376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13377_ACEOF
13378
13379fi
13380
13381done
13382
13383
13384if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13385
13386for ac_func in fnmatch
13387do
13388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13389echo "$as_me:$LINENO: checking for $ac_func" >&5
13390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13391if eval "test \"\${$as_ac_var+set}\" = set"; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393else
13394 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13395#line $LINENO "configure"
a848cd7e
SC
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
a848cd7e
SC
13401/* System header to define __stub macros and hopefully few prototypes,
13402 which can conflict with char $ac_func (); below.
13403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13404 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
13405#ifdef __STDC__
13406# include <limits.h>
13407#else
13408# include <assert.h>
13409#endif
a848cd7e
SC
13410/* Override any gcc2 internal prototype to avoid an error. */
13411#ifdef __cplusplus
13412extern "C"
13413{
13414#endif
13415/* We use char because int might match the return type of a gcc2
13416 builtin and then its argument prototype would still apply. */
13417char $ac_func ();
13418/* The GNU C library defines this for functions which it implements
13419 to always fail with ENOSYS. Some functions are actually named
13420 something starting with __ and the normal name is an alias. */
13421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13422choke me
13423#else
13424char (*f) () = $ac_func;
13425#endif
13426#ifdef __cplusplus
13427}
13428#endif
13429
13430int
13431main ()
13432{
13433return f != $ac_func;
13434 ;
13435 return 0;
13436}
13437_ACEOF
13438rm -f conftest.$ac_objext conftest$ac_exeext
13439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 13440 (eval $ac_link) 2>&5
a848cd7e 13441 ac_status=$?
a848cd7e
SC
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } &&
8a7b1113 13444 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 eval "$as_ac_var=yes"
13451else
13452 echo "$as_me: failed program was:" >&5
13453sed 's/^/| /' conftest.$ac_ext >&5
13454
13455eval "$as_ac_var=no"
13456fi
8a7b1113 13457rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13458fi
13459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13460echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13461if test `eval echo '${'$as_ac_var'}'` = yes; then
13462 cat >>confdefs.h <<_ACEOF
13463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13464_ACEOF
13465
13466fi
13467done
13468
13469fi
13470
13471
13472for ac_header in langinfo.h
13473do
13474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13475if eval "test \"\${$as_ac_Header+set}\" = set"; then
13476 echo "$as_me:$LINENO: checking for $ac_header" >&5
13477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13478if eval "test \"\${$as_ac_Header+set}\" = set"; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13480fi
13481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13483else
13484 # Is the header compilable?
13485echo "$as_me:$LINENO: checking $ac_header usability" >&5
13486echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13487cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13488#line $LINENO "configure"
a848cd7e
SC
13489/* confdefs.h. */
13490_ACEOF
13491cat confdefs.h >>conftest.$ac_ext
13492cat >>conftest.$ac_ext <<_ACEOF
13493/* end confdefs.h. */
13494$ac_includes_default
13495#include <$ac_header>
13496_ACEOF
13497rm -f conftest.$ac_objext
13498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 13499 (eval $ac_compile) 2>&5
a848cd7e 13500 ac_status=$?
a848cd7e
SC
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
8a7b1113 13503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_header_compiler=yes
13510else
13511 echo "$as_me: failed program was:" >&5
13512sed 's/^/| /' conftest.$ac_ext >&5
13513
13514ac_header_compiler=no
13515fi
8a7b1113 13516rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13517echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13518echo "${ECHO_T}$ac_header_compiler" >&6
13519
13520# Is the header present?
13521echo "$as_me:$LINENO: checking $ac_header presence" >&5
13522echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13523cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13524#line $LINENO "configure"
a848cd7e
SC
13525/* confdefs.h. */
13526_ACEOF
13527cat confdefs.h >>conftest.$ac_ext
13528cat >>conftest.$ac_ext <<_ACEOF
13529/* end confdefs.h. */
13530#include <$ac_header>
13531_ACEOF
13532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13534 ac_status=$?
13535 grep -v '^ *+' conftest.er1 >conftest.err
13536 rm -f conftest.er1
13537 cat conftest.err >&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } >/dev/null; then
13540 if test -s conftest.err; then
13541 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
13542 else
13543 ac_cpp_err=
13544 fi
13545else
13546 ac_cpp_err=yes
13547fi
13548if test -z "$ac_cpp_err"; then
13549 ac_header_preproc=yes
13550else
13551 echo "$as_me: failed program was:" >&5
13552sed 's/^/| /' conftest.$ac_ext >&5
13553
13554 ac_header_preproc=no
13555fi
13556rm -f conftest.err conftest.$ac_ext
13557echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13558echo "${ECHO_T}$ac_header_preproc" >&6
13559
13560# So? What about this header?
8a7b1113
VZ
13561case $ac_header_compiler:$ac_header_preproc in
13562 yes:no )
a848cd7e
SC
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13564echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13567 (
13568 cat <<\_ASBOX
13569## ------------------------------------ ##
13570## Report this to bug-autoconf@gnu.org. ##
13571## ------------------------------------ ##
13572_ASBOX
13573 ) |
13574 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 13575 ;;
8a7b1113 13576 no:yes )
a848cd7e
SC
13577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13578echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
13579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13580echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
13581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13582echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
13583 (
13584 cat <<\_ASBOX
8a7b1113
VZ
13585## ------------------------------------ ##
13586## Report this to bug-autoconf@gnu.org. ##
13587## ------------------------------------ ##
a848cd7e
SC
13588_ASBOX
13589 ) |
13590 sed "s/^/$as_me: WARNING: /" >&2
13591 ;;
13592esac
13593echo "$as_me:$LINENO: checking for $ac_header" >&5
13594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13595if eval "test \"\${$as_ac_Header+set}\" = set"; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13597else
8a7b1113 13598 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
13599fi
13600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13602
13603fi
13604if test `eval echo '${'$as_ac_Header'}'` = yes; then
13605 cat >>confdefs.h <<_ACEOF
13606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13607_ACEOF
13608
13609fi
13610
13611done
13612
13613
13614case "${host}" in
13615 *-pc-os2_emx | *-pc-os2-emx )
13616 if test $ac_cv_header_langinfo_h = "yes"; then
13617 LIBS="$LIBS -lintl"
13618 fi
13619 ;;
13620esac
13621
13622if test "$wxUSE_GUI" = "yes"; then
13623 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13624
13625for ac_header in X11/Xlib.h
13626do
13627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13628if eval "test \"\${$as_ac_Header+set}\" = set"; then
13629 echo "$as_me:$LINENO: checking for $ac_header" >&5
13630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13631if eval "test \"\${$as_ac_Header+set}\" = set"; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633fi
13634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13636else
13637 # Is the header compilable?
13638echo "$as_me:$LINENO: checking $ac_header usability" >&5
13639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13640cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13641#line $LINENO "configure"
a848cd7e
SC
13642/* confdefs.h. */
13643_ACEOF
13644cat confdefs.h >>conftest.$ac_ext
13645cat >>conftest.$ac_ext <<_ACEOF
13646/* end confdefs.h. */
13647$ac_includes_default
13648#include <$ac_header>
13649_ACEOF
13650rm -f conftest.$ac_objext
13651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 13652 (eval $ac_compile) 2>&5
a848cd7e 13653 ac_status=$?
a848cd7e
SC
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } &&
8a7b1113 13656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13662 ac_header_compiler=yes
13663else
13664 echo "$as_me: failed program was:" >&5
13665sed 's/^/| /' conftest.$ac_ext >&5
13666
13667ac_header_compiler=no
13668fi
8a7b1113 13669rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13670echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13671echo "${ECHO_T}$ac_header_compiler" >&6
13672
13673# Is the header present?
13674echo "$as_me:$LINENO: checking $ac_header presence" >&5
13675echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13676cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13677#line $LINENO "configure"
a848cd7e
SC
13678/* confdefs.h. */
13679_ACEOF
13680cat confdefs.h >>conftest.$ac_ext
13681cat >>conftest.$ac_ext <<_ACEOF
13682/* end confdefs.h. */
13683#include <$ac_header>
13684_ACEOF
13685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } >/dev/null; then
13693 if test -s conftest.err; then
13694 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
13695 else
13696 ac_cpp_err=
13697 fi
13698else
13699 ac_cpp_err=yes
13700fi
13701if test -z "$ac_cpp_err"; then
13702 ac_header_preproc=yes
13703else
13704 echo "$as_me: failed program was:" >&5
13705sed 's/^/| /' conftest.$ac_ext >&5
13706
13707 ac_header_preproc=no
13708fi
13709rm -f conftest.err conftest.$ac_ext
13710echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13711echo "${ECHO_T}$ac_header_preproc" >&6
13712
13713# So? What about this header?
8a7b1113
VZ
13714case $ac_header_compiler:$ac_header_preproc in
13715 yes:no )
a848cd7e
SC
13716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13717echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
13718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13720 (
13721 cat <<\_ASBOX
13722## ------------------------------------ ##
13723## Report this to bug-autoconf@gnu.org. ##
13724## ------------------------------------ ##
13725_ASBOX
13726 ) |
13727 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 13728 ;;
8a7b1113 13729 no:yes )
a848cd7e
SC
13730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
13732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13733echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
13734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
13736 (
13737 cat <<\_ASBOX
8a7b1113
VZ
13738## ------------------------------------ ##
13739## Report this to bug-autoconf@gnu.org. ##
13740## ------------------------------------ ##
a848cd7e
SC
13741_ASBOX
13742 ) |
13743 sed "s/^/$as_me: WARNING: /" >&2
13744 ;;
13745esac
13746echo "$as_me:$LINENO: checking for $ac_header" >&5
13747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13748if eval "test \"\${$as_ac_Header+set}\" = set"; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750else
8a7b1113 13751 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
13752fi
13753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13755
13756fi
13757if test `eval echo '${'$as_ac_Header'}'` = yes; then
13758 cat >>confdefs.h <<_ACEOF
13759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13760_ACEOF
13761
13762fi
13763
13764done
13765
13766
13767for ac_header in X11/XKBlib.h
13768do
13769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13770echo "$as_me:$LINENO: checking for $ac_header" >&5
13771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13772if eval "test \"\${$as_ac_Header+set}\" = set"; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13774else
13775 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13776#line $LINENO "configure"
a848cd7e
SC
13777/* confdefs.h. */
13778_ACEOF
13779cat confdefs.h >>conftest.$ac_ext
13780cat >>conftest.$ac_ext <<_ACEOF
13781/* end confdefs.h. */
13782
13783 #if HAVE_X11_XLIB_H
13784 #include <X11/Xlib.h>
13785 #endif
13786
13787
13788#include <$ac_header>
13789_ACEOF
13790rm -f conftest.$ac_objext
13791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 13792 (eval $ac_compile) 2>&5
a848cd7e 13793 ac_status=$?
a848cd7e
SC
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
8a7b1113 13796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
13802 eval "$as_ac_Header=yes"
13803else
13804 echo "$as_me: failed program was:" >&5
13805sed 's/^/| /' conftest.$ac_ext >&5
13806
13807eval "$as_ac_Header=no"
13808fi
8a7b1113 13809rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13810fi
13811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13812echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13813if test `eval echo '${'$as_ac_Header'}'` = yes; then
13814 cat >>confdefs.h <<_ACEOF
13815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13816_ACEOF
13817
13818fi
13819
13820done
13821
13822 fi
13823fi
13824
13825
13826echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13827echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13828if test "${ac_cv_c_const+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830else
13831 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13832#line $LINENO "configure"
a848cd7e
SC
13833/* confdefs.h. */
13834_ACEOF
13835cat confdefs.h >>conftest.$ac_ext
13836cat >>conftest.$ac_ext <<_ACEOF
13837/* end confdefs.h. */
13838
13839int
13840main ()
13841{
13842/* FIXME: Include the comments suggested by Paul. */
13843#ifndef __cplusplus
13844 /* Ultrix mips cc rejects this. */
13845 typedef int charset[2];
13846 const charset x;
13847 /* SunOS 4.1.1 cc rejects this. */
13848 char const *const *ccp;
13849 char **p;
13850 /* NEC SVR4.0.2 mips cc rejects this. */
13851 struct point {int x, y;};
13852 static struct point const zero = {0,0};
13853 /* AIX XL C 1.02.0.0 rejects this.
13854 It does not let you subtract one const X* pointer from another in
13855 an arm of an if-expression whose if-part is not a constant
13856 expression */
13857 const char *g = "string";
13858 ccp = &g + (g ? g-g : 0);
13859 /* HPUX 7.0 cc rejects these. */
13860 ++ccp;
13861 p = (char**) ccp;
13862 ccp = (char const *const *) p;
13863 { /* SCO 3.2v4 cc rejects this. */
13864 char *t;
13865 char const *s = 0 ? (char *) 0 : (char const *) 0;
13866
13867 *t++ = 0;
13868 }
13869 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13870 int x[] = {25, 17};
13871 const int *foo = &x[0];
13872 ++foo;
13873 }
13874 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13875 typedef const int *iptr;
13876 iptr p = 0;
13877 ++p;
13878 }
13879 { /* AIX XL C 1.02.0.0 rejects this saying
13880 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13881 struct s { int j; const int *ap[3]; };
13882 struct s *b; b->j = 5;
13883 }
13884 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13885 const int foo = 10;
13886 }
13887#endif
13888
13889 ;
13890 return 0;
13891}
13892_ACEOF
13893rm -f conftest.$ac_objext
13894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 13895 (eval $ac_compile) 2>&5
a848cd7e 13896 ac_status=$?
a848cd7e
SC
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
8a7b1113 13899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; }; then
13905 ac_cv_c_const=yes
13906else
13907 echo "$as_me: failed program was:" >&5
13908sed 's/^/| /' conftest.$ac_ext >&5
13909
13910ac_cv_c_const=no
13911fi
8a7b1113 13912rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13913fi
13914echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13915echo "${ECHO_T}$ac_cv_c_const" >&6
13916if test $ac_cv_c_const = no; then
13917
13918cat >>confdefs.h <<\_ACEOF
13919#define const
13920_ACEOF
13921
13922fi
13923
13924echo "$as_me:$LINENO: checking for inline" >&5
13925echo $ECHO_N "checking for inline... $ECHO_C" >&6
13926if test "${ac_cv_c_inline+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13928else
13929 ac_cv_c_inline=no
13930for ac_kw in inline __inline__ __inline; do
13931 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13932#line $LINENO "configure"
a848cd7e
SC
13933/* confdefs.h. */
13934_ACEOF
13935cat confdefs.h >>conftest.$ac_ext
13936cat >>conftest.$ac_ext <<_ACEOF
13937/* end confdefs.h. */
13938#ifndef __cplusplus
13939typedef int foo_t;
13940static $ac_kw foo_t static_foo () {return 0; }
13941$ac_kw foo_t foo () {return 0; }
13942#endif
13943
13944_ACEOF
13945rm -f conftest.$ac_objext
13946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 13947 (eval $ac_compile) 2>&5
a848cd7e 13948 ac_status=$?
a848cd7e
SC
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
8a7b1113 13951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
13957 ac_cv_c_inline=$ac_kw; break
13958else
13959 echo "$as_me: failed program was:" >&5
13960sed 's/^/| /' conftest.$ac_ext >&5
13961
13962fi
8a7b1113 13963rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13964done
13965
13966fi
13967echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13968echo "${ECHO_T}$ac_cv_c_inline" >&6
a848cd7e
SC
13969case $ac_cv_c_inline in
13970 inline | yes) ;;
8a7b1113
VZ
13971 no)
13972cat >>confdefs.h <<\_ACEOF
13973#define inline
a848cd7e 13974_ACEOF
8a7b1113
VZ
13975 ;;
13976 *) cat >>confdefs.h <<_ACEOF
13977#define inline $ac_cv_c_inline
13978_ACEOF
13979 ;;
a848cd7e
SC
13980esac
13981
13982
13983echo "$as_me:$LINENO: checking for char" >&5
13984echo $ECHO_N "checking for char... $ECHO_C" >&6
13985if test "${ac_cv_type_char+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13987else
13988 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 13989#line $LINENO "configure"
a848cd7e
SC
13990/* confdefs.h. */
13991_ACEOF
13992cat confdefs.h >>conftest.$ac_ext
13993cat >>conftest.$ac_ext <<_ACEOF
13994/* end confdefs.h. */
13995$ac_includes_default
13996int
13997main ()
13998{
13999if ((char *) 0)
14000 return 0;
14001if (sizeof (char))
14002 return 0;
14003 ;
14004 return 0;
14005}
14006_ACEOF
14007rm -f conftest.$ac_objext
14008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14009 (eval $ac_compile) 2>&5
a848cd7e 14010 ac_status=$?
a848cd7e
SC
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
8a7b1113 14013 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 ac_cv_type_char=yes
14020else
14021 echo "$as_me: failed program was:" >&5
14022sed 's/^/| /' conftest.$ac_ext >&5
14023
14024ac_cv_type_char=no
14025fi
8a7b1113 14026rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14027fi
14028echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14029echo "${ECHO_T}$ac_cv_type_char" >&6
14030
14031echo "$as_me:$LINENO: checking size of char" >&5
14032echo $ECHO_N "checking size of char... $ECHO_C" >&6
14033if test "${ac_cv_sizeof_char+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035else
14036 if test "$ac_cv_type_char" = yes; then
14037 # The cast to unsigned long works around a bug in the HP C Compiler
14038 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14039 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14040 # This bug is HP SR number 8606223364.
14041 if test "$cross_compiling" = yes; then
14042 # Depending upon the size, compute the lo and hi bounds.
14043cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14044#line $LINENO "configure"
a848cd7e
SC
14045/* confdefs.h. */
14046_ACEOF
14047cat confdefs.h >>conftest.$ac_ext
14048cat >>conftest.$ac_ext <<_ACEOF
14049/* end confdefs.h. */
14050$ac_includes_default
14051int
14052main ()
14053{
14054static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14055test_array [0] = 0
14056
14057 ;
14058 return 0;
14059}
14060_ACEOF
14061rm -f conftest.$ac_objext
14062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14063 (eval $ac_compile) 2>&5
a848cd7e 14064 ac_status=$?
a848cd7e
SC
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
8a7b1113 14067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14070 ac_status=$?
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14073 ac_lo=0 ac_mid=0
14074 while :; do
14075 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14076#line $LINENO "configure"
a848cd7e
SC
14077/* confdefs.h. */
14078_ACEOF
14079cat confdefs.h >>conftest.$ac_ext
14080cat >>conftest.$ac_ext <<_ACEOF
14081/* end confdefs.h. */
14082$ac_includes_default
14083int
14084main ()
14085{
14086static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14087test_array [0] = 0
14088
14089 ;
14090 return 0;
14091}
14092_ACEOF
14093rm -f conftest.$ac_objext
14094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14095 (eval $ac_compile) 2>&5
a848cd7e 14096 ac_status=$?
a848cd7e
SC
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
8a7b1113 14099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_hi=$ac_mid; break
14106else
14107 echo "$as_me: failed program was:" >&5
14108sed 's/^/| /' conftest.$ac_ext >&5
14109
14110ac_lo=`expr $ac_mid + 1`
8a7b1113
VZ
14111 if test $ac_lo -le $ac_mid; then
14112 ac_lo= ac_hi=
14113 break
14114 fi
14115 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14116fi
8a7b1113 14117rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14118 done
14119else
14120 echo "$as_me: failed program was:" >&5
14121sed 's/^/| /' conftest.$ac_ext >&5
14122
14123cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14124#line $LINENO "configure"
a848cd7e
SC
14125/* confdefs.h. */
14126_ACEOF
14127cat confdefs.h >>conftest.$ac_ext
14128cat >>conftest.$ac_ext <<_ACEOF
14129/* end confdefs.h. */
14130$ac_includes_default
14131int
14132main ()
14133{
14134static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14135test_array [0] = 0
14136
14137 ;
14138 return 0;
14139}
14140_ACEOF
14141rm -f conftest.$ac_objext
14142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14143 (eval $ac_compile) 2>&5
a848cd7e 14144 ac_status=$?
a848cd7e
SC
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
8a7b1113 14147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 ac_hi=-1 ac_mid=-1
14154 while :; do
14155 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14156#line $LINENO "configure"
a848cd7e
SC
14157/* confdefs.h. */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
14161/* end confdefs.h. */
14162$ac_includes_default
14163int
14164main ()
14165{
14166static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14167test_array [0] = 0
14168
14169 ;
14170 return 0;
14171}
14172_ACEOF
14173rm -f conftest.$ac_objext
14174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14175 (eval $ac_compile) 2>&5
a848cd7e 14176 ac_status=$?
a848cd7e
SC
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
8a7b1113 14179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_lo=$ac_mid; break
14186else
14187 echo "$as_me: failed program was:" >&5
14188sed 's/^/| /' conftest.$ac_ext >&5
14189
14190ac_hi=`expr '(' $ac_mid ')' - 1`
8a7b1113
VZ
14191 if test $ac_mid -le $ac_hi; then
14192 ac_lo= ac_hi=
14193 break
14194 fi
14195 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14196fi
8a7b1113 14197rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14198 done
14199else
14200 echo "$as_me: failed program was:" >&5
14201sed 's/^/| /' conftest.$ac_ext >&5
14202
14203ac_lo= ac_hi=
14204fi
8a7b1113 14205rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 14206fi
8a7b1113 14207rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14208# Binary search between lo and hi bounds.
14209while test "x$ac_lo" != "x$ac_hi"; do
14210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14211 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14212#line $LINENO "configure"
a848cd7e
SC
14213/* confdefs.h. */
14214_ACEOF
14215cat confdefs.h >>conftest.$ac_ext
14216cat >>conftest.$ac_ext <<_ACEOF
14217/* end confdefs.h. */
14218$ac_includes_default
14219int
14220main ()
14221{
14222static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14223test_array [0] = 0
14224
14225 ;
14226 return 0;
14227}
14228_ACEOF
14229rm -f conftest.$ac_objext
14230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14231 (eval $ac_compile) 2>&5
a848cd7e 14232 ac_status=$?
a848cd7e
SC
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } &&
8a7b1113 14235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_hi=$ac_mid
14242else
14243 echo "$as_me: failed program was:" >&5
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
14246ac_lo=`expr '(' $ac_mid ')' + 1`
14247fi
8a7b1113 14248rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14249done
14250case $ac_lo in
14251?*) ac_cv_sizeof_char=$ac_lo;;
14252'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14253See \`config.log' for more details." >&5
14254echo "$as_me: error: cannot compute sizeof (char), 77
14255See \`config.log' for more details." >&2;}
14256 { (exit 1); exit 1; }; } ;;
14257esac
14258else
14259 if test "$cross_compiling" = yes; then
14260 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14261See \`config.log' for more details." >&5
14262echo "$as_me: error: cannot run test program while cross compiling
14263See \`config.log' for more details." >&2;}
14264 { (exit 1); exit 1; }; }
14265else
14266 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14267#line $LINENO "configure"
a848cd7e
SC
14268/* confdefs.h. */
14269_ACEOF
14270cat confdefs.h >>conftest.$ac_ext
14271cat >>conftest.$ac_ext <<_ACEOF
14272/* end confdefs.h. */
14273$ac_includes_default
14274long longval () { return (long) (sizeof (char)); }
14275unsigned long ulongval () { return (long) (sizeof (char)); }
14276#include <stdio.h>
14277#include <stdlib.h>
14278int
14279main ()
14280{
14281
14282 FILE *f = fopen ("conftest.val", "w");
14283 if (! f)
14284 exit (1);
14285 if (((long) (sizeof (char))) < 0)
14286 {
14287 long i = longval ();
14288 if (i != ((long) (sizeof (char))))
14289 exit (1);
14290 fprintf (f, "%ld\n", i);
14291 }
14292 else
14293 {
14294 unsigned long i = ulongval ();
14295 if (i != ((long) (sizeof (char))))
14296 exit (1);
14297 fprintf (f, "%lu\n", i);
14298 }
14299 exit (ferror (f) || fclose (f) != 0);
14300
14301 ;
14302 return 0;
14303}
14304_ACEOF
14305rm -f conftest$ac_exeext
14306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14307 (eval $ac_link) 2>&5
14308 ac_status=$?
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14313 ac_status=$?
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 ac_cv_sizeof_char=`cat conftest.val`
14317else
14318 echo "$as_me: program exited with status $ac_status" >&5
14319echo "$as_me: failed program was:" >&5
14320sed 's/^/| /' conftest.$ac_ext >&5
14321
14322( exit $ac_status )
14323{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14324See \`config.log' for more details." >&5
14325echo "$as_me: error: cannot compute sizeof (char), 77
14326See \`config.log' for more details." >&2;}
14327 { (exit 1); exit 1; }; }
14328fi
8a7b1113 14329rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14330fi
14331fi
14332rm -f conftest.val
14333else
14334 ac_cv_sizeof_char=0
14335fi
14336fi
14337echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14338echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14339cat >>confdefs.h <<_ACEOF
14340#define SIZEOF_CHAR $ac_cv_sizeof_char
14341_ACEOF
14342
14343
14344echo "$as_me:$LINENO: checking for short" >&5
14345echo $ECHO_N "checking for short... $ECHO_C" >&6
14346if test "${ac_cv_type_short+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348else
14349 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14350#line $LINENO "configure"
a848cd7e
SC
14351/* confdefs.h. */
14352_ACEOF
14353cat confdefs.h >>conftest.$ac_ext
14354cat >>conftest.$ac_ext <<_ACEOF
14355/* end confdefs.h. */
14356$ac_includes_default
14357int
14358main ()
14359{
14360if ((short *) 0)
14361 return 0;
14362if (sizeof (short))
14363 return 0;
14364 ;
14365 return 0;
14366}
14367_ACEOF
14368rm -f conftest.$ac_objext
14369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14370 (eval $ac_compile) 2>&5
a848cd7e 14371 ac_status=$?
a848cd7e
SC
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } &&
8a7b1113 14374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14380 ac_cv_type_short=yes
14381else
14382 echo "$as_me: failed program was:" >&5
14383sed 's/^/| /' conftest.$ac_ext >&5
14384
14385ac_cv_type_short=no
14386fi
8a7b1113 14387rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14388fi
14389echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14390echo "${ECHO_T}$ac_cv_type_short" >&6
14391
14392echo "$as_me:$LINENO: checking size of short" >&5
14393echo $ECHO_N "checking size of short... $ECHO_C" >&6
14394if test "${ac_cv_sizeof_short+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396else
14397 if test "$ac_cv_type_short" = yes; then
14398 # The cast to unsigned long works around a bug in the HP C Compiler
14399 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14400 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14401 # This bug is HP SR number 8606223364.
14402 if test "$cross_compiling" = yes; then
14403 # Depending upon the size, compute the lo and hi bounds.
14404cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14405#line $LINENO "configure"
a848cd7e
SC
14406/* confdefs.h. */
14407_ACEOF
14408cat confdefs.h >>conftest.$ac_ext
14409cat >>conftest.$ac_ext <<_ACEOF
14410/* end confdefs.h. */
14411$ac_includes_default
14412int
14413main ()
14414{
14415static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14416test_array [0] = 0
14417
14418 ;
14419 return 0;
14420}
14421_ACEOF
14422rm -f conftest.$ac_objext
14423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14424 (eval $ac_compile) 2>&5
a848cd7e 14425 ac_status=$?
a848cd7e
SC
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
8a7b1113 14428 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14434 ac_lo=0 ac_mid=0
14435 while :; do
14436 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14437#line $LINENO "configure"
a848cd7e
SC
14438/* confdefs.h. */
14439_ACEOF
14440cat confdefs.h >>conftest.$ac_ext
14441cat >>conftest.$ac_ext <<_ACEOF
14442/* end confdefs.h. */
14443$ac_includes_default
14444int
14445main ()
14446{
14447static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14448test_array [0] = 0
14449
14450 ;
14451 return 0;
14452}
14453_ACEOF
14454rm -f conftest.$ac_objext
14455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14456 (eval $ac_compile) 2>&5
a848cd7e 14457 ac_status=$?
a848cd7e
SC
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
8a7b1113 14460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 ac_hi=$ac_mid; break
14467else
14468 echo "$as_me: failed program was:" >&5
14469sed 's/^/| /' conftest.$ac_ext >&5
14470
14471ac_lo=`expr $ac_mid + 1`
8a7b1113
VZ
14472 if test $ac_lo -le $ac_mid; then
14473 ac_lo= ac_hi=
14474 break
14475 fi
14476 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14477fi
8a7b1113 14478rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14479 done
14480else
14481 echo "$as_me: failed program was:" >&5
14482sed 's/^/| /' conftest.$ac_ext >&5
14483
14484cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14485#line $LINENO "configure"
a848cd7e
SC
14486/* confdefs.h. */
14487_ACEOF
14488cat confdefs.h >>conftest.$ac_ext
14489cat >>conftest.$ac_ext <<_ACEOF
14490/* end confdefs.h. */
14491$ac_includes_default
14492int
14493main ()
14494{
14495static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14496test_array [0] = 0
14497
14498 ;
14499 return 0;
14500}
14501_ACEOF
14502rm -f conftest.$ac_objext
14503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14504 (eval $ac_compile) 2>&5
a848cd7e 14505 ac_status=$?
a848cd7e
SC
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
8a7b1113 14508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510 (eval $ac_try) 2>&5
14511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; }; then
14514 ac_hi=-1 ac_mid=-1
14515 while :; do
14516 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14517#line $LINENO "configure"
a848cd7e
SC
14518/* confdefs.h. */
14519_ACEOF
14520cat confdefs.h >>conftest.$ac_ext
14521cat >>conftest.$ac_ext <<_ACEOF
14522/* end confdefs.h. */
14523$ac_includes_default
14524int
14525main ()
14526{
14527static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14528test_array [0] = 0
14529
14530 ;
14531 return 0;
14532}
14533_ACEOF
14534rm -f conftest.$ac_objext
14535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14536 (eval $ac_compile) 2>&5
a848cd7e 14537 ac_status=$?
a848cd7e
SC
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
8a7b1113 14540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_lo=$ac_mid; break
14547else
14548 echo "$as_me: failed program was:" >&5
14549sed 's/^/| /' conftest.$ac_ext >&5
14550
14551ac_hi=`expr '(' $ac_mid ')' - 1`
8a7b1113
VZ
14552 if test $ac_mid -le $ac_hi; then
14553 ac_lo= ac_hi=
14554 break
14555 fi
14556 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14557fi
8a7b1113 14558rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14559 done
14560else
14561 echo "$as_me: failed program was:" >&5
14562sed 's/^/| /' conftest.$ac_ext >&5
14563
14564ac_lo= ac_hi=
14565fi
8a7b1113 14566rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 14567fi
8a7b1113 14568rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14569# Binary search between lo and hi bounds.
14570while test "x$ac_lo" != "x$ac_hi"; do
14571 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14572 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14573#line $LINENO "configure"
a848cd7e
SC
14574/* confdefs.h. */
14575_ACEOF
14576cat confdefs.h >>conftest.$ac_ext
14577cat >>conftest.$ac_ext <<_ACEOF
14578/* end confdefs.h. */
14579$ac_includes_default
14580int
14581main ()
14582{
14583static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14584test_array [0] = 0
14585
14586 ;
14587 return 0;
14588}
14589_ACEOF
14590rm -f conftest.$ac_objext
14591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14592 (eval $ac_compile) 2>&5
a848cd7e 14593 ac_status=$?
a848cd7e
SC
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
8a7b1113 14596 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 ac_hi=$ac_mid
14603else
14604 echo "$as_me: failed program was:" >&5
14605sed 's/^/| /' conftest.$ac_ext >&5
14606
14607ac_lo=`expr '(' $ac_mid ')' + 1`
14608fi
8a7b1113 14609rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14610done
14611case $ac_lo in
14612?*) ac_cv_sizeof_short=$ac_lo;;
14613'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14614See \`config.log' for more details." >&5
14615echo "$as_me: error: cannot compute sizeof (short), 77
14616See \`config.log' for more details." >&2;}
14617 { (exit 1); exit 1; }; } ;;
14618esac
14619else
14620 if test "$cross_compiling" = yes; then
14621 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14622See \`config.log' for more details." >&5
14623echo "$as_me: error: cannot run test program while cross compiling
14624See \`config.log' for more details." >&2;}
14625 { (exit 1); exit 1; }; }
14626else
14627 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14628#line $LINENO "configure"
a848cd7e
SC
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 (short)); }
14636unsigned long ulongval () { return (long) (sizeof (short)); }
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 (short))) < 0)
14647 {
14648 long i = longval ();
14649 if (i != ((long) (sizeof (short))))
14650 exit (1);
14651 fprintf (f, "%ld\n", i);
14652 }
14653 else
14654 {
14655 unsigned long i = ulongval ();
14656 if (i != ((long) (sizeof (short))))
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_short=`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 (short), 77
14685See \`config.log' for more details." >&5
14686echo "$as_me: error: cannot compute sizeof (short), 77
14687See \`config.log' for more details." >&2;}
14688 { (exit 1); exit 1; }; }
14689fi
8a7b1113 14690rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14691fi
14692fi
14693rm -f conftest.val
14694else
14695 ac_cv_sizeof_short=0
14696fi
14697fi
14698echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14699echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14700cat >>confdefs.h <<_ACEOF
14701#define SIZEOF_SHORT $ac_cv_sizeof_short
14702_ACEOF
14703
14704
14705echo "$as_me:$LINENO: checking for void *" >&5
14706echo $ECHO_N "checking for void *... $ECHO_C" >&6
14707if test "${ac_cv_type_void_p+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14709else
14710 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14711#line $LINENO "configure"
a848cd7e
SC
14712/* confdefs.h. */
14713_ACEOF
14714cat confdefs.h >>conftest.$ac_ext
14715cat >>conftest.$ac_ext <<_ACEOF
14716/* end confdefs.h. */
14717$ac_includes_default
14718int
14719main ()
14720{
14721if ((void * *) 0)
14722 return 0;
14723if (sizeof (void *))
14724 return 0;
14725 ;
14726 return 0;
14727}
14728_ACEOF
14729rm -f conftest.$ac_objext
14730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14731 (eval $ac_compile) 2>&5
a848cd7e 14732 ac_status=$?
a848cd7e
SC
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
8a7b1113 14735 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 ac_cv_type_void_p=yes
14742else
14743 echo "$as_me: failed program was:" >&5
14744sed 's/^/| /' conftest.$ac_ext >&5
14745
14746ac_cv_type_void_p=no
14747fi
8a7b1113 14748rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14749fi
14750echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14751echo "${ECHO_T}$ac_cv_type_void_p" >&6
14752
14753echo "$as_me:$LINENO: checking size of void *" >&5
14754echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14755if test "${ac_cv_sizeof_void_p+set}" = set; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14757else
14758 if test "$ac_cv_type_void_p" = yes; then
14759 # The cast to unsigned long works around a bug in the HP C Compiler
14760 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14761 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14762 # This bug is HP SR number 8606223364.
14763 if test "$cross_compiling" = yes; then
14764 # Depending upon the size, compute the lo and hi bounds.
14765cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14766#line $LINENO "configure"
a848cd7e
SC
14767/* confdefs.h. */
14768_ACEOF
14769cat confdefs.h >>conftest.$ac_ext
14770cat >>conftest.$ac_ext <<_ACEOF
14771/* end confdefs.h. */
14772$ac_includes_default
14773int
14774main ()
14775{
14776static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14777test_array [0] = 0
14778
14779 ;
14780 return 0;
14781}
14782_ACEOF
14783rm -f conftest.$ac_objext
14784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14785 (eval $ac_compile) 2>&5
a848cd7e 14786 ac_status=$?
a848cd7e
SC
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } &&
8a7b1113 14789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 ac_lo=0 ac_mid=0
14796 while :; do
14797 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14798#line $LINENO "configure"
a848cd7e
SC
14799/* confdefs.h. */
14800_ACEOF
14801cat confdefs.h >>conftest.$ac_ext
14802cat >>conftest.$ac_ext <<_ACEOF
14803/* end confdefs.h. */
14804$ac_includes_default
14805int
14806main ()
14807{
14808static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14809test_array [0] = 0
14810
14811 ;
14812 return 0;
14813}
14814_ACEOF
14815rm -f conftest.$ac_objext
14816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14817 (eval $ac_compile) 2>&5
a848cd7e 14818 ac_status=$?
a848cd7e
SC
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } &&
8a7b1113 14821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_hi=$ac_mid; break
14828else
14829 echo "$as_me: failed program was:" >&5
14830sed 's/^/| /' conftest.$ac_ext >&5
14831
14832ac_lo=`expr $ac_mid + 1`
8a7b1113
VZ
14833 if test $ac_lo -le $ac_mid; then
14834 ac_lo= ac_hi=
14835 break
14836 fi
14837 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14838fi
8a7b1113 14839rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14840 done
14841else
14842 echo "$as_me: failed program was:" >&5
14843sed 's/^/| /' conftest.$ac_ext >&5
14844
14845cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14846#line $LINENO "configure"
a848cd7e
SC
14847/* confdefs.h. */
14848_ACEOF
14849cat confdefs.h >>conftest.$ac_ext
14850cat >>conftest.$ac_ext <<_ACEOF
14851/* end confdefs.h. */
14852$ac_includes_default
14853int
14854main ()
14855{
14856static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14857test_array [0] = 0
14858
14859 ;
14860 return 0;
14861}
14862_ACEOF
14863rm -f conftest.$ac_objext
14864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14865 (eval $ac_compile) 2>&5
a848cd7e 14866 ac_status=$?
a848cd7e
SC
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
8a7b1113 14869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; }; then
14875 ac_hi=-1 ac_mid=-1
14876 while :; do
14877 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14878#line $LINENO "configure"
a848cd7e
SC
14879/* confdefs.h. */
14880_ACEOF
14881cat confdefs.h >>conftest.$ac_ext
14882cat >>conftest.$ac_ext <<_ACEOF
14883/* end confdefs.h. */
14884$ac_includes_default
14885int
14886main ()
14887{
14888static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14889test_array [0] = 0
14890
14891 ;
14892 return 0;
14893}
14894_ACEOF
14895rm -f conftest.$ac_objext
14896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14897 (eval $ac_compile) 2>&5
a848cd7e 14898 ac_status=$?
a848cd7e
SC
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
8a7b1113 14901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_lo=$ac_mid; break
14908else
14909 echo "$as_me: failed program was:" >&5
14910sed 's/^/| /' conftest.$ac_ext >&5
14911
14912ac_hi=`expr '(' $ac_mid ')' - 1`
8a7b1113
VZ
14913 if test $ac_mid -le $ac_hi; then
14914 ac_lo= ac_hi=
14915 break
14916 fi
14917 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14918fi
8a7b1113 14919rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14920 done
14921else
14922 echo "$as_me: failed program was:" >&5
14923sed 's/^/| /' conftest.$ac_ext >&5
14924
14925ac_lo= ac_hi=
14926fi
8a7b1113 14927rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 14928fi
8a7b1113 14929rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14930# Binary search between lo and hi bounds.
14931while test "x$ac_lo" != "x$ac_hi"; do
14932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14933 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14934#line $LINENO "configure"
a848cd7e
SC
14935/* confdefs.h. */
14936_ACEOF
14937cat confdefs.h >>conftest.$ac_ext
14938cat >>conftest.$ac_ext <<_ACEOF
14939/* end confdefs.h. */
14940$ac_includes_default
14941int
14942main ()
14943{
14944static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14945test_array [0] = 0
14946
14947 ;
14948 return 0;
14949}
14950_ACEOF
14951rm -f conftest.$ac_objext
14952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 14953 (eval $ac_compile) 2>&5
a848cd7e 14954 ac_status=$?
a848cd7e
SC
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
8a7b1113 14957 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 ac_hi=$ac_mid
14964else
14965 echo "$as_me: failed program was:" >&5
14966sed 's/^/| /' conftest.$ac_ext >&5
14967
14968ac_lo=`expr '(' $ac_mid ')' + 1`
14969fi
8a7b1113 14970rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14971done
14972case $ac_lo in
14973?*) ac_cv_sizeof_void_p=$ac_lo;;
14974'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14975See \`config.log' for more details." >&5
14976echo "$as_me: error: cannot compute sizeof (void *), 77
14977See \`config.log' for more details." >&2;}
14978 { (exit 1); exit 1; }; } ;;
14979esac
14980else
14981 if test "$cross_compiling" = yes; then
14982 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14983See \`config.log' for more details." >&5
14984echo "$as_me: error: cannot run test program while cross compiling
14985See \`config.log' for more details." >&2;}
14986 { (exit 1); exit 1; }; }
14987else
14988 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 14989#line $LINENO "configure"
a848cd7e
SC
14990/* confdefs.h. */
14991_ACEOF
14992cat confdefs.h >>conftest.$ac_ext
14993cat >>conftest.$ac_ext <<_ACEOF
14994/* end confdefs.h. */
14995$ac_includes_default
14996long longval () { return (long) (sizeof (void *)); }
14997unsigned long ulongval () { return (long) (sizeof (void *)); }
14998#include <stdio.h>
14999#include <stdlib.h>
15000int
15001main ()
15002{
15003
15004 FILE *f = fopen ("conftest.val", "w");
15005 if (! f)
15006 exit (1);
15007 if (((long) (sizeof (void *))) < 0)
15008 {
15009 long i = longval ();
15010 if (i != ((long) (sizeof (void *))))
15011 exit (1);
15012 fprintf (f, "%ld\n", i);
15013 }
15014 else
15015 {
15016 unsigned long i = ulongval ();
15017 if (i != ((long) (sizeof (void *))))
15018 exit (1);
15019 fprintf (f, "%lu\n", i);
15020 }
15021 exit (ferror (f) || fclose (f) != 0);
15022
15023 ;
15024 return 0;
15025}
15026_ACEOF
15027rm -f conftest$ac_exeext
15028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15029 (eval $ac_link) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_cv_sizeof_void_p=`cat conftest.val`
15039else
15040 echo "$as_me: program exited with status $ac_status" >&5
15041echo "$as_me: failed program was:" >&5
15042sed 's/^/| /' conftest.$ac_ext >&5
15043
15044( exit $ac_status )
15045{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15046See \`config.log' for more details." >&5
15047echo "$as_me: error: cannot compute sizeof (void *), 77
15048See \`config.log' for more details." >&2;}
15049 { (exit 1); exit 1; }; }
15050fi
8a7b1113 15051rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15052fi
15053fi
15054rm -f conftest.val
15055else
15056 ac_cv_sizeof_void_p=0
15057fi
15058fi
15059echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15060echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15061cat >>confdefs.h <<_ACEOF
15062#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15063_ACEOF
15064
15065
15066echo "$as_me:$LINENO: checking for int" >&5
15067echo $ECHO_N "checking for int... $ECHO_C" >&6
15068if test "${ac_cv_type_int+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070else
15071 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15072#line $LINENO "configure"
a848cd7e
SC
15073/* confdefs.h. */
15074_ACEOF
15075cat confdefs.h >>conftest.$ac_ext
15076cat >>conftest.$ac_ext <<_ACEOF
15077/* end confdefs.h. */
15078$ac_includes_default
15079int
15080main ()
15081{
15082if ((int *) 0)
15083 return 0;
15084if (sizeof (int))
15085 return 0;
15086 ;
15087 return 0;
15088}
15089_ACEOF
15090rm -f conftest.$ac_objext
15091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15092 (eval $ac_compile) 2>&5
a848cd7e 15093 ac_status=$?
a848cd7e
SC
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
8a7b1113 15096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_cv_type_int=yes
15103else
15104 echo "$as_me: failed program was:" >&5
15105sed 's/^/| /' conftest.$ac_ext >&5
15106
15107ac_cv_type_int=no
15108fi
8a7b1113 15109rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15110fi
15111echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15112echo "${ECHO_T}$ac_cv_type_int" >&6
15113
15114echo "$as_me:$LINENO: checking size of int" >&5
15115echo $ECHO_N "checking size of int... $ECHO_C" >&6
15116if test "${ac_cv_sizeof_int+set}" = set; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15118else
15119 if test "$ac_cv_type_int" = yes; then
15120 # The cast to unsigned long works around a bug in the HP C Compiler
15121 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15122 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15123 # This bug is HP SR number 8606223364.
15124 if test "$cross_compiling" = yes; then
15125 # Depending upon the size, compute the lo and hi bounds.
15126cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15127#line $LINENO "configure"
a848cd7e
SC
15128/* confdefs.h. */
15129_ACEOF
15130cat confdefs.h >>conftest.$ac_ext
15131cat >>conftest.$ac_ext <<_ACEOF
15132/* end confdefs.h. */
15133$ac_includes_default
15134int
15135main ()
15136{
15137static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15138test_array [0] = 0
15139
15140 ;
15141 return 0;
15142}
15143_ACEOF
15144rm -f conftest.$ac_objext
15145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15146 (eval $ac_compile) 2>&5
a848cd7e 15147 ac_status=$?
a848cd7e
SC
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
8a7b1113 15150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15156 ac_lo=0 ac_mid=0
15157 while :; do
15158 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15159#line $LINENO "configure"
a848cd7e
SC
15160/* confdefs.h. */
15161_ACEOF
15162cat confdefs.h >>conftest.$ac_ext
15163cat >>conftest.$ac_ext <<_ACEOF
15164/* end confdefs.h. */
15165$ac_includes_default
15166int
15167main ()
15168{
15169static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15170test_array [0] = 0
15171
15172 ;
15173 return 0;
15174}
15175_ACEOF
15176rm -f conftest.$ac_objext
15177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15178 (eval $ac_compile) 2>&5
a848cd7e 15179 ac_status=$?
a848cd7e
SC
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } &&
8a7b1113 15182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 ac_hi=$ac_mid; break
15189else
15190 echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193ac_lo=`expr $ac_mid + 1`
8a7b1113
VZ
15194 if test $ac_lo -le $ac_mid; then
15195 ac_lo= ac_hi=
15196 break
15197 fi
15198 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15199fi
8a7b1113 15200rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15201 done
15202else
15203 echo "$as_me: failed program was:" >&5
15204sed 's/^/| /' conftest.$ac_ext >&5
15205
15206cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15207#line $LINENO "configure"
a848cd7e
SC
15208/* confdefs.h. */
15209_ACEOF
15210cat confdefs.h >>conftest.$ac_ext
15211cat >>conftest.$ac_ext <<_ACEOF
15212/* end confdefs.h. */
15213$ac_includes_default
15214int
15215main ()
15216{
15217static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15218test_array [0] = 0
15219
15220 ;
15221 return 0;
15222}
15223_ACEOF
15224rm -f conftest.$ac_objext
15225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15226 (eval $ac_compile) 2>&5
a848cd7e 15227 ac_status=$?
a848cd7e
SC
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
8a7b1113 15230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; }; then
15236 ac_hi=-1 ac_mid=-1
15237 while :; do
15238 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15239#line $LINENO "configure"
a848cd7e
SC
15240/* confdefs.h. */
15241_ACEOF
15242cat confdefs.h >>conftest.$ac_ext
15243cat >>conftest.$ac_ext <<_ACEOF
15244/* end confdefs.h. */
15245$ac_includes_default
15246int
15247main ()
15248{
15249static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15250test_array [0] = 0
15251
15252 ;
15253 return 0;
15254}
15255_ACEOF
15256rm -f conftest.$ac_objext
15257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15258 (eval $ac_compile) 2>&5
a848cd7e 15259 ac_status=$?
a848cd7e
SC
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
8a7b1113 15262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_lo=$ac_mid; break
15269else
15270 echo "$as_me: failed program was:" >&5
15271sed 's/^/| /' conftest.$ac_ext >&5
15272
15273ac_hi=`expr '(' $ac_mid ')' - 1`
8a7b1113
VZ
15274 if test $ac_mid -le $ac_hi; then
15275 ac_lo= ac_hi=
15276 break
15277 fi
15278 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15279fi
8a7b1113 15280rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15281 done
15282else
15283 echo "$as_me: failed program was:" >&5
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
15286ac_lo= ac_hi=
15287fi
8a7b1113 15288rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 15289fi
8a7b1113 15290rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15291# Binary search between lo and hi bounds.
15292while test "x$ac_lo" != "x$ac_hi"; do
15293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15294 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15295#line $LINENO "configure"
a848cd7e
SC
15296/* confdefs.h. */
15297_ACEOF
15298cat confdefs.h >>conftest.$ac_ext
15299cat >>conftest.$ac_ext <<_ACEOF
15300/* end confdefs.h. */
15301$ac_includes_default
15302int
15303main ()
15304{
15305static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15306test_array [0] = 0
15307
15308 ;
15309 return 0;
15310}
15311_ACEOF
15312rm -f conftest.$ac_objext
15313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15314 (eval $ac_compile) 2>&5
a848cd7e 15315 ac_status=$?
a848cd7e
SC
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
8a7b1113 15318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_hi=$ac_mid
15325else
15326 echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
15329ac_lo=`expr '(' $ac_mid ')' + 1`
15330fi
8a7b1113 15331rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15332done
15333case $ac_lo in
15334?*) ac_cv_sizeof_int=$ac_lo;;
15335'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15336See \`config.log' for more details." >&5
15337echo "$as_me: error: cannot compute sizeof (int), 77
15338See \`config.log' for more details." >&2;}
15339 { (exit 1); exit 1; }; } ;;
15340esac
15341else
15342 if test "$cross_compiling" = yes; then
15343 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15344See \`config.log' for more details." >&5
15345echo "$as_me: error: cannot run test program while cross compiling
15346See \`config.log' for more details." >&2;}
15347 { (exit 1); exit 1; }; }
15348else
15349 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15350#line $LINENO "configure"
a848cd7e
SC
15351/* confdefs.h. */
15352_ACEOF
15353cat confdefs.h >>conftest.$ac_ext
15354cat >>conftest.$ac_ext <<_ACEOF
15355/* end confdefs.h. */
15356$ac_includes_default
15357long longval () { return (long) (sizeof (int)); }
15358unsigned long ulongval () { return (long) (sizeof (int)); }
15359#include <stdio.h>
15360#include <stdlib.h>
15361int
15362main ()
15363{
15364
15365 FILE *f = fopen ("conftest.val", "w");
15366 if (! f)
15367 exit (1);
15368 if (((long) (sizeof (int))) < 0)
15369 {
15370 long i = longval ();
15371 if (i != ((long) (sizeof (int))))
15372 exit (1);
15373 fprintf (f, "%ld\n", i);
15374 }
15375 else
15376 {
15377 unsigned long i = ulongval ();
15378 if (i != ((long) (sizeof (int))))
15379 exit (1);
15380 fprintf (f, "%lu\n", i);
15381 }
15382 exit (ferror (f) || fclose (f) != 0);
15383
15384 ;
15385 return 0;
15386}
15387_ACEOF
15388rm -f conftest$ac_exeext
15389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15390 (eval $ac_link) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15399 ac_cv_sizeof_int=`cat conftest.val`
15400else
15401 echo "$as_me: program exited with status $ac_status" >&5
15402echo "$as_me: failed program was:" >&5
15403sed 's/^/| /' conftest.$ac_ext >&5
15404
15405( exit $ac_status )
15406{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15407See \`config.log' for more details." >&5
15408echo "$as_me: error: cannot compute sizeof (int), 77
15409See \`config.log' for more details." >&2;}
15410 { (exit 1); exit 1; }; }
15411fi
8a7b1113 15412rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15413fi
15414fi
15415rm -f conftest.val
15416else
15417 ac_cv_sizeof_int=0
15418fi
15419fi
15420echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15421echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15422cat >>confdefs.h <<_ACEOF
15423#define SIZEOF_INT $ac_cv_sizeof_int
15424_ACEOF
15425
15426
15427echo "$as_me:$LINENO: checking for long" >&5
15428echo $ECHO_N "checking for long... $ECHO_C" >&6
15429if test "${ac_cv_type_long+set}" = set; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15431else
15432 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15433#line $LINENO "configure"
a848cd7e
SC
15434/* confdefs.h. */
15435_ACEOF
15436cat confdefs.h >>conftest.$ac_ext
15437cat >>conftest.$ac_ext <<_ACEOF
15438/* end confdefs.h. */
15439$ac_includes_default
15440int
15441main ()
15442{
15443if ((long *) 0)
15444 return 0;
15445if (sizeof (long))
15446 return 0;
15447 ;
15448 return 0;
15449}
15450_ACEOF
15451rm -f conftest.$ac_objext
15452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15453 (eval $ac_compile) 2>&5
a848cd7e 15454 ac_status=$?
a848cd7e
SC
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
8a7b1113 15457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_cv_type_long=yes
15464else
15465 echo "$as_me: failed program was:" >&5
15466sed 's/^/| /' conftest.$ac_ext >&5
15467
15468ac_cv_type_long=no
15469fi
8a7b1113 15470rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15471fi
15472echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15473echo "${ECHO_T}$ac_cv_type_long" >&6
15474
15475echo "$as_me:$LINENO: checking size of long" >&5
15476echo $ECHO_N "checking size of long... $ECHO_C" >&6
15477if test "${ac_cv_sizeof_long+set}" = set; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15479else
15480 if test "$ac_cv_type_long" = yes; then
15481 # The cast to unsigned long works around a bug in the HP C Compiler
15482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15484 # This bug is HP SR number 8606223364.
15485 if test "$cross_compiling" = yes; then
15486 # Depending upon the size, compute the lo and hi bounds.
15487cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15488#line $LINENO "configure"
a848cd7e
SC
15489/* confdefs.h. */
15490_ACEOF
15491cat confdefs.h >>conftest.$ac_ext
15492cat >>conftest.$ac_ext <<_ACEOF
15493/* end confdefs.h. */
15494$ac_includes_default
15495int
15496main ()
15497{
15498static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15499test_array [0] = 0
15500
15501 ;
15502 return 0;
15503}
15504_ACEOF
15505rm -f conftest.$ac_objext
15506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15507 (eval $ac_compile) 2>&5
a848cd7e 15508 ac_status=$?
a848cd7e
SC
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
8a7b1113 15511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; }; then
15517 ac_lo=0 ac_mid=0
15518 while :; do
15519 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15520#line $LINENO "configure"
a848cd7e
SC
15521/* confdefs.h. */
15522_ACEOF
15523cat confdefs.h >>conftest.$ac_ext
15524cat >>conftest.$ac_ext <<_ACEOF
15525/* end confdefs.h. */
15526$ac_includes_default
15527int
15528main ()
15529{
15530static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15531test_array [0] = 0
15532
15533 ;
15534 return 0;
15535}
15536_ACEOF
15537rm -f conftest.$ac_objext
15538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15539 (eval $ac_compile) 2>&5
a848cd7e 15540 ac_status=$?
a848cd7e
SC
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } &&
8a7b1113 15543 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 ac_hi=$ac_mid; break
15550else
15551 echo "$as_me: failed program was:" >&5
15552sed 's/^/| /' conftest.$ac_ext >&5
15553
15554ac_lo=`expr $ac_mid + 1`
8a7b1113
VZ
15555 if test $ac_lo -le $ac_mid; then
15556 ac_lo= ac_hi=
15557 break
15558 fi
15559 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15560fi
8a7b1113 15561rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15562 done
15563else
15564 echo "$as_me: failed program was:" >&5
15565sed 's/^/| /' conftest.$ac_ext >&5
15566
15567cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15568#line $LINENO "configure"
a848cd7e
SC
15569/* confdefs.h. */
15570_ACEOF
15571cat confdefs.h >>conftest.$ac_ext
15572cat >>conftest.$ac_ext <<_ACEOF
15573/* end confdefs.h. */
15574$ac_includes_default
15575int
15576main ()
15577{
15578static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15579test_array [0] = 0
15580
15581 ;
15582 return 0;
15583}
15584_ACEOF
15585rm -f conftest.$ac_objext
15586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15587 (eval $ac_compile) 2>&5
a848cd7e 15588 ac_status=$?
a848cd7e
SC
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
8a7b1113 15591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 ac_hi=-1 ac_mid=-1
15598 while :; do
15599 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15600#line $LINENO "configure"
a848cd7e
SC
15601/* confdefs.h. */
15602_ACEOF
15603cat confdefs.h >>conftest.$ac_ext
15604cat >>conftest.$ac_ext <<_ACEOF
15605/* end confdefs.h. */
15606$ac_includes_default
15607int
15608main ()
15609{
15610static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15611test_array [0] = 0
15612
15613 ;
15614 return 0;
15615}
15616_ACEOF
15617rm -f conftest.$ac_objext
15618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15619 (eval $ac_compile) 2>&5
a848cd7e 15620 ac_status=$?
a848cd7e
SC
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
8a7b1113 15623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_lo=$ac_mid; break
15630else
15631 echo "$as_me: failed program was:" >&5
15632sed 's/^/| /' conftest.$ac_ext >&5
15633
15634ac_hi=`expr '(' $ac_mid ')' - 1`
8a7b1113
VZ
15635 if test $ac_mid -le $ac_hi; then
15636 ac_lo= ac_hi=
15637 break
15638 fi
15639 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15640fi
8a7b1113 15641rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15642 done
15643else
15644 echo "$as_me: failed program was:" >&5
15645sed 's/^/| /' conftest.$ac_ext >&5
15646
15647ac_lo= ac_hi=
15648fi
8a7b1113 15649rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 15650fi
8a7b1113 15651rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15652# Binary search between lo and hi bounds.
15653while test "x$ac_lo" != "x$ac_hi"; do
15654 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15655 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15656#line $LINENO "configure"
a848cd7e
SC
15657/* confdefs.h. */
15658_ACEOF
15659cat confdefs.h >>conftest.$ac_ext
15660cat >>conftest.$ac_ext <<_ACEOF
15661/* end confdefs.h. */
15662$ac_includes_default
15663int
15664main ()
15665{
15666static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15667test_array [0] = 0
15668
15669 ;
15670 return 0;
15671}
15672_ACEOF
15673rm -f conftest.$ac_objext
15674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15675 (eval $ac_compile) 2>&5
a848cd7e 15676 ac_status=$?
a848cd7e
SC
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
8a7b1113 15679 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 ac_hi=$ac_mid
15686else
15687 echo "$as_me: failed program was:" >&5
15688sed 's/^/| /' conftest.$ac_ext >&5
15689
15690ac_lo=`expr '(' $ac_mid ')' + 1`
15691fi
8a7b1113 15692rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15693done
15694case $ac_lo in
15695?*) ac_cv_sizeof_long=$ac_lo;;
15696'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15697See \`config.log' for more details." >&5
15698echo "$as_me: error: cannot compute sizeof (long), 77
15699See \`config.log' for more details." >&2;}
15700 { (exit 1); exit 1; }; } ;;
15701esac
15702else
15703 if test "$cross_compiling" = yes; then
15704 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15705See \`config.log' for more details." >&5
15706echo "$as_me: error: cannot run test program while cross compiling
15707See \`config.log' for more details." >&2;}
15708 { (exit 1); exit 1; }; }
15709else
15710 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15711#line $LINENO "configure"
a848cd7e
SC
15712/* confdefs.h. */
15713_ACEOF
15714cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */
15717$ac_includes_default
15718long longval () { return (long) (sizeof (long)); }
15719unsigned long ulongval () { return (long) (sizeof (long)); }
15720#include <stdio.h>
15721#include <stdlib.h>
15722int
15723main ()
15724{
15725
15726 FILE *f = fopen ("conftest.val", "w");
15727 if (! f)
15728 exit (1);
15729 if (((long) (sizeof (long))) < 0)
15730 {
15731 long i = longval ();
15732 if (i != ((long) (sizeof (long))))
15733 exit (1);
15734 fprintf (f, "%ld\n", i);
15735 }
15736 else
15737 {
15738 unsigned long i = ulongval ();
15739 if (i != ((long) (sizeof (long))))
15740 exit (1);
15741 fprintf (f, "%lu\n", i);
15742 }
15743 exit (ferror (f) || fclose (f) != 0);
15744
15745 ;
15746 return 0;
15747}
15748_ACEOF
15749rm -f conftest$ac_exeext
15750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15751 (eval $ac_link) 2>&5
15752 ac_status=$?
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15757 ac_status=$?
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; }; then
15760 ac_cv_sizeof_long=`cat conftest.val`
15761else
15762 echo "$as_me: program exited with status $ac_status" >&5
15763echo "$as_me: failed program was:" >&5
15764sed 's/^/| /' conftest.$ac_ext >&5
15765
15766( exit $ac_status )
15767{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15768See \`config.log' for more details." >&5
15769echo "$as_me: error: cannot compute sizeof (long), 77
15770See \`config.log' for more details." >&2;}
15771 { (exit 1); exit 1; }; }
15772fi
8a7b1113 15773rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15774fi
15775fi
15776rm -f conftest.val
15777else
15778 ac_cv_sizeof_long=0
15779fi
15780fi
15781echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15782echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15783cat >>confdefs.h <<_ACEOF
15784#define SIZEOF_LONG $ac_cv_sizeof_long
15785_ACEOF
15786
15787
15788echo "$as_me:$LINENO: checking for size_t" >&5
15789echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15790if test "${ac_cv_type_size_t+set}" = set; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15792else
15793 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15794#line $LINENO "configure"
a848cd7e
SC
15795/* confdefs.h. */
15796_ACEOF
15797cat confdefs.h >>conftest.$ac_ext
15798cat >>conftest.$ac_ext <<_ACEOF
15799/* end confdefs.h. */
15800$ac_includes_default
15801int
15802main ()
15803{
15804if ((size_t *) 0)
15805 return 0;
15806if (sizeof (size_t))
15807 return 0;
15808 ;
15809 return 0;
15810}
15811_ACEOF
15812rm -f conftest.$ac_objext
15813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15814 (eval $ac_compile) 2>&5
a848cd7e 15815 ac_status=$?
a848cd7e
SC
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
8a7b1113 15818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_cv_type_size_t=yes
15825else
15826 echo "$as_me: failed program was:" >&5
15827sed 's/^/| /' conftest.$ac_ext >&5
15828
15829ac_cv_type_size_t=no
15830fi
8a7b1113 15831rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15832fi
15833echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15834echo "${ECHO_T}$ac_cv_type_size_t" >&6
15835
15836echo "$as_me:$LINENO: checking size of size_t" >&5
15837echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
15838if test "${ac_cv_sizeof_size_t+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15840else
15841 if test "$ac_cv_type_size_t" = yes; then
15842 # The cast to unsigned long works around a bug in the HP C Compiler
15843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15845 # This bug is HP SR number 8606223364.
15846 if test "$cross_compiling" = yes; then
15847 # Depending upon the size, compute the lo and hi bounds.
15848cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15849#line $LINENO "configure"
a848cd7e
SC
15850/* confdefs.h. */
15851_ACEOF
15852cat confdefs.h >>conftest.$ac_ext
15853cat >>conftest.$ac_ext <<_ACEOF
15854/* end confdefs.h. */
15855$ac_includes_default
15856int
15857main ()
15858{
15859static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
15860test_array [0] = 0
15861
15862 ;
15863 return 0;
15864}
15865_ACEOF
15866rm -f conftest.$ac_objext
15867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15868 (eval $ac_compile) 2>&5
a848cd7e 15869 ac_status=$?
a848cd7e
SC
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } &&
8a7b1113 15872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }; then
15878 ac_lo=0 ac_mid=0
15879 while :; do
15880 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15881#line $LINENO "configure"
a848cd7e
SC
15882/* confdefs.h. */
15883_ACEOF
15884cat confdefs.h >>conftest.$ac_ext
15885cat >>conftest.$ac_ext <<_ACEOF
15886/* end confdefs.h. */
15887$ac_includes_default
15888int
15889main ()
15890{
15891static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
15892test_array [0] = 0
15893
15894 ;
15895 return 0;
15896}
15897_ACEOF
15898rm -f conftest.$ac_objext
15899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15900 (eval $ac_compile) 2>&5
a848cd7e 15901 ac_status=$?
a848cd7e
SC
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
8a7b1113 15904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 ac_hi=$ac_mid; break
15911else
15912 echo "$as_me: failed program was:" >&5
15913sed 's/^/| /' conftest.$ac_ext >&5
15914
15915ac_lo=`expr $ac_mid + 1`
8a7b1113
VZ
15916 if test $ac_lo -le $ac_mid; then
15917 ac_lo= ac_hi=
15918 break
15919 fi
15920 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15921fi
8a7b1113 15922rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15923 done
15924else
15925 echo "$as_me: failed program was:" >&5
15926sed 's/^/| /' conftest.$ac_ext >&5
15927
15928cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15929#line $LINENO "configure"
a848cd7e
SC
15930/* confdefs.h. */
15931_ACEOF
15932cat confdefs.h >>conftest.$ac_ext
15933cat >>conftest.$ac_ext <<_ACEOF
15934/* end confdefs.h. */
15935$ac_includes_default
15936int
15937main ()
15938{
15939static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
15940test_array [0] = 0
15941
15942 ;
15943 return 0;
15944}
15945_ACEOF
15946rm -f conftest.$ac_objext
15947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15948 (eval $ac_compile) 2>&5
a848cd7e 15949 ac_status=$?
a848cd7e
SC
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } &&
8a7b1113 15952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 ac_hi=-1 ac_mid=-1
15959 while :; do
15960 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 15961#line $LINENO "configure"
a848cd7e
SC
15962/* confdefs.h. */
15963_ACEOF
15964cat confdefs.h >>conftest.$ac_ext
15965cat >>conftest.$ac_ext <<_ACEOF
15966/* end confdefs.h. */
15967$ac_includes_default
15968int
15969main ()
15970{
15971static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
15972test_array [0] = 0
15973
15974 ;
15975 return 0;
15976}
15977_ACEOF
15978rm -f conftest.$ac_objext
15979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 15980 (eval $ac_compile) 2>&5
a848cd7e 15981 ac_status=$?
a848cd7e
SC
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
8a7b1113 15984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 ac_lo=$ac_mid; break
15991else
15992 echo "$as_me: failed program was:" >&5
15993sed 's/^/| /' conftest.$ac_ext >&5
15994
15995ac_hi=`expr '(' $ac_mid ')' - 1`
8a7b1113
VZ
15996 if test $ac_mid -le $ac_hi; then
15997 ac_lo= ac_hi=
15998 break
15999 fi
16000 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16001fi
8a7b1113 16002rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16003 done
16004else
16005 echo "$as_me: failed program was:" >&5
16006sed 's/^/| /' conftest.$ac_ext >&5
16007
16008ac_lo= ac_hi=
16009fi
8a7b1113 16010rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 16011fi
8a7b1113 16012rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16013# Binary search between lo and hi bounds.
16014while test "x$ac_lo" != "x$ac_hi"; do
16015 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16016 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16017#line $LINENO "configure"
a848cd7e
SC
16018/* confdefs.h. */
16019_ACEOF
16020cat confdefs.h >>conftest.$ac_ext
16021cat >>conftest.$ac_ext <<_ACEOF
16022/* end confdefs.h. */
16023$ac_includes_default
16024int
16025main ()
16026{
16027static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16028test_array [0] = 0
16029
16030 ;
16031 return 0;
16032}
16033_ACEOF
16034rm -f conftest.$ac_objext
16035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16036 (eval $ac_compile) 2>&5
a848cd7e 16037 ac_status=$?
a848cd7e
SC
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
8a7b1113 16040 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_hi=$ac_mid
16047else
16048 echo "$as_me: failed program was:" >&5
16049sed 's/^/| /' conftest.$ac_ext >&5
16050
16051ac_lo=`expr '(' $ac_mid ')' + 1`
16052fi
8a7b1113 16053rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16054done
16055case $ac_lo in
16056?*) ac_cv_sizeof_size_t=$ac_lo;;
16057'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16058See \`config.log' for more details." >&5
16059echo "$as_me: error: cannot compute sizeof (size_t), 77
16060See \`config.log' for more details." >&2;}
16061 { (exit 1); exit 1; }; } ;;
16062esac
16063else
16064 if test "$cross_compiling" = yes; then
16065 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16066See \`config.log' for more details." >&5
16067echo "$as_me: error: cannot run test program while cross compiling
16068See \`config.log' for more details." >&2;}
16069 { (exit 1); exit 1; }; }
16070else
16071 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16072#line $LINENO "configure"
a848cd7e
SC
16073/* confdefs.h. */
16074_ACEOF
16075cat confdefs.h >>conftest.$ac_ext
16076cat >>conftest.$ac_ext <<_ACEOF
16077/* end confdefs.h. */
16078$ac_includes_default
16079long longval () { return (long) (sizeof (size_t)); }
16080unsigned long ulongval () { return (long) (sizeof (size_t)); }
16081#include <stdio.h>
16082#include <stdlib.h>
16083int
16084main ()
16085{
16086
16087 FILE *f = fopen ("conftest.val", "w");
16088 if (! f)
16089 exit (1);
16090 if (((long) (sizeof (size_t))) < 0)
16091 {
16092 long i = longval ();
16093 if (i != ((long) (sizeof (size_t))))
16094 exit (1);
16095 fprintf (f, "%ld\n", i);
16096 }
16097 else
16098 {
16099 unsigned long i = ulongval ();
16100 if (i != ((long) (sizeof (size_t))))
16101 exit (1);
16102 fprintf (f, "%lu\n", i);
16103 }
16104 exit (ferror (f) || fclose (f) != 0);
16105
16106 ;
16107 return 0;
16108}
16109_ACEOF
16110rm -f conftest$ac_exeext
16111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16112 (eval $ac_link) 2>&5
16113 ac_status=$?
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
16121 ac_cv_sizeof_size_t=`cat conftest.val`
16122else
16123 echo "$as_me: program exited with status $ac_status" >&5
16124echo "$as_me: failed program was:" >&5
16125sed 's/^/| /' conftest.$ac_ext >&5
16126
16127( exit $ac_status )
16128{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16129See \`config.log' for more details." >&5
16130echo "$as_me: error: cannot compute sizeof (size_t), 77
16131See \`config.log' for more details." >&2;}
16132 { (exit 1); exit 1; }; }
16133fi
8a7b1113 16134rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16135fi
16136fi
16137rm -f conftest.val
16138else
16139 ac_cv_sizeof_size_t=0
16140fi
16141fi
16142echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16143echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16144cat >>confdefs.h <<_ACEOF
16145#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16146_ACEOF
16147
16148
16149
16150case "${host}" in
16151 arm-*-linux* )
16152 echo "$as_me:$LINENO: checking for long long" >&5
16153echo $ECHO_N "checking for long long... $ECHO_C" >&6
16154if test "${ac_cv_type_long_long+set}" = set; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16156else
16157 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16158#line $LINENO "configure"
a848cd7e
SC
16159/* confdefs.h. */
16160_ACEOF
16161cat confdefs.h >>conftest.$ac_ext
16162cat >>conftest.$ac_ext <<_ACEOF
16163/* end confdefs.h. */
16164$ac_includes_default
16165int
16166main ()
16167{
16168if ((long long *) 0)
16169 return 0;
16170if (sizeof (long long))
16171 return 0;
16172 ;
16173 return 0;
16174}
16175_ACEOF
16176rm -f conftest.$ac_objext
16177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16178 (eval $ac_compile) 2>&5
a848cd7e 16179 ac_status=$?
a848cd7e
SC
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } &&
8a7b1113 16182 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16188 ac_cv_type_long_long=yes
16189else
16190 echo "$as_me: failed program was:" >&5
16191sed 's/^/| /' conftest.$ac_ext >&5
16192
16193ac_cv_type_long_long=no
16194fi
8a7b1113 16195rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16196fi
16197echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16198echo "${ECHO_T}$ac_cv_type_long_long" >&6
16199
16200echo "$as_me:$LINENO: checking size of long long" >&5
16201echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16202if test "${ac_cv_sizeof_long_long+set}" = set; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16204else
16205 if test "$ac_cv_type_long_long" = yes; then
16206 # The cast to unsigned long works around a bug in the HP C Compiler
16207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16209 # This bug is HP SR number 8606223364.
16210 if test "$cross_compiling" = yes; then
16211 # Depending upon the size, compute the lo and hi bounds.
16212cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16213#line $LINENO "configure"
a848cd7e
SC
16214/* confdefs.h. */
16215_ACEOF
16216cat confdefs.h >>conftest.$ac_ext
16217cat >>conftest.$ac_ext <<_ACEOF
16218/* end confdefs.h. */
16219$ac_includes_default
16220int
16221main ()
16222{
16223static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16224test_array [0] = 0
16225
16226 ;
16227 return 0;
16228}
16229_ACEOF
16230rm -f conftest.$ac_objext
16231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16232 (eval $ac_compile) 2>&5
a848cd7e 16233 ac_status=$?
a848cd7e
SC
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } &&
8a7b1113 16236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16239 ac_status=$?
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; }; then
16242 ac_lo=0 ac_mid=0
16243 while :; do
16244 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16245#line $LINENO "configure"
a848cd7e
SC
16246/* confdefs.h. */
16247_ACEOF
16248cat confdefs.h >>conftest.$ac_ext
16249cat >>conftest.$ac_ext <<_ACEOF
16250/* end confdefs.h. */
16251$ac_includes_default
16252int
16253main ()
16254{
16255static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16256test_array [0] = 0
16257
16258 ;
16259 return 0;
16260}
16261_ACEOF
16262rm -f conftest.$ac_objext
16263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16264 (eval $ac_compile) 2>&5
a848cd7e 16265 ac_status=$?
a848cd7e
SC
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
8a7b1113 16268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 ac_hi=$ac_mid; break
16275else
16276 echo "$as_me: failed program was:" >&5
16277sed 's/^/| /' conftest.$ac_ext >&5
16278
16279ac_lo=`expr $ac_mid + 1`
8a7b1113
VZ
16280 if test $ac_lo -le $ac_mid; then
16281 ac_lo= ac_hi=
16282 break
16283 fi
16284 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16285fi
8a7b1113 16286rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16287 done
16288else
16289 echo "$as_me: failed program was:" >&5
16290sed 's/^/| /' conftest.$ac_ext >&5
16291
16292cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16293#line $LINENO "configure"
a848cd7e
SC
16294/* confdefs.h. */
16295_ACEOF
16296cat confdefs.h >>conftest.$ac_ext
16297cat >>conftest.$ac_ext <<_ACEOF
16298/* end confdefs.h. */
16299$ac_includes_default
16300int
16301main ()
16302{
16303static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16304test_array [0] = 0
16305
16306 ;
16307 return 0;
16308}
16309_ACEOF
16310rm -f conftest.$ac_objext
16311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16312 (eval $ac_compile) 2>&5
a848cd7e 16313 ac_status=$?
a848cd7e
SC
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } &&
8a7b1113 16316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 ac_hi=-1 ac_mid=-1
16323 while :; do
16324 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16325#line $LINENO "configure"
a848cd7e
SC
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
16331$ac_includes_default
16332int
16333main ()
16334{
16335static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16336test_array [0] = 0
16337
16338 ;
16339 return 0;
16340}
16341_ACEOF
16342rm -f conftest.$ac_objext
16343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16344 (eval $ac_compile) 2>&5
a848cd7e 16345 ac_status=$?
a848cd7e
SC
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
8a7b1113 16348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 ac_lo=$ac_mid; break
16355else
16356 echo "$as_me: failed program was:" >&5
16357sed 's/^/| /' conftest.$ac_ext >&5
16358
16359ac_hi=`expr '(' $ac_mid ')' - 1`
8a7b1113
VZ
16360 if test $ac_mid -le $ac_hi; then
16361 ac_lo= ac_hi=
16362 break
16363 fi
16364 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16365fi
8a7b1113 16366rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16367 done
16368else
16369 echo "$as_me: failed program was:" >&5
16370sed 's/^/| /' conftest.$ac_ext >&5
16371
16372ac_lo= ac_hi=
16373fi
8a7b1113 16374rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 16375fi
8a7b1113 16376rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16377# Binary search between lo and hi bounds.
16378while test "x$ac_lo" != "x$ac_hi"; do
16379 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16380 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16381#line $LINENO "configure"
a848cd7e
SC
16382/* confdefs.h. */
16383_ACEOF
16384cat confdefs.h >>conftest.$ac_ext
16385cat >>conftest.$ac_ext <<_ACEOF
16386/* end confdefs.h. */
16387$ac_includes_default
16388int
16389main ()
16390{
16391static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16392test_array [0] = 0
16393
16394 ;
16395 return 0;
16396}
16397_ACEOF
16398rm -f conftest.$ac_objext
16399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16400 (eval $ac_compile) 2>&5
a848cd7e 16401 ac_status=$?
a848cd7e
SC
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
8a7b1113 16404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_hi=$ac_mid
16411else
16412 echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415ac_lo=`expr '(' $ac_mid ')' + 1`
16416fi
8a7b1113 16417rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16418done
16419case $ac_lo in
16420?*) ac_cv_sizeof_long_long=$ac_lo;;
16421'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16422See \`config.log' for more details." >&5
16423echo "$as_me: error: cannot compute sizeof (long long), 77
16424See \`config.log' for more details." >&2;}
16425 { (exit 1); exit 1; }; } ;;
16426esac
16427else
16428 if test "$cross_compiling" = yes; then
16429 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16430See \`config.log' for more details." >&5
16431echo "$as_me: error: cannot run test program while cross compiling
16432See \`config.log' for more details." >&2;}
16433 { (exit 1); exit 1; }; }
16434else
16435 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16436#line $LINENO "configure"
a848cd7e
SC
16437/* confdefs.h. */
16438_ACEOF
16439cat confdefs.h >>conftest.$ac_ext
16440cat >>conftest.$ac_ext <<_ACEOF
16441/* end confdefs.h. */
16442$ac_includes_default
16443long longval () { return (long) (sizeof (long long)); }
16444unsigned long ulongval () { return (long) (sizeof (long long)); }
16445#include <stdio.h>
16446#include <stdlib.h>
16447int
16448main ()
16449{
16450
16451 FILE *f = fopen ("conftest.val", "w");
16452 if (! f)
16453 exit (1);
16454 if (((long) (sizeof (long long))) < 0)
16455 {
16456 long i = longval ();
16457 if (i != ((long) (sizeof (long long))))
16458 exit (1);
16459 fprintf (f, "%ld\n", i);
16460 }
16461 else
16462 {
16463 unsigned long i = ulongval ();
16464 if (i != ((long) (sizeof (long long))))
16465 exit (1);
16466 fprintf (f, "%lu\n", i);
16467 }
16468 exit (ferror (f) || fclose (f) != 0);
16469
16470 ;
16471 return 0;
16472}
16473_ACEOF
16474rm -f conftest$ac_exeext
16475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16476 (eval $ac_link) 2>&5
16477 ac_status=$?
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16482 ac_status=$?
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16485 ac_cv_sizeof_long_long=`cat conftest.val`
16486else
16487 echo "$as_me: program exited with status $ac_status" >&5
16488echo "$as_me: failed program was:" >&5
16489sed 's/^/| /' conftest.$ac_ext >&5
16490
16491( exit $ac_status )
16492{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16493See \`config.log' for more details." >&5
16494echo "$as_me: error: cannot compute sizeof (long long), 77
16495See \`config.log' for more details." >&2;}
16496 { (exit 1); exit 1; }; }
16497fi
8a7b1113 16498rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16499fi
16500fi
16501rm -f conftest.val
16502else
16503 ac_cv_sizeof_long_long=0
16504fi
16505fi
16506echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16507echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16508cat >>confdefs.h <<_ACEOF
16509#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16510_ACEOF
16511
16512
16513 ;;
16514 *-hp-hpux* )
16515 echo "$as_me:$LINENO: checking for long long" >&5
16516echo $ECHO_N "checking for long long... $ECHO_C" >&6
16517if test "${ac_cv_type_long_long+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16519else
16520 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16521#line $LINENO "configure"
a848cd7e
SC
16522/* confdefs.h. */
16523_ACEOF
16524cat confdefs.h >>conftest.$ac_ext
16525cat >>conftest.$ac_ext <<_ACEOF
16526/* end confdefs.h. */
16527$ac_includes_default
16528int
16529main ()
16530{
16531if ((long long *) 0)
16532 return 0;
16533if (sizeof (long long))
16534 return 0;
16535 ;
16536 return 0;
16537}
16538_ACEOF
16539rm -f conftest.$ac_objext
16540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16541 (eval $ac_compile) 2>&5
a848cd7e 16542 ac_status=$?
a848cd7e
SC
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } &&
8a7b1113 16545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; }; then
16551 ac_cv_type_long_long=yes
16552else
16553 echo "$as_me: failed program was:" >&5
16554sed 's/^/| /' conftest.$ac_ext >&5
16555
16556ac_cv_type_long_long=no
16557fi
8a7b1113 16558rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16559fi
16560echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16561echo "${ECHO_T}$ac_cv_type_long_long" >&6
16562
16563echo "$as_me:$LINENO: checking size of long long" >&5
16564echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16565if test "${ac_cv_sizeof_long_long+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16567else
16568 if test "$ac_cv_type_long_long" = yes; then
16569 # The cast to unsigned long works around a bug in the HP C Compiler
16570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16572 # This bug is HP SR number 8606223364.
16573 if test "$cross_compiling" = yes; then
16574 # Depending upon the size, compute the lo and hi bounds.
16575cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16576#line $LINENO "configure"
a848cd7e
SC
16577/* confdefs.h. */
16578_ACEOF
16579cat confdefs.h >>conftest.$ac_ext
16580cat >>conftest.$ac_ext <<_ACEOF
16581/* end confdefs.h. */
16582$ac_includes_default
16583int
16584main ()
16585{
16586static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16587test_array [0] = 0
16588
16589 ;
16590 return 0;
16591}
16592_ACEOF
16593rm -f conftest.$ac_objext
16594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16595 (eval $ac_compile) 2>&5
a848cd7e 16596 ac_status=$?
a848cd7e
SC
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
8a7b1113 16599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_lo=0 ac_mid=0
16606 while :; do
16607 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16608#line $LINENO "configure"
a848cd7e
SC
16609/* confdefs.h. */
16610_ACEOF
16611cat confdefs.h >>conftest.$ac_ext
16612cat >>conftest.$ac_ext <<_ACEOF
16613/* end confdefs.h. */
16614$ac_includes_default
16615int
16616main ()
16617{
16618static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16619test_array [0] = 0
16620
16621 ;
16622 return 0;
16623}
16624_ACEOF
16625rm -f conftest.$ac_objext
16626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16627 (eval $ac_compile) 2>&5
a848cd7e 16628 ac_status=$?
a848cd7e
SC
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
8a7b1113 16631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633 (eval $ac_try) 2>&5
16634 ac_status=$?
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; }; then
16637 ac_hi=$ac_mid; break
16638else
16639 echo "$as_me: failed program was:" >&5
16640sed 's/^/| /' conftest.$ac_ext >&5
16641
16642ac_lo=`expr $ac_mid + 1`
8a7b1113
VZ
16643 if test $ac_lo -le $ac_mid; then
16644 ac_lo= ac_hi=
16645 break
16646 fi
16647 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16648fi
8a7b1113 16649rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16650 done
16651else
16652 echo "$as_me: failed program was:" >&5
16653sed 's/^/| /' conftest.$ac_ext >&5
16654
16655cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16656#line $LINENO "configure"
a848cd7e
SC
16657/* confdefs.h. */
16658_ACEOF
16659cat confdefs.h >>conftest.$ac_ext
16660cat >>conftest.$ac_ext <<_ACEOF
16661/* end confdefs.h. */
16662$ac_includes_default
16663int
16664main ()
16665{
16666static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16667test_array [0] = 0
16668
16669 ;
16670 return 0;
16671}
16672_ACEOF
16673rm -f conftest.$ac_objext
16674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16675 (eval $ac_compile) 2>&5
a848cd7e 16676 ac_status=$?
a848cd7e
SC
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
8a7b1113 16679 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_hi=-1 ac_mid=-1
16686 while :; do
16687 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16688#line $LINENO "configure"
a848cd7e
SC
16689/* confdefs.h. */
16690_ACEOF
16691cat confdefs.h >>conftest.$ac_ext
16692cat >>conftest.$ac_ext <<_ACEOF
16693/* end confdefs.h. */
16694$ac_includes_default
16695int
16696main ()
16697{
16698static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16699test_array [0] = 0
16700
16701 ;
16702 return 0;
16703}
16704_ACEOF
16705rm -f conftest.$ac_objext
16706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16707 (eval $ac_compile) 2>&5
a848cd7e 16708 ac_status=$?
a848cd7e
SC
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
8a7b1113 16711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16717 ac_lo=$ac_mid; break
16718else
16719 echo "$as_me: failed program was:" >&5
16720sed 's/^/| /' conftest.$ac_ext >&5
16721
16722ac_hi=`expr '(' $ac_mid ')' - 1`
8a7b1113
VZ
16723 if test $ac_mid -le $ac_hi; then
16724 ac_lo= ac_hi=
16725 break
16726 fi
16727 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16728fi
8a7b1113 16729rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16730 done
16731else
16732 echo "$as_me: failed program was:" >&5
16733sed 's/^/| /' conftest.$ac_ext >&5
16734
16735ac_lo= ac_hi=
16736fi
8a7b1113 16737rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 16738fi
8a7b1113 16739rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16740# Binary search between lo and hi bounds.
16741while test "x$ac_lo" != "x$ac_hi"; do
16742 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16743 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16744#line $LINENO "configure"
a848cd7e
SC
16745/* confdefs.h. */
16746_ACEOF
16747cat confdefs.h >>conftest.$ac_ext
16748cat >>conftest.$ac_ext <<_ACEOF
16749/* end confdefs.h. */
16750$ac_includes_default
16751int
16752main ()
16753{
16754static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16755test_array [0] = 0
16756
16757 ;
16758 return 0;
16759}
16760_ACEOF
16761rm -f conftest.$ac_objext
16762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16763 (eval $ac_compile) 2>&5
a848cd7e 16764 ac_status=$?
a848cd7e
SC
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
8a7b1113 16767 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16770 ac_status=$?
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; }; then
16773 ac_hi=$ac_mid
16774else
16775 echo "$as_me: failed program was:" >&5
16776sed 's/^/| /' conftest.$ac_ext >&5
16777
16778ac_lo=`expr '(' $ac_mid ')' + 1`
16779fi
8a7b1113 16780rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16781done
16782case $ac_lo in
16783?*) ac_cv_sizeof_long_long=$ac_lo;;
16784'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16785See \`config.log' for more details." >&5
16786echo "$as_me: error: cannot compute sizeof (long long), 77
16787See \`config.log' for more details." >&2;}
16788 { (exit 1); exit 1; }; } ;;
16789esac
16790else
16791 if test "$cross_compiling" = yes; then
16792 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16793See \`config.log' for more details." >&5
16794echo "$as_me: error: cannot run test program while cross compiling
16795See \`config.log' for more details." >&2;}
16796 { (exit 1); exit 1; }; }
16797else
16798 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16799#line $LINENO "configure"
a848cd7e
SC
16800/* confdefs.h. */
16801_ACEOF
16802cat confdefs.h >>conftest.$ac_ext
16803cat >>conftest.$ac_ext <<_ACEOF
16804/* end confdefs.h. */
16805$ac_includes_default
16806long longval () { return (long) (sizeof (long long)); }
16807unsigned long ulongval () { return (long) (sizeof (long long)); }
16808#include <stdio.h>
16809#include <stdlib.h>
16810int
16811main ()
16812{
16813
16814 FILE *f = fopen ("conftest.val", "w");
16815 if (! f)
16816 exit (1);
16817 if (((long) (sizeof (long long))) < 0)
16818 {
16819 long i = longval ();
16820 if (i != ((long) (sizeof (long long))))
16821 exit (1);
16822 fprintf (f, "%ld\n", i);
16823 }
16824 else
16825 {
16826 unsigned long i = ulongval ();
16827 if (i != ((long) (sizeof (long long))))
16828 exit (1);
16829 fprintf (f, "%lu\n", i);
16830 }
16831 exit (ferror (f) || fclose (f) != 0);
16832
16833 ;
16834 return 0;
16835}
16836_ACEOF
16837rm -f conftest$ac_exeext
16838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16839 (eval $ac_link) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 ac_cv_sizeof_long_long=`cat conftest.val`
16849else
16850 echo "$as_me: program exited with status $ac_status" >&5
16851echo "$as_me: failed program was:" >&5
16852sed 's/^/| /' conftest.$ac_ext >&5
16853
16854( exit $ac_status )
16855{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16856See \`config.log' for more details." >&5
16857echo "$as_me: error: cannot compute sizeof (long long), 77
16858See \`config.log' for more details." >&2;}
16859 { (exit 1); exit 1; }; }
16860fi
8a7b1113 16861rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16862fi
16863fi
16864rm -f conftest.val
16865else
16866 ac_cv_sizeof_long_long=0
16867fi
16868fi
16869echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16870echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16871cat >>confdefs.h <<_ACEOF
16872#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16873_ACEOF
16874
16875
16876 if test "$ac_cv_sizeof_long_long" != "0"; then
16877 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16878 fi
16879 ;;
16880 * )
16881 echo "$as_me:$LINENO: checking for long long" >&5
16882echo $ECHO_N "checking for long long... $ECHO_C" >&6
16883if test "${ac_cv_type_long_long+set}" = set; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16885else
16886 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16887#line $LINENO "configure"
a848cd7e
SC
16888/* confdefs.h. */
16889_ACEOF
16890cat confdefs.h >>conftest.$ac_ext
16891cat >>conftest.$ac_ext <<_ACEOF
16892/* end confdefs.h. */
16893$ac_includes_default
16894int
16895main ()
16896{
16897if ((long long *) 0)
16898 return 0;
16899if (sizeof (long long))
16900 return 0;
16901 ;
16902 return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext
16906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16907 (eval $ac_compile) 2>&5
a848cd7e 16908 ac_status=$?
a848cd7e
SC
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
8a7b1113 16911 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 ac_cv_type_long_long=yes
16918else
16919 echo "$as_me: failed program was:" >&5
16920sed 's/^/| /' conftest.$ac_ext >&5
16921
16922ac_cv_type_long_long=no
16923fi
8a7b1113 16924rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16925fi
16926echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16927echo "${ECHO_T}$ac_cv_type_long_long" >&6
16928
16929echo "$as_me:$LINENO: checking size of long long" >&5
16930echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16931if test "${ac_cv_sizeof_long_long+set}" = set; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16933else
16934 if test "$ac_cv_type_long_long" = yes; then
16935 # The cast to unsigned long works around a bug in the HP C Compiler
16936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16938 # This bug is HP SR number 8606223364.
16939 if test "$cross_compiling" = yes; then
16940 # Depending upon the size, compute the lo and hi bounds.
16941cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16942#line $LINENO "configure"
a848cd7e
SC
16943/* confdefs.h. */
16944_ACEOF
16945cat confdefs.h >>conftest.$ac_ext
16946cat >>conftest.$ac_ext <<_ACEOF
16947/* end confdefs.h. */
16948$ac_includes_default
16949int
16950main ()
16951{
16952static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16953test_array [0] = 0
16954
16955 ;
16956 return 0;
16957}
16958_ACEOF
16959rm -f conftest.$ac_objext
16960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16961 (eval $ac_compile) 2>&5
a848cd7e 16962 ac_status=$?
a848cd7e
SC
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } &&
8a7b1113 16965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967 (eval $ac_try) 2>&5
16968 ac_status=$?
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; }; then
16971 ac_lo=0 ac_mid=0
16972 while :; do
16973 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 16974#line $LINENO "configure"
a848cd7e
SC
16975/* confdefs.h. */
16976_ACEOF
16977cat confdefs.h >>conftest.$ac_ext
16978cat >>conftest.$ac_ext <<_ACEOF
16979/* end confdefs.h. */
16980$ac_includes_default
16981int
16982main ()
16983{
16984static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16985test_array [0] = 0
16986
16987 ;
16988 return 0;
16989}
16990_ACEOF
16991rm -f conftest.$ac_objext
16992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 16993 (eval $ac_compile) 2>&5
a848cd7e 16994 ac_status=$?
a848cd7e
SC
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } &&
8a7b1113 16997 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 ac_hi=$ac_mid; break
17004else
17005 echo "$as_me: failed program was:" >&5
17006sed 's/^/| /' conftest.$ac_ext >&5
17007
17008ac_lo=`expr $ac_mid + 1`
8a7b1113
VZ
17009 if test $ac_lo -le $ac_mid; then
17010 ac_lo= ac_hi=
17011 break
17012 fi
17013 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17014fi
8a7b1113 17015rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17016 done
17017else
17018 echo "$as_me: failed program was:" >&5
17019sed 's/^/| /' conftest.$ac_ext >&5
17020
17021cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17022#line $LINENO "configure"
a848cd7e
SC
17023/* confdefs.h. */
17024_ACEOF
17025cat confdefs.h >>conftest.$ac_ext
17026cat >>conftest.$ac_ext <<_ACEOF
17027/* end confdefs.h. */
17028$ac_includes_default
17029int
17030main ()
17031{
17032static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17033test_array [0] = 0
17034
17035 ;
17036 return 0;
17037}
17038_ACEOF
17039rm -f conftest.$ac_objext
17040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 17041 (eval $ac_compile) 2>&5
a848cd7e 17042 ac_status=$?
a848cd7e
SC
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
8a7b1113 17045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17051 ac_hi=-1 ac_mid=-1
17052 while :; do
17053 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17054#line $LINENO "configure"
a848cd7e
SC
17055/* confdefs.h. */
17056_ACEOF
17057cat confdefs.h >>conftest.$ac_ext
17058cat >>conftest.$ac_ext <<_ACEOF
17059/* end confdefs.h. */
17060$ac_includes_default
17061int
17062main ()
17063{
17064static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17065test_array [0] = 0
17066
17067 ;
17068 return 0;
17069}
17070_ACEOF
17071rm -f conftest.$ac_objext
17072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 17073 (eval $ac_compile) 2>&5
a848cd7e 17074 ac_status=$?
a848cd7e
SC
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
8a7b1113 17077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083 ac_lo=$ac_mid; break
17084else
17085 echo "$as_me: failed program was:" >&5
17086sed 's/^/| /' conftest.$ac_ext >&5
17087
17088ac_hi=`expr '(' $ac_mid ')' - 1`
8a7b1113
VZ
17089 if test $ac_mid -le $ac_hi; then
17090 ac_lo= ac_hi=
17091 break
17092 fi
17093 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17094fi
8a7b1113 17095rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17096 done
17097else
17098 echo "$as_me: failed program was:" >&5
17099sed 's/^/| /' conftest.$ac_ext >&5
17100
17101ac_lo= ac_hi=
17102fi
8a7b1113 17103rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e 17104fi
8a7b1113 17105rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17106# Binary search between lo and hi bounds.
17107while test "x$ac_lo" != "x$ac_hi"; do
17108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17109 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17110#line $LINENO "configure"
a848cd7e
SC
17111/* confdefs.h. */
17112_ACEOF
17113cat confdefs.h >>conftest.$ac_ext
17114cat >>conftest.$ac_ext <<_ACEOF
17115/* end confdefs.h. */
17116$ac_includes_default
17117int
17118main ()
17119{
17120static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17121test_array [0] = 0
17122
17123 ;
17124 return 0;
17125}
17126_ACEOF
17127rm -f conftest.$ac_objext
17128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 17129 (eval $ac_compile) 2>&5
a848cd7e 17130 ac_status=$?
a848cd7e
SC
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
8a7b1113 17133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; }; then
17139 ac_hi=$ac_mid
17140else
17141 echo "$as_me: failed program was:" >&5
17142sed 's/^/| /' conftest.$ac_ext >&5
17143
17144ac_lo=`expr '(' $ac_mid ')' + 1`
17145fi
8a7b1113 17146rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17147done
17148case $ac_lo in
17149?*) ac_cv_sizeof_long_long=$ac_lo;;
17150'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17151See \`config.log' for more details." >&5
17152echo "$as_me: error: cannot compute sizeof (long long), 77
17153See \`config.log' for more details." >&2;}
17154 { (exit 1); exit 1; }; } ;;
17155esac
17156else
17157 if test "$cross_compiling" = yes; then
17158 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17159See \`config.log' for more details." >&5
17160echo "$as_me: error: cannot run test program while cross compiling
17161See \`config.log' for more details." >&2;}
17162 { (exit 1); exit 1; }; }
17163else
17164 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17165#line $LINENO "configure"
a848cd7e
SC
17166/* confdefs.h. */
17167_ACEOF
17168cat confdefs.h >>conftest.$ac_ext
17169cat >>conftest.$ac_ext <<_ACEOF
17170/* end confdefs.h. */
17171$ac_includes_default
17172long longval () { return (long) (sizeof (long long)); }
17173unsigned long ulongval () { return (long) (sizeof (long long)); }
17174#include <stdio.h>
17175#include <stdlib.h>
17176int
17177main ()
17178{
17179
17180 FILE *f = fopen ("conftest.val", "w");
17181 if (! f)
17182 exit (1);
17183 if (((long) (sizeof (long long))) < 0)
17184 {
17185 long i = longval ();
17186 if (i != ((long) (sizeof (long long))))
17187 exit (1);
17188 fprintf (f, "%ld\n", i);
17189 }
17190 else
17191 {
17192 unsigned long i = ulongval ();
17193 if (i != ((long) (sizeof (long long))))
17194 exit (1);
17195 fprintf (f, "%lu\n", i);
17196 }
17197 exit (ferror (f) || fclose (f) != 0);
17198
17199 ;
17200 return 0;
17201}
17202_ACEOF
17203rm -f conftest$ac_exeext
17204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17205 (eval $ac_link) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17210 (eval $ac_try) 2>&5
17211 ac_status=$?
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); }; }; then
17214 ac_cv_sizeof_long_long=`cat conftest.val`
17215else
17216 echo "$as_me: program exited with status $ac_status" >&5
17217echo "$as_me: failed program was:" >&5
17218sed 's/^/| /' conftest.$ac_ext >&5
17219
17220( exit $ac_status )
17221{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17222See \`config.log' for more details." >&5
17223echo "$as_me: error: cannot compute sizeof (long long), 77
17224See \`config.log' for more details." >&2;}
17225 { (exit 1); exit 1; }; }
17226fi
8a7b1113 17227rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17228fi
17229fi
17230rm -f conftest.val
17231else
17232 ac_cv_sizeof_long_long=0
17233fi
17234fi
17235echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17236echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17237cat >>confdefs.h <<_ACEOF
17238#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17239_ACEOF
17240
17241
17242esac
17243
17244echo "$as_me:$LINENO: checking size of wchar_t" >&5
17245echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17246if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17247 echo $ECHO_N "(cached) $ECHO_C" >&6
17248else
17249
17250 if test "$cross_compiling" = yes; then
17251
17252 case "${host}" in
17253 *-pc-msdosdjgpp )
17254 wx_cv_sizeof_wchar_t=0
17255 ;;
17256 * )
17257 wx_cv_sizeof_wchar_t=4
17258 ;;
17259 esac
17260
17261
17262else
17263 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17264#line $LINENO "configure"
a848cd7e
SC
17265/* confdefs.h. */
17266_ACEOF
17267cat confdefs.h >>conftest.$ac_ext
17268cat >>conftest.$ac_ext <<_ACEOF
17269/* end confdefs.h. */
17270
17271 /* DJGPP only has fake wchar_t: */
17272 #ifdef __DJGPP__
17273 # error "fake wchar_t"
17274 #endif
17275 #ifdef HAVE_WCHAR_H
17276 # ifdef __CYGWIN__
17277 # include <stddef.h>
17278 # endif
17279 # include <wchar.h>
17280 #endif
17281 #ifdef HAVE_STDLIB_H
17282 # include <stdlib.h>
17283 #endif
17284 #include <stdio.h>
17285 int main()
17286 {
17287 FILE *f=fopen("conftestval", "w");
17288 if (!f) exit(1);
17289 fprintf(f, "%i", sizeof(wchar_t));
17290 exit(0);
17291 }
17292
17293_ACEOF
17294rm -f conftest$ac_exeext
17295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17296 (eval $ac_link) 2>&5
17297 ac_status=$?
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 wx_cv_sizeof_wchar_t=`cat conftestval`
17306else
17307 echo "$as_me: program exited with status $ac_status" >&5
17308echo "$as_me: failed program was:" >&5
17309sed 's/^/| /' conftest.$ac_ext >&5
17310
17311( exit $ac_status )
17312wx_cv_sizeof_wchar_t=0
17313fi
8a7b1113 17314rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17315fi
17316
17317fi
17318echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17319echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
17320
17321cat >>confdefs.h <<_ACEOF
17322#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
17323_ACEOF
17324
17325
17326# Check whether --enable-largefile or --disable-largefile was given.
17327if test "${enable_largefile+set}" = set; then
17328 enableval="$enable_largefile"
17329
17330fi;
17331if test "$enable_largefile" != no; then
17332 wx_largefile=no
17333
17334 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17335echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17336if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17338else
17339
17340 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17341#line $LINENO "configure"
a848cd7e
SC
17342/* confdefs.h. */
17343_ACEOF
17344cat confdefs.h >>conftest.$ac_ext
17345cat >>conftest.$ac_ext <<_ACEOF
17346/* end confdefs.h. */
17347#define _FILE_OFFSET_BITS 64
17348 #include <sys/types.h>
17349int
17350main ()
17351{
17352typedef struct {
17353 unsigned int field: sizeof(off_t) == 8;
17354} wxlf;
17355
17356 ;
17357 return 0;
17358}
17359_ACEOF
17360rm -f conftest.$ac_objext
17361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 17362 (eval $ac_compile) 2>&5
a848cd7e 17363 ac_status=$?
a848cd7e
SC
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
8a7b1113 17366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372 ac_cv_sys_file_offset_bits=64
17373else
17374 echo "$as_me: failed program was:" >&5
17375sed 's/^/| /' conftest.$ac_ext >&5
17376
17377ac_cv_sys_file_offset_bits=no
17378fi
8a7b1113 17379rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17380
17381
17382fi
17383echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17384echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17385
17386 if test "$ac_cv_sys_file_offset_bits" != no; then
17387 wx_largefile=yes
17388 cat >>confdefs.h <<_ACEOF
17389#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17390_ACEOF
17391
17392 fi
17393
17394 if test "x$wx_largefile" != "xyes"; then
17395
17396 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17397echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17398if test "${ac_cv_sys_large_files+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17400else
17401
17402 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17403#line $LINENO "configure"
a848cd7e
SC
17404/* confdefs.h. */
17405_ACEOF
17406cat confdefs.h >>conftest.$ac_ext
17407cat >>conftest.$ac_ext <<_ACEOF
17408/* end confdefs.h. */
17409#define _LARGE_FILES 1
17410 #include <sys/types.h>
17411int
17412main ()
17413{
17414typedef struct {
17415 unsigned int field: sizeof(off_t) == 8;
17416} wxlf;
17417
17418 ;
17419 return 0;
17420}
17421_ACEOF
17422rm -f conftest.$ac_objext
17423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 17424 (eval $ac_compile) 2>&5
a848cd7e 17425 ac_status=$?
a848cd7e
SC
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
8a7b1113 17428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17434 ac_cv_sys_large_files=1
17435else
17436 echo "$as_me: failed program was:" >&5
17437sed 's/^/| /' conftest.$ac_ext >&5
17438
17439ac_cv_sys_large_files=no
17440fi
8a7b1113 17441rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17442
17443
17444fi
17445echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17446echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17447
17448 if test "$ac_cv_sys_large_files" != no; then
17449 wx_largefile=yes
17450 cat >>confdefs.h <<_ACEOF
17451#define _LARGE_FILES $ac_cv_sys_large_files
17452_ACEOF
17453
17454 fi
17455
17456 fi
17457
17458 echo "$as_me:$LINENO: checking if large file support is available" >&5
17459echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
17460 if test "x$wx_largefile" = "xyes"; then
17461 cat >>confdefs.h <<\_ACEOF
17462#define HAVE_LARGEFILE_SUPPORT 1
17463_ACEOF
17464
17465 fi
17466 echo "$as_me:$LINENO: result: $wx_largefile" >&5
17467echo "${ECHO_T}$wx_largefile" >&6
17468fi
17469
17470
17471if test "x$wx_largefile" = "xyes"; then
17472 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
17473 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
17474 else
17475 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
17476 fi
17477 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
17478fi
17479
17480echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17481echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17482if test "${ac_cv_c_bigendian+set}" = set; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17484else
17485 ac_cv_c_bigendian=unknown
17486# See if sys/param.h defines the BYTE_ORDER macro.
17487cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17488#line $LINENO "configure"
a848cd7e
SC
17489/* confdefs.h. */
17490_ACEOF
17491cat confdefs.h >>conftest.$ac_ext
17492cat >>conftest.$ac_ext <<_ACEOF
17493/* end confdefs.h. */
17494#include <sys/types.h>
17495#include <sys/param.h>
17496int
17497main ()
17498{
17499
17500#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17501 bogus endian macros
17502#endif
17503 ;
17504 return 0;
17505}
17506_ACEOF
17507rm -f conftest.$ac_objext
17508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 17509 (eval $ac_compile) 2>&5
a848cd7e 17510 ac_status=$?
a848cd7e
SC
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } &&
8a7b1113 17513 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17516 ac_status=$?
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 # It does; now see whether it defined to BIG_ENDIAN or not.
17520cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17521#line $LINENO "configure"
a848cd7e
SC
17522/* confdefs.h. */
17523_ACEOF
17524cat confdefs.h >>conftest.$ac_ext
17525cat >>conftest.$ac_ext <<_ACEOF
17526/* end confdefs.h. */
17527#include <sys/types.h>
17528#include <sys/param.h>
17529int
17530main ()
17531{
17532
17533#if BYTE_ORDER != BIG_ENDIAN
17534 not big endian
17535#endif
17536 ;
17537 return 0;
17538}
17539_ACEOF
17540rm -f conftest.$ac_objext
17541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 17542 (eval $ac_compile) 2>&5
a848cd7e 17543 ac_status=$?
a848cd7e
SC
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
8a7b1113 17546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17552 ac_cv_c_bigendian=yes
17553else
17554 echo "$as_me: failed program was:" >&5
17555sed 's/^/| /' conftest.$ac_ext >&5
17556
17557ac_cv_c_bigendian=no
17558fi
8a7b1113 17559rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17560else
17561 echo "$as_me: failed program was:" >&5
17562sed 's/^/| /' conftest.$ac_ext >&5
17563
17564fi
8a7b1113 17565rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17566if test $ac_cv_c_bigendian = unknown; then
17567if test "$cross_compiling" = yes; then
17568 ac_cv_c_bigendian=unknown
17569else
17570 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17571#line $LINENO "configure"
a848cd7e
SC
17572/* confdefs.h. */
17573_ACEOF
17574cat confdefs.h >>conftest.$ac_ext
17575cat >>conftest.$ac_ext <<_ACEOF
17576/* end confdefs.h. */
17577main () {
17578 /* Are we little or big endian? From Harbison&Steele. */
17579 union
17580 {
17581 long l;
17582 char c[sizeof (long)];
17583 } u;
17584 u.l = 1;
17585 exit (u.c[sizeof (long) - 1] == 1);
17586}
17587_ACEOF
17588rm -f conftest$ac_exeext
17589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17590 (eval $ac_link) 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 ac_cv_c_bigendian=no
17600else
17601 echo "$as_me: program exited with status $ac_status" >&5
17602echo "$as_me: failed program was:" >&5
17603sed 's/^/| /' conftest.$ac_ext >&5
17604
17605( exit $ac_status )
17606ac_cv_c_bigendian=yes
17607fi
8a7b1113 17608rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17609fi
17610fi
17611fi
17612echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17613echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17614if test $ac_cv_c_bigendian = unknown; then
17615 { 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
17616echo "$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;}
17617fi
17618if test $ac_cv_c_bigendian = yes; then
17619 cat >>confdefs.h <<\_ACEOF
17620#define WORDS_BIGENDIAN 1
17621_ACEOF
17622
17623fi
17624
17625
17626ac_ext=cc
17627ac_cpp='$CXXCPP $CPPFLAGS'
17628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17631echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17632echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
17633if test -z "$CXXCPP"; then
17634 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636else
17637 # Double quotes because CXXCPP needs to be expanded
17638 for CXXCPP in "$CXX -E" "/lib/cpp"
17639 do
17640 ac_preproc_ok=false
17641for ac_cxx_preproc_warn_flag in '' yes
17642do
17643 # Use a header file that comes with gcc, so configuring glibc
17644 # with a fresh cross-compiler works.
17645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17646 # <limits.h> exists even on freestanding compilers.
17647 # On the NeXT, cc -E runs the code through the compiler's parser,
17648 # not just through cpp. "Syntax error" is here to catch this case.
17649 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17650#line $LINENO "configure"
a848cd7e
SC
17651/* confdefs.h. */
17652_ACEOF
17653cat confdefs.h >>conftest.$ac_ext
17654cat >>conftest.$ac_ext <<_ACEOF
17655/* end confdefs.h. */
17656#ifdef __STDC__
17657# include <limits.h>
17658#else
17659# include <assert.h>
17660#endif
8a7b1113 17661 Syntax error
a848cd7e
SC
17662_ACEOF
17663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17665 ac_status=$?
17666 grep -v '^ *+' conftest.er1 >conftest.err
17667 rm -f conftest.er1
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } >/dev/null; then
17671 if test -s conftest.err; then
17672 ac_cpp_err=$ac_cxx_preproc_warn_flag
a848cd7e
SC
17673 else
17674 ac_cpp_err=
17675 fi
17676else
17677 ac_cpp_err=yes
17678fi
17679if test -z "$ac_cpp_err"; then
17680 :
17681else
17682 echo "$as_me: failed program was:" >&5
17683sed 's/^/| /' conftest.$ac_ext >&5
17684
17685 # Broken: fails on valid input.
17686continue
17687fi
17688rm -f conftest.err conftest.$ac_ext
17689
17690 # OK, works on sane cases. Now check whether non-existent headers
17691 # can be detected and how.
17692 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17693#line $LINENO "configure"
a848cd7e
SC
17694/* confdefs.h. */
17695_ACEOF
17696cat confdefs.h >>conftest.$ac_ext
17697cat >>conftest.$ac_ext <<_ACEOF
17698/* end confdefs.h. */
17699#include <ac_nonexistent.h>
17700_ACEOF
17701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17703 ac_status=$?
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } >/dev/null; then
17709 if test -s conftest.err; then
17710 ac_cpp_err=$ac_cxx_preproc_warn_flag
a848cd7e
SC
17711 else
17712 ac_cpp_err=
17713 fi
17714else
17715 ac_cpp_err=yes
17716fi
17717if test -z "$ac_cpp_err"; then
17718 # Broken: success on invalid input.
17719continue
17720else
17721 echo "$as_me: failed program was:" >&5
17722sed 's/^/| /' conftest.$ac_ext >&5
17723
17724 # Passes both tests.
17725ac_preproc_ok=:
17726break
17727fi
17728rm -f conftest.err conftest.$ac_ext
17729
17730done
17731# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17732rm -f conftest.err conftest.$ac_ext
17733if $ac_preproc_ok; then
17734 break
17735fi
17736
17737 done
17738 ac_cv_prog_CXXCPP=$CXXCPP
17739
17740fi
17741 CXXCPP=$ac_cv_prog_CXXCPP
17742else
17743 ac_cv_prog_CXXCPP=$CXXCPP
17744fi
17745echo "$as_me:$LINENO: result: $CXXCPP" >&5
17746echo "${ECHO_T}$CXXCPP" >&6
17747ac_preproc_ok=false
17748for ac_cxx_preproc_warn_flag in '' yes
17749do
17750 # Use a header file that comes with gcc, so configuring glibc
17751 # with a fresh cross-compiler works.
17752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17753 # <limits.h> exists even on freestanding compilers.
17754 # On the NeXT, cc -E runs the code through the compiler's parser,
17755 # not just through cpp. "Syntax error" is here to catch this case.
17756 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17757#line $LINENO "configure"
a848cd7e
SC
17758/* confdefs.h. */
17759_ACEOF
17760cat confdefs.h >>conftest.$ac_ext
17761cat >>conftest.$ac_ext <<_ACEOF
17762/* end confdefs.h. */
17763#ifdef __STDC__
17764# include <limits.h>
17765#else
17766# include <assert.h>
17767#endif
8a7b1113 17768 Syntax error
a848cd7e
SC
17769_ACEOF
17770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17772 ac_status=$?
17773 grep -v '^ *+' conftest.er1 >conftest.err
17774 rm -f conftest.er1
17775 cat conftest.err >&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } >/dev/null; then
17778 if test -s conftest.err; then
17779 ac_cpp_err=$ac_cxx_preproc_warn_flag
a848cd7e
SC
17780 else
17781 ac_cpp_err=
17782 fi
17783else
17784 ac_cpp_err=yes
17785fi
17786if test -z "$ac_cpp_err"; then
17787 :
17788else
17789 echo "$as_me: failed program was:" >&5
17790sed 's/^/| /' conftest.$ac_ext >&5
17791
17792 # Broken: fails on valid input.
17793continue
17794fi
17795rm -f conftest.err conftest.$ac_ext
17796
17797 # OK, works on sane cases. Now check whether non-existent headers
17798 # can be detected and how.
17799 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17800#line $LINENO "configure"
a848cd7e
SC
17801/* confdefs.h. */
17802_ACEOF
17803cat confdefs.h >>conftest.$ac_ext
17804cat >>conftest.$ac_ext <<_ACEOF
17805/* end confdefs.h. */
17806#include <ac_nonexistent.h>
17807_ACEOF
17808if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17810 ac_status=$?
17811 grep -v '^ *+' conftest.er1 >conftest.err
17812 rm -f conftest.er1
17813 cat conftest.err >&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } >/dev/null; then
17816 if test -s conftest.err; then
17817 ac_cpp_err=$ac_cxx_preproc_warn_flag
a848cd7e
SC
17818 else
17819 ac_cpp_err=
17820 fi
17821else
17822 ac_cpp_err=yes
17823fi
17824if test -z "$ac_cpp_err"; then
17825 # Broken: success on invalid input.
17826continue
17827else
17828 echo "$as_me: failed program was:" >&5
17829sed 's/^/| /' conftest.$ac_ext >&5
17830
17831 # Passes both tests.
17832ac_preproc_ok=:
17833break
17834fi
17835rm -f conftest.err conftest.$ac_ext
17836
17837done
17838# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17839rm -f conftest.err conftest.$ac_ext
17840if $ac_preproc_ok; then
17841 :
17842else
17843 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17844See \`config.log' for more details." >&5
17845echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17846See \`config.log' for more details." >&2;}
17847 { (exit 1); exit 1; }; }
17848fi
17849
17850ac_ext=cc
17851ac_cpp='$CXXCPP $CPPFLAGS'
17852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17855
17856
17857
17858
17859
17860 ac_ext=cc
17861ac_cpp='$CXXCPP $CPPFLAGS'
17862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17865
17866
17867
17868for ac_header in iostream
17869do
17870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17871if eval "test \"\${$as_ac_Header+set}\" = set"; then
17872 echo "$as_me:$LINENO: checking for $ac_header" >&5
17873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17874if eval "test \"\${$as_ac_Header+set}\" = set"; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17876fi
17877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17878echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17879else
17880 # Is the header compilable?
17881echo "$as_me:$LINENO: checking $ac_header usability" >&5
17882echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17883cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17884#line $LINENO "configure"
a848cd7e
SC
17885/* confdefs.h. */
17886_ACEOF
17887cat confdefs.h >>conftest.$ac_ext
17888cat >>conftest.$ac_ext <<_ACEOF
17889/* end confdefs.h. */
17890$ac_includes_default
17891#include <$ac_header>
17892_ACEOF
17893rm -f conftest.$ac_objext
17894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 17895 (eval $ac_compile) 2>&5
a848cd7e 17896 ac_status=$?
a848cd7e
SC
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
8a7b1113 17899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
17905 ac_header_compiler=yes
17906else
17907 echo "$as_me: failed program was:" >&5
17908sed 's/^/| /' conftest.$ac_ext >&5
17909
17910ac_header_compiler=no
17911fi
8a7b1113 17912rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17913echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17914echo "${ECHO_T}$ac_header_compiler" >&6
17915
17916# Is the header present?
17917echo "$as_me:$LINENO: checking $ac_header presence" >&5
17918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17919cat >conftest.$ac_ext <<_ACEOF
8a7b1113 17920#line $LINENO "configure"
a848cd7e
SC
17921/* confdefs.h. */
17922_ACEOF
17923cat confdefs.h >>conftest.$ac_ext
17924cat >>conftest.$ac_ext <<_ACEOF
17925/* end confdefs.h. */
17926#include <$ac_header>
17927_ACEOF
17928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17930 ac_status=$?
17931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } >/dev/null; then
17936 if test -s conftest.err; then
17937 ac_cpp_err=$ac_cxx_preproc_warn_flag
a848cd7e
SC
17938 else
17939 ac_cpp_err=
17940 fi
17941else
17942 ac_cpp_err=yes
17943fi
17944if test -z "$ac_cpp_err"; then
17945 ac_header_preproc=yes
17946else
17947 echo "$as_me: failed program was:" >&5
17948sed 's/^/| /' conftest.$ac_ext >&5
17949
17950 ac_header_preproc=no
17951fi
17952rm -f conftest.err conftest.$ac_ext
17953echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17954echo "${ECHO_T}$ac_header_preproc" >&6
17955
17956# So? What about this header?
8a7b1113
VZ
17957case $ac_header_compiler:$ac_header_preproc in
17958 yes:no )
a848cd7e
SC
17959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17960echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
17961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17962echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17963 (
17964 cat <<\_ASBOX
17965## ------------------------------------ ##
17966## Report this to bug-autoconf@gnu.org. ##
17967## ------------------------------------ ##
17968_ASBOX
17969 ) |
17970 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 17971 ;;
8a7b1113 17972 no:yes )
a848cd7e
SC
17973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17974echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
17975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17976echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
17977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17978echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
17979 (
17980 cat <<\_ASBOX
8a7b1113
VZ
17981## ------------------------------------ ##
17982## Report this to bug-autoconf@gnu.org. ##
17983## ------------------------------------ ##
a848cd7e
SC
17984_ASBOX
17985 ) |
17986 sed "s/^/$as_me: WARNING: /" >&2
17987 ;;
17988esac
17989echo "$as_me:$LINENO: checking for $ac_header" >&5
17990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17991if eval "test \"\${$as_ac_Header+set}\" = set"; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17993else
8a7b1113 17994 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
17995fi
17996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17998
17999fi
18000if test `eval echo '${'$as_ac_Header'}'` = yes; then
18001 cat >>confdefs.h <<_ACEOF
18002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18003_ACEOF
18004
18005fi
18006
18007done
18008
18009
18010 if test "$ac_cv_header_iostream" = "yes" ; then
18011 :
18012 else
18013 cat >>confdefs.h <<\_ACEOF
18014#define wxUSE_IOSTREAMH 1
18015_ACEOF
18016
18017 fi
18018
18019 ac_ext=c
18020ac_cpp='$CPP $CPPFLAGS'
18021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18023ac_compiler_gnu=$ac_cv_c_compiler_gnu
18024
18025
18026
18027
18028 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18029echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18030if test "${wx_cv_cpp_bool+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18032else
18033
18034
18035
18036 ac_ext=cc
18037ac_cpp='$CXXCPP $CPPFLAGS'
18038ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18039ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18040ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18041
18042
18043 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 18044#line $LINENO "configure"
a848cd7e
SC
18045/* confdefs.h. */
18046_ACEOF
18047cat confdefs.h >>conftest.$ac_ext
18048cat >>conftest.$ac_ext <<_ACEOF
18049/* end confdefs.h. */
18050
18051
18052int
18053main ()
18054{
18055
18056 bool b = true;
18057
18058 return 0;
18059
18060 ;
18061 return 0;
18062}
18063_ACEOF
18064rm -f conftest.$ac_objext
18065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 18066 (eval $ac_compile) 2>&5
a848cd7e 18067 ac_status=$?
a848cd7e
SC
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
8a7b1113 18070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18076
18077 wx_cv_cpp_bool=yes
18078
18079else
18080 echo "$as_me: failed program was:" >&5
18081sed 's/^/| /' conftest.$ac_ext >&5
18082
18083
18084 wx_cv_cpp_bool=no
18085
18086
18087fi
8a7b1113 18088rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18089
18090 ac_ext=c
18091ac_cpp='$CPP $CPPFLAGS'
18092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18094ac_compiler_gnu=$ac_cv_c_compiler_gnu
18095
18096
18097fi
18098echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18099echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18100
18101 if test "$wx_cv_cpp_bool" = "yes"; then
18102 cat >>confdefs.h <<\_ACEOF
18103#define HAVE_BOOL 1
18104_ACEOF
18105
18106 fi
18107
18108
18109
18110 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18111echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18112if test "${wx_cv_explicit+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18114else
18115
18116
18117
18118 ac_ext=cc
18119ac_cpp='$CXXCPP $CPPFLAGS'
18120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18123
18124
18125 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 18126#line $LINENO "configure"
a848cd7e
SC
18127/* confdefs.h. */
18128_ACEOF
18129cat confdefs.h >>conftest.$ac_ext
18130cat >>conftest.$ac_ext <<_ACEOF
18131/* end confdefs.h. */
18132
18133 class Foo { public: explicit Foo(int) {} };
18134
18135int
18136main ()
18137{
18138
18139 return 0;
18140
18141 ;
18142 return 0;
18143}
18144_ACEOF
18145rm -f conftest.$ac_objext
18146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 18147 (eval $ac_compile) 2>&5
a848cd7e 18148 ac_status=$?
a848cd7e
SC
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } &&
8a7b1113 18151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; }; then
18157
18158 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 18159#line $LINENO "configure"
a848cd7e
SC
18160/* confdefs.h. */
18161_ACEOF
18162cat confdefs.h >>conftest.$ac_ext
18163cat >>conftest.$ac_ext <<_ACEOF
18164/* end confdefs.h. */
18165
18166 class Foo { public: explicit Foo(int) {} };
18167 static void TakeFoo(const Foo& foo) { }
18168
18169int
18170main ()
18171{
18172
18173 TakeFoo(17);
18174 return 0;
18175
18176 ;
18177 return 0;
18178}
18179_ACEOF
18180rm -f conftest.$ac_objext
18181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 18182 (eval $ac_compile) 2>&5
a848cd7e 18183 ac_status=$?
a848cd7e
SC
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } &&
8a7b1113 18186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 wx_cv_explicit=no
18193else
18194 echo "$as_me: failed program was:" >&5
18195sed 's/^/| /' conftest.$ac_ext >&5
18196
18197wx_cv_explicit=yes
18198
18199fi
8a7b1113 18200rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18201
18202else
18203 echo "$as_me: failed program was:" >&5
18204sed 's/^/| /' conftest.$ac_ext >&5
18205
18206wx_cv_explicit=no
18207
18208fi
8a7b1113 18209rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18210
18211 ac_ext=c
18212ac_cpp='$CPP $CPPFLAGS'
18213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18215ac_compiler_gnu=$ac_cv_c_compiler_gnu
18216
18217
18218fi
18219echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18220echo "${ECHO_T}$wx_cv_explicit" >&6
18221
18222 if test "$wx_cv_explicit" = "yes"; then
18223 cat >>confdefs.h <<\_ACEOF
18224#define HAVE_EXPLICIT 1
18225_ACEOF
18226
18227 fi
18228
18229
18230echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18231echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18232if test "${ac_cv_cxx_const_cast+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234else
18235
18236
18237 ac_ext=cc
18238ac_cpp='$CXXCPP $CPPFLAGS'
18239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18242
18243 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 18244#line $LINENO "configure"
a848cd7e
SC
18245/* confdefs.h. */
18246_ACEOF
18247cat confdefs.h >>conftest.$ac_ext
18248cat >>conftest.$ac_ext <<_ACEOF
18249/* end confdefs.h. */
18250
18251int
18252main ()
18253{
18254int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
18255 ;
18256 return 0;
18257}
18258_ACEOF
18259rm -f conftest.$ac_objext
18260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 18261 (eval $ac_compile) 2>&5
a848cd7e 18262 ac_status=$?
a848cd7e
SC
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); } &&
8a7b1113 18265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18271 ac_cv_cxx_const_cast=yes
18272else
18273 echo "$as_me: failed program was:" >&5
18274sed 's/^/| /' conftest.$ac_ext >&5
18275
18276ac_cv_cxx_const_cast=no
18277fi
8a7b1113 18278rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18279 ac_ext=c
18280ac_cpp='$CPP $CPPFLAGS'
18281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18283ac_compiler_gnu=$ac_cv_c_compiler_gnu
18284
18285
18286fi
18287echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18288echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
18289if test "$ac_cv_cxx_const_cast" = yes; then
18290
18291cat >>confdefs.h <<\_ACEOF
18292#define HAVE_CONST_CAST
18293_ACEOF
18294
18295fi
18296
18297echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
18298echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
18299if test "${ac_cv_cxx_static_cast+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18301else
18302
18303
18304 ac_ext=cc
18305ac_cpp='$CXXCPP $CPPFLAGS'
18306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18309
18310 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 18311#line $LINENO "configure"
a848cd7e
SC
18312/* confdefs.h. */
18313_ACEOF
18314cat confdefs.h >>conftest.$ac_ext
18315cat >>conftest.$ac_ext <<_ACEOF
18316/* end confdefs.h. */
18317#include <typeinfo>
18318class Base { public : Base () {} virtual void f () = 0; };
18319class Derived : public Base { public : Derived () {} virtual void f () {} };
18320int g (Derived&) { return 0; }
18321int
18322main ()
18323{
18324
18325Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
18326 ;
18327 return 0;
18328}
18329_ACEOF
18330rm -f conftest.$ac_objext
18331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 18332 (eval $ac_compile) 2>&5
a848cd7e 18333 ac_status=$?
a848cd7e
SC
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
8a7b1113 18336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18339 ac_status=$?
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; }; then
18342 ac_cv_cxx_static_cast=yes
18343else
18344 echo "$as_me: failed program was:" >&5
18345sed 's/^/| /' conftest.$ac_ext >&5
18346
18347ac_cv_cxx_static_cast=no
18348fi
8a7b1113 18349rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18350 ac_ext=c
18351ac_cpp='$CPP $CPPFLAGS'
18352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18354ac_compiler_gnu=$ac_cv_c_compiler_gnu
18355
18356
18357fi
18358echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
18359echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
18360if test "$ac_cv_cxx_static_cast" = yes; then
18361
18362cat >>confdefs.h <<\_ACEOF
18363#define HAVE_STATIC_CAST
18364_ACEOF
18365
18366fi
18367
18368
18369if test "$wxUSE_STL" = "yes"; then
18370 ac_ext=cc
18371ac_cpp='$CXXCPP $CPPFLAGS'
18372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18375
18376
18377 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
18378echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
18379 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 18380#line $LINENO "configure"
a848cd7e
SC
18381/* confdefs.h. */
18382_ACEOF
18383cat confdefs.h >>conftest.$ac_ext
18384cat >>conftest.$ac_ext <<_ACEOF
18385/* end confdefs.h. */
18386#include <string>
18387 #include <functional>
18388 #include <algorithm>
18389 #include <vector>
18390 #include <list>
18391int
18392main ()
18393{
18394std::vector<int> moo;
18395 std::list<int> foo;
18396 std::vector<int>::iterator it =
18397 std::find_if(moo.begin(), moo.end(),
18398 std::bind2nd(std::less<int>(), 3));
18399 ;
18400 return 0;
18401}
18402_ACEOF
18403rm -f conftest.$ac_objext
18404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 18405 (eval $ac_compile) 2>&5
a848cd7e 18406 ac_status=$?
a848cd7e
SC
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
8a7b1113 18409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; }; then
18415 echo "$as_me:$LINENO: result: yes" >&5
18416echo "${ECHO_T}yes" >&6
18417else
18418 echo "$as_me: failed program was:" >&5
18419sed 's/^/| /' conftest.$ac_ext >&5
18420
18421echo "$as_me:$LINENO: result: no" >&5
18422echo "${ECHO_T}no" >&6
18423 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
18424echo "$as_me: error: Basic STL functionality missing" >&2;}
18425 { (exit 1); exit 1; }; }
18426fi
8a7b1113 18427rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18428
18429 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
18430echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
18431 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 18432#line $LINENO "configure"
a848cd7e
SC
18433/* confdefs.h. */
18434_ACEOF
18435cat confdefs.h >>conftest.$ac_ext
18436cat >>conftest.$ac_ext <<_ACEOF
18437/* end confdefs.h. */
18438#include <string>
18439int
18440main ()
18441{
18442std::wstring foo;
18443 ;
18444 return 0;
18445}
18446_ACEOF
18447rm -f conftest.$ac_objext
18448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 18449 (eval $ac_compile) 2>&5
a848cd7e 18450 ac_status=$?
a848cd7e
SC
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
8a7b1113 18453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 echo "$as_me:$LINENO: result: yes" >&5
18460echo "${ECHO_T}yes" >&6
18461 cat >>confdefs.h <<\_ACEOF
18462#define HAVE_STD_WSTRING 1
18463_ACEOF
18464
18465else
18466 echo "$as_me: failed program was:" >&5
18467sed 's/^/| /' conftest.$ac_ext >&5
18468
18469echo "$as_me:$LINENO: result: no" >&5
18470echo "${ECHO_T}no" >&6
18471fi
8a7b1113 18472rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18473
18474 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
18475echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
18476 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 18477#line $LINENO "configure"
a848cd7e
SC
18478/* confdefs.h. */
18479_ACEOF
18480cat confdefs.h >>conftest.$ac_ext
18481cat >>conftest.$ac_ext <<_ACEOF
18482/* end confdefs.h. */
18483#include <string>
18484int
18485main ()
18486{
18487std::string foo, bar;
18488 foo.compare(bar);
18489 foo.compare(1, 1, bar);
18490 foo.compare(1, 1, bar, 1, 1);
18491 foo.compare("");
18492 foo.compare(1, 1, "");
18493 foo.compare(1, 1, "", 2);
18494 ;
18495 return 0;
18496}
18497_ACEOF
18498rm -f conftest.$ac_objext
18499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 18500 (eval $ac_compile) 2>&5
a848cd7e 18501 ac_status=$?
a848cd7e
SC
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); } &&
8a7b1113 18504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18507 ac_status=$?
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; }; then
18510 echo "$as_me:$LINENO: result: yes" >&5
18511echo "${ECHO_T}yes" >&6
18512 cat >>confdefs.h <<\_ACEOF
18513#define HAVE_STD_STRING_COMPARE 1
18514_ACEOF
18515
18516else
18517 echo "$as_me: failed program was:" >&5
18518sed 's/^/| /' conftest.$ac_ext >&5
18519
18520echo "$as_me:$LINENO: result: no" >&5
18521echo "${ECHO_T}no" >&6
18522fi
8a7b1113 18523rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18524
18525 ac_ext=c
18526ac_cpp='$CPP $CPPFLAGS'
18527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18529ac_compiler_gnu=$ac_cv_c_compiler_gnu
18530
18531fi
18532
18533
18534SEARCH_INCLUDE="\
18535 /usr/local/include \
18536 \
18537 /usr/Motif-2.1/include \
18538 /usr/Motif-1.2/include \
18539 /usr/include/Motif1.2 \
18540 /opt/xpm/include/X11 \
18541 /opt/GBxpm/include/ \
18542 /opt/GBxpm/X11/include/ \
18543 \
18544 /usr/dt/include \
18545 /usr/openwin/include \
18546 \
18547 /usr/include/Xm \
18548 \
18549 /usr/X11R6/include \
18550 /usr/X11R6.4/include \
18551 /usr/X11R5/include \
18552 /usr/X11R4/include \
18553 \
18554 /usr/include/X11R6 \
18555 /usr/include/X11R5 \
18556 /usr/include/X11R4 \
18557 \
18558 /usr/local/X11R6/include \
18559 /usr/local/X11R5/include \
18560 /usr/local/X11R4/include \
18561 \
18562 /usr/local/include/X11R6 \
18563 /usr/local/include/X11R5 \
18564 /usr/local/include/X11R4 \
18565 \
18566 /usr/X11/include \
18567 /usr/include/X11 \
18568 /usr/local/X11/include \
18569 /usr/local/include/X11 \
18570 \
18571 /usr/X386/include \
18572 /usr/x386/include \
18573 /usr/XFree86/include/X11 \
18574 \
18575 X:/XFree86/include \
18576 X:/XFree86/include/X11 \
18577 \
18578 /usr/include/gtk \
18579 /usr/local/include/gtk \
18580 /usr/include/glib \
18581 /usr/local/include/glib \
18582 \
18583 /usr/include/qt \
18584 /usr/local/include/qt \
18585 \
18586 /usr/local/arm/3.3.2/include \
18587 \
18588 /usr/include/windows \
18589 /usr/include/wine \
18590 /usr/local/include/wine \
18591 \
18592 /usr/unsupported/include \
18593 /usr/athena/include \
18594 /usr/local/x11r5/include \
18595 /usr/lpp/Xamples/include \
18596 \
18597 /usr/openwin/share/include"
18598
18599SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
18600
18601
18602cat >confcache <<\_ACEOF
18603# This file is a shell script that caches the results of configure
18604# tests run on this system so they can be shared between configure
18605# scripts and configure runs, see configure's option --config-cache.
18606# It is not useful on other systems. If it contains results you don't
18607# want to keep, you may remove or edit it.
18608#
18609# config.status only pays attention to the cache file if you give it
18610# the --recheck option to rerun configure.
18611#
18612# `ac_cv_env_foo' variables (set or unset) will be overridden when
18613# loading this file, other *unset* `ac_cv_foo' will be assigned the
18614# following values.
18615
18616_ACEOF
18617
18618# The following way of writing the cache mishandles newlines in values,
18619# but we know of no workaround that is simple, portable, and efficient.
18620# So, don't put newlines in cache variables' values.
18621# Ultrix sh set writes to stderr and can't be redirected directly,
18622# and sets the high bit in the cache file unless we assign to the vars.
18623{
18624 (set) 2>&1 |
18625 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18626 *ac_space=\ *)
18627 # `set' does not quote correctly, so add quotes (double-quote
18628 # substitution turns \\\\ into \\, and sed turns \\ into \).
18629 sed -n \
8a7b1113
VZ
18630 "s/'/'\\\\''/g;
18631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
18632 ;;
18633 *)
18634 # `set' quotes correctly as required by POSIX, so do not add quotes.
18635 sed -n \
8a7b1113 18636 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
18637 ;;
18638 esac;
18639} |
18640 sed '
18641 t clear
18642 : clear
18643 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18644 t end
18645 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18646 : end' >>confcache
18647if diff $cache_file confcache >/dev/null 2>&1; then :; else
18648 if test -w $cache_file; then
18649 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18650 cat confcache >$cache_file
18651 else
18652 echo "not updating unwritable cache $cache_file"
18653 fi
18654fi
18655rm -f confcache
18656
18657if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
18658 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18659echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18660if test "${wx_cv_lib_glibc21+set}" = set; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18662else
18663
18664 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 18665#line $LINENO "configure"
a848cd7e
SC
18666/* confdefs.h. */
18667_ACEOF
18668cat confdefs.h >>conftest.$ac_ext
18669cat >>conftest.$ac_ext <<_ACEOF
18670/* end confdefs.h. */
18671#include <features.h>
18672int
18673main ()
18674{
18675
18676 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18677 #error not glibc2.1
18678 #endif
18679
18680 ;
18681 return 0;
18682}
18683_ACEOF
18684rm -f conftest.$ac_objext
18685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 18686 (eval $ac_compile) 2>&5
a848cd7e 18687 ac_status=$?
a848cd7e
SC
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
8a7b1113 18690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18693 ac_status=$?
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; }; then
18696
18697 wx_cv_lib_glibc21=yes
18698
18699else
18700 echo "$as_me: failed program was:" >&5
18701sed 's/^/| /' conftest.$ac_ext >&5
18702
18703
18704 wx_cv_lib_glibc21=no
18705
18706
18707fi
8a7b1113 18708rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18709
18710fi
18711echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18712echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
18713 if test "$wx_cv_lib_glibc21" = "yes"; then
18714 cat >>confdefs.h <<\_ACEOF
18715#define wxHAVE_GLIBC2 1
18716_ACEOF
18717
18718 fi
18719fi
18720
18721if test "x$wx_cv_lib_glibc21" = "xyes"; then
18722 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
18723 cat >>confdefs.h <<\_ACEOF
18724#define _GNU_SOURCE 1
18725_ACEOF
18726
18727 fi
18728fi
18729
18730
18731
18732if test "$wxUSE_REGEX" != "no"; then
18733 cat >>confdefs.h <<\_ACEOF
18734#define wxUSE_REGEX 1
18735_ACEOF
18736
18737
18738 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
18739 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
18740echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
18741 wxUSE_REGEX=builtin
18742 fi
18743
18744 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
18745 if test "${ac_cv_header_regex_h+set}" = set; then
18746 echo "$as_me:$LINENO: checking for regex.h" >&5
18747echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18748if test "${ac_cv_header_regex_h+set}" = set; then
18749 echo $ECHO_N "(cached) $ECHO_C" >&6
18750fi
18751echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18752echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18753else
18754 # Is the header compilable?
18755echo "$as_me:$LINENO: checking regex.h usability" >&5
18756echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18757cat >conftest.$ac_ext <<_ACEOF
8a7b1113 18758#line $LINENO "configure"
a848cd7e
SC
18759/* confdefs.h. */
18760_ACEOF
18761cat confdefs.h >>conftest.$ac_ext
18762cat >>conftest.$ac_ext <<_ACEOF
18763/* end confdefs.h. */
18764$ac_includes_default
18765#include <regex.h>
18766_ACEOF
18767rm -f conftest.$ac_objext
18768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 18769 (eval $ac_compile) 2>&5
a848cd7e 18770 ac_status=$?
a848cd7e
SC
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
8a7b1113 18773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779 ac_header_compiler=yes
18780else
18781 echo "$as_me: failed program was:" >&5
18782sed 's/^/| /' conftest.$ac_ext >&5
18783
18784ac_header_compiler=no
18785fi
8a7b1113 18786rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18788echo "${ECHO_T}$ac_header_compiler" >&6
18789
18790# Is the header present?
18791echo "$as_me:$LINENO: checking regex.h presence" >&5
18792echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18793cat >conftest.$ac_ext <<_ACEOF
8a7b1113 18794#line $LINENO "configure"
a848cd7e
SC
18795/* confdefs.h. */
18796_ACEOF
18797cat confdefs.h >>conftest.$ac_ext
18798cat >>conftest.$ac_ext <<_ACEOF
18799/* end confdefs.h. */
18800#include <regex.h>
18801_ACEOF
18802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18804 ac_status=$?
18805 grep -v '^ *+' conftest.er1 >conftest.err
18806 rm -f conftest.er1
18807 cat conftest.err >&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } >/dev/null; then
18810 if test -s conftest.err; then
18811 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
18812 else
18813 ac_cpp_err=
18814 fi
18815else
18816 ac_cpp_err=yes
18817fi
18818if test -z "$ac_cpp_err"; then
18819 ac_header_preproc=yes
18820else
18821 echo "$as_me: failed program was:" >&5
18822sed 's/^/| /' conftest.$ac_ext >&5
18823
18824 ac_header_preproc=no
18825fi
18826rm -f conftest.err conftest.$ac_ext
18827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18828echo "${ECHO_T}$ac_header_preproc" >&6
18829
18830# So? What about this header?
8a7b1113
VZ
18831case $ac_header_compiler:$ac_header_preproc in
18832 yes:no )
a848cd7e
SC
18833 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18834echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
18835 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18836echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18837 (
18838 cat <<\_ASBOX
18839## ------------------------------------ ##
18840## Report this to bug-autoconf@gnu.org. ##
18841## ------------------------------------ ##
18842_ASBOX
18843 ) |
18844 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 18845 ;;
8a7b1113 18846 no:yes )
a848cd7e
SC
18847 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18848echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
8a7b1113
VZ
18849 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18850echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
18851 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18852echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
18853 (
18854 cat <<\_ASBOX
8a7b1113
VZ
18855## ------------------------------------ ##
18856## Report this to bug-autoconf@gnu.org. ##
18857## ------------------------------------ ##
a848cd7e
SC
18858_ASBOX
18859 ) |
18860 sed "s/^/$as_me: WARNING: /" >&2
18861 ;;
18862esac
18863echo "$as_me:$LINENO: checking for regex.h" >&5
18864echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18865if test "${ac_cv_header_regex_h+set}" = set; then
18866 echo $ECHO_N "(cached) $ECHO_C" >&6
18867else
18868 ac_cv_header_regex_h=$ac_header_preproc
18869fi
18870echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18871echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18872
18873fi
18874if test $ac_cv_header_regex_h = yes; then
18875
18876for ac_func in regcomp
18877do
18878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18879echo "$as_me:$LINENO: checking for $ac_func" >&5
18880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18881if eval "test \"\${$as_ac_var+set}\" = set"; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18883else
18884 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 18885#line $LINENO "configure"
a848cd7e
SC
18886/* confdefs.h. */
18887_ACEOF
18888cat confdefs.h >>conftest.$ac_ext
18889cat >>conftest.$ac_ext <<_ACEOF
18890/* end confdefs.h. */
a848cd7e
SC
18891/* System header to define __stub macros and hopefully few prototypes,
18892 which can conflict with char $ac_func (); below.
18893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18894 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
18895#ifdef __STDC__
18896# include <limits.h>
18897#else
18898# include <assert.h>
18899#endif
a848cd7e
SC
18900/* Override any gcc2 internal prototype to avoid an error. */
18901#ifdef __cplusplus
18902extern "C"
18903{
18904#endif
18905/* We use char because int might match the return type of a gcc2
18906 builtin and then its argument prototype would still apply. */
18907char $ac_func ();
18908/* The GNU C library defines this for functions which it implements
18909 to always fail with ENOSYS. Some functions are actually named
18910 something starting with __ and the normal name is an alias. */
18911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18912choke me
18913#else
18914char (*f) () = $ac_func;
18915#endif
18916#ifdef __cplusplus
18917}
18918#endif
18919
18920int
18921main ()
18922{
18923return f != $ac_func;
18924 ;
18925 return 0;
18926}
18927_ACEOF
18928rm -f conftest.$ac_objext conftest$ac_exeext
18929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 18930 (eval $ac_link) 2>&5
a848cd7e 18931 ac_status=$?
a848cd7e
SC
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
8a7b1113 18934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; }; then
18940 eval "$as_ac_var=yes"
18941else
18942 echo "$as_me: failed program was:" >&5
18943sed 's/^/| /' conftest.$ac_ext >&5
18944
18945eval "$as_ac_var=no"
18946fi
8a7b1113 18947rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
18948fi
18949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18950echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18951if test `eval echo '${'$as_ac_var'}'` = yes; then
18952 cat >>confdefs.h <<_ACEOF
18953#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18954_ACEOF
18955
18956fi
18957done
18958
18959fi
18960
18961
18962
18963 if test "x$ac_cv_func_regcomp" != "xyes"; then
18964 if test "$wxUSE_REGEX" = "sys" ; then
18965 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18966echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18967 { (exit 1); exit 1; }; }
18968 else
18969 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18970echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
18971 wxUSE_REGEX=builtin
18972 fi
18973 else
18974 wxUSE_REGEX=sys
18975 cat >>confdefs.h <<\_ACEOF
18976#define WX_NO_REGEX_ADVANCED 1
18977_ACEOF
18978
18979 fi
18980 fi
18981fi
18982
18983
18984ZLIB_LINK=
18985if test "$wxUSE_ZLIB" != "no" ; then
18986 cat >>confdefs.h <<\_ACEOF
18987#define wxUSE_ZLIB 1
18988_ACEOF
18989
18990
18991 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
18992 if test "$USE_DARWIN" = 1; then
18993 system_zlib_h_ok="yes"
18994 else
18995 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18996echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18997if test "${ac_cv_header_zlib_h+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
18999else
19000 if test "$cross_compiling" = yes; then
19001 unset ac_cv_header_zlib_h
19002
19003else
19004 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19005#line $LINENO "configure"
a848cd7e
SC
19006/* confdefs.h. */
19007_ACEOF
19008cat confdefs.h >>conftest.$ac_ext
19009cat >>conftest.$ac_ext <<_ACEOF
19010/* end confdefs.h. */
19011
19012 #include <zlib.h>
19013 #include <stdio.h>
19014
19015 int main()
19016 {
19017 FILE *f=fopen("conftestval", "w");
19018 if (!f) exit(1);
19019 fprintf(f, "%s",
19020 ZLIB_VERSION[0] == '1' &&
19021 (ZLIB_VERSION[2] > '1' ||
19022 (ZLIB_VERSION[2] == '1' &&
19023 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19024 exit(0);
19025 }
19026
19027_ACEOF
19028rm -f conftest$ac_exeext
19029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19030 (eval $ac_link) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 ac_cv_header_zlib_h=`cat conftestval`
19040else
19041 echo "$as_me: program exited with status $ac_status" >&5
19042echo "$as_me: failed program was:" >&5
19043sed 's/^/| /' conftest.$ac_ext >&5
19044
19045( exit $ac_status )
19046ac_cv_header_zlib_h=no
19047fi
8a7b1113 19048rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19049fi
19050
19051fi
19052echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19053echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19054 if test "${ac_cv_header_zlib_h+set}" = set; then
19055 echo "$as_me:$LINENO: checking for zlib.h" >&5
19056echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19057if test "${ac_cv_header_zlib_h+set}" = set; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19059fi
19060echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19061echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19062else
19063 # Is the header compilable?
19064echo "$as_me:$LINENO: checking zlib.h usability" >&5
19065echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19066cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19067#line $LINENO "configure"
a848cd7e
SC
19068/* confdefs.h. */
19069_ACEOF
19070cat confdefs.h >>conftest.$ac_ext
19071cat >>conftest.$ac_ext <<_ACEOF
19072/* end confdefs.h. */
19073$ac_includes_default
19074#include <zlib.h>
19075_ACEOF
19076rm -f conftest.$ac_objext
19077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 19078 (eval $ac_compile) 2>&5
a848cd7e 19079 ac_status=$?
a848cd7e
SC
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
8a7b1113 19082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
19088 ac_header_compiler=yes
19089else
19090 echo "$as_me: failed program was:" >&5
19091sed 's/^/| /' conftest.$ac_ext >&5
19092
19093ac_header_compiler=no
19094fi
8a7b1113 19095rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19097echo "${ECHO_T}$ac_header_compiler" >&6
19098
19099# Is the header present?
19100echo "$as_me:$LINENO: checking zlib.h presence" >&5
19101echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19102cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19103#line $LINENO "configure"
a848cd7e
SC
19104/* confdefs.h. */
19105_ACEOF
19106cat confdefs.h >>conftest.$ac_ext
19107cat >>conftest.$ac_ext <<_ACEOF
19108/* end confdefs.h. */
19109#include <zlib.h>
19110_ACEOF
19111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19113 ac_status=$?
19114 grep -v '^ *+' conftest.er1 >conftest.err
19115 rm -f conftest.er1
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } >/dev/null; then
19119 if test -s conftest.err; then
19120 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
19121 else
19122 ac_cpp_err=
19123 fi
19124else
19125 ac_cpp_err=yes
19126fi
19127if test -z "$ac_cpp_err"; then
19128 ac_header_preproc=yes
19129else
19130 echo "$as_me: failed program was:" >&5
19131sed 's/^/| /' conftest.$ac_ext >&5
19132
19133 ac_header_preproc=no
19134fi
19135rm -f conftest.err conftest.$ac_ext
19136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19137echo "${ECHO_T}$ac_header_preproc" >&6
19138
19139# So? What about this header?
8a7b1113
VZ
19140case $ac_header_compiler:$ac_header_preproc in
19141 yes:no )
a848cd7e
SC
19142 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19143echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
19144 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19145echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19146 (
19147 cat <<\_ASBOX
19148## ------------------------------------ ##
19149## Report this to bug-autoconf@gnu.org. ##
19150## ------------------------------------ ##
19151_ASBOX
19152 ) |
19153 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 19154 ;;
8a7b1113 19155 no:yes )
a848cd7e
SC
19156 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19157echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8a7b1113
VZ
19158 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19159echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
19160 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19161echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
19162 (
19163 cat <<\_ASBOX
8a7b1113
VZ
19164## ------------------------------------ ##
19165## Report this to bug-autoconf@gnu.org. ##
19166## ------------------------------------ ##
a848cd7e
SC
19167_ASBOX
19168 ) |
19169 sed "s/^/$as_me: WARNING: /" >&2
19170 ;;
19171esac
19172echo "$as_me:$LINENO: checking for zlib.h" >&5
19173echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19174if test "${ac_cv_header_zlib_h+set}" = set; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19176else
19177 ac_cv_header_zlib_h=$ac_header_preproc
19178fi
19179echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19180echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19181
19182fi
19183
19184
19185
19186 system_zlib_h_ok=$ac_cv_header_zlib_h
19187 fi
19188
19189 if test "$system_zlib_h_ok" = "yes"; then
19190 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19191echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19192if test "${ac_cv_lib_z_deflate+set}" = set; then
19193 echo $ECHO_N "(cached) $ECHO_C" >&6
19194else
19195 ac_check_lib_save_LIBS=$LIBS
19196LIBS="-lz $LIBS"
19197cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19198#line $LINENO "configure"
a848cd7e
SC
19199/* confdefs.h. */
19200_ACEOF
19201cat confdefs.h >>conftest.$ac_ext
19202cat >>conftest.$ac_ext <<_ACEOF
19203/* end confdefs.h. */
19204
19205/* Override any gcc2 internal prototype to avoid an error. */
19206#ifdef __cplusplus
19207extern "C"
19208#endif
19209/* We use char because int might match the return type of a gcc2
19210 builtin and then its argument prototype would still apply. */
19211char deflate ();
19212int
19213main ()
19214{
19215deflate ();
19216 ;
19217 return 0;
19218}
19219_ACEOF
19220rm -f conftest.$ac_objext conftest$ac_exeext
19221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 19222 (eval $ac_link) 2>&5
a848cd7e 19223 ac_status=$?
a848cd7e
SC
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
8a7b1113 19226 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19229 ac_status=$?
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; }; then
19232 ac_cv_lib_z_deflate=yes
19233else
19234 echo "$as_me: failed program was:" >&5
19235sed 's/^/| /' conftest.$ac_ext >&5
19236
19237ac_cv_lib_z_deflate=no
19238fi
8a7b1113 19239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
19240LIBS=$ac_check_lib_save_LIBS
19241fi
19242echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19243echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19244if test $ac_cv_lib_z_deflate = yes; then
19245 ZLIB_LINK=" -lz"
19246fi
19247
19248 fi
19249
19250 if test "x$ZLIB_LINK" = "x" ; then
19251 if test "$wxUSE_ZLIB" = "sys" ; then
19252 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
19253echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
19254 { (exit 1); exit 1; }; }
19255 else
19256 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
19257echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
19258 wxUSE_ZLIB=builtin
19259 fi
19260 else
19261 wxUSE_ZLIB=sys
19262 fi
19263 fi
19264fi
19265
19266
19267PNG_LINK=
19268if test "$wxUSE_LIBPNG" != "no" ; then
19269 cat >>confdefs.h <<\_ACEOF
19270#define wxUSE_LIBPNG 1
19271_ACEOF
19272
19273
19274 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
19275 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
19276echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
19277 wxUSE_LIBPNG=sys
19278 fi
19279
19280 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
19281 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
19282echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
19283 wxUSE_LIBPNG=builtin
19284 fi
19285
19286 if test "$wxUSE_MGL" != 1 ; then
19287 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
19288 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
19289echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
19290if test "${ac_cv_header_png_h+set}" = set; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
19292else
19293 if test "$cross_compiling" = yes; then
19294 unset ac_cv_header_png_h
19295
19296else
19297 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19298#line $LINENO "configure"
a848cd7e
SC
19299/* confdefs.h. */
19300_ACEOF
19301cat confdefs.h >>conftest.$ac_ext
19302cat >>conftest.$ac_ext <<_ACEOF
19303/* end confdefs.h. */
19304
19305 #include <png.h>
19306 #include <stdio.h>
19307
19308 int main()
19309 {
19310 FILE *f=fopen("conftestval", "w");
19311 if (!f) exit(1);
19312 fprintf(f, "%s",
19313 PNG_LIBPNG_VER > 90 ? "yes" : "no");
19314 exit(0);
19315 }
19316
19317_ACEOF
19318rm -f conftest$ac_exeext
19319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19320 (eval $ac_link) 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 ac_cv_header_png_h=`cat conftestval`
19330else
19331 echo "$as_me: program exited with status $ac_status" >&5
19332echo "$as_me: failed program was:" >&5
19333sed 's/^/| /' conftest.$ac_ext >&5
19334
19335( exit $ac_status )
19336ac_cv_header_png_h=no
19337fi
8a7b1113 19338rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19339fi
19340
19341fi
19342echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19343echo "${ECHO_T}$ac_cv_header_png_h" >&6
19344 if test "${ac_cv_header_png_h+set}" = set; then
19345 echo "$as_me:$LINENO: checking for png.h" >&5
19346echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19347if test "${ac_cv_header_png_h+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19349fi
19350echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19351echo "${ECHO_T}$ac_cv_header_png_h" >&6
19352else
19353 # Is the header compilable?
19354echo "$as_me:$LINENO: checking png.h usability" >&5
19355echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19356cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19357#line $LINENO "configure"
a848cd7e
SC
19358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h. */
19363$ac_includes_default
19364#include <png.h>
19365_ACEOF
19366rm -f conftest.$ac_objext
19367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 19368 (eval $ac_compile) 2>&5
a848cd7e 19369 ac_status=$?
a848cd7e
SC
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
8a7b1113 19372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
19378 ac_header_compiler=yes
19379else
19380 echo "$as_me: failed program was:" >&5
19381sed 's/^/| /' conftest.$ac_ext >&5
19382
19383ac_header_compiler=no
19384fi
8a7b1113 19385rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19387echo "${ECHO_T}$ac_header_compiler" >&6
19388
19389# Is the header present?
19390echo "$as_me:$LINENO: checking png.h presence" >&5
19391echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19392cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19393#line $LINENO "configure"
a848cd7e
SC
19394/* confdefs.h. */
19395_ACEOF
19396cat confdefs.h >>conftest.$ac_ext
19397cat >>conftest.$ac_ext <<_ACEOF
19398/* end confdefs.h. */
19399#include <png.h>
19400_ACEOF
19401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19403 ac_status=$?
19404 grep -v '^ *+' conftest.er1 >conftest.err
19405 rm -f conftest.er1
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } >/dev/null; then
19409 if test -s conftest.err; then
19410 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
19411 else
19412 ac_cpp_err=
19413 fi
19414else
19415 ac_cpp_err=yes
19416fi
19417if test -z "$ac_cpp_err"; then
19418 ac_header_preproc=yes
19419else
19420 echo "$as_me: failed program was:" >&5
19421sed 's/^/| /' conftest.$ac_ext >&5
19422
19423 ac_header_preproc=no
19424fi
19425rm -f conftest.err conftest.$ac_ext
19426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19427echo "${ECHO_T}$ac_header_preproc" >&6
19428
19429# So? What about this header?
8a7b1113
VZ
19430case $ac_header_compiler:$ac_header_preproc in
19431 yes:no )
a848cd7e
SC
19432 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19433echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
19434 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19435echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19436 (
19437 cat <<\_ASBOX
19438## ------------------------------------ ##
19439## Report this to bug-autoconf@gnu.org. ##
19440## ------------------------------------ ##
19441_ASBOX
19442 ) |
19443 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 19444 ;;
8a7b1113 19445 no:yes )
a848cd7e
SC
19446 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19447echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8a7b1113
VZ
19448 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19449echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
19450 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19451echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
19452 (
19453 cat <<\_ASBOX
8a7b1113
VZ
19454## ------------------------------------ ##
19455## Report this to bug-autoconf@gnu.org. ##
19456## ------------------------------------ ##
a848cd7e
SC
19457_ASBOX
19458 ) |
19459 sed "s/^/$as_me: WARNING: /" >&2
19460 ;;
19461esac
19462echo "$as_me:$LINENO: checking for png.h" >&5
19463echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19464if test "${ac_cv_header_png_h+set}" = set; then
19465 echo $ECHO_N "(cached) $ECHO_C" >&6
19466else
19467 ac_cv_header_png_h=$ac_header_preproc
19468fi
19469echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19470echo "${ECHO_T}$ac_cv_header_png_h" >&6
19471
19472fi
19473
19474
19475
19476 if test "$ac_cv_header_png_h" = "yes"; then
19477 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
19478echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
19479if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
19480 echo $ECHO_N "(cached) $ECHO_C" >&6
19481else
19482 ac_check_lib_save_LIBS=$LIBS
19483LIBS="-lpng -lz -lm $LIBS"
19484cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19485#line $LINENO "configure"
a848cd7e
SC
19486/* confdefs.h. */
19487_ACEOF
19488cat confdefs.h >>conftest.$ac_ext
19489cat >>conftest.$ac_ext <<_ACEOF
19490/* end confdefs.h. */
19491
19492/* Override any gcc2 internal prototype to avoid an error. */
19493#ifdef __cplusplus
19494extern "C"
19495#endif
19496/* We use char because int might match the return type of a gcc2
19497 builtin and then its argument prototype would still apply. */
19498char png_check_sig ();
19499int
19500main ()
19501{
19502png_check_sig ();
19503 ;
19504 return 0;
19505}
19506_ACEOF
19507rm -f conftest.$ac_objext conftest$ac_exeext
19508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 19509 (eval $ac_link) 2>&5
a848cd7e 19510 ac_status=$?
a848cd7e
SC
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
8a7b1113 19513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; }; then
19519 ac_cv_lib_png_png_check_sig=yes
19520else
19521 echo "$as_me: failed program was:" >&5
19522sed 's/^/| /' conftest.$ac_ext >&5
19523
19524ac_cv_lib_png_png_check_sig=no
19525fi
8a7b1113 19526rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
19527LIBS=$ac_check_lib_save_LIBS
19528fi
19529echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
19530echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
19531if test $ac_cv_lib_png_png_check_sig = yes; then
19532 PNG_LINK=" -lpng -lz"
19533fi
19534
19535 fi
19536
19537 if test "x$PNG_LINK" = "x" ; then
19538 if test "$wxUSE_LIBPNG" = "sys" ; then
19539 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
19540echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
19541 { (exit 1); exit 1; }; }
19542 else
19543 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
19544echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
19545 wxUSE_LIBPNG=builtin
19546 fi
19547 else
19548 wxUSE_LIBPNG=sys
19549 fi
19550 fi
19551 fi
19552
19553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
19554fi
19555
19556
19557JPEG_LINK=
19558if test "$wxUSE_LIBJPEG" != "no" ; then
19559 cat >>confdefs.h <<\_ACEOF
19560#define wxUSE_LIBJPEG 1
19561_ACEOF
19562
19563
19564 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
19565 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19566echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
19567 wxUSE_LIBJPEG=sys
19568 fi
19569
19570 if test "$wxUSE_MGL" != 1 ; then
19571 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
19572 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19573echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19574 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19576else
19577 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19578#line $LINENO "configure"
a848cd7e
SC
19579/* confdefs.h. */
19580_ACEOF
19581cat confdefs.h >>conftest.$ac_ext
19582cat >>conftest.$ac_ext <<_ACEOF
19583/* end confdefs.h. */
19584
19585 #undef HAVE_STDLIB_H
19586 #include <stdio.h>
19587 #include <jpeglib.h>
19588
19589int
19590main ()
19591{
19592
19593
19594 ;
19595 return 0;
19596}
19597_ACEOF
19598rm -f conftest.$ac_objext
19599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 19600 (eval $ac_compile) 2>&5
a848cd7e 19601 ac_status=$?
a848cd7e
SC
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } &&
8a7b1113 19604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; }; then
19610 ac_cv_header_jpeglib_h=yes
19611else
19612 echo "$as_me: failed program was:" >&5
19613sed 's/^/| /' conftest.$ac_ext >&5
19614
19615ac_cv_header_jpeglib_h=no
19616
19617fi
8a7b1113 19618rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19619
19620fi
19621
19622 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19623echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
19624
19625 if test "$ac_cv_header_jpeglib_h" = "yes"; then
19626 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19627echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19628if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19629 echo $ECHO_N "(cached) $ECHO_C" >&6
19630else
19631 ac_check_lib_save_LIBS=$LIBS
19632LIBS="-ljpeg $LIBS"
19633cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19634#line $LINENO "configure"
a848cd7e
SC
19635/* confdefs.h. */
19636_ACEOF
19637cat confdefs.h >>conftest.$ac_ext
19638cat >>conftest.$ac_ext <<_ACEOF
19639/* end confdefs.h. */
19640
19641/* Override any gcc2 internal prototype to avoid an error. */
19642#ifdef __cplusplus
19643extern "C"
19644#endif
19645/* We use char because int might match the return type of a gcc2
19646 builtin and then its argument prototype would still apply. */
19647char jpeg_read_header ();
19648int
19649main ()
19650{
19651jpeg_read_header ();
19652 ;
19653 return 0;
19654}
19655_ACEOF
19656rm -f conftest.$ac_objext conftest$ac_exeext
19657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 19658 (eval $ac_link) 2>&5
a848cd7e 19659 ac_status=$?
a848cd7e
SC
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } &&
8a7b1113 19662 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; }; then
19668 ac_cv_lib_jpeg_jpeg_read_header=yes
19669else
19670 echo "$as_me: failed program was:" >&5
19671sed 's/^/| /' conftest.$ac_ext >&5
19672
19673ac_cv_lib_jpeg_jpeg_read_header=no
19674fi
8a7b1113 19675rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
19676LIBS=$ac_check_lib_save_LIBS
19677fi
19678echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19679echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19680if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
19681 JPEG_LINK=" -ljpeg"
19682fi
19683
19684 fi
19685
19686 if test "x$JPEG_LINK" = "x" ; then
19687 if test "$wxUSE_LIBJPEG" = "sys" ; then
19688 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19689echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19690 { (exit 1); exit 1; }; }
19691 else
19692 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19693echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
19694 wxUSE_LIBJPEG=builtin
19695 fi
19696 else
19697 wxUSE_LIBJPEG=sys
19698 fi
19699 fi
19700 fi
19701fi
19702
19703
19704TIFF_LINK=
19705TIFF_PREREQ_LINKS=-lm
19706if test "$wxUSE_LIBTIFF" != "no" ; then
19707 cat >>confdefs.h <<\_ACEOF
19708#define wxUSE_LIBTIFF 1
19709_ACEOF
19710
19711
19712 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
19713 if test "$wxUSE_LIBJPEG" = "sys"; then
19714 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19715 fi
19716 if test "$wxUSE_ZLIB" = "sys"; then
19717 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19718 fi
19719 if test "${ac_cv_header_tiffio_h+set}" = set; then
19720 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19721echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19722if test "${ac_cv_header_tiffio_h+set}" = set; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19724fi
19725echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19726echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19727else
19728 # Is the header compilable?
19729echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19730echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19731cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19732#line $LINENO "configure"
a848cd7e
SC
19733/* confdefs.h. */
19734_ACEOF
19735cat confdefs.h >>conftest.$ac_ext
19736cat >>conftest.$ac_ext <<_ACEOF
19737/* end confdefs.h. */
19738$ac_includes_default
19739#include <tiffio.h>
19740_ACEOF
19741rm -f conftest.$ac_objext
19742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 19743 (eval $ac_compile) 2>&5
a848cd7e 19744 ac_status=$?
a848cd7e
SC
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
8a7b1113 19747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19753 ac_header_compiler=yes
19754else
19755 echo "$as_me: failed program was:" >&5
19756sed 's/^/| /' conftest.$ac_ext >&5
19757
19758ac_header_compiler=no
19759fi
8a7b1113 19760rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19761echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19762echo "${ECHO_T}$ac_header_compiler" >&6
19763
19764# Is the header present?
19765echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19766echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19767cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19768#line $LINENO "configure"
a848cd7e
SC
19769/* confdefs.h. */
19770_ACEOF
19771cat confdefs.h >>conftest.$ac_ext
19772cat >>conftest.$ac_ext <<_ACEOF
19773/* end confdefs.h. */
19774#include <tiffio.h>
19775_ACEOF
19776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19778 ac_status=$?
19779 grep -v '^ *+' conftest.er1 >conftest.err
19780 rm -f conftest.er1
19781 cat conftest.err >&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } >/dev/null; then
19784 if test -s conftest.err; then
19785 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
19786 else
19787 ac_cpp_err=
19788 fi
19789else
19790 ac_cpp_err=yes
19791fi
19792if test -z "$ac_cpp_err"; then
19793 ac_header_preproc=yes
19794else
19795 echo "$as_me: failed program was:" >&5
19796sed 's/^/| /' conftest.$ac_ext >&5
19797
19798 ac_header_preproc=no
19799fi
19800rm -f conftest.err conftest.$ac_ext
19801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19802echo "${ECHO_T}$ac_header_preproc" >&6
19803
19804# So? What about this header?
8a7b1113
VZ
19805case $ac_header_compiler:$ac_header_preproc in
19806 yes:no )
a848cd7e
SC
19807 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19808echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
19809 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19810echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19811 (
19812 cat <<\_ASBOX
19813## ------------------------------------ ##
19814## Report this to bug-autoconf@gnu.org. ##
19815## ------------------------------------ ##
19816_ASBOX
19817 ) |
19818 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 19819 ;;
8a7b1113 19820 no:yes )
a848cd7e
SC
19821 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19822echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8a7b1113
VZ
19823 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19824echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
19825 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19826echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
19827 (
19828 cat <<\_ASBOX
8a7b1113
VZ
19829## ------------------------------------ ##
19830## Report this to bug-autoconf@gnu.org. ##
19831## ------------------------------------ ##
a848cd7e
SC
19832_ASBOX
19833 ) |
19834 sed "s/^/$as_me: WARNING: /" >&2
19835 ;;
19836esac
19837echo "$as_me:$LINENO: checking for tiffio.h" >&5
19838echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19839if test "${ac_cv_header_tiffio_h+set}" = set; then
19840 echo $ECHO_N "(cached) $ECHO_C" >&6
19841else
19842 ac_cv_header_tiffio_h=$ac_header_preproc
19843fi
19844echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19845echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19846
19847fi
19848if test $ac_cv_header_tiffio_h = yes; then
19849
19850 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
19851echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19852if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19854else
19855 ac_check_lib_save_LIBS=$LIBS
19856LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
19857cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19858#line $LINENO "configure"
a848cd7e
SC
19859/* confdefs.h. */
19860_ACEOF
19861cat confdefs.h >>conftest.$ac_ext
19862cat >>conftest.$ac_ext <<_ACEOF
19863/* end confdefs.h. */
19864
19865/* Override any gcc2 internal prototype to avoid an error. */
19866#ifdef __cplusplus
19867extern "C"
19868#endif
19869/* We use char because int might match the return type of a gcc2
19870 builtin and then its argument prototype would still apply. */
19871char TIFFError ();
19872int
19873main ()
19874{
19875TIFFError ();
19876 ;
19877 return 0;
19878}
19879_ACEOF
19880rm -f conftest.$ac_objext conftest$ac_exeext
19881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 19882 (eval $ac_link) 2>&5
a848cd7e 19883 ac_status=$?
a848cd7e
SC
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
8a7b1113 19886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19892 ac_cv_lib_tiff_TIFFError=yes
19893else
19894 echo "$as_me: failed program was:" >&5
19895sed 's/^/| /' conftest.$ac_ext >&5
19896
19897ac_cv_lib_tiff_TIFFError=no
19898fi
8a7b1113 19899rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
19900LIBS=$ac_check_lib_save_LIBS
19901fi
19902echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19903echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19904if test $ac_cv_lib_tiff_TIFFError = yes; then
19905 TIFF_LINK=" -ltiff"
19906fi
19907
19908
19909
19910fi
19911
19912
19913
19914 if test "x$TIFF_LINK" = "x" ; then
19915 if test "$wxUSE_LIBTIFF" = "sys" ; then
19916 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19917echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19918 { (exit 1); exit 1; }; }
19919 else
19920 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19921echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
19922 wxUSE_LIBTIFF=builtin
19923 fi
19924 else
19925 wxUSE_LIBTIFF=sys
19926 fi
19927 fi
19928fi
19929
19930
19931if test "$wxUSE_EXPAT" != "no"; then
19932 wxUSE_XML=yes
19933 cat >>confdefs.h <<\_ACEOF
19934#define wxUSE_EXPAT 1
19935_ACEOF
19936
19937 cat >>confdefs.h <<\_ACEOF
19938#define wxUSE_XML 1
19939_ACEOF
19940
19941
19942 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19943 if test "${ac_cv_header_expat_h+set}" = set; then
19944 echo "$as_me:$LINENO: checking for expat.h" >&5
19945echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19946if test "${ac_cv_header_expat_h+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19948fi
19949echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19950echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19951else
19952 # Is the header compilable?
19953echo "$as_me:$LINENO: checking expat.h usability" >&5
19954echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19955cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19956#line $LINENO "configure"
a848cd7e
SC
19957/* confdefs.h. */
19958_ACEOF
19959cat confdefs.h >>conftest.$ac_ext
19960cat >>conftest.$ac_ext <<_ACEOF
19961/* end confdefs.h. */
19962$ac_includes_default
19963#include <expat.h>
19964_ACEOF
19965rm -f conftest.$ac_objext
19966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 19967 (eval $ac_compile) 2>&5
a848cd7e 19968 ac_status=$?
a848cd7e
SC
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
8a7b1113 19971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 ac_header_compiler=yes
19978else
19979 echo "$as_me: failed program was:" >&5
19980sed 's/^/| /' conftest.$ac_ext >&5
19981
19982ac_header_compiler=no
19983fi
8a7b1113 19984rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19985echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19986echo "${ECHO_T}$ac_header_compiler" >&6
19987
19988# Is the header present?
19989echo "$as_me:$LINENO: checking expat.h presence" >&5
19990echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19991cat >conftest.$ac_ext <<_ACEOF
8a7b1113 19992#line $LINENO "configure"
a848cd7e
SC
19993/* confdefs.h. */
19994_ACEOF
19995cat confdefs.h >>conftest.$ac_ext
19996cat >>conftest.$ac_ext <<_ACEOF
19997/* end confdefs.h. */
19998#include <expat.h>
19999_ACEOF
20000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } >/dev/null; then
20008 if test -s conftest.err; then
20009 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
20010 else
20011 ac_cpp_err=
20012 fi
20013else
20014 ac_cpp_err=yes
20015fi
20016if test -z "$ac_cpp_err"; then
20017 ac_header_preproc=yes
20018else
20019 echo "$as_me: failed program was:" >&5
20020sed 's/^/| /' conftest.$ac_ext >&5
20021
20022 ac_header_preproc=no
20023fi
20024rm -f conftest.err conftest.$ac_ext
20025echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20026echo "${ECHO_T}$ac_header_preproc" >&6
20027
20028# So? What about this header?
8a7b1113
VZ
20029case $ac_header_compiler:$ac_header_preproc in
20030 yes:no )
a848cd7e
SC
20031 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20032echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
20033 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20034echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
20035 (
20036 cat <<\_ASBOX
20037## ------------------------------------ ##
20038## Report this to bug-autoconf@gnu.org. ##
20039## ------------------------------------ ##
20040_ASBOX
20041 ) |
20042 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 20043 ;;
8a7b1113 20044 no:yes )
a848cd7e
SC
20045 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20046echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
8a7b1113
VZ
20047 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20048echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
20049 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20050echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
20051 (
20052 cat <<\_ASBOX
8a7b1113
VZ
20053## ------------------------------------ ##
20054## Report this to bug-autoconf@gnu.org. ##
20055## ------------------------------------ ##
a848cd7e
SC
20056_ASBOX
20057 ) |
20058 sed "s/^/$as_me: WARNING: /" >&2
20059 ;;
20060esac
20061echo "$as_me:$LINENO: checking for expat.h" >&5
20062echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20063if test "${ac_cv_header_expat_h+set}" = set; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
20065else
20066 ac_cv_header_expat_h=$ac_header_preproc
20067fi
20068echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20069echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20070
20071fi
20072if test $ac_cv_header_expat_h = yes; then
20073 found_expat_h=1
20074fi
20075
20076
20077 if test "x$found_expat_h" = "x1"; then
20078 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20079echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20080if test "${wx_cv_expat_is_not_broken+set}" = set; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20082else
20083
20084
20085
20086 ac_ext=cc
20087ac_cpp='$CXXCPP $CPPFLAGS'
20088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20091
20092 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 20093#line $LINENO "configure"
a848cd7e
SC
20094/* confdefs.h. */
20095_ACEOF
20096cat confdefs.h >>conftest.$ac_ext
20097cat >>conftest.$ac_ext <<_ACEOF
20098/* end confdefs.h. */
20099#include <expat.h>
20100int
20101main ()
20102{
20103
20104 ;
20105 return 0;
20106}
20107_ACEOF
20108rm -f conftest.$ac_objext
20109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 20110 (eval $ac_compile) 2>&5
a848cd7e 20111 ac_status=$?
a848cd7e
SC
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } &&
8a7b1113 20114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20117 ac_status=$?
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; }; then
20120 wx_cv_expat_is_not_broken=yes
20121else
20122 echo "$as_me: failed program was:" >&5
20123sed 's/^/| /' conftest.$ac_ext >&5
20124
20125wx_cv_expat_is_not_broken=no
20126
20127fi
8a7b1113 20128rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20129 ac_ext=c
20130ac_cpp='$CPP $CPPFLAGS'
20131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20133ac_compiler_gnu=$ac_cv_c_compiler_gnu
20134
20135
20136
20137fi
20138echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20139echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20140 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20141 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
20142echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20143if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20145else
20146 ac_check_lib_save_LIBS=$LIBS
20147LIBS="-lexpat $LIBS"
20148cat >conftest.$ac_ext <<_ACEOF
8a7b1113 20149#line $LINENO "configure"
a848cd7e
SC
20150/* confdefs.h. */
20151_ACEOF
20152cat confdefs.h >>conftest.$ac_ext
20153cat >>conftest.$ac_ext <<_ACEOF
20154/* end confdefs.h. */
20155
20156/* Override any gcc2 internal prototype to avoid an error. */
20157#ifdef __cplusplus
20158extern "C"
20159#endif
20160/* We use char because int might match the return type of a gcc2
20161 builtin and then its argument prototype would still apply. */
20162char XML_ParserCreate ();
20163int
20164main ()
20165{
20166XML_ParserCreate ();
20167 ;
20168 return 0;
20169}
20170_ACEOF
20171rm -f conftest.$ac_objext conftest$ac_exeext
20172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 20173 (eval $ac_link) 2>&5
a848cd7e 20174 ac_status=$?
a848cd7e
SC
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
8a7b1113 20177 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 ac_cv_lib_expat_XML_ParserCreate=yes
20184else
20185 echo "$as_me: failed program was:" >&5
20186sed 's/^/| /' conftest.$ac_ext >&5
20187
20188ac_cv_lib_expat_XML_ParserCreate=no
20189fi
8a7b1113 20190rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20191LIBS=$ac_check_lib_save_LIBS
20192fi
20193echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20194echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
20195if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
20196 EXPAT_LINK=" -lexpat"
20197fi
20198
20199 fi
20200 fi
20201 if test "x$EXPAT_LINK" = "x" ; then
20202 if test "$wxUSE_EXPAT" = "sys" ; then
20203 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
20204echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
20205 { (exit 1); exit 1; }; }
20206 else
20207 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
20208echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
20209 wxUSE_EXPAT=builtin
20210 fi
20211 else
20212 wxUSE_EXPAT=sys
20213 fi
20214 fi
20215 if test "$wxUSE_EXPAT" = "builtin" ; then
20216
20217
20218subdirs="$subdirs src/expat"
20219
20220 fi
20221fi
20222
20223
20224
20225if test "$wxUSE_LIBMSPACK" != "no"; then
20226
20227 if test "${ac_cv_header_mspack_h+set}" = set; then
20228 echo "$as_me:$LINENO: checking for mspack.h" >&5
20229echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20230if test "${ac_cv_header_mspack_h+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20232fi
20233echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20234echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20235else
20236 # Is the header compilable?
20237echo "$as_me:$LINENO: checking mspack.h usability" >&5
20238echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
20239cat >conftest.$ac_ext <<_ACEOF
8a7b1113 20240#line $LINENO "configure"
a848cd7e
SC
20241/* confdefs.h. */
20242_ACEOF
20243cat confdefs.h >>conftest.$ac_ext
20244cat >>conftest.$ac_ext <<_ACEOF
20245/* end confdefs.h. */
20246$ac_includes_default
20247#include <mspack.h>
20248_ACEOF
20249rm -f conftest.$ac_objext
20250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 20251 (eval $ac_compile) 2>&5
a848cd7e 20252 ac_status=$?
a848cd7e
SC
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } &&
8a7b1113 20255 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; }; then
20261 ac_header_compiler=yes
20262else
20263 echo "$as_me: failed program was:" >&5
20264sed 's/^/| /' conftest.$ac_ext >&5
20265
20266ac_header_compiler=no
20267fi
8a7b1113 20268rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20269echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20270echo "${ECHO_T}$ac_header_compiler" >&6
20271
20272# Is the header present?
20273echo "$as_me:$LINENO: checking mspack.h presence" >&5
20274echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
20275cat >conftest.$ac_ext <<_ACEOF
8a7b1113 20276#line $LINENO "configure"
a848cd7e
SC
20277/* confdefs.h. */
20278_ACEOF
20279cat confdefs.h >>conftest.$ac_ext
20280cat >>conftest.$ac_ext <<_ACEOF
20281/* end confdefs.h. */
20282#include <mspack.h>
20283_ACEOF
20284if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20286 ac_status=$?
20287 grep -v '^ *+' conftest.er1 >conftest.err
20288 rm -f conftest.er1
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } >/dev/null; then
20292 if test -s conftest.err; then
20293 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
20294 else
20295 ac_cpp_err=
20296 fi
20297else
20298 ac_cpp_err=yes
20299fi
20300if test -z "$ac_cpp_err"; then
20301 ac_header_preproc=yes
20302else
20303 echo "$as_me: failed program was:" >&5
20304sed 's/^/| /' conftest.$ac_ext >&5
20305
20306 ac_header_preproc=no
20307fi
20308rm -f conftest.err conftest.$ac_ext
20309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20310echo "${ECHO_T}$ac_header_preproc" >&6
20311
20312# So? What about this header?
8a7b1113
VZ
20313case $ac_header_compiler:$ac_header_preproc in
20314 yes:no )
a848cd7e
SC
20315 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
20316echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
20317 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20318echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
20319 (
20320 cat <<\_ASBOX
20321## ------------------------------------ ##
20322## Report this to bug-autoconf@gnu.org. ##
20323## ------------------------------------ ##
20324_ASBOX
20325 ) |
20326 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 20327 ;;
8a7b1113 20328 no:yes )
a848cd7e
SC
20329 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
20330echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
8a7b1113
VZ
20331 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
20332echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
20333 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20334echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
20335 (
20336 cat <<\_ASBOX
8a7b1113
VZ
20337## ------------------------------------ ##
20338## Report this to bug-autoconf@gnu.org. ##
20339## ------------------------------------ ##
a848cd7e
SC
20340_ASBOX
20341 ) |
20342 sed "s/^/$as_me: WARNING: /" >&2
20343 ;;
20344esac
20345echo "$as_me:$LINENO: checking for mspack.h" >&5
20346echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20347if test "${ac_cv_header_mspack_h+set}" = set; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
20349else
20350 ac_cv_header_mspack_h=$ac_header_preproc
20351fi
20352echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20353echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20354
20355fi
20356if test $ac_cv_header_mspack_h = yes; then
20357 found_mspack_h=1
20358fi
20359
20360
20361 if test "x$found_mspack_h" = "x1"; then
20362 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
20363echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
20364if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20366else
20367 ac_check_lib_save_LIBS=$LIBS
20368LIBS="-lmspack $LIBS"
20369cat >conftest.$ac_ext <<_ACEOF
8a7b1113 20370#line $LINENO "configure"
a848cd7e
SC
20371/* confdefs.h. */
20372_ACEOF
20373cat confdefs.h >>conftest.$ac_ext
20374cat >>conftest.$ac_ext <<_ACEOF
20375/* end confdefs.h. */
20376
20377/* Override any gcc2 internal prototype to avoid an error. */
20378#ifdef __cplusplus
20379extern "C"
20380#endif
20381/* We use char because int might match the return type of a gcc2
20382 builtin and then its argument prototype would still apply. */
20383char mspack_create_chm_decompressor ();
20384int
20385main ()
20386{
20387mspack_create_chm_decompressor ();
20388 ;
20389 return 0;
20390}
20391_ACEOF
20392rm -f conftest.$ac_objext conftest$ac_exeext
20393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 20394 (eval $ac_link) 2>&5
a848cd7e 20395 ac_status=$?
a848cd7e
SC
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } &&
8a7b1113 20398 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; }; then
20404 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
20405else
20406 echo "$as_me: failed program was:" >&5
20407sed 's/^/| /' conftest.$ac_ext >&5
20408
20409ac_cv_lib_mspack_mspack_create_chm_decompressor=no
20410fi
8a7b1113 20411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20412LIBS=$ac_check_lib_save_LIBS
20413fi
20414echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
20415echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
20416if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
20417 MSPACK_LINK=" -lmspack"
20418fi
20419
20420 fi
20421 if test "x$MSPACK_LINK" = "x" ; then
20422 wxUSE_LIBMSPACK=no
20423 else
20424 cat >>confdefs.h <<\_ACEOF
20425#define wxUSE_LIBMSPACK 1
20426_ACEOF
20427
20428 fi
20429fi
20430
20431
20432
20433AFMINSTALL=
20434WIN32INSTALL=
20435
20436TOOLKIT=
20437TOOLKIT_INCLUDE=
20438WIDGET_SET=
20439
20440if test "$USE_WIN32" = 1 ; then
20441
20442for ac_header in w32api.h
20443do
20444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20445if eval "test \"\${$as_ac_Header+set}\" = set"; then
20446 echo "$as_me:$LINENO: checking for $ac_header" >&5
20447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20448if eval "test \"\${$as_ac_Header+set}\" = set"; then
20449 echo $ECHO_N "(cached) $ECHO_C" >&6
20450fi
20451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20453else
20454 # Is the header compilable?
20455echo "$as_me:$LINENO: checking $ac_header usability" >&5
20456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20457cat >conftest.$ac_ext <<_ACEOF
8a7b1113 20458#line $LINENO "configure"
a848cd7e
SC
20459/* confdefs.h. */
20460_ACEOF
20461cat confdefs.h >>conftest.$ac_ext
20462cat >>conftest.$ac_ext <<_ACEOF
20463/* end confdefs.h. */
20464$ac_includes_default
20465#include <$ac_header>
20466_ACEOF
20467rm -f conftest.$ac_objext
20468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 20469 (eval $ac_compile) 2>&5
a848cd7e 20470 ac_status=$?
a848cd7e
SC
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
8a7b1113 20473 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; }; then
20479 ac_header_compiler=yes
20480else
20481 echo "$as_me: failed program was:" >&5
20482sed 's/^/| /' conftest.$ac_ext >&5
20483
20484ac_header_compiler=no
20485fi
8a7b1113 20486rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20487echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20488echo "${ECHO_T}$ac_header_compiler" >&6
20489
20490# Is the header present?
20491echo "$as_me:$LINENO: checking $ac_header presence" >&5
20492echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20493cat >conftest.$ac_ext <<_ACEOF
8a7b1113 20494#line $LINENO "configure"
a848cd7e
SC
20495/* confdefs.h. */
20496_ACEOF
20497cat confdefs.h >>conftest.$ac_ext
20498cat >>conftest.$ac_ext <<_ACEOF
20499/* end confdefs.h. */
20500#include <$ac_header>
20501_ACEOF
20502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20504 ac_status=$?
20505 grep -v '^ *+' conftest.er1 >conftest.err
20506 rm -f conftest.er1
20507 cat conftest.err >&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); } >/dev/null; then
20510 if test -s conftest.err; then
20511 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
20512 else
20513 ac_cpp_err=
20514 fi
20515else
20516 ac_cpp_err=yes
20517fi
20518if test -z "$ac_cpp_err"; then
20519 ac_header_preproc=yes
20520else
20521 echo "$as_me: failed program was:" >&5
20522sed 's/^/| /' conftest.$ac_ext >&5
20523
20524 ac_header_preproc=no
20525fi
20526rm -f conftest.err conftest.$ac_ext
20527echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20528echo "${ECHO_T}$ac_header_preproc" >&6
20529
20530# So? What about this header?
8a7b1113
VZ
20531case $ac_header_compiler:$ac_header_preproc in
20532 yes:no )
a848cd7e
SC
20533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20534echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
20535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20536echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20537 (
20538 cat <<\_ASBOX
20539## ------------------------------------ ##
20540## Report this to bug-autoconf@gnu.org. ##
20541## ------------------------------------ ##
20542_ASBOX
20543 ) |
20544 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 20545 ;;
8a7b1113 20546 no:yes )
a848cd7e
SC
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20548echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
20549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20550echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
20551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
20553 (
20554 cat <<\_ASBOX
8a7b1113
VZ
20555## ------------------------------------ ##
20556## Report this to bug-autoconf@gnu.org. ##
20557## ------------------------------------ ##
a848cd7e
SC
20558_ASBOX
20559 ) |
20560 sed "s/^/$as_me: WARNING: /" >&2
20561 ;;
20562esac
20563echo "$as_me:$LINENO: checking for $ac_header" >&5
20564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20565if eval "test \"\${$as_ac_Header+set}\" = set"; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20567else
8a7b1113 20568 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
20569fi
20570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20572
20573fi
20574if test `eval echo '${'$as_ac_Header'}'` = yes; then
20575 cat >>confdefs.h <<_ACEOF
20576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20577_ACEOF
20578
20579fi
20580
20581done
20582
20583 if test "${ac_cv_header_windows_h+set}" = set; then
20584 echo "$as_me:$LINENO: checking for windows.h" >&5
20585echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20586if test "${ac_cv_header_windows_h+set}" = set; then
20587 echo $ECHO_N "(cached) $ECHO_C" >&6
20588fi
20589echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20590echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20591else
20592 # Is the header compilable?
20593echo "$as_me:$LINENO: checking windows.h usability" >&5
20594echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20595cat >conftest.$ac_ext <<_ACEOF
8a7b1113 20596#line $LINENO "configure"
a848cd7e
SC
20597/* confdefs.h. */
20598_ACEOF
20599cat confdefs.h >>conftest.$ac_ext
20600cat >>conftest.$ac_ext <<_ACEOF
20601/* end confdefs.h. */
20602$ac_includes_default
20603#include <windows.h>
20604_ACEOF
20605rm -f conftest.$ac_objext
20606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 20607 (eval $ac_compile) 2>&5
a848cd7e 20608 ac_status=$?
a848cd7e
SC
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
8a7b1113 20611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; }; then
20617 ac_header_compiler=yes
20618else
20619 echo "$as_me: failed program was:" >&5
20620sed 's/^/| /' conftest.$ac_ext >&5
20621
20622ac_header_compiler=no
20623fi
8a7b1113 20624rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20626echo "${ECHO_T}$ac_header_compiler" >&6
20627
20628# Is the header present?
20629echo "$as_me:$LINENO: checking windows.h presence" >&5
20630echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
20631cat >conftest.$ac_ext <<_ACEOF
8a7b1113 20632#line $LINENO "configure"
a848cd7e
SC
20633/* confdefs.h. */
20634_ACEOF
20635cat confdefs.h >>conftest.$ac_ext
20636cat >>conftest.$ac_ext <<_ACEOF
20637/* end confdefs.h. */
20638#include <windows.h>
20639_ACEOF
20640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20642 ac_status=$?
20643 grep -v '^ *+' conftest.er1 >conftest.err
20644 rm -f conftest.er1
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } >/dev/null; then
20648 if test -s conftest.err; then
20649 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
20650 else
20651 ac_cpp_err=
20652 fi
20653else
20654 ac_cpp_err=yes
20655fi
20656if test -z "$ac_cpp_err"; then
20657 ac_header_preproc=yes
20658else
20659 echo "$as_me: failed program was:" >&5
20660sed 's/^/| /' conftest.$ac_ext >&5
20661
20662 ac_header_preproc=no
20663fi
20664rm -f conftest.err conftest.$ac_ext
20665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20666echo "${ECHO_T}$ac_header_preproc" >&6
20667
20668# So? What about this header?
8a7b1113
VZ
20669case $ac_header_compiler:$ac_header_preproc in
20670 yes:no )
a848cd7e
SC
20671 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
20672echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
20673 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20674echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20675 (
20676 cat <<\_ASBOX
20677## ------------------------------------ ##
20678## Report this to bug-autoconf@gnu.org. ##
20679## ------------------------------------ ##
20680_ASBOX
20681 ) |
20682 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 20683 ;;
8a7b1113 20684 no:yes )
a848cd7e
SC
20685 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
20686echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
8a7b1113
VZ
20687 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
20688echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
20689 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20690echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
20691 (
20692 cat <<\_ASBOX
8a7b1113
VZ
20693## ------------------------------------ ##
20694## Report this to bug-autoconf@gnu.org. ##
20695## ------------------------------------ ##
a848cd7e
SC
20696_ASBOX
20697 ) |
20698 sed "s/^/$as_me: WARNING: /" >&2
20699 ;;
20700esac
20701echo "$as_me:$LINENO: checking for windows.h" >&5
20702echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20703if test "${ac_cv_header_windows_h+set}" = set; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20705else
20706 ac_cv_header_windows_h=$ac_header_preproc
20707fi
20708echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20709echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20710
20711fi
20712if test $ac_cv_header_windows_h = yes; then
20713 :
20714else
20715
20716 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
20717echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
20718 { (exit 1); exit 1; }; }
20719
20720fi
20721
20722
20723
20724 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
20725
20726 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
20727 LIBS="$LIBS -loleacc"
20728 fi
20729
20730 case "${host}" in
20731 *-*-cygwin* )
20732 LIBS="$LIBS -lkernel32 -luser32"
20733 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
20734 esac
20735
20736 if test "$wxUSE_ODBC" = "sys" ; then
20737 wxUSE_ODBC = "yes"
20738 fi
20739 if test "$wxUSE_ODBC" = "yes" ; then
20740 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
20741 cat >>confdefs.h <<\_ACEOF
20742#define wxUSE_ODBC 1
20743_ACEOF
20744
20745 fi
20746
20747 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
20748 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
20749
20750 WIN32INSTALL=win32install
20751fi
20752
20753if test "$wxUSE_GUI" = "yes"; then
20754 USE_GUI=1
20755
20756 GUI_TK_LIBRARY=
20757
20758 WXGTK12=
20759 WXGTK127=
20760 WXGTK20=
20761 WXGPE=
20762
20763 if test "$wxUSE_MSW" = 1 ; then
20764 TOOLKIT=MSW
20765 GUIDIST=MSW_DIST
20766
20767 case "${host}" in
20768 *-*-mingw32* )
20769 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
20770 esac
20771 fi
20772
20773 if test "$wxUSE_GTK" = 1; then
20774 echo "$as_me:$LINENO: checking for GTK+ version" >&5
20775echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
20776
20777 gtk_version_cached=1
20778 if test "${wx_cv_lib_gtk+set}" = set; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20780else
20781
20782 gtk_version_cached=0
20783 echo "$as_me:$LINENO: result: " >&5
20784echo "${ECHO_T}" >&6
20785
20786 GTK_MODULES=
20787 if test "$wxUSE_THREADS" = "yes"; then
20788 GTK_MODULES=gthread
20789 fi
20790
20791 wx_cv_lib_gtk=
20792 if test "x$wxUSE_GTK2" = "xyes"; then
20793 # Check whether --enable-gtktest or --disable-gtktest was given.
20794if test "${enable_gtktest+set}" = set; then
20795 enableval="$enable_gtktest"
20796
20797else
20798 enable_gtktest=yes
20799fi;
20800
20801 pkg_config_args=gtk+-2.0
20802 for module in . $GTK_MODULES
20803 do
20804 case "$module" in
20805 gthread)
20806 pkg_config_args="$pkg_config_args gthread-2.0"
20807 ;;
20808 esac
20809 done
20810
20811 no_gtk=""
20812
20813 # Extract the first word of "pkg-config", so it can be a program name with args.
20814set dummy pkg-config; ac_word=$2
20815echo "$as_me:$LINENO: checking for $ac_word" >&5
20816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20817if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20818 echo $ECHO_N "(cached) $ECHO_C" >&6
20819else
20820 case $PKG_CONFIG in
20821 [\\/]* | ?:[\\/]*)
20822 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20823 ;;
20824 *)
20825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20826for as_dir in $PATH
20827do
20828 IFS=$as_save_IFS
20829 test -z "$as_dir" && as_dir=.
20830 for ac_exec_ext in '' $ac_executable_extensions; do
20831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20832 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20834 break 2
20835 fi
20836done
20837done
20838
20839 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20840 ;;
20841esac
20842fi
20843PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20844
20845if test -n "$PKG_CONFIG"; then
20846 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20847echo "${ECHO_T}$PKG_CONFIG" >&6
20848else
20849 echo "$as_me:$LINENO: result: no" >&5
20850echo "${ECHO_T}no" >&6
20851fi
20852
20853
20854 if test x$PKG_CONFIG != xno ; then
20855 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20856 :
20857 else
c2218763 20858 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
20859 no_gtk=yes
20860 PKG_CONFIG=no
20861 fi
20862 else
20863 no_gtk=yes
20864 fi
20865
20866 min_gtk_version=2.0.0
20867 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20868echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
20869
20870 if test x$PKG_CONFIG != xno ; then
20871 ## don't try to run the test against uninstalled libtool libs
20872 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20873 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20874 enable_gtktest=no
20875 fi
20876
20877 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20878 :
20879 else
20880 no_gtk=yes
20881 fi
20882 fi
20883
20884 if test x"$no_gtk" = x ; then
20885 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20886 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20887 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20888 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20889 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20890 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20891 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20892 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20893 if test "x$enable_gtktest" = "xyes" ; then
20894 ac_save_CFLAGS="$CFLAGS"
20895 ac_save_LIBS="$LIBS"
20896 CFLAGS="$CFLAGS $GTK_CFLAGS"
20897 LIBS="$GTK_LIBS $LIBS"
20898 rm -f conf.gtktest
20899 if test "$cross_compiling" = yes; then
20900 echo $ac_n "cross compiling; assumed OK... $ac_c"
20901else
20902 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 20903#line $LINENO "configure"
a848cd7e
SC
20904/* confdefs.h. */
20905_ACEOF
20906cat confdefs.h >>conftest.$ac_ext
20907cat >>conftest.$ac_ext <<_ACEOF
20908/* end confdefs.h. */
20909
20910#include <gtk/gtk.h>
20911#include <stdio.h>
20912#include <stdlib.h>
20913
20914int
20915main ()
20916{
20917 int major, minor, micro;
20918 char *tmp_version;
20919
20920 system ("touch conf.gtktest");
20921
20922 /* HP/UX 9 (%@#!) writes to sscanf strings */
20923 tmp_version = g_strdup("$min_gtk_version");
20924 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20925 printf("%s, bad version string\n", "$min_gtk_version");
20926 exit(1);
20927 }
20928
20929 if ((gtk_major_version != $gtk_config_major_version) ||
20930 (gtk_minor_version != $gtk_config_minor_version) ||
20931 (gtk_micro_version != $gtk_config_micro_version))
20932 {
20933 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20934 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20935 gtk_major_version, gtk_minor_version, gtk_micro_version);
20936 printf ("*** was found! If pkg-config was correct, then it is best\n");
20937 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20938 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20939 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20940 printf("*** required on your system.\n");
20941 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20942 printf("*** to point to the correct configuration files\n");
20943 }
20944 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20945 (gtk_minor_version != GTK_MINOR_VERSION) ||
20946 (gtk_micro_version != GTK_MICRO_VERSION))
20947 {
20948 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20949 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20950 printf("*** library (version %d.%d.%d)\n",
20951 gtk_major_version, gtk_minor_version, gtk_micro_version);
20952 }
20953 else
20954 {
20955 if ((gtk_major_version > major) ||
20956 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20957 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20958 {
20959 return 0;
20960 }
20961 else
20962 {
20963 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20964 gtk_major_version, gtk_minor_version, gtk_micro_version);
20965 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20966 major, minor, micro);
20967 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20968 printf("***\n");
20969 printf("*** If you have already installed a sufficiently new version, this error\n");
20970 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20971 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20972 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20973 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20974 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20975 printf("*** so that the correct libraries are found at run-time))\n");
20976 }
20977 }
20978 return 1;
20979}
20980
20981_ACEOF
20982rm -f conftest$ac_exeext
20983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20984 (eval $ac_link) 2>&5
20985 ac_status=$?
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20990 ac_status=$?
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
20993 :
20994else
20995 echo "$as_me: program exited with status $ac_status" >&5
20996echo "$as_me: failed program was:" >&5
20997sed 's/^/| /' conftest.$ac_ext >&5
20998
20999( exit $ac_status )
21000no_gtk=yes
21001fi
8a7b1113 21002rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21003fi
21004 CFLAGS="$ac_save_CFLAGS"
21005 LIBS="$ac_save_LIBS"
21006 fi
21007 fi
21008 if test "x$no_gtk" = x ; then
21009 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21010echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21011 wx_cv_lib_gtk=2.0
21012 else
21013 echo "$as_me:$LINENO: result: no" >&5
21014echo "${ECHO_T}no" >&6
21015 if test "$PKG_CONFIG" = "no" ; then
21016 echo "*** A new enough version of pkg-config was not found."
21017 echo "*** See http://pkgconfig.sourceforge.net"
21018 else
21019 if test -f conf.gtktest ; then
21020 :
21021 else
21022 echo "*** Could not run GTK+ test program, checking why..."
21023 ac_save_CFLAGS="$CFLAGS"
21024 ac_save_LIBS="$LIBS"
21025 CFLAGS="$CFLAGS $GTK_CFLAGS"
21026 LIBS="$LIBS $GTK_LIBS"
21027 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 21028#line $LINENO "configure"
a848cd7e
SC
21029/* confdefs.h. */
21030_ACEOF
21031cat confdefs.h >>conftest.$ac_ext
21032cat >>conftest.$ac_ext <<_ACEOF
21033/* end confdefs.h. */
21034
21035#include <gtk/gtk.h>
21036#include <stdio.h>
21037
21038int
21039main ()
21040{
21041 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21042 ;
21043 return 0;
21044}
21045_ACEOF
21046rm -f conftest.$ac_objext conftest$ac_exeext
21047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 21048 (eval $ac_link) 2>&5
a848cd7e 21049 ac_status=$?
a848cd7e
SC
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } &&
8a7b1113 21052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21055 ac_status=$?
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058 echo "*** The test program compiled, but did not run. This usually means"
21059 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21060 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21061 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21062 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21063 echo "*** is required on your system"
21064 echo "***"
21065 echo "*** If you have an old version installed, it is best to remove it, although"
21066 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21067else
21068 echo "$as_me: failed program was:" >&5
21069sed 's/^/| /' conftest.$ac_ext >&5
21070
21071 echo "*** The test program failed to compile or link. See the file config.log for the"
21072 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
21073fi
8a7b1113 21074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21075 CFLAGS="$ac_save_CFLAGS"
21076 LIBS="$ac_save_LIBS"
21077 fi
21078 fi
21079 GTK_CFLAGS=""
21080 GTK_LIBS=""
21081 :
21082 fi
21083
21084
21085 rm -f conf.gtktest
21086
21087 else
21088
21089# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21090if test "${with_gtk_prefix+set}" = set; then
21091 withval="$with_gtk_prefix"
21092 gtk_config_prefix="$withval"
21093else
21094 gtk_config_prefix=""
21095fi;
21096
21097# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21098if test "${with_gtk_exec_prefix+set}" = set; then
21099 withval="$with_gtk_exec_prefix"
21100 gtk_config_exec_prefix="$withval"
21101else
21102 gtk_config_exec_prefix=""
21103fi;
21104# Check whether --enable-gtktest or --disable-gtktest was given.
21105if test "${enable_gtktest+set}" = set; then
21106 enableval="$enable_gtktest"
21107
21108else
21109 enable_gtktest=yes
21110fi;
21111
21112 for module in . $GTK_MODULES
21113 do
21114 case "$module" in
21115 gthread)
21116 gtk_config_args="$gtk_config_args gthread"
21117 ;;
21118 esac
21119 done
21120
21121 if test x$gtk_config_exec_prefix != x ; then
21122 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21123 if test x${GTK_CONFIG+set} != xset ; then
21124 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21125 fi
21126 fi
21127 if test x$gtk_config_prefix != x ; then
21128 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21129 if test x${GTK_CONFIG+set} != xset ; then
21130 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21131 fi
21132 fi
21133
21134 # Extract the first word of "gtk-config", so it can be a program name with args.
21135set dummy gtk-config; ac_word=$2
21136echo "$as_me:$LINENO: checking for $ac_word" >&5
21137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21138if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21140else
21141 case $GTK_CONFIG in
21142 [\\/]* | ?:[\\/]*)
21143 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21144 ;;
21145 *)
21146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21147for as_dir in $PATH
21148do
21149 IFS=$as_save_IFS
21150 test -z "$as_dir" && as_dir=.
21151 for ac_exec_ext in '' $ac_executable_extensions; do
21152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21153 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21155 break 2
21156 fi
21157done
21158done
21159
21160 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21161 ;;
21162esac
21163fi
21164GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21165
21166if test -n "$GTK_CONFIG"; then
21167 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21168echo "${ECHO_T}$GTK_CONFIG" >&6
21169else
21170 echo "$as_me:$LINENO: result: no" >&5
21171echo "${ECHO_T}no" >&6
21172fi
21173
21174 min_gtk_version=1.2.7
21175 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21176echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21177 no_gtk=""
21178 if test "$GTK_CONFIG" = "no" ; then
21179 no_gtk=yes
21180 else
21181 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21182 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21183 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21184 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21185 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21186 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21187 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21188 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21189 if test "x$enable_gtktest" = "xyes" ; then
21190 ac_save_CFLAGS="$CFLAGS"
21191 ac_save_LIBS="$LIBS"
21192 CFLAGS="$CFLAGS $GTK_CFLAGS"
21193 LIBS="$GTK_LIBS $LIBS"
21194 rm -f conf.gtktest
21195 if test "$cross_compiling" = yes; then
21196 echo $ac_n "cross compiling; assumed OK... $ac_c"
21197else
21198 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 21199#line $LINENO "configure"
a848cd7e
SC
21200/* confdefs.h. */
21201_ACEOF
21202cat confdefs.h >>conftest.$ac_ext
21203cat >>conftest.$ac_ext <<_ACEOF
21204/* end confdefs.h. */
21205
21206#include <gtk/gtk.h>
21207#include <stdio.h>
21208#include <stdlib.h>
21209
21210int
21211main ()
21212{
21213 int major, minor, micro;
21214 char *tmp_version;
21215
21216 system ("touch conf.gtktest");
21217
21218 /* HP/UX 9 (%@#!) writes to sscanf strings */
21219 tmp_version = g_strdup("$min_gtk_version");
21220 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21221 printf("%s, bad version string\n", "$min_gtk_version");
21222 exit(1);
21223 }
21224
21225 if ((gtk_major_version != $gtk_config_major_version) ||
21226 (gtk_minor_version != $gtk_config_minor_version) ||
21227 (gtk_micro_version != $gtk_config_micro_version))
21228 {
21229 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21230 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21231 gtk_major_version, gtk_minor_version, gtk_micro_version);
21232 printf ("*** was found! If gtk-config was correct, then it is best\n");
21233 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21234 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21235 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21236 printf("*** required on your system.\n");
21237 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21238 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21239 printf("*** before re-running configure\n");
21240 }
21241#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21242 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21243 (gtk_minor_version != GTK_MINOR_VERSION) ||
21244 (gtk_micro_version != GTK_MICRO_VERSION))
21245 {
21246 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21247 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21248 printf("*** library (version %d.%d.%d)\n",
21249 gtk_major_version, gtk_minor_version, gtk_micro_version);
21250 }
21251#endif /* defined (GTK_MAJOR_VERSION) ... */
21252 else
21253 {
21254 if ((gtk_major_version > major) ||
21255 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21256 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21257 {
21258 return 0;
21259 }
21260 else
21261 {
21262 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21263 gtk_major_version, gtk_minor_version, gtk_micro_version);
21264 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21265 major, minor, micro);
21266 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21267 printf("***\n");
21268 printf("*** If you have already installed a sufficiently new version, this error\n");
21269 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21270 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21271 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21272 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21273 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21274 printf("*** so that the correct libraries are found at run-time))\n");
21275 }
21276 }
21277 return 1;
21278}
21279
21280_ACEOF
21281rm -f conftest$ac_exeext
21282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21283 (eval $ac_link) 2>&5
21284 ac_status=$?
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; }; then
21292 :
21293else
21294 echo "$as_me: program exited with status $ac_status" >&5
21295echo "$as_me: failed program was:" >&5
21296sed 's/^/| /' conftest.$ac_ext >&5
21297
21298( exit $ac_status )
21299no_gtk=yes
21300fi
8a7b1113 21301rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21302fi
21303 CFLAGS="$ac_save_CFLAGS"
21304 LIBS="$ac_save_LIBS"
21305 fi
21306 fi
21307 if test "x$no_gtk" = x ; then
21308 echo "$as_me:$LINENO: result: yes" >&5
21309echo "${ECHO_T}yes" >&6
21310 wx_cv_lib_gtk=1.2.7
21311 else
21312 echo "$as_me:$LINENO: result: no" >&5
21313echo "${ECHO_T}no" >&6
21314 if test "$GTK_CONFIG" = "no" ; then
21315 echo "*** The gtk-config script installed by GTK could not be found"
21316 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21317 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21318 echo "*** full path to gtk-config."
21319 else
21320 if test -f conf.gtktest ; then
21321 :
21322 else
21323 echo "*** Could not run GTK test program, checking why..."
21324 CFLAGS="$CFLAGS $GTK_CFLAGS"
21325 LIBS="$LIBS $GTK_LIBS"
21326 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 21327#line $LINENO "configure"
a848cd7e
SC
21328/* confdefs.h. */
21329_ACEOF
21330cat confdefs.h >>conftest.$ac_ext
21331cat >>conftest.$ac_ext <<_ACEOF
21332/* end confdefs.h. */
21333
21334#include <gtk/gtk.h>
21335#include <stdio.h>
21336
21337int
21338main ()
21339{
21340 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21341 ;
21342 return 0;
21343}
21344_ACEOF
21345rm -f conftest.$ac_objext conftest$ac_exeext
21346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 21347 (eval $ac_link) 2>&5
a848cd7e 21348 ac_status=$?
a848cd7e
SC
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } &&
8a7b1113 21351 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21353 (eval $ac_try) 2>&5
21354 ac_status=$?
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); }; }; then
21357 echo "*** The test program compiled, but did not run. This usually means"
21358 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21359 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21360 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21361 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21362 echo "*** is required on your system"
21363 echo "***"
21364 echo "*** If you have an old version installed, it is best to remove it, although"
21365 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21366 echo "***"
21367 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21368 echo "*** came with the system with the command"
21369 echo "***"
21370 echo "*** rpm --erase --nodeps gtk gtk-devel"
21371else
21372 echo "$as_me: failed program was:" >&5
21373sed 's/^/| /' conftest.$ac_ext >&5
21374
21375 echo "*** The test program failed to compile or link. See the file config.log for the"
21376 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21377 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
21378 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
21379fi
8a7b1113 21380rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21381 CFLAGS="$ac_save_CFLAGS"
21382 LIBS="$ac_save_LIBS"
21383 fi
21384 fi
21385 GTK_CFLAGS=""
21386 GTK_LIBS=""
21387 :
21388 fi
21389
21390
21391 rm -f conf.gtktest
21392
21393
21394 if test -z "$wx_cv_lib_gtk"; then
21395
21396# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21397if test "${with_gtk_prefix+set}" = set; then
21398 withval="$with_gtk_prefix"
21399 gtk_config_prefix="$withval"
21400else
21401 gtk_config_prefix=""
21402fi;
21403
21404# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21405if test "${with_gtk_exec_prefix+set}" = set; then
21406 withval="$with_gtk_exec_prefix"
21407 gtk_config_exec_prefix="$withval"
21408else
21409 gtk_config_exec_prefix=""
21410fi;
21411# Check whether --enable-gtktest or --disable-gtktest was given.
21412if test "${enable_gtktest+set}" = set; then
21413 enableval="$enable_gtktest"
21414
21415else
21416 enable_gtktest=yes
21417fi;
21418
21419 for module in . $GTK_MODULES
21420 do
21421 case "$module" in
21422 gthread)
21423 gtk_config_args="$gtk_config_args gthread"
21424 ;;
21425 esac
21426 done
21427
21428 if test x$gtk_config_exec_prefix != x ; then
21429 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21430 if test x${GTK_CONFIG+set} != xset ; then
21431 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21432 fi
21433 fi
21434 if test x$gtk_config_prefix != x ; then
21435 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21436 if test x${GTK_CONFIG+set} != xset ; then
21437 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21438 fi
21439 fi
21440
21441 # Extract the first word of "gtk-config", so it can be a program name with args.
21442set dummy gtk-config; ac_word=$2
21443echo "$as_me:$LINENO: checking for $ac_word" >&5
21444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21445if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21447else
21448 case $GTK_CONFIG in
21449 [\\/]* | ?:[\\/]*)
21450 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21451 ;;
21452 *)
21453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21454for as_dir in $PATH
21455do
21456 IFS=$as_save_IFS
21457 test -z "$as_dir" && as_dir=.
21458 for ac_exec_ext in '' $ac_executable_extensions; do
21459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21460 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21462 break 2
21463 fi
21464done
21465done
21466
21467 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21468 ;;
21469esac
21470fi
21471GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21472
21473if test -n "$GTK_CONFIG"; then
21474 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21475echo "${ECHO_T}$GTK_CONFIG" >&6
21476else
21477 echo "$as_me:$LINENO: result: no" >&5
21478echo "${ECHO_T}no" >&6
21479fi
21480
21481 min_gtk_version=1.2.3
21482 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21483echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21484 no_gtk=""
21485 if test "$GTK_CONFIG" = "no" ; then
21486 no_gtk=yes
21487 else
21488 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21489 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21490 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21491 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21492 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21493 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21494 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21495 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21496 if test "x$enable_gtktest" = "xyes" ; then
21497 ac_save_CFLAGS="$CFLAGS"
21498 ac_save_LIBS="$LIBS"
21499 CFLAGS="$CFLAGS $GTK_CFLAGS"
21500 LIBS="$GTK_LIBS $LIBS"
21501 rm -f conf.gtktest
21502 if test "$cross_compiling" = yes; then
21503 echo $ac_n "cross compiling; assumed OK... $ac_c"
21504else
21505 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 21506#line $LINENO "configure"
a848cd7e
SC
21507/* confdefs.h. */
21508_ACEOF
21509cat confdefs.h >>conftest.$ac_ext
21510cat >>conftest.$ac_ext <<_ACEOF
21511/* end confdefs.h. */
21512
21513#include <gtk/gtk.h>
21514#include <stdio.h>
21515#include <stdlib.h>
21516
21517int
21518main ()
21519{
21520 int major, minor, micro;
21521 char *tmp_version;
21522
21523 system ("touch conf.gtktest");
21524
21525 /* HP/UX 9 (%@#!) writes to sscanf strings */
21526 tmp_version = g_strdup("$min_gtk_version");
21527 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21528 printf("%s, bad version string\n", "$min_gtk_version");
21529 exit(1);
21530 }
21531
21532 if ((gtk_major_version != $gtk_config_major_version) ||
21533 (gtk_minor_version != $gtk_config_minor_version) ||
21534 (gtk_micro_version != $gtk_config_micro_version))
21535 {
21536 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21537 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21538 gtk_major_version, gtk_minor_version, gtk_micro_version);
21539 printf ("*** was found! If gtk-config was correct, then it is best\n");
21540 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21541 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21542 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21543 printf("*** required on your system.\n");
21544 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21545 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21546 printf("*** before re-running configure\n");
21547 }
21548#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21549 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21550 (gtk_minor_version != GTK_MINOR_VERSION) ||
21551 (gtk_micro_version != GTK_MICRO_VERSION))
21552 {
21553 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21554 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21555 printf("*** library (version %d.%d.%d)\n",
21556 gtk_major_version, gtk_minor_version, gtk_micro_version);
21557 }
21558#endif /* defined (GTK_MAJOR_VERSION) ... */
21559 else
21560 {
21561 if ((gtk_major_version > major) ||
21562 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21563 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21564 {
21565 return 0;
21566 }
21567 else
21568 {
21569 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21570 gtk_major_version, gtk_minor_version, gtk_micro_version);
21571 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21572 major, minor, micro);
21573 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21574 printf("***\n");
21575 printf("*** If you have already installed a sufficiently new version, this error\n");
21576 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21577 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21578 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21579 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21580 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21581 printf("*** so that the correct libraries are found at run-time))\n");
21582 }
21583 }
21584 return 1;
21585}
21586
21587_ACEOF
21588rm -f conftest$ac_exeext
21589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21590 (eval $ac_link) 2>&5
21591 ac_status=$?
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; }; then
21599 :
21600else
21601 echo "$as_me: program exited with status $ac_status" >&5
21602echo "$as_me: failed program was:" >&5
21603sed 's/^/| /' conftest.$ac_ext >&5
21604
21605( exit $ac_status )
21606no_gtk=yes
21607fi
8a7b1113 21608rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21609fi
21610 CFLAGS="$ac_save_CFLAGS"
21611 LIBS="$ac_save_LIBS"
21612 fi
21613 fi
21614 if test "x$no_gtk" = x ; then
21615 echo "$as_me:$LINENO: result: yes" >&5
21616echo "${ECHO_T}yes" >&6
21617 wx_cv_lib_gtk=1.2.3
21618 else
21619 echo "$as_me:$LINENO: result: no" >&5
21620echo "${ECHO_T}no" >&6
21621 if test "$GTK_CONFIG" = "no" ; then
21622 echo "*** The gtk-config script installed by GTK could not be found"
21623 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21624 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21625 echo "*** full path to gtk-config."
21626 else
21627 if test -f conf.gtktest ; then
21628 :
21629 else
21630 echo "*** Could not run GTK test program, checking why..."
21631 CFLAGS="$CFLAGS $GTK_CFLAGS"
21632 LIBS="$LIBS $GTK_LIBS"
21633 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 21634#line $LINENO "configure"
a848cd7e
SC
21635/* confdefs.h. */
21636_ACEOF
21637cat confdefs.h >>conftest.$ac_ext
21638cat >>conftest.$ac_ext <<_ACEOF
21639/* end confdefs.h. */
21640
21641#include <gtk/gtk.h>
21642#include <stdio.h>
21643
21644int
21645main ()
21646{
21647 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21648 ;
21649 return 0;
21650}
21651_ACEOF
21652rm -f conftest.$ac_objext conftest$ac_exeext
21653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 21654 (eval $ac_link) 2>&5
a848cd7e 21655 ac_status=$?
a848cd7e
SC
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } &&
8a7b1113 21658 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21660 (eval $ac_try) 2>&5
21661 ac_status=$?
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; }; then
21664 echo "*** The test program compiled, but did not run. This usually means"
21665 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21666 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21667 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21668 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21669 echo "*** is required on your system"
21670 echo "***"
21671 echo "*** If you have an old version installed, it is best to remove it, although"
21672 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21673 echo "***"
21674 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21675 echo "*** came with the system with the command"
21676 echo "***"
21677 echo "*** rpm --erase --nodeps gtk gtk-devel"
21678else
21679 echo "$as_me: failed program was:" >&5
21680sed 's/^/| /' conftest.$ac_ext >&5
21681
21682 echo "*** The test program failed to compile or link. See the file config.log for the"
21683 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21684 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
21685 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
21686fi
8a7b1113 21687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21688 CFLAGS="$ac_save_CFLAGS"
21689 LIBS="$ac_save_LIBS"
21690 fi
21691 fi
21692 GTK_CFLAGS=""
21693 GTK_LIBS=""
21694 :
21695 fi
21696
21697
21698 rm -f conf.gtktest
21699
21700 fi
21701 fi
21702
21703 if test -z "$wx_cv_lib_gtk"; then
21704 wx_cv_lib_gtk=none
21705 else
21706 wx_cv_cflags_gtk=$GTK_CFLAGS
21707 wx_cv_libs_gtk=$GTK_LIBS
21708 fi
21709
21710
21711fi
21712
21713
21714 if test "$gtk_version_cached" = 1; then
21715 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
21716echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21717 fi
21718
21719 case "$wx_cv_lib_gtk" in
21720 2.0) WXGTK20=1
21721 TOOLKIT_VERSION=2
21722 ;;
21723 1.2.7) WXGTK127=1
21724 WXGTK12=1
21725 ;;
21726 1.2.3) WXGTK12=1
21727 ;;
21728 *) { { echo "$as_me:$LINENO: error:
21729Please check that gtk-config is in path, the directory
21730where GTK+ libraries are installed (returned by
21731'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21732equivalent variable and GTK+ is version 1.2.3 or above.
21733 " >&5
21734echo "$as_me: error:
21735Please check that gtk-config is in path, the directory
21736where GTK+ libraries are installed (returned by
21737'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21738equivalent variable and GTK+ is version 1.2.3 or above.
21739 " >&2;}
21740 { (exit 1); exit 1; }; }
21741 ;;
21742 esac
21743
21744 if test "$WXGTK20" = 1; then
21745 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21746
21747 succeeded=no
21748
21749 if test -z "$PKG_CONFIG"; then
21750 # Extract the first word of "pkg-config", so it can be a program name with args.
21751set dummy pkg-config; ac_word=$2
21752echo "$as_me:$LINENO: checking for $ac_word" >&5
21753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21754if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21755 echo $ECHO_N "(cached) $ECHO_C" >&6
21756else
21757 case $PKG_CONFIG in
21758 [\\/]* | ?:[\\/]*)
21759 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21760 ;;
21761 *)
21762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21763for as_dir in $PATH
21764do
21765 IFS=$as_save_IFS
21766 test -z "$as_dir" && as_dir=.
21767 for ac_exec_ext in '' $ac_executable_extensions; do
21768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21769 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21771 break 2
21772 fi
21773done
21774done
21775
21776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21777 ;;
21778esac
21779fi
21780PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21781
21782if test -n "$PKG_CONFIG"; then
21783 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21784echo "${ECHO_T}$PKG_CONFIG" >&6
21785else
21786 echo "$as_me:$LINENO: result: no" >&5
21787echo "${ECHO_T}no" >&6
21788fi
21789
21790 fi
21791
21792 if test "$PKG_CONFIG" = "no" ; then
21793 echo "*** The pkg-config script could not be found. Make sure it is"
21794 echo "*** in your path, or set the PKG_CONFIG environment variable"
21795 echo "*** to the full path to pkg-config."
21796 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21797 else
21798 PKG_CONFIG_MIN_VERSION=0.9.0
21799 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21800 echo "$as_me:$LINENO: checking for pangoft2" >&5
21801echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
21802
21803 if $PKG_CONFIG --exists "pangoft2" ; then
21804 echo "$as_me:$LINENO: result: yes" >&5
21805echo "${ECHO_T}yes" >&6
21806 succeeded=yes
21807
21808 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
21809echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
21810 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
21811 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
21812echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
21813
21814 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
21815echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
21816 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
21817 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
21818echo "${ECHO_T}$PANGOFT2_LIBS" >&6
21819 else
21820 PANGOFT2_CFLAGS=""
21821 PANGOFT2_LIBS=""
21822 ## If we have a custom action on failure, don't print errors, but
21823 ## do set a variable so people can do so.
21824 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
21825
21826 fi
21827
21828
21829
21830 else
21831 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21832 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21833 fi
21834 fi
21835
21836 if test $succeeded = yes; then
21837
21838 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
21839 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
21840
21841 else
21842
21843 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
21844echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
21845 wxUSE_PRINTING_ARCHITECTURE="no"
21846
21847
21848 fi
21849
21850 fi
21851 else
21852 if test "$wxUSE_UNICODE" = "yes"; then
21853 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
21854echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
21855 wxUSE_UNICODE=no
21856 fi
21857 fi
21858
21859 if test "$USE_DARWIN" != 1; then
21860
21861for ac_func in poll
21862do
21863as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21864echo "$as_me:$LINENO: checking for $ac_func" >&5
21865echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21866if eval "test \"\${$as_ac_var+set}\" = set"; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21868else
21869 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 21870#line $LINENO "configure"
a848cd7e
SC
21871/* confdefs.h. */
21872_ACEOF
21873cat confdefs.h >>conftest.$ac_ext
21874cat >>conftest.$ac_ext <<_ACEOF
21875/* end confdefs.h. */
a848cd7e
SC
21876/* System header to define __stub macros and hopefully few prototypes,
21877 which can conflict with char $ac_func (); below.
21878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21879 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
21880#ifdef __STDC__
21881# include <limits.h>
21882#else
21883# include <assert.h>
21884#endif
a848cd7e
SC
21885/* Override any gcc2 internal prototype to avoid an error. */
21886#ifdef __cplusplus
21887extern "C"
21888{
21889#endif
21890/* We use char because int might match the return type of a gcc2
21891 builtin and then its argument prototype would still apply. */
21892char $ac_func ();
21893/* The GNU C library defines this for functions which it implements
21894 to always fail with ENOSYS. Some functions are actually named
21895 something starting with __ and the normal name is an alias. */
21896#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21897choke me
21898#else
21899char (*f) () = $ac_func;
21900#endif
21901#ifdef __cplusplus
21902}
21903#endif
21904
21905int
21906main ()
21907{
21908return f != $ac_func;
21909 ;
21910 return 0;
21911}
21912_ACEOF
21913rm -f conftest.$ac_objext conftest$ac_exeext
21914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 21915 (eval $ac_link) 2>&5
a848cd7e 21916 ac_status=$?
a848cd7e
SC
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } &&
8a7b1113 21919 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21921 (eval $ac_try) 2>&5
21922 ac_status=$?
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); }; }; then
21925 eval "$as_ac_var=yes"
21926else
21927 echo "$as_me: failed program was:" >&5
21928sed 's/^/| /' conftest.$ac_ext >&5
21929
21930eval "$as_ac_var=no"
21931fi
8a7b1113 21932rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21933fi
21934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21935echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21936if test `eval echo '${'$as_ac_var'}'` = yes; then
21937 cat >>confdefs.h <<_ACEOF
21938#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21939_ACEOF
21940
21941fi
21942done
21943
21944 fi
21945
21946 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
21947 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21948
21949 AFMINSTALL=afminstall
21950 TOOLKIT=GTK
21951 GUIDIST=GTK_DIST
21952
21953 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21954echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21955if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21956 echo $ECHO_N "(cached) $ECHO_C" >&6
21957else
21958 ac_check_lib_save_LIBS=$LIBS
21959LIBS="-lgdk $LIBS"
21960cat >conftest.$ac_ext <<_ACEOF
8a7b1113 21961#line $LINENO "configure"
a848cd7e
SC
21962/* confdefs.h. */
21963_ACEOF
21964cat confdefs.h >>conftest.$ac_ext
21965cat >>conftest.$ac_ext <<_ACEOF
21966/* end confdefs.h. */
21967
21968/* Override any gcc2 internal prototype to avoid an error. */
21969#ifdef __cplusplus
21970extern "C"
21971#endif
21972/* We use char because int might match the return type of a gcc2
21973 builtin and then its argument prototype would still apply. */
21974char gdk_im_open ();
21975int
21976main ()
21977{
21978gdk_im_open ();
21979 ;
21980 return 0;
21981}
21982_ACEOF
21983rm -f conftest.$ac_objext conftest$ac_exeext
21984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 21985 (eval $ac_link) 2>&5
a848cd7e 21986 ac_status=$?
a848cd7e
SC
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } &&
8a7b1113 21989 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21995 ac_cv_lib_gdk_gdk_im_open=yes
21996else
21997 echo "$as_me: failed program was:" >&5
21998sed 's/^/| /' conftest.$ac_ext >&5
21999
22000ac_cv_lib_gdk_gdk_im_open=no
22001fi
8a7b1113 22002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22003LIBS=$ac_check_lib_save_LIBS
22004fi
22005echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22006echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22007if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22008 cat >>confdefs.h <<\_ACEOF
22009#define HAVE_XIM 1
22010_ACEOF
22011
22012fi
22013
22014
22015
22016 if test "$wxUSE_GPE" = "yes"; then
22017 echo "$as_me:$LINENO: checking for gpewidget library" >&5
22018echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
22019
22020ac_find_libraries=
22021for ac_dir in $SEARCH_LIB /usr/lib;
22022 do
22023 for ac_extension in a so sl dylib; do
22024 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
22025 ac_find_libraries=$ac_dir
22026 break 2
22027 fi
22028 done
22029 done
22030
22031 if test "$ac_find_libraries" != "" ; then
22032
22033 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22034 result=$?
22035 if test $result = 0; then
22036 ac_path_to_link=""
22037 else
22038 ac_path_to_link=" -L$ac_find_libraries"
22039 fi
22040
22041 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
22042 WXGPE=1
22043 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22044echo "${ECHO_T}found at $ac_find_libraries" >&6
22045 else
22046 echo "$as_me:$LINENO: result: not found" >&5
22047echo "${ECHO_T}not found" >&6
22048 fi
22049
22050 fi
22051 fi
22052
22053 if test "$wxUSE_MGL" = 1; then
22054 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22055echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
22056 if test "x$MGL_ROOT" = x ; then
22057 echo "$as_me:$LINENO: result: not found" >&5
22058echo "${ECHO_T}not found" >&6
22059 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
22060echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
22061 { (exit 1); exit 1; }; }
22062 else
22063 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
22064echo "${ECHO_T}$MGL_ROOT" >&6
22065 fi
22066
22067 echo "$as_me:$LINENO: checking for libmgl location" >&5
22068echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
22069 case "${host}" in
22070 *-*-linux* )
22071 if test "x$wxUSE_SHARED" = xyes ; then
22072 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
22073 else
22074 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
22075 fi
22076 ;;
22077 *-pc-msdosdjgpp )
22078 mgl_os_candidates="dos32/dj2"
22079 ;;
22080 *)
22081 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
22082echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
22083 { (exit 1); exit 1; }; }
22084 esac
22085
22086 mgl_lib_type=""
22087 mgl_os=""
22088
22089 for mgl_os_i in $mgl_os_candidates ; do
22090 if test "x$mgl_os" = x ; then
22091 if test "$wxUSE_DEBUG_FLAG" = yes ; then
22092 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
22093 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
22094 mgl_lib_type=debug
22095 mgl_os=$mgl_os_i
22096 fi
22097 fi
22098 if test "x$mgl_lib_type" = x ; then
22099 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
22100 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
22101 mgl_lib_type=release
22102 mgl_os=$mgl_os_i
22103 fi
22104 fi
22105 fi
22106 done
22107
22108 if test "x$mgl_os" = x ; then
22109 echo "$as_me:$LINENO: result: not found" >&5
22110echo "${ECHO_T}not found" >&6
22111 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
22112echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
22113 { (exit 1); exit 1; }; }
22114 fi
22115 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
22116echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
22117
22118 wxUSE_UNIVERSAL="yes"
22119
22120 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
22121 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
22122
22123 AFMINSTALL=afminstall
22124 TOOLKIT=MGL
22125 GUIDIST=MGL_DIST
22126 fi
22127
22128 if test "$wxUSE_MICROWIN" = 1; then
22129 echo "$as_me:$LINENO: checking for MicroWindows" >&5
22130echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
22131 if test "x$MICROWINDOWS" = x ; then
22132 echo "$as_me:$LINENO: result: not found" >&5
22133echo "${ECHO_T}not found" >&6
22134 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
22135echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
22136 { (exit 1); exit 1; }; }
22137 else
22138 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
22139echo "${ECHO_T}$MICROWINDOWS" >&6
22140 fi
22141
22142 if test -f $MICROWINDOWS/lib/libmwin.a; then
22143 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
22144echo "${ECHO_T}MicroWindows' libraries found." >&6
22145 else
22146 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
22147echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
22148 { (exit 1); exit 1; }; }
22149 fi
22150
22151 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
22152 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
22153
22154 wxUSE_UNIVERSAL="yes"
22155
22156 AFMINSTALL=afminstall
22157 TOOLKIT=MICROWIN
22158 GUIDIST=MICROWIN_DIST
22159
22160 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
22161 fi
22162
22163 if test "$wxUSE_X11" = 1; then
22164 echo "$as_me:$LINENO: checking for X" >&5
22165echo $ECHO_N "checking for X... $ECHO_C" >&6
22166
22167
22168# Check whether --with-x or --without-x was given.
22169if test "${with_x+set}" = set; then
22170 withval="$with_x"
22171
22172fi;
22173# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22174if test "x$with_x" = xno; then
22175 # The user explicitly disabled X.
22176 have_x=disabled
22177else
22178 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22179 # Both variables are already set.
22180 have_x=yes
22181 else
22182 if test "${ac_cv_have_x+set}" = set; then
22183 echo $ECHO_N "(cached) $ECHO_C" >&6
22184else
22185 # One or both of the vars are not set, and there is no cached value.
22186ac_x_includes=no ac_x_libraries=no
22187rm -fr conftest.dir
22188if mkdir conftest.dir; then
22189 cd conftest.dir
22190 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
22191 cat >Imakefile <<'_ACEOF'
22192acfindx:
22193 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
22194_ACEOF
22195 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22196 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22197 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22198 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22199 for ac_extension in a so sl; do
22200 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8a7b1113
VZ
22201 test -f $ac_im_libdir/libX11.$ac_extension; then
22202 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
22203 fi
22204 done
22205 # Screen out bogus values from the imake configuration. They are
22206 # bogus both because they are the default anyway, and because
22207 # using them would break gcc on systems where it needs fixed includes.
22208 case $ac_im_incroot in
22209 /usr/include) ;;
22210 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22211 esac
22212 case $ac_im_usrlibdir in
22213 /usr/lib | /lib) ;;
22214 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22215 esac
22216 fi
22217 cd ..
22218 rm -fr conftest.dir
22219fi
22220
22221# Standard set of common directories for X headers.
22222# Check X11 before X11Rn because it is often a symlink to the current release.
22223ac_x_header_dirs='
22224/usr/X11/include
22225/usr/X11R6/include
22226/usr/X11R5/include
22227/usr/X11R4/include
22228
22229/usr/include/X11
22230/usr/include/X11R6
22231/usr/include/X11R5
22232/usr/include/X11R4
22233
22234/usr/local/X11/include
22235/usr/local/X11R6/include
22236/usr/local/X11R5/include
22237/usr/local/X11R4/include
22238
22239/usr/local/include/X11
22240/usr/local/include/X11R6
22241/usr/local/include/X11R5
22242/usr/local/include/X11R4
22243
22244/usr/X386/include
22245/usr/x386/include
22246/usr/XFree86/include/X11
22247
22248/usr/include
22249/usr/local/include
22250/usr/unsupported/include
22251/usr/athena/include
22252/usr/local/x11r5/include
22253/usr/lpp/Xamples/include
22254
22255/usr/openwin/include
22256/usr/openwin/share/include'
22257
22258if test "$ac_x_includes" = no; then
22259 # Guess where to find include files, by looking for Intrinsic.h.
22260 # First, try using that file with no special directory specified.
22261 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 22262#line $LINENO "configure"
a848cd7e
SC
22263/* confdefs.h. */
22264_ACEOF
22265cat confdefs.h >>conftest.$ac_ext
22266cat >>conftest.$ac_ext <<_ACEOF
22267/* end confdefs.h. */
22268#include <X11/Intrinsic.h>
22269_ACEOF
22270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22272 ac_status=$?
22273 grep -v '^ *+' conftest.er1 >conftest.err
22274 rm -f conftest.er1
22275 cat conftest.err >&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } >/dev/null; then
22278 if test -s conftest.err; then
22279 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
22280 else
22281 ac_cpp_err=
22282 fi
22283else
22284 ac_cpp_err=yes
22285fi
22286if test -z "$ac_cpp_err"; then
22287 # We can compile using X headers with no special include directory.
22288ac_x_includes=
22289else
22290 echo "$as_me: failed program was:" >&5
22291sed 's/^/| /' conftest.$ac_ext >&5
22292
22293 for ac_dir in $ac_x_header_dirs; do
22294 if test -r "$ac_dir/X11/Intrinsic.h"; then
22295 ac_x_includes=$ac_dir
22296 break
22297 fi
22298done
22299fi
22300rm -f conftest.err conftest.$ac_ext
22301fi # $ac_x_includes = no
22302
22303if test "$ac_x_libraries" = no; then
22304 # Check for the libraries.
22305 # See if we find them without any special options.
22306 # Don't add to $LIBS permanently.
22307 ac_save_LIBS=$LIBS
22308 LIBS="-lXt $LIBS"
22309 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 22310#line $LINENO "configure"
a848cd7e
SC
22311/* confdefs.h. */
22312_ACEOF
22313cat confdefs.h >>conftest.$ac_ext
22314cat >>conftest.$ac_ext <<_ACEOF
22315/* end confdefs.h. */
22316#include <X11/Intrinsic.h>
22317int
22318main ()
22319{
22320XtMalloc (0)
22321 ;
22322 return 0;
22323}
22324_ACEOF
22325rm -f conftest.$ac_objext conftest$ac_exeext
22326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 22327 (eval $ac_link) 2>&5
a848cd7e 22328 ac_status=$?
a848cd7e
SC
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); } &&
8a7b1113 22331 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333 (eval $ac_try) 2>&5
22334 ac_status=$?
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); }; }; then
22337 LIBS=$ac_save_LIBS
22338# We can link X programs with no special library path.
22339ac_x_libraries=
22340else
22341 echo "$as_me: failed program was:" >&5
22342sed 's/^/| /' conftest.$ac_ext >&5
22343
22344LIBS=$ac_save_LIBS
22345for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22346do
22347 # Don't even attempt the hair of trying to link an X program!
22348 for ac_extension in a so sl; do
22349 if test -r $ac_dir/libXt.$ac_extension; then
22350 ac_x_libraries=$ac_dir
22351 break 2
22352 fi
22353 done
22354done
22355fi
8a7b1113 22356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22357fi # $ac_x_libraries = no
22358
22359if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
22360 # Didn't find X anywhere. Cache the known absence of X.
22361 ac_cv_have_x="have_x=no"
22362else
22363 # Record where we found X for the cache.
22364 ac_cv_have_x="have_x=yes \
8a7b1113 22365 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
22366fi
22367fi
22368
22369 fi
22370 eval "$ac_cv_have_x"
22371fi # $with_x != no
22372
22373if test "$have_x" != yes; then
22374 echo "$as_me:$LINENO: result: $have_x" >&5
22375echo "${ECHO_T}$have_x" >&6
22376 no_x=yes
22377else
22378 # If each of the values was on the command line, it overrides each guess.
22379 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22380 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22381 # Update the cache value to reflect the command line values.
22382 ac_cv_have_x="have_x=yes \
22383 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22384 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22385echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
22386fi
22387
22388if test "$no_x" = yes; then
22389 # Not all programs may use this symbol, but it does not hurt to define it.
22390
22391cat >>confdefs.h <<\_ACEOF
22392#define X_DISPLAY_MISSING 1
22393_ACEOF
22394
22395 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22396else
22397 if test -n "$x_includes"; then
22398 X_CFLAGS="$X_CFLAGS -I$x_includes"
22399 fi
22400
22401 # It would also be nice to do this for all -L options, not just this one.
22402 if test -n "$x_libraries"; then
22403 X_LIBS="$X_LIBS -L$x_libraries"
22404 # For Solaris; some versions of Sun CC require a space after -R and
22405 # others require no space. Words are not sufficient . . . .
22406 case `(uname -sr) 2>/dev/null` in
22407 "SunOS 5"*)
22408 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22409echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22410 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22411 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 22412#line $LINENO "configure"
a848cd7e
SC
22413/* confdefs.h. */
22414_ACEOF
22415cat confdefs.h >>conftest.$ac_ext
22416cat >>conftest.$ac_ext <<_ACEOF
22417/* end confdefs.h. */
22418
22419int
22420main ()
22421{
22422
22423 ;
22424 return 0;
22425}
22426_ACEOF
22427rm -f conftest.$ac_objext conftest$ac_exeext
22428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 22429 (eval $ac_link) 2>&5
a848cd7e 22430 ac_status=$?
a848cd7e
SC
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); } &&
8a7b1113 22433 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; }; then
22439 ac_R_nospace=yes
22440else
22441 echo "$as_me: failed program was:" >&5
22442sed 's/^/| /' conftest.$ac_ext >&5
22443
22444ac_R_nospace=no
22445fi
8a7b1113 22446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22447 if test $ac_R_nospace = yes; then
22448 echo "$as_me:$LINENO: result: no" >&5
22449echo "${ECHO_T}no" >&6
22450 X_LIBS="$X_LIBS -R$x_libraries"
22451 else
22452 LIBS="$ac_xsave_LIBS -R $x_libraries"
22453 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 22454#line $LINENO "configure"
a848cd7e
SC
22455/* confdefs.h. */
22456_ACEOF
22457cat confdefs.h >>conftest.$ac_ext
22458cat >>conftest.$ac_ext <<_ACEOF
22459/* end confdefs.h. */
22460
22461int
22462main ()
22463{
22464
22465 ;
22466 return 0;
22467}
22468_ACEOF
22469rm -f conftest.$ac_objext conftest$ac_exeext
22470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 22471 (eval $ac_link) 2>&5
a848cd7e 22472 ac_status=$?
a848cd7e
SC
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } &&
8a7b1113 22475 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477 (eval $ac_try) 2>&5
22478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; }; then
22481 ac_R_space=yes
22482else
22483 echo "$as_me: failed program was:" >&5
22484sed 's/^/| /' conftest.$ac_ext >&5
22485
22486ac_R_space=no
22487fi
8a7b1113 22488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22489 if test $ac_R_space = yes; then
22490 echo "$as_me:$LINENO: result: yes" >&5
22491echo "${ECHO_T}yes" >&6
22492 X_LIBS="$X_LIBS -R $x_libraries"
22493 else
22494 echo "$as_me:$LINENO: result: neither works" >&5
22495echo "${ECHO_T}neither works" >&6
22496 fi
22497 fi
22498 LIBS=$ac_xsave_LIBS
22499 esac
22500 fi
22501
22502 # Check for system-dependent libraries X programs must link with.
22503 # Do this before checking for the system-independent R6 libraries
22504 # (-lICE), since we may need -lsocket or whatever for X linking.
22505
22506 if test "$ISC" = yes; then
22507 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22508 else
22509 # Martyn Johnson says this is needed for Ultrix, if the X
22510 # libraries were built with DECnet support. And Karl Berry says
22511 # the Alpha needs dnet_stub (dnet does not exist).
22512 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22513 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 22514#line $LINENO "configure"
a848cd7e
SC
22515/* confdefs.h. */
22516_ACEOF
22517cat confdefs.h >>conftest.$ac_ext
22518cat >>conftest.$ac_ext <<_ACEOF
22519/* end confdefs.h. */
22520
22521/* Override any gcc2 internal prototype to avoid an error. */
22522#ifdef __cplusplus
22523extern "C"
22524#endif
22525/* We use char because int might match the return type of a gcc2
22526 builtin and then its argument prototype would still apply. */
22527char XOpenDisplay ();
22528int
22529main ()
22530{
22531XOpenDisplay ();
22532 ;
22533 return 0;
22534}
22535_ACEOF
22536rm -f conftest.$ac_objext conftest$ac_exeext
22537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 22538 (eval $ac_link) 2>&5
a848cd7e 22539 ac_status=$?
a848cd7e
SC
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); } &&
8a7b1113 22542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22544 (eval $ac_try) 2>&5
22545 ac_status=$?
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); }; }; then
22548 :
22549else
22550 echo "$as_me: failed program was:" >&5
22551sed 's/^/| /' conftest.$ac_ext >&5
22552
22553echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22554echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22555if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22557else
22558 ac_check_lib_save_LIBS=$LIBS
22559LIBS="-ldnet $LIBS"
22560cat >conftest.$ac_ext <<_ACEOF
8a7b1113 22561#line $LINENO "configure"
a848cd7e
SC
22562/* confdefs.h. */
22563_ACEOF
22564cat confdefs.h >>conftest.$ac_ext
22565cat >>conftest.$ac_ext <<_ACEOF
22566/* end confdefs.h. */
22567
22568/* Override any gcc2 internal prototype to avoid an error. */
22569#ifdef __cplusplus
22570extern "C"
22571#endif
22572/* We use char because int might match the return type of a gcc2
22573 builtin and then its argument prototype would still apply. */
22574char dnet_ntoa ();
22575int
22576main ()
22577{
22578dnet_ntoa ();
22579 ;
22580 return 0;
22581}
22582_ACEOF
22583rm -f conftest.$ac_objext conftest$ac_exeext
22584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 22585 (eval $ac_link) 2>&5
a848cd7e 22586 ac_status=$?
a848cd7e
SC
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); } &&
8a7b1113 22589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22591 (eval $ac_try) 2>&5
22592 ac_status=$?
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); }; }; then
22595 ac_cv_lib_dnet_dnet_ntoa=yes
22596else
22597 echo "$as_me: failed program was:" >&5
22598sed 's/^/| /' conftest.$ac_ext >&5
22599
22600ac_cv_lib_dnet_dnet_ntoa=no
22601fi
8a7b1113 22602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22603LIBS=$ac_check_lib_save_LIBS
22604fi
22605echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22606echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22607if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22608 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22609fi
22610
22611 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22612 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22613echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22614if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22615 echo $ECHO_N "(cached) $ECHO_C" >&6
22616else
22617 ac_check_lib_save_LIBS=$LIBS
22618LIBS="-ldnet_stub $LIBS"
22619cat >conftest.$ac_ext <<_ACEOF
8a7b1113 22620#line $LINENO "configure"
a848cd7e
SC
22621/* confdefs.h. */
22622_ACEOF
22623cat confdefs.h >>conftest.$ac_ext
22624cat >>conftest.$ac_ext <<_ACEOF
22625/* end confdefs.h. */
22626
22627/* Override any gcc2 internal prototype to avoid an error. */
22628#ifdef __cplusplus
22629extern "C"
22630#endif
22631/* We use char because int might match the return type of a gcc2
22632 builtin and then its argument prototype would still apply. */
22633char dnet_ntoa ();
22634int
22635main ()
22636{
22637dnet_ntoa ();
22638 ;
22639 return 0;
22640}
22641_ACEOF
22642rm -f conftest.$ac_objext conftest$ac_exeext
22643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 22644 (eval $ac_link) 2>&5
a848cd7e 22645 ac_status=$?
a848cd7e
SC
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); } &&
8a7b1113 22648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22650 (eval $ac_try) 2>&5
22651 ac_status=$?
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); }; }; then
22654 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22655else
22656 echo "$as_me: failed program was:" >&5
22657sed 's/^/| /' conftest.$ac_ext >&5
22658
22659ac_cv_lib_dnet_stub_dnet_ntoa=no
22660fi
8a7b1113 22661rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22662LIBS=$ac_check_lib_save_LIBS
22663fi
22664echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22665echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22666if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22667 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22668fi
22669
22670 fi
22671fi
8a7b1113 22672rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22673 LIBS="$ac_xsave_LIBS"
22674
22675 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22676 # to get the SysV transport functions.
22677 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22678 # needs -lnsl.
22679 # The nsl library prevents programs from opening the X display
22680 # on Irix 5.2, according to T.E. Dickey.
22681 # The functions gethostbyname, getservbyname, and inet_addr are
22682 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22683 echo "$as_me:$LINENO: checking for gethostbyname" >&5
22684echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22685if test "${ac_cv_func_gethostbyname+set}" = set; then
22686 echo $ECHO_N "(cached) $ECHO_C" >&6
22687else
22688 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 22689#line $LINENO "configure"
a848cd7e
SC
22690/* confdefs.h. */
22691_ACEOF
22692cat confdefs.h >>conftest.$ac_ext
22693cat >>conftest.$ac_ext <<_ACEOF
22694/* end confdefs.h. */
a848cd7e
SC
22695/* System header to define __stub macros and hopefully few prototypes,
22696 which can conflict with char gethostbyname (); below.
22697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22698 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
22699#ifdef __STDC__
22700# include <limits.h>
22701#else
22702# include <assert.h>
22703#endif
a848cd7e
SC
22704/* Override any gcc2 internal prototype to avoid an error. */
22705#ifdef __cplusplus
22706extern "C"
22707{
22708#endif
22709/* We use char because int might match the return type of a gcc2
22710 builtin and then its argument prototype would still apply. */
22711char gethostbyname ();
22712/* The GNU C library defines this for functions which it implements
22713 to always fail with ENOSYS. Some functions are actually named
22714 something starting with __ and the normal name is an alias. */
22715#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22716choke me
22717#else
22718char (*f) () = gethostbyname;
22719#endif
22720#ifdef __cplusplus
22721}
22722#endif
22723
22724int
22725main ()
22726{
22727return f != gethostbyname;
22728 ;
22729 return 0;
22730}
22731_ACEOF
22732rm -f conftest.$ac_objext conftest$ac_exeext
22733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 22734 (eval $ac_link) 2>&5
a848cd7e 22735 ac_status=$?
a848cd7e
SC
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } &&
8a7b1113 22738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22741 ac_status=$?
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; }; then
22744 ac_cv_func_gethostbyname=yes
22745else
22746 echo "$as_me: failed program was:" >&5
22747sed 's/^/| /' conftest.$ac_ext >&5
22748
22749ac_cv_func_gethostbyname=no
22750fi
8a7b1113 22751rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22752fi
22753echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22754echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
22755
22756 if test $ac_cv_func_gethostbyname = no; then
22757 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22758echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22759if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22760 echo $ECHO_N "(cached) $ECHO_C" >&6
22761else
22762 ac_check_lib_save_LIBS=$LIBS
22763LIBS="-lnsl $LIBS"
22764cat >conftest.$ac_ext <<_ACEOF
8a7b1113 22765#line $LINENO "configure"
a848cd7e
SC
22766/* confdefs.h. */
22767_ACEOF
22768cat confdefs.h >>conftest.$ac_ext
22769cat >>conftest.$ac_ext <<_ACEOF
22770/* end confdefs.h. */
22771
22772/* Override any gcc2 internal prototype to avoid an error. */
22773#ifdef __cplusplus
22774extern "C"
22775#endif
22776/* We use char because int might match the return type of a gcc2
22777 builtin and then its argument prototype would still apply. */
22778char gethostbyname ();
22779int
22780main ()
22781{
22782gethostbyname ();
22783 ;
22784 return 0;
22785}
22786_ACEOF
22787rm -f conftest.$ac_objext conftest$ac_exeext
22788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 22789 (eval $ac_link) 2>&5
a848cd7e 22790 ac_status=$?
a848cd7e
SC
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } &&
8a7b1113 22793 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795 (eval $ac_try) 2>&5
22796 ac_status=$?
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); }; }; then
22799 ac_cv_lib_nsl_gethostbyname=yes
22800else
22801 echo "$as_me: failed program was:" >&5
22802sed 's/^/| /' conftest.$ac_ext >&5
22803
22804ac_cv_lib_nsl_gethostbyname=no
22805fi
8a7b1113 22806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22807LIBS=$ac_check_lib_save_LIBS
22808fi
22809echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22810echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22811if test $ac_cv_lib_nsl_gethostbyname = yes; then
22812 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22813fi
22814
22815 if test $ac_cv_lib_nsl_gethostbyname = no; then
8a7b1113 22816 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
a848cd7e
SC
22817echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22818if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22819 echo $ECHO_N "(cached) $ECHO_C" >&6
22820else
22821 ac_check_lib_save_LIBS=$LIBS
22822LIBS="-lbsd $LIBS"
22823cat >conftest.$ac_ext <<_ACEOF
8a7b1113 22824#line $LINENO "configure"
a848cd7e
SC
22825/* confdefs.h. */
22826_ACEOF
22827cat confdefs.h >>conftest.$ac_ext
22828cat >>conftest.$ac_ext <<_ACEOF
22829/* end confdefs.h. */
22830
22831/* Override any gcc2 internal prototype to avoid an error. */
22832#ifdef __cplusplus
22833extern "C"
22834#endif
22835/* We use char because int might match the return type of a gcc2
22836 builtin and then its argument prototype would still apply. */
22837char gethostbyname ();
22838int
22839main ()
22840{
22841gethostbyname ();
22842 ;
22843 return 0;
22844}
22845_ACEOF
22846rm -f conftest.$ac_objext conftest$ac_exeext
22847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 22848 (eval $ac_link) 2>&5
a848cd7e 22849 ac_status=$?
a848cd7e
SC
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } &&
8a7b1113 22852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854 (eval $ac_try) 2>&5
22855 ac_status=$?
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; }; then
22858 ac_cv_lib_bsd_gethostbyname=yes
22859else
22860 echo "$as_me: failed program was:" >&5
22861sed 's/^/| /' conftest.$ac_ext >&5
22862
22863ac_cv_lib_bsd_gethostbyname=no
22864fi
8a7b1113 22865rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22866LIBS=$ac_check_lib_save_LIBS
22867fi
22868echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22869echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22870if test $ac_cv_lib_bsd_gethostbyname = yes; then
22871 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22872fi
22873
22874 fi
22875 fi
22876
22877 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22878 # socket/setsockopt and other routines are undefined under SCO ODT
22879 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
22880 # on later versions), says Simon Leinen: it contains gethostby*
22881 # variants that don't use the name server (or something). -lsocket
22882 # must be given before -lnsl if both are needed. We assume that
22883 # if connect needs -lnsl, so does gethostbyname.
22884 echo "$as_me:$LINENO: checking for connect" >&5
22885echo $ECHO_N "checking for connect... $ECHO_C" >&6
22886if test "${ac_cv_func_connect+set}" = set; then
22887 echo $ECHO_N "(cached) $ECHO_C" >&6
22888else
22889 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 22890#line $LINENO "configure"
a848cd7e
SC
22891/* confdefs.h. */
22892_ACEOF
22893cat confdefs.h >>conftest.$ac_ext
22894cat >>conftest.$ac_ext <<_ACEOF
22895/* end confdefs.h. */
a848cd7e
SC
22896/* System header to define __stub macros and hopefully few prototypes,
22897 which can conflict with char connect (); below.
22898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22899 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
22900#ifdef __STDC__
22901# include <limits.h>
22902#else
22903# include <assert.h>
22904#endif
a848cd7e
SC
22905/* Override any gcc2 internal prototype to avoid an error. */
22906#ifdef __cplusplus
22907extern "C"
22908{
22909#endif
22910/* We use char because int might match the return type of a gcc2
22911 builtin and then its argument prototype would still apply. */
22912char connect ();
22913/* The GNU C library defines this for functions which it implements
22914 to always fail with ENOSYS. Some functions are actually named
22915 something starting with __ and the normal name is an alias. */
22916#if defined (__stub_connect) || defined (__stub___connect)
22917choke me
22918#else
22919char (*f) () = connect;
22920#endif
22921#ifdef __cplusplus
22922}
22923#endif
22924
22925int
22926main ()
22927{
22928return f != connect;
22929 ;
22930 return 0;
22931}
22932_ACEOF
22933rm -f conftest.$ac_objext conftest$ac_exeext
22934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 22935 (eval $ac_link) 2>&5
a848cd7e 22936 ac_status=$?
a848cd7e
SC
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); } &&
8a7b1113 22939 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22942 ac_status=$?
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
22945 ac_cv_func_connect=yes
22946else
22947 echo "$as_me: failed program was:" >&5
22948sed 's/^/| /' conftest.$ac_ext >&5
22949
22950ac_cv_func_connect=no
22951fi
8a7b1113 22952rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22953fi
22954echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22955echo "${ECHO_T}$ac_cv_func_connect" >&6
22956
22957 if test $ac_cv_func_connect = no; then
22958 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22959echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22960if test "${ac_cv_lib_socket_connect+set}" = set; then
22961 echo $ECHO_N "(cached) $ECHO_C" >&6
22962else
22963 ac_check_lib_save_LIBS=$LIBS
22964LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22965cat >conftest.$ac_ext <<_ACEOF
8a7b1113 22966#line $LINENO "configure"
a848cd7e
SC
22967/* confdefs.h. */
22968_ACEOF
22969cat confdefs.h >>conftest.$ac_ext
22970cat >>conftest.$ac_ext <<_ACEOF
22971/* end confdefs.h. */
22972
22973/* Override any gcc2 internal prototype to avoid an error. */
22974#ifdef __cplusplus
22975extern "C"
22976#endif
22977/* We use char because int might match the return type of a gcc2
22978 builtin and then its argument prototype would still apply. */
22979char connect ();
22980int
22981main ()
22982{
22983connect ();
22984 ;
22985 return 0;
22986}
22987_ACEOF
22988rm -f conftest.$ac_objext conftest$ac_exeext
22989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 22990 (eval $ac_link) 2>&5
a848cd7e 22991 ac_status=$?
a848cd7e
SC
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } &&
8a7b1113 22994 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22996 (eval $ac_try) 2>&5
22997 ac_status=$?
22998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999 (exit $ac_status); }; }; then
23000 ac_cv_lib_socket_connect=yes
23001else
23002 echo "$as_me: failed program was:" >&5
23003sed 's/^/| /' conftest.$ac_ext >&5
23004
23005ac_cv_lib_socket_connect=no
23006fi
8a7b1113 23007rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23008LIBS=$ac_check_lib_save_LIBS
23009fi
23010echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23011echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23012if test $ac_cv_lib_socket_connect = yes; then
23013 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23014fi
23015
23016 fi
23017
23018 # Guillermo Gomez says -lposix is necessary on A/UX.
23019 echo "$as_me:$LINENO: checking for remove" >&5
23020echo $ECHO_N "checking for remove... $ECHO_C" >&6
23021if test "${ac_cv_func_remove+set}" = set; then
23022 echo $ECHO_N "(cached) $ECHO_C" >&6
23023else
23024 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 23025#line $LINENO "configure"
a848cd7e
SC
23026/* confdefs.h. */
23027_ACEOF
23028cat confdefs.h >>conftest.$ac_ext
23029cat >>conftest.$ac_ext <<_ACEOF
23030/* end confdefs.h. */
a848cd7e
SC
23031/* System header to define __stub macros and hopefully few prototypes,
23032 which can conflict with char remove (); below.
23033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23034 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
23035#ifdef __STDC__
23036# include <limits.h>
23037#else
23038# include <assert.h>
23039#endif
a848cd7e
SC
23040/* Override any gcc2 internal prototype to avoid an error. */
23041#ifdef __cplusplus
23042extern "C"
23043{
23044#endif
23045/* We use char because int might match the return type of a gcc2
23046 builtin and then its argument prototype would still apply. */
23047char remove ();
23048/* The GNU C library defines this for functions which it implements
23049 to always fail with ENOSYS. Some functions are actually named
23050 something starting with __ and the normal name is an alias. */
23051#if defined (__stub_remove) || defined (__stub___remove)
23052choke me
23053#else
23054char (*f) () = remove;
23055#endif
23056#ifdef __cplusplus
23057}
23058#endif
23059
23060int
23061main ()
23062{
23063return f != remove;
23064 ;
23065 return 0;
23066}
23067_ACEOF
23068rm -f conftest.$ac_objext conftest$ac_exeext
23069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 23070 (eval $ac_link) 2>&5
a848cd7e 23071 ac_status=$?
a848cd7e
SC
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } &&
8a7b1113 23074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23077 ac_status=$?
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; }; then
23080 ac_cv_func_remove=yes
23081else
23082 echo "$as_me: failed program was:" >&5
23083sed 's/^/| /' conftest.$ac_ext >&5
23084
23085ac_cv_func_remove=no
23086fi
8a7b1113 23087rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23088fi
23089echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23090echo "${ECHO_T}$ac_cv_func_remove" >&6
23091
23092 if test $ac_cv_func_remove = no; then
23093 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23094echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23095if test "${ac_cv_lib_posix_remove+set}" = set; then
23096 echo $ECHO_N "(cached) $ECHO_C" >&6
23097else
23098 ac_check_lib_save_LIBS=$LIBS
23099LIBS="-lposix $LIBS"
23100cat >conftest.$ac_ext <<_ACEOF
8a7b1113 23101#line $LINENO "configure"
a848cd7e
SC
23102/* confdefs.h. */
23103_ACEOF
23104cat confdefs.h >>conftest.$ac_ext
23105cat >>conftest.$ac_ext <<_ACEOF
23106/* end confdefs.h. */
23107
23108/* Override any gcc2 internal prototype to avoid an error. */
23109#ifdef __cplusplus
23110extern "C"
23111#endif
23112/* We use char because int might match the return type of a gcc2
23113 builtin and then its argument prototype would still apply. */
23114char remove ();
23115int
23116main ()
23117{
23118remove ();
23119 ;
23120 return 0;
23121}
23122_ACEOF
23123rm -f conftest.$ac_objext conftest$ac_exeext
23124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 23125 (eval $ac_link) 2>&5
a848cd7e 23126 ac_status=$?
a848cd7e
SC
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } &&
8a7b1113 23129 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23131 (eval $ac_try) 2>&5
23132 ac_status=$?
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); }; }; then
23135 ac_cv_lib_posix_remove=yes
23136else
23137 echo "$as_me: failed program was:" >&5
23138sed 's/^/| /' conftest.$ac_ext >&5
23139
23140ac_cv_lib_posix_remove=no
23141fi
8a7b1113 23142rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23143LIBS=$ac_check_lib_save_LIBS
23144fi
23145echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23146echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23147if test $ac_cv_lib_posix_remove = yes; then
23148 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23149fi
23150
23151 fi
23152
23153 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23154 echo "$as_me:$LINENO: checking for shmat" >&5
23155echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23156if test "${ac_cv_func_shmat+set}" = set; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23158else
23159 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 23160#line $LINENO "configure"
a848cd7e
SC
23161/* confdefs.h. */
23162_ACEOF
23163cat confdefs.h >>conftest.$ac_ext
23164cat >>conftest.$ac_ext <<_ACEOF
23165/* end confdefs.h. */
a848cd7e
SC
23166/* System header to define __stub macros and hopefully few prototypes,
23167 which can conflict with char shmat (); below.
23168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23169 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
23170#ifdef __STDC__
23171# include <limits.h>
23172#else
23173# include <assert.h>
23174#endif
a848cd7e
SC
23175/* Override any gcc2 internal prototype to avoid an error. */
23176#ifdef __cplusplus
23177extern "C"
23178{
23179#endif
23180/* We use char because int might match the return type of a gcc2
23181 builtin and then its argument prototype would still apply. */
23182char shmat ();
23183/* The GNU C library defines this for functions which it implements
23184 to always fail with ENOSYS. Some functions are actually named
23185 something starting with __ and the normal name is an alias. */
23186#if defined (__stub_shmat) || defined (__stub___shmat)
23187choke me
23188#else
23189char (*f) () = shmat;
23190#endif
23191#ifdef __cplusplus
23192}
23193#endif
23194
23195int
23196main ()
23197{
23198return f != shmat;
23199 ;
23200 return 0;
23201}
23202_ACEOF
23203rm -f conftest.$ac_objext conftest$ac_exeext
23204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 23205 (eval $ac_link) 2>&5
a848cd7e 23206 ac_status=$?
a848cd7e
SC
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); } &&
8a7b1113 23209 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23212 ac_status=$?
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; }; then
23215 ac_cv_func_shmat=yes
23216else
23217 echo "$as_me: failed program was:" >&5
23218sed 's/^/| /' conftest.$ac_ext >&5
23219
23220ac_cv_func_shmat=no
23221fi
8a7b1113 23222rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23223fi
23224echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23225echo "${ECHO_T}$ac_cv_func_shmat" >&6
23226
23227 if test $ac_cv_func_shmat = no; then
23228 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23229echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23230if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23231 echo $ECHO_N "(cached) $ECHO_C" >&6
23232else
23233 ac_check_lib_save_LIBS=$LIBS
23234LIBS="-lipc $LIBS"
23235cat >conftest.$ac_ext <<_ACEOF
8a7b1113 23236#line $LINENO "configure"
a848cd7e
SC
23237/* confdefs.h. */
23238_ACEOF
23239cat confdefs.h >>conftest.$ac_ext
23240cat >>conftest.$ac_ext <<_ACEOF
23241/* end confdefs.h. */
23242
23243/* Override any gcc2 internal prototype to avoid an error. */
23244#ifdef __cplusplus
23245extern "C"
23246#endif
23247/* We use char because int might match the return type of a gcc2
23248 builtin and then its argument prototype would still apply. */
23249char shmat ();
23250int
23251main ()
23252{
23253shmat ();
23254 ;
23255 return 0;
23256}
23257_ACEOF
23258rm -f conftest.$ac_objext conftest$ac_exeext
23259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 23260 (eval $ac_link) 2>&5
a848cd7e 23261 ac_status=$?
a848cd7e
SC
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } &&
8a7b1113 23264 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266 (eval $ac_try) 2>&5
23267 ac_status=$?
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); }; }; then
23270 ac_cv_lib_ipc_shmat=yes
23271else
23272 echo "$as_me: failed program was:" >&5
23273sed 's/^/| /' conftest.$ac_ext >&5
23274
23275ac_cv_lib_ipc_shmat=no
23276fi
8a7b1113 23277rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23278LIBS=$ac_check_lib_save_LIBS
23279fi
23280echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23281echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23282if test $ac_cv_lib_ipc_shmat = yes; then
23283 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23284fi
23285
23286 fi
23287 fi
23288
23289 # Check for libraries that X11R6 Xt/Xaw programs need.
23290 ac_save_LDFLAGS=$LDFLAGS
23291 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23292 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23293 # check for ICE first), but we must link in the order -lSM -lICE or
23294 # we get undefined symbols. So assume we have SM if we have ICE.
23295 # These have to be linked with before -lX11, unlike the other
23296 # libraries we check for below, so use a different variable.
23297 # John Interrante, Karl Berry
23298 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23299echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23300if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23301 echo $ECHO_N "(cached) $ECHO_C" >&6
23302else
23303 ac_check_lib_save_LIBS=$LIBS
23304LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23305cat >conftest.$ac_ext <<_ACEOF
8a7b1113 23306#line $LINENO "configure"
a848cd7e
SC
23307/* confdefs.h. */
23308_ACEOF
23309cat confdefs.h >>conftest.$ac_ext
23310cat >>conftest.$ac_ext <<_ACEOF
23311/* end confdefs.h. */
23312
23313/* Override any gcc2 internal prototype to avoid an error. */
23314#ifdef __cplusplus
23315extern "C"
23316#endif
23317/* We use char because int might match the return type of a gcc2
23318 builtin and then its argument prototype would still apply. */
23319char IceConnectionNumber ();
23320int
23321main ()
23322{
23323IceConnectionNumber ();
23324 ;
23325 return 0;
23326}
23327_ACEOF
23328rm -f conftest.$ac_objext conftest$ac_exeext
23329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 23330 (eval $ac_link) 2>&5
a848cd7e 23331 ac_status=$?
a848cd7e
SC
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
8a7b1113 23334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336 (eval $ac_try) 2>&5
23337 ac_status=$?
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; }; then
23340 ac_cv_lib_ICE_IceConnectionNumber=yes
23341else
23342 echo "$as_me: failed program was:" >&5
23343sed 's/^/| /' conftest.$ac_ext >&5
23344
23345ac_cv_lib_ICE_IceConnectionNumber=no
23346fi
8a7b1113 23347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23348LIBS=$ac_check_lib_save_LIBS
23349fi
23350echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23351echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23352if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23353 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23354fi
23355
23356 LDFLAGS=$ac_save_LDFLAGS
23357
23358fi
23359
23360
23361 if test "$no_x" = "yes"; then
23362 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23363echo "$as_me: error: X11 not found" >&2;}
23364 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
23365 fi
23366
23367 GUI_TK_LIBRARY="$X_LIBS"
23368 TOOLKIT_INCLUDE="$X_CFLAGS"
23369 AFMINSTALL=afminstall
23370 COMPILED_X_PROGRAM=0
23371
23372 if test "$wxUSE_NANOX" = "yes"; then
23373 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
23374echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
23375 if test "x$MICROWIN" = x ; then
23376 echo "$as_me:$LINENO: result: not found" >&5
23377echo "${ECHO_T}not found" >&6
23378 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
23379echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
23380 { (exit 1); exit 1; }; }
23381 else
23382 echo "$as_me:$LINENO: result: $MICROWIN" >&5
23383echo "${ECHO_T}$MICROWIN" >&6
23384 cat >>confdefs.h <<\_ACEOF
23385#define wxUSE_NANOX 1
23386_ACEOF
23387
23388 fi
23389 fi
23390
23391 if test "$wxUSE_UNICODE" = "yes"; then
23392
23393 succeeded=no
23394
23395 if test -z "$PKG_CONFIG"; then
23396 # Extract the first word of "pkg-config", so it can be a program name with args.
23397set dummy pkg-config; ac_word=$2
23398echo "$as_me:$LINENO: checking for $ac_word" >&5
23399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23400if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23401 echo $ECHO_N "(cached) $ECHO_C" >&6
23402else
23403 case $PKG_CONFIG in
23404 [\\/]* | ?:[\\/]*)
23405 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23406 ;;
23407 *)
23408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23409for as_dir in $PATH
23410do
23411 IFS=$as_save_IFS
23412 test -z "$as_dir" && as_dir=.
23413 for ac_exec_ext in '' $ac_executable_extensions; do
23414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23415 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23417 break 2
23418 fi
23419done
23420done
23421
23422 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23423 ;;
23424esac
23425fi
23426PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23427
23428if test -n "$PKG_CONFIG"; then
23429 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23430echo "${ECHO_T}$PKG_CONFIG" >&6
23431else
23432 echo "$as_me:$LINENO: result: no" >&5
23433echo "${ECHO_T}no" >&6
23434fi
23435
23436 fi
23437
23438 if test "$PKG_CONFIG" = "no" ; then
23439 echo "*** The pkg-config script could not be found. Make sure it is"
23440 echo "*** in your path, or set the PKG_CONFIG environment variable"
23441 echo "*** to the full path to pkg-config."
23442 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23443 else
23444 PKG_CONFIG_MIN_VERSION=0.9.0
23445 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23446 echo "$as_me:$LINENO: checking for pangox" >&5
23447echo $ECHO_N "checking for pangox... $ECHO_C" >&6
23448
23449 if $PKG_CONFIG --exists "pangox" ; then
23450 echo "$as_me:$LINENO: result: yes" >&5
23451echo "${ECHO_T}yes" >&6
23452 succeeded=yes
23453
23454 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
23455echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
23456 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
23457 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
23458echo "${ECHO_T}$PANGOX_CFLAGS" >&6
23459
23460 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
23461echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
23462 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
23463 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
23464echo "${ECHO_T}$PANGOX_LIBS" >&6
23465 else
23466 PANGOX_CFLAGS=""
23467 PANGOX_LIBS=""
23468 ## If we have a custom action on failure, don't print errors, but
23469 ## do set a variable so people can do so.
23470 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
23471
23472 fi
23473
23474
23475
23476 else
23477 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23478 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23479 fi
23480 fi
23481
23482 if test $succeeded = yes; then
23483
23484 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
23485 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
23486
23487 else
23488
23489 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
23490echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
23491 { (exit 1); exit 1; }; }
23492
23493
23494 fi
23495
23496
23497 succeeded=no
23498
23499 if test -z "$PKG_CONFIG"; then
23500 # Extract the first word of "pkg-config", so it can be a program name with args.
23501set dummy pkg-config; ac_word=$2
23502echo "$as_me:$LINENO: checking for $ac_word" >&5
23503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23504if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23506else
23507 case $PKG_CONFIG in
23508 [\\/]* | ?:[\\/]*)
23509 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23510 ;;
23511 *)
23512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23513for as_dir in $PATH
23514do
23515 IFS=$as_save_IFS
23516 test -z "$as_dir" && as_dir=.
23517 for ac_exec_ext in '' $ac_executable_extensions; do
23518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23519 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23521 break 2
23522 fi
23523done
23524done
23525
23526 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23527 ;;
23528esac
23529fi
23530PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23531
23532if test -n "$PKG_CONFIG"; then
23533 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23534echo "${ECHO_T}$PKG_CONFIG" >&6
23535else
23536 echo "$as_me:$LINENO: result: no" >&5
23537echo "${ECHO_T}no" >&6
23538fi
23539
23540 fi
23541
23542 if test "$PKG_CONFIG" = "no" ; then
23543 echo "*** The pkg-config script could not be found. Make sure it is"
23544 echo "*** in your path, or set the PKG_CONFIG environment variable"
23545 echo "*** to the full path to pkg-config."
23546 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23547 else
23548 PKG_CONFIG_MIN_VERSION=0.9.0
23549 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23550 echo "$as_me:$LINENO: checking for pangoft2" >&5
23551echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23552
23553 if $PKG_CONFIG --exists "pangoft2" ; then
23554 echo "$as_me:$LINENO: result: yes" >&5
23555echo "${ECHO_T}yes" >&6
23556 succeeded=yes
23557
23558 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23559echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23560 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23561 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23562echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23563
23564 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23565echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23566 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23567 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23568echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23569 else
23570 PANGOFT2_CFLAGS=""
23571 PANGOFT2_LIBS=""
23572 ## If we have a custom action on failure, don't print errors, but
23573 ## do set a variable so people can do so.
23574 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23575
23576 fi
23577
23578
23579
23580 else
23581 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23582 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23583 fi
23584 fi
23585
23586 if test $succeeded = yes; then
23587
23588 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23589 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23590
23591 else
23592
23593 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23594echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23595 wxUSE_PRINTING_ARCHITECTURE="no"
23596
23597
23598 fi
23599
23600
23601 succeeded=no
23602
23603 if test -z "$PKG_CONFIG"; then
23604 # Extract the first word of "pkg-config", so it can be a program name with args.
23605set dummy pkg-config; ac_word=$2
23606echo "$as_me:$LINENO: checking for $ac_word" >&5
23607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23608if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23609 echo $ECHO_N "(cached) $ECHO_C" >&6
23610else
23611 case $PKG_CONFIG in
23612 [\\/]* | ?:[\\/]*)
23613 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23614 ;;
23615 *)
23616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23617for as_dir in $PATH
23618do
23619 IFS=$as_save_IFS
23620 test -z "$as_dir" && as_dir=.
23621 for ac_exec_ext in '' $ac_executable_extensions; do
23622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23623 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23625 break 2
23626 fi
23627done
23628done
23629
23630 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23631 ;;
23632esac
23633fi
23634PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23635
23636if test -n "$PKG_CONFIG"; then
23637 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23638echo "${ECHO_T}$PKG_CONFIG" >&6
23639else
23640 echo "$as_me:$LINENO: result: no" >&5
23641echo "${ECHO_T}no" >&6
23642fi
23643
23644 fi
23645
23646 if test "$PKG_CONFIG" = "no" ; then
23647 echo "*** The pkg-config script could not be found. Make sure it is"
23648 echo "*** in your path, or set the PKG_CONFIG environment variable"
23649 echo "*** to the full path to pkg-config."
23650 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23651 else
23652 PKG_CONFIG_MIN_VERSION=0.9.0
23653 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23654 echo "$as_me:$LINENO: checking for pangoxft" >&5
23655echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
23656
23657 if $PKG_CONFIG --exists "pangoxft" ; then
23658 echo "$as_me:$LINENO: result: yes" >&5
23659echo "${ECHO_T}yes" >&6
23660 succeeded=yes
23661
23662 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
23663echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
23664 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
23665 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
23666echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
23667
23668 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
23669echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
23670 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
23671 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
23672echo "${ECHO_T}$PANGOXFT_LIBS" >&6
23673 else
23674 PANGOXFT_CFLAGS=""
23675 PANGOXFT_LIBS=""
23676 ## If we have a custom action on failure, don't print errors, but
23677 ## do set a variable so people can do so.
23678 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
23679
23680 fi
23681
23682
23683
23684 else
23685 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23686 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23687 fi
23688 fi
23689
23690 if test $succeeded = yes; then
23691
23692 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
23693 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
23694
23695 else
23696
23697 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
23698echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
23699
23700
23701 fi
23702
23703 fi
23704
23705 wxUSE_UNIVERSAL="yes"
23706
23707 if test "$wxUSE_NANOX" = "yes"; then
23708 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
23709 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"
23710 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
23711 else
23712 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
23713 fi
23714
23715 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
23716 TOOLKIT=X11
23717 GUIDIST=X11_DIST
23718 fi
23719
23720 if test "$wxUSE_MOTIF" = 1; then
23721 if test "$no_x" = yes; then
23722 # Not all programs may use this symbol, but it does not hurt to define it.
23723
23724cat >>confdefs.h <<\_ACEOF
23725#define X_DISPLAY_MISSING 1
23726_ACEOF
23727
23728 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23729else
23730 if test -n "$x_includes"; then
23731 X_CFLAGS="$X_CFLAGS -I$x_includes"
23732 fi
23733
23734 # It would also be nice to do this for all -L options, not just this one.
23735 if test -n "$x_libraries"; then
23736 X_LIBS="$X_LIBS -L$x_libraries"
23737 # For Solaris; some versions of Sun CC require a space after -R and
23738 # others require no space. Words are not sufficient . . . .
23739 case `(uname -sr) 2>/dev/null` in
23740 "SunOS 5"*)
23741 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23742echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23743 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23744 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 23745#line $LINENO "configure"
a848cd7e
SC
23746/* confdefs.h. */
23747_ACEOF
23748cat confdefs.h >>conftest.$ac_ext
23749cat >>conftest.$ac_ext <<_ACEOF
23750/* end confdefs.h. */
23751
23752int
23753main ()
23754{
23755
23756 ;
23757 return 0;
23758}
23759_ACEOF
23760rm -f conftest.$ac_objext conftest$ac_exeext
23761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 23762 (eval $ac_link) 2>&5
a848cd7e 23763 ac_status=$?
a848cd7e
SC
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); } &&
8a7b1113 23766 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23768 (eval $ac_try) 2>&5
23769 ac_status=$?
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); }; }; then
23772 ac_R_nospace=yes
23773else
23774 echo "$as_me: failed program was:" >&5
23775sed 's/^/| /' conftest.$ac_ext >&5
23776
23777ac_R_nospace=no
23778fi
8a7b1113 23779rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23780 if test $ac_R_nospace = yes; then
23781 echo "$as_me:$LINENO: result: no" >&5
23782echo "${ECHO_T}no" >&6
23783 X_LIBS="$X_LIBS -R$x_libraries"
23784 else
23785 LIBS="$ac_xsave_LIBS -R $x_libraries"
23786 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 23787#line $LINENO "configure"
a848cd7e
SC
23788/* confdefs.h. */
23789_ACEOF
23790cat confdefs.h >>conftest.$ac_ext
23791cat >>conftest.$ac_ext <<_ACEOF
23792/* end confdefs.h. */
23793
23794int
23795main ()
23796{
23797
23798 ;
23799 return 0;
23800}
23801_ACEOF
23802rm -f conftest.$ac_objext conftest$ac_exeext
23803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 23804 (eval $ac_link) 2>&5
a848cd7e 23805 ac_status=$?
a848cd7e
SC
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } &&
8a7b1113 23808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23810 (eval $ac_try) 2>&5
23811 ac_status=$?
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); }; }; then
23814 ac_R_space=yes
23815else
23816 echo "$as_me: failed program was:" >&5
23817sed 's/^/| /' conftest.$ac_ext >&5
23818
23819ac_R_space=no
23820fi
8a7b1113 23821rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23822 if test $ac_R_space = yes; then
23823 echo "$as_me:$LINENO: result: yes" >&5
23824echo "${ECHO_T}yes" >&6
23825 X_LIBS="$X_LIBS -R $x_libraries"
23826 else
23827 echo "$as_me:$LINENO: result: neither works" >&5
23828echo "${ECHO_T}neither works" >&6
23829 fi
23830 fi
23831 LIBS=$ac_xsave_LIBS
23832 esac
23833 fi
23834
23835 # Check for system-dependent libraries X programs must link with.
23836 # Do this before checking for the system-independent R6 libraries
23837 # (-lICE), since we may need -lsocket or whatever for X linking.
23838
23839 if test "$ISC" = yes; then
23840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23841 else
23842 # Martyn Johnson says this is needed for Ultrix, if the X
23843 # libraries were built with DECnet support. And Karl Berry says
23844 # the Alpha needs dnet_stub (dnet does not exist).
23845 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23846 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 23847#line $LINENO "configure"
a848cd7e
SC
23848/* confdefs.h. */
23849_ACEOF
23850cat confdefs.h >>conftest.$ac_ext
23851cat >>conftest.$ac_ext <<_ACEOF
23852/* end confdefs.h. */
23853
23854/* Override any gcc2 internal prototype to avoid an error. */
23855#ifdef __cplusplus
23856extern "C"
23857#endif
23858/* We use char because int might match the return type of a gcc2
23859 builtin and then its argument prototype would still apply. */
23860char XOpenDisplay ();
23861int
23862main ()
23863{
23864XOpenDisplay ();
23865 ;
23866 return 0;
23867}
23868_ACEOF
23869rm -f conftest.$ac_objext conftest$ac_exeext
23870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 23871 (eval $ac_link) 2>&5
a848cd7e 23872 ac_status=$?
a848cd7e
SC
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); } &&
8a7b1113 23875 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877 (eval $ac_try) 2>&5
23878 ac_status=$?
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); }; }; then
23881 :
23882else
23883 echo "$as_me: failed program was:" >&5
23884sed 's/^/| /' conftest.$ac_ext >&5
23885
23886echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23887echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23888if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23889 echo $ECHO_N "(cached) $ECHO_C" >&6
23890else
23891 ac_check_lib_save_LIBS=$LIBS
23892LIBS="-ldnet $LIBS"
23893cat >conftest.$ac_ext <<_ACEOF
8a7b1113 23894#line $LINENO "configure"
a848cd7e
SC
23895/* confdefs.h. */
23896_ACEOF
23897cat confdefs.h >>conftest.$ac_ext
23898cat >>conftest.$ac_ext <<_ACEOF
23899/* end confdefs.h. */
23900
23901/* Override any gcc2 internal prototype to avoid an error. */
23902#ifdef __cplusplus
23903extern "C"
23904#endif
23905/* We use char because int might match the return type of a gcc2
23906 builtin and then its argument prototype would still apply. */
23907char dnet_ntoa ();
23908int
23909main ()
23910{
23911dnet_ntoa ();
23912 ;
23913 return 0;
23914}
23915_ACEOF
23916rm -f conftest.$ac_objext conftest$ac_exeext
23917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 23918 (eval $ac_link) 2>&5
a848cd7e 23919 ac_status=$?
a848cd7e
SC
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } &&
8a7b1113 23922 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23924 (eval $ac_try) 2>&5
23925 ac_status=$?
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); }; }; then
23928 ac_cv_lib_dnet_dnet_ntoa=yes
23929else
23930 echo "$as_me: failed program was:" >&5
23931sed 's/^/| /' conftest.$ac_ext >&5
23932
23933ac_cv_lib_dnet_dnet_ntoa=no
23934fi
8a7b1113 23935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23936LIBS=$ac_check_lib_save_LIBS
23937fi
23938echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23939echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23940if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23941 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23942fi
23943
23944 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23945 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23946echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23947if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23948 echo $ECHO_N "(cached) $ECHO_C" >&6
23949else
23950 ac_check_lib_save_LIBS=$LIBS
23951LIBS="-ldnet_stub $LIBS"
23952cat >conftest.$ac_ext <<_ACEOF
8a7b1113 23953#line $LINENO "configure"
a848cd7e
SC
23954/* confdefs.h. */
23955_ACEOF
23956cat confdefs.h >>conftest.$ac_ext
23957cat >>conftest.$ac_ext <<_ACEOF
23958/* end confdefs.h. */
23959
23960/* Override any gcc2 internal prototype to avoid an error. */
23961#ifdef __cplusplus
23962extern "C"
23963#endif
23964/* We use char because int might match the return type of a gcc2
23965 builtin and then its argument prototype would still apply. */
23966char dnet_ntoa ();
23967int
23968main ()
23969{
23970dnet_ntoa ();
23971 ;
23972 return 0;
23973}
23974_ACEOF
23975rm -f conftest.$ac_objext conftest$ac_exeext
23976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 23977 (eval $ac_link) 2>&5
a848cd7e 23978 ac_status=$?
a848cd7e
SC
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } &&
8a7b1113 23981 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983 (eval $ac_try) 2>&5
23984 ac_status=$?
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); }; }; then
23987 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23988else
23989 echo "$as_me: failed program was:" >&5
23990sed 's/^/| /' conftest.$ac_ext >&5
23991
23992ac_cv_lib_dnet_stub_dnet_ntoa=no
23993fi
8a7b1113 23994rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23995LIBS=$ac_check_lib_save_LIBS
23996fi
23997echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23998echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23999if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24000 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24001fi
24002
24003 fi
24004fi
8a7b1113 24005rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24006 LIBS="$ac_xsave_LIBS"
24007
24008 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24009 # to get the SysV transport functions.
24010 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24011 # needs -lnsl.
24012 # The nsl library prevents programs from opening the X display
24013 # on Irix 5.2, according to T.E. Dickey.
24014 # The functions gethostbyname, getservbyname, and inet_addr are
24015 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24016 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24017echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24018if test "${ac_cv_func_gethostbyname+set}" = set; then
24019 echo $ECHO_N "(cached) $ECHO_C" >&6
24020else
24021 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24022#line $LINENO "configure"
a848cd7e
SC
24023/* confdefs.h. */
24024_ACEOF
24025cat confdefs.h >>conftest.$ac_ext
24026cat >>conftest.$ac_ext <<_ACEOF
24027/* end confdefs.h. */
a848cd7e
SC
24028/* System header to define __stub macros and hopefully few prototypes,
24029 which can conflict with char gethostbyname (); below.
24030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24031 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
24032#ifdef __STDC__
24033# include <limits.h>
24034#else
24035# include <assert.h>
24036#endif
a848cd7e
SC
24037/* Override any gcc2 internal prototype to avoid an error. */
24038#ifdef __cplusplus
24039extern "C"
24040{
24041#endif
24042/* We use char because int might match the return type of a gcc2
24043 builtin and then its argument prototype would still apply. */
24044char gethostbyname ();
24045/* The GNU C library defines this for functions which it implements
24046 to always fail with ENOSYS. Some functions are actually named
24047 something starting with __ and the normal name is an alias. */
24048#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24049choke me
24050#else
24051char (*f) () = gethostbyname;
24052#endif
24053#ifdef __cplusplus
24054}
24055#endif
24056
24057int
24058main ()
24059{
24060return f != gethostbyname;
24061 ;
24062 return 0;
24063}
24064_ACEOF
24065rm -f conftest.$ac_objext conftest$ac_exeext
24066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 24067 (eval $ac_link) 2>&5
a848cd7e 24068 ac_status=$?
a848cd7e
SC
24069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); } &&
8a7b1113 24071 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24073 (eval $ac_try) 2>&5
24074 ac_status=$?
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); }; }; then
24077 ac_cv_func_gethostbyname=yes
24078else
24079 echo "$as_me: failed program was:" >&5
24080sed 's/^/| /' conftest.$ac_ext >&5
24081
24082ac_cv_func_gethostbyname=no
24083fi
8a7b1113 24084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24085fi
24086echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24087echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24088
24089 if test $ac_cv_func_gethostbyname = no; then
24090 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24091echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24092if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24093 echo $ECHO_N "(cached) $ECHO_C" >&6
24094else
24095 ac_check_lib_save_LIBS=$LIBS
24096LIBS="-lnsl $LIBS"
24097cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24098#line $LINENO "configure"
a848cd7e
SC
24099/* confdefs.h. */
24100_ACEOF
24101cat confdefs.h >>conftest.$ac_ext
24102cat >>conftest.$ac_ext <<_ACEOF
24103/* end confdefs.h. */
24104
24105/* Override any gcc2 internal prototype to avoid an error. */
24106#ifdef __cplusplus
24107extern "C"
24108#endif
24109/* We use char because int might match the return type of a gcc2
24110 builtin and then its argument prototype would still apply. */
24111char gethostbyname ();
24112int
24113main ()
24114{
24115gethostbyname ();
24116 ;
24117 return 0;
24118}
24119_ACEOF
24120rm -f conftest.$ac_objext conftest$ac_exeext
24121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 24122 (eval $ac_link) 2>&5
a848cd7e 24123 ac_status=$?
a848cd7e
SC
24124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125 (exit $ac_status); } &&
8a7b1113 24126 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24128 (eval $ac_try) 2>&5
24129 ac_status=$?
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); }; }; then
24132 ac_cv_lib_nsl_gethostbyname=yes
24133else
24134 echo "$as_me: failed program was:" >&5
24135sed 's/^/| /' conftest.$ac_ext >&5
24136
24137ac_cv_lib_nsl_gethostbyname=no
24138fi
8a7b1113 24139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24140LIBS=$ac_check_lib_save_LIBS
24141fi
24142echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24143echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24144if test $ac_cv_lib_nsl_gethostbyname = yes; then
24145 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24146fi
24147
24148 if test $ac_cv_lib_nsl_gethostbyname = no; then
8a7b1113 24149 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
a848cd7e
SC
24150echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24151if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24152 echo $ECHO_N "(cached) $ECHO_C" >&6
24153else
24154 ac_check_lib_save_LIBS=$LIBS
24155LIBS="-lbsd $LIBS"
24156cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24157#line $LINENO "configure"
a848cd7e
SC
24158/* confdefs.h. */
24159_ACEOF
24160cat confdefs.h >>conftest.$ac_ext
24161cat >>conftest.$ac_ext <<_ACEOF
24162/* end confdefs.h. */
24163
24164/* Override any gcc2 internal prototype to avoid an error. */
24165#ifdef __cplusplus
24166extern "C"
24167#endif
24168/* We use char because int might match the return type of a gcc2
24169 builtin and then its argument prototype would still apply. */
24170char gethostbyname ();
24171int
24172main ()
24173{
24174gethostbyname ();
24175 ;
24176 return 0;
24177}
24178_ACEOF
24179rm -f conftest.$ac_objext conftest$ac_exeext
24180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 24181 (eval $ac_link) 2>&5
a848cd7e 24182 ac_status=$?
a848cd7e
SC
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } &&
8a7b1113 24185 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24187 (eval $ac_try) 2>&5
24188 ac_status=$?
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); }; }; then
24191 ac_cv_lib_bsd_gethostbyname=yes
24192else
24193 echo "$as_me: failed program was:" >&5
24194sed 's/^/| /' conftest.$ac_ext >&5
24195
24196ac_cv_lib_bsd_gethostbyname=no
24197fi
8a7b1113 24198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24199LIBS=$ac_check_lib_save_LIBS
24200fi
24201echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24202echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24203if test $ac_cv_lib_bsd_gethostbyname = yes; then
24204 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24205fi
24206
24207 fi
24208 fi
24209
24210 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24211 # socket/setsockopt and other routines are undefined under SCO ODT
24212 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24213 # on later versions), says Simon Leinen: it contains gethostby*
24214 # variants that don't use the name server (or something). -lsocket
24215 # must be given before -lnsl if both are needed. We assume that
24216 # if connect needs -lnsl, so does gethostbyname.
24217 echo "$as_me:$LINENO: checking for connect" >&5
24218echo $ECHO_N "checking for connect... $ECHO_C" >&6
24219if test "${ac_cv_func_connect+set}" = set; then
24220 echo $ECHO_N "(cached) $ECHO_C" >&6
24221else
24222 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24223#line $LINENO "configure"
a848cd7e
SC
24224/* confdefs.h. */
24225_ACEOF
24226cat confdefs.h >>conftest.$ac_ext
24227cat >>conftest.$ac_ext <<_ACEOF
24228/* end confdefs.h. */
a848cd7e
SC
24229/* System header to define __stub macros and hopefully few prototypes,
24230 which can conflict with char connect (); below.
24231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24232 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
24233#ifdef __STDC__
24234# include <limits.h>
24235#else
24236# include <assert.h>
24237#endif
a848cd7e
SC
24238/* Override any gcc2 internal prototype to avoid an error. */
24239#ifdef __cplusplus
24240extern "C"
24241{
24242#endif
24243/* We use char because int might match the return type of a gcc2
24244 builtin and then its argument prototype would still apply. */
24245char connect ();
24246/* The GNU C library defines this for functions which it implements
24247 to always fail with ENOSYS. Some functions are actually named
24248 something starting with __ and the normal name is an alias. */
24249#if defined (__stub_connect) || defined (__stub___connect)
24250choke me
24251#else
24252char (*f) () = connect;
24253#endif
24254#ifdef __cplusplus
24255}
24256#endif
24257
24258int
24259main ()
24260{
24261return f != connect;
24262 ;
24263 return 0;
24264}
24265_ACEOF
24266rm -f conftest.$ac_objext conftest$ac_exeext
24267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 24268 (eval $ac_link) 2>&5
a848cd7e 24269 ac_status=$?
a848cd7e
SC
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); } &&
8a7b1113 24272 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274 (eval $ac_try) 2>&5
24275 ac_status=$?
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); }; }; then
24278 ac_cv_func_connect=yes
24279else
24280 echo "$as_me: failed program was:" >&5
24281sed 's/^/| /' conftest.$ac_ext >&5
24282
24283ac_cv_func_connect=no
24284fi
8a7b1113 24285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24286fi
24287echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24288echo "${ECHO_T}$ac_cv_func_connect" >&6
24289
24290 if test $ac_cv_func_connect = no; then
24291 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24292echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24293if test "${ac_cv_lib_socket_connect+set}" = set; then
24294 echo $ECHO_N "(cached) $ECHO_C" >&6
24295else
24296 ac_check_lib_save_LIBS=$LIBS
24297LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24298cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24299#line $LINENO "configure"
a848cd7e
SC
24300/* confdefs.h. */
24301_ACEOF
24302cat confdefs.h >>conftest.$ac_ext
24303cat >>conftest.$ac_ext <<_ACEOF
24304/* end confdefs.h. */
24305
24306/* Override any gcc2 internal prototype to avoid an error. */
24307#ifdef __cplusplus
24308extern "C"
24309#endif
24310/* We use char because int might match the return type of a gcc2
24311 builtin and then its argument prototype would still apply. */
24312char connect ();
24313int
24314main ()
24315{
24316connect ();
24317 ;
24318 return 0;
24319}
24320_ACEOF
24321rm -f conftest.$ac_objext conftest$ac_exeext
24322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 24323 (eval $ac_link) 2>&5
a848cd7e 24324 ac_status=$?
a848cd7e
SC
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); } &&
8a7b1113 24327 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24329 (eval $ac_try) 2>&5
24330 ac_status=$?
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); }; }; then
24333 ac_cv_lib_socket_connect=yes
24334else
24335 echo "$as_me: failed program was:" >&5
24336sed 's/^/| /' conftest.$ac_ext >&5
24337
24338ac_cv_lib_socket_connect=no
24339fi
8a7b1113 24340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24341LIBS=$ac_check_lib_save_LIBS
24342fi
24343echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24344echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24345if test $ac_cv_lib_socket_connect = yes; then
24346 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24347fi
24348
24349 fi
24350
24351 # Guillermo Gomez says -lposix is necessary on A/UX.
24352 echo "$as_me:$LINENO: checking for remove" >&5
24353echo $ECHO_N "checking for remove... $ECHO_C" >&6
24354if test "${ac_cv_func_remove+set}" = set; then
24355 echo $ECHO_N "(cached) $ECHO_C" >&6
24356else
24357 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24358#line $LINENO "configure"
a848cd7e
SC
24359/* confdefs.h. */
24360_ACEOF
24361cat confdefs.h >>conftest.$ac_ext
24362cat >>conftest.$ac_ext <<_ACEOF
24363/* end confdefs.h. */
a848cd7e
SC
24364/* System header to define __stub macros and hopefully few prototypes,
24365 which can conflict with char remove (); below.
24366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24367 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
24368#ifdef __STDC__
24369# include <limits.h>
24370#else
24371# include <assert.h>
24372#endif
a848cd7e
SC
24373/* Override any gcc2 internal prototype to avoid an error. */
24374#ifdef __cplusplus
24375extern "C"
24376{
24377#endif
24378/* We use char because int might match the return type of a gcc2
24379 builtin and then its argument prototype would still apply. */
24380char remove ();
24381/* The GNU C library defines this for functions which it implements
24382 to always fail with ENOSYS. Some functions are actually named
24383 something starting with __ and the normal name is an alias. */
24384#if defined (__stub_remove) || defined (__stub___remove)
24385choke me
24386#else
24387char (*f) () = remove;
24388#endif
24389#ifdef __cplusplus
24390}
24391#endif
24392
24393int
24394main ()
24395{
24396return f != remove;
24397 ;
24398 return 0;
24399}
24400_ACEOF
24401rm -f conftest.$ac_objext conftest$ac_exeext
24402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 24403 (eval $ac_link) 2>&5
a848cd7e 24404 ac_status=$?
a848cd7e
SC
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); } &&
8a7b1113 24407 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24409 (eval $ac_try) 2>&5
24410 ac_status=$?
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); }; }; then
24413 ac_cv_func_remove=yes
24414else
24415 echo "$as_me: failed program was:" >&5
24416sed 's/^/| /' conftest.$ac_ext >&5
24417
24418ac_cv_func_remove=no
24419fi
8a7b1113 24420rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24421fi
24422echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24423echo "${ECHO_T}$ac_cv_func_remove" >&6
24424
24425 if test $ac_cv_func_remove = no; then
24426 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24427echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24428if test "${ac_cv_lib_posix_remove+set}" = set; then
24429 echo $ECHO_N "(cached) $ECHO_C" >&6
24430else
24431 ac_check_lib_save_LIBS=$LIBS
24432LIBS="-lposix $LIBS"
24433cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24434#line $LINENO "configure"
a848cd7e
SC
24435/* confdefs.h. */
24436_ACEOF
24437cat confdefs.h >>conftest.$ac_ext
24438cat >>conftest.$ac_ext <<_ACEOF
24439/* end confdefs.h. */
24440
24441/* Override any gcc2 internal prototype to avoid an error. */
24442#ifdef __cplusplus
24443extern "C"
24444#endif
24445/* We use char because int might match the return type of a gcc2
24446 builtin and then its argument prototype would still apply. */
24447char remove ();
24448int
24449main ()
24450{
24451remove ();
24452 ;
24453 return 0;
24454}
24455_ACEOF
24456rm -f conftest.$ac_objext conftest$ac_exeext
24457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 24458 (eval $ac_link) 2>&5
a848cd7e 24459 ac_status=$?
a848cd7e
SC
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } &&
8a7b1113 24462 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464 (eval $ac_try) 2>&5
24465 ac_status=$?
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); }; }; then
24468 ac_cv_lib_posix_remove=yes
24469else
24470 echo "$as_me: failed program was:" >&5
24471sed 's/^/| /' conftest.$ac_ext >&5
24472
24473ac_cv_lib_posix_remove=no
24474fi
8a7b1113 24475rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24476LIBS=$ac_check_lib_save_LIBS
24477fi
24478echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24479echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24480if test $ac_cv_lib_posix_remove = yes; then
24481 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24482fi
24483
24484 fi
24485
24486 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24487 echo "$as_me:$LINENO: checking for shmat" >&5
24488echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24489if test "${ac_cv_func_shmat+set}" = set; then
24490 echo $ECHO_N "(cached) $ECHO_C" >&6
24491else
24492 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24493#line $LINENO "configure"
a848cd7e
SC
24494/* confdefs.h. */
24495_ACEOF
24496cat confdefs.h >>conftest.$ac_ext
24497cat >>conftest.$ac_ext <<_ACEOF
24498/* end confdefs.h. */
a848cd7e
SC
24499/* System header to define __stub macros and hopefully few prototypes,
24500 which can conflict with char shmat (); below.
24501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24502 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
24503#ifdef __STDC__
24504# include <limits.h>
24505#else
24506# include <assert.h>
24507#endif
a848cd7e
SC
24508/* Override any gcc2 internal prototype to avoid an error. */
24509#ifdef __cplusplus
24510extern "C"
24511{
24512#endif
24513/* We use char because int might match the return type of a gcc2
24514 builtin and then its argument prototype would still apply. */
24515char shmat ();
24516/* The GNU C library defines this for functions which it implements
24517 to always fail with ENOSYS. Some functions are actually named
24518 something starting with __ and the normal name is an alias. */
24519#if defined (__stub_shmat) || defined (__stub___shmat)
24520choke me
24521#else
24522char (*f) () = shmat;
24523#endif
24524#ifdef __cplusplus
24525}
24526#endif
24527
24528int
24529main ()
24530{
24531return f != shmat;
24532 ;
24533 return 0;
24534}
24535_ACEOF
24536rm -f conftest.$ac_objext conftest$ac_exeext
24537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 24538 (eval $ac_link) 2>&5
a848cd7e 24539 ac_status=$?
a848cd7e
SC
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); } &&
8a7b1113 24542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24544 (eval $ac_try) 2>&5
24545 ac_status=$?
24546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); }; }; then
24548 ac_cv_func_shmat=yes
24549else
24550 echo "$as_me: failed program was:" >&5
24551sed 's/^/| /' conftest.$ac_ext >&5
24552
24553ac_cv_func_shmat=no
24554fi
8a7b1113 24555rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24556fi
24557echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24558echo "${ECHO_T}$ac_cv_func_shmat" >&6
24559
24560 if test $ac_cv_func_shmat = no; then
24561 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24562echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24563if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24564 echo $ECHO_N "(cached) $ECHO_C" >&6
24565else
24566 ac_check_lib_save_LIBS=$LIBS
24567LIBS="-lipc $LIBS"
24568cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24569#line $LINENO "configure"
a848cd7e
SC
24570/* confdefs.h. */
24571_ACEOF
24572cat confdefs.h >>conftest.$ac_ext
24573cat >>conftest.$ac_ext <<_ACEOF
24574/* end confdefs.h. */
24575
24576/* Override any gcc2 internal prototype to avoid an error. */
24577#ifdef __cplusplus
24578extern "C"
24579#endif
24580/* We use char because int might match the return type of a gcc2
24581 builtin and then its argument prototype would still apply. */
24582char shmat ();
24583int
24584main ()
24585{
24586shmat ();
24587 ;
24588 return 0;
24589}
24590_ACEOF
24591rm -f conftest.$ac_objext conftest$ac_exeext
24592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 24593 (eval $ac_link) 2>&5
a848cd7e 24594 ac_status=$?
a848cd7e
SC
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); } &&
8a7b1113 24597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24599 (eval $ac_try) 2>&5
24600 ac_status=$?
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; }; then
24603 ac_cv_lib_ipc_shmat=yes
24604else
24605 echo "$as_me: failed program was:" >&5
24606sed 's/^/| /' conftest.$ac_ext >&5
24607
24608ac_cv_lib_ipc_shmat=no
24609fi
8a7b1113 24610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24611LIBS=$ac_check_lib_save_LIBS
24612fi
24613echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24614echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24615if test $ac_cv_lib_ipc_shmat = yes; then
24616 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24617fi
24618
24619 fi
24620 fi
24621
24622 # Check for libraries that X11R6 Xt/Xaw programs need.
24623 ac_save_LDFLAGS=$LDFLAGS
24624 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24625 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24626 # check for ICE first), but we must link in the order -lSM -lICE or
24627 # we get undefined symbols. So assume we have SM if we have ICE.
24628 # These have to be linked with before -lX11, unlike the other
24629 # libraries we check for below, so use a different variable.
24630 # John Interrante, Karl Berry
24631 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24632echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24633if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24634 echo $ECHO_N "(cached) $ECHO_C" >&6
24635else
24636 ac_check_lib_save_LIBS=$LIBS
24637LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24638cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24639#line $LINENO "configure"
a848cd7e
SC
24640/* confdefs.h. */
24641_ACEOF
24642cat confdefs.h >>conftest.$ac_ext
24643cat >>conftest.$ac_ext <<_ACEOF
24644/* end confdefs.h. */
24645
24646/* Override any gcc2 internal prototype to avoid an error. */
24647#ifdef __cplusplus
24648extern "C"
24649#endif
24650/* We use char because int might match the return type of a gcc2
24651 builtin and then its argument prototype would still apply. */
24652char IceConnectionNumber ();
24653int
24654main ()
24655{
24656IceConnectionNumber ();
24657 ;
24658 return 0;
24659}
24660_ACEOF
24661rm -f conftest.$ac_objext conftest$ac_exeext
24662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 24663 (eval $ac_link) 2>&5
a848cd7e 24664 ac_status=$?
a848cd7e
SC
24665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } &&
8a7b1113 24667 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24669 (eval $ac_try) 2>&5
24670 ac_status=$?
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); }; }; then
24673 ac_cv_lib_ICE_IceConnectionNumber=yes
24674else
24675 echo "$as_me: failed program was:" >&5
24676sed 's/^/| /' conftest.$ac_ext >&5
24677
24678ac_cv_lib_ICE_IceConnectionNumber=no
24679fi
8a7b1113 24680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24681LIBS=$ac_check_lib_save_LIBS
24682fi
24683echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24684echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24685if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24686 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24687fi
24688
24689 LDFLAGS=$ac_save_LDFLAGS
24690
24691fi
24692
24693
24694 if test "$no_x" = "yes"; then
24695 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24696echo "$as_me: error: X11 not found" >&2;}
24697 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
24698 fi
24699
24700 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
24701 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
24702 AFMINSTALL=afminstall
24703 COMPILED_X_PROGRAM=0
24704
24705 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
24706echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
24707
24708ac_find_includes=
24709for ac_dir in $SEARCH_INCLUDE /usr/include;
24710 do
24711 if test -f "$ac_dir/Xm/Xm.h"; then
24712 ac_find_includes=$ac_dir
24713 break
24714 fi
24715 done
24716
24717 if test "$ac_find_includes" != "" ; then
24718 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24719echo "${ECHO_T}found in $ac_find_includes" >&6
24720
24721 if test "x$ac_find_includes" = "x/usr/include"; then
24722 ac_path_to_include=""
24723 else
24724 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
24725 result=$?
24726 if test $result = 0; then
24727 ac_path_to_include=""
24728 else
24729 ac_path_to_include=" -I$ac_find_includes"
24730 fi
24731 fi
24732
24733 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
24734 else
24735 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24736#line $LINENO "configure"
a848cd7e
SC
24737/* confdefs.h. */
24738_ACEOF
24739cat confdefs.h >>conftest.$ac_ext
24740cat >>conftest.$ac_ext <<_ACEOF
24741/* end confdefs.h. */
24742
24743 #include <Xm/Xm.h>
24744
24745int
24746main ()
24747{
24748
24749 int version;
24750 version = xmUseVersion;
24751
24752 ;
24753 return 0;
24754}
24755_ACEOF
24756rm -f conftest.$ac_objext
24757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 24758 (eval $ac_compile) 2>&5
a848cd7e 24759 ac_status=$?
a848cd7e
SC
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); } &&
8a7b1113 24762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); }; }; then
24768
24769 echo "$as_me:$LINENO: result: found in default search path" >&5
24770echo "${ECHO_T}found in default search path" >&6
24771 COMPILED_X_PROGRAM=1
24772
24773else
24774 echo "$as_me: failed program was:" >&5
24775sed 's/^/| /' conftest.$ac_ext >&5
24776
24777
24778 echo "$as_me:$LINENO: result: no" >&5
24779echo "${ECHO_T}no" >&6
24780 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24781echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24782 { (exit 1); exit 1; }; }
24783
24784
24785fi
8a7b1113 24786rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24787 fi
24788
24789 if test "$COMPILED_X_PROGRAM" = 0; then
24790 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24791echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24792
24793ac_find_libraries=
24794for ac_dir in $SEARCH_LIB /usr/lib;
24795 do
24796 for ac_extension in a so sl dylib; do
24797 if test -f "$ac_dir/libXm.$ac_extension"; then
24798 ac_find_libraries=$ac_dir
24799 break 2
24800 fi
24801 done
24802 done
24803
24804 if test "$ac_find_libraries" != "" ; then
24805 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24806echo "${ECHO_T}found at $ac_find_libraries" >&6
24807
24808
24809 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24810 result=$?
24811 if test $result = 0; then
24812 ac_path_to_link=""
24813 else
24814 ac_path_to_link=" -L$ac_find_libraries"
24815 fi
24816
24817 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
24818 else
24819 save_CFLAGS=$CFLAGS
24820 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24821
24822 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24823#line $LINENO "configure"
a848cd7e
SC
24824/* confdefs.h. */
24825_ACEOF
24826cat confdefs.h >>conftest.$ac_ext
24827cat >>conftest.$ac_ext <<_ACEOF
24828/* end confdefs.h. */
24829
24830 #include <Xm/Xm.h>
24831
24832int
24833main ()
24834{
24835
24836 int version;
24837 version = xmUseVersion;
24838
24839 ;
24840 return 0;
24841}
24842_ACEOF
24843rm -f conftest.$ac_objext
24844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 24845 (eval $ac_compile) 2>&5
a848cd7e 24846 ac_status=$?
a848cd7e
SC
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); } &&
8a7b1113 24849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851 (eval $ac_try) 2>&5
24852 ac_status=$?
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); }; }; then
24855
24856 echo "$as_me:$LINENO: result: found in default search path" >&5
24857echo "${ECHO_T}found in default search path" >&6
24858 COMPILED_X_PROGRAM=1
24859
24860else
24861 echo "$as_me: failed program was:" >&5
24862sed 's/^/| /' conftest.$ac_ext >&5
24863
24864
24865 echo "$as_me:$LINENO: result: no" >&5
24866echo "${ECHO_T}no" >&6
24867 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24868echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24869 { (exit 1); exit 1; }; }
24870
24871
24872fi
8a7b1113 24873rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24874
24875 CFLAGS=$save_CFLAGS
24876 fi
24877 fi
24878
24879 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24880echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
24881 libp_link=""
24882 libsm_ice_link=""
24883 libs_found=0
24884 for libp in "" " -lXp"; do
24885 if test "$libs_found" = "0"; then
24886 for libsm_ice in "" " -lSM -lICE"; do
24887 if test "$libs_found" = "0"; then
24888 save_LIBS="$LIBS"
24889 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
24890 save_CFLAGS=$CFLAGS
24891 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24892
24893 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24894#line $LINENO "configure"
a848cd7e
SC
24895/* confdefs.h. */
24896_ACEOF
24897cat confdefs.h >>conftest.$ac_ext
24898cat >>conftest.$ac_ext <<_ACEOF
24899/* end confdefs.h. */
24900
24901 #include <Xm/Xm.h>
24902 #include <Xm/List.h>
24903
24904int
24905main ()
24906{
24907
24908 XmString string = NULL;
24909 Widget w = NULL;
24910 int position = 0;
24911 XmListAddItem(w, string, position);
24912
24913 ;
24914 return 0;
24915}
24916_ACEOF
24917rm -f conftest.$ac_objext conftest$ac_exeext
24918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 24919 (eval $ac_link) 2>&5
a848cd7e 24920 ac_status=$?
a848cd7e
SC
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); } &&
8a7b1113 24923 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24925 (eval $ac_try) 2>&5
24926 ac_status=$?
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); }; }; then
24929
24930 libp_link="$libp"
24931 libsm_ice_link="$libsm_ice"
24932 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24933echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
24934 libs_found=1
24935
24936else
24937 echo "$as_me: failed program was:" >&5
24938sed 's/^/| /' conftest.$ac_ext >&5
24939
24940
24941
24942fi
8a7b1113 24943rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24944
24945 LIBS="$save_LIBS"
24946 CFLAGS=$save_CFLAGS
24947 fi
24948 done
24949 fi
24950 done
24951
24952 if test "$libs_found" = "0"; then
24953 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24954echo "${ECHO_T}can't find the right libraries" >&6
24955 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24956echo "$as_me: error: can't link a simple motif program" >&2;}
24957 { (exit 1); exit 1; }; }
24958 fi
24959
24960 save_CFLAGS=$CFLAGS
24961 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24962 echo "$as_me:$LINENO: checking for Motif 2" >&5
24963echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24964 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 24965#line $LINENO "configure"
a848cd7e
SC
24966/* confdefs.h. */
24967_ACEOF
24968cat confdefs.h >>conftest.$ac_ext
24969cat >>conftest.$ac_ext <<_ACEOF
24970/* end confdefs.h. */
24971
24972 #include <Xm/Xm.h>
24973
24974int
24975main ()
24976{
24977
24978 #if XmVersion < 2000
24979 #error "Not Motif 2"
24980 #endif
24981
24982 ;
24983 return 0;
24984}
24985_ACEOF
24986rm -f conftest.$ac_objext
24987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 24988 (eval $ac_compile) 2>&5
a848cd7e 24989 ac_status=$?
a848cd7e
SC
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } &&
8a7b1113 24992 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24994 (eval $ac_try) 2>&5
24995 ac_status=$?
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); }; }; then
24998
24999 cat >>confdefs.h <<\_ACEOF
25000#define __WXMOTIF20__ 1
25001_ACEOF
25002
25003 echo "$as_me:$LINENO: result: found" >&5
25004echo "${ECHO_T}found" >&6
25005
25006else
25007 echo "$as_me: failed program was:" >&5
25008sed 's/^/| /' conftest.$ac_ext >&5
25009
25010
25011 cat >>confdefs.h <<\_ACEOF
25012#define __WXMOTIF20__ 0
25013_ACEOF
25014
25015 echo "$as_me:$LINENO: result: not found" >&5
25016echo "${ECHO_T}not found" >&6
25017
25018fi
8a7b1113 25019rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25020 CFLAGS=$save_CFLAGS
25021
25022 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
25023 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
25024 TOOLKIT=MOTIF
25025 GUIDIST=MOTIF_DIST
25026 fi
25027
25028 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
25029 if test "$wxUSE_LIBXPM" = "sys"; then
25030 echo "$as_me:$LINENO: checking for Xpm library" >&5
25031echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
25032
25033ac_find_libraries=
25034for ac_dir in $SEARCH_LIB /usr/lib;
25035 do
25036 for ac_extension in a so sl dylib; do
25037 if test -f "$ac_dir/libXpm.$ac_extension"; then
25038 ac_find_libraries=$ac_dir
25039 break 2
25040 fi
25041 done
25042 done
25043
25044 if test "$ac_find_libraries" != "" ; then
25045
25046 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25047 result=$?
25048 if test $result = 0; then
25049 ac_path_to_link=""
25050 else
25051 ac_path_to_link=" -L$ac_find_libraries"
25052 fi
25053
25054 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25055 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25056echo "${ECHO_T}found at $ac_find_libraries" >&6
25057
25058 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
25059echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
25060if test "${wx_cv_x11_xpm_h+set}" = set; then
25061 echo $ECHO_N "(cached) $ECHO_C" >&6
25062else
25063
25064 save_CFLAGS=$CFLAGS
25065 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25066
25067 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 25068#line $LINENO "configure"
a848cd7e
SC
25069/* confdefs.h. */
25070_ACEOF
25071cat confdefs.h >>conftest.$ac_ext
25072cat >>conftest.$ac_ext <<_ACEOF
25073/* end confdefs.h. */
25074
25075 #include <X11/xpm.h>
25076
25077int
25078main ()
25079{
25080
25081 int version;
25082 version = XpmLibraryVersion();
25083
25084 ;
25085 return 0;
25086}
25087_ACEOF
25088rm -f conftest.$ac_objext
25089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 25090 (eval $ac_compile) 2>&5
a848cd7e 25091 ac_status=$?
a848cd7e
SC
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); } &&
8a7b1113 25094 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25096 (eval $ac_try) 2>&5
25097 ac_status=$?
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); }; }; then
25100 wx_cv_x11_xpm_h=yes
25101else
25102 echo "$as_me: failed program was:" >&5
25103sed 's/^/| /' conftest.$ac_ext >&5
25104
25105wx_cv_x11_xpm_h=no
25106
25107fi
8a7b1113 25108rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25109
25110 CFLAGS=$save_CFLAGS
25111
25112
25113fi
25114echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
25115echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
25116
25117 if test $wx_cv_x11_xpm_h = "yes"; then
25118 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
25119 cat >>confdefs.h <<\_ACEOF
25120#define wxHAVE_LIB_XPM 1
25121_ACEOF
25122
25123 else
25124 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
25125echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
25126 fi
25127 fi
25128
25129 fi
25130
25131 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
25132echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
25133if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
25134 echo $ECHO_N "(cached) $ECHO_C" >&6
25135else
25136 ac_check_lib_save_LIBS=$LIBS
25137LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
25138cat >conftest.$ac_ext <<_ACEOF
8a7b1113 25139#line $LINENO "configure"
a848cd7e
SC
25140/* confdefs.h. */
25141_ACEOF
25142cat confdefs.h >>conftest.$ac_ext
25143cat >>conftest.$ac_ext <<_ACEOF
25144/* end confdefs.h. */
25145
25146/* Override any gcc2 internal prototype to avoid an error. */
25147#ifdef __cplusplus
25148extern "C"
25149#endif
25150/* We use char because int might match the return type of a gcc2
25151 builtin and then its argument prototype would still apply. */
25152char XShapeQueryExtension ();
25153int
25154main ()
25155{
25156XShapeQueryExtension ();
25157 ;
25158 return 0;
25159}
25160_ACEOF
25161rm -f conftest.$ac_objext conftest$ac_exeext
25162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 25163 (eval $ac_link) 2>&5
a848cd7e 25164 ac_status=$?
a848cd7e
SC
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); } &&
8a7b1113 25167 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169 (eval $ac_try) 2>&5
25170 ac_status=$?
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }; }; then
25173 ac_cv_lib_Xext_XShapeQueryExtension=yes
25174else
25175 echo "$as_me: failed program was:" >&5
25176sed 's/^/| /' conftest.$ac_ext >&5
25177
25178ac_cv_lib_Xext_XShapeQueryExtension=no
25179fi
8a7b1113 25180rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25181LIBS=$ac_check_lib_save_LIBS
25182fi
25183echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
25184echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
25185if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
25186
25187 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
25188 wxHAVE_XEXT_LIB=1
25189
25190fi
25191
25192
25193 if test "$wxHAVE_XEXT_LIB" = 1; then
25194 save_CFLAGS="$CFLAGS"
25195 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25196
25197 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
25198echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
25199 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 25200#line $LINENO "configure"
a848cd7e
SC
25201/* confdefs.h. */
25202_ACEOF
25203cat confdefs.h >>conftest.$ac_ext
25204cat >>conftest.$ac_ext <<_ACEOF
25205/* end confdefs.h. */
25206
25207 #include <X11/Xlib.h>
25208 #include <X11/extensions/shape.h>
25209
25210int
25211main ()
25212{
25213
25214 int dummy1, dummy2;
25215 XShapeQueryExtension((Display*)NULL,
25216 (int*)NULL, (int*)NULL);
25217
25218 ;
25219 return 0;
25220}
25221_ACEOF
25222rm -f conftest.$ac_objext
25223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 25224 (eval $ac_compile) 2>&5
a848cd7e 25225 ac_status=$?
a848cd7e
SC
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } &&
8a7b1113 25228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25230 (eval $ac_try) 2>&5
25231 ac_status=$?
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); }; }; then
25234
25235 cat >>confdefs.h <<\_ACEOF
25236#define HAVE_XSHAPE 1
25237_ACEOF
25238
25239 echo "$as_me:$LINENO: result: found" >&5
25240echo "${ECHO_T}found" >&6
25241
25242else
25243 echo "$as_me: failed program was:" >&5
25244sed 's/^/| /' conftest.$ac_ext >&5
25245
25246
25247 echo "$as_me:$LINENO: result: not found" >&5
25248echo "${ECHO_T}not found" >&6
25249
25250fi
8a7b1113 25251rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25252 CFLAGS="$save_CFLAGS"
25253
25254 fi
25255 fi
25256
25257 if test "$wxUSE_MAC" = 1; then
25258 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
25259echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
25260 if test "$GCC" = yes; then
25261 echo "$as_me:$LINENO: result: gcc" >&5
25262echo "${ECHO_T}gcc" >&6
25263 CPPFLAGS_PASCAL="-fpascal-strings"
25264 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
25265 echo "$as_me:$LINENO: result: xlc" >&5
25266echo "${ECHO_T}xlc" >&6
25267 CPPFLAGS_PASCAL="-qmacpstr"
25268 else
25269 echo "$as_me:$LINENO: result: none" >&5
25270echo "${ECHO_T}none" >&6
25271 fi
25272
25273 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
25274
25275 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
25276 TOOLKIT=MAC
25277 GUIDIST=MACX_DIST
25278 WXBASEPORT="_carbon"
25279 fi
25280
25281 if test "$wxUSE_COCOA" = 1; then
25282 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
25283 TOOLKIT=COCOA
25284 GUIDIST=COCOA_DIST
25285 fi
25286
25287 if test "$wxUSE_PM" = 1; then
25288 TOOLKIT=PM
25289 GUIDIST=GTK_DIST
25290 fi
25291
25292 if test "$TOOLKIT" = "PM" ; then
25293 TOOLKIT_DIR="os2"
25294 else
25295 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
25296 fi
25297
25298 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
25299
25300 if test "$wxUSE_UNIVERSAL" = "yes"; then
25301 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
25302
25303 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
25304 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
25305
25306 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
25307 if test "$wxUSE_X11" = 1; then
25308 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
25309 else
25310 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
25311 fi
25312 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
25313 WIDGET_SET=univ
25314 else
25315 ALL_OBJECTS="\$(GUIOBJS)"
25316 ALL_SOURCES="\$(ALL_SOURCES)"
25317 ALL_HEADERS="\$(ALL_HEADERS)"
25318 fi
25319
25320 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
25321
25322 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
25323 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
25324 fi
25325
25326 if test "$wxUSE_HTML" = "yes"; then
25327 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
25328 fi
25329
25330 if test "$wxUSE_LIBJPEG" = "builtin" ; then
25331 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
25332 fi
25333 if test "$wxUSE_LIBTIFF" = "builtin" ; then
25334 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
25335 fi
25336 if test "$wxUSE_LIBPNG" = "builtin" ; then
25337 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
25338 fi
25339
25340 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
25341 DISTDIR="wx\$(TOOLKIT)"
25342else
25343 USE_GUI=0
25344
25345 TOOLKIT_DIR="base"
25346
25347 if test "$USE_WIN32" = 1 ; then
25348 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
25349 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
25350
25351 TOOLKIT="MSW"
25352 else
25353 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
25354 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
25355 fi
25356
25357 ALL_SOURCES="\$(ALL_SOURCES)"
25358 ALL_HEADERS="\$(ALL_HEADERS)"
25359
25360 PORT_FILES="\${top_srcdir}/src/files.lst"
25361
25362 GUIDIST="BASE_DIST"
25363 DISTDIR="wxBase"
25364fi
25365
25366
25367
25368
25369IODBC_C_SRC=""
25370
25371
25372if test "$TOOLKIT" != "MSW" ; then
25373
25374 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
25375
25376 if test "${ac_cv_header_sql_h+set}" = set; then
25377 echo "$as_me:$LINENO: checking for sql.h" >&5
25378echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25379if test "${ac_cv_header_sql_h+set}" = set; then
25380 echo $ECHO_N "(cached) $ECHO_C" >&6
25381fi
25382echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25383echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25384else
25385 # Is the header compilable?
25386echo "$as_me:$LINENO: checking sql.h usability" >&5
25387echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
25388cat >conftest.$ac_ext <<_ACEOF
8a7b1113 25389#line $LINENO "configure"
a848cd7e
SC
25390/* confdefs.h. */
25391_ACEOF
25392cat confdefs.h >>conftest.$ac_ext
25393cat >>conftest.$ac_ext <<_ACEOF
25394/* end confdefs.h. */
25395$ac_includes_default
25396#include <sql.h>
25397_ACEOF
25398rm -f conftest.$ac_objext
25399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 25400 (eval $ac_compile) 2>&5
a848cd7e 25401 ac_status=$?
a848cd7e
SC
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } &&
8a7b1113 25404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406 (eval $ac_try) 2>&5
25407 ac_status=$?
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }; }; then
25410 ac_header_compiler=yes
25411else
25412 echo "$as_me: failed program was:" >&5
25413sed 's/^/| /' conftest.$ac_ext >&5
25414
25415ac_header_compiler=no
25416fi
8a7b1113 25417rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25418echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25419echo "${ECHO_T}$ac_header_compiler" >&6
25420
25421# Is the header present?
25422echo "$as_me:$LINENO: checking sql.h presence" >&5
25423echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
25424cat >conftest.$ac_ext <<_ACEOF
8a7b1113 25425#line $LINENO "configure"
a848cd7e
SC
25426/* confdefs.h. */
25427_ACEOF
25428cat confdefs.h >>conftest.$ac_ext
25429cat >>conftest.$ac_ext <<_ACEOF
25430/* end confdefs.h. */
25431#include <sql.h>
25432_ACEOF
25433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25435 ac_status=$?
25436 grep -v '^ *+' conftest.er1 >conftest.err
25437 rm -f conftest.er1
25438 cat conftest.err >&5
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); } >/dev/null; then
25441 if test -s conftest.err; then
25442 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
25443 else
25444 ac_cpp_err=
25445 fi
25446else
25447 ac_cpp_err=yes
25448fi
25449if test -z "$ac_cpp_err"; then
25450 ac_header_preproc=yes
25451else
25452 echo "$as_me: failed program was:" >&5
25453sed 's/^/| /' conftest.$ac_ext >&5
25454
25455 ac_header_preproc=no
25456fi
25457rm -f conftest.err conftest.$ac_ext
25458echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25459echo "${ECHO_T}$ac_header_preproc" >&6
25460
25461# So? What about this header?
8a7b1113
VZ
25462case $ac_header_compiler:$ac_header_preproc in
25463 yes:no )
a848cd7e
SC
25464 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
25465echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
25466 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25467echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
25468 (
25469 cat <<\_ASBOX
25470## ------------------------------------ ##
25471## Report this to bug-autoconf@gnu.org. ##
25472## ------------------------------------ ##
25473_ASBOX
25474 ) |
25475 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 25476 ;;
8a7b1113 25477 no:yes )
a848cd7e
SC
25478 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
25479echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
8a7b1113
VZ
25480 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
25481echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
25482 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25483echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
25484 (
25485 cat <<\_ASBOX
8a7b1113
VZ
25486## ------------------------------------ ##
25487## Report this to bug-autoconf@gnu.org. ##
25488## ------------------------------------ ##
a848cd7e
SC
25489_ASBOX
25490 ) |
25491 sed "s/^/$as_me: WARNING: /" >&2
25492 ;;
25493esac
25494echo "$as_me:$LINENO: checking for sql.h" >&5
25495echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25496if test "${ac_cv_header_sql_h+set}" = set; then
25497 echo $ECHO_N "(cached) $ECHO_C" >&6
25498else
25499 ac_cv_header_sql_h=$ac_header_preproc
25500fi
25501echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25502echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25503
25504fi
25505if test $ac_cv_header_sql_h = yes; then
25506 found_sql_h=1
25507fi
25508
25509
25510 if test "x$found_sql_h" = "x1" ; then
25511 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
25512echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
25513if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
25514 echo $ECHO_N "(cached) $ECHO_C" >&6
25515else
25516 ac_check_lib_save_LIBS=$LIBS
25517LIBS="-liodbc $LIBS"
25518cat >conftest.$ac_ext <<_ACEOF
8a7b1113 25519#line $LINENO "configure"
a848cd7e
SC
25520/* confdefs.h. */
25521_ACEOF
25522cat confdefs.h >>conftest.$ac_ext
25523cat >>conftest.$ac_ext <<_ACEOF
25524/* end confdefs.h. */
25525
25526/* Override any gcc2 internal prototype to avoid an error. */
25527#ifdef __cplusplus
25528extern "C"
25529#endif
25530/* We use char because int might match the return type of a gcc2
25531 builtin and then its argument prototype would still apply. */
25532char SQLAllocEnv ();
25533int
25534main ()
25535{
25536SQLAllocEnv ();
25537 ;
25538 return 0;
25539}
25540_ACEOF
25541rm -f conftest.$ac_objext conftest$ac_exeext
25542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 25543 (eval $ac_link) 2>&5
a848cd7e 25544 ac_status=$?
a848cd7e
SC
25545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546 (exit $ac_status); } &&
8a7b1113 25547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25549 (eval $ac_try) 2>&5
25550 ac_status=$?
25551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552 (exit $ac_status); }; }; then
25553 ac_cv_lib_iodbc_SQLAllocEnv=yes
25554else
25555 echo "$as_me: failed program was:" >&5
25556sed 's/^/| /' conftest.$ac_ext >&5
25557
25558ac_cv_lib_iodbc_SQLAllocEnv=no
25559fi
8a7b1113 25560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25561LIBS=$ac_check_lib_save_LIBS
25562fi
25563echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
25564echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
25565if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
25566 ODBC_LINK=" -liodbc"
25567else
25568
25569 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
25570echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
25571if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
25572 echo $ECHO_N "(cached) $ECHO_C" >&6
25573else
25574 ac_check_lib_save_LIBS=$LIBS
25575LIBS="-lunixodbc $LIBS"
25576cat >conftest.$ac_ext <<_ACEOF
8a7b1113 25577#line $LINENO "configure"
a848cd7e
SC
25578/* confdefs.h. */
25579_ACEOF
25580cat confdefs.h >>conftest.$ac_ext
25581cat >>conftest.$ac_ext <<_ACEOF
25582/* end confdefs.h. */
25583
25584/* Override any gcc2 internal prototype to avoid an error. */
25585#ifdef __cplusplus
25586extern "C"
25587#endif
25588/* We use char because int might match the return type of a gcc2
25589 builtin and then its argument prototype would still apply. */
25590char SQLAllocEnv ();
25591int
25592main ()
25593{
25594SQLAllocEnv ();
25595 ;
25596 return 0;
25597}
25598_ACEOF
25599rm -f conftest.$ac_objext conftest$ac_exeext
25600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 25601 (eval $ac_link) 2>&5
a848cd7e 25602 ac_status=$?
a848cd7e
SC
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } &&
8a7b1113 25605 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25607 (eval $ac_try) 2>&5
25608 ac_status=$?
25609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); }; }; then
25611 ac_cv_lib_unixodbc_SQLAllocEnv=yes
25612else
25613 echo "$as_me: failed program was:" >&5
25614sed 's/^/| /' conftest.$ac_ext >&5
25615
25616ac_cv_lib_unixodbc_SQLAllocEnv=no
25617fi
8a7b1113 25618rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25619LIBS=$ac_check_lib_save_LIBS
25620fi
25621echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
25622echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
25623if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
25624 ODBC_LINK=" -lunixodbc"
25625else
25626
25627 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
25628echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
25629if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
25630 echo $ECHO_N "(cached) $ECHO_C" >&6
25631else
25632 ac_check_lib_save_LIBS=$LIBS
25633LIBS="-lodbc $LIBS"
25634cat >conftest.$ac_ext <<_ACEOF
8a7b1113 25635#line $LINENO "configure"
a848cd7e
SC
25636/* confdefs.h. */
25637_ACEOF
25638cat confdefs.h >>conftest.$ac_ext
25639cat >>conftest.$ac_ext <<_ACEOF
25640/* end confdefs.h. */
25641
25642/* Override any gcc2 internal prototype to avoid an error. */
25643#ifdef __cplusplus
25644extern "C"
25645#endif
25646/* We use char because int might match the return type of a gcc2
25647 builtin and then its argument prototype would still apply. */
25648char SQLAllocEnv ();
25649int
25650main ()
25651{
25652SQLAllocEnv ();
25653 ;
25654 return 0;
25655}
25656_ACEOF
25657rm -f conftest.$ac_objext conftest$ac_exeext
25658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 25659 (eval $ac_link) 2>&5
a848cd7e 25660 ac_status=$?
a848cd7e
SC
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } &&
8a7b1113 25663 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665 (eval $ac_try) 2>&5
25666 ac_status=$?
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; }; then
25669 ac_cv_lib_odbc_SQLAllocEnv=yes
25670else
25671 echo "$as_me: failed program was:" >&5
25672sed 's/^/| /' conftest.$ac_ext >&5
25673
25674ac_cv_lib_odbc_SQLAllocEnv=no
25675fi
8a7b1113 25676rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25677LIBS=$ac_check_lib_save_LIBS
25678fi
25679echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
25680echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
25681if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
25682 ODBC_LINK=" -lodbc"
25683fi
25684
25685
25686fi
25687
25688
25689fi
25690
25691 fi
25692 if test "x$ODBC_LINK" = "x" ; then
25693 if test "$wxUSE_ODBC" = "sys" ; then
25694 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
25695echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
25696 { (exit 1); exit 1; }; }
25697 else
25698 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
25699echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
25700 wxUSE_ODBC=builtin
25701 fi
25702 else
25703 wxUSE_ODBC=sys
25704 fi
25705 fi
25706 if test "$wxUSE_ODBC" != "no" ; then
25707 cat >>confdefs.h <<\_ACEOF
25708#define wxUSE_ODBC 1
25709_ACEOF
25710
25711 if test "$wxUSE_ODBC" = "builtin" ; then
25712 cat >>confdefs.h <<\_ACEOF
25713#define wxUSE_BUILTIN_IODBC 1
25714_ACEOF
25715
25716 fi
25717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
25718
25719 WXODBCFLAG="-D_IODBC_"
25720 fi
25721fi
25722
25723if test "$wxUSE_REGEX" = "builtin" ; then
25724 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
25725fi
25726if test "$wxUSE_ZLIB" = "builtin" ; then
25727 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
25728fi
25729
01cb68df 25730
a848cd7e
SC
25731if test "$wxUSE_DISPLAY" = "yes"; then
25732 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
25733 echo "$as_me:$LINENO: checking for Xinerama" >&5
25734echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
25735
25736ac_find_libraries=
25737for ac_dir in $SEARCH_LIB /usr/lib;
25738 do
25739 for ac_extension in a so sl dylib; do
25740 if test -f "$ac_dir/libXinerama.$ac_extension"; then
25741 ac_find_libraries=$ac_dir
25742 break 2
25743 fi
25744 done
25745 done
25746
25747 if test "$ac_find_libraries" != "" ; then
25748
25749 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25750 result=$?
25751 if test $result = 0; then
25752 ac_path_to_link=""
25753 else
25754 ac_path_to_link=" -L$ac_find_libraries"
25755 fi
25756
25757 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25758 LDFLAGS="$LDFLAGS $ac_path_to_link"
25759 fi
25760 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
25761 echo "$as_me:$LINENO: result: yes" >&5
25762echo "${ECHO_T}yes" >&6
25763
25764 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
25765echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
25766
25767ac_find_libraries=
25768for ac_dir in $SEARCH_LIB /usr/lib;
25769 do
25770 for ac_extension in a so sl dylib; do
25771 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
25772 ac_find_libraries=$ac_dir
25773 break 2
25774 fi
25775 done
25776 done
25777
25778 if test "$ac_find_libraries" != "" ; then
25779 echo "$as_me:$LINENO: result: yes" >&5
25780echo "${ECHO_T}yes" >&6
25781
25782for ac_header in X11/extensions/xf86vmode.h
25783do
25784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25785echo "$as_me:$LINENO: checking for $ac_header" >&5
25786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25787if eval "test \"\${$as_ac_Header+set}\" = set"; then
25788 echo $ECHO_N "(cached) $ECHO_C" >&6
25789else
25790 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 25791#line $LINENO "configure"
a848cd7e
SC
25792/* confdefs.h. */
25793_ACEOF
25794cat confdefs.h >>conftest.$ac_ext
25795cat >>conftest.$ac_ext <<_ACEOF
25796/* end confdefs.h. */
25797
25798 #if HAVE_X11_XLIB_H
25799 #include <X11/Xlib.h>
25800 #endif
25801
25802
25803#include <$ac_header>
25804_ACEOF
25805rm -f conftest.$ac_objext
25806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 25807 (eval $ac_compile) 2>&5
a848cd7e 25808 ac_status=$?
a848cd7e
SC
25809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); } &&
8a7b1113 25811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25813 (eval $ac_try) 2>&5
25814 ac_status=$?
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); }; }; then
25817 eval "$as_ac_Header=yes"
25818else
25819 echo "$as_me: failed program was:" >&5
25820sed 's/^/| /' conftest.$ac_ext >&5
25821
25822eval "$as_ac_Header=no"
25823fi
8a7b1113 25824rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25825fi
25826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25828if test `eval echo '${'$as_ac_Header'}'` = yes; then
25829 cat >>confdefs.h <<_ACEOF
25830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25831_ACEOF
25832
25833 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
25834
25835fi
25836
25837done
25838
25839 else
25840 echo "$as_me:$LINENO: result: no" >&5
25841echo "${ECHO_T}no" >&6
25842 fi
25843
25844 else
25845 echo "$as_me:$LINENO: result: no" >&5
25846echo "${ECHO_T}no" >&6
dcc1b6ad
VS
25847 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
25848echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
25849 wxUSE_DISPLAY="no"
25850 fi
01cb68df
RG
25851 elif test "$wxUSE_MSW" = 1; then
25852
25853
25854for ac_header in multimon.h ddraw.h
25855do
25856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25857if eval "test \"\${$as_ac_Header+set}\" = set"; then
25858 echo "$as_me:$LINENO: checking for $ac_header" >&5
25859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25860if eval "test \"\${$as_ac_Header+set}\" = set"; then
25861 echo $ECHO_N "(cached) $ECHO_C" >&6
25862fi
25863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25865else
25866 # Is the header compilable?
25867echo "$as_me:$LINENO: checking $ac_header usability" >&5
25868echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25869cat >conftest.$ac_ext <<_ACEOF
8a7b1113 25870#line $LINENO "configure"
01cb68df
RG
25871/* confdefs.h. */
25872_ACEOF
25873cat confdefs.h >>conftest.$ac_ext
25874cat >>conftest.$ac_ext <<_ACEOF
25875/* end confdefs.h. */
25876$ac_includes_default
25877#include <$ac_header>
25878_ACEOF
25879rm -f conftest.$ac_objext
25880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 25881 (eval $ac_compile) 2>&5
01cb68df 25882 ac_status=$?
01cb68df
RG
25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); } &&
8a7b1113 25885 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
25886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25887 (eval $ac_try) 2>&5
25888 ac_status=$?
25889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890 (exit $ac_status); }; }; then
25891 ac_header_compiler=yes
25892else
25893 echo "$as_me: failed program was:" >&5
25894sed 's/^/| /' conftest.$ac_ext >&5
25895
25896ac_header_compiler=no
25897fi
8a7b1113 25898rm -f conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
25899echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25900echo "${ECHO_T}$ac_header_compiler" >&6
25901
25902# Is the header present?
25903echo "$as_me:$LINENO: checking $ac_header presence" >&5
25904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25905cat >conftest.$ac_ext <<_ACEOF
8a7b1113 25906#line $LINENO "configure"
01cb68df
RG
25907/* confdefs.h. */
25908_ACEOF
25909cat confdefs.h >>conftest.$ac_ext
25910cat >>conftest.$ac_ext <<_ACEOF
25911/* end confdefs.h. */
25912#include <$ac_header>
25913_ACEOF
25914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25916 ac_status=$?
25917 grep -v '^ *+' conftest.er1 >conftest.err
25918 rm -f conftest.er1
25919 cat conftest.err >&5
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); } >/dev/null; then
25922 if test -s conftest.err; then
25923 ac_cpp_err=$ac_c_preproc_warn_flag
01cb68df
RG
25924 else
25925 ac_cpp_err=
25926 fi
25927else
25928 ac_cpp_err=yes
25929fi
25930if test -z "$ac_cpp_err"; then
25931 ac_header_preproc=yes
25932else
25933 echo "$as_me: failed program was:" >&5
25934sed 's/^/| /' conftest.$ac_ext >&5
25935
25936 ac_header_preproc=no
25937fi
25938rm -f conftest.err conftest.$ac_ext
25939echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25940echo "${ECHO_T}$ac_header_preproc" >&6
25941
25942# So? What about this header?
8a7b1113
VZ
25943case $ac_header_compiler:$ac_header_preproc in
25944 yes:no )
01cb68df
RG
25945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
25947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25949 (
25950 cat <<\_ASBOX
25951## ------------------------------------ ##
25952## Report this to bug-autoconf@gnu.org. ##
25953## ------------------------------------ ##
25954_ASBOX
25955 ) |
25956 sed "s/^/$as_me: WARNING: /" >&2
01cb68df 25957 ;;
8a7b1113 25958 no:yes )
01cb68df
RG
25959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25960echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
25961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25962echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
01cb68df
RG
25963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
01cb68df
RG
25965 (
25966 cat <<\_ASBOX
8a7b1113
VZ
25967## ------------------------------------ ##
25968## Report this to bug-autoconf@gnu.org. ##
25969## ------------------------------------ ##
01cb68df
RG
25970_ASBOX
25971 ) |
25972 sed "s/^/$as_me: WARNING: /" >&2
25973 ;;
25974esac
25975echo "$as_me:$LINENO: checking for $ac_header" >&5
25976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25977if eval "test \"\${$as_ac_Header+set}\" = set"; then
25978 echo $ECHO_N "(cached) $ECHO_C" >&6
25979else
8a7b1113 25980 eval "$as_ac_Header=$ac_header_preproc"
01cb68df
RG
25981fi
25982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25984
25985fi
25986if test `eval echo '${'$as_ac_Header'}'` = yes; then
25987 cat >>confdefs.h <<_ACEOF
25988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25989_ACEOF
25990
25991else
25992
25993 wxUSE_DISPLAY="no"
dcc1b6ad
VS
25994 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
25995echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
25996
25997fi
25998
25999done
26000
a848cd7e
SC
26001 fi
26002fi
26003
26004
26005USE_OPENGL=0
26006if test "$wxUSE_OPENGL" = "yes"; then
26007 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
26008 OPENGL_LIBS="-framework OpenGL -framework AGL"
26009 elif test "$wxUSE_MSW" = 1; then
26010 OPENGL_LIBS="-lopengl32 -lglu32"
26011 else
26012
26013
26014ac_find_includes=
26015for ac_dir in $SEARCH_INCLUDE /usr/include;
26016 do
26017 if test -f "$ac_dir/GL/gl.h"; then
26018 ac_find_includes=$ac_dir
26019 break
26020 fi
26021 done
26022
26023 if test "$ac_find_includes" != "" ; then
26024 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26025echo "${ECHO_T}found in $ac_find_includes" >&6
26026
26027 if test "x$ac_find_includes" = "x/usr/include"; then
26028 ac_path_to_include=""
26029 else
26030 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
26031 result=$?
26032 if test $result = 0; then
26033 ac_path_to_include=""
26034 else
26035 ac_path_to_include=" -I$ac_find_includes"
26036 fi
26037 fi
26038
26039 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
26040 fi
26041
26042 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26043 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26044echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26045if test "${ac_cv_header_GL_gl_h+set}" = set; then
26046 echo $ECHO_N "(cached) $ECHO_C" >&6
26047fi
26048echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26049echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26050else
26051 # Is the header compilable?
26052echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
26053echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
26054cat >conftest.$ac_ext <<_ACEOF
8a7b1113 26055#line $LINENO "configure"
a848cd7e
SC
26056/* confdefs.h. */
26057_ACEOF
26058cat confdefs.h >>conftest.$ac_ext
26059cat >>conftest.$ac_ext <<_ACEOF
26060/* end confdefs.h. */
26061$ac_includes_default
26062#include <GL/gl.h>
26063_ACEOF
26064rm -f conftest.$ac_objext
26065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 26066 (eval $ac_compile) 2>&5
a848cd7e 26067 ac_status=$?
a848cd7e
SC
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } &&
8a7b1113 26070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26072 (eval $ac_try) 2>&5
26073 ac_status=$?
26074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075 (exit $ac_status); }; }; then
26076 ac_header_compiler=yes
26077else
26078 echo "$as_me: failed program was:" >&5
26079sed 's/^/| /' conftest.$ac_ext >&5
26080
26081ac_header_compiler=no
26082fi
8a7b1113 26083rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26084echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26085echo "${ECHO_T}$ac_header_compiler" >&6
26086
26087# Is the header present?
26088echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
26089echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
26090cat >conftest.$ac_ext <<_ACEOF
8a7b1113 26091#line $LINENO "configure"
a848cd7e
SC
26092/* confdefs.h. */
26093_ACEOF
26094cat confdefs.h >>conftest.$ac_ext
26095cat >>conftest.$ac_ext <<_ACEOF
26096/* end confdefs.h. */
26097#include <GL/gl.h>
26098_ACEOF
26099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26101 ac_status=$?
26102 grep -v '^ *+' conftest.er1 >conftest.err
26103 rm -f conftest.er1
26104 cat conftest.err >&5
26105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); } >/dev/null; then
26107 if test -s conftest.err; then
26108 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
26109 else
26110 ac_cpp_err=
26111 fi
26112else
26113 ac_cpp_err=yes
26114fi
26115if test -z "$ac_cpp_err"; then
26116 ac_header_preproc=yes
26117else
26118 echo "$as_me: failed program was:" >&5
26119sed 's/^/| /' conftest.$ac_ext >&5
26120
26121 ac_header_preproc=no
26122fi
26123rm -f conftest.err conftest.$ac_ext
26124echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26125echo "${ECHO_T}$ac_header_preproc" >&6
26126
26127# So? What about this header?
8a7b1113
VZ
26128case $ac_header_compiler:$ac_header_preproc in
26129 yes:no )
a848cd7e
SC
26130 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26131echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
26132 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
26133echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
26134 (
26135 cat <<\_ASBOX
26136## ------------------------------------ ##
26137## Report this to bug-autoconf@gnu.org. ##
26138## ------------------------------------ ##
26139_ASBOX
26140 ) |
26141 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 26142 ;;
8a7b1113 26143 no:yes )
a848cd7e
SC
26144 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
26145echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
8a7b1113
VZ
26146 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
26147echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
26148 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
26149echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
26150 (
26151 cat <<\_ASBOX
8a7b1113
VZ
26152## ------------------------------------ ##
26153## Report this to bug-autoconf@gnu.org. ##
26154## ------------------------------------ ##
a848cd7e
SC
26155_ASBOX
26156 ) |
26157 sed "s/^/$as_me: WARNING: /" >&2
26158 ;;
26159esac
26160echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26161echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26162if test "${ac_cv_header_GL_gl_h+set}" = set; then
26163 echo $ECHO_N "(cached) $ECHO_C" >&6
26164else
26165 ac_cv_header_GL_gl_h=$ac_header_preproc
26166fi
26167echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26168echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26169
26170fi
26171if test $ac_cv_header_GL_gl_h = yes; then
26172
26173 found_gl=0
26174
26175 echo "$as_me:$LINENO: checking for -lGL" >&5
26176echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
26177
26178ac_find_libraries=
26179for ac_dir in $SEARCH_LIB /usr/lib;
26180 do
26181 for ac_extension in a so sl dylib; do
26182 if test -f "$ac_dir/libGL.$ac_extension"; then
26183 ac_find_libraries=$ac_dir
26184 break 2
26185 fi
26186 done
26187 done
26188
26189 if test "$ac_find_libraries" != "" ; then
26190
26191 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26192 result=$?
26193 if test $result = 0; then
26194 ac_path_to_link=""
26195 else
26196 ac_path_to_link=" -L$ac_find_libraries"
26197 fi
26198
26199 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26200 LDFLAGS_GL="$ac_path_to_link"
26201 fi
26202
26203
26204ac_find_libraries=
26205for ac_dir in $SEARCH_LIB /usr/lib;
26206 do
26207 for ac_extension in a so sl dylib; do
26208 if test -f "$ac_dir/libGLU.$ac_extension"; then
26209 ac_find_libraries=$ac_dir
26210 break 2
26211 fi
26212 done
26213 done
26214
26215 if test "$ac_find_libraries" != "" ; then
26216
26217 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26218 result=$?
26219 if test $result = 0; then
26220 ac_path_to_link=""
26221 else
26222 ac_path_to_link=" -L$ac_find_libraries"
26223 fi
26224
26225 if test "$ac_path_to_link" != " -L/usr/lib" -a \
26226 "$ac_path_to_link" != "$LDFLAGS_GL"; then
26227 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
26228 fi
26229
26230 found_gl=1
26231 OPENGL_LIBS="-lGL -lGLU"
26232 echo "$as_me:$LINENO: result: yes" >&5
26233echo "${ECHO_T}yes" >&6
26234 fi
26235 fi
26236
26237 if test "$found_gl" != 1; then
26238 echo "$as_me:$LINENO: result: no" >&5
26239echo "${ECHO_T}no" >&6
26240 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
26241echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
26242
26243ac_find_libraries=
26244for ac_dir in $SEARCH_LIB /usr/lib;
26245 do
26246 for ac_extension in a so sl dylib; do
26247 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
26248 ac_find_libraries=$ac_dir
26249 break 2
26250 fi
26251 done
26252 done
26253
26254 if test "$ac_find_libraries" != "" ; then
26255
26256 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26257 result=$?
26258 if test $result = 0; then
26259 ac_path_to_link=""
26260 else
26261 ac_path_to_link=" -L$ac_find_libraries"
26262 fi
26263
26264 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
26265 OPENGL_LIBS="-lMesaGL -lMesaGLU"
26266 echo "$as_me:$LINENO: result: yes" >&5
26267echo "${ECHO_T}yes" >&6
26268 else
26269 echo "$as_me:$LINENO: result: no" >&5
26270echo "${ECHO_T}no" >&6
26271 fi
26272 fi
26273
26274fi
26275
26276
26277
26278 if test "x$OPENGL_LIBS" = "x"; then
26279 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
26280echo "$as_me: error: OpenGL libraries not available" >&2;}
26281 { (exit 1); exit 1; }; }
26282 fi
26283 fi
26284
26285 if test "$wxUSE_OPENGL" = "yes"; then
26286 USE_OPENGL=1
26287 cat >>confdefs.h <<\_ACEOF
26288#define wxUSE_OPENGL 1
26289_ACEOF
26290
26291 cat >>confdefs.h <<\_ACEOF
26292#define wxUSE_GLCANVAS 1
26293_ACEOF
26294
26295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
26296 fi
26297fi
26298
26299if test -z "$TOOLKIT_VPATH" ; then
26300 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
26301fi
26302
26303if test -n "$TOOLKIT" ; then
26304 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
26305fi
26306
26307UNICODE=0
26308lib_unicode_suffix=
26309if test "$wxUSE_UNICODE" = "yes"; then
26310 lib_unicode_suffix=u
26311 UNICODE=1
26312fi
26313
26314lib_debug_suffix=
26315DEBUG_FLAG=0
26316if test "$wxUSE_DEBUG_FLAG" = "yes"; then
26317 lib_debug_suffix=d
26318 DEBUG_FLAG=1
26319fi
26320
26321DEBUG_INFO=0
26322if test "$wxUSE_DEBUG_INFO" = "yes"; then
26323 DEBUG_INFO=1
26324fi
26325
26326WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
26327
26328TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
26329TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
26330
26331if test "$cross_compiling" = "yes"; then
26332 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
26333 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
26334 HOST_SUFFIX="-${host_alias}"
26335fi
26336
26337WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
26338WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
26339WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
26340WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
26341
26342WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26343WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26344
26345WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
26346WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26347WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
26348WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26349
26350case "${host}" in
26351 *-*-cygwin* | *-*-mingw32* )
26352 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
26353 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26354 ;;
26355
26356 *-*-darwin* )
26357
26358 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26359 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26360
26361 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
26362 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26363 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
26364 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26365
26366 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
26367 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
26368 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
26369 fi
26370 ;;
26371esac
26372
26373WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
26374WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
26375
26376WXCONFIG_LIBS="-l${WX_LIBRARY}"
26377WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
26378
26379if test "$wxUSE_OPENGL" = "yes"; then
26380 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
26381 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
26382fi
26383
26384
26385
26386if test "$wxUSE_SHARED" = "yes"; then
26387 case "${host}" in
26388 *-pc-msdosdjgpp )
26389 wxUSE_SHARED=no
26390 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
26391echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
26392 ;;
26393 esac
26394fi
26395
26396SHARED=0
26397if test "$wxUSE_SHARED" = "yes"; then
26398 SHARED=1
26399
26400
26401 found_versioning=no
26402
26403
26404 if test $found_versioning = no ; then
26405 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
26406echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
26407if test "${wx_cv_version_script+set}" = set; then
26408 echo $ECHO_N "(cached) $ECHO_C" >&6
26409else
26410
26411 echo "VER_1 { *; };" >conftest.sym
26412 echo "int main() { return 0; }" >conftest.cpp
26413
26414 if { ac_try='
26415 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
26416 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
26417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418 (eval $ac_try) 2>&5
26419 ac_status=$?
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); }; } ; then
26422 if test -s conftest.stderr ; then
26423 wx_cv_version_script=no
26424 else
26425 wx_cv_version_script=yes
26426 fi
26427 else
26428 wx_cv_version_script=no
26429 fi
26430 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
26431
26432fi
26433echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
26434echo "${ECHO_T}$wx_cv_version_script" >&6
26435 if test $wx_cv_version_script = yes ; then
26436 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
26437 fi
26438 fi
26439
26440
26441 case "${host}" in
26442 *-*-linux* | *-*-gnu* )
26443 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
26444 ;;
26445
26446 *-*-solaris2* )
26447 if test "$GCC" = yes ; then
26448 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
26449
26450 saveLdflags="$LDFLAGS"
26451 LDFLAGS="$saveLdflags -Wl,-rpath,/"
26452 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
26453echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
26454 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 26455#line $LINENO "configure"
a848cd7e
SC
26456/* confdefs.h. */
26457_ACEOF
26458cat confdefs.h >>conftest.$ac_ext
26459cat >>conftest.$ac_ext <<_ACEOF
26460/* end confdefs.h. */
26461
26462int
26463main ()
26464{
26465
26466 ;
26467 return 0;
26468}
26469_ACEOF
26470rm -f conftest.$ac_objext conftest$ac_exeext
26471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 26472 (eval $ac_link) 2>&5
a848cd7e 26473 ac_status=$?
a848cd7e
SC
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); } &&
8a7b1113 26476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478 (eval $ac_try) 2>&5
26479 ac_status=$?
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); }; }; then
26482
26483 echo "$as_me:$LINENO: result: yes" >&5
26484echo "${ECHO_T}yes" >&6
26485 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
26486
26487else
26488 echo "$as_me: failed program was:" >&5
26489sed 's/^/| /' conftest.$ac_ext >&5
26490
26491
26492 echo "$as_me:$LINENO: result: no" >&5
26493echo "${ECHO_T}no" >&6
26494 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
26495echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
26496 LDFLAGS="$saveLdflags -Wl,-R,/"
26497 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 26498#line $LINENO "configure"
a848cd7e
SC
26499/* confdefs.h. */
26500_ACEOF
26501cat confdefs.h >>conftest.$ac_ext
26502cat >>conftest.$ac_ext <<_ACEOF
26503/* end confdefs.h. */
26504
26505int
26506main ()
26507{
26508
26509 ;
26510 return 0;
26511}
26512_ACEOF
26513rm -f conftest.$ac_objext conftest$ac_exeext
26514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 26515 (eval $ac_link) 2>&5
a848cd7e 26516 ac_status=$?
a848cd7e
SC
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); } &&
8a7b1113 26519 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26521 (eval $ac_try) 2>&5
26522 ac_status=$?
26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524 (exit $ac_status); }; }; then
26525
26526 echo "$as_me:$LINENO: result: yes" >&5
26527echo "${ECHO_T}yes" >&6
26528 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
26529else
26530 echo "$as_me: failed program was:" >&5
26531sed 's/^/| /' conftest.$ac_ext >&5
26532
26533
26534 echo "$as_me:$LINENO: result: no" >&5
26535echo "${ECHO_T}no" >&6
26536
26537fi
8a7b1113 26538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26539
26540fi
8a7b1113 26541rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26542 LDFLAGS="$saveLdflags"
26543 else
26544 SHARED_LD="${CXX} -G -o"
26545 PIC_FLAG="-KPIC"
26546 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
26547 fi
26548 ;;
26549
26550 powerpc-*-darwin* )
26551 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
26552 cat <<EOF >change-install-names
26553#!/bin/sh
26554libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
26555inst_cmd="install_name_tool "
26556for i in \${libnames} ; do
26557 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
26558done
26559\${inst_cmd} \${3}
26560EOF
26561 chmod +x change-install-names
26562 ;;
26563
26564 *-*-cygwin* | *-*-mingw32* )
26565 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
26566 ;;
26567
26568 esac
26569
26570 if test "x$WX_TARGET_LIBRARY" = "x"; then
26571 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
26572 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
26573 fi
26574
26575 WX_TARGET_LIBRARY_TYPE="so"
26576 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
26577fi
26578
26579if test "$wxUSE_SHARED" = "no"; then
26580
26581 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
26582 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
26583 fi
26584
26585 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
26586 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
26587 fi
26588
26589 if test "$wxUSE_OPENGL" = "yes"; then
26590 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
26591 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
26592 else
26593 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
26594 fi
26595
26596 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
26597 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
26598
26599 WX_TARGET_LIBRARY_TYPE="a"
26600 INSTALL_LIBRARY='$(INSTALL_DATA)'
26601
26602 STATIC_FLAG="yes"
26603else
26604 STATIC_FLAG="no"
26605fi
26606
26607if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
26608 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
26609 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
26610 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
26611
26612 # Extract the first word of "Rez", so it can be a program name with args.
26613set dummy Rez; ac_word=$2
26614echo "$as_me:$LINENO: checking for $ac_word" >&5
26615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26616if test "${ac_cv_prog_RESCOMP+set}" = set; then
26617 echo $ECHO_N "(cached) $ECHO_C" >&6
26618else
26619 if test -n "$RESCOMP"; then
26620 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
26621else
26622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26623for as_dir in $PATH
26624do
26625 IFS=$as_save_IFS
26626 test -z "$as_dir" && as_dir=.
26627 for ac_exec_ext in '' $ac_executable_extensions; do
26628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26629 ac_cv_prog_RESCOMP="Rez"
26630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26631 break 2
26632 fi
26633done
26634done
26635
26636 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
26637fi
26638fi
26639RESCOMP=$ac_cv_prog_RESCOMP
26640if test -n "$RESCOMP"; then
26641 echo "$as_me:$LINENO: result: $RESCOMP" >&5
26642echo "${ECHO_T}$RESCOMP" >&6
26643else
26644 echo "$as_me:$LINENO: result: no" >&5
26645echo "${ECHO_T}no" >&6
26646fi
26647
26648 # Extract the first word of "DeRez", so it can be a program name with args.
26649set dummy DeRez; ac_word=$2
26650echo "$as_me:$LINENO: checking for $ac_word" >&5
26651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26652if test "${ac_cv_prog_DEREZ+set}" = set; then
26653 echo $ECHO_N "(cached) $ECHO_C" >&6
26654else
26655 if test -n "$DEREZ"; then
26656 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
26657else
26658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26659for as_dir in $PATH
26660do
26661 IFS=$as_save_IFS
26662 test -z "$as_dir" && as_dir=.
26663 for ac_exec_ext in '' $ac_executable_extensions; do
26664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26665 ac_cv_prog_DEREZ="DeRez"
26666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26667 break 2
26668 fi
26669done
26670done
26671
26672 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
26673fi
26674fi
26675DEREZ=$ac_cv_prog_DEREZ
26676if test -n "$DEREZ"; then
26677 echo "$as_me:$LINENO: result: $DEREZ" >&5
26678echo "${ECHO_T}$DEREZ" >&6
26679else
26680 echo "$as_me:$LINENO: result: no" >&5
26681echo "${ECHO_T}no" >&6
26682fi
26683
26684 # Extract the first word of "SetFile", so it can be a program name with args.
26685set dummy SetFile; ac_word=$2
26686echo "$as_me:$LINENO: checking for $ac_word" >&5
26687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26688if test "${ac_cv_prog_SETFILE+set}" = set; then
26689 echo $ECHO_N "(cached) $ECHO_C" >&6
26690else
26691 if test -n "$SETFILE"; then
26692 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
26693else
26694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26695for as_dir in $PATH
26696do
26697 IFS=$as_save_IFS
26698 test -z "$as_dir" && as_dir=.
26699 for ac_exec_ext in '' $ac_executable_extensions; do
26700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26701 ac_cv_prog_SETFILE="SetFile"
26702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26703 break 2
26704 fi
26705done
26706done
26707
26708 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
26709fi
26710fi
26711SETFILE=$ac_cv_prog_SETFILE
26712if test -n "$SETFILE"; then
26713 echo "$as_me:$LINENO: result: $SETFILE" >&5
26714echo "${ECHO_T}$SETFILE" >&6
26715else
26716 echo "$as_me:$LINENO: result: no" >&5
26717echo "${ECHO_T}no" >&6
26718fi
26719
26720
26721 MACSETFILE="\$(SETFILE)"
26722
26723 if test "$wxUSE_MAC" = 1; then
26724 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
26725
26726 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
26727 else
26728 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
26729 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
26730 fi
26731else
26732 MACSETFILE="@#"
26733 MACRESWXCONFIG="#"
26734
26735 if test "$wxUSE_PM" = 1; then
26736 MACRESCOMP="emxbind -ep"
26737 else
26738 MACRESCOMP="@#"
26739 fi
26740fi
26741
26742
26743
26744echo "$as_me:$LINENO: checking for mode_t" >&5
26745echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
26746if test "${ac_cv_type_mode_t+set}" = set; then
26747 echo $ECHO_N "(cached) $ECHO_C" >&6
26748else
26749 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 26750#line $LINENO "configure"
a848cd7e
SC
26751/* confdefs.h. */
26752_ACEOF
26753cat confdefs.h >>conftest.$ac_ext
26754cat >>conftest.$ac_ext <<_ACEOF
26755/* end confdefs.h. */
26756$ac_includes_default
26757int
26758main ()
26759{
26760if ((mode_t *) 0)
26761 return 0;
26762if (sizeof (mode_t))
26763 return 0;
26764 ;
26765 return 0;
26766}
26767_ACEOF
26768rm -f conftest.$ac_objext
26769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 26770 (eval $ac_compile) 2>&5
a848cd7e 26771 ac_status=$?
a848cd7e
SC
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); } &&
8a7b1113 26774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26776 (eval $ac_try) 2>&5
26777 ac_status=$?
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779 (exit $ac_status); }; }; then
26780 ac_cv_type_mode_t=yes
26781else
26782 echo "$as_me: failed program was:" >&5
26783sed 's/^/| /' conftest.$ac_ext >&5
26784
26785ac_cv_type_mode_t=no
26786fi
8a7b1113 26787rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26788fi
26789echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
26790echo "${ECHO_T}$ac_cv_type_mode_t" >&6
26791if test $ac_cv_type_mode_t = yes; then
26792 :
26793else
26794
26795cat >>confdefs.h <<_ACEOF
26796#define mode_t int
26797_ACEOF
26798
26799fi
26800
26801echo "$as_me:$LINENO: checking for off_t" >&5
26802echo $ECHO_N "checking for off_t... $ECHO_C" >&6
26803if test "${ac_cv_type_off_t+set}" = set; then
26804 echo $ECHO_N "(cached) $ECHO_C" >&6
26805else
26806 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 26807#line $LINENO "configure"
a848cd7e
SC
26808/* confdefs.h. */
26809_ACEOF
26810cat confdefs.h >>conftest.$ac_ext
26811cat >>conftest.$ac_ext <<_ACEOF
26812/* end confdefs.h. */
26813$ac_includes_default
26814int
26815main ()
26816{
26817if ((off_t *) 0)
26818 return 0;
26819if (sizeof (off_t))
26820 return 0;
26821 ;
26822 return 0;
26823}
26824_ACEOF
26825rm -f conftest.$ac_objext
26826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 26827 (eval $ac_compile) 2>&5
a848cd7e 26828 ac_status=$?
a848cd7e
SC
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } &&
8a7b1113 26831 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26834 ac_status=$?
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
26837 ac_cv_type_off_t=yes
26838else
26839 echo "$as_me: failed program was:" >&5
26840sed 's/^/| /' conftest.$ac_ext >&5
26841
26842ac_cv_type_off_t=no
26843fi
8a7b1113 26844rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26845fi
26846echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26847echo "${ECHO_T}$ac_cv_type_off_t" >&6
26848if test $ac_cv_type_off_t = yes; then
26849 :
26850else
26851
26852cat >>confdefs.h <<_ACEOF
26853#define off_t long
26854_ACEOF
26855
26856fi
26857
26858echo "$as_me:$LINENO: checking for pid_t" >&5
26859echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26860if test "${ac_cv_type_pid_t+set}" = set; then
26861 echo $ECHO_N "(cached) $ECHO_C" >&6
26862else
26863 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 26864#line $LINENO "configure"
a848cd7e
SC
26865/* confdefs.h. */
26866_ACEOF
26867cat confdefs.h >>conftest.$ac_ext
26868cat >>conftest.$ac_ext <<_ACEOF
26869/* end confdefs.h. */
26870$ac_includes_default
26871int
26872main ()
26873{
26874if ((pid_t *) 0)
26875 return 0;
26876if (sizeof (pid_t))
26877 return 0;
26878 ;
26879 return 0;
26880}
26881_ACEOF
26882rm -f conftest.$ac_objext
26883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 26884 (eval $ac_compile) 2>&5
a848cd7e 26885 ac_status=$?
a848cd7e
SC
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); } &&
8a7b1113 26888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26890 (eval $ac_try) 2>&5
26891 ac_status=$?
26892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); }; }; then
26894 ac_cv_type_pid_t=yes
26895else
26896 echo "$as_me: failed program was:" >&5
26897sed 's/^/| /' conftest.$ac_ext >&5
26898
26899ac_cv_type_pid_t=no
26900fi
8a7b1113 26901rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26902fi
26903echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26904echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26905if test $ac_cv_type_pid_t = yes; then
26906 :
26907else
26908
26909cat >>confdefs.h <<_ACEOF
26910#define pid_t int
26911_ACEOF
26912
26913fi
26914
26915echo "$as_me:$LINENO: checking for size_t" >&5
26916echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26917if test "${ac_cv_type_size_t+set}" = set; then
26918 echo $ECHO_N "(cached) $ECHO_C" >&6
26919else
26920 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 26921#line $LINENO "configure"
a848cd7e
SC
26922/* confdefs.h. */
26923_ACEOF
26924cat confdefs.h >>conftest.$ac_ext
26925cat >>conftest.$ac_ext <<_ACEOF
26926/* end confdefs.h. */
26927$ac_includes_default
26928int
26929main ()
26930{
26931if ((size_t *) 0)
26932 return 0;
26933if (sizeof (size_t))
26934 return 0;
26935 ;
26936 return 0;
26937}
26938_ACEOF
26939rm -f conftest.$ac_objext
26940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 26941 (eval $ac_compile) 2>&5
a848cd7e 26942 ac_status=$?
a848cd7e
SC
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); } &&
8a7b1113 26945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26947 (eval $ac_try) 2>&5
26948 ac_status=$?
26949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); }; }; then
26951 ac_cv_type_size_t=yes
26952else
26953 echo "$as_me: failed program was:" >&5
26954sed 's/^/| /' conftest.$ac_ext >&5
26955
26956ac_cv_type_size_t=no
26957fi
8a7b1113 26958rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26959fi
26960echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26961echo "${ECHO_T}$ac_cv_type_size_t" >&6
26962if test $ac_cv_type_size_t = yes; then
26963 :
26964else
26965
26966cat >>confdefs.h <<_ACEOF
26967#define size_t unsigned
26968_ACEOF
26969
26970fi
26971
26972echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26973echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26974if test "${ac_cv_type_uid_t+set}" = set; then
26975 echo $ECHO_N "(cached) $ECHO_C" >&6
26976else
26977 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 26978#line $LINENO "configure"
a848cd7e
SC
26979/* confdefs.h. */
26980_ACEOF
26981cat confdefs.h >>conftest.$ac_ext
26982cat >>conftest.$ac_ext <<_ACEOF
26983/* end confdefs.h. */
26984#include <sys/types.h>
26985
26986_ACEOF
26987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26988 $EGREP "uid_t" >/dev/null 2>&1; then
26989 ac_cv_type_uid_t=yes
26990else
26991 ac_cv_type_uid_t=no
26992fi
26993rm -f conftest*
26994
26995fi
26996echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26997echo "${ECHO_T}$ac_cv_type_uid_t" >&6
26998if test $ac_cv_type_uid_t = no; then
26999
27000cat >>confdefs.h <<\_ACEOF
27001#define uid_t int
27002_ACEOF
27003
27004
27005cat >>confdefs.h <<\_ACEOF
27006#define gid_t int
27007_ACEOF
27008
27009fi
27010
27011
27012
27013
27014ac_ext=cc
27015ac_cpp='$CXXCPP $CPPFLAGS'
27016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27019
27020echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
27021echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
27022if test "${wx_cv_size_t_is_uint+set}" = set; then
27023 echo $ECHO_N "(cached) $ECHO_C" >&6
27024else
27025
27026 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27027#line $LINENO "configure"
a848cd7e
SC
27028/* confdefs.h. */
27029_ACEOF
27030cat confdefs.h >>conftest.$ac_ext
27031cat >>conftest.$ac_ext <<_ACEOF
27032/* end confdefs.h. */
27033#include <stddef.h>
27034int
27035main ()
27036{
27037
27038 return 0; }
27039
27040 struct Foo { void foo(size_t); void foo(unsigned int); };
27041
27042 int bar() {
27043
27044 ;
27045 return 0;
27046}
27047_ACEOF
27048rm -f conftest.$ac_objext
27049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 27050 (eval $ac_compile) 2>&5
a848cd7e 27051 ac_status=$?
a848cd7e
SC
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); } &&
8a7b1113 27054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27056 (eval $ac_try) 2>&5
27057 ac_status=$?
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); }; }; then
27060 wx_cv_size_t_is_uint=no
27061else
27062 echo "$as_me: failed program was:" >&5
27063sed 's/^/| /' conftest.$ac_ext >&5
27064
27065wx_cv_size_t_is_uint=yes
27066
27067fi
8a7b1113 27068rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27069
27070
27071fi
27072echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
27073echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
27074
27075if test "$wx_cv_size_t_is_uint" = "yes"; then
27076 cat >>confdefs.h <<\_ACEOF
27077#define wxSIZE_T_IS_UINT 1
27078_ACEOF
27079
27080else
27081 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
27082echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
27083if test "${wx_cv_size_t_is_ulong+set}" = set; then
27084 echo $ECHO_N "(cached) $ECHO_C" >&6
27085else
27086 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27087#line $LINENO "configure"
a848cd7e
SC
27088/* confdefs.h. */
27089_ACEOF
27090cat confdefs.h >>conftest.$ac_ext
27091cat >>conftest.$ac_ext <<_ACEOF
27092/* end confdefs.h. */
27093#include <stddef.h>
27094int
27095main ()
27096{
27097
27098 return 0; }
27099
27100 struct Foo { void foo(size_t); void foo(unsigned long); };
27101
27102 int bar() {
27103
27104 ;
27105 return 0;
27106}
27107_ACEOF
27108rm -f conftest.$ac_objext
27109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 27110 (eval $ac_compile) 2>&5
a848cd7e 27111 ac_status=$?
a848cd7e
SC
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } &&
8a7b1113 27114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27116 (eval $ac_try) 2>&5
27117 ac_status=$?
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); }; }; then
27120 wx_cv_size_t_is_ulong=no
27121else
27122 echo "$as_me: failed program was:" >&5
27123sed 's/^/| /' conftest.$ac_ext >&5
27124
27125wx_cv_size_t_is_ulong=yes
27126
27127fi
8a7b1113 27128rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27129
27130fi
27131echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
27132echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
27133
27134 if test "$wx_cv_size_t_is_ulong" = "yes"; then
27135 cat >>confdefs.h <<\_ACEOF
27136#define wxSIZE_T_IS_ULONG 1
27137_ACEOF
27138
27139 fi
27140fi
27141
27142ac_ext=c
27143ac_cpp='$CPP $CPPFLAGS'
27144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27146ac_compiler_gnu=$ac_cv_c_compiler_gnu
27147
27148
27149
27150echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
27151echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
27152if test "${wx_cv_struct_pw_gecos+set}" = set; then
27153 echo $ECHO_N "(cached) $ECHO_C" >&6
27154else
27155
27156 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27157#line $LINENO "configure"
a848cd7e
SC
27158/* confdefs.h. */
27159_ACEOF
27160cat confdefs.h >>conftest.$ac_ext
27161cat >>conftest.$ac_ext <<_ACEOF
27162/* end confdefs.h. */
27163#include <pwd.h>
27164int
27165main ()
27166{
27167
27168 char *p;
27169 struct passwd *pw;
27170 p = pw->pw_gecos;
27171
27172 ;
27173 return 0;
27174}
27175_ACEOF
27176rm -f conftest.$ac_objext
27177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 27178 (eval $ac_compile) 2>&5
a848cd7e 27179 ac_status=$?
a848cd7e
SC
27180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181 (exit $ac_status); } &&
8a7b1113 27182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27184 (eval $ac_try) 2>&5
27185 ac_status=$?
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); }; }; then
27188
27189 wx_cv_struct_pw_gecos=yes
27190
27191else
27192 echo "$as_me: failed program was:" >&5
27193sed 's/^/| /' conftest.$ac_ext >&5
27194
27195
27196 wx_cv_struct_pw_gecos=no
27197
27198
27199fi
8a7b1113 27200rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27201
27202
27203fi
27204echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
27205echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
27206
27207if test "$wx_cv_struct_pw_gecos" = "yes"; then
27208 cat >>confdefs.h <<\_ACEOF
27209#define HAVE_PW_GECOS 1
27210_ACEOF
27211
27212fi
27213
27214
27215if test "$wx_cv_sizeof_wchar_t" != "0"; then
27216 cat >>confdefs.h <<\_ACEOF
27217#define wxUSE_WCHAR_T 1
27218_ACEOF
27219
27220
27221 WCSLEN_FOUND=0
27222 WCHAR_LINK=
27223
27224for ac_func in wcslen
27225do
27226as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27227echo "$as_me:$LINENO: checking for $ac_func" >&5
27228echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27229if eval "test \"\${$as_ac_var+set}\" = set"; then
27230 echo $ECHO_N "(cached) $ECHO_C" >&6
27231else
27232 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27233#line $LINENO "configure"
a848cd7e
SC
27234/* confdefs.h. */
27235_ACEOF
27236cat confdefs.h >>conftest.$ac_ext
27237cat >>conftest.$ac_ext <<_ACEOF
27238/* end confdefs.h. */
a848cd7e
SC
27239/* System header to define __stub macros and hopefully few prototypes,
27240 which can conflict with char $ac_func (); below.
27241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27242 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
27243#ifdef __STDC__
27244# include <limits.h>
27245#else
27246# include <assert.h>
27247#endif
a848cd7e
SC
27248/* Override any gcc2 internal prototype to avoid an error. */
27249#ifdef __cplusplus
27250extern "C"
27251{
27252#endif
27253/* We use char because int might match the return type of a gcc2
27254 builtin and then its argument prototype would still apply. */
27255char $ac_func ();
27256/* The GNU C library defines this for functions which it implements
27257 to always fail with ENOSYS. Some functions are actually named
27258 something starting with __ and the normal name is an alias. */
27259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27260choke me
27261#else
27262char (*f) () = $ac_func;
27263#endif
27264#ifdef __cplusplus
27265}
27266#endif
27267
27268int
27269main ()
27270{
27271return f != $ac_func;
27272 ;
27273 return 0;
27274}
27275_ACEOF
27276rm -f conftest.$ac_objext conftest$ac_exeext
27277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 27278 (eval $ac_link) 2>&5
a848cd7e 27279 ac_status=$?
a848cd7e
SC
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); } &&
8a7b1113 27282 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27284 (eval $ac_try) 2>&5
27285 ac_status=$?
27286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); }; }; then
27288 eval "$as_ac_var=yes"
27289else
27290 echo "$as_me: failed program was:" >&5
27291sed 's/^/| /' conftest.$ac_ext >&5
27292
27293eval "$as_ac_var=no"
27294fi
8a7b1113 27295rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27296fi
27297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27298echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27299if test `eval echo '${'$as_ac_var'}'` = yes; then
27300 cat >>confdefs.h <<_ACEOF
27301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27302_ACEOF
27303 WCSLEN_FOUND=1
27304fi
27305done
27306
27307
27308 if test "$WCSLEN_FOUND" = 0; then
27309 if test "$TOOLKIT" = "MSW"; then
27310 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
27311echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
27312if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
27313 echo $ECHO_N "(cached) $ECHO_C" >&6
27314else
27315 ac_check_lib_save_LIBS=$LIBS
27316LIBS="-lmsvcrt $LIBS"
27317cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27318#line $LINENO "configure"
a848cd7e
SC
27319/* confdefs.h. */
27320_ACEOF
27321cat confdefs.h >>conftest.$ac_ext
27322cat >>conftest.$ac_ext <<_ACEOF
27323/* end confdefs.h. */
27324
27325/* Override any gcc2 internal prototype to avoid an error. */
27326#ifdef __cplusplus
27327extern "C"
27328#endif
27329/* We use char because int might match the return type of a gcc2
27330 builtin and then its argument prototype would still apply. */
27331char wcslen ();
27332int
27333main ()
27334{
27335wcslen ();
27336 ;
27337 return 0;
27338}
27339_ACEOF
27340rm -f conftest.$ac_objext conftest$ac_exeext
27341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 27342 (eval $ac_link) 2>&5
a848cd7e 27343 ac_status=$?
a848cd7e
SC
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); } &&
8a7b1113 27346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27348 (eval $ac_try) 2>&5
27349 ac_status=$?
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); }; }; then
27352 ac_cv_lib_msvcrt_wcslen=yes
27353else
27354 echo "$as_me: failed program was:" >&5
27355sed 's/^/| /' conftest.$ac_ext >&5
27356
27357ac_cv_lib_msvcrt_wcslen=no
27358fi
8a7b1113 27359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27360LIBS=$ac_check_lib_save_LIBS
27361fi
27362echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
27363echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
27364if test $ac_cv_lib_msvcrt_wcslen = yes; then
27365 WCHAR_OK=1
27366fi
27367
27368 else
27369 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
27370echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
27371if test "${ac_cv_lib_w_wcslen+set}" = set; then
27372 echo $ECHO_N "(cached) $ECHO_C" >&6
27373else
27374 ac_check_lib_save_LIBS=$LIBS
27375LIBS="-lw $LIBS"
27376cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27377#line $LINENO "configure"
a848cd7e
SC
27378/* confdefs.h. */
27379_ACEOF
27380cat confdefs.h >>conftest.$ac_ext
27381cat >>conftest.$ac_ext <<_ACEOF
27382/* end confdefs.h. */
27383
27384/* Override any gcc2 internal prototype to avoid an error. */
27385#ifdef __cplusplus
27386extern "C"
27387#endif
27388/* We use char because int might match the return type of a gcc2
27389 builtin and then its argument prototype would still apply. */
27390char wcslen ();
27391int
27392main ()
27393{
27394wcslen ();
27395 ;
27396 return 0;
27397}
27398_ACEOF
27399rm -f conftest.$ac_objext conftest$ac_exeext
27400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 27401 (eval $ac_link) 2>&5
a848cd7e 27402 ac_status=$?
a848cd7e
SC
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); } &&
8a7b1113 27405 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407 (eval $ac_try) 2>&5
27408 ac_status=$?
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); }; }; then
27411 ac_cv_lib_w_wcslen=yes
27412else
27413 echo "$as_me: failed program was:" >&5
27414sed 's/^/| /' conftest.$ac_ext >&5
27415
27416ac_cv_lib_w_wcslen=no
27417fi
8a7b1113 27418rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27419LIBS=$ac_check_lib_save_LIBS
27420fi
27421echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
27422echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
27423if test $ac_cv_lib_w_wcslen = yes; then
27424
27425 WCHAR_LINK=" -lw"
27426 WCSLEN_FOUND=1
27427
27428fi
27429
27430 fi
27431 fi
27432
27433 if test "$WCSLEN_FOUND" = 1; then
27434 cat >>confdefs.h <<\_ACEOF
27435#define HAVE_WCSLEN 1
27436_ACEOF
27437
27438 fi
27439
473276a9
VS
27440 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
27441 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
27442 fi
27443
a848cd7e
SC
27444
27445for ac_func in wcsrtombs
27446do
27447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27448echo "$as_me:$LINENO: checking for $ac_func" >&5
27449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27450if eval "test \"\${$as_ac_var+set}\" = set"; then
27451 echo $ECHO_N "(cached) $ECHO_C" >&6
27452else
27453 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27454#line $LINENO "configure"
a848cd7e
SC
27455/* confdefs.h. */
27456_ACEOF
27457cat confdefs.h >>conftest.$ac_ext
27458cat >>conftest.$ac_ext <<_ACEOF
27459/* end confdefs.h. */
a848cd7e
SC
27460/* System header to define __stub macros and hopefully few prototypes,
27461 which can conflict with char $ac_func (); below.
27462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27463 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
27464#ifdef __STDC__
27465# include <limits.h>
27466#else
27467# include <assert.h>
27468#endif
a848cd7e
SC
27469/* Override any gcc2 internal prototype to avoid an error. */
27470#ifdef __cplusplus
27471extern "C"
27472{
27473#endif
27474/* We use char because int might match the return type of a gcc2
27475 builtin and then its argument prototype would still apply. */
27476char $ac_func ();
27477/* The GNU C library defines this for functions which it implements
27478 to always fail with ENOSYS. Some functions are actually named
27479 something starting with __ and the normal name is an alias. */
27480#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27481choke me
27482#else
27483char (*f) () = $ac_func;
27484#endif
27485#ifdef __cplusplus
27486}
27487#endif
27488
27489int
27490main ()
27491{
27492return f != $ac_func;
27493 ;
27494 return 0;
27495}
27496_ACEOF
27497rm -f conftest.$ac_objext conftest$ac_exeext
27498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 27499 (eval $ac_link) 2>&5
a848cd7e 27500 ac_status=$?
a848cd7e
SC
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); } &&
8a7b1113 27503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27505 (eval $ac_try) 2>&5
27506 ac_status=$?
27507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); }; }; then
27509 eval "$as_ac_var=yes"
27510else
27511 echo "$as_me: failed program was:" >&5
27512sed 's/^/| /' conftest.$ac_ext >&5
27513
27514eval "$as_ac_var=no"
27515fi
8a7b1113 27516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27517fi
27518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27520if test `eval echo '${'$as_ac_var'}'` = yes; then
27521 cat >>confdefs.h <<_ACEOF
27522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27523_ACEOF
27524
27525fi
27526done
27527
27528else
27529 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
27530echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
27531fi
27532
27533
27534
27535ac_ext=cc
27536ac_cpp='$CXXCPP $CPPFLAGS'
27537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27540
27541
27542
27543for ac_func in vsnprintf
27544do
27545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27546echo "$as_me:$LINENO: checking for $ac_func" >&5
27547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27548if eval "test \"\${$as_ac_var+set}\" = set"; then
27549 echo $ECHO_N "(cached) $ECHO_C" >&6
27550else
27551 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27552#line $LINENO "configure"
a848cd7e
SC
27553/* confdefs.h. */
27554_ACEOF
27555cat confdefs.h >>conftest.$ac_ext
27556cat >>conftest.$ac_ext <<_ACEOF
27557/* end confdefs.h. */
a848cd7e
SC
27558/* System header to define __stub macros and hopefully few prototypes,
27559 which can conflict with char $ac_func (); below.
27560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27561 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
27562#ifdef __STDC__
27563# include <limits.h>
27564#else
27565# include <assert.h>
27566#endif
a848cd7e
SC
27567/* Override any gcc2 internal prototype to avoid an error. */
27568#ifdef __cplusplus
27569extern "C"
27570{
27571#endif
27572/* We use char because int might match the return type of a gcc2
27573 builtin and then its argument prototype would still apply. */
27574char $ac_func ();
27575/* The GNU C library defines this for functions which it implements
27576 to always fail with ENOSYS. Some functions are actually named
27577 something starting with __ and the normal name is an alias. */
27578#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27579choke me
27580#else
27581char (*f) () = $ac_func;
27582#endif
27583#ifdef __cplusplus
27584}
27585#endif
27586
27587int
27588main ()
27589{
27590return f != $ac_func;
27591 ;
27592 return 0;
27593}
27594_ACEOF
27595rm -f conftest.$ac_objext conftest$ac_exeext
27596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 27597 (eval $ac_link) 2>&5
a848cd7e 27598 ac_status=$?
a848cd7e
SC
27599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); } &&
8a7b1113 27601 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603 (eval $ac_try) 2>&5
27604 ac_status=$?
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); }; }; then
27607 eval "$as_ac_var=yes"
27608else
27609 echo "$as_me: failed program was:" >&5
27610sed 's/^/| /' conftest.$ac_ext >&5
27611
27612eval "$as_ac_var=no"
27613fi
8a7b1113 27614rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27615fi
27616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27617echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27618if test `eval echo '${'$as_ac_var'}'` = yes; then
27619 cat >>confdefs.h <<_ACEOF
27620#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27621_ACEOF
27622
27623fi
27624done
27625
27626
27627if test "$ac_cv_func_vsnprintf" = "yes"; then
27628 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
27629echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
27630if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
27631 echo $ECHO_N "(cached) $ECHO_C" >&6
27632else
27633
27634 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27635#line $LINENO "configure"
a848cd7e
SC
27636/* confdefs.h. */
27637_ACEOF
27638cat confdefs.h >>conftest.$ac_ext
27639cat >>conftest.$ac_ext <<_ACEOF
27640/* end confdefs.h. */
27641
27642 #include <stdio.h>
27643 #include <stdarg.h>
27644
27645int
27646main ()
27647{
27648
27649 char *buf;
27650 va_list ap;
27651 vsnprintf(buf, 10u, "%s", ap);
27652
27653 ;
27654 return 0;
27655}
27656_ACEOF
27657rm -f conftest.$ac_objext
27658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 27659 (eval $ac_compile) 2>&5
a848cd7e 27660 ac_status=$?
a848cd7e
SC
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); } &&
8a7b1113 27663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27665 (eval $ac_try) 2>&5
27666 ac_status=$?
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); }; }; then
27669 wx_cv_func_vsnprintf_decl=yes
27670else
27671 echo "$as_me: failed program was:" >&5
27672sed 's/^/| /' conftest.$ac_ext >&5
27673
27674wx_cv_func_vsnprintf_decl=no
27675
27676fi
8a7b1113 27677rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27678
27679
27680fi
27681echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
27682echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
27683
27684 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
27685 cat >>confdefs.h <<\_ACEOF
27686#define HAVE_VSNPRINTF_DECL 1
27687_ACEOF
27688
27689 fi
27690fi
27691
27692if test "$wxUSE_UNICODE" = yes; then
27693
27694
27695
27696for ac_func in fputwc wprintf vswprintf
27697do
27698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27699echo "$as_me:$LINENO: checking for $ac_func" >&5
27700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27701if eval "test \"\${$as_ac_var+set}\" = set"; then
27702 echo $ECHO_N "(cached) $ECHO_C" >&6
27703else
27704 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27705#line $LINENO "configure"
a848cd7e
SC
27706/* confdefs.h. */
27707_ACEOF
27708cat confdefs.h >>conftest.$ac_ext
27709cat >>conftest.$ac_ext <<_ACEOF
27710/* end confdefs.h. */
a848cd7e
SC
27711/* System header to define __stub macros and hopefully few prototypes,
27712 which can conflict with char $ac_func (); below.
27713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27714 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
27715#ifdef __STDC__
27716# include <limits.h>
27717#else
27718# include <assert.h>
27719#endif
a848cd7e
SC
27720/* Override any gcc2 internal prototype to avoid an error. */
27721#ifdef __cplusplus
27722extern "C"
27723{
27724#endif
27725/* We use char because int might match the return type of a gcc2
27726 builtin and then its argument prototype would still apply. */
27727char $ac_func ();
27728/* The GNU C library defines this for functions which it implements
27729 to always fail with ENOSYS. Some functions are actually named
27730 something starting with __ and the normal name is an alias. */
27731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27732choke me
27733#else
27734char (*f) () = $ac_func;
27735#endif
27736#ifdef __cplusplus
27737}
27738#endif
27739
27740int
27741main ()
27742{
27743return f != $ac_func;
27744 ;
27745 return 0;
27746}
27747_ACEOF
27748rm -f conftest.$ac_objext conftest$ac_exeext
27749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 27750 (eval $ac_link) 2>&5
a848cd7e 27751 ac_status=$?
a848cd7e
SC
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); } &&
8a7b1113 27754 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756 (eval $ac_try) 2>&5
27757 ac_status=$?
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; }; then
27760 eval "$as_ac_var=yes"
27761else
27762 echo "$as_me: failed program was:" >&5
27763sed 's/^/| /' conftest.$ac_ext >&5
27764
27765eval "$as_ac_var=no"
27766fi
8a7b1113 27767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27768fi
27769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27771if test `eval echo '${'$as_ac_var'}'` = yes; then
27772 cat >>confdefs.h <<_ACEOF
27773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27774_ACEOF
27775
27776fi
27777done
27778
27779
27780 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
27781echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
27782 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27783#line $LINENO "configure"
a848cd7e
SC
27784/* confdefs.h. */
27785_ACEOF
27786cat confdefs.h >>conftest.$ac_ext
27787cat >>conftest.$ac_ext <<_ACEOF
27788/* end confdefs.h. */
27789#include <wchar.h>
27790int
27791main ()
27792{
27793&_vsnwprintf;
27794 ;
27795 return 0;
27796}
27797_ACEOF
27798rm -f conftest.$ac_objext
27799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 27800 (eval $ac_compile) 2>&5
a848cd7e 27801 ac_status=$?
a848cd7e
SC
27802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803 (exit $ac_status); } &&
8a7b1113 27804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27806 (eval $ac_try) 2>&5
27807 ac_status=$?
27808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809 (exit $ac_status); }; }; then
27810 echo "$as_me:$LINENO: result: yes" >&5
27811echo "${ECHO_T}yes" >&6
27812 cat >>confdefs.h <<\_ACEOF
27813#define HAVE__VSNWPRINTF 1
27814_ACEOF
27815
27816else
27817 echo "$as_me: failed program was:" >&5
27818sed 's/^/| /' conftest.$ac_ext >&5
27819
27820echo "$as_me:$LINENO: result: no" >&5
27821echo "${ECHO_T}no" >&6
27822fi
8a7b1113 27823rm -f conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
27824fi
27825
27826ac_ext=c
27827ac_cpp='$CPP $CPPFLAGS'
27828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27830ac_compiler_gnu=$ac_cv_c_compiler_gnu
27831
27832
27833
27834
27835if test "$TOOLKIT" != "MSW"; then
27836
27837
27838
27839
27840ac_ext=cc
27841ac_cpp='$CXXCPP $CPPFLAGS'
27842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27845
27846
27847
27848
27849# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
27850if test "${with_libiconv_prefix+set}" = set; then
27851 withval="$with_libiconv_prefix"
27852
27853 for dir in `echo "$withval" | tr : ' '`; do
27854 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
27855 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
27856 done
27857
27858fi;
27859
27860 echo "$as_me:$LINENO: checking for iconv" >&5
27861echo $ECHO_N "checking for iconv... $ECHO_C" >&6
27862if test "${am_cv_func_iconv+set}" = set; then
27863 echo $ECHO_N "(cached) $ECHO_C" >&6
27864else
27865
27866 am_cv_func_iconv="no, consider installing GNU libiconv"
27867 am_cv_lib_iconv=no
27868 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27869#line $LINENO "configure"
a848cd7e
SC
27870/* confdefs.h. */
27871_ACEOF
27872cat confdefs.h >>conftest.$ac_ext
27873cat >>conftest.$ac_ext <<_ACEOF
27874/* end confdefs.h. */
27875#include <stdlib.h>
27876#include <iconv.h>
27877int
27878main ()
27879{
27880iconv_t cd = iconv_open("","");
27881 iconv(cd,NULL,NULL,NULL,NULL);
27882 iconv_close(cd);
27883 ;
27884 return 0;
27885}
27886_ACEOF
27887rm -f conftest.$ac_objext conftest$ac_exeext
27888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 27889 (eval $ac_link) 2>&5
a848cd7e 27890 ac_status=$?
a848cd7e
SC
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); } &&
8a7b1113 27893 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27895 (eval $ac_try) 2>&5
27896 ac_status=$?
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
27899 am_cv_func_iconv=yes
27900else
27901 echo "$as_me: failed program was:" >&5
27902sed 's/^/| /' conftest.$ac_ext >&5
27903
27904fi
8a7b1113 27905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27906 if test "$am_cv_func_iconv" != yes; then
27907 am_save_LIBS="$LIBS"
27908 LIBS="$LIBS -liconv"
27909 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27910#line $LINENO "configure"
a848cd7e
SC
27911/* confdefs.h. */
27912_ACEOF
27913cat confdefs.h >>conftest.$ac_ext
27914cat >>conftest.$ac_ext <<_ACEOF
27915/* end confdefs.h. */
27916#include <stdlib.h>
27917#include <iconv.h>
27918int
27919main ()
27920{
27921iconv_t cd = iconv_open("","");
27922 iconv(cd,NULL,NULL,NULL,NULL);
27923 iconv_close(cd);
27924 ;
27925 return 0;
27926}
27927_ACEOF
27928rm -f conftest.$ac_objext conftest$ac_exeext
27929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 27930 (eval $ac_link) 2>&5
a848cd7e 27931 ac_status=$?
a848cd7e
SC
27932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933 (exit $ac_status); } &&
8a7b1113 27934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27936 (eval $ac_try) 2>&5
27937 ac_status=$?
27938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939 (exit $ac_status); }; }; then
27940 am_cv_lib_iconv=yes
27941 am_cv_func_iconv=yes
27942else
27943 echo "$as_me: failed program was:" >&5
27944sed 's/^/| /' conftest.$ac_ext >&5
27945
27946fi
8a7b1113 27947rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27948 LIBS="$am_save_LIBS"
27949 fi
27950
27951fi
27952echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27953echo "${ECHO_T}$am_cv_func_iconv" >&6
27954 if test "$am_cv_func_iconv" = yes; then
27955
27956cat >>confdefs.h <<\_ACEOF
27957#define HAVE_ICONV 1
27958_ACEOF
27959
27960 echo "$as_me:$LINENO: checking if iconv needs const" >&5
27961echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
27962if test "${wx_cv_func_iconv_const+set}" = set; then
27963 echo $ECHO_N "(cached) $ECHO_C" >&6
27964else
27965 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 27966#line $LINENO "configure"
a848cd7e
SC
27967/* confdefs.h. */
27968_ACEOF
27969cat confdefs.h >>conftest.$ac_ext
27970cat >>conftest.$ac_ext <<_ACEOF
27971/* end confdefs.h. */
27972
27973#include <stdlib.h>
27974#include <iconv.h>
27975extern
27976#ifdef __cplusplus
27977"C"
27978#endif
27979#if defined(__STDC__) || defined(__cplusplus)
27980size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27981#else
27982size_t iconv();
27983#endif
27984
27985int
27986main ()
27987{
27988
27989 ;
27990 return 0;
27991}
27992_ACEOF
27993rm -f conftest.$ac_objext
27994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 27995 (eval $ac_compile) 2>&5
a848cd7e 27996 ac_status=$?
a848cd7e
SC
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); } &&
8a7b1113 27999 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28001 (eval $ac_try) 2>&5
28002 ac_status=$?
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
28005 wx_cv_func_iconv_const="no"
28006else
28007 echo "$as_me: failed program was:" >&5
28008sed 's/^/| /' conftest.$ac_ext >&5
28009
28010wx_cv_func_iconv_const="yes"
28011
28012fi
8a7b1113 28013rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28014
28015fi
28016echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
28017echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
28018
28019 iconv_const=
28020 if test "x$wx_cv_func_iconv_const" = "xyes"; then
28021 iconv_const="const"
28022 fi
28023
28024
28025cat >>confdefs.h <<_ACEOF
28026#define ICONV_CONST $iconv_const
28027_ACEOF
28028
28029 fi
28030 LIBICONV=
28031 if test "$am_cv_lib_iconv" = yes; then
28032 LIBICONV="-liconv"
28033 fi
28034
28035
28036LIBS="$LIBICONV $LIBS"
28037ac_ext=c
28038ac_cpp='$CPP $CPPFLAGS'
28039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28041ac_compiler_gnu=$ac_cv_c_compiler_gnu
28042
28043
28044if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
28045
28046for ac_func in sigaction
28047do
28048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28049echo "$as_me:$LINENO: checking for $ac_func" >&5
28050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28051if eval "test \"\${$as_ac_var+set}\" = set"; then
28052 echo $ECHO_N "(cached) $ECHO_C" >&6
28053else
28054 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 28055#line $LINENO "configure"
a848cd7e
SC
28056/* confdefs.h. */
28057_ACEOF
28058cat confdefs.h >>conftest.$ac_ext
28059cat >>conftest.$ac_ext <<_ACEOF
28060/* end confdefs.h. */
a848cd7e
SC
28061/* System header to define __stub macros and hopefully few prototypes,
28062 which can conflict with char $ac_func (); below.
28063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28064 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
28065#ifdef __STDC__
28066# include <limits.h>
28067#else
28068# include <assert.h>
28069#endif
a848cd7e
SC
28070/* Override any gcc2 internal prototype to avoid an error. */
28071#ifdef __cplusplus
28072extern "C"
28073{
28074#endif
28075/* We use char because int might match the return type of a gcc2
28076 builtin and then its argument prototype would still apply. */
28077char $ac_func ();
28078/* The GNU C library defines this for functions which it implements
28079 to always fail with ENOSYS. Some functions are actually named
28080 something starting with __ and the normal name is an alias. */
28081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28082choke me
28083#else
28084char (*f) () = $ac_func;
28085#endif
28086#ifdef __cplusplus
28087}
28088#endif
28089
28090int
28091main ()
28092{
28093return f != $ac_func;
28094 ;
28095 return 0;
28096}
28097_ACEOF
28098rm -f conftest.$ac_objext conftest$ac_exeext
28099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 28100 (eval $ac_link) 2>&5
a848cd7e 28101 ac_status=$?
a848cd7e
SC
28102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103 (exit $ac_status); } &&
8a7b1113 28104 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28106 (eval $ac_try) 2>&5
28107 ac_status=$?
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); }; }; then
28110 eval "$as_ac_var=yes"
28111else
28112 echo "$as_me: failed program was:" >&5
28113sed 's/^/| /' conftest.$ac_ext >&5
28114
28115eval "$as_ac_var=no"
28116fi
8a7b1113 28117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28118fi
28119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28120echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28121if test `eval echo '${'$as_ac_var'}'` = yes; then
28122 cat >>confdefs.h <<_ACEOF
28123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28124_ACEOF
28125
28126fi
28127done
28128
28129
28130 if test "$ac_cv_func_sigaction" = "no"; then
28131 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
28132echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
28133 wxUSE_ON_FATAL_EXCEPTION=no
28134 fi
28135
28136 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
28137
28138
28139 ac_ext=cc
28140ac_cpp='$CXXCPP $CPPFLAGS'
28141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28144
28145
28146 echo "$as_me:$LINENO: checking for sa_handler type" >&5
28147echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
28148if test "${wx_cv_type_sa_handler+set}" = set; then
28149 echo $ECHO_N "(cached) $ECHO_C" >&6
28150else
28151
28152 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 28153#line $LINENO "configure"
a848cd7e
SC
28154/* confdefs.h. */
28155_ACEOF
28156cat confdefs.h >>conftest.$ac_ext
28157cat >>conftest.$ac_ext <<_ACEOF
28158/* end confdefs.h. */
28159#include <signal.h>
28160int
28161main ()
28162{
28163
28164 extern void testSigHandler(int);
28165
28166 struct sigaction sa;
28167 sa.sa_handler = testSigHandler;
28168
28169 ;
28170 return 0;
28171}
28172_ACEOF
28173rm -f conftest.$ac_objext
28174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 28175 (eval $ac_compile) 2>&5
a848cd7e 28176 ac_status=$?
a848cd7e
SC
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); } &&
8a7b1113 28179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28181 (eval $ac_try) 2>&5
28182 ac_status=$?
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; }; then
28185
28186 wx_cv_type_sa_handler=int
28187
28188else
28189 echo "$as_me: failed program was:" >&5
28190sed 's/^/| /' conftest.$ac_ext >&5
28191
28192
28193 wx_cv_type_sa_handler=void
28194
28195fi
8a7b1113 28196rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28197
28198fi
28199echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
28200echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
28201
28202 ac_ext=c
28203ac_cpp='$CPP $CPPFLAGS'
28204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28206ac_compiler_gnu=$ac_cv_c_compiler_gnu
28207
28208
28209 cat >>confdefs.h <<_ACEOF
28210#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
28211_ACEOF
28212
28213 fi
28214fi
28215
28216
28217
28218for ac_func in mkstemp mktemp
28219do
28220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28221echo "$as_me:$LINENO: checking for $ac_func" >&5
28222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28223if eval "test \"\${$as_ac_var+set}\" = set"; then
28224 echo $ECHO_N "(cached) $ECHO_C" >&6
28225else
28226 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 28227#line $LINENO "configure"
a848cd7e
SC
28228/* confdefs.h. */
28229_ACEOF
28230cat confdefs.h >>conftest.$ac_ext
28231cat >>conftest.$ac_ext <<_ACEOF
28232/* end confdefs.h. */
a848cd7e
SC
28233/* System header to define __stub macros and hopefully few prototypes,
28234 which can conflict with char $ac_func (); below.
28235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28236 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
28237#ifdef __STDC__
28238# include <limits.h>
28239#else
28240# include <assert.h>
28241#endif
a848cd7e
SC
28242/* Override any gcc2 internal prototype to avoid an error. */
28243#ifdef __cplusplus
28244extern "C"
28245{
28246#endif
28247/* We use char because int might match the return type of a gcc2
28248 builtin and then its argument prototype would still apply. */
28249char $ac_func ();
28250/* The GNU C library defines this for functions which it implements
28251 to always fail with ENOSYS. Some functions are actually named
28252 something starting with __ and the normal name is an alias. */
28253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28254choke me
28255#else
28256char (*f) () = $ac_func;
28257#endif
28258#ifdef __cplusplus
28259}
28260#endif
28261
28262int
28263main ()
28264{
28265return f != $ac_func;
28266 ;
28267 return 0;
28268}
28269_ACEOF
28270rm -f conftest.$ac_objext conftest$ac_exeext
28271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 28272 (eval $ac_link) 2>&5
a848cd7e 28273 ac_status=$?
a848cd7e
SC
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); } &&
8a7b1113 28276 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28278 (eval $ac_try) 2>&5
28279 ac_status=$?
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; }; then
28282 eval "$as_ac_var=yes"
28283else
28284 echo "$as_me: failed program was:" >&5
28285sed 's/^/| /' conftest.$ac_ext >&5
28286
28287eval "$as_ac_var=no"
28288fi
8a7b1113 28289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28290fi
28291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28292echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28293if test `eval echo '${'$as_ac_var'}'` = yes; then
28294 cat >>confdefs.h <<_ACEOF
28295#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28296_ACEOF
28297 break
28298fi
28299done
28300
28301
28302echo "$as_me:$LINENO: checking for statfs" >&5
28303echo $ECHO_N "checking for statfs... $ECHO_C" >&6
28304if test "${wx_cv_func_statfs+set}" = set; then
28305 echo $ECHO_N "(cached) $ECHO_C" >&6
28306else
28307 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 28308#line $LINENO "configure"
a848cd7e
SC
28309/* confdefs.h. */
28310_ACEOF
28311cat confdefs.h >>conftest.$ac_ext
28312cat >>conftest.$ac_ext <<_ACEOF
28313/* end confdefs.h. */
28314
28315 #if defined(__BSD__)
28316 #include <sys/param.h>
28317 #include <sys/mount.h>
28318 #else
28319 #include <sys/vfs.h>
28320 #endif
28321
28322int
28323main ()
28324{
28325
28326 long l;
28327 struct statfs fs;
28328 statfs("/", &fs);
28329 l = fs.f_bsize;
28330 l += fs.f_blocks;
28331 l += fs.f_bavail;
28332
28333 ;
28334 return 0;
28335}
28336_ACEOF
28337rm -f conftest.$ac_objext
28338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 28339 (eval $ac_compile) 2>&5
a848cd7e 28340 ac_status=$?
a848cd7e
SC
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); } &&
8a7b1113 28343 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28345 (eval $ac_try) 2>&5
28346 ac_status=$?
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); }; }; then
28349
28350 wx_cv_func_statfs=yes
28351
28352else
28353 echo "$as_me: failed program was:" >&5
28354sed 's/^/| /' conftest.$ac_ext >&5
28355
28356
28357 wx_cv_func_statfs=no
28358
28359
28360fi
8a7b1113 28361rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28362
28363fi
28364echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
28365echo "${ECHO_T}$wx_cv_func_statfs" >&6
28366
28367if test "$wx_cv_func_statfs" = "yes"; then
28368 wx_cv_type_statvfs_t="struct statfs"
28369 cat >>confdefs.h <<\_ACEOF
28370#define HAVE_STATFS 1
28371_ACEOF
28372
28373else
28374 echo "$as_me:$LINENO: checking for statvfs" >&5
28375echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
28376if test "${wx_cv_func_statvfs+set}" = set; then
28377 echo $ECHO_N "(cached) $ECHO_C" >&6
28378else
28379 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 28380#line $LINENO "configure"
a848cd7e
SC
28381/* confdefs.h. */
28382_ACEOF
28383cat confdefs.h >>conftest.$ac_ext
28384cat >>conftest.$ac_ext <<_ACEOF
28385/* end confdefs.h. */
28386
28387 #include <stddef.h>
28388 #include <sys/statvfs.h>
28389
28390int
28391main ()
28392{
28393
28394 statvfs("/", NULL);
28395
28396 ;
28397 return 0;
28398}
28399_ACEOF
28400rm -f conftest.$ac_objext
28401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 28402 (eval $ac_compile) 2>&5
a848cd7e 28403 ac_status=$?
a848cd7e
SC
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); } &&
8a7b1113 28406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28408 (eval $ac_try) 2>&5
28409 ac_status=$?
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); }; }; then
28412 wx_cv_func_statvfs=yes
28413else
28414 echo "$as_me: failed program was:" >&5
28415sed 's/^/| /' conftest.$ac_ext >&5
28416
28417wx_cv_func_statvfs=no
28418
28419fi
8a7b1113 28420rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28421
28422fi
28423echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
28424echo "${ECHO_T}$wx_cv_func_statvfs" >&6
28425
28426 if test "$wx_cv_func_statvfs" = "yes"; then
28427
28428
28429 ac_ext=cc
28430ac_cpp='$CXXCPP $CPPFLAGS'
28431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28434
28435
28436 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
28437echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
28438if test "${wx_cv_type_statvfs_t+set}" = set; then
28439 echo $ECHO_N "(cached) $ECHO_C" >&6
28440else
28441 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 28442#line $LINENO "configure"
a848cd7e
SC
28443/* confdefs.h. */
28444_ACEOF
28445cat confdefs.h >>conftest.$ac_ext
28446cat >>conftest.$ac_ext <<_ACEOF
28447/* end confdefs.h. */
28448
28449 #include <sys/statvfs.h>
28450
28451int
28452main ()
28453{
28454
28455 long l;
28456 statvfs_t fs;
28457 statvfs("/", &fs);
28458 l = fs.f_bsize;
28459 l += fs.f_blocks;
28460 l += fs.f_bavail;
28461
28462 ;
28463 return 0;
28464}
28465_ACEOF
28466rm -f conftest.$ac_objext
28467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 28468 (eval $ac_compile) 2>&5
a848cd7e 28469 ac_status=$?
a848cd7e
SC
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); } &&
8a7b1113 28472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28474 (eval $ac_try) 2>&5
28475 ac_status=$?
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); }; }; then
28478 wx_cv_type_statvfs_t=statvfs_t
28479else
28480 echo "$as_me: failed program was:" >&5
28481sed 's/^/| /' conftest.$ac_ext >&5
28482
28483
28484 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 28485#line $LINENO "configure"
a848cd7e
SC
28486/* confdefs.h. */
28487_ACEOF
28488cat confdefs.h >>conftest.$ac_ext
28489cat >>conftest.$ac_ext <<_ACEOF
28490/* end confdefs.h. */
28491
28492 #include <sys/statvfs.h>
28493
28494int
28495main ()
28496{
28497
28498 long l;
28499 struct statvfs fs;
28500 statvfs("/", &fs);
28501 l = fs.f_bsize;
28502 l += fs.f_blocks;
28503 l += fs.f_bavail;
28504
28505 ;
28506 return 0;
28507}
28508_ACEOF
28509rm -f conftest.$ac_objext
28510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 28511 (eval $ac_compile) 2>&5
a848cd7e 28512 ac_status=$?
a848cd7e
SC
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); } &&
8a7b1113 28515 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28517 (eval $ac_try) 2>&5
28518 ac_status=$?
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); }; }; then
28521 wx_cv_type_statvfs_t="struct statvfs"
28522else
28523 echo "$as_me: failed program was:" >&5
28524sed 's/^/| /' conftest.$ac_ext >&5
28525
28526wx_cv_type_statvfs_t="unknown"
28527
28528fi
8a7b1113 28529rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28530
28531
28532fi
8a7b1113 28533rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28534
28535fi
28536echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
28537echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
28538
28539 ac_ext=c
28540ac_cpp='$CPP $CPPFLAGS'
28541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28543ac_compiler_gnu=$ac_cv_c_compiler_gnu
28544
28545
28546 if test "$wx_cv_type_statvfs_t" != "unknown"; then
28547 cat >>confdefs.h <<\_ACEOF
28548#define HAVE_STATVFS 1
28549_ACEOF
28550
28551 fi
28552 else
28553 wx_cv_type_statvfs_t="unknown"
28554 fi
28555fi
28556
28557if test "$wx_cv_type_statvfs_t" != "unknown"; then
28558 cat >>confdefs.h <<_ACEOF
28559#define WX_STATFS_T $wx_cv_type_statvfs_t
28560_ACEOF
28561
28562else
28563 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
28564echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
28565fi
28566
28567if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
28568
28569
28570for ac_func in fcntl flock
28571do
28572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28573echo "$as_me:$LINENO: checking for $ac_func" >&5
28574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28575if eval "test \"\${$as_ac_var+set}\" = set"; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28577else
28578 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 28579#line $LINENO "configure"
a848cd7e
SC
28580/* confdefs.h. */
28581_ACEOF
28582cat confdefs.h >>conftest.$ac_ext
28583cat >>conftest.$ac_ext <<_ACEOF
28584/* end confdefs.h. */
a848cd7e
SC
28585/* System header to define __stub macros and hopefully few prototypes,
28586 which can conflict with char $ac_func (); below.
28587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28588 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
28589#ifdef __STDC__
28590# include <limits.h>
28591#else
28592# include <assert.h>
28593#endif
a848cd7e
SC
28594/* Override any gcc2 internal prototype to avoid an error. */
28595#ifdef __cplusplus
28596extern "C"
28597{
28598#endif
28599/* We use char because int might match the return type of a gcc2
28600 builtin and then its argument prototype would still apply. */
28601char $ac_func ();
28602/* The GNU C library defines this for functions which it implements
28603 to always fail with ENOSYS. Some functions are actually named
28604 something starting with __ and the normal name is an alias. */
28605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28606choke me
28607#else
28608char (*f) () = $ac_func;
28609#endif
28610#ifdef __cplusplus
28611}
28612#endif
28613
28614int
28615main ()
28616{
28617return f != $ac_func;
28618 ;
28619 return 0;
28620}
28621_ACEOF
28622rm -f conftest.$ac_objext conftest$ac_exeext
28623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 28624 (eval $ac_link) 2>&5
a848cd7e 28625 ac_status=$?
a848cd7e
SC
28626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); } &&
8a7b1113 28628 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28630 (eval $ac_try) 2>&5
28631 ac_status=$?
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); }; }; then
28634 eval "$as_ac_var=yes"
28635else
28636 echo "$as_me: failed program was:" >&5
28637sed 's/^/| /' conftest.$ac_ext >&5
28638
28639eval "$as_ac_var=no"
28640fi
8a7b1113 28641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28642fi
28643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28645if test `eval echo '${'$as_ac_var'}'` = yes; then
28646 cat >>confdefs.h <<_ACEOF
28647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28648_ACEOF
28649 break
28650fi
28651done
28652
28653
28654 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
28655 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
28656echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
28657 wxUSE_SNGLINST_CHECKER=no
28658 fi
28659fi
28660
28661
28662for ac_func in timegm
28663do
28664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28665echo "$as_me:$LINENO: checking for $ac_func" >&5
28666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28667if eval "test \"\${$as_ac_var+set}\" = set"; then
28668 echo $ECHO_N "(cached) $ECHO_C" >&6
28669else
28670 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 28671#line $LINENO "configure"
a848cd7e
SC
28672/* confdefs.h. */
28673_ACEOF
28674cat confdefs.h >>conftest.$ac_ext
28675cat >>conftest.$ac_ext <<_ACEOF
28676/* end confdefs.h. */
a848cd7e
SC
28677/* System header to define __stub macros and hopefully few prototypes,
28678 which can conflict with char $ac_func (); below.
28679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28680 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
28681#ifdef __STDC__
28682# include <limits.h>
28683#else
28684# include <assert.h>
28685#endif
a848cd7e
SC
28686/* Override any gcc2 internal prototype to avoid an error. */
28687#ifdef __cplusplus
28688extern "C"
28689{
28690#endif
28691/* We use char because int might match the return type of a gcc2
28692 builtin and then its argument prototype would still apply. */
28693char $ac_func ();
28694/* The GNU C library defines this for functions which it implements
28695 to always fail with ENOSYS. Some functions are actually named
28696 something starting with __ and the normal name is an alias. */
28697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28698choke me
28699#else
28700char (*f) () = $ac_func;
28701#endif
28702#ifdef __cplusplus
28703}
28704#endif
28705
28706int
28707main ()
28708{
28709return f != $ac_func;
28710 ;
28711 return 0;
28712}
28713_ACEOF
28714rm -f conftest.$ac_objext conftest$ac_exeext
28715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 28716 (eval $ac_link) 2>&5
a848cd7e 28717 ac_status=$?
a848cd7e
SC
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); } &&
8a7b1113 28720 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28722 (eval $ac_try) 2>&5
28723 ac_status=$?
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); }; }; then
28726 eval "$as_ac_var=yes"
28727else
28728 echo "$as_me: failed program was:" >&5
28729sed 's/^/| /' conftest.$ac_ext >&5
28730
28731eval "$as_ac_var=no"
28732fi
8a7b1113 28733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28734fi
28735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28736echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28737if test `eval echo '${'$as_ac_var'}'` = yes; then
28738 cat >>confdefs.h <<_ACEOF
28739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28740_ACEOF
28741
28742fi
28743done
28744
28745
28746
28747
28748for ac_func in putenv setenv
28749do
28750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28751echo "$as_me:$LINENO: checking for $ac_func" >&5
28752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28753if eval "test \"\${$as_ac_var+set}\" = set"; then
28754 echo $ECHO_N "(cached) $ECHO_C" >&6
28755else
28756 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 28757#line $LINENO "configure"
a848cd7e
SC
28758/* confdefs.h. */
28759_ACEOF
28760cat confdefs.h >>conftest.$ac_ext
28761cat >>conftest.$ac_ext <<_ACEOF
28762/* end confdefs.h. */
a848cd7e
SC
28763/* System header to define __stub macros and hopefully few prototypes,
28764 which can conflict with char $ac_func (); below.
28765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28766 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
28767#ifdef __STDC__
28768# include <limits.h>
28769#else
28770# include <assert.h>
28771#endif
a848cd7e
SC
28772/* Override any gcc2 internal prototype to avoid an error. */
28773#ifdef __cplusplus
28774extern "C"
28775{
28776#endif
28777/* We use char because int might match the return type of a gcc2
28778 builtin and then its argument prototype would still apply. */
28779char $ac_func ();
28780/* The GNU C library defines this for functions which it implements
28781 to always fail with ENOSYS. Some functions are actually named
28782 something starting with __ and the normal name is an alias. */
28783#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28784choke me
28785#else
28786char (*f) () = $ac_func;
28787#endif
28788#ifdef __cplusplus
28789}
28790#endif
28791
28792int
28793main ()
28794{
28795return f != $ac_func;
28796 ;
28797 return 0;
28798}
28799_ACEOF
28800rm -f conftest.$ac_objext conftest$ac_exeext
28801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 28802 (eval $ac_link) 2>&5
a848cd7e 28803 ac_status=$?
a848cd7e
SC
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); } &&
8a7b1113 28806 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28808 (eval $ac_try) 2>&5
28809 ac_status=$?
28810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811 (exit $ac_status); }; }; then
28812 eval "$as_ac_var=yes"
28813else
28814 echo "$as_me: failed program was:" >&5
28815sed 's/^/| /' conftest.$ac_ext >&5
28816
28817eval "$as_ac_var=no"
28818fi
8a7b1113 28819rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28820fi
28821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28823if test `eval echo '${'$as_ac_var'}'` = yes; then
28824 cat >>confdefs.h <<_ACEOF
28825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28826_ACEOF
28827 break
28828fi
28829done
28830
28831
28832HAVE_SOME_SLEEP_FUNC=0
28833if test "$USE_BEOS" = 1; then
28834 cat >>confdefs.h <<\_ACEOF
28835#define HAVE_SLEEP 1
28836_ACEOF
28837
28838 HAVE_SOME_SLEEP_FUNC=1
28839fi
28840
28841if test "$USE_DARWIN" = 1; then
28842 cat >>confdefs.h <<\_ACEOF
28843#define HAVE_USLEEP 1
28844_ACEOF
28845
28846 HAVE_SOME_SLEEP_FUNC=1
28847fi
28848
28849if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
28850 POSIX4_LINK=
28851
28852for ac_func in nanosleep
28853do
28854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28855echo "$as_me:$LINENO: checking for $ac_func" >&5
28856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28857if eval "test \"\${$as_ac_var+set}\" = set"; then
28858 echo $ECHO_N "(cached) $ECHO_C" >&6
28859else
28860 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 28861#line $LINENO "configure"
a848cd7e
SC
28862/* confdefs.h. */
28863_ACEOF
28864cat confdefs.h >>conftest.$ac_ext
28865cat >>conftest.$ac_ext <<_ACEOF
28866/* end confdefs.h. */
a848cd7e
SC
28867/* System header to define __stub macros and hopefully few prototypes,
28868 which can conflict with char $ac_func (); below.
28869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28870 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
28871#ifdef __STDC__
28872# include <limits.h>
28873#else
28874# include <assert.h>
28875#endif
a848cd7e
SC
28876/* Override any gcc2 internal prototype to avoid an error. */
28877#ifdef __cplusplus
28878extern "C"
28879{
28880#endif
28881/* We use char because int might match the return type of a gcc2
28882 builtin and then its argument prototype would still apply. */
28883char $ac_func ();
28884/* The GNU C library defines this for functions which it implements
28885 to always fail with ENOSYS. Some functions are actually named
28886 something starting with __ and the normal name is an alias. */
28887#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28888choke me
28889#else
28890char (*f) () = $ac_func;
28891#endif
28892#ifdef __cplusplus
28893}
28894#endif
28895
28896int
28897main ()
28898{
28899return f != $ac_func;
28900 ;
28901 return 0;
28902}
28903_ACEOF
28904rm -f conftest.$ac_objext conftest$ac_exeext
28905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 28906 (eval $ac_link) 2>&5
a848cd7e 28907 ac_status=$?
a848cd7e
SC
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); } &&
8a7b1113 28910 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912 (eval $ac_try) 2>&5
28913 ac_status=$?
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; }; then
28916 eval "$as_ac_var=yes"
28917else
28918 echo "$as_me: failed program was:" >&5
28919sed 's/^/| /' conftest.$ac_ext >&5
28920
28921eval "$as_ac_var=no"
28922fi
8a7b1113 28923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28924fi
28925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28926echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28927if test `eval echo '${'$as_ac_var'}'` = yes; then
28928 cat >>confdefs.h <<_ACEOF
28929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28930_ACEOF
28931 cat >>confdefs.h <<\_ACEOF
28932#define HAVE_NANOSLEEP 1
28933_ACEOF
28934
28935else
28936
28937 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
28938echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
28939if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
28940 echo $ECHO_N "(cached) $ECHO_C" >&6
28941else
28942 ac_check_lib_save_LIBS=$LIBS
28943LIBS="-lposix4 $LIBS"
28944cat >conftest.$ac_ext <<_ACEOF
8a7b1113 28945#line $LINENO "configure"
a848cd7e
SC
28946/* confdefs.h. */
28947_ACEOF
28948cat confdefs.h >>conftest.$ac_ext
28949cat >>conftest.$ac_ext <<_ACEOF
28950/* end confdefs.h. */
28951
28952/* Override any gcc2 internal prototype to avoid an error. */
28953#ifdef __cplusplus
28954extern "C"
28955#endif
28956/* We use char because int might match the return type of a gcc2
28957 builtin and then its argument prototype would still apply. */
28958char nanosleep ();
28959int
28960main ()
28961{
28962nanosleep ();
28963 ;
28964 return 0;
28965}
28966_ACEOF
28967rm -f conftest.$ac_objext conftest$ac_exeext
28968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 28969 (eval $ac_link) 2>&5
a848cd7e 28970 ac_status=$?
a848cd7e
SC
28971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); } &&
8a7b1113 28973 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28975 (eval $ac_try) 2>&5
28976 ac_status=$?
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); }; }; then
28979 ac_cv_lib_posix4_nanosleep=yes
28980else
28981 echo "$as_me: failed program was:" >&5
28982sed 's/^/| /' conftest.$ac_ext >&5
28983
28984ac_cv_lib_posix4_nanosleep=no
28985fi
8a7b1113 28986rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28987LIBS=$ac_check_lib_save_LIBS
28988fi
28989echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
28990echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
28991if test $ac_cv_lib_posix4_nanosleep = yes; then
28992
28993 cat >>confdefs.h <<\_ACEOF
28994#define HAVE_NANOSLEEP 1
28995_ACEOF
28996
28997 POSIX4_LINK=" -lposix4"
28998
28999else
29000
29001
29002for ac_func in usleep
29003do
29004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29005echo "$as_me:$LINENO: checking for $ac_func" >&5
29006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29007if eval "test \"\${$as_ac_var+set}\" = set"; then
29008 echo $ECHO_N "(cached) $ECHO_C" >&6
29009else
29010 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 29011#line $LINENO "configure"
a848cd7e
SC
29012/* confdefs.h. */
29013_ACEOF
29014cat confdefs.h >>conftest.$ac_ext
29015cat >>conftest.$ac_ext <<_ACEOF
29016/* end confdefs.h. */
a848cd7e
SC
29017/* System header to define __stub macros and hopefully few prototypes,
29018 which can conflict with char $ac_func (); below.
29019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29020 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
29021#ifdef __STDC__
29022# include <limits.h>
29023#else
29024# include <assert.h>
29025#endif
a848cd7e
SC
29026/* Override any gcc2 internal prototype to avoid an error. */
29027#ifdef __cplusplus
29028extern "C"
29029{
29030#endif
29031/* We use char because int might match the return type of a gcc2
29032 builtin and then its argument prototype would still apply. */
29033char $ac_func ();
29034/* The GNU C library defines this for functions which it implements
29035 to always fail with ENOSYS. Some functions are actually named
29036 something starting with __ and the normal name is an alias. */
29037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29038choke me
29039#else
29040char (*f) () = $ac_func;
29041#endif
29042#ifdef __cplusplus
29043}
29044#endif
29045
29046int
29047main ()
29048{
29049return f != $ac_func;
29050 ;
29051 return 0;
29052}
29053_ACEOF
29054rm -f conftest.$ac_objext conftest$ac_exeext
29055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 29056 (eval $ac_link) 2>&5
a848cd7e 29057 ac_status=$?
a848cd7e
SC
29058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29059 (exit $ac_status); } &&
8a7b1113 29060 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29062 (eval $ac_try) 2>&5
29063 ac_status=$?
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); }; }; then
29066 eval "$as_ac_var=yes"
29067else
29068 echo "$as_me: failed program was:" >&5
29069sed 's/^/| /' conftest.$ac_ext >&5
29070
29071eval "$as_ac_var=no"
29072fi
8a7b1113 29073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29074fi
29075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29076echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29077if test `eval echo '${'$as_ac_var'}'` = yes; then
29078 cat >>confdefs.h <<_ACEOF
29079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29080_ACEOF
29081 cat >>confdefs.h <<\_ACEOF
29082#define HAVE_USLEEP 1
29083_ACEOF
29084
29085else
29086 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
29087echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
29088
29089fi
29090done
29091
29092
29093
29094fi
29095
29096
29097
29098fi
29099done
29100
29101fi
29102
29103
29104
29105for ac_func in uname gethostname
29106do
29107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29108echo "$as_me:$LINENO: checking for $ac_func" >&5
29109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29110if eval "test \"\${$as_ac_var+set}\" = set"; then
29111 echo $ECHO_N "(cached) $ECHO_C" >&6
29112else
29113 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 29114#line $LINENO "configure"
a848cd7e
SC
29115/* confdefs.h. */
29116_ACEOF
29117cat confdefs.h >>conftest.$ac_ext
29118cat >>conftest.$ac_ext <<_ACEOF
29119/* end confdefs.h. */
a848cd7e
SC
29120/* System header to define __stub macros and hopefully few prototypes,
29121 which can conflict with char $ac_func (); below.
29122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29123 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
29124#ifdef __STDC__
29125# include <limits.h>
29126#else
29127# include <assert.h>
29128#endif
a848cd7e
SC
29129/* Override any gcc2 internal prototype to avoid an error. */
29130#ifdef __cplusplus
29131extern "C"
29132{
29133#endif
29134/* We use char because int might match the return type of a gcc2
29135 builtin and then its argument prototype would still apply. */
29136char $ac_func ();
29137/* The GNU C library defines this for functions which it implements
29138 to always fail with ENOSYS. Some functions are actually named
29139 something starting with __ and the normal name is an alias. */
29140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29141choke me
29142#else
29143char (*f) () = $ac_func;
29144#endif
29145#ifdef __cplusplus
29146}
29147#endif
29148
29149int
29150main ()
29151{
29152return f != $ac_func;
29153 ;
29154 return 0;
29155}
29156_ACEOF
29157rm -f conftest.$ac_objext conftest$ac_exeext
29158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 29159 (eval $ac_link) 2>&5
a848cd7e 29160 ac_status=$?
a848cd7e
SC
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); } &&
8a7b1113 29163 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29165 (eval $ac_try) 2>&5
29166 ac_status=$?
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); }; }; then
29169 eval "$as_ac_var=yes"
29170else
29171 echo "$as_me: failed program was:" >&5
29172sed 's/^/| /' conftest.$ac_ext >&5
29173
29174eval "$as_ac_var=no"
29175fi
8a7b1113 29176rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29177fi
29178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29180if test `eval echo '${'$as_ac_var'}'` = yes; then
29181 cat >>confdefs.h <<_ACEOF
29182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29183_ACEOF
29184 break
29185fi
29186done
29187
29188
29189
29190
29191ac_ext=cc
29192ac_cpp='$CXXCPP $CPPFLAGS'
29193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29196
29197
29198
29199for ac_func in strtok_r
29200do
29201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29202echo "$as_me:$LINENO: checking for $ac_func" >&5
29203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29204if eval "test \"\${$as_ac_var+set}\" = set"; then
29205 echo $ECHO_N "(cached) $ECHO_C" >&6
29206else
29207 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 29208#line $LINENO "configure"
a848cd7e
SC
29209/* confdefs.h. */
29210_ACEOF
29211cat confdefs.h >>conftest.$ac_ext
29212cat >>conftest.$ac_ext <<_ACEOF
29213/* end confdefs.h. */
a848cd7e
SC
29214/* System header to define __stub macros and hopefully few prototypes,
29215 which can conflict with char $ac_func (); below.
29216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29217 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
29218#ifdef __STDC__
29219# include <limits.h>
29220#else
29221# include <assert.h>
29222#endif
a848cd7e
SC
29223/* Override any gcc2 internal prototype to avoid an error. */
29224#ifdef __cplusplus
29225extern "C"
29226{
29227#endif
29228/* We use char because int might match the return type of a gcc2
29229 builtin and then its argument prototype would still apply. */
29230char $ac_func ();
29231/* The GNU C library defines this for functions which it implements
29232 to always fail with ENOSYS. Some functions are actually named
29233 something starting with __ and the normal name is an alias. */
29234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29235choke me
29236#else
29237char (*f) () = $ac_func;
29238#endif
29239#ifdef __cplusplus
29240}
29241#endif
29242
29243int
29244main ()
29245{
29246return f != $ac_func;
29247 ;
29248 return 0;
29249}
29250_ACEOF
29251rm -f conftest.$ac_objext conftest$ac_exeext
29252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 29253 (eval $ac_link) 2>&5
a848cd7e 29254 ac_status=$?
a848cd7e
SC
29255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256 (exit $ac_status); } &&
8a7b1113 29257 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29263 eval "$as_ac_var=yes"
29264else
29265 echo "$as_me: failed program was:" >&5
29266sed 's/^/| /' conftest.$ac_ext >&5
29267
29268eval "$as_ac_var=no"
29269fi
8a7b1113 29270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29271fi
29272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29273echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29274if test `eval echo '${'$as_ac_var'}'` = yes; then
29275 cat >>confdefs.h <<_ACEOF
29276#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29277_ACEOF
29278
29279fi
29280done
29281
29282
29283ac_ext=c
29284ac_cpp='$CPP $CPPFLAGS'
29285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29287ac_compiler_gnu=$ac_cv_c_compiler_gnu
29288
29289
29290INET_LINK=
29291
29292for ac_func in inet_addr
29293do
29294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29295echo "$as_me:$LINENO: checking for $ac_func" >&5
29296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29297if eval "test \"\${$as_ac_var+set}\" = set"; then
29298 echo $ECHO_N "(cached) $ECHO_C" >&6
29299else
29300 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 29301#line $LINENO "configure"
a848cd7e
SC
29302/* confdefs.h. */
29303_ACEOF
29304cat confdefs.h >>conftest.$ac_ext
29305cat >>conftest.$ac_ext <<_ACEOF
29306/* end confdefs.h. */
a848cd7e
SC
29307/* System header to define __stub macros and hopefully few prototypes,
29308 which can conflict with char $ac_func (); below.
29309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29310 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
29311#ifdef __STDC__
29312# include <limits.h>
29313#else
29314# include <assert.h>
29315#endif
a848cd7e
SC
29316/* Override any gcc2 internal prototype to avoid an error. */
29317#ifdef __cplusplus
29318extern "C"
29319{
29320#endif
29321/* We use char because int might match the return type of a gcc2
29322 builtin and then its argument prototype would still apply. */
29323char $ac_func ();
29324/* The GNU C library defines this for functions which it implements
29325 to always fail with ENOSYS. Some functions are actually named
29326 something starting with __ and the normal name is an alias. */
29327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29328choke me
29329#else
29330char (*f) () = $ac_func;
29331#endif
29332#ifdef __cplusplus
29333}
29334#endif
29335
29336int
29337main ()
29338{
29339return f != $ac_func;
29340 ;
29341 return 0;
29342}
29343_ACEOF
29344rm -f conftest.$ac_objext conftest$ac_exeext
29345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 29346 (eval $ac_link) 2>&5
a848cd7e 29347 ac_status=$?
a848cd7e
SC
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); } &&
8a7b1113 29350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352 (eval $ac_try) 2>&5
29353 ac_status=$?
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; }; then
29356 eval "$as_ac_var=yes"
29357else
29358 echo "$as_me: failed program was:" >&5
29359sed 's/^/| /' conftest.$ac_ext >&5
29360
29361eval "$as_ac_var=no"
29362fi
8a7b1113 29363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29364fi
29365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29366echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29367if test `eval echo '${'$as_ac_var'}'` = yes; then
29368 cat >>confdefs.h <<_ACEOF
29369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29370_ACEOF
29371 cat >>confdefs.h <<\_ACEOF
29372#define HAVE_INET_ADDR 1
29373_ACEOF
29374
29375else
29376
29377 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
29378echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
29379if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
29380 echo $ECHO_N "(cached) $ECHO_C" >&6
29381else
29382 ac_check_lib_save_LIBS=$LIBS
29383LIBS="-lnsl $LIBS"
29384cat >conftest.$ac_ext <<_ACEOF
8a7b1113 29385#line $LINENO "configure"
a848cd7e
SC
29386/* confdefs.h. */
29387_ACEOF
29388cat confdefs.h >>conftest.$ac_ext
29389cat >>conftest.$ac_ext <<_ACEOF
29390/* end confdefs.h. */
29391
29392/* Override any gcc2 internal prototype to avoid an error. */
29393#ifdef __cplusplus
29394extern "C"
29395#endif
29396/* We use char because int might match the return type of a gcc2
29397 builtin and then its argument prototype would still apply. */
29398char inet_addr ();
29399int
29400main ()
29401{
29402inet_addr ();
29403 ;
29404 return 0;
29405}
29406_ACEOF
29407rm -f conftest.$ac_objext conftest$ac_exeext
29408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 29409 (eval $ac_link) 2>&5
a848cd7e 29410 ac_status=$?
a848cd7e
SC
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); } &&
8a7b1113 29413 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29415 (eval $ac_try) 2>&5
29416 ac_status=$?
29417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418 (exit $ac_status); }; }; then
29419 ac_cv_lib_nsl_inet_addr=yes
29420else
29421 echo "$as_me: failed program was:" >&5
29422sed 's/^/| /' conftest.$ac_ext >&5
29423
29424ac_cv_lib_nsl_inet_addr=no
29425fi
8a7b1113 29426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29427LIBS=$ac_check_lib_save_LIBS
29428fi
29429echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
29430echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
29431if test $ac_cv_lib_nsl_inet_addr = yes; then
29432 INET_LINK="nsl"
29433else
29434
29435 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
29436echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
29437if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
29438 echo $ECHO_N "(cached) $ECHO_C" >&6
29439else
29440 ac_check_lib_save_LIBS=$LIBS
29441LIBS="-lresolv $LIBS"
29442cat >conftest.$ac_ext <<_ACEOF
8a7b1113 29443#line $LINENO "configure"
a848cd7e
SC
29444/* confdefs.h. */
29445_ACEOF
29446cat confdefs.h >>conftest.$ac_ext
29447cat >>conftest.$ac_ext <<_ACEOF
29448/* end confdefs.h. */
29449
29450/* Override any gcc2 internal prototype to avoid an error. */
29451#ifdef __cplusplus
29452extern "C"
29453#endif
29454/* We use char because int might match the return type of a gcc2
29455 builtin and then its argument prototype would still apply. */
29456char inet_addr ();
29457int
29458main ()
29459{
29460inet_addr ();
29461 ;
29462 return 0;
29463}
29464_ACEOF
29465rm -f conftest.$ac_objext conftest$ac_exeext
29466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 29467 (eval $ac_link) 2>&5
a848cd7e 29468 ac_status=$?
a848cd7e
SC
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); } &&
8a7b1113 29471 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29473 (eval $ac_try) 2>&5
29474 ac_status=$?
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); }; }; then
29477 ac_cv_lib_resolv_inet_addr=yes
29478else
29479 echo "$as_me: failed program was:" >&5
29480sed 's/^/| /' conftest.$ac_ext >&5
29481
29482ac_cv_lib_resolv_inet_addr=no
29483fi
8a7b1113 29484rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29485LIBS=$ac_check_lib_save_LIBS
29486fi
29487echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
29488echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
29489if test $ac_cv_lib_resolv_inet_addr = yes; then
29490 INET_LINK="resolv"
29491else
29492
29493 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
29494echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
29495if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
29496 echo $ECHO_N "(cached) $ECHO_C" >&6
29497else
29498 ac_check_lib_save_LIBS=$LIBS
29499LIBS="-lsocket $LIBS"
29500cat >conftest.$ac_ext <<_ACEOF
8a7b1113 29501#line $LINENO "configure"
a848cd7e
SC
29502/* confdefs.h. */
29503_ACEOF
29504cat confdefs.h >>conftest.$ac_ext
29505cat >>conftest.$ac_ext <<_ACEOF
29506/* end confdefs.h. */
29507
29508/* Override any gcc2 internal prototype to avoid an error. */
29509#ifdef __cplusplus
29510extern "C"
29511#endif
29512/* We use char because int might match the return type of a gcc2
29513 builtin and then its argument prototype would still apply. */
29514char inet_addr ();
29515int
29516main ()
29517{
29518inet_addr ();
29519 ;
29520 return 0;
29521}
29522_ACEOF
29523rm -f conftest.$ac_objext conftest$ac_exeext
29524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 29525 (eval $ac_link) 2>&5
a848cd7e 29526 ac_status=$?
a848cd7e
SC
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); } &&
8a7b1113 29529 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29531 (eval $ac_try) 2>&5
29532 ac_status=$?
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); }; }; then
29535 ac_cv_lib_socket_inet_addr=yes
29536else
29537 echo "$as_me: failed program was:" >&5
29538sed 's/^/| /' conftest.$ac_ext >&5
29539
29540ac_cv_lib_socket_inet_addr=no
29541fi
8a7b1113 29542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29543LIBS=$ac_check_lib_save_LIBS
29544fi
29545echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
29546echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
29547if test $ac_cv_lib_socket_inet_addr = yes; then
29548 INET_LINK="socket"
29549
29550fi
29551
29552
29553
29554fi
29555
29556
29557
29558fi
29559
29560
29561
29562fi
29563done
29564
29565
29566
29567for ac_func in inet_aton
29568do
29569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29570echo "$as_me:$LINENO: checking for $ac_func" >&5
29571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29572if eval "test \"\${$as_ac_var+set}\" = set"; then
29573 echo $ECHO_N "(cached) $ECHO_C" >&6
29574else
29575 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 29576#line $LINENO "configure"
a848cd7e
SC
29577/* confdefs.h. */
29578_ACEOF
29579cat confdefs.h >>conftest.$ac_ext
29580cat >>conftest.$ac_ext <<_ACEOF
29581/* end confdefs.h. */
a848cd7e
SC
29582/* System header to define __stub macros and hopefully few prototypes,
29583 which can conflict with char $ac_func (); below.
29584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29585 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
29586#ifdef __STDC__
29587# include <limits.h>
29588#else
29589# include <assert.h>
29590#endif
a848cd7e
SC
29591/* Override any gcc2 internal prototype to avoid an error. */
29592#ifdef __cplusplus
29593extern "C"
29594{
29595#endif
29596/* We use char because int might match the return type of a gcc2
29597 builtin and then its argument prototype would still apply. */
29598char $ac_func ();
29599/* The GNU C library defines this for functions which it implements
29600 to always fail with ENOSYS. Some functions are actually named
29601 something starting with __ and the normal name is an alias. */
29602#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29603choke me
29604#else
29605char (*f) () = $ac_func;
29606#endif
29607#ifdef __cplusplus
29608}
29609#endif
29610
29611int
29612main ()
29613{
29614return f != $ac_func;
29615 ;
29616 return 0;
29617}
29618_ACEOF
29619rm -f conftest.$ac_objext conftest$ac_exeext
29620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 29621 (eval $ac_link) 2>&5
a848cd7e 29622 ac_status=$?
a848cd7e
SC
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); } &&
8a7b1113 29625 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29627 (eval $ac_try) 2>&5
29628 ac_status=$?
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); }; }; then
29631 eval "$as_ac_var=yes"
29632else
29633 echo "$as_me: failed program was:" >&5
29634sed 's/^/| /' conftest.$ac_ext >&5
29635
29636eval "$as_ac_var=no"
29637fi
8a7b1113 29638rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29639fi
29640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29641echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29642if test `eval echo '${'$as_ac_var'}'` = yes; then
29643 cat >>confdefs.h <<_ACEOF
29644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29645_ACEOF
29646 cat >>confdefs.h <<\_ACEOF
29647#define HAVE_INET_ATON 1
29648_ACEOF
29649
29650else
29651
29652 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
29653echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
29654echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
29655if eval "test \"\${$as_ac_Lib+set}\" = set"; then
29656 echo $ECHO_N "(cached) $ECHO_C" >&6
29657else
29658 ac_check_lib_save_LIBS=$LIBS
29659LIBS="-l$INET_LINK $LIBS"
29660cat >conftest.$ac_ext <<_ACEOF
8a7b1113 29661#line $LINENO "configure"
a848cd7e
SC
29662/* confdefs.h. */
29663_ACEOF
29664cat confdefs.h >>conftest.$ac_ext
29665cat >>conftest.$ac_ext <<_ACEOF
29666/* end confdefs.h. */
29667
29668/* Override any gcc2 internal prototype to avoid an error. */
29669#ifdef __cplusplus
29670extern "C"
29671#endif
29672/* We use char because int might match the return type of a gcc2
29673 builtin and then its argument prototype would still apply. */
29674char inet_aton ();
29675int
29676main ()
29677{
29678inet_aton ();
29679 ;
29680 return 0;
29681}
29682_ACEOF
29683rm -f conftest.$ac_objext conftest$ac_exeext
29684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 29685 (eval $ac_link) 2>&5
a848cd7e 29686 ac_status=$?
a848cd7e
SC
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); } &&
8a7b1113 29689 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691 (eval $ac_try) 2>&5
29692 ac_status=$?
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); }; }; then
29695 eval "$as_ac_Lib=yes"
29696else
29697 echo "$as_me: failed program was:" >&5
29698sed 's/^/| /' conftest.$ac_ext >&5
29699
29700eval "$as_ac_Lib=no"
29701fi
8a7b1113 29702rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29703LIBS=$ac_check_lib_save_LIBS
29704fi
29705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
29706echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
29707if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29708 cat >>confdefs.h <<\_ACEOF
29709#define HAVE_INET_ATON 1
29710_ACEOF
29711
29712fi
29713
29714
29715fi
29716done
29717
29718
29719if test "x$INET_LINK" != "x"; then
29720 cat >>confdefs.h <<\_ACEOF
29721#define HAVE_INET_ADDR 1
29722_ACEOF
29723
29724 INET_LINK=" -l$INET_LINK"
29725fi
29726
29727fi
29728
29729
29730
29731EXTRALIBS_ESD=
29732echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
29733echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
29734if test "${ac_cv_lib_esd_esd_close+set}" = set; then
29735 echo $ECHO_N "(cached) $ECHO_C" >&6
29736else
29737 ac_check_lib_save_LIBS=$LIBS
29738LIBS="-lesd $LIBS"
29739cat >conftest.$ac_ext <<_ACEOF
8a7b1113 29740#line $LINENO "configure"
a848cd7e
SC
29741/* confdefs.h. */
29742_ACEOF
29743cat confdefs.h >>conftest.$ac_ext
29744cat >>conftest.$ac_ext <<_ACEOF
29745/* end confdefs.h. */
29746
29747/* Override any gcc2 internal prototype to avoid an error. */
29748#ifdef __cplusplus
29749extern "C"
29750#endif
29751/* We use char because int might match the return type of a gcc2
29752 builtin and then its argument prototype would still apply. */
29753char esd_close ();
29754int
29755main ()
29756{
29757esd_close ();
29758 ;
29759 return 0;
29760}
29761_ACEOF
29762rm -f conftest.$ac_objext conftest$ac_exeext
29763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 29764 (eval $ac_link) 2>&5
a848cd7e 29765 ac_status=$?
a848cd7e
SC
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); } &&
8a7b1113 29768 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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 ac_cv_lib_esd_esd_close=yes
29775else
29776 echo "$as_me: failed program was:" >&5
29777sed 's/^/| /' conftest.$ac_ext >&5
29778
29779ac_cv_lib_esd_esd_close=no
29780fi
8a7b1113 29781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29782LIBS=$ac_check_lib_save_LIBS
29783fi
29784echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
29785echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
29786if test $ac_cv_lib_esd_esd_close = yes; then
29787
29788
29789for ac_header in esd.h
29790do
29791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29792if eval "test \"\${$as_ac_Header+set}\" = set"; then
29793 echo "$as_me:$LINENO: checking for $ac_header" >&5
29794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29795if eval "test \"\${$as_ac_Header+set}\" = set"; then
29796 echo $ECHO_N "(cached) $ECHO_C" >&6
29797fi
29798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29800else
29801 # Is the header compilable?
29802echo "$as_me:$LINENO: checking $ac_header usability" >&5
29803echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29804cat >conftest.$ac_ext <<_ACEOF
8a7b1113 29805#line $LINENO "configure"
a848cd7e
SC
29806/* confdefs.h. */
29807_ACEOF
29808cat confdefs.h >>conftest.$ac_ext
29809cat >>conftest.$ac_ext <<_ACEOF
29810/* end confdefs.h. */
29811$ac_includes_default
29812#include <$ac_header>
29813_ACEOF
29814rm -f conftest.$ac_objext
29815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 29816 (eval $ac_compile) 2>&5
a848cd7e 29817 ac_status=$?
a848cd7e
SC
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); } &&
8a7b1113 29820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29822 (eval $ac_try) 2>&5
29823 ac_status=$?
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); }; }; then
29826 ac_header_compiler=yes
29827else
29828 echo "$as_me: failed program was:" >&5
29829sed 's/^/| /' conftest.$ac_ext >&5
29830
29831ac_header_compiler=no
29832fi
8a7b1113 29833rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29835echo "${ECHO_T}$ac_header_compiler" >&6
29836
29837# Is the header present?
29838echo "$as_me:$LINENO: checking $ac_header presence" >&5
29839echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29840cat >conftest.$ac_ext <<_ACEOF
8a7b1113 29841#line $LINENO "configure"
a848cd7e
SC
29842/* confdefs.h. */
29843_ACEOF
29844cat confdefs.h >>conftest.$ac_ext
29845cat >>conftest.$ac_ext <<_ACEOF
29846/* end confdefs.h. */
29847#include <$ac_header>
29848_ACEOF
29849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29851 ac_status=$?
29852 grep -v '^ *+' conftest.er1 >conftest.err
29853 rm -f conftest.er1
29854 cat conftest.err >&5
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); } >/dev/null; then
29857 if test -s conftest.err; then
29858 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
29859 else
29860 ac_cpp_err=
29861 fi
29862else
29863 ac_cpp_err=yes
29864fi
29865if test -z "$ac_cpp_err"; then
29866 ac_header_preproc=yes
29867else
29868 echo "$as_me: failed program was:" >&5
29869sed 's/^/| /' conftest.$ac_ext >&5
29870
29871 ac_header_preproc=no
29872fi
29873rm -f conftest.err conftest.$ac_ext
29874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29875echo "${ECHO_T}$ac_header_preproc" >&6
29876
29877# So? What about this header?
8a7b1113
VZ
29878case $ac_header_compiler:$ac_header_preproc in
29879 yes:no )
a848cd7e
SC
29880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
29882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29884 (
29885 cat <<\_ASBOX
29886## ------------------------------------ ##
29887## Report this to bug-autoconf@gnu.org. ##
29888## ------------------------------------ ##
29889_ASBOX
29890 ) |
29891 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 29892 ;;
8a7b1113 29893 no:yes )
a848cd7e
SC
29894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
29896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
29898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
29900 (
29901 cat <<\_ASBOX
8a7b1113
VZ
29902## ------------------------------------ ##
29903## Report this to bug-autoconf@gnu.org. ##
29904## ------------------------------------ ##
a848cd7e
SC
29905_ASBOX
29906 ) |
29907 sed "s/^/$as_me: WARNING: /" >&2
29908 ;;
29909esac
29910echo "$as_me:$LINENO: checking for $ac_header" >&5
29911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29912if eval "test \"\${$as_ac_Header+set}\" = set"; then
29913 echo $ECHO_N "(cached) $ECHO_C" >&6
29914else
8a7b1113 29915 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
29916fi
29917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29919
29920fi
29921if test `eval echo '${'$as_ac_Header'}'` = yes; then
29922 cat >>confdefs.h <<_ACEOF
29923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29924_ACEOF
29925
29926 EXTRALIBS_ESD="-lesd"
29927
29928fi
29929
29930done
29931
29932
29933fi
29934
29935
29936
29937echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
29938echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
29939cat >conftest.$ac_ext <<_ACEOF
8a7b1113 29940#line $LINENO "configure"
a848cd7e
SC
29941/* confdefs.h. */
29942_ACEOF
29943cat confdefs.h >>conftest.$ac_ext
29944cat >>conftest.$ac_ext <<_ACEOF
29945/* end confdefs.h. */
29946#ifdef __linux__
29947 #include <linux/cdrom.h>
29948 #else
29949 /* For Solaris */
29950 #include <sys/cdio.h>
29951 #endif
29952
29953int
29954main ()
29955{
29956struct cdrom_tocentry entry, old_entry;
29957 ;
29958 return 0;
29959}
29960_ACEOF
29961rm -f conftest.$ac_objext
29962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 29963 (eval $ac_compile) 2>&5
a848cd7e 29964 ac_status=$?
a848cd7e
SC
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); } &&
8a7b1113 29967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29969 (eval $ac_try) 2>&5
29970 ac_status=$?
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); }; }; then
29973 echo "$as_me:$LINENO: result: yes" >&5
29974echo "${ECHO_T}yes" >&6
29975 cat >>confdefs.h <<\_ACEOF
29976#define HAVE_KNOWN_CDROM_INTERFACE 1
29977_ACEOF
29978
29979else
29980 echo "$as_me: failed program was:" >&5
29981sed 's/^/| /' conftest.$ac_ext >&5
29982
29983echo "$as_me:$LINENO: result: no" >&5
29984echo "${ECHO_T}no" >&6
29985fi
8a7b1113 29986rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29987
29988
29989cat >confcache <<\_ACEOF
29990# This file is a shell script that caches the results of configure
29991# tests run on this system so they can be shared between configure
29992# scripts and configure runs, see configure's option --config-cache.
29993# It is not useful on other systems. If it contains results you don't
29994# want to keep, you may remove or edit it.
29995#
29996# config.status only pays attention to the cache file if you give it
29997# the --recheck option to rerun configure.
29998#
29999# `ac_cv_env_foo' variables (set or unset) will be overridden when
30000# loading this file, other *unset* `ac_cv_foo' will be assigned the
30001# following values.
30002
30003_ACEOF
30004
30005# The following way of writing the cache mishandles newlines in values,
30006# but we know of no workaround that is simple, portable, and efficient.
30007# So, don't put newlines in cache variables' values.
30008# Ultrix sh set writes to stderr and can't be redirected directly,
30009# and sets the high bit in the cache file unless we assign to the vars.
30010{
30011 (set) 2>&1 |
30012 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30013 *ac_space=\ *)
30014 # `set' does not quote correctly, so add quotes (double-quote
30015 # substitution turns \\\\ into \\, and sed turns \\ into \).
30016 sed -n \
8a7b1113
VZ
30017 "s/'/'\\\\''/g;
30018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
30019 ;;
30020 *)
30021 # `set' quotes correctly as required by POSIX, so do not add quotes.
30022 sed -n \
8a7b1113 30023 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
30024 ;;
30025 esac;
30026} |
30027 sed '
30028 t clear
30029 : clear
30030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30031 t end
30032 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30033 : end' >>confcache
30034if diff $cache_file confcache >/dev/null 2>&1; then :; else
30035 if test -w $cache_file; then
30036 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30037 cat confcache >$cache_file
30038 else
30039 echo "not updating unwritable cache $cache_file"
30040 fi
30041fi
30042rm -f confcache
30043
30044
30045CPP_MT_FLAG=
30046if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
30047
30048
30049 THREADS_LINK=
30050 THREADS_CFLAGS=
30051
30052 if test "$wxUSE_THREADS" = "yes" ; then
30053 if test "$USE_BEOS" = 1; then
30054 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
30055echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
30056 wxUSE_THREADS="no"
30057 fi
30058 fi
30059
30060 if test "$wxUSE_THREADS" = "yes" ; then
30061
30062
30063 THREAD_OPTS="-pthread"
30064 case "${host}" in
30065 *-*-solaris2* | *-*-sunos4* )
30066 if test "x$GCC" = "xyes"; then
30067 THREAD_OPTS="-pthreads $THREAD_OPTS"
30068 else
30069 THREAD_OPTS="-mt $THREAD_OPTS"
30070 fi
30071 ;;
30072 *-*-freebsd*)
30073 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
30074 ;;
30075 *-*-darwin* | *-*-cygwin* )
30076 THREAD_OPTS=""
30077 ;;
30078 *-*-aix*)
30079 THREAD_OPTS="pthreads"
30080 ;;
30081 *-hp-hpux* )
30082 if test "x$GCC" != "xyes"; then
30083 THREAD_OPTS=""
30084 fi
30085 ;;
30086
30087 *-*-irix* )
30088 if test "x$GCC" = "xyes"; then
30089 THREAD_OPTS=""
30090 fi
30091 ;;
30092
30093 *-*-*UnixWare*)
30094 if test "x$GCC" != "xyes"; then
30095 THREAD_OPTS="-Ethread"
30096 fi
30097 ;;
30098 esac
30099
30100 THREAD_OPTS="$THREAD_OPTS pthread none"
30101
30102 THREADS_OK=no
30103 for flag in $THREAD_OPTS; do
30104 case $flag in
30105 none)
30106 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
30107echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
30108 ;;
30109
30110 -*)
30111 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
30112echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
30113 THREADS_CFLAGS="$flag"
30114 ;;
30115
30116 *)
30117 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
30118echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
30119 THREADS_LINK="-l$flag"
30120 ;;
30121 esac
30122
30123 save_LIBS="$LIBS"
30124 save_CFLAGS="$CFLAGS"
30125 LIBS="$THREADS_LINK $LIBS"
30126 CFLAGS="$THREADS_CFLAGS $CFLAGS"
30127
30128 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 30129#line $LINENO "configure"
a848cd7e
SC
30130/* confdefs.h. */
30131_ACEOF
30132cat confdefs.h >>conftest.$ac_ext
30133cat >>conftest.$ac_ext <<_ACEOF
30134/* end confdefs.h. */
30135#include <pthread.h>
30136int
30137main ()
30138{
30139pthread_create(0,0,0,0);
30140 ;
30141 return 0;
30142}
30143_ACEOF
30144rm -f conftest.$ac_objext conftest$ac_exeext
30145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 30146 (eval $ac_link) 2>&5
a848cd7e 30147 ac_status=$?
a848cd7e
SC
30148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30149 (exit $ac_status); } &&
8a7b1113 30150 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30152 (eval $ac_try) 2>&5
30153 ac_status=$?
30154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155 (exit $ac_status); }; }; then
30156 THREADS_OK=yes
30157else
30158 echo "$as_me: failed program was:" >&5
30159sed 's/^/| /' conftest.$ac_ext >&5
30160
30161fi
8a7b1113 30162rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30163
30164 LIBS="$save_LIBS"
30165 CFLAGS="$save_CFLAGS"
30166
30167 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
30168echo "${ECHO_T}$THREADS_OK" >&6
30169 if test "x$THREADS_OK" = "xyes"; then
30170 break;
30171 fi
30172
30173 THREADS_LINK=""
30174 THREADS_CFLAGS=""
30175 done
30176
30177 if test "x$THREADS_OK" != "xyes"; then
30178 wxUSE_THREADS=no
30179 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
30180echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
30181 else
30182 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
30183 LIBS="$THREADS_LINK $LIBS"
30184
30185 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
30186echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
30187 flag=no
30188 case "${host}" in
30189 *-aix*)
30190 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
30191 flag="-D_THREAD_SAFE"
30192 ;;
30193 *-freebsd*)
30194 flag="-D_THREAD_SAFE"
30195 ;;
30196 *-hp-hpux* )
30197 flag="-D_REENTRANT"
30198 if test "x$GCC" != "xyes"; then
30199 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
30200
30201 LIBS="$LIBS -lcma"
a848cd7e
SC
30202 fi
30203 ;;
30204 *solaris* | alpha*-osf*)
30205 flag="-D_REENTRANT"
30206 ;;
30207 esac
30208 echo "$as_me:$LINENO: result: ${flag}" >&5
30209echo "${ECHO_T}${flag}" >&6
30210 if test "x$flag" != xno; then
30211 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
30212 fi
30213
30214 if test "x$THREADS_CFLAGS" != "x"; then
30215 CFLAGS="$CFLAGS $THREADS_CFLAGS"
30216 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
30217 fi
30218 fi
30219 fi
30220
30221 if test "$wxUSE_THREADS" = "yes" ; then
30222
30223for ac_func in thr_setconcurrency
30224do
30225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30226echo "$as_me:$LINENO: checking for $ac_func" >&5
30227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30228if eval "test \"\${$as_ac_var+set}\" = set"; then
30229 echo $ECHO_N "(cached) $ECHO_C" >&6
30230else
30231 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 30232#line $LINENO "configure"
a848cd7e
SC
30233/* confdefs.h. */
30234_ACEOF
30235cat confdefs.h >>conftest.$ac_ext
30236cat >>conftest.$ac_ext <<_ACEOF
30237/* end confdefs.h. */
a848cd7e
SC
30238/* System header to define __stub macros and hopefully few prototypes,
30239 which can conflict with char $ac_func (); below.
30240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30241 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
30242#ifdef __STDC__
30243# include <limits.h>
30244#else
30245# include <assert.h>
30246#endif
a848cd7e
SC
30247/* Override any gcc2 internal prototype to avoid an error. */
30248#ifdef __cplusplus
30249extern "C"
30250{
30251#endif
30252/* We use char because int might match the return type of a gcc2
30253 builtin and then its argument prototype would still apply. */
30254char $ac_func ();
30255/* The GNU C library defines this for functions which it implements
30256 to always fail with ENOSYS. Some functions are actually named
30257 something starting with __ and the normal name is an alias. */
30258#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30259choke me
30260#else
30261char (*f) () = $ac_func;
30262#endif
30263#ifdef __cplusplus
30264}
30265#endif
30266
30267int
30268main ()
30269{
30270return f != $ac_func;
30271 ;
30272 return 0;
30273}
30274_ACEOF
30275rm -f conftest.$ac_objext conftest$ac_exeext
30276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 30277 (eval $ac_link) 2>&5
a848cd7e 30278 ac_status=$?
a848cd7e
SC
30279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30280 (exit $ac_status); } &&
8a7b1113 30281 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30283 (eval $ac_try) 2>&5
30284 ac_status=$?
30285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286 (exit $ac_status); }; }; then
30287 eval "$as_ac_var=yes"
30288else
30289 echo "$as_me: failed program was:" >&5
30290sed 's/^/| /' conftest.$ac_ext >&5
30291
30292eval "$as_ac_var=no"
30293fi
8a7b1113 30294rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30295fi
30296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30297echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30298if test `eval echo '${'$as_ac_var'}'` = yes; then
30299 cat >>confdefs.h <<_ACEOF
30300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30301_ACEOF
30302
30303fi
30304done
30305
30306
30307
30308for ac_header in sched.h
30309do
30310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30311if eval "test \"\${$as_ac_Header+set}\" = set"; then
30312 echo "$as_me:$LINENO: checking for $ac_header" >&5
30313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30314if eval "test \"\${$as_ac_Header+set}\" = set"; then
30315 echo $ECHO_N "(cached) $ECHO_C" >&6
30316fi
30317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30319else
30320 # Is the header compilable?
30321echo "$as_me:$LINENO: checking $ac_header usability" >&5
30322echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30323cat >conftest.$ac_ext <<_ACEOF
8a7b1113 30324#line $LINENO "configure"
a848cd7e
SC
30325/* confdefs.h. */
30326_ACEOF
30327cat confdefs.h >>conftest.$ac_ext
30328cat >>conftest.$ac_ext <<_ACEOF
30329/* end confdefs.h. */
30330$ac_includes_default
30331#include <$ac_header>
30332_ACEOF
30333rm -f conftest.$ac_objext
30334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 30335 (eval $ac_compile) 2>&5
a848cd7e 30336 ac_status=$?
a848cd7e
SC
30337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338 (exit $ac_status); } &&
8a7b1113 30339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30341 (eval $ac_try) 2>&5
30342 ac_status=$?
30343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344 (exit $ac_status); }; }; then
30345 ac_header_compiler=yes
30346else
30347 echo "$as_me: failed program was:" >&5
30348sed 's/^/| /' conftest.$ac_ext >&5
30349
30350ac_header_compiler=no
30351fi
8a7b1113 30352rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30353echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30354echo "${ECHO_T}$ac_header_compiler" >&6
30355
30356# Is the header present?
30357echo "$as_me:$LINENO: checking $ac_header presence" >&5
30358echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30359cat >conftest.$ac_ext <<_ACEOF
8a7b1113 30360#line $LINENO "configure"
a848cd7e
SC
30361/* confdefs.h. */
30362_ACEOF
30363cat confdefs.h >>conftest.$ac_ext
30364cat >>conftest.$ac_ext <<_ACEOF
30365/* end confdefs.h. */
30366#include <$ac_header>
30367_ACEOF
30368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30370 ac_status=$?
30371 grep -v '^ *+' conftest.er1 >conftest.err
30372 rm -f conftest.er1
30373 cat conftest.err >&5
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); } >/dev/null; then
30376 if test -s conftest.err; then
30377 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
30378 else
30379 ac_cpp_err=
30380 fi
30381else
30382 ac_cpp_err=yes
30383fi
30384if test -z "$ac_cpp_err"; then
30385 ac_header_preproc=yes
30386else
30387 echo "$as_me: failed program was:" >&5
30388sed 's/^/| /' conftest.$ac_ext >&5
30389
30390 ac_header_preproc=no
30391fi
30392rm -f conftest.err conftest.$ac_ext
30393echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30394echo "${ECHO_T}$ac_header_preproc" >&6
30395
30396# So? What about this header?
8a7b1113
VZ
30397case $ac_header_compiler:$ac_header_preproc in
30398 yes:no )
a848cd7e
SC
30399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30400echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
30401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30403 (
30404 cat <<\_ASBOX
30405## ------------------------------------ ##
30406## Report this to bug-autoconf@gnu.org. ##
30407## ------------------------------------ ##
30408_ASBOX
30409 ) |
30410 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 30411 ;;
8a7b1113 30412 no:yes )
a848cd7e
SC
30413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
30415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30416echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
30417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30418echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
30419 (
30420 cat <<\_ASBOX
8a7b1113
VZ
30421## ------------------------------------ ##
30422## Report this to bug-autoconf@gnu.org. ##
30423## ------------------------------------ ##
a848cd7e
SC
30424_ASBOX
30425 ) |
30426 sed "s/^/$as_me: WARNING: /" >&2
30427 ;;
30428esac
30429echo "$as_me:$LINENO: checking for $ac_header" >&5
30430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30431if eval "test \"\${$as_ac_Header+set}\" = set"; then
30432 echo $ECHO_N "(cached) $ECHO_C" >&6
30433else
8a7b1113 30434 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
30435fi
30436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30438
30439fi
30440if test `eval echo '${'$as_ac_Header'}'` = yes; then
30441 cat >>confdefs.h <<_ACEOF
30442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30443_ACEOF
30444
30445fi
30446
30447done
30448
30449 if test "$ac_cv_header_sched_h" = "yes"; then
30450 echo "$as_me:$LINENO: checking for sched_yield" >&5
30451echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
30452if test "${ac_cv_func_sched_yield+set}" = set; then
30453 echo $ECHO_N "(cached) $ECHO_C" >&6
30454else
30455 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 30456#line $LINENO "configure"
a848cd7e
SC
30457/* confdefs.h. */
30458_ACEOF
30459cat confdefs.h >>conftest.$ac_ext
30460cat >>conftest.$ac_ext <<_ACEOF
30461/* end confdefs.h. */
a848cd7e
SC
30462/* System header to define __stub macros and hopefully few prototypes,
30463 which can conflict with char sched_yield (); below.
30464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30465 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
30466#ifdef __STDC__
30467# include <limits.h>
30468#else
30469# include <assert.h>
30470#endif
a848cd7e
SC
30471/* Override any gcc2 internal prototype to avoid an error. */
30472#ifdef __cplusplus
30473extern "C"
30474{
30475#endif
30476/* We use char because int might match the return type of a gcc2
30477 builtin and then its argument prototype would still apply. */
30478char sched_yield ();
30479/* The GNU C library defines this for functions which it implements
30480 to always fail with ENOSYS. Some functions are actually named
30481 something starting with __ and the normal name is an alias. */
30482#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
30483choke me
30484#else
30485char (*f) () = sched_yield;
30486#endif
30487#ifdef __cplusplus
30488}
30489#endif
30490
30491int
30492main ()
30493{
30494return f != sched_yield;
30495 ;
30496 return 0;
30497}
30498_ACEOF
30499rm -f conftest.$ac_objext conftest$ac_exeext
30500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 30501 (eval $ac_link) 2>&5
a848cd7e 30502 ac_status=$?
a848cd7e
SC
30503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504 (exit $ac_status); } &&
8a7b1113 30505 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30507 (eval $ac_try) 2>&5
30508 ac_status=$?
30509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510 (exit $ac_status); }; }; then
30511 ac_cv_func_sched_yield=yes
30512else
30513 echo "$as_me: failed program was:" >&5
30514sed 's/^/| /' conftest.$ac_ext >&5
30515
30516ac_cv_func_sched_yield=no
30517fi
8a7b1113 30518rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30519fi
30520echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
30521echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
30522if test $ac_cv_func_sched_yield = yes; then
30523 cat >>confdefs.h <<\_ACEOF
30524#define HAVE_SCHED_YIELD 1
30525_ACEOF
30526
30527else
30528
30529 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
30530echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
30531if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
30532 echo $ECHO_N "(cached) $ECHO_C" >&6
30533else
30534 ac_check_lib_save_LIBS=$LIBS
30535LIBS="-lposix4 $LIBS"
30536cat >conftest.$ac_ext <<_ACEOF
8a7b1113 30537#line $LINENO "configure"
a848cd7e
SC
30538/* confdefs.h. */
30539_ACEOF
30540cat confdefs.h >>conftest.$ac_ext
30541cat >>conftest.$ac_ext <<_ACEOF
30542/* end confdefs.h. */
30543
30544/* Override any gcc2 internal prototype to avoid an error. */
30545#ifdef __cplusplus
30546extern "C"
30547#endif
30548/* We use char because int might match the return type of a gcc2
30549 builtin and then its argument prototype would still apply. */
30550char sched_yield ();
30551int
30552main ()
30553{
30554sched_yield ();
30555 ;
30556 return 0;
30557}
30558_ACEOF
30559rm -f conftest.$ac_objext conftest$ac_exeext
30560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 30561 (eval $ac_link) 2>&5
a848cd7e 30562 ac_status=$?
a848cd7e
SC
30563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564 (exit $ac_status); } &&
8a7b1113 30565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30567 (eval $ac_try) 2>&5
30568 ac_status=$?
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); }; }; then
30571 ac_cv_lib_posix4_sched_yield=yes
30572else
30573 echo "$as_me: failed program was:" >&5
30574sed 's/^/| /' conftest.$ac_ext >&5
30575
30576ac_cv_lib_posix4_sched_yield=no
30577fi
8a7b1113 30578rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30579LIBS=$ac_check_lib_save_LIBS
30580fi
30581echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
30582echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
30583if test $ac_cv_lib_posix4_sched_yield = yes; then
30584 cat >>confdefs.h <<\_ACEOF
30585#define HAVE_SCHED_YIELD 1
30586_ACEOF
30587 POSIX4_LINK=" -lposix4"
30588else
30589 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
30590echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
30591
30592fi
30593
30594
30595
30596fi
30597
30598 fi
30599
30600 HAVE_PRIOR_FUNCS=0
30601 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
30602echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
30603if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
30604 echo $ECHO_N "(cached) $ECHO_C" >&6
30605else
30606 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 30607#line $LINENO "configure"
a848cd7e
SC
30608/* confdefs.h. */
30609_ACEOF
30610cat confdefs.h >>conftest.$ac_ext
30611cat >>conftest.$ac_ext <<_ACEOF
30612/* end confdefs.h. */
a848cd7e
SC
30613/* System header to define __stub macros and hopefully few prototypes,
30614 which can conflict with char pthread_attr_getschedpolicy (); below.
30615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30616 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
30617#ifdef __STDC__
30618# include <limits.h>
30619#else
30620# include <assert.h>
30621#endif
a848cd7e
SC
30622/* Override any gcc2 internal prototype to avoid an error. */
30623#ifdef __cplusplus
30624extern "C"
30625{
30626#endif
30627/* We use char because int might match the return type of a gcc2
30628 builtin and then its argument prototype would still apply. */
30629char pthread_attr_getschedpolicy ();
30630/* The GNU C library defines this for functions which it implements
30631 to always fail with ENOSYS. Some functions are actually named
30632 something starting with __ and the normal name is an alias. */
30633#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
30634choke me
30635#else
30636char (*f) () = pthread_attr_getschedpolicy;
30637#endif
30638#ifdef __cplusplus
30639}
30640#endif
30641
30642int
30643main ()
30644{
30645return f != pthread_attr_getschedpolicy;
30646 ;
30647 return 0;
30648}
30649_ACEOF
30650rm -f conftest.$ac_objext conftest$ac_exeext
30651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 30652 (eval $ac_link) 2>&5
a848cd7e 30653 ac_status=$?
a848cd7e
SC
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); } &&
8a7b1113 30656 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30658 (eval $ac_try) 2>&5
30659 ac_status=$?
30660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661 (exit $ac_status); }; }; then
30662 ac_cv_func_pthread_attr_getschedpolicy=yes
30663else
30664 echo "$as_me: failed program was:" >&5
30665sed 's/^/| /' conftest.$ac_ext >&5
30666
30667ac_cv_func_pthread_attr_getschedpolicy=no
30668fi
8a7b1113 30669rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30670fi
30671echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
30672echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
30673if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
30674 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
30675echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
30676if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
30677 echo $ECHO_N "(cached) $ECHO_C" >&6
30678else
30679 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 30680#line $LINENO "configure"
a848cd7e
SC
30681/* confdefs.h. */
30682_ACEOF
30683cat confdefs.h >>conftest.$ac_ext
30684cat >>conftest.$ac_ext <<_ACEOF
30685/* end confdefs.h. */
a848cd7e
SC
30686/* System header to define __stub macros and hopefully few prototypes,
30687 which can conflict with char pthread_attr_setschedparam (); below.
30688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30689 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
30690#ifdef __STDC__
30691# include <limits.h>
30692#else
30693# include <assert.h>
30694#endif
a848cd7e
SC
30695/* Override any gcc2 internal prototype to avoid an error. */
30696#ifdef __cplusplus
30697extern "C"
30698{
30699#endif
30700/* We use char because int might match the return type of a gcc2
30701 builtin and then its argument prototype would still apply. */
30702char pthread_attr_setschedparam ();
30703/* The GNU C library defines this for functions which it implements
30704 to always fail with ENOSYS. Some functions are actually named
30705 something starting with __ and the normal name is an alias. */
30706#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
30707choke me
30708#else
30709char (*f) () = pthread_attr_setschedparam;
30710#endif
30711#ifdef __cplusplus
30712}
30713#endif
30714
30715int
30716main ()
30717{
30718return f != pthread_attr_setschedparam;
30719 ;
30720 return 0;
30721}
30722_ACEOF
30723rm -f conftest.$ac_objext conftest$ac_exeext
30724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 30725 (eval $ac_link) 2>&5
a848cd7e 30726 ac_status=$?
a848cd7e
SC
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); } &&
8a7b1113 30729 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30731 (eval $ac_try) 2>&5
30732 ac_status=$?
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); }; }; then
30735 ac_cv_func_pthread_attr_setschedparam=yes
30736else
30737 echo "$as_me: failed program was:" >&5
30738sed 's/^/| /' conftest.$ac_ext >&5
30739
30740ac_cv_func_pthread_attr_setschedparam=no
30741fi
8a7b1113 30742rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30743fi
30744echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
30745echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
30746if test $ac_cv_func_pthread_attr_setschedparam = yes; then
30747 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
30748echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
30749if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
30750 echo $ECHO_N "(cached) $ECHO_C" >&6
30751else
30752 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 30753#line $LINENO "configure"
a848cd7e
SC
30754/* confdefs.h. */
30755_ACEOF
30756cat confdefs.h >>conftest.$ac_ext
30757cat >>conftest.$ac_ext <<_ACEOF
30758/* end confdefs.h. */
a848cd7e
SC
30759/* System header to define __stub macros and hopefully few prototypes,
30760 which can conflict with char sched_get_priority_max (); below.
30761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30762 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
30763#ifdef __STDC__
30764# include <limits.h>
30765#else
30766# include <assert.h>
30767#endif
a848cd7e
SC
30768/* Override any gcc2 internal prototype to avoid an error. */
30769#ifdef __cplusplus
30770extern "C"
30771{
30772#endif
30773/* We use char because int might match the return type of a gcc2
30774 builtin and then its argument prototype would still apply. */
30775char sched_get_priority_max ();
30776/* The GNU C library defines this for functions which it implements
30777 to always fail with ENOSYS. Some functions are actually named
30778 something starting with __ and the normal name is an alias. */
30779#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
30780choke me
30781#else
30782char (*f) () = sched_get_priority_max;
30783#endif
30784#ifdef __cplusplus
30785}
30786#endif
30787
30788int
30789main ()
30790{
30791return f != sched_get_priority_max;
30792 ;
30793 return 0;
30794}
30795_ACEOF
30796rm -f conftest.$ac_objext conftest$ac_exeext
30797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 30798 (eval $ac_link) 2>&5
a848cd7e 30799 ac_status=$?
a848cd7e
SC
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); } &&
8a7b1113 30802 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30804 (eval $ac_try) 2>&5
30805 ac_status=$?
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); }; }; then
30808 ac_cv_func_sched_get_priority_max=yes
30809else
30810 echo "$as_me: failed program was:" >&5
30811sed 's/^/| /' conftest.$ac_ext >&5
30812
30813ac_cv_func_sched_get_priority_max=no
30814fi
8a7b1113 30815rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30816fi
30817echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
30818echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
30819if test $ac_cv_func_sched_get_priority_max = yes; then
30820 HAVE_PRIOR_FUNCS=1
30821else
30822 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
30823echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
30824if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
30825 echo $ECHO_N "(cached) $ECHO_C" >&6
30826else
30827 ac_check_lib_save_LIBS=$LIBS
30828LIBS="-lposix4 $LIBS"
30829cat >conftest.$ac_ext <<_ACEOF
8a7b1113 30830#line $LINENO "configure"
a848cd7e
SC
30831/* confdefs.h. */
30832_ACEOF
30833cat confdefs.h >>conftest.$ac_ext
30834cat >>conftest.$ac_ext <<_ACEOF
30835/* end confdefs.h. */
30836
30837/* Override any gcc2 internal prototype to avoid an error. */
30838#ifdef __cplusplus
30839extern "C"
30840#endif
30841/* We use char because int might match the return type of a gcc2
30842 builtin and then its argument prototype would still apply. */
30843char sched_get_priority_max ();
30844int
30845main ()
30846{
30847sched_get_priority_max ();
30848 ;
30849 return 0;
30850}
30851_ACEOF
30852rm -f conftest.$ac_objext conftest$ac_exeext
30853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 30854 (eval $ac_link) 2>&5
a848cd7e 30855 ac_status=$?
a848cd7e
SC
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); } &&
8a7b1113 30858 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30860 (eval $ac_try) 2>&5
30861 ac_status=$?
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); }; }; then
30864 ac_cv_lib_posix4_sched_get_priority_max=yes
30865else
30866 echo "$as_me: failed program was:" >&5
30867sed 's/^/| /' conftest.$ac_ext >&5
30868
30869ac_cv_lib_posix4_sched_get_priority_max=no
30870fi
8a7b1113 30871rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30872LIBS=$ac_check_lib_save_LIBS
30873fi
30874echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
30875echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
30876if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
30877
30878 HAVE_PRIOR_FUNCS=1
30879 POSIX4_LINK=" -lposix4"
30880
30881fi
30882
30883
30884fi
30885
30886
30887fi
30888
30889
30890fi
30891
30892
30893 if test "$HAVE_PRIOR_FUNCS" = 1; then
30894 cat >>confdefs.h <<\_ACEOF
30895#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
30896_ACEOF
30897
30898 else
30899 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
30900echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
30901 fi
30902
30903 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
30904echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
30905if test "${ac_cv_func_pthread_cancel+set}" = set; then
30906 echo $ECHO_N "(cached) $ECHO_C" >&6
30907else
30908 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 30909#line $LINENO "configure"
a848cd7e
SC
30910/* confdefs.h. */
30911_ACEOF
30912cat confdefs.h >>conftest.$ac_ext
30913cat >>conftest.$ac_ext <<_ACEOF
30914/* end confdefs.h. */
a848cd7e
SC
30915/* System header to define __stub macros and hopefully few prototypes,
30916 which can conflict with char pthread_cancel (); below.
30917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30918 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
30919#ifdef __STDC__
30920# include <limits.h>
30921#else
30922# include <assert.h>
30923#endif
a848cd7e
SC
30924/* Override any gcc2 internal prototype to avoid an error. */
30925#ifdef __cplusplus
30926extern "C"
30927{
30928#endif
30929/* We use char because int might match the return type of a gcc2
30930 builtin and then its argument prototype would still apply. */
30931char pthread_cancel ();
30932/* The GNU C library defines this for functions which it implements
30933 to always fail with ENOSYS. Some functions are actually named
30934 something starting with __ and the normal name is an alias. */
30935#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
30936choke me
30937#else
30938char (*f) () = pthread_cancel;
30939#endif
30940#ifdef __cplusplus
30941}
30942#endif
30943
30944int
30945main ()
30946{
30947return f != pthread_cancel;
30948 ;
30949 return 0;
30950}
30951_ACEOF
30952rm -f conftest.$ac_objext conftest$ac_exeext
30953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 30954 (eval $ac_link) 2>&5
a848cd7e 30955 ac_status=$?
a848cd7e
SC
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); } &&
8a7b1113 30958 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30960 (eval $ac_try) 2>&5
30961 ac_status=$?
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); }; }; then
30964 ac_cv_func_pthread_cancel=yes
30965else
30966 echo "$as_me: failed program was:" >&5
30967sed 's/^/| /' conftest.$ac_ext >&5
30968
30969ac_cv_func_pthread_cancel=no
30970fi
8a7b1113 30971rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30972fi
30973echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
30974echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
30975if test $ac_cv_func_pthread_cancel = yes; then
30976 cat >>confdefs.h <<\_ACEOF
30977#define HAVE_PTHREAD_CANCEL 1
30978_ACEOF
30979
30980else
30981 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
30982echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
30983fi
30984
30985
30986
30987
30988 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
30989echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
30990if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
30991 echo $ECHO_N "(cached) $ECHO_C" >&6
30992else
30993
30994 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 30995#line $LINENO "configure"
a848cd7e
SC
30996/* confdefs.h. */
30997_ACEOF
30998cat confdefs.h >>conftest.$ac_ext
30999cat >>conftest.$ac_ext <<_ACEOF
31000/* end confdefs.h. */
31001#include <pthread.h>
31002int
31003main ()
31004{
31005
31006 pthread_mutexattr_t attr;
31007 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
31008
31009 ;
31010 return 0;
31011}
31012_ACEOF
31013rm -f conftest.$ac_objext
31014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 31015 (eval $ac_compile) 2>&5
a848cd7e 31016 ac_status=$?
a848cd7e
SC
31017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018 (exit $ac_status); } &&
8a7b1113 31019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31021 (eval $ac_try) 2>&5
31022 ac_status=$?
31023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024 (exit $ac_status); }; }; then
31025
31026 wx_cv_type_pthread_mutexattr_t=yes
31027
31028else
31029 echo "$as_me: failed program was:" >&5
31030sed 's/^/| /' conftest.$ac_ext >&5
31031
31032
31033 wx_cv_type_pthread_mutexattr_t=no
31034
31035
31036fi
8a7b1113 31037rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31038
31039fi
31040echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
31041echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
31042
31043 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
31044 cat >>confdefs.h <<\_ACEOF
31045#define HAVE_PTHREAD_MUTEXATTR_T 1
31046_ACEOF
31047
31048 else
31049 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
31050echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
31051if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
31052 echo $ECHO_N "(cached) $ECHO_C" >&6
31053else
31054
31055 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 31056#line $LINENO "configure"
a848cd7e
SC
31057/* confdefs.h. */
31058_ACEOF
31059cat confdefs.h >>conftest.$ac_ext
31060cat >>conftest.$ac_ext <<_ACEOF
31061/* end confdefs.h. */
31062#include <pthread.h>
31063int
31064main ()
31065{
31066
31067 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
31068
31069 ;
31070 return 0;
31071}
31072_ACEOF
31073rm -f conftest.$ac_objext
31074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 31075 (eval $ac_compile) 2>&5
a848cd7e 31076 ac_status=$?
a848cd7e
SC
31077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31078 (exit $ac_status); } &&
8a7b1113 31079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31081 (eval $ac_try) 2>&5
31082 ac_status=$?
31083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084 (exit $ac_status); }; }; then
31085
31086 wx_cv_type_pthread_rec_mutex_init=yes
31087
31088else
31089 echo "$as_me: failed program was:" >&5
31090sed 's/^/| /' conftest.$ac_ext >&5
31091
31092
31093 wx_cv_type_pthread_rec_mutex_init=no
31094
31095
31096fi
8a7b1113 31097rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31098
31099fi
31100echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
31101echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
31102 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
31103 cat >>confdefs.h <<\_ACEOF
31104#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
31105_ACEOF
31106
31107 else
31108 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
31109echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
31110 fi
31111 fi
31112 fi
31113
31114else
31115 if test "$wxUSE_THREADS" = "yes" ; then
31116 case "${host}" in
31117 *-*-mingw32* )
31118 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
31119echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
31120if test "${wx_cv_cflags_mthread+set}" = set; then
31121 echo $ECHO_N "(cached) $ECHO_C" >&6
31122else
31123
31124 CFLAGS_OLD="$CFLAGS"
31125 CFLAGS="$CFLAGS -mthreads"
31126 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 31127#line $LINENO "configure"
a848cd7e
SC
31128/* confdefs.h. */
31129_ACEOF
31130cat confdefs.h >>conftest.$ac_ext
31131cat >>conftest.$ac_ext <<_ACEOF
31132/* end confdefs.h. */
31133
31134int
31135main ()
31136{
31137
31138 ;
31139 return 0;
31140}
31141_ACEOF
31142rm -f conftest.$ac_objext
31143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 31144 (eval $ac_compile) 2>&5
a848cd7e 31145 ac_status=$?
a848cd7e
SC
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); } &&
8a7b1113 31148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31150 (eval $ac_try) 2>&5
31151 ac_status=$?
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); }; }; then
31154 wx_cv_cflags_mthread=yes
31155else
31156 echo "$as_me: failed program was:" >&5
31157sed 's/^/| /' conftest.$ac_ext >&5
31158
31159wx_cv_cflags_mthread=no
31160
31161fi
8a7b1113 31162rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31163
31164
31165fi
31166echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
31167echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
31168
31169 if test "$wx_cv_cflags_mthread" = "yes"; then
31170 CXXFLAGS="$CXXFLAGS -mthreads"
31171 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
31172 LDFLAGS="$LDFLAGS -mthreads"
31173 else
31174 CFLAGS="$CFLAGS_OLD"
31175 fi
31176 ;;
31177 *-pc-os2*emx )
31178 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
31179 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
31180 LDFLAGS="$LDFLAGS -Zmt"
31181 ;;
31182 esac
31183 fi
31184fi
31185
31186if test "$wxUSE_THREADS" = "yes"; then
31187 cat >>confdefs.h <<\_ACEOF
31188#define wxUSE_THREADS 1
31189_ACEOF
31190
31191
31192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
31193else
31194 if test "$ac_cv_func_strtok_r" = "yes"; then
31195 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
31196echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
31197 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
31198 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
31199 echo "$as_me:$LINENO: result: yes" >&5
31200echo "${ECHO_T}yes" >&6
31201 else
31202 echo "$as_me:$LINENO: result: no" >&5
31203echo "${ECHO_T}no" >&6
31204 fi
31205 fi
31206fi
31207
31208if test "$WXGTK20" = 1 ; then
31209 cat >>confdefs.h <<_ACEOF
31210#define __WXGTK20__ $WXGTK20
31211_ACEOF
31212
31213 WXGTK12=1
31214fi
31215
31216if test "$WXGTK12" = 1 ; then
31217 cat >>confdefs.h <<_ACEOF
31218#define __WXGTK12__ $WXGTK12
31219_ACEOF
31220
31221fi
31222
31223if test "$WXGTK127" = 1 ; then
31224 cat >>confdefs.h <<_ACEOF
31225#define __WXGTK127__ $WXGTK127
31226_ACEOF
31227
31228fi
31229
31230if test "$WXGPE" = 1 ; then
31231 cat >>confdefs.h <<_ACEOF
31232#define __WXGPE__ $WXGPE
31233_ACEOF
31234
31235fi
31236
31237WXDEBUG=
31238
31239if test "$wxUSE_DEBUG_INFO" = "yes" ; then
31240 WXDEBUG="-g"
31241 wxUSE_OPTIMISE=no
31242fi
31243
31244if test "$wxUSE_DEBUG_GDB" = "yes" ; then
31245 wxUSE_DEBUG_INFO=yes
31246 WXDEBUG="-ggdb"
31247fi
31248
31249if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
31250 cat >>confdefs.h <<\_ACEOF
31251#define WXDEBUG 1
31252_ACEOF
31253
31254 WXDEBUG_DEFINE="-D__WXDEBUG__"
31255else
31256 if test "$wxUSE_GTK" = 1 ; then
31257 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
31258 fi
31259fi
31260
31261if test "$wxUSE_MEM_TRACING" = "yes" ; then
31262 cat >>confdefs.h <<\_ACEOF
31263#define wxUSE_MEMORY_TRACING 1
31264_ACEOF
31265
31266 cat >>confdefs.h <<\_ACEOF
31267#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
31268_ACEOF
31269
31270 cat >>confdefs.h <<\_ACEOF
31271#define wxUSE_DEBUG_NEW_ALWAYS 1
31272_ACEOF
31273
31274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
31275fi
31276
31277if test "$wxUSE_DMALLOC" = "yes" ; then
31278 DMALLOC_LIBS="-ldmalloc"
31279fi
31280
31281PROFILE=
31282if test "$wxUSE_PROFILE" = "yes" ; then
31283 PROFILE=" -pg"
31284fi
31285
31286CODE_GEN_FLAGS=
31287CODE_GEN_FLAGS_CXX=
31288if test "$GCC" = "yes" ; then
31289 if test "$wxUSE_NO_RTTI" = "yes" ; then
31290 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
31291 fi
31292 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
31293 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
31294 fi
31295 if test "$wxUSE_PERMISSIVE" = "yes" ; then
31296 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
31297 fi
31298
31299 case "${host}" in
31300 powerpc*-*-aix* )
31301 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
31302 ;;
31303 *-hppa* )
31304 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
31305 ;;
31306 esac
31307fi
31308
31309OPTIMISE=
31310if test "$wxUSE_OPTIMISE" = "no" ; then
31311 if test "$GCC" = yes ; then
31312 OPTIMISE="-O0"
31313 fi
31314else
31315 if test "$GCC" = yes ; then
31316 OPTIMISE="-O2"
31317
31318 case "${host}" in
31319 i586-*-*|i686-*-* )
31320 OPTIMISE="${OPTIMISE} "
31321 ;;
31322 esac
31323 else
31324 OPTIMISE="-O"
31325 fi
31326fi
31327
31328
31329if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
31330 cat >>confdefs.h <<\_ACEOF
31331#define WXWIN_COMPATIBILITY_2_2 1
31332_ACEOF
31333
31334
31335 WXWIN_COMPATIBILITY_2_4="yes"
31336fi
31337
31338if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
31339 cat >>confdefs.h <<\_ACEOF
31340#define WXWIN_COMPATIBILITY_2_4 1
31341_ACEOF
31342
31343fi
31344
31345
31346if test "$wxUSE_GUI" = "yes"; then
31347 cat >>confdefs.h <<\_ACEOF
31348#define wxUSE_GUI 1
31349_ACEOF
31350
31351
31352 else
31353 cat >>confdefs.h <<\_ACEOF
31354#define wxUSE_NOGUI 1
31355_ACEOF
31356
31357fi
31358
31359
31360if test "$wxUSE_UNIX" = "yes"; then
31361 cat >>confdefs.h <<\_ACEOF
31362#define wxUSE_UNIX 1
31363_ACEOF
31364
31365fi
31366
31367
31368if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31369
31370 HAVE_DL_FUNCS=0
31371 HAVE_SHL_FUNCS=0
31372 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31373 if test "$USE_DARWIN" = 1; then
31374 HAVE_DL_FUNCS=1
31375 else
31376
31377for ac_func in dlopen
31378do
31379as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31380echo "$as_me:$LINENO: checking for $ac_func" >&5
31381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31382if eval "test \"\${$as_ac_var+set}\" = set"; then
31383 echo $ECHO_N "(cached) $ECHO_C" >&6
31384else
31385 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 31386#line $LINENO "configure"
a848cd7e
SC
31387/* confdefs.h. */
31388_ACEOF
31389cat confdefs.h >>conftest.$ac_ext
31390cat >>conftest.$ac_ext <<_ACEOF
31391/* end confdefs.h. */
a848cd7e
SC
31392/* System header to define __stub macros and hopefully few prototypes,
31393 which can conflict with char $ac_func (); below.
31394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31395 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
31396#ifdef __STDC__
31397# include <limits.h>
31398#else
31399# include <assert.h>
31400#endif
a848cd7e
SC
31401/* Override any gcc2 internal prototype to avoid an error. */
31402#ifdef __cplusplus
31403extern "C"
31404{
31405#endif
31406/* We use char because int might match the return type of a gcc2
31407 builtin and then its argument prototype would still apply. */
31408char $ac_func ();
31409/* The GNU C library defines this for functions which it implements
31410 to always fail with ENOSYS. Some functions are actually named
31411 something starting with __ and the normal name is an alias. */
31412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31413choke me
31414#else
31415char (*f) () = $ac_func;
31416#endif
31417#ifdef __cplusplus
31418}
31419#endif
31420
31421int
31422main ()
31423{
31424return f != $ac_func;
31425 ;
31426 return 0;
31427}
31428_ACEOF
31429rm -f conftest.$ac_objext conftest$ac_exeext
31430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 31431 (eval $ac_link) 2>&5
a848cd7e 31432 ac_status=$?
a848cd7e
SC
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); } &&
8a7b1113 31435 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31437 (eval $ac_try) 2>&5
31438 ac_status=$?
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); }; }; then
31441 eval "$as_ac_var=yes"
31442else
31443 echo "$as_me: failed program was:" >&5
31444sed 's/^/| /' conftest.$ac_ext >&5
31445
31446eval "$as_ac_var=no"
31447fi
8a7b1113 31448rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31449fi
31450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31451echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31452if test `eval echo '${'$as_ac_var'}'` = yes; then
31453 cat >>confdefs.h <<_ACEOF
31454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31455_ACEOF
31456
31457 cat >>confdefs.h <<\_ACEOF
31458#define HAVE_DLOPEN 1
31459_ACEOF
31460
31461 HAVE_DL_FUNCS=1
31462
31463else
31464
31465 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31466echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31467if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31468 echo $ECHO_N "(cached) $ECHO_C" >&6
31469else
31470 ac_check_lib_save_LIBS=$LIBS
31471LIBS="-ldl $LIBS"
31472cat >conftest.$ac_ext <<_ACEOF
8a7b1113 31473#line $LINENO "configure"
a848cd7e
SC
31474/* confdefs.h. */
31475_ACEOF
31476cat confdefs.h >>conftest.$ac_ext
31477cat >>conftest.$ac_ext <<_ACEOF
31478/* end confdefs.h. */
31479
31480/* Override any gcc2 internal prototype to avoid an error. */
31481#ifdef __cplusplus
31482extern "C"
31483#endif
31484/* We use char because int might match the return type of a gcc2
31485 builtin and then its argument prototype would still apply. */
31486char dlopen ();
31487int
31488main ()
31489{
31490dlopen ();
31491 ;
31492 return 0;
31493}
31494_ACEOF
31495rm -f conftest.$ac_objext conftest$ac_exeext
31496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 31497 (eval $ac_link) 2>&5
a848cd7e 31498 ac_status=$?
a848cd7e
SC
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); } &&
8a7b1113 31501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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_dl_dlopen=yes
31508else
31509 echo "$as_me: failed program was:" >&5
31510sed 's/^/| /' conftest.$ac_ext >&5
31511
31512ac_cv_lib_dl_dlopen=no
31513fi
8a7b1113 31514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31515LIBS=$ac_check_lib_save_LIBS
31516fi
31517echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31518echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31519if test $ac_cv_lib_dl_dlopen = yes; then
31520
31521 cat >>confdefs.h <<\_ACEOF
31522#define HAVE_DLOPEN 1
31523_ACEOF
31524
31525 HAVE_DL_FUNCS=1
31526 DL_LINK=" -ldl$DL_LINK"
31527
31528else
31529
31530
31531for ac_func in shl_load
31532do
31533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31534echo "$as_me:$LINENO: checking for $ac_func" >&5
31535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31536if eval "test \"\${$as_ac_var+set}\" = set"; then
31537 echo $ECHO_N "(cached) $ECHO_C" >&6
31538else
31539 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 31540#line $LINENO "configure"
a848cd7e
SC
31541/* confdefs.h. */
31542_ACEOF
31543cat confdefs.h >>conftest.$ac_ext
31544cat >>conftest.$ac_ext <<_ACEOF
31545/* end confdefs.h. */
a848cd7e
SC
31546/* System header to define __stub macros and hopefully few prototypes,
31547 which can conflict with char $ac_func (); below.
31548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31549 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
31550#ifdef __STDC__
31551# include <limits.h>
31552#else
31553# include <assert.h>
31554#endif
a848cd7e
SC
31555/* Override any gcc2 internal prototype to avoid an error. */
31556#ifdef __cplusplus
31557extern "C"
31558{
31559#endif
31560/* We use char because int might match the return type of a gcc2
31561 builtin and then its argument prototype would still apply. */
31562char $ac_func ();
31563/* The GNU C library defines this for functions which it implements
31564 to always fail with ENOSYS. Some functions are actually named
31565 something starting with __ and the normal name is an alias. */
31566#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31567choke me
31568#else
31569char (*f) () = $ac_func;
31570#endif
31571#ifdef __cplusplus
31572}
31573#endif
31574
31575int
31576main ()
31577{
31578return f != $ac_func;
31579 ;
31580 return 0;
31581}
31582_ACEOF
31583rm -f conftest.$ac_objext conftest$ac_exeext
31584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 31585 (eval $ac_link) 2>&5
a848cd7e 31586 ac_status=$?
a848cd7e
SC
31587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588 (exit $ac_status); } &&
8a7b1113 31589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31591 (eval $ac_try) 2>&5
31592 ac_status=$?
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); }; }; then
31595 eval "$as_ac_var=yes"
31596else
31597 echo "$as_me: failed program was:" >&5
31598sed 's/^/| /' conftest.$ac_ext >&5
31599
31600eval "$as_ac_var=no"
31601fi
8a7b1113 31602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31603fi
31604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31605echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31606if test `eval echo '${'$as_ac_var'}'` = yes; then
31607 cat >>confdefs.h <<_ACEOF
31608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31609_ACEOF
31610
31611 cat >>confdefs.h <<\_ACEOF
31612#define HAVE_SHL_LOAD 1
31613_ACEOF
31614
31615 HAVE_SHL_FUNCS=1
31616
31617else
31618
31619 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31620echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31621if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31622 echo $ECHO_N "(cached) $ECHO_C" >&6
31623else
31624 ac_check_lib_save_LIBS=$LIBS
31625LIBS="-lshl_load $LIBS"
31626cat >conftest.$ac_ext <<_ACEOF
8a7b1113 31627#line $LINENO "configure"
a848cd7e
SC
31628/* confdefs.h. */
31629_ACEOF
31630cat confdefs.h >>conftest.$ac_ext
31631cat >>conftest.$ac_ext <<_ACEOF
31632/* end confdefs.h. */
31633
31634/* Override any gcc2 internal prototype to avoid an error. */
31635#ifdef __cplusplus
31636extern "C"
31637#endif
31638/* We use char because int might match the return type of a gcc2
31639 builtin and then its argument prototype would still apply. */
31640char dld ();
31641int
31642main ()
31643{
31644dld ();
31645 ;
31646 return 0;
31647}
31648_ACEOF
31649rm -f conftest.$ac_objext conftest$ac_exeext
31650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 31651 (eval $ac_link) 2>&5
a848cd7e 31652 ac_status=$?
a848cd7e
SC
31653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31654 (exit $ac_status); } &&
8a7b1113 31655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31657 (eval $ac_try) 2>&5
31658 ac_status=$?
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); }; }; then
31661 ac_cv_lib_shl_load_dld=yes
31662else
31663 echo "$as_me: failed program was:" >&5
31664sed 's/^/| /' conftest.$ac_ext >&5
31665
31666ac_cv_lib_shl_load_dld=no
31667fi
8a7b1113 31668rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31669LIBS=$ac_check_lib_save_LIBS
31670fi
31671echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31672echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31673if test $ac_cv_lib_shl_load_dld = yes; then
31674
31675 HAVE_SHL_FUNCS=1
31676 DL_LINK=" -ldld$DL_LINK"
31677
31678fi
31679
31680
31681fi
31682done
31683
31684
31685fi
31686
31687
31688fi
31689done
31690
31691
31692 if test "$HAVE_DL_FUNCS" = 1; then
31693
31694for ac_func in dlerror
31695do
31696as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31697echo "$as_me:$LINENO: checking for $ac_func" >&5
31698echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31699if eval "test \"\${$as_ac_var+set}\" = set"; then
31700 echo $ECHO_N "(cached) $ECHO_C" >&6
31701else
31702 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 31703#line $LINENO "configure"
a848cd7e
SC
31704/* confdefs.h. */
31705_ACEOF
31706cat confdefs.h >>conftest.$ac_ext
31707cat >>conftest.$ac_ext <<_ACEOF
31708/* end confdefs.h. */
a848cd7e
SC
31709/* System header to define __stub macros and hopefully few prototypes,
31710 which can conflict with char $ac_func (); below.
31711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31712 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
31713#ifdef __STDC__
31714# include <limits.h>
31715#else
31716# include <assert.h>
31717#endif
a848cd7e
SC
31718/* Override any gcc2 internal prototype to avoid an error. */
31719#ifdef __cplusplus
31720extern "C"
31721{
31722#endif
31723/* We use char because int might match the return type of a gcc2
31724 builtin and then its argument prototype would still apply. */
31725char $ac_func ();
31726/* The GNU C library defines this for functions which it implements
31727 to always fail with ENOSYS. Some functions are actually named
31728 something starting with __ and the normal name is an alias. */
31729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31730choke me
31731#else
31732char (*f) () = $ac_func;
31733#endif
31734#ifdef __cplusplus
31735}
31736#endif
31737
31738int
31739main ()
31740{
31741return f != $ac_func;
31742 ;
31743 return 0;
31744}
31745_ACEOF
31746rm -f conftest.$ac_objext conftest$ac_exeext
31747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 31748 (eval $ac_link) 2>&5
a848cd7e 31749 ac_status=$?
a848cd7e
SC
31750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751 (exit $ac_status); } &&
8a7b1113 31752 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31754 (eval $ac_try) 2>&5
31755 ac_status=$?
31756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31757 (exit $ac_status); }; }; then
31758 eval "$as_ac_var=yes"
31759else
31760 echo "$as_me: failed program was:" >&5
31761sed 's/^/| /' conftest.$ac_ext >&5
31762
31763eval "$as_ac_var=no"
31764fi
8a7b1113 31765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
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_DLERROR 1
31775_ACEOF
31776
31777else
31778
31779 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31780echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31781if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31782 echo $ECHO_N "(cached) $ECHO_C" >&6
31783else
31784 ac_check_lib_save_LIBS=$LIBS
31785LIBS="-ldl $LIBS"
31786cat >conftest.$ac_ext <<_ACEOF
8a7b1113 31787#line $LINENO "configure"
a848cd7e
SC
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 dlerror ();
31801int
31802main ()
31803{
31804dlerror ();
31805 ;
31806 return 0;
31807}
31808_ACEOF
31809rm -f conftest.$ac_objext conftest$ac_exeext
31810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 31811 (eval $ac_link) 2>&5
a848cd7e 31812 ac_status=$?
a848cd7e
SC
31813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814 (exit $ac_status); } &&
8a7b1113 31815 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31817 (eval $ac_try) 2>&5
31818 ac_status=$?
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); }; }; then
31821 ac_cv_lib_dl_dlerror=yes
31822else
31823 echo "$as_me: failed program was:" >&5
31824sed 's/^/| /' conftest.$ac_ext >&5
31825
31826ac_cv_lib_dl_dlerror=no
31827fi
8a7b1113 31828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31829LIBS=$ac_check_lib_save_LIBS
31830fi
31831echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31832echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31833if test $ac_cv_lib_dl_dlerror = yes; then
31834 cat >>confdefs.h <<\_ACEOF
31835#define HAVE_DLERROR 1
31836_ACEOF
31837
31838fi
31839
31840
31841
31842fi
31843done
31844
31845 fi
31846 fi
31847
31848 if test "$HAVE_DL_FUNCS" = 0; then
31849 if test "$HAVE_SHL_FUNCS" = 0; then
31850 if test "$USE_UNIX" = 1; then
31851 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31852echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
31853 wxUSE_DYNAMIC_LOADER=no
31854 wxUSE_DYNLIB_CLASS=no
31855 else
31856 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31857echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
31858 fi
31859 fi
31860 fi
31861 fi
31862fi
31863
31864if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
31865 cat >>confdefs.h <<\_ACEOF
31866#define wxUSE_DYNAMIC_LOADER 1
31867_ACEOF
31868
31869fi
31870if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31871 cat >>confdefs.h <<\_ACEOF
31872#define wxUSE_DYNLIB_CLASS 1
31873_ACEOF
31874
31875fi
31876
31877
31878
31879if test "$wxUSE_PLUGINS" = "yes" ; then
31880 if test "$wxUSE_SHARED" = "no" ; then
31881 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
31882echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
31883 wxUSE_PLUGINS=no
31884 fi
31885 if test "$wxUSE_MONOLITHIC" = "yes" ; then
31886 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
31887echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
31888 wxUSE_PLUGINS=no
31889 fi
31890 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
31891 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
31892echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
31893 wxUSE_PLUGINS=no
31894 fi
31895 if test "$wxUSE_PLUGINS" = "yes" ; then
31896 cat >>confdefs.h <<\_ACEOF
31897#define wxUSE_PLUGINS 1
31898_ACEOF
31899
31900 fi
31901fi
31902
31903
31904if test "$wxUSE_STL" = "yes"; then
31905 cat >>confdefs.h <<\_ACEOF
31906#define wxUSE_STL 1
31907_ACEOF
31908
31909fi
31910
31911if test "$wxUSE_APPLE_IEEE" = "yes"; then
31912 cat >>confdefs.h <<\_ACEOF
31913#define wxUSE_APPLE_IEEE 1
31914_ACEOF
31915
31916fi
31917
31918if test "$wxUSE_TIMER" = "yes"; then
31919 cat >>confdefs.h <<\_ACEOF
31920#define wxUSE_TIMER 1
31921_ACEOF
31922
31923fi
31924
31925WITH_PLUGIN_SDL=0
31926if test "$wxUSE_SOUND" = "yes"; then
31927 if test "$USE_UNIX" = "1" ; then
31928
31929for ac_header in sys/soundcard.h
31930do
31931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31932if eval "test \"\${$as_ac_Header+set}\" = set"; then
31933 echo "$as_me:$LINENO: checking for $ac_header" >&5
31934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31935if eval "test \"\${$as_ac_Header+set}\" = set"; then
31936 echo $ECHO_N "(cached) $ECHO_C" >&6
31937fi
31938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31940else
31941 # Is the header compilable?
31942echo "$as_me:$LINENO: checking $ac_header usability" >&5
31943echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31944cat >conftest.$ac_ext <<_ACEOF
8a7b1113 31945#line $LINENO "configure"
a848cd7e
SC
31946/* confdefs.h. */
31947_ACEOF
31948cat confdefs.h >>conftest.$ac_ext
31949cat >>conftest.$ac_ext <<_ACEOF
31950/* end confdefs.h. */
31951$ac_includes_default
31952#include <$ac_header>
31953_ACEOF
31954rm -f conftest.$ac_objext
31955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 31956 (eval $ac_compile) 2>&5
a848cd7e 31957 ac_status=$?
a848cd7e
SC
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); } &&
8a7b1113 31960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31962 (eval $ac_try) 2>&5
31963 ac_status=$?
31964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965 (exit $ac_status); }; }; then
31966 ac_header_compiler=yes
31967else
31968 echo "$as_me: failed program was:" >&5
31969sed 's/^/| /' conftest.$ac_ext >&5
31970
31971ac_header_compiler=no
31972fi
8a7b1113 31973rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31975echo "${ECHO_T}$ac_header_compiler" >&6
31976
31977# Is the header present?
31978echo "$as_me:$LINENO: checking $ac_header presence" >&5
31979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31980cat >conftest.$ac_ext <<_ACEOF
8a7b1113 31981#line $LINENO "configure"
a848cd7e
SC
31982/* confdefs.h. */
31983_ACEOF
31984cat confdefs.h >>conftest.$ac_ext
31985cat >>conftest.$ac_ext <<_ACEOF
31986/* end confdefs.h. */
31987#include <$ac_header>
31988_ACEOF
31989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31991 ac_status=$?
31992 grep -v '^ *+' conftest.er1 >conftest.err
31993 rm -f conftest.er1
31994 cat conftest.err >&5
31995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996 (exit $ac_status); } >/dev/null; then
31997 if test -s conftest.err; then
31998 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
31999 else
32000 ac_cpp_err=
32001 fi
32002else
32003 ac_cpp_err=yes
32004fi
32005if test -z "$ac_cpp_err"; then
32006 ac_header_preproc=yes
32007else
32008 echo "$as_me: failed program was:" >&5
32009sed 's/^/| /' conftest.$ac_ext >&5
32010
32011 ac_header_preproc=no
32012fi
32013rm -f conftest.err conftest.$ac_ext
32014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32015echo "${ECHO_T}$ac_header_preproc" >&6
32016
32017# So? What about this header?
8a7b1113
VZ
32018case $ac_header_compiler:$ac_header_preproc in
32019 yes:no )
a848cd7e
SC
32020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
32022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32023echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32024 (
32025 cat <<\_ASBOX
32026## ------------------------------------ ##
32027## Report this to bug-autoconf@gnu.org. ##
32028## ------------------------------------ ##
32029_ASBOX
32030 ) |
32031 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 32032 ;;
8a7b1113 32033 no:yes )
a848cd7e
SC
32034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
32036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
32038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
32040 (
32041 cat <<\_ASBOX
8a7b1113
VZ
32042## ------------------------------------ ##
32043## Report this to bug-autoconf@gnu.org. ##
32044## ------------------------------------ ##
a848cd7e
SC
32045_ASBOX
32046 ) |
32047 sed "s/^/$as_me: WARNING: /" >&2
32048 ;;
32049esac
32050echo "$as_me:$LINENO: checking for $ac_header" >&5
32051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32052if eval "test \"\${$as_ac_Header+set}\" = set"; then
32053 echo $ECHO_N "(cached) $ECHO_C" >&6
32054else
8a7b1113 32055 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
32056fi
32057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32059
32060fi
32061if test `eval echo '${'$as_ac_Header'}'` = yes; then
32062 cat >>confdefs.h <<_ACEOF
32063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32064_ACEOF
32065
32066fi
32067
32068done
32069
32070
32071 if test "$wxUSE_LIBSDL" != "no"; then
32072
32073# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
32074if test "${with_sdl_prefix+set}" = set; then
32075 withval="$with_sdl_prefix"
32076 sdl_prefix="$withval"
32077else
32078 sdl_prefix=""
32079fi;
32080
32081# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
32082if test "${with_sdl_exec_prefix+set}" = set; then
32083 withval="$with_sdl_exec_prefix"
32084 sdl_exec_prefix="$withval"
32085else
32086 sdl_exec_prefix=""
32087fi;
32088# Check whether --enable-sdltest or --disable-sdltest was given.
32089if test "${enable_sdltest+set}" = set; then
32090 enableval="$enable_sdltest"
32091
32092else
32093 enable_sdltest=yes
32094fi;
32095
32096 if test x$sdl_exec_prefix != x ; then
32097 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
32098 if test x${SDL_CONFIG+set} != xset ; then
32099 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
32100 fi
32101 fi
32102 if test x$sdl_prefix != x ; then
32103 sdl_args="$sdl_args --prefix=$sdl_prefix"
32104 if test x${SDL_CONFIG+set} != xset ; then
32105 SDL_CONFIG=$sdl_prefix/bin/sdl-config
32106 fi
32107 fi
32108
32109
32110 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
32111 # Extract the first word of "sdl-config", so it can be a program name with args.
32112set dummy sdl-config; ac_word=$2
32113echo "$as_me:$LINENO: checking for $ac_word" >&5
32114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32115if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
32116 echo $ECHO_N "(cached) $ECHO_C" >&6
32117else
32118 case $SDL_CONFIG in
32119 [\\/]* | ?:[\\/]*)
32120 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
32121 ;;
32122 *)
32123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32124for as_dir in $PATH
32125do
32126 IFS=$as_save_IFS
32127 test -z "$as_dir" && as_dir=.
32128 for ac_exec_ext in '' $ac_executable_extensions; do
32129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32130 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32132 break 2
32133 fi
32134done
32135done
32136
32137 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
32138 ;;
32139esac
32140fi
32141SDL_CONFIG=$ac_cv_path_SDL_CONFIG
32142
32143if test -n "$SDL_CONFIG"; then
32144 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
32145echo "${ECHO_T}$SDL_CONFIG" >&6
32146else
32147 echo "$as_me:$LINENO: result: no" >&5
32148echo "${ECHO_T}no" >&6
32149fi
32150
32151 min_sdl_version=1.2.0
32152 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
32153echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
32154 no_sdl=""
32155 if test "$SDL_CONFIG" = "no" ; then
32156 no_sdl=yes
32157 else
32158 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
32159 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
32160
32161 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
32162 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32163 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
32164 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32165 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
32166 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32167 if test "x$enable_sdltest" = "xyes" ; then
32168 ac_save_CFLAGS="$CFLAGS"
32169 ac_save_LIBS="$LIBS"
32170 CFLAGS="$CFLAGS $SDL_CFLAGS"
32171 LIBS="$LIBS $SDL_LIBS"
32172 rm -f conf.sdltest
32173 if test "$cross_compiling" = yes; then
32174 echo $ac_n "cross compiling; assumed OK... $ac_c"
32175else
32176 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 32177#line $LINENO "configure"
a848cd7e
SC
32178/* confdefs.h. */
32179_ACEOF
32180cat confdefs.h >>conftest.$ac_ext
32181cat >>conftest.$ac_ext <<_ACEOF
32182/* end confdefs.h. */
32183
32184#include <stdio.h>
32185#include <stdlib.h>
32186#include <string.h>
32187#include "SDL.h"
32188
32189char*
32190my_strdup (char *str)
32191{
32192 char *new_str;
32193
32194 if (str)
32195 {
32196 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
32197 strcpy (new_str, str);
32198 }
32199 else
32200 new_str = NULL;
32201
32202 return new_str;
32203}
32204
32205int main (int argc, char *argv[])
32206{
32207 int major, minor, micro;
32208 char *tmp_version;
32209
32210 /* This hangs on some systems (?)
32211 system ("touch conf.sdltest");
32212 */
32213 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
32214
32215 /* HP/UX 9 (%@#!) writes to sscanf strings */
32216 tmp_version = my_strdup("$min_sdl_version");
32217 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
32218 printf("%s, bad version string\n", "$min_sdl_version");
32219 exit(1);
32220 }
32221
32222 if (($sdl_major_version > major) ||
32223 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
32224 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
32225 {
32226 return 0;
32227 }
32228 else
32229 {
32230 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
32231 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
32232 printf("*** best to upgrade to the required version.\n");
32233 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
32234 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
32235 printf("*** config.cache before re-running configure\n");
32236 return 1;
32237 }
32238}
32239
32240
32241_ACEOF
32242rm -f conftest$ac_exeext
32243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32244 (eval $ac_link) 2>&5
32245 ac_status=$?
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32249 (eval $ac_try) 2>&5
32250 ac_status=$?
32251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32252 (exit $ac_status); }; }; then
32253 :
32254else
32255 echo "$as_me: program exited with status $ac_status" >&5
32256echo "$as_me: failed program was:" >&5
32257sed 's/^/| /' conftest.$ac_ext >&5
32258
32259( exit $ac_status )
32260no_sdl=yes
32261fi
8a7b1113 32262rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32263fi
32264 CFLAGS="$ac_save_CFLAGS"
32265 LIBS="$ac_save_LIBS"
32266 fi
32267 fi
32268 if test "x$no_sdl" = x ; then
32269 echo "$as_me:$LINENO: result: yes" >&5
32270echo "${ECHO_T}yes" >&6
32271
32272 EXTRALIBS_SDL="$SDL_LIBS"
32273 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
32274 cat >>confdefs.h <<\_ACEOF
32275#define wxUSE_LIBSDL 1
32276_ACEOF
32277
32278
32279 else
32280 echo "$as_me:$LINENO: result: no" >&5
32281echo "${ECHO_T}no" >&6
32282 if test "$SDL_CONFIG" = "no" ; then
32283 echo "*** The sdl-config script installed by SDL could not be found"
32284 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
32285 echo "*** your path, or set the SDL_CONFIG environment variable to the"
32286 echo "*** full path to sdl-config."
32287 else
32288 if test -f conf.sdltest ; then
32289 :
32290 else
32291 echo "*** Could not run SDL test program, checking why..."
32292 CFLAGS="$CFLAGS $SDL_CFLAGS"
32293 LIBS="$LIBS $SDL_LIBS"
32294 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 32295#line $LINENO "configure"
a848cd7e
SC
32296/* confdefs.h. */
32297_ACEOF
32298cat confdefs.h >>conftest.$ac_ext
32299cat >>conftest.$ac_ext <<_ACEOF
32300/* end confdefs.h. */
32301
32302#include <stdio.h>
32303#include "SDL.h"
32304
32305int main(int argc, char *argv[])
32306{ return 0; }
32307#undef main
32308#define main K_and_R_C_main
32309
32310int
32311main ()
32312{
32313 return 0;
32314 ;
32315 return 0;
32316}
32317_ACEOF
32318rm -f conftest.$ac_objext conftest$ac_exeext
32319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 32320 (eval $ac_link) 2>&5
a848cd7e 32321 ac_status=$?
a848cd7e
SC
32322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323 (exit $ac_status); } &&
8a7b1113 32324 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32326 (eval $ac_try) 2>&5
32327 ac_status=$?
32328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); }; }; then
32330 echo "*** The test program compiled, but did not run. This usually means"
32331 echo "*** that the run-time linker is not finding SDL or finding the wrong"
32332 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
32333 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
32334 echo "*** to the installed location Also, make sure you have run ldconfig if that"
32335 echo "*** is required on your system"
32336 echo "***"
32337 echo "*** If you have an old version installed, it is best to remove it, although"
32338 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
32339else
32340 echo "$as_me: failed program was:" >&5
32341sed 's/^/| /' conftest.$ac_ext >&5
32342
32343 echo "*** The test program failed to compile or link. See the file config.log for the"
32344 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
32345 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
32346 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
32347fi
8a7b1113 32348rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32349 CFLAGS="$ac_save_CFLAGS"
32350 LIBS="$ac_save_LIBS"
32351 fi
32352 fi
32353 SDL_CFLAGS=""
32354 SDL_LIBS=""
32355 wxUSE_LIBSDL="no"
32356 fi
32357
32358
32359 rm -f conf.sdltest
32360
32361 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
32362 WITH_PLUGIN_SDL=1
32363 fi
32364 fi
32365 fi
32366
32367 cat >>confdefs.h <<\_ACEOF
32368#define wxUSE_SOUND 1
32369_ACEOF
32370
32371 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
32372fi
32373
32374if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
32375 cat >>confdefs.h <<\_ACEOF
32376#define wxUSE_CMDLINE_PARSER 1
32377_ACEOF
32378
32379fi
32380
32381if test "$wxUSE_STOPWATCH" = "yes"; then
32382 cat >>confdefs.h <<\_ACEOF
32383#define wxUSE_STOPWATCH 1
32384_ACEOF
32385
32386fi
32387
32388if test "$wxUSE_DATETIME" = "yes"; then
32389 cat >>confdefs.h <<\_ACEOF
32390#define wxUSE_DATETIME 1
32391_ACEOF
32392
32393fi
32394
32395if test "$wxUSE_FILE" = "yes"; then
32396 cat >>confdefs.h <<\_ACEOF
32397#define wxUSE_FILE 1
32398_ACEOF
32399
32400fi
32401
32402if test "$wxUSE_FFILE" = "yes"; then
32403 cat >>confdefs.h <<\_ACEOF
32404#define wxUSE_FFILE 1
32405_ACEOF
32406
32407fi
32408
32409if test "$wxUSE_FILESYSTEM" = "yes"; then
32410 cat >>confdefs.h <<\_ACEOF
32411#define wxUSE_FILESYSTEM 1
32412_ACEOF
32413
32414fi
32415
32416if test "$wxUSE_FS_ZIP" = "yes"; then
32417 cat >>confdefs.h <<\_ACEOF
32418#define wxUSE_FS_ZIP 1
32419_ACEOF
32420
32421fi
32422
32423if test "$wxUSE_ZIPSTREAM" = "yes"; then
32424 cat >>confdefs.h <<\_ACEOF
32425#define wxUSE_ZIPSTREAM 1
32426_ACEOF
32427
32428fi
32429
a848cd7e
SC
32430if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32431 cat >>confdefs.h <<\_ACEOF
32432#define wxUSE_ON_FATAL_EXCEPTION 1
32433_ACEOF
32434
32435fi
32436
32437if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32438 cat >>confdefs.h <<\_ACEOF
32439#define wxUSE_SNGLINST_CHECKER 1
32440_ACEOF
32441
32442fi
32443
32444if test "$wxUSE_BUSYINFO" = "yes"; then
32445 cat >>confdefs.h <<\_ACEOF
32446#define wxUSE_BUSYINFO 1
32447_ACEOF
32448
32449fi
32450
32451if test "$wxUSE_STD_IOSTREAM" = "yes"; then
32452 cat >>confdefs.h <<\_ACEOF
32453#define wxUSE_STD_IOSTREAM 1
32454_ACEOF
32455
32456fi
32457
32458if test "$wxUSE_TEXTBUFFER" = "yes"; then
32459 cat >>confdefs.h <<\_ACEOF
32460#define wxUSE_TEXTBUFFER 1
32461_ACEOF
32462
32463fi
32464
32465if test "$wxUSE_TEXTFILE" = "yes"; then
32466 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
32467 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
32468echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
32469 else
32470 cat >>confdefs.h <<\_ACEOF
32471#define wxUSE_TEXTFILE 1
32472_ACEOF
32473
32474 fi
32475fi
32476
32477if test "$wxUSE_CONFIG" = "yes" ; then
32478 if test "$wxUSE_TEXTFILE" != "yes"; then
32479 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
32480echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
32481 else
32482 cat >>confdefs.h <<\_ACEOF
32483#define wxUSE_CONFIG 1
32484_ACEOF
32485
32486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
32487 fi
32488fi
32489
32490if test "$wxUSE_INTL" = "yes" ; then
32491 if test "$wxUSE_FILE" != "yes"; then
32492 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
32493echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
32494 else
32495 cat >>confdefs.h <<\_ACEOF
32496#define wxUSE_INTL 1
32497_ACEOF
32498
32499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
32500 GUIDIST="$GUIDIST INTL_DIST"
32501 fi
32502fi
32503
32504if test "$wxUSE_LOG" = "yes"; then
32505 cat >>confdefs.h <<\_ACEOF
32506#define wxUSE_LOG 1
32507_ACEOF
32508
32509
32510 if test "$wxUSE_LOGGUI" = "yes"; then
32511 cat >>confdefs.h <<\_ACEOF
32512#define wxUSE_LOGGUI 1
32513_ACEOF
32514
32515 fi
32516
32517 if test "$wxUSE_LOGWINDOW" = "yes"; then
32518 cat >>confdefs.h <<\_ACEOF
32519#define wxUSE_LOGWINDOW 1
32520_ACEOF
32521
32522 fi
32523
32524 if test "$wxUSE_LOGDIALOG" = "yes"; then
32525 cat >>confdefs.h <<\_ACEOF
32526#define wxUSE_LOG_DIALOG 1
32527_ACEOF
32528
32529 fi
32530fi
32531
32532if test "$wxUSE_LONGLONG" = "yes"; then
32533 cat >>confdefs.h <<\_ACEOF
32534#define wxUSE_LONGLONG 1
32535_ACEOF
32536
32537fi
32538
32539if test "$wxUSE_GEOMETRY" = "yes"; then
32540 cat >>confdefs.h <<\_ACEOF
32541#define wxUSE_GEOMETRY 1
32542_ACEOF
32543
32544fi
32545
32546if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
32547 cat >>confdefs.h <<\_ACEOF
32548#define wxUSE_DIALUP_MANAGER 1
32549_ACEOF
32550
32551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
32552fi
32553
32554if test "$wxUSE_STREAMS" = "yes" ; then
32555 cat >>confdefs.h <<\_ACEOF
32556#define wxUSE_STREAMS 1
32557_ACEOF
32558
32559fi
32560
32561
32562if test "$wxUSE_DATETIME" = "yes"; then
32563
32564for ac_func in strptime
32565do
32566as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32567echo "$as_me:$LINENO: checking for $ac_func" >&5
32568echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32569if eval "test \"\${$as_ac_var+set}\" = set"; then
32570 echo $ECHO_N "(cached) $ECHO_C" >&6
32571else
32572 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 32573#line $LINENO "configure"
a848cd7e
SC
32574/* confdefs.h. */
32575_ACEOF
32576cat confdefs.h >>conftest.$ac_ext
32577cat >>conftest.$ac_ext <<_ACEOF
32578/* end confdefs.h. */
a848cd7e
SC
32579/* System header to define __stub macros and hopefully few prototypes,
32580 which can conflict with char $ac_func (); below.
32581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32582 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
32583#ifdef __STDC__
32584# include <limits.h>
32585#else
32586# include <assert.h>
32587#endif
a848cd7e
SC
32588/* Override any gcc2 internal prototype to avoid an error. */
32589#ifdef __cplusplus
32590extern "C"
32591{
32592#endif
32593/* We use char because int might match the return type of a gcc2
32594 builtin and then its argument prototype would still apply. */
32595char $ac_func ();
32596/* The GNU C library defines this for functions which it implements
32597 to always fail with ENOSYS. Some functions are actually named
32598 something starting with __ and the normal name is an alias. */
32599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32600choke me
32601#else
32602char (*f) () = $ac_func;
32603#endif
32604#ifdef __cplusplus
32605}
32606#endif
32607
32608int
32609main ()
32610{
32611return f != $ac_func;
32612 ;
32613 return 0;
32614}
32615_ACEOF
32616rm -f conftest.$ac_objext conftest$ac_exeext
32617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 32618 (eval $ac_link) 2>&5
a848cd7e 32619 ac_status=$?
a848cd7e
SC
32620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621 (exit $ac_status); } &&
8a7b1113 32622 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32624 (eval $ac_try) 2>&5
32625 ac_status=$?
32626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627 (exit $ac_status); }; }; then
32628 eval "$as_ac_var=yes"
32629else
32630 echo "$as_me: failed program was:" >&5
32631sed 's/^/| /' conftest.$ac_ext >&5
32632
32633eval "$as_ac_var=no"
32634fi
8a7b1113 32635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32636fi
32637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32638echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32639if test `eval echo '${'$as_ac_var'}'` = yes; then
32640 cat >>confdefs.h <<_ACEOF
32641#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32642_ACEOF
32643
32644fi
32645done
32646
32647
32648 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
32649echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
32650if test "${wx_cv_var_timezone+set}" = set; then
32651 echo $ECHO_N "(cached) $ECHO_C" >&6
32652else
32653
32654 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 32655#line $LINENO "configure"
a848cd7e
SC
32656/* confdefs.h. */
32657_ACEOF
32658cat confdefs.h >>conftest.$ac_ext
32659cat >>conftest.$ac_ext <<_ACEOF
32660/* end confdefs.h. */
32661
32662 #include <time.h>
32663
32664int
32665main ()
32666{
32667
32668 int tz;
32669 tz = timezone;
32670
32671 ;
32672 return 0;
32673}
32674_ACEOF
32675rm -f conftest.$ac_objext
32676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 32677 (eval $ac_compile) 2>&5
a848cd7e 32678 ac_status=$?
a848cd7e
SC
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); } &&
8a7b1113 32681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32683 (eval $ac_try) 2>&5
32684 ac_status=$?
32685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686 (exit $ac_status); }; }; then
32687
32688 wx_cv_var_timezone=timezone
32689
32690else
32691 echo "$as_me: failed program was:" >&5
32692sed 's/^/| /' conftest.$ac_ext >&5
32693
32694
32695 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 32696#line $LINENO "configure"
a848cd7e
SC
32697/* confdefs.h. */
32698_ACEOF
32699cat confdefs.h >>conftest.$ac_ext
32700cat >>conftest.$ac_ext <<_ACEOF
32701/* end confdefs.h. */
32702
32703 #include <time.h>
32704
32705int
32706main ()
32707{
32708
32709 int tz;
32710 tz = _timezone;
32711
32712 ;
32713 return 0;
32714}
32715_ACEOF
32716rm -f conftest.$ac_objext
32717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 32718 (eval $ac_compile) 2>&5
a848cd7e 32719 ac_status=$?
a848cd7e
SC
32720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721 (exit $ac_status); } &&
8a7b1113 32722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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
32729 wx_cv_var_timezone=_timezone
32730
32731else
32732 echo "$as_me: failed program was:" >&5
32733sed 's/^/| /' conftest.$ac_ext >&5
32734
32735
32736 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 32737#line $LINENO "configure"
a848cd7e
SC
32738/* confdefs.h. */
32739_ACEOF
32740cat confdefs.h >>conftest.$ac_ext
32741cat >>conftest.$ac_ext <<_ACEOF
32742/* end confdefs.h. */
32743
32744 #include <time.h>
32745
32746int
32747main ()
32748{
32749
32750 int tz;
32751 tz = __timezone;
32752
32753 ;
32754 return 0;
32755}
32756_ACEOF
32757rm -f conftest.$ac_objext
32758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 32759 (eval $ac_compile) 2>&5
a848cd7e 32760 ac_status=$?
a848cd7e
SC
32761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32762 (exit $ac_status); } &&
8a7b1113 32763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32765 (eval $ac_try) 2>&5
32766 ac_status=$?
32767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768 (exit $ac_status); }; }; then
32769
32770 wx_cv_var_timezone=__timezone
32771
32772else
32773 echo "$as_me: failed program was:" >&5
32774sed 's/^/| /' conftest.$ac_ext >&5
32775
32776
32777 if test "$USE_DOS" = 0 ; then
32778 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
32779echo "$as_me: WARNING: no timezone variable" >&2;}
32780 fi
32781
32782
32783fi
8a7b1113 32784rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32785
32786
32787fi
8a7b1113 32788rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32789
32790
32791fi
8a7b1113 32792rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32793
32794
32795fi
32796echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
32797echo "${ECHO_T}$wx_cv_var_timezone" >&6
32798
32799 if test "x$wx_cv_var_timezone" != x ; then
32800 cat >>confdefs.h <<_ACEOF
32801#define WX_TIMEZONE $wx_cv_var_timezone
32802_ACEOF
32803
32804 fi
32805
32806
32807for ac_func in localtime
32808do
32809as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32810echo "$as_me:$LINENO: checking for $ac_func" >&5
32811echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32812if eval "test \"\${$as_ac_var+set}\" = set"; then
32813 echo $ECHO_N "(cached) $ECHO_C" >&6
32814else
32815 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 32816#line $LINENO "configure"
a848cd7e
SC
32817/* confdefs.h. */
32818_ACEOF
32819cat confdefs.h >>conftest.$ac_ext
32820cat >>conftest.$ac_ext <<_ACEOF
32821/* end confdefs.h. */
a848cd7e
SC
32822/* System header to define __stub macros and hopefully few prototypes,
32823 which can conflict with char $ac_func (); below.
32824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32825 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
32826#ifdef __STDC__
32827# include <limits.h>
32828#else
32829# include <assert.h>
32830#endif
a848cd7e
SC
32831/* Override any gcc2 internal prototype to avoid an error. */
32832#ifdef __cplusplus
32833extern "C"
32834{
32835#endif
32836/* We use char because int might match the return type of a gcc2
32837 builtin and then its argument prototype would still apply. */
32838char $ac_func ();
32839/* The GNU C library defines this for functions which it implements
32840 to always fail with ENOSYS. Some functions are actually named
32841 something starting with __ and the normal name is an alias. */
32842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32843choke me
32844#else
32845char (*f) () = $ac_func;
32846#endif
32847#ifdef __cplusplus
32848}
32849#endif
32850
32851int
32852main ()
32853{
32854return f != $ac_func;
32855 ;
32856 return 0;
32857}
32858_ACEOF
32859rm -f conftest.$ac_objext conftest$ac_exeext
32860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 32861 (eval $ac_link) 2>&5
a848cd7e 32862 ac_status=$?
a848cd7e
SC
32863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864 (exit $ac_status); } &&
8a7b1113 32865 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32867 (eval $ac_try) 2>&5
32868 ac_status=$?
32869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870 (exit $ac_status); }; }; then
32871 eval "$as_ac_var=yes"
32872else
32873 echo "$as_me: failed program was:" >&5
32874sed 's/^/| /' conftest.$ac_ext >&5
32875
32876eval "$as_ac_var=no"
32877fi
8a7b1113 32878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32879fi
32880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32881echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32882if test `eval echo '${'$as_ac_var'}'` = yes; then
32883 cat >>confdefs.h <<_ACEOF
32884#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32885_ACEOF
32886
32887fi
32888done
32889
32890
32891 if test "$ac_cv_func_localtime" = "yes"; then
32892 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
32893echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
32894if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
32895 echo $ECHO_N "(cached) $ECHO_C" >&6
32896else
32897
32898 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 32899#line $LINENO "configure"
a848cd7e
SC
32900/* confdefs.h. */
32901_ACEOF
32902cat confdefs.h >>conftest.$ac_ext
32903cat >>conftest.$ac_ext <<_ACEOF
32904/* end confdefs.h. */
32905
32906 #include <time.h>
32907
32908int
32909main ()
32910{
32911
32912 struct tm tm;
32913 tm.tm_gmtoff++;
32914
32915 ;
32916 return 0;
32917}
32918_ACEOF
32919rm -f conftest.$ac_objext
32920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 32921 (eval $ac_compile) 2>&5
a848cd7e 32922 ac_status=$?
a848cd7e
SC
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); } &&
8a7b1113 32925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32927 (eval $ac_try) 2>&5
32928 ac_status=$?
32929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); }; }; then
32931
32932 wx_cv_struct_tm_has_gmtoff=yes
32933
32934else
32935 echo "$as_me: failed program was:" >&5
32936sed 's/^/| /' conftest.$ac_ext >&5
32937
32938wx_cv_struct_tm_has_gmtoff=no
32939
32940fi
8a7b1113 32941rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32942
32943fi
32944echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
32945echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
32946 fi
32947
32948 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
32949 cat >>confdefs.h <<\_ACEOF
32950#define WX_GMTOFF_IN_TM 1
32951_ACEOF
32952
32953 fi
32954
32955
32956
32957for ac_func in gettimeofday ftime
32958do
32959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32960echo "$as_me:$LINENO: checking for $ac_func" >&5
32961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32962if eval "test \"\${$as_ac_var+set}\" = set"; then
32963 echo $ECHO_N "(cached) $ECHO_C" >&6
32964else
32965 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 32966#line $LINENO "configure"
a848cd7e
SC
32967/* confdefs.h. */
32968_ACEOF
32969cat confdefs.h >>conftest.$ac_ext
32970cat >>conftest.$ac_ext <<_ACEOF
32971/* end confdefs.h. */
a848cd7e
SC
32972/* System header to define __stub macros and hopefully few prototypes,
32973 which can conflict with char $ac_func (); below.
32974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32975 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
32976#ifdef __STDC__
32977# include <limits.h>
32978#else
32979# include <assert.h>
32980#endif
a848cd7e
SC
32981/* Override any gcc2 internal prototype to avoid an error. */
32982#ifdef __cplusplus
32983extern "C"
32984{
32985#endif
32986/* We use char because int might match the return type of a gcc2
32987 builtin and then its argument prototype would still apply. */
32988char $ac_func ();
32989/* The GNU C library defines this for functions which it implements
32990 to always fail with ENOSYS. Some functions are actually named
32991 something starting with __ and the normal name is an alias. */
32992#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32993choke me
32994#else
32995char (*f) () = $ac_func;
32996#endif
32997#ifdef __cplusplus
32998}
32999#endif
33000
33001int
33002main ()
33003{
33004return f != $ac_func;
33005 ;
33006 return 0;
33007}
33008_ACEOF
33009rm -f conftest.$ac_objext conftest$ac_exeext
33010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 33011 (eval $ac_link) 2>&5
a848cd7e 33012 ac_status=$?
a848cd7e
SC
33013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014 (exit $ac_status); } &&
8a7b1113 33015 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33017 (eval $ac_try) 2>&5
33018 ac_status=$?
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; }; then
33021 eval "$as_ac_var=yes"
33022else
33023 echo "$as_me: failed program was:" >&5
33024sed 's/^/| /' conftest.$ac_ext >&5
33025
33026eval "$as_ac_var=no"
33027fi
8a7b1113 33028rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33029fi
33030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33031echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33032if test `eval echo '${'$as_ac_var'}'` = yes; then
33033 cat >>confdefs.h <<_ACEOF
33034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33035_ACEOF
33036 break
33037fi
33038done
33039
33040
33041 if test "$ac_cv_func_gettimeofday" = "yes"; then
33042 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
33043echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
33044if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
33045 echo $ECHO_N "(cached) $ECHO_C" >&6
33046else
33047
33048
33049
33050 ac_ext=cc
33051ac_cpp='$CXXCPP $CPPFLAGS'
33052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33055
33056
33057 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 33058#line $LINENO "configure"
a848cd7e
SC
33059/* confdefs.h. */
33060_ACEOF
33061cat confdefs.h >>conftest.$ac_ext
33062cat >>conftest.$ac_ext <<_ACEOF
33063/* end confdefs.h. */
33064
33065 #include <sys/time.h>
33066 #include <unistd.h>
33067
33068int
33069main ()
33070{
33071
33072 struct timeval tv;
33073 gettimeofday(&tv, NULL);
33074
33075 ;
33076 return 0;
33077}
33078_ACEOF
33079rm -f conftest.$ac_objext
33080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 33081 (eval $ac_compile) 2>&5
a848cd7e 33082 ac_status=$?
a848cd7e
SC
33083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084 (exit $ac_status); } &&
8a7b1113 33085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33087 (eval $ac_try) 2>&5
33088 ac_status=$?
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; }; then
33091 wx_cv_func_gettimeofday_has_2_args=yes
33092else
33093 echo "$as_me: failed program was:" >&5
33094sed 's/^/| /' conftest.$ac_ext >&5
33095
33096cat >conftest.$ac_ext <<_ACEOF
8a7b1113 33097#line $LINENO "configure"
a848cd7e
SC
33098/* confdefs.h. */
33099_ACEOF
33100cat confdefs.h >>conftest.$ac_ext
33101cat >>conftest.$ac_ext <<_ACEOF
33102/* end confdefs.h. */
33103
33104 #include <sys/time.h>
33105 #include <unistd.h>
33106
33107int
33108main ()
33109{
33110
33111 struct timeval tv;
33112 gettimeofday(&tv);
33113
33114 ;
33115 return 0;
33116}
33117_ACEOF
33118rm -f conftest.$ac_objext
33119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 33120 (eval $ac_compile) 2>&5
a848cd7e 33121 ac_status=$?
a848cd7e
SC
33122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123 (exit $ac_status); } &&
8a7b1113 33124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33126 (eval $ac_try) 2>&5
33127 ac_status=$?
33128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129 (exit $ac_status); }; }; then
33130 wx_cv_func_gettimeofday_has_2_args=no
33131else
33132 echo "$as_me: failed program was:" >&5
33133sed 's/^/| /' conftest.$ac_ext >&5
33134
33135
33136 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
33137echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
33138 wx_cv_func_gettimeofday_has_2_args=unknown
33139
33140
33141fi
8a7b1113 33142rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33143
33144fi
8a7b1113 33145rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33146 ac_ext=c
33147ac_cpp='$CPP $CPPFLAGS'
33148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33150ac_compiler_gnu=$ac_cv_c_compiler_gnu
33151
33152
33153fi
33154echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
33155echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
33156
33157 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
33158 cat >>confdefs.h <<\_ACEOF
33159#define WX_GETTIMEOFDAY_NO_TZ 1
33160_ACEOF
33161
33162 fi
33163 fi
33164
33165 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
33166fi
33167
33168
33169if test "$wxUSE_SOCKETS" = "yes"; then
33170 if test "$wxUSE_MGL" = "1"; then
33171 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
33172echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
33173 wxUSE_SOCKETS="no"
33174 fi
33175fi
33176
33177if test "$wxUSE_SOCKETS" = "yes"; then
33178 if test "$TOOLKIT" != "MSW"; then
33179 echo "$as_me:$LINENO: checking for socket" >&5
33180echo $ECHO_N "checking for socket... $ECHO_C" >&6
33181if test "${ac_cv_func_socket+set}" = set; then
33182 echo $ECHO_N "(cached) $ECHO_C" >&6
33183else
33184 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 33185#line $LINENO "configure"
a848cd7e
SC
33186/* confdefs.h. */
33187_ACEOF
33188cat confdefs.h >>conftest.$ac_ext
33189cat >>conftest.$ac_ext <<_ACEOF
33190/* end confdefs.h. */
a848cd7e
SC
33191/* System header to define __stub macros and hopefully few prototypes,
33192 which can conflict with char socket (); below.
33193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33194 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
33195#ifdef __STDC__
33196# include <limits.h>
33197#else
33198# include <assert.h>
33199#endif
a848cd7e
SC
33200/* Override any gcc2 internal prototype to avoid an error. */
33201#ifdef __cplusplus
33202extern "C"
33203{
33204#endif
33205/* We use char because int might match the return type of a gcc2
33206 builtin and then its argument prototype would still apply. */
33207char socket ();
33208/* The GNU C library defines this for functions which it implements
33209 to always fail with ENOSYS. Some functions are actually named
33210 something starting with __ and the normal name is an alias. */
33211#if defined (__stub_socket) || defined (__stub___socket)
33212choke me
33213#else
33214char (*f) () = socket;
33215#endif
33216#ifdef __cplusplus
33217}
33218#endif
33219
33220int
33221main ()
33222{
33223return f != socket;
33224 ;
33225 return 0;
33226}
33227_ACEOF
33228rm -f conftest.$ac_objext conftest$ac_exeext
33229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 33230 (eval $ac_link) 2>&5
a848cd7e 33231 ac_status=$?
a848cd7e
SC
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); } &&
8a7b1113 33234 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33236 (eval $ac_try) 2>&5
33237 ac_status=$?
33238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239 (exit $ac_status); }; }; then
33240 ac_cv_func_socket=yes
33241else
33242 echo "$as_me: failed program was:" >&5
33243sed 's/^/| /' conftest.$ac_ext >&5
33244
33245ac_cv_func_socket=no
33246fi
8a7b1113 33247rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33248fi
33249echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
33250echo "${ECHO_T}$ac_cv_func_socket" >&6
33251if test $ac_cv_func_socket = yes; then
33252 :
33253else
33254
33255 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
33256echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
33257if test "${ac_cv_lib_socket_socket+set}" = set; then
33258 echo $ECHO_N "(cached) $ECHO_C" >&6
33259else
33260 ac_check_lib_save_LIBS=$LIBS
33261LIBS="-lsocket $LIBS"
33262cat >conftest.$ac_ext <<_ACEOF
8a7b1113 33263#line $LINENO "configure"
a848cd7e
SC
33264/* confdefs.h. */
33265_ACEOF
33266cat confdefs.h >>conftest.$ac_ext
33267cat >>conftest.$ac_ext <<_ACEOF
33268/* end confdefs.h. */
33269
33270/* Override any gcc2 internal prototype to avoid an error. */
33271#ifdef __cplusplus
33272extern "C"
33273#endif
33274/* We use char because int might match the return type of a gcc2
33275 builtin and then its argument prototype would still apply. */
33276char socket ();
33277int
33278main ()
33279{
33280socket ();
33281 ;
33282 return 0;
33283}
33284_ACEOF
33285rm -f conftest.$ac_objext conftest$ac_exeext
33286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 33287 (eval $ac_link) 2>&5
a848cd7e 33288 ac_status=$?
a848cd7e
SC
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); } &&
8a7b1113 33291 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33293 (eval $ac_try) 2>&5
33294 ac_status=$?
33295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); }; }; then
33297 ac_cv_lib_socket_socket=yes
33298else
33299 echo "$as_me: failed program was:" >&5
33300sed 's/^/| /' conftest.$ac_ext >&5
33301
33302ac_cv_lib_socket_socket=no
33303fi
8a7b1113 33304rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33305LIBS=$ac_check_lib_save_LIBS
33306fi
33307echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
33308echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
33309if test $ac_cv_lib_socket_socket = yes; then
33310 if test "$INET_LINK" != " -lsocket"; then
33311 INET_LINK="$INET_LINK -lsocket"
33312 fi
33313else
33314
33315 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
33316echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
33317 wxUSE_SOCKETS=no
33318
33319
33320fi
33321
33322
33323
33324fi
33325
33326 fi
33327fi
33328
33329if test "$wxUSE_SOCKETS" = "yes" ; then
33330 if test "$TOOLKIT" != "MSW"; then
33331 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
33332echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
33333if test "${wx_cv_type_getsockname3+set}" = set; then
33334 echo $ECHO_N "(cached) $ECHO_C" >&6
33335else
33336
33337 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 33338#line $LINENO "configure"
a848cd7e
SC
33339/* confdefs.h. */
33340_ACEOF
33341cat confdefs.h >>conftest.$ac_ext
33342cat >>conftest.$ac_ext <<_ACEOF
33343/* end confdefs.h. */
33344
33345 #include <sys/types.h>
33346 #include <sys/socket.h>
33347
33348int
33349main ()
33350{
33351
33352 socklen_t len;
33353 getsockname(0, 0, &len);
33354
33355 ;
33356 return 0;
33357}
33358_ACEOF
33359rm -f conftest.$ac_objext
33360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 33361 (eval $ac_compile) 2>&5
a848cd7e 33362 ac_status=$?
a848cd7e
SC
33363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33364 (exit $ac_status); } &&
8a7b1113 33365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33367 (eval $ac_try) 2>&5
33368 ac_status=$?
33369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); }; }; then
33371 wx_cv_type_getsockname3=socklen_t
33372else
33373 echo "$as_me: failed program was:" >&5
33374sed 's/^/| /' conftest.$ac_ext >&5
33375
33376
33377 CFLAGS_OLD="$CFLAGS"
33378 if test "$GCC" = yes ; then
33379 CFLAGS="$CFLAGS -Werror"
33380 fi
33381
33382 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 33383#line $LINENO "configure"
a848cd7e
SC
33384/* confdefs.h. */
33385_ACEOF
33386cat confdefs.h >>conftest.$ac_ext
33387cat >>conftest.$ac_ext <<_ACEOF
33388/* end confdefs.h. */
33389
33390 #include <sys/types.h>
33391 #include <sys/socket.h>
33392
33393int
33394main ()
33395{
33396
33397 size_t len;
33398 getsockname(0, 0, &len);
33399
33400 ;
33401 return 0;
33402}
33403_ACEOF
33404rm -f conftest.$ac_objext
33405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 33406 (eval $ac_compile) 2>&5
a848cd7e 33407 ac_status=$?
a848cd7e
SC
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); } &&
8a7b1113 33410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33412 (eval $ac_try) 2>&5
33413 ac_status=$?
33414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415 (exit $ac_status); }; }; then
33416 wx_cv_type_getsockname3=size_t
33417else
33418 echo "$as_me: failed program was:" >&5
33419sed 's/^/| /' conftest.$ac_ext >&5
33420
33421cat >conftest.$ac_ext <<_ACEOF
8a7b1113 33422#line $LINENO "configure"
a848cd7e
SC
33423/* confdefs.h. */
33424_ACEOF
33425cat confdefs.h >>conftest.$ac_ext
33426cat >>conftest.$ac_ext <<_ACEOF
33427/* end confdefs.h. */
33428
33429 #include <sys/types.h>
33430 #include <sys/socket.h>
33431
33432int
33433main ()
33434{
33435
33436 int len;
33437 getsockname(0, 0, &len);
33438
33439 ;
33440 return 0;
33441}
33442_ACEOF
33443rm -f conftest.$ac_objext
33444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 33445 (eval $ac_compile) 2>&5
a848cd7e 33446 ac_status=$?
a848cd7e
SC
33447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33448 (exit $ac_status); } &&
8a7b1113 33449 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33451 (eval $ac_try) 2>&5
33452 ac_status=$?
33453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33454 (exit $ac_status); }; }; then
33455 wx_cv_type_getsockname3=int
33456else
33457 echo "$as_me: failed program was:" >&5
33458sed 's/^/| /' conftest.$ac_ext >&5
33459
33460wx_cv_type_getsockname3=unknown
33461
33462fi
8a7b1113 33463rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33464
33465fi
8a7b1113 33466rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33467
33468 CFLAGS="$CFLAGS_OLD"
33469
33470
33471fi
8a7b1113 33472rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33473
33474fi
33475echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
33476echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
33477
33478 if test "$wx_cv_type_getsockname3" = "unknown"; then
33479 wxUSE_SOCKETS=no
33480 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
33481echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
33482 else
33483 cat >>confdefs.h <<_ACEOF
33484#define SOCKLEN_T $wx_cv_type_getsockname3
33485_ACEOF
33486
33487 fi
33488 fi
33489fi
33490
33491if test "$wxUSE_SOCKETS" = "yes" ; then
33492 cat >>confdefs.h <<\_ACEOF
33493#define wxUSE_SOCKETS 1
33494_ACEOF
33495
33496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
33497fi
33498
33499if test "$wxUSE_PROTOCOL" = "yes"; then
33500 if test "$wxUSE_SOCKETS" != "yes"; then
33501 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
33502echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
33503 wxUSE_PROTOCOL=no
33504 fi
33505fi
33506
33507if test "$wxUSE_PROTOCOL" = "yes"; then
33508 cat >>confdefs.h <<\_ACEOF
33509#define wxUSE_PROTOCOL 1
33510_ACEOF
33511
33512
33513 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
33514 cat >>confdefs.h <<\_ACEOF
33515#define wxUSE_PROTOCOL_HTTP 1
33516_ACEOF
33517
33518 fi
33519 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
33520 cat >>confdefs.h <<\_ACEOF
33521#define wxUSE_PROTOCOL_FTP 1
33522_ACEOF
33523
33524 fi
33525 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
33526 cat >>confdefs.h <<\_ACEOF
33527#define wxUSE_PROTOCOL_FILE 1
33528_ACEOF
33529
33530 fi
33531else
33532 if test "$wxUSE_FS_INET" = "yes"; then
33533 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
33534echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
33535 wxUSE_FS_INET="no"
33536 fi
33537fi
33538
33539if test "$wxUSE_URL" = "yes"; then
33540 if test "$wxUSE_PROTOCOL" != "yes"; then
33541 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
33542echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
33543 wxUSE_URL=no
33544 fi
33545 if test "$wxUSE_URL" = "yes"; then
33546 cat >>confdefs.h <<\_ACEOF
33547#define wxUSE_URL 1
33548_ACEOF
33549
33550 fi
33551fi
33552
33553if test "$wxUSE_FS_INET" = "yes"; then
33554 cat >>confdefs.h <<\_ACEOF
33555#define wxUSE_FS_INET 1
33556_ACEOF
33557
33558fi
33559
33560
33561if test "$wxUSE_GUI" = "yes"; then
33562
33563 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
33564 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
33565echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
33566 wxUSE_JOYSTICK=no
33567 fi
33568
33569 if test "$TOOLKIT" != "MSW"; then
33570 if test "$wxUSE_JOYSTICK" = "yes"; then
33571
33572for ac_header in linux/joystick.h
33573do
33574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33575if eval "test \"\${$as_ac_Header+set}\" = set"; then
33576 echo "$as_me:$LINENO: checking for $ac_header" >&5
33577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33578if eval "test \"\${$as_ac_Header+set}\" = set"; then
33579 echo $ECHO_N "(cached) $ECHO_C" >&6
33580fi
33581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33583else
33584 # Is the header compilable?
33585echo "$as_me:$LINENO: checking $ac_header usability" >&5
33586echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33587cat >conftest.$ac_ext <<_ACEOF
8a7b1113 33588#line $LINENO "configure"
a848cd7e
SC
33589/* confdefs.h. */
33590_ACEOF
33591cat confdefs.h >>conftest.$ac_ext
33592cat >>conftest.$ac_ext <<_ACEOF
33593/* end confdefs.h. */
33594$ac_includes_default
33595#include <$ac_header>
33596_ACEOF
33597rm -f conftest.$ac_objext
33598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 33599 (eval $ac_compile) 2>&5
a848cd7e 33600 ac_status=$?
a848cd7e
SC
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); } &&
8a7b1113 33603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33605 (eval $ac_try) 2>&5
33606 ac_status=$?
33607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); }; }; then
33609 ac_header_compiler=yes
33610else
33611 echo "$as_me: failed program was:" >&5
33612sed 's/^/| /' conftest.$ac_ext >&5
33613
33614ac_header_compiler=no
33615fi
8a7b1113 33616rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33618echo "${ECHO_T}$ac_header_compiler" >&6
33619
33620# Is the header present?
33621echo "$as_me:$LINENO: checking $ac_header presence" >&5
33622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33623cat >conftest.$ac_ext <<_ACEOF
8a7b1113 33624#line $LINENO "configure"
a848cd7e
SC
33625/* confdefs.h. */
33626_ACEOF
33627cat confdefs.h >>conftest.$ac_ext
33628cat >>conftest.$ac_ext <<_ACEOF
33629/* end confdefs.h. */
33630#include <$ac_header>
33631_ACEOF
33632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33634 ac_status=$?
33635 grep -v '^ *+' conftest.er1 >conftest.err
33636 rm -f conftest.er1
33637 cat conftest.err >&5
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); } >/dev/null; then
33640 if test -s conftest.err; then
33641 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
33642 else
33643 ac_cpp_err=
33644 fi
33645else
33646 ac_cpp_err=yes
33647fi
33648if test -z "$ac_cpp_err"; then
33649 ac_header_preproc=yes
33650else
33651 echo "$as_me: failed program was:" >&5
33652sed 's/^/| /' conftest.$ac_ext >&5
33653
33654 ac_header_preproc=no
33655fi
33656rm -f conftest.err conftest.$ac_ext
33657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33658echo "${ECHO_T}$ac_header_preproc" >&6
33659
33660# So? What about this header?
8a7b1113
VZ
33661case $ac_header_compiler:$ac_header_preproc in
33662 yes:no )
a848cd7e
SC
33663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
33665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33666echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33667 (
33668 cat <<\_ASBOX
33669## ------------------------------------ ##
33670## Report this to bug-autoconf@gnu.org. ##
33671## ------------------------------------ ##
33672_ASBOX
33673 ) |
33674 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 33675 ;;
8a7b1113 33676 no:yes )
a848cd7e
SC
33677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
33679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33680echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
33681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
33683 (
33684 cat <<\_ASBOX
8a7b1113
VZ
33685## ------------------------------------ ##
33686## Report this to bug-autoconf@gnu.org. ##
33687## ------------------------------------ ##
a848cd7e
SC
33688_ASBOX
33689 ) |
33690 sed "s/^/$as_me: WARNING: /" >&2
33691 ;;
33692esac
33693echo "$as_me:$LINENO: checking for $ac_header" >&5
33694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33695if eval "test \"\${$as_ac_Header+set}\" = set"; then
33696 echo $ECHO_N "(cached) $ECHO_C" >&6
33697else
8a7b1113 33698 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
33699fi
33700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33702
33703fi
33704if test `eval echo '${'$as_ac_Header'}'` = yes; then
33705 cat >>confdefs.h <<_ACEOF
33706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33707_ACEOF
33708
33709fi
33710
33711done
33712
33713 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
33714 wxUSE_JOYSTICK=no
33715 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
33716echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
33717 fi
33718 fi
33719 fi
33720
33721 if test "$wxUSE_JOYSTICK" = "yes"; then
33722 cat >>confdefs.h <<\_ACEOF
33723#define wxUSE_JOYSTICK 1
33724_ACEOF
33725
33726 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
33727 fi
33728fi
33729
33730
33731
33732if test "$wxUSE_FONTMAP" = "yes" ; then
33733 cat >>confdefs.h <<\_ACEOF
33734#define wxUSE_FONTMAP 1
33735_ACEOF
33736
33737fi
33738
33739if test "$wxUSE_UNICODE" = "yes" ; then
33740 cat >>confdefs.h <<\_ACEOF
33741#define wxUSE_UNICODE 1
33742_ACEOF
33743
33744
33745 if test "$USE_WIN32" != 1; then
33746 wxUSE_UNICODE_MSLU=no
33747 fi
33748
33749 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
33750 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
33751echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
33752if test "${ac_cv_lib_unicows_main+set}" = set; then
33753 echo $ECHO_N "(cached) $ECHO_C" >&6
33754else
33755 ac_check_lib_save_LIBS=$LIBS
33756LIBS="-lunicows $LIBS"
33757cat >conftest.$ac_ext <<_ACEOF
8a7b1113 33758#line $LINENO "configure"
a848cd7e
SC
33759/* confdefs.h. */
33760_ACEOF
33761cat confdefs.h >>conftest.$ac_ext
33762cat >>conftest.$ac_ext <<_ACEOF
33763/* end confdefs.h. */
33764
33765
33766int
33767main ()
33768{
33769main ();
33770 ;
33771 return 0;
33772}
33773_ACEOF
33774rm -f conftest.$ac_objext conftest$ac_exeext
33775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 33776 (eval $ac_link) 2>&5
a848cd7e 33777 ac_status=$?
a848cd7e
SC
33778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779 (exit $ac_status); } &&
8a7b1113 33780 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33782 (eval $ac_try) 2>&5
33783 ac_status=$?
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); }; }; then
33786 ac_cv_lib_unicows_main=yes
33787else
33788 echo "$as_me: failed program was:" >&5
33789sed 's/^/| /' conftest.$ac_ext >&5
33790
33791ac_cv_lib_unicows_main=no
33792fi
8a7b1113 33793rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33794LIBS=$ac_check_lib_save_LIBS
33795fi
33796echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
33797echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
33798if test $ac_cv_lib_unicows_main = yes; then
33799
33800 cat >>confdefs.h <<\_ACEOF
33801#define wxUSE_UNICODE_MSLU 1
33802_ACEOF
33803
33804
33805else
33806
33807 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
33808 Applications will only run on Windows NT/2000/XP!" >&5
33809echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
33810 Applications will only run on Windows NT/2000/XP!" >&2;}
33811 wxUSE_UNICODE_MSLU=no
33812
33813fi
33814
33815 fi
33816fi
33817
33818if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
33819 cat >>confdefs.h <<\_ACEOF
33820#define wxUSE_EXPERIMENTAL_PRINTF 1
33821_ACEOF
33822
33823fi
33824
33825
33826if test "$wxUSE_POSTSCRIPT" = "yes" ; then
33827 cat >>confdefs.h <<\_ACEOF
33828#define wxUSE_POSTSCRIPT 1
33829_ACEOF
33830
33831fi
33832
33833cat >>confdefs.h <<\_ACEOF
33834#define wxUSE_AFM_FOR_POSTSCRIPT 1
33835_ACEOF
33836
33837
33838cat >>confdefs.h <<\_ACEOF
33839#define wxUSE_NORMALIZED_PS_FONTS 1
33840_ACEOF
33841
33842
33843
33844if test "$wxUSE_CONSTRAINTS" = "yes"; then
33845 cat >>confdefs.h <<\_ACEOF
33846#define wxUSE_CONSTRAINTS 1
33847_ACEOF
33848
33849 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
33850fi
33851
8a7b1113
VZ
33852if test "$wxUSE_MDI" = "yes"; then
33853 cat >>confdefs.h <<\_ACEOF
33854#define wxUSE_MDI 1
33855_ACEOF
33856
33857
33858 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
33859 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
33860#define wxUSE_MDI_ARCHITECTURE 1
33861_ACEOF
33862
8a7b1113
VZ
33863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
33864 fi
a848cd7e
SC
33865fi
33866
33867if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
33868 cat >>confdefs.h <<\_ACEOF
33869#define wxUSE_DOC_VIEW_ARCHITECTURE 1
33870_ACEOF
33871
33872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
33873 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
33874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
33875 fi
33876fi
33877
33878if test "$wxUSE_HELP" = "yes"; then
33879 cat >>confdefs.h <<\_ACEOF
33880#define wxUSE_HELP 1
33881_ACEOF
33882
33883 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
33884
33885 if test "$wxUSE_MSW" = 1; then
33886 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
33887 cat >>confdefs.h <<\_ACEOF
33888#define wxUSE_MS_HTML_HELP 1
33889_ACEOF
33890
33891 fi
33892 fi
33893
33894 if test "$wxUSE_WXHTML_HELP" = "yes"; then
33895 if test "$wxUSE_HTML" = "yes"; then
33896 cat >>confdefs.h <<\_ACEOF
33897#define wxUSE_WXHTML_HELP 1
33898_ACEOF
33899
33900 else
33901 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
33902echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
33903 wxUSE_WXHTML_HELP=no
33904 fi
33905 fi
33906fi
33907
33908if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
33909 if test "$wxUSE_CONSTRAINTS" != "yes"; then
33910 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
33911echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
33912 else
33913 cat >>confdefs.h <<\_ACEOF
33914#define wxUSE_PRINTING_ARCHITECTURE 1
33915_ACEOF
33916
33917 fi
33918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
33919fi
33920
33921if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
33922 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
33923echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
33924 { (exit 1); exit 1; }; }
33925fi
33926
33927
33928if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
33929 -o "$wxUSE_CLIPBOARD" = "yes" \
33930 -o "$wxUSE_OLE" = "yes" \
33931 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
33932
33933for ac_header in ole2.h
33934do
33935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33936if eval "test \"\${$as_ac_Header+set}\" = set"; then
33937 echo "$as_me:$LINENO: checking for $ac_header" >&5
33938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33939if eval "test \"\${$as_ac_Header+set}\" = set"; then
33940 echo $ECHO_N "(cached) $ECHO_C" >&6
33941fi
33942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33944else
33945 # Is the header compilable?
33946echo "$as_me:$LINENO: checking $ac_header usability" >&5
33947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33948cat >conftest.$ac_ext <<_ACEOF
8a7b1113 33949#line $LINENO "configure"
a848cd7e
SC
33950/* confdefs.h. */
33951_ACEOF
33952cat confdefs.h >>conftest.$ac_ext
33953cat >>conftest.$ac_ext <<_ACEOF
33954/* end confdefs.h. */
33955$ac_includes_default
33956#include <$ac_header>
33957_ACEOF
33958rm -f conftest.$ac_objext
33959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 33960 (eval $ac_compile) 2>&5
a848cd7e 33961 ac_status=$?
a848cd7e
SC
33962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963 (exit $ac_status); } &&
8a7b1113 33964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33966 (eval $ac_try) 2>&5
33967 ac_status=$?
33968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969 (exit $ac_status); }; }; then
33970 ac_header_compiler=yes
33971else
33972 echo "$as_me: failed program was:" >&5
33973sed 's/^/| /' conftest.$ac_ext >&5
33974
33975ac_header_compiler=no
33976fi
8a7b1113 33977rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33978echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33979echo "${ECHO_T}$ac_header_compiler" >&6
33980
33981# Is the header present?
33982echo "$as_me:$LINENO: checking $ac_header presence" >&5
33983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33984cat >conftest.$ac_ext <<_ACEOF
8a7b1113 33985#line $LINENO "configure"
a848cd7e
SC
33986/* confdefs.h. */
33987_ACEOF
33988cat confdefs.h >>conftest.$ac_ext
33989cat >>conftest.$ac_ext <<_ACEOF
33990/* end confdefs.h. */
33991#include <$ac_header>
33992_ACEOF
33993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33995 ac_status=$?
33996 grep -v '^ *+' conftest.er1 >conftest.err
33997 rm -f conftest.er1
33998 cat conftest.err >&5
33999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); } >/dev/null; then
34001 if test -s conftest.err; then
34002 ac_cpp_err=$ac_c_preproc_warn_flag
a848cd7e
SC
34003 else
34004 ac_cpp_err=
34005 fi
34006else
34007 ac_cpp_err=yes
34008fi
34009if test -z "$ac_cpp_err"; then
34010 ac_header_preproc=yes
34011else
34012 echo "$as_me: failed program was:" >&5
34013sed 's/^/| /' conftest.$ac_ext >&5
34014
34015 ac_header_preproc=no
34016fi
34017rm -f conftest.err conftest.$ac_ext
34018echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34019echo "${ECHO_T}$ac_header_preproc" >&6
34020
34021# So? What about this header?
8a7b1113
VZ
34022case $ac_header_compiler:$ac_header_preproc in
34023 yes:no )
a848cd7e
SC
34024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a7b1113
VZ
34026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34028 (
34029 cat <<\_ASBOX
34030## ------------------------------------ ##
34031## Report this to bug-autoconf@gnu.org. ##
34032## ------------------------------------ ##
34033_ASBOX
34034 ) |
34035 sed "s/^/$as_me: WARNING: /" >&2
a848cd7e 34036 ;;
8a7b1113 34037 no:yes )
a848cd7e
SC
34038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a7b1113
VZ
34040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
a848cd7e
SC
34042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a848cd7e
SC
34044 (
34045 cat <<\_ASBOX
8a7b1113
VZ
34046## ------------------------------------ ##
34047## Report this to bug-autoconf@gnu.org. ##
34048## ------------------------------------ ##
a848cd7e
SC
34049_ASBOX
34050 ) |
34051 sed "s/^/$as_me: WARNING: /" >&2
34052 ;;
34053esac
34054echo "$as_me:$LINENO: checking for $ac_header" >&5
34055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34056if eval "test \"\${$as_ac_Header+set}\" = set"; then
34057 echo $ECHO_N "(cached) $ECHO_C" >&6
34058else
8a7b1113 34059 eval "$as_ac_Header=$ac_header_preproc"
a848cd7e
SC
34060fi
34061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34063
34064fi
34065if test `eval echo '${'$as_ac_Header'}'` = yes; then
34066 cat >>confdefs.h <<_ACEOF
34067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34068_ACEOF
34069
34070fi
34071
34072done
34073
34074
34075 if test "$ac_cv_header_ole2_h" = "yes" ; then
34076 if test "$GCC" = yes ; then
34077
34078
34079 ac_ext=cc
34080ac_cpp='$CXXCPP $CPPFLAGS'
34081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34084
34085
34086 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
34087echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
34088 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 34089#line $LINENO "configure"
a848cd7e
SC
34090/* confdefs.h. */
34091_ACEOF
34092cat confdefs.h >>conftest.$ac_ext
34093cat >>conftest.$ac_ext <<_ACEOF
34094/* end confdefs.h. */
34095#include <windows.h>
34096 #include <ole2.h>
34097int
34098main ()
34099{
34100
34101 ;
34102 return 0;
34103}
34104_ACEOF
34105rm -f conftest.$ac_objext
34106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 34107 (eval $ac_compile) 2>&5
a848cd7e 34108 ac_status=$?
a848cd7e
SC
34109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110 (exit $ac_status); } &&
8a7b1113 34111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34113 (eval $ac_try) 2>&5
34114 ac_status=$?
34115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116 (exit $ac_status); }; }; then
34117 echo "$as_me:$LINENO: result: no" >&5
34118echo "${ECHO_T}no" >&6
34119else
34120 echo "$as_me: failed program was:" >&5
34121sed 's/^/| /' conftest.$ac_ext >&5
34122
34123echo "$as_me:$LINENO: result: yes" >&5
34124echo "${ECHO_T}yes" >&6
34125 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
34126fi
8a7b1113 34127rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34128 ac_ext=c
34129ac_cpp='$CPP $CPPFLAGS'
34130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34132ac_compiler_gnu=$ac_cv_c_compiler_gnu
34133
34134 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
34135 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
34136 if test "$wxUSE_OLE" = "yes" ; then
34137 cat >>confdefs.h <<\_ACEOF
34138#define wxUSE_OLE 1
34139_ACEOF
34140
34141 fi
34142 fi
34143
34144 if test "$wxUSE_DATAOBJ" = "yes" ; then
34145 cat >>confdefs.h <<\_ACEOF
34146#define wxUSE_DATAOBJ 1
34147_ACEOF
34148
34149 fi
34150 else
34151 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
34152echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
34153
34154 wxUSE_CLIPBOARD=no
34155 wxUSE_DRAG_AND_DROP=no
34156 wxUSE_DATAOBJ=no
34157 wxUSE_OLE=no
34158 fi
34159
34160 if test "$wxUSE_METAFILE" = "yes"; then
34161 cat >>confdefs.h <<\_ACEOF
34162#define wxUSE_METAFILE 1
34163_ACEOF
34164
34165
34166 cat >>confdefs.h <<\_ACEOF
34167#define wxUSE_ENH_METAFILE 1
34168_ACEOF
34169
34170 fi
34171fi
34172
34173if test "$wxUSE_IPC" = "yes"; then
34174 if test "$wxUSE_SOCKETS" != "yes"; then
34175 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
34176echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
34177 fi
34178
34179 cat >>confdefs.h <<\_ACEOF
34180#define wxUSE_IPC 1
34181_ACEOF
34182
34183fi
34184
34185if test "$wxUSE_CLIPBOARD" = "yes"; then
34186 if test "$wxUSE_MGL" = 1; then
34187 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
34188echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
34189 wxUSE_CLIPBOARD=no
34190 fi
34191
34192 if test "$wxUSE_CLIPBOARD" = "yes"; then
34193 cat >>confdefs.h <<\_ACEOF
34194#define wxUSE_CLIPBOARD 1
34195_ACEOF
34196
34197
34198 cat >>confdefs.h <<\_ACEOF
34199#define wxUSE_DATAOBJ 1
34200_ACEOF
34201
34202 fi
34203fi
34204
34205if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
34206 if test "$wxUSE_GTK" = 1; then
34207 if test "$WXGTK12" != 1; then
34208 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
34209echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
34210 wxUSE_DRAG_AND_DROP=no
34211 fi
34212 fi
34213
34214 if test "$wxUSE_MOTIF" = 1; then
34215 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
34216echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
34217 wxUSE_DRAG_AND_DROP=no
34218 fi
34219
34220 if test "$wxUSE_X11" = 1; then
34221 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
34222echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
34223 wxUSE_DRAG_AND_DROP=no
34224 fi
34225
34226 if test "$wxUSE_MGL" = 1; then
34227 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
34228echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
34229 wxUSE_DRAG_AND_DROP=no
34230 fi
34231
34232 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
34233 cat >>confdefs.h <<\_ACEOF
34234#define wxUSE_DRAG_AND_DROP 1
34235_ACEOF
34236
34237 fi
34238
34239fi
34240
34241if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
34242 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
34243fi
34244
34245if test "$wxUSE_SPLINES" = "yes" ; then
34246 cat >>confdefs.h <<\_ACEOF
34247#define wxUSE_SPLINES 1
34248_ACEOF
34249
34250fi
34251
34252
34253USES_CONTROLS=0
34254if test "$wxUSE_CONTROLS" = "yes"; then
34255 USES_CONTROLS=1
34256fi
34257
34258if test "$wxUSE_ACCEL" = "yes"; then
34259 cat >>confdefs.h <<\_ACEOF
34260#define wxUSE_ACCEL 1
34261_ACEOF
34262
34263 USES_CONTROLS=1
34264fi
34265
34266if test "$wxUSE_BUTTON" = "yes"; then
34267 cat >>confdefs.h <<\_ACEOF
34268#define wxUSE_BUTTON 1
34269_ACEOF
34270
34271 USES_CONTROLS=1
34272fi
34273
34274if test "$wxUSE_BMPBUTTON" = "yes"; then
34275 cat >>confdefs.h <<\_ACEOF
34276#define wxUSE_BMPBUTTON 1
34277_ACEOF
34278
34279 USES_CONTROLS=1
34280fi
34281
34282if test "$wxUSE_CALCTRL" = "yes"; then
34283 cat >>confdefs.h <<\_ACEOF
34284#define wxUSE_CALENDARCTRL 1
34285_ACEOF
34286
34287 USES_CONTROLS=1
34288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
34289fi
34290
34291if test "$wxUSE_CARET" = "yes"; then
34292 cat >>confdefs.h <<\_ACEOF
34293#define wxUSE_CARET 1
34294_ACEOF
34295
34296 USES_CONTROLS=1
34297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
34298fi
34299
34300if test "$wxUSE_COMBOBOX" = "yes"; then
34301 cat >>confdefs.h <<\_ACEOF
34302#define wxUSE_COMBOBOX 1
34303_ACEOF
34304
34305 USES_CONTROLS=1
34306fi
34307
34308if test "$wxUSE_CHOICE" = "yes"; then
34309 cat >>confdefs.h <<\_ACEOF
34310#define wxUSE_CHOICE 1
34311_ACEOF
34312
34313 USES_CONTROLS=1
34314fi
34315
34316if test "$wxUSE_CHECKBOX" = "yes"; then
34317 cat >>confdefs.h <<\_ACEOF
34318#define wxUSE_CHECKBOX 1
34319_ACEOF
34320
34321 USES_CONTROLS=1
34322fi
34323
34324if test "$wxUSE_CHECKLST" = "yes"; then
34325 cat >>confdefs.h <<\_ACEOF
34326#define wxUSE_CHECKLISTBOX 1
34327_ACEOF
34328
34329 USES_CONTROLS=1
34330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
34331fi
34332
34333if test "$wxUSE_DISPLAY" = "yes"; then
34334 cat >>confdefs.h <<\_ACEOF
34335#define wxUSE_DISPLAY 1
34336_ACEOF
34337
34338 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
34339fi
34340
34341if test "$wxUSE_GAUGE" = "yes"; then
34342 cat >>confdefs.h <<\_ACEOF
34343#define wxUSE_GAUGE 1
34344_ACEOF
34345
34346 USES_CONTROLS=1
34347fi
34348
34349if test "$wxUSE_GRID" = "yes"; then
34350 cat >>confdefs.h <<\_ACEOF
34351#define wxUSE_GRID 1
34352_ACEOF
34353
34354 USES_CONTROLS=1
34355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
34356fi
34357
34358if test "$wxUSE_IMAGLIST" = "yes"; then
34359 cat >>confdefs.h <<\_ACEOF
34360#define wxUSE_IMAGLIST 1
34361_ACEOF
34362
34363fi
34364
34365if test "$wxUSE_LISTBOOK" = "yes"; then
34366 cat >>confdefs.h <<\_ACEOF
34367#define wxUSE_LISTBOOK 1
34368_ACEOF
34369
34370 USES_CONTROLS=1
34371fi
34372
34373if test "$wxUSE_LISTBOX" = "yes"; then
34374 cat >>confdefs.h <<\_ACEOF
34375#define wxUSE_LISTBOX 1
34376_ACEOF
34377
34378 USES_CONTROLS=1
34379fi
34380
34381if test "$wxUSE_LISTCTRL" = "yes"; then
34382 if test "$wxUSE_IMAGLIST" = "yes"; then
34383 cat >>confdefs.h <<\_ACEOF
34384#define wxUSE_LISTCTRL 1
34385_ACEOF
34386
34387 USES_CONTROLS=1
34388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
34389 else
34390 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
34391echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
34392 fi
34393fi
34394
34395if test "$wxUSE_NOTEBOOK" = "yes"; then
34396 cat >>confdefs.h <<\_ACEOF
34397#define wxUSE_NOTEBOOK 1
34398_ACEOF
34399
34400 USES_CONTROLS=1
34401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
34402fi
34403
34404
34405if test "$wxUSE_RADIOBOX" = "yes"; then
34406 cat >>confdefs.h <<\_ACEOF
34407#define wxUSE_RADIOBOX 1
34408_ACEOF
34409
34410 USES_CONTROLS=1
34411fi
34412
34413if test "$wxUSE_RADIOBTN" = "yes"; then
34414 cat >>confdefs.h <<\_ACEOF
34415#define wxUSE_RADIOBTN 1
34416_ACEOF
34417
34418 USES_CONTROLS=1
34419fi
34420
34421if test "$wxUSE_SASH" = "yes"; then
34422 cat >>confdefs.h <<\_ACEOF
34423#define wxUSE_SASH 1
34424_ACEOF
34425
34426 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
34427fi
34428
34429if test "$wxUSE_SCROLLBAR" = "yes"; then
34430 cat >>confdefs.h <<\_ACEOF
34431#define wxUSE_SCROLLBAR 1
34432_ACEOF
34433
34434 USES_CONTROLS=1
34435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
34436fi
34437
34438if test "$wxUSE_SLIDER" = "yes"; then
34439 cat >>confdefs.h <<\_ACEOF
34440#define wxUSE_SLIDER 1
34441_ACEOF
34442
34443 USES_CONTROLS=1
34444fi
34445
34446if test "$wxUSE_SPINBTN" = "yes"; then
34447 cat >>confdefs.h <<\_ACEOF
34448#define wxUSE_SPINBTN 1
34449_ACEOF
34450
34451 USES_CONTROLS=1
34452fi
34453
34454if test "$wxUSE_SPINCTRL" = "yes"; then
34455 cat >>confdefs.h <<\_ACEOF
34456#define wxUSE_SPINCTRL 1
34457_ACEOF
34458
34459 USES_CONTROLS=1
34460fi
34461
34462if test "$wxUSE_SPLITTER" = "yes"; then
34463 cat >>confdefs.h <<\_ACEOF
34464#define wxUSE_SPLITTER 1
34465_ACEOF
34466
34467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
34468fi
34469
34470if test "$wxUSE_STATBMP" = "yes"; then
34471 cat >>confdefs.h <<\_ACEOF
34472#define wxUSE_STATBMP 1
34473_ACEOF
34474
34475 USES_CONTROLS=1
34476fi
34477
34478if test "$wxUSE_STATBOX" = "yes"; then
34479 cat >>confdefs.h <<\_ACEOF
34480#define wxUSE_STATBOX 1
34481_ACEOF
34482
34483 USES_CONTROLS=1
34484fi
34485
34486if test "$wxUSE_STATTEXT" = "yes"; then
34487 cat >>confdefs.h <<\_ACEOF
34488#define wxUSE_STATTEXT 1
34489_ACEOF
34490
34491 USES_CONTROLS=1
34492fi
34493
34494if test "$wxUSE_STATLINE" = "yes"; then
34495 cat >>confdefs.h <<\_ACEOF
34496#define wxUSE_STATLINE 1
34497_ACEOF
34498
34499 USES_CONTROLS=1
34500fi
34501
34502if test "$wxUSE_STATUSBAR" = "yes"; then
34503 cat >>confdefs.h <<\_ACEOF
34504#define wxUSE_STATUSBAR 1
34505_ACEOF
34506
34507 USES_CONTROLS=1
34508
34509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
34510fi
34511
34512if test "$wxUSE_TABDIALOG" = "yes"; then
34513 cat >>confdefs.h <<\_ACEOF
34514#define wxUSE_TAB_DIALOG 1
34515_ACEOF
34516
34517 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
34518fi
34519
34520if test "$wxUSE_TEXTCTRL" = "yes"; then
34521 cat >>confdefs.h <<\_ACEOF
34522#define wxUSE_TEXTCTRL 1
34523_ACEOF
34524
34525 USES_CONTROLS=1
34526 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
34527fi
34528
34529if test "$wxUSE_TOGGLEBTN" = "yes"; then
34530 if test "$wxUSE_COCOA" = 1 ; then
34531 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
34532echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
34533 wxUSE_TOGGLEBTN=no
34534 fi
34535 if test "$wxUSE_UNIVERSAL" = "yes"; then
34536 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
34537echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
34538 wxUSE_TOGGLEBTN=no
34539 fi
34540
34541 if test "$wxUSE_TOGGLEBTN" = "yes"; then
34542 cat >>confdefs.h <<\_ACEOF
34543#define wxUSE_TOGGLEBTN 1
34544_ACEOF
34545
34546 USES_CONTROLS=1
34547 fi
34548fi
34549
34550if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
34551 cat >>confdefs.h <<\_ACEOF
34552#define wxUSE_TOOLBAR_SIMPLE 1
34553_ACEOF
34554
34555 wxUSE_TOOLBAR="yes"
34556 USES_CONTROLS=1
34557fi
34558
34559if test "$wxUSE_TOOLBAR" = "yes"; then
34560 cat >>confdefs.h <<\_ACEOF
34561#define wxUSE_TOOLBAR 1
34562_ACEOF
34563
34564 USES_CONTROLS=1
34565
34566 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
34567 wxUSE_TOOLBAR_NATIVE="yes"
34568 fi
34569
34570 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
34571 cat >>confdefs.h <<\_ACEOF
34572#define wxUSE_TOOLBAR_NATIVE 1
34573_ACEOF
34574
34575 USES_CONTROLS=1
34576 fi
34577
34578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
34579fi
34580
34581if test "$wxUSE_TOOLTIPS" = "yes"; then
34582 if test "$wxUSE_MOTIF" = 1; then
34583 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
34584echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
34585 else
34586 if test "$wxUSE_UNIVERSAL" = "yes"; then
34587 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
34588echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
34589 else
34590 cat >>confdefs.h <<\_ACEOF
34591#define wxUSE_TOOLTIPS 1
34592_ACEOF
34593
34594 fi
34595 fi
34596fi
34597
34598if test "$wxUSE_TREECTRL" = "yes"; then
34599 if test "$wxUSE_IMAGLIST" = "yes"; then
34600 cat >>confdefs.h <<\_ACEOF
34601#define wxUSE_TREECTRL 1
34602_ACEOF
34603
34604 USES_CONTROLS=1
34605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
34606 else
34607 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
34608echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
34609 fi
34610fi
34611
34612if test "$wxUSE_POPUPWIN" = "yes"; then
34613 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
34614 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
34615echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
34616 else
34617 if test "$wxUSE_PM" = 1; then
34618 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
34619echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
34620 else
34621 cat >>confdefs.h <<\_ACEOF
34622#define wxUSE_POPUPWIN 1
34623_ACEOF
34624
34625
34626 USES_CONTROLS=1
34627 fi
34628 fi
34629fi
34630
34631if test "$wxUSE_TIPWINDOW" = "yes"; then
34632 if test "$wxUSE_PM" = 1; then
34633 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
34634echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
34635 else
34636 cat >>confdefs.h <<\_ACEOF
34637#define wxUSE_TIPWINDOW 1
34638_ACEOF
34639
34640 fi
34641fi
34642
34643if test "$USES_CONTROLS" = 1; then
34644 cat >>confdefs.h <<\_ACEOF
34645#define wxUSE_CONTROLS 1
34646_ACEOF
34647
34648fi
34649
34650
34651if test "$wxUSE_ACCESSIBILITY" = "yes"; then
34652 cat >>confdefs.h <<\_ACEOF
34653#define wxUSE_ACCESSIBILITY 1
34654_ACEOF
34655
34656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
34657fi
34658
34659if test "$wxUSE_DRAGIMAGE" = "yes"; then
34660 cat >>confdefs.h <<\_ACEOF
34661#define wxUSE_DRAGIMAGE 1
34662_ACEOF
34663
34664 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
34665fi
34666
34667if test "$wxUSE_EXCEPTIONS" = "yes"; then
34668 cat >>confdefs.h <<\_ACEOF
34669#define wxUSE_EXCEPTIONS 1
34670_ACEOF
34671
34672fi
34673
34674USE_HTML=0
34675if test "$wxUSE_HTML" = "yes"; then
34676 cat >>confdefs.h <<\_ACEOF
34677#define wxUSE_HTML 1
34678_ACEOF
34679
34680 USE_HTML=1
34681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
34682fi
34683
34684if test "$wxUSE_MENUS" = "yes"; then
34685 cat >>confdefs.h <<\_ACEOF
34686#define wxUSE_MENUS 1
34687_ACEOF
34688
34689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
34690fi
34691
34692if test "$wxUSE_METAFILE" = "yes"; then
34693 cat >>confdefs.h <<\_ACEOF
34694#define wxUSE_METAFILE 1
34695_ACEOF
34696
34697fi
34698
34699if test "$wxUSE_MIMETYPE" = "yes"; then
34700 cat >>confdefs.h <<\_ACEOF
34701#define wxUSE_MIMETYPE 1
34702_ACEOF
34703
34704fi
34705
34706if test "$wxUSE_MINIFRAME" = "yes"; then
34707 cat >>confdefs.h <<\_ACEOF
34708#define wxUSE_MINIFRAME 1
34709_ACEOF
34710
34711 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
34712fi
34713
34714if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
34715 cat >>confdefs.h <<\_ACEOF
34716#define wxUSE_SYSTEM_OPTIONS 1
34717_ACEOF
34718
34719 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
34720 "$TOOLKIT" = "MOTIF"; then
34721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
34722 fi
34723fi
34724
34725
34726if test "$wxUSE_VALIDATORS" = "yes"; then
34727 cat >>confdefs.h <<\_ACEOF
34728#define wxUSE_VALIDATORS 1
34729_ACEOF
34730
34731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
34732fi
34733
34734if test "$wxUSE_PALETTE" = "yes" ; then
34735 cat >>confdefs.h <<\_ACEOF
34736#define wxUSE_PALETTE 1
34737_ACEOF
34738
34739fi
34740
34741if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
34742 LIBS=" -lunicows $LIBS"
34743fi
34744
34745
34746if test "$wxUSE_IMAGE" = "yes" ; then
34747 cat >>confdefs.h <<\_ACEOF
34748#define wxUSE_IMAGE 1
34749_ACEOF
34750
34751
34752 if test "$wxUSE_GIF" = "yes" ; then
34753 cat >>confdefs.h <<\_ACEOF
34754#define wxUSE_GIF 1
34755_ACEOF
34756
34757 fi
34758
34759 if test "$wxUSE_PCX" = "yes" ; then
34760 cat >>confdefs.h <<\_ACEOF
34761#define wxUSE_PCX 1
34762_ACEOF
34763
34764 fi
34765
34766 if test "$wxUSE_IFF" = "yes" ; then
34767 cat >>confdefs.h <<\_ACEOF
34768#define wxUSE_IFF 1
34769_ACEOF
34770
34771 fi
34772
34773 if test "$wxUSE_PNM" = "yes" ; then
34774 cat >>confdefs.h <<\_ACEOF
34775#define wxUSE_PNM 1
34776_ACEOF
34777
34778 fi
34779
34780 if test "$wxUSE_XPM" = "yes" ; then
34781 cat >>confdefs.h <<\_ACEOF
34782#define wxUSE_XPM 1
34783_ACEOF
34784
34785 fi
34786
34787 if test "$wxUSE_ICO_CUR" = "yes" ; then
34788 cat >>confdefs.h <<\_ACEOF
34789#define wxUSE_ICO_CUR 1
34790_ACEOF
34791
34792 fi
34793fi
34794
34795
34796if test "$wxUSE_CHOICEDLG" = "yes"; then
34797 cat >>confdefs.h <<\_ACEOF
34798#define wxUSE_CHOICEDLG 1
34799_ACEOF
34800
34801fi
34802
34803if test "$wxUSE_COLOURDLG" = "yes"; then
34804 cat >>confdefs.h <<\_ACEOF
34805#define wxUSE_COLOURDLG 1
34806_ACEOF
34807
34808fi
34809
34810if test "$wxUSE_FILEDLG" = "yes"; then
34811 cat >>confdefs.h <<\_ACEOF
34812#define wxUSE_FILEDLG 1
34813_ACEOF
34814
34815fi
34816
34817if test "$wxUSE_FINDREPLDLG" = "yes"; then
34818 cat >>confdefs.h <<\_ACEOF
34819#define wxUSE_FINDREPLDLG 1
34820_ACEOF
34821
34822fi
34823
34824if test "$wxUSE_FONTDLG" = "yes"; then
34825 cat >>confdefs.h <<\_ACEOF
34826#define wxUSE_FONTDLG 1
34827_ACEOF
34828
34829fi
34830
34831if test "$wxUSE_DIRDLG" = "yes"; then
34832 if test "$wxUSE_TREECTRL" != "yes"; then
34833 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
34834echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
34835 else
34836 cat >>confdefs.h <<\_ACEOF
34837#define wxUSE_DIRDLG 1
34838_ACEOF
34839
34840 fi
34841fi
34842
34843if test "$wxUSE_MSGDLG" = "yes"; then
34844 cat >>confdefs.h <<\_ACEOF
34845#define wxUSE_MSGDLG 1
34846_ACEOF
34847
34848fi
34849
34850if test "$wxUSE_NUMBERDLG" = "yes"; then
34851 cat >>confdefs.h <<\_ACEOF
34852#define wxUSE_NUMBERDLG 1
34853_ACEOF
34854
34855fi
34856
34857if test "$wxUSE_PROGRESSDLG" = "yes"; then
34858 if test "$wxUSE_CONSTRAINTS" != "yes"; then
34859 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
34860echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
34861 else
34862 cat >>confdefs.h <<\_ACEOF
34863#define wxUSE_PROGRESSDLG 1
34864_ACEOF
34865
34866 fi
34867fi
34868
34869if test "$wxUSE_SPLASH" = "yes"; then
34870 cat >>confdefs.h <<\_ACEOF
34871#define wxUSE_SPLASH 1
34872_ACEOF
34873
34874fi
34875
34876if test "$wxUSE_STARTUP_TIPS" = "yes"; then
34877 if test "$wxUSE_CONSTRAINTS" != "yes"; then
34878 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
34879echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
34880 else
34881 cat >>confdefs.h <<\_ACEOF
34882#define wxUSE_STARTUP_TIPS 1
34883_ACEOF
34884
34885 fi
34886fi
34887
34888if test "$wxUSE_TEXTDLG" = "yes"; then
34889 cat >>confdefs.h <<\_ACEOF
34890#define wxUSE_TEXTDLG 1
34891_ACEOF
34892
34893fi
34894
34895if test "$wxUSE_WIZARDDLG" = "yes"; then
34896 cat >>confdefs.h <<\_ACEOF
34897#define wxUSE_WIZARDDLG 1
34898_ACEOF
34899
34900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
34901fi
34902
34903
34904if test "$cross_compiling" = "yes"; then
34905 OSINFO="\"$host\""
34906else
34907 OSINFO=`uname -s -r -m`
34908 OSINFO="\"$OSINFO\""
34909fi
34910
34911cat >>confdefs.h <<_ACEOF
34912#define WXWIN_OS_DESCRIPTION $OSINFO
34913_ACEOF
34914
34915
34916
34917if test "x$prefix" != "xNONE"; then
34918 wxPREFIX=$prefix
34919else
34920 wxPREFIX=$ac_default_prefix
34921fi
34922
34923cat >>confdefs.h <<_ACEOF
34924#define wxINSTALL_PREFIX "$wxPREFIX"
34925_ACEOF
34926
34927
34928top_builddir_wxconfig=`pwd`
34929
34930
34931
34932CORE_BASE_LIBS="net base"
34933CORE_GUI_LIBS="adv core"
34934
34935if test "$wxUSE_XML" = "yes" ; then
34936 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
34937fi
34938if test "$wxUSE_ODBC" != "no" ; then
34939 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
34940 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
34941fi
34942if test "$wxUSE_HTML" = "yes" ; then
34943 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
34944fi
34945
34946if test "$wxUSE_GUI" != "yes"; then
34947 CORE_GUI_LIBS=""
34948fi
34949
34950
34951
34952
34953
34954
34955
34956
34957if test "$wxUSE_MAC" = 1 ; then
34958 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
34959fi
34960if test "$wxUSE_COCOA" = 1 ; then
34961 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
34962fi
34963
34964
34965LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
34966
34967have_cos=0
34968have_floor=0
34969
34970for ac_func in cos
34971do
34972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34973echo "$as_me:$LINENO: checking for $ac_func" >&5
34974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34975if eval "test \"\${$as_ac_var+set}\" = set"; then
34976 echo $ECHO_N "(cached) $ECHO_C" >&6
34977else
34978 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 34979#line $LINENO "configure"
a848cd7e
SC
34980/* confdefs.h. */
34981_ACEOF
34982cat confdefs.h >>conftest.$ac_ext
34983cat >>conftest.$ac_ext <<_ACEOF
34984/* end confdefs.h. */
a848cd7e
SC
34985/* System header to define __stub macros and hopefully few prototypes,
34986 which can conflict with char $ac_func (); below.
34987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34988 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
34989#ifdef __STDC__
34990# include <limits.h>
34991#else
34992# include <assert.h>
34993#endif
a848cd7e
SC
34994/* Override any gcc2 internal prototype to avoid an error. */
34995#ifdef __cplusplus
34996extern "C"
34997{
34998#endif
34999/* We use char because int might match the return type of a gcc2
35000 builtin and then its argument prototype would still apply. */
35001char $ac_func ();
35002/* The GNU C library defines this for functions which it implements
35003 to always fail with ENOSYS. Some functions are actually named
35004 something starting with __ and the normal name is an alias. */
35005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35006choke me
35007#else
35008char (*f) () = $ac_func;
35009#endif
35010#ifdef __cplusplus
35011}
35012#endif
35013
35014int
35015main ()
35016{
35017return f != $ac_func;
35018 ;
35019 return 0;
35020}
35021_ACEOF
35022rm -f conftest.$ac_objext conftest$ac_exeext
35023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 35024 (eval $ac_link) 2>&5
a848cd7e 35025 ac_status=$?
a848cd7e
SC
35026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35027 (exit $ac_status); } &&
8a7b1113 35028 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35030 (eval $ac_try) 2>&5
35031 ac_status=$?
35032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35033 (exit $ac_status); }; }; then
35034 eval "$as_ac_var=yes"
35035else
35036 echo "$as_me: failed program was:" >&5
35037sed 's/^/| /' conftest.$ac_ext >&5
35038
35039eval "$as_ac_var=no"
35040fi
8a7b1113 35041rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35042fi
35043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35044echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35045if test `eval echo '${'$as_ac_var'}'` = yes; then
35046 cat >>confdefs.h <<_ACEOF
35047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35048_ACEOF
35049 have_cos=1
35050fi
35051done
35052
35053
35054for ac_func in floor
35055do
35056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35057echo "$as_me:$LINENO: checking for $ac_func" >&5
35058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35059if eval "test \"\${$as_ac_var+set}\" = set"; then
35060 echo $ECHO_N "(cached) $ECHO_C" >&6
35061else
35062 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 35063#line $LINENO "configure"
a848cd7e
SC
35064/* confdefs.h. */
35065_ACEOF
35066cat confdefs.h >>conftest.$ac_ext
35067cat >>conftest.$ac_ext <<_ACEOF
35068/* end confdefs.h. */
a848cd7e
SC
35069/* System header to define __stub macros and hopefully few prototypes,
35070 which can conflict with char $ac_func (); below.
35071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35072 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
35073#ifdef __STDC__
35074# include <limits.h>
35075#else
35076# include <assert.h>
35077#endif
a848cd7e
SC
35078/* Override any gcc2 internal prototype to avoid an error. */
35079#ifdef __cplusplus
35080extern "C"
35081{
35082#endif
35083/* We use char because int might match the return type of a gcc2
35084 builtin and then its argument prototype would still apply. */
35085char $ac_func ();
35086/* The GNU C library defines this for functions which it implements
35087 to always fail with ENOSYS. Some functions are actually named
35088 something starting with __ and the normal name is an alias. */
35089#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35090choke me
35091#else
35092char (*f) () = $ac_func;
35093#endif
35094#ifdef __cplusplus
35095}
35096#endif
35097
35098int
35099main ()
35100{
35101return f != $ac_func;
35102 ;
35103 return 0;
35104}
35105_ACEOF
35106rm -f conftest.$ac_objext conftest$ac_exeext
35107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 35108 (eval $ac_link) 2>&5
a848cd7e 35109 ac_status=$?
a848cd7e
SC
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); } &&
8a7b1113 35112 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35114 (eval $ac_try) 2>&5
35115 ac_status=$?
35116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117 (exit $ac_status); }; }; then
35118 eval "$as_ac_var=yes"
35119else
35120 echo "$as_me: failed program was:" >&5
35121sed 's/^/| /' conftest.$ac_ext >&5
35122
35123eval "$as_ac_var=no"
35124fi
8a7b1113 35125rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35126fi
35127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35128echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35129if test `eval echo '${'$as_ac_var'}'` = yes; then
35130 cat >>confdefs.h <<_ACEOF
35131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35132_ACEOF
35133 have_floor=1
35134fi
35135done
35136
35137echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
35138echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
35139if test "$have_cos" = 1 -a "$have_floor" = 1; then
35140 echo "$as_me:$LINENO: result: yes" >&5
35141echo "${ECHO_T}yes" >&6
35142else
35143 echo "$as_me:$LINENO: result: no" >&5
35144echo "${ECHO_T}no" >&6
35145 LIBS="$LIBS -lm"
35146 # use different functions to avoid configure caching
35147 have_sin=0
35148 have_ceil=0
35149
35150for ac_func in sin
35151do
35152as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35153echo "$as_me:$LINENO: checking for $ac_func" >&5
35154echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35155if eval "test \"\${$as_ac_var+set}\" = set"; then
35156 echo $ECHO_N "(cached) $ECHO_C" >&6
35157else
35158 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 35159#line $LINENO "configure"
a848cd7e
SC
35160/* confdefs.h. */
35161_ACEOF
35162cat confdefs.h >>conftest.$ac_ext
35163cat >>conftest.$ac_ext <<_ACEOF
35164/* end confdefs.h. */
a848cd7e
SC
35165/* System header to define __stub macros and hopefully few prototypes,
35166 which can conflict with char $ac_func (); below.
35167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35168 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
35169#ifdef __STDC__
35170# include <limits.h>
35171#else
35172# include <assert.h>
35173#endif
a848cd7e
SC
35174/* Override any gcc2 internal prototype to avoid an error. */
35175#ifdef __cplusplus
35176extern "C"
35177{
35178#endif
35179/* We use char because int might match the return type of a gcc2
35180 builtin and then its argument prototype would still apply. */
35181char $ac_func ();
35182/* The GNU C library defines this for functions which it implements
35183 to always fail with ENOSYS. Some functions are actually named
35184 something starting with __ and the normal name is an alias. */
35185#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35186choke me
35187#else
35188char (*f) () = $ac_func;
35189#endif
35190#ifdef __cplusplus
35191}
35192#endif
35193
35194int
35195main ()
35196{
35197return f != $ac_func;
35198 ;
35199 return 0;
35200}
35201_ACEOF
35202rm -f conftest.$ac_objext conftest$ac_exeext
35203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 35204 (eval $ac_link) 2>&5
a848cd7e 35205 ac_status=$?
a848cd7e
SC
35206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207 (exit $ac_status); } &&
8a7b1113 35208 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35210 (eval $ac_try) 2>&5
35211 ac_status=$?
35212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213 (exit $ac_status); }; }; then
35214 eval "$as_ac_var=yes"
35215else
35216 echo "$as_me: failed program was:" >&5
35217sed 's/^/| /' conftest.$ac_ext >&5
35218
35219eval "$as_ac_var=no"
35220fi
8a7b1113 35221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35222fi
35223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35225if test `eval echo '${'$as_ac_var'}'` = yes; then
35226 cat >>confdefs.h <<_ACEOF
35227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35228_ACEOF
35229 have_sin=1
35230fi
35231done
35232
35233
35234for ac_func in ceil
35235do
35236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35237echo "$as_me:$LINENO: checking for $ac_func" >&5
35238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35239if eval "test \"\${$as_ac_var+set}\" = set"; then
35240 echo $ECHO_N "(cached) $ECHO_C" >&6
35241else
35242 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 35243#line $LINENO "configure"
a848cd7e
SC
35244/* confdefs.h. */
35245_ACEOF
35246cat confdefs.h >>conftest.$ac_ext
35247cat >>conftest.$ac_ext <<_ACEOF
35248/* end confdefs.h. */
a848cd7e
SC
35249/* System header to define __stub macros and hopefully few prototypes,
35250 which can conflict with char $ac_func (); below.
35251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35252 <limits.h> exists even on freestanding compilers. */
a848cd7e
SC
35253#ifdef __STDC__
35254# include <limits.h>
35255#else
35256# include <assert.h>
35257#endif
a848cd7e
SC
35258/* Override any gcc2 internal prototype to avoid an error. */
35259#ifdef __cplusplus
35260extern "C"
35261{
35262#endif
35263/* We use char because int might match the return type of a gcc2
35264 builtin and then its argument prototype would still apply. */
35265char $ac_func ();
35266/* The GNU C library defines this for functions which it implements
35267 to always fail with ENOSYS. Some functions are actually named
35268 something starting with __ and the normal name is an alias. */
35269#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35270choke me
35271#else
35272char (*f) () = $ac_func;
35273#endif
35274#ifdef __cplusplus
35275}
35276#endif
35277
35278int
35279main ()
35280{
35281return f != $ac_func;
35282 ;
35283 return 0;
35284}
35285_ACEOF
35286rm -f conftest.$ac_objext conftest$ac_exeext
35287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a7b1113 35288 (eval $ac_link) 2>&5
a848cd7e 35289 ac_status=$?
a848cd7e
SC
35290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291 (exit $ac_status); } &&
8a7b1113 35292 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35294 (eval $ac_try) 2>&5
35295 ac_status=$?
35296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297 (exit $ac_status); }; }; then
35298 eval "$as_ac_var=yes"
35299else
35300 echo "$as_me: failed program was:" >&5
35301sed 's/^/| /' conftest.$ac_ext >&5
35302
35303eval "$as_ac_var=no"
35304fi
8a7b1113 35305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35306fi
35307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35308echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35309if test `eval echo '${'$as_ac_var'}'` = yes; then
35310 cat >>confdefs.h <<_ACEOF
35311#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35312_ACEOF
35313 have_ceil=1
35314fi
35315done
35316
35317 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
35318echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
35319 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
35320 echo "$as_me:$LINENO: result: yes" >&5
35321echo "${ECHO_T}yes" >&6
35322 else
35323 echo "$as_me:$LINENO: result: no" >&5
35324echo "${ECHO_T}no" >&6
35325 # not sure we should warn the user, crash, etc.
35326 fi
35327fi
35328
35329if test "$wxUSE_GUI" = "yes"; then
35330
35331
35332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
35333 drawing dynamic erase event exec font image \
35334 minimal propsize rotate shaped widgets render"
35335
35336 if test "$wxUSE_MONOLITHIC" != "yes"; then
35337 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
35338 fi
35339else
35340 SAMPLES_SUBDIRS="console"
35341fi
35342
35343
35344INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
35345-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
35346
35347if test "$GXX" = yes ; then
35348 CXXWARNINGS="-Wall"
35349 fi
35350
35351EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
35352
35353CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
35354CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
35355CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
35356
35357
35358LIBS=`echo $LIBS | sed 's/ \+/ /g'`
35359EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
35360EXTRALIBS_XML="$EXPAT_LINK"
35361EXTRALIBS_HTML="$MSPACK_LINK"
35362EXTRALIBS_ODBC="$ODBC_LINK"
35363if test "$wxUSE_GUI" = "yes"; then
35364 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
35365fi
35366if test "$wxUSE_OPENGL" = "yes"; then
35367 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
35368fi
35369
35370LDFLAGS="$LDFLAGS $PROFILE"
35371
35372if test "$wxUSE_GTK" = 1; then
35373 WXCONFIG_INCLUDE=
35374else
35375 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
35376fi
35377
35378WXCONFIG_EXTRALIBS="$LIBS"
35379
35380if test "$wxUSE_REGEX" = "builtin" ; then
35381 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
35382fi
35383if test "$wxUSE_EXPAT" = "builtin" ; then
35384 wxconfig_3rdparty="$wxconfig_3rdparty expat"
35385fi
35386if test "$wxUSE_ODBC" = "builtin" ; then
35387 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
35388fi
35389if test "$wxUSE_LIBTIFF" = "builtin" ; then
35390 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
35391fi
35392if test "$wxUSE_LIBJPEG" = "builtin" ; then
35393 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
35394fi
35395if test "$wxUSE_LIBPNG" = "builtin" ; then
35396 wxconfig_3rdparty="$wxconfig_3rdparty png"
35397fi
35398if test "$wxUSE_ZLIB" = "builtin" ; then
35399 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
35400fi
35401if test "$wxUSE_ODBC" = "builtin" ; then
35402 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
35403fi
35404
35405for i in $wxconfig_3rdparty ; do
35406 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
35407done
35408
35409
35410if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
35411 WXUNIV=1
35412else
35413 WXUNIV=0
35414fi
35415
35416
35417
35418
35419
35420
35421
35422
35423
35424if test $wxUSE_MONOLITHIC = "yes" ; then
35425 MONOLITHIC=1
35426else
35427 MONOLITHIC=0
35428fi
35429
35430if test $wxUSE_PLUGINS = "yes" ; then
35431 USE_PLUGINS=1
35432else
35433 USE_PLUGINS=0
35434fi
35435
35436if test $wxUSE_ODBC != "no" ; then
35437 USE_ODBC=1
35438else
35439 USE_ODBC=0
35440fi
35441
35442if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
35443 OFFICIAL_BUILD=1
35444else
35445 OFFICIAL_BUILD=0
35446fi
35447
35448
35449
35450
35451
35452
35453
35454
35455
35456
35457
35458
35459
35460
35461
35462
35463
35464
35465
35466
35467
35468TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478 if test "x$BAKEFILE_HOST" = "x"; then
35479 BAKEFILE_HOST="${host}"
35480 fi
35481
35482 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
35483
35484 if test -n "$ac_tool_prefix"; then
35485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
35486set dummy ${ac_tool_prefix}ranlib; ac_word=$2
35487echo "$as_me:$LINENO: checking for $ac_word" >&5
35488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35489if test "${ac_cv_prog_RANLIB+set}" = set; then
35490 echo $ECHO_N "(cached) $ECHO_C" >&6
35491else
35492 if test -n "$RANLIB"; then
35493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
35494else
35495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35496for as_dir in $PATH
35497do
35498 IFS=$as_save_IFS
35499 test -z "$as_dir" && as_dir=.
35500 for ac_exec_ext in '' $ac_executable_extensions; do
35501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
35503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35504 break 2
35505 fi
35506done
35507done
35508
35509fi
35510fi
35511RANLIB=$ac_cv_prog_RANLIB
35512if test -n "$RANLIB"; then
35513 echo "$as_me:$LINENO: result: $RANLIB" >&5
35514echo "${ECHO_T}$RANLIB" >&6
35515else
35516 echo "$as_me:$LINENO: result: no" >&5
35517echo "${ECHO_T}no" >&6
35518fi
35519
35520fi
35521if test -z "$ac_cv_prog_RANLIB"; then
35522 ac_ct_RANLIB=$RANLIB
35523 # Extract the first word of "ranlib", so it can be a program name with args.
35524set dummy ranlib; ac_word=$2
35525echo "$as_me:$LINENO: checking for $ac_word" >&5
35526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35527if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
35528 echo $ECHO_N "(cached) $ECHO_C" >&6
35529else
35530 if test -n "$ac_ct_RANLIB"; then
35531 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
35532else
35533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35534for as_dir in $PATH
35535do
35536 IFS=$as_save_IFS
35537 test -z "$as_dir" && as_dir=.
35538 for ac_exec_ext in '' $ac_executable_extensions; do
35539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35540 ac_cv_prog_ac_ct_RANLIB="ranlib"
35541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35542 break 2
35543 fi
35544done
35545done
35546
35547 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
35548fi
35549fi
35550ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
35551if test -n "$ac_ct_RANLIB"; then
35552 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
35553echo "${ECHO_T}$ac_ct_RANLIB" >&6
35554else
35555 echo "$as_me:$LINENO: result: no" >&5
35556echo "${ECHO_T}no" >&6
35557fi
35558
35559 RANLIB=$ac_ct_RANLIB
35560else
35561 RANLIB="$ac_cv_prog_RANLIB"
35562fi
35563
35564 # Find a good install program. We prefer a C program (faster),
35565# so one script is as good as another. But avoid the broken or
35566# incompatible versions:
35567# SysV /etc/install, /usr/sbin/install
35568# SunOS /usr/etc/install
35569# IRIX /sbin/install
35570# AIX /bin/install
35571# AmigaOS /C/install, which installs bootblocks on floppy discs
35572# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
35573# AFS /usr/afsws/bin/install, which mishandles nonexistent args
35574# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a848cd7e
SC
35575# ./install, which can be erroneously created by make from ./install.sh.
35576echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
35577echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
35578if test -z "$INSTALL"; then
35579if test "${ac_cv_path_install+set}" = set; then
35580 echo $ECHO_N "(cached) $ECHO_C" >&6
35581else
35582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35583for as_dir in $PATH
35584do
35585 IFS=$as_save_IFS
35586 test -z "$as_dir" && as_dir=.
35587 # Account for people who put trailing slashes in PATH elements.
35588case $as_dir/ in
35589 ./ | .// | /cC/* | \
35590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a848cd7e
SC
35591 /usr/ucb/* ) ;;
35592 *)
35593 # OSF1 and SCO ODT 3.0 have their own names for install.
35594 # Don't use installbsd from OSF since it installs stuff as root
35595 # by default.
35596 for ac_prog in ginstall scoinst install; do
35597 for ac_exec_ext in '' $ac_executable_extensions; do
8a7b1113
VZ
35598 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
35599 if test $ac_prog = install &&
35600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
35601 # AIX install. It has an incompatible calling convention.
35602 :
35603 elif test $ac_prog = install &&
35604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
35605 # program-specific install script used by HP pwplus--don't use.
35606 :
35607 else
35608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
35609 break 3
35610 fi
35611 fi
a848cd7e
SC
35612 done
35613 done
35614 ;;
35615esac
35616done
35617
35618
35619fi
35620 if test "${ac_cv_path_install+set}" = set; then
35621 INSTALL=$ac_cv_path_install
35622 else
35623 # As a last resort, use the slow shell script. We don't cache a
35624 # path for INSTALL within a source directory, because that will
35625 # break other packages using the cache if that directory is
35626 # removed, or if the path is relative.
35627 INSTALL=$ac_install_sh
35628 fi
35629fi
35630echo "$as_me:$LINENO: result: $INSTALL" >&5
35631echo "${ECHO_T}$INSTALL" >&6
35632
35633# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
35634# It thinks the first close brace ends the variable substitution.
35635test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
35636
35637test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
35638
35639test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
35640
35641 echo "$as_me:$LINENO: checking whether ln -s works" >&5
35642echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
35643LN_S=$as_ln_s
35644if test "$LN_S" = "ln -s"; then
35645 echo "$as_me:$LINENO: result: yes" >&5
35646echo "${ECHO_T}yes" >&6
35647else
35648 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
35649echo "${ECHO_T}no, using $LN_S" >&6
35650fi
35651
35652
35653 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35654echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8a7b1113 35655set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
a848cd7e
SC
35656if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35657 echo $ECHO_N "(cached) $ECHO_C" >&6
35658else
35659 cat >conftest.make <<\_ACEOF
35660all:
35661 @echo 'ac_maketemp="$(MAKE)"'
35662_ACEOF
35663# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35664eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35665if test -n "$ac_maketemp"; then
35666 eval ac_cv_prog_make_${ac_make}_set=yes
35667else
35668 eval ac_cv_prog_make_${ac_make}_set=no
35669fi
35670rm -f conftest.make
35671fi
35672if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35673 echo "$as_me:$LINENO: result: yes" >&5
35674echo "${ECHO_T}yes" >&6
35675 SET_MAKE=
35676else
35677 echo "$as_me:$LINENO: result: no" >&5
35678echo "${ECHO_T}no" >&6
35679 SET_MAKE="MAKE=${MAKE-make}"
35680fi
35681
35682
35683
35684 if test -n "$ac_tool_prefix"; then
35685 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
35686set dummy ${ac_tool_prefix}ar; ac_word=$2
35687echo "$as_me:$LINENO: checking for $ac_word" >&5
35688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35689if test "${ac_cv_prog_AR+set}" = set; then
35690 echo $ECHO_N "(cached) $ECHO_C" >&6
35691else
35692 if test -n "$AR"; then
35693 ac_cv_prog_AR="$AR" # Let the user override the test.
35694else
35695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35696for as_dir in $PATH
35697do
35698 IFS=$as_save_IFS
35699 test -z "$as_dir" && as_dir=.
35700 for ac_exec_ext in '' $ac_executable_extensions; do
35701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35702 ac_cv_prog_AR="${ac_tool_prefix}ar"
35703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35704 break 2
35705 fi
35706done
35707done
35708
35709fi
35710fi
35711AR=$ac_cv_prog_AR
35712if test -n "$AR"; then
35713 echo "$as_me:$LINENO: result: $AR" >&5
35714echo "${ECHO_T}$AR" >&6
35715else
35716 echo "$as_me:$LINENO: result: no" >&5
35717echo "${ECHO_T}no" >&6
35718fi
35719
35720fi
35721if test -z "$ac_cv_prog_AR"; then
35722 ac_ct_AR=$AR
35723 # Extract the first word of "ar", so it can be a program name with args.
35724set dummy ar; ac_word=$2
35725echo "$as_me:$LINENO: checking for $ac_word" >&5
35726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35727if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
35728 echo $ECHO_N "(cached) $ECHO_C" >&6
35729else
35730 if test -n "$ac_ct_AR"; then
35731 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
35732else
35733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35734for as_dir in $PATH
35735do
35736 IFS=$as_save_IFS
35737 test -z "$as_dir" && as_dir=.
35738 for ac_exec_ext in '' $ac_executable_extensions; do
35739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35740 ac_cv_prog_ac_ct_AR="ar"
35741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35742 break 2
35743 fi
35744done
35745done
35746
35747 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
35748fi
35749fi
35750ac_ct_AR=$ac_cv_prog_ac_ct_AR
35751if test -n "$ac_ct_AR"; then
35752 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
35753echo "${ECHO_T}$ac_ct_AR" >&6
35754else
35755 echo "$as_me:$LINENO: result: no" >&5
35756echo "${ECHO_T}no" >&6
35757fi
35758
35759 AR=$ac_ct_AR
35760else
35761 AR="$ac_cv_prog_AR"
35762fi
35763
35764 if test -n "$ac_tool_prefix"; then
35765 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
35766set dummy ${ac_tool_prefix}strip; ac_word=$2
35767echo "$as_me:$LINENO: checking for $ac_word" >&5
35768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35769if test "${ac_cv_prog_STRIP+set}" = set; then
35770 echo $ECHO_N "(cached) $ECHO_C" >&6
35771else
35772 if test -n "$STRIP"; then
35773 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
35774else
35775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35776for as_dir in $PATH
35777do
35778 IFS=$as_save_IFS
35779 test -z "$as_dir" && as_dir=.
35780 for ac_exec_ext in '' $ac_executable_extensions; do
35781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35782 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
35783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35784 break 2
35785 fi
35786done
35787done
35788
35789fi
35790fi
35791STRIP=$ac_cv_prog_STRIP
35792if test -n "$STRIP"; then
35793 echo "$as_me:$LINENO: result: $STRIP" >&5
35794echo "${ECHO_T}$STRIP" >&6
35795else
35796 echo "$as_me:$LINENO: result: no" >&5
35797echo "${ECHO_T}no" >&6
35798fi
35799
35800fi
35801if test -z "$ac_cv_prog_STRIP"; then
35802 ac_ct_STRIP=$STRIP
35803 # Extract the first word of "strip", so it can be a program name with args.
35804set dummy strip; ac_word=$2
35805echo "$as_me:$LINENO: checking for $ac_word" >&5
35806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35807if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
35808 echo $ECHO_N "(cached) $ECHO_C" >&6
35809else
35810 if test -n "$ac_ct_STRIP"; then
35811 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
35812else
35813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35814for as_dir in $PATH
35815do
35816 IFS=$as_save_IFS
35817 test -z "$as_dir" && as_dir=.
35818 for ac_exec_ext in '' $ac_executable_extensions; do
35819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35820 ac_cv_prog_ac_ct_STRIP="strip"
35821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35822 break 2
35823 fi
35824done
35825done
35826
35827 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
35828fi
35829fi
35830ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
35831if test -n "$ac_ct_STRIP"; then
35832 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
35833echo "${ECHO_T}$ac_ct_STRIP" >&6
35834else
35835 echo "$as_me:$LINENO: result: no" >&5
35836echo "${ECHO_T}no" >&6
35837fi
35838
35839 STRIP=$ac_ct_STRIP
35840else
35841 STRIP="$ac_cv_prog_STRIP"
35842fi
35843
35844 if test -n "$ac_tool_prefix"; then
35845 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
35846set dummy ${ac_tool_prefix}nm; ac_word=$2
35847echo "$as_me:$LINENO: checking for $ac_word" >&5
35848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35849if test "${ac_cv_prog_NM+set}" = set; then
35850 echo $ECHO_N "(cached) $ECHO_C" >&6
35851else
35852 if test -n "$NM"; then
35853 ac_cv_prog_NM="$NM" # Let the user override the test.
35854else
35855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35856for as_dir in $PATH
35857do
35858 IFS=$as_save_IFS
35859 test -z "$as_dir" && as_dir=.
35860 for ac_exec_ext in '' $ac_executable_extensions; do
35861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35862 ac_cv_prog_NM="${ac_tool_prefix}nm"
35863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35864 break 2
35865 fi
35866done
35867done
35868
35869fi
35870fi
35871NM=$ac_cv_prog_NM
35872if test -n "$NM"; then
35873 echo "$as_me:$LINENO: result: $NM" >&5
35874echo "${ECHO_T}$NM" >&6
35875else
35876 echo "$as_me:$LINENO: result: no" >&5
35877echo "${ECHO_T}no" >&6
35878fi
35879
35880fi
35881if test -z "$ac_cv_prog_NM"; then
35882 ac_ct_NM=$NM
35883 # Extract the first word of "nm", so it can be a program name with args.
35884set dummy nm; ac_word=$2
35885echo "$as_me:$LINENO: checking for $ac_word" >&5
35886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35887if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
35888 echo $ECHO_N "(cached) $ECHO_C" >&6
35889else
35890 if test -n "$ac_ct_NM"; then
35891 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
35892else
35893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35894for as_dir in $PATH
35895do
35896 IFS=$as_save_IFS
35897 test -z "$as_dir" && as_dir=.
35898 for ac_exec_ext in '' $ac_executable_extensions; do
35899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35900 ac_cv_prog_ac_ct_NM="nm"
35901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35902 break 2
35903 fi
35904done
35905done
35906
35907 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
35908fi
35909fi
35910ac_ct_NM=$ac_cv_prog_ac_ct_NM
35911if test -n "$ac_ct_NM"; then
35912 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
35913echo "${ECHO_T}$ac_ct_NM" >&6
35914else
35915 echo "$as_me:$LINENO: result: no" >&5
35916echo "${ECHO_T}no" >&6
35917fi
35918
35919 NM=$ac_ct_NM
35920else
35921 NM="$ac_cv_prog_NM"
35922fi
35923
35924
35925 case ${BAKEFILE_HOST} in
35926 *-hp-hpux* )
35927 INSTALL_DIR="mkdir"
35928 ;;
35929 *) INSTALL_DIR="$INSTALL -d"
35930 ;;
35931 esac
35932
35933
35934 LDFLAGS_GUI=
35935 case ${BAKEFILE_HOST} in
35936 *-*-cygwin* | *-*-mingw32* )
35937 LDFLAGS_GUI="-mwindows"
35938 esac
35939
35940
35941 fi
35942
35943 echo "$as_me:$LINENO: checking if make is GNU make" >&5
35944echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
35945if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
35946 echo $ECHO_N "(cached) $ECHO_C" >&6
35947else
35948
35949 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
35950 egrep -s GNU > /dev/null); then
35951 bakefile_cv_prog_makeisgnu="yes"
35952 else
35953 bakefile_cv_prog_makeisgnu="no"
35954 fi
35955
35956fi
35957echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
35958echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
35959
35960 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
35961 IF_GNU_MAKE=""
35962 else
35963 IF_GNU_MAKE="#"
35964 fi
35965
35966
35967
35968 PLATFORM_UNIX=0
35969 PLATFORM_WIN32=0
35970 PLATFORM_MSDOS=0
35971 PLATFORM_MAC=0
35972 PLATFORM_MACOSX=0
35973 PLATFORM_OS2=0
35974
35975 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
35976 case "${BAKEFILE_HOST}" in
35977 *-*-cygwin* | *-*-mingw32* )
35978 PLATFORM_WIN32=1
35979 ;;
35980 *-pc-msdosdjgpp )
35981 PLATFORM_MSDOS=1
35982 ;;
35983 *-pc-os2_emx | *-pc-os2-emx )
35984 PLATFORM_OS2=1
35985 ;;
35986 powerpc-*-darwin* )
35987 PLATFORM_MAC=1
35988 PLATFORM_MACOSX=1
35989 ;;
35990 * )
35991 PLATFORM_UNIX=1
35992 ;;
35993 esac
35994 else
35995 case "$BAKEFILE_FORCE_PLATFORM" in
35996 win32 )
35997 PLATFORM_WIN32=1
35998 ;;
35999 msdos )
36000 PLATFORM_MSDOS=1
36001 ;;
36002 os2 )
36003 PLATFORM_OS2=1
36004 ;;
36005 darwin )
36006 PLATFORM_MAC=1
36007 PLATFORM_MACOSX=1
36008 ;;
36009 unix )
36010 PLATFORM_UNIX=1
36011 ;;
36012 * )
36013 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
36014echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
36015 { (exit 1); exit 1; }; }
36016 ;;
36017 esac
36018 fi
36019
36020
36021
36022
36023
36024
36025
36026
36027
36028 # Check whether --enable-omf or --disable-omf was given.
36029if test "${enable_omf+set}" = set; then
36030 enableval="$enable_omf"
36031 bk_os2_use_omf="$enableval"
36032fi;
36033
36034 case "${BAKEFILE_HOST}" in
36035 *-*-darwin* )
36036 CFLAGS="$CFLAGS -fno-common"
36037 CXXFLAGS="$CXXFLAGS -fno-common"
36038 ;;
36039
36040 *-pc-os2_emx | *-pc-os2-emx )
36041 if test "x$bk_os2_use_omf" = "xyes" ; then
36042 AR=emxomfar
36043 RANLIB=:
36044 LDFLAGS="-Zomf $LDFLAGS"
36045 CFLAGS="-Zomf $CFLAGS"
36046 CXXFLAGS="-Zomf $CXXFLAGS"
36047 OS2_LIBEXT="lib"
36048 else
36049 OS2_LIBEXT="a"
36050 fi
36051 ;;
36052 esac
36053
36054
36055 SO_SUFFIX="so"
36056 SO_SUFFIX_MODULE="so"
36057 EXEEXT=""
36058 LIBPREFIX="lib"
36059 LIBEXT=".a"
36060 DLLPREFIX="lib"
36061 DLLPREFIX_MODULE=""
36062 DLLIMP_SUFFIX=""
36063
36064 case "${BAKEFILE_HOST}" in
36065 *-hp-hpux* )
36066 SO_SUFFIX="sl"
36067 SO_SUFFIX_MODULE="sl"
36068 ;;
36069 *-*-aix* )
36070 SO_SUFFIX="a"
36071 SO_SUFFIX_MODULE="a"
36072 ;;
36073 *-*-cygwin* | *-*-mingw32* )
36074 SO_SUFFIX="dll"
36075 SO_SUFFIX_MODULE="dll"
36076 DLLIMP_SUFFIX="dll.a"
36077 EXEEXT=".exe"
36078 DLLPREFIX=""
36079 ;;
36080 *-pc-msdosdjgpp )
36081 EXEEXT=".exe"
36082 DLLPREFIX=""
36083 ;;
36084 *-pc-os2_emx | *-pc-os2-emx )
36085 SO_SUFFIX="dll"
36086 SO_SUFFIX_MODULE="dll"
36087 DLLIMP_SUFFIX=$OS2_LIBEXT
36088 EXEEXT=".exe"
36089 DLLPREFIX=""
36090 LIBPREFIX=""
36091 LIBEXT=".$OS2_LIBEXT"
36092 ;;
36093 powerpc-*-darwin* )
36094 SO_SUFFIX="dylib"
36095 SO_SUFFIX_MODULE="bundle"
36096 ;;
36097 esac
36098
36099 if test "x$DLLIMP_SUFFIX" = "x" ; then
36100 DLLIMP_SUFFIX="$SO_SUFFIX"
36101 fi
36102
36103
36104
36105
36106
36107
36108
36109
36110
36111
36112
36113 SHARED_LD_CC="\$(CC) -shared -o"
36114 SHARED_LD_CXX="\$(CXX) -shared -o"
36115
36116 if test "x$GCC" = "xyes"; then
36117 PIC_FLAG="-fPIC"
36118 fi
36119
36120 case "${BAKEFILE_HOST}" in
36121 *-hp-hpux* )
36122 if test "x$GCC" = "xyes"; then
36123 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
36124 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
36125 else
36126 LDFLAGS="$LDFLAGS -L/usr/lib"
36127
36128 SHARED_LD_CC="${CC} -b -o"
36129 SHARED_LD_CXX="${CXX} -b -o"
36130 PIC_FLAG="+Z"
36131 fi
36132 ;;
36133
36134 *-*-linux* )
36135 if test "x$GCC" != "xyes"; then
36136 echo "$as_me:$LINENO: checking for Intel compiler" >&5
36137echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
36138if test "${bakefile_cv_prog_icc+set}" = set; then
36139 echo $ECHO_N "(cached) $ECHO_C" >&6
36140else
36141
36142 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 36143#line $LINENO "configure"
a848cd7e
SC
36144/* confdefs.h. */
36145_ACEOF
36146cat confdefs.h >>conftest.$ac_ext
36147cat >>conftest.$ac_ext <<_ACEOF
36148/* end confdefs.h. */
36149
36150int
36151main ()
36152{
36153
36154 #ifndef __INTEL_COMPILER
36155 #error Not icc
36156 #endif
36157
36158 ;
36159 return 0;
36160}
36161_ACEOF
36162rm -f conftest.$ac_objext
36163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 36164 (eval $ac_compile) 2>&5
a848cd7e 36165 ac_status=$?
a848cd7e
SC
36166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36167 (exit $ac_status); } &&
8a7b1113 36168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36170 (eval $ac_try) 2>&5
36171 ac_status=$?
36172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173 (exit $ac_status); }; }; then
36174 bakefile_cv_prog_icc=yes
36175else
36176 echo "$as_me: failed program was:" >&5
36177sed 's/^/| /' conftest.$ac_ext >&5
36178
36179bakefile_cv_prog_icc=no
36180
36181fi
8a7b1113 36182rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36183
36184fi
36185echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
36186echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
36187 if test "$bakefile_cv_prog_icc" = "yes"; then
36188 PIC_FLAG="-KPIC"
36189 fi
36190 fi
36191 ;;
36192
36193 *-*-solaris2* )
36194 if test "x$GCC" != xyes ; then
36195 SHARED_LD_CC="${CC} -G -o"
36196 SHARED_LD_CXX="${CXX} -G -o"
36197 PIC_FLAG="-KPIC"
36198 fi
36199 ;;
36200
36201 *-*-darwin* )
36202
36203 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
36204echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
36205if test "${wx_cv_gcc31+set}" = set; then
36206 echo $ECHO_N "(cached) $ECHO_C" >&6
36207else
36208
36209 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 36210#line $LINENO "configure"
a848cd7e
SC
36211/* confdefs.h. */
36212_ACEOF
36213cat confdefs.h >>conftest.$ac_ext
36214cat >>conftest.$ac_ext <<_ACEOF
36215/* end confdefs.h. */
36216
36217int
36218main ()
36219{
36220
36221 #if (__GNUC__ < 3) || \
36222 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
36223 #error old gcc
36224 #endif
36225
36226 ;
36227 return 0;
36228}
36229_ACEOF
36230rm -f conftest.$ac_objext
36231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 36232 (eval $ac_compile) 2>&5
a848cd7e 36233 ac_status=$?
a848cd7e
SC
36234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235 (exit $ac_status); } &&
8a7b1113 36236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36238 (eval $ac_try) 2>&5
36239 ac_status=$?
36240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241 (exit $ac_status); }; }; then
36242
36243 wx_cv_gcc31=yes
36244
36245else
36246 echo "$as_me: failed program was:" >&5
36247sed 's/^/| /' conftest.$ac_ext >&5
36248
36249
36250 wx_cv_gcc31=no
36251
36252
36253fi
8a7b1113 36254rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36255
36256fi
36257echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
36258echo "${ECHO_T}$wx_cv_gcc31" >&6
36259 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
36260
36261D='$'
36262cat <<EOF >shared-ld-sh
a848cd7e
SC
36263#!/bin/sh
36264#-----------------------------------------------------------------------------
36265#-- Name: distrib/mac/shared-ld-sh
36266#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
36267#-- Author: Gilles Depeyrot
36268#-- Copyright: (c) 2002 Gilles Depeyrot
36269#-- Licence: any use permitted
36270#-----------------------------------------------------------------------------
36271
36272verbose=0
36273args=""
36274objects=""
36275linking_flag="-dynamiclib"
36276
473276a9
VS
36277while test ${D}# -gt 0; do
36278 case ${D}1 in
a848cd7e
SC
36279
36280 -v)
36281 verbose=1
36282 ;;
36283
36284 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
36285 # collect these options and values
473276a9 36286 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
36287 shift
36288 ;;
36289
36290 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
36291 # collect these options
473276a9 36292 args="${D}{args} ${D}1"
a848cd7e
SC
36293 ;;
36294
36295 -dynamiclib|-bundle)
473276a9 36296 linking_flag="${D}1"
a848cd7e
SC
36297 ;;
36298
36299 -*)
473276a9 36300 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
36301 exit 1
36302 ;;
36303
36304 *.o | *.a | *.dylib)
36305 # collect object files
473276a9 36306 objects="${D}{objects} ${D}1"
a848cd7e
SC
36307 ;;
36308
36309 *)
473276a9 36310 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
36311 exit 1
36312 ;;
36313
36314 esac
36315 shift
36316done
36317
36318#
36319# Link one module containing all the others
36320#
473276a9
VS
36321if test ${D}{verbose} = 1; then
36322 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 36323fi
473276a9
VS
36324c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
36325status=${D}?
36326if test ${D}{status} != 0; then
36327 exit ${D}{status}
a848cd7e
SC
36328fi
36329
36330#
36331# Link the shared library from the single module created
36332#
473276a9
VS
36333if test ${D}{verbose} = 1; then
36334 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 36335fi
473276a9
VS
36336c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
36337status=${D}?
36338if test ${D}{status} != 0; then
36339 exit ${D}{status}
a848cd7e
SC
36340fi
36341
36342#
36343# Remove intermediate module
36344#
473276a9 36345rm -f master.${D}${D}.o
a848cd7e
SC
36346
36347exit 0
36348EOF
473276a9 36349
a848cd7e
SC
36350 chmod +x shared-ld-sh
36351
36352 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
36353 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
36354 SHARED_LD_CXX="$SHARED_LD_CC"
36355 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
36356 else
36357 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
36358 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
36359 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
36360 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
36361 fi
36362
36363 PIC_FLAG="-dynamic -fPIC"
36364 ;;
36365
36366 *-*-aix* )
36367 if test "x$GCC" != "xyes"; then
36368 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
36369set dummy makeC++SharedLib; ac_word=$2
36370echo "$as_me:$LINENO: checking for $ac_word" >&5
36371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36372if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
36373 echo $ECHO_N "(cached) $ECHO_C" >&6
36374else
36375 if test -n "$AIX_CXX_LD"; then
36376 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
36377else
36378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36379for as_dir in $PATH
36380do
36381 IFS=$as_save_IFS
36382 test -z "$as_dir" && as_dir=.
36383 for ac_exec_ext in '' $ac_executable_extensions; do
36384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36385 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
36386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36387 break 2
36388 fi
36389done
36390done
36391
36392 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
36393fi
36394fi
36395AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
36396if test -n "$AIX_CXX_LD"; then
36397 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
36398echo "${ECHO_T}$AIX_CXX_LD" >&6
36399else
36400 echo "$as_me:$LINENO: result: no" >&5
36401echo "${ECHO_T}no" >&6
36402fi
36403
36404 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
36405 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
36406 fi
36407 ;;
36408
36409 *-*-beos* )
36410 SHARED_LD_CC="${LD} -shared -o"
36411 SHARED_LD_CXX="${LD} -shared -o"
36412 ;;
36413
36414 *-*-irix* )
36415 if test "x$GCC" != "xyes"; then
36416 PIC_FLAG="-KPIC"
36417 fi
36418 ;;
36419
36420 *-*-cygwin* | *-*-mingw32* )
36421 PIC_FLAG=""
36422 ;;
36423
36424 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
36425 SHARED_LD_CC="`pwd`/dllar.sh -o"
36426 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 36427 PIC_FLAG=""
473276a9
VS
36428
36429D='$'
36430cat <<EOF >dllar.sh
36431#!/bin/sh
36432#
36433# dllar - a tool to build both a .dll and an .a file
36434# from a set of object (.o) files for EMX/OS2.
36435#
36436# Written by Andrew Zabolotny, bit@freya.etu.ru
36437# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
36438#
36439# This script will accept a set of files on the command line.
36440# All the public symbols from the .o files will be exported into
36441# a .DEF file, then linker will be run (through gcc) against them to
36442# build a shared library consisting of all given .o files. All libraries
36443# (.a) will be first decompressed into component .o files then act as
36444# described above. You can optionally give a description (-d "description")
36445# which will be put into .DLL. To see the list of accepted options (as well
36446# as command-line format) simply run this program without options. The .DLL
36447# is built to be imported by name (there is no guarantee that new versions
36448# of the library you build will have same ordinals for same symbols).
36449#
36450# dllar is free software; you can redistribute it and/or modify
36451# it under the terms of the GNU General Public License as published by
36452# the Free Software Foundation; either version 2, or (at your option)
36453# any later version.
36454#
36455# dllar is distributed in the hope that it will be useful,
36456# but WITHOUT ANY WARRANTY; without even the implied warranty of
36457# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36458# GNU General Public License for more details.
36459#
36460# You should have received a copy of the GNU General Public License
36461# along with dllar; see the file COPYING. If not, write to the Free
36462# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
36463# 02111-1307, USA.
36464
36465# To successfuly run this program you will need:
36466# - Current drive should have LFN support (HPFS, ext2, network, etc)
36467# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
36468# - gcc
36469# (used to build the .dll)
36470# - emxexp
36471# (used to create .def file from .o files)
36472# - emximp
36473# (used to create .a file from .def file)
36474# - GNU text utilites (cat, sort, uniq)
36475# used to process emxexp output
36476# - GNU file utilities (mv, rm)
36477# - GNU sed
36478# - lxlite (optional, see flag below)
36479# (used for general .dll cleanup)
36480#
36481
36482flag_USE_LXLITE=1;
36483
36484#
36485# helper functions
36486# basnam, variant of basename, which does _not_ remove the path, _iff_
36487# second argument (suffix to remove) is given
36488basnam(){
36489 case ${D}# in
36490 1)
36491 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
36492 ;;
36493 2)
36494 echo ${D}1 | sed 's/'${D}2'${D}//'
36495 ;;
36496 *)
36497 echo "error in basnam ${D}*"
36498 exit 8
36499 ;;
36500 esac
36501}
36502
36503# Cleanup temporary files and output
36504CleanUp() {
36505 cd ${D}curDir
36506 for i in ${D}inputFiles ; do
36507 case ${D}i in
36508 *!)
36509 rm -rf \`basnam ${D}i !\`
36510 ;;
36511 *)
36512 ;;
36513 esac
36514 done
36515
36516 # Kill result in case of failure as there is just to many stupid make/nmake
36517 # things out there which doesn't do this.
36518 if ${D}# -eq 0 ; then
36519 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
36520 fi
36521}
36522
36523# Print usage and exit script with rc=1.
36524PrintHelp() {
36525 echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name'
36526 echo ' -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"'
36527 echo ' -ord[inals] -exclude "symbol(s)"'
36528 echo ' -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]'
36529 echo ' *.o *.a'
36530 echo '*> "output_file" should have no extension.'
36531 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
36532 echo ' The import library name is derived from this and is set to "name".a,'
36533 echo ' unless overridden by -import'
36534 echo '*> "importlib_name" should have no extension.'
36535 echo ' If it has the .o, or .a extension, it is automatically removed.'
36536 echo ' This name is used as the import library name and may be longer and'
36537 echo ' more descriptive than the DLL name which has to follow the old '
36538 echo ' 8.3 convention of FAT.'
36539 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
36540 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
36541 echo ' These flags will be put at the start of GCC command line.'
36542 echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.'
36543 echo '*> -exclude defines symbols which will not be exported. You can define'
36544 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
36545 echo ' If the last character of a symbol is "*", all symbols beginning'
36546 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
36547 echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or'
36548 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
36549 echo '*> -nocrtdll switch will disable linking the library against emx''s'
36550 echo ' C runtime DLLs.'
36551 echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.'
36552 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
36553 echo ' unchanged to GCC at the end of command line.'
36554 echo '*> If you create a DLL from a library and you do not specify -o,'
36555 echo ' the basename for DLL and import library will be set to library name,'
36556 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
36557 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
36558 echo ' library will be renamed into gcc_s.a.'
36559 echo '--------'
36560 echo 'Example:'
36561 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
36562 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
36563 CleanUp
36564 exit 1
36565}
36566
36567# Execute a command.
36568# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
36569# @Uses Whatever CleanUp() uses.
36570doCommand() {
36571 echo "${D}*"
36572 eval ${D}*
36573 rcCmd=${D}?
36574
36575 if ${D}rcCmd -ne 0 ; then
36576 echo "command failed, exit code="${D}rcCmd
36577 CleanUp
36578 exit ${D}rcCmd
36579 fi
36580}
36581
36582# main routine
36583# setup globals
36584cmdLine=${D}*
36585outFile=""
36586outimpFile=""
36587inputFiles=""
36588description=""
36589CC=gcc.exe
36590CFLAGS="-s -Zcrtdll"
36591EXTRA_CFLAGS=""
36592EXPORT_BY_ORDINALS=0
36593exclude_symbols=""
36594library_flags=""
36595curDir=\`pwd\`
36596curDirS=curDir
36597case ${D}curDirS in
36598*/)
36599 ;;
36600*)
36601 curDirS=${D}{curDirS}"/"
36602 ;;
36603esac
36604# Parse commandline
36605libsToLink=0
36606while ${D}1 ; do
36607 case ${D}1 in
36608 -ord*)
36609 EXPORT_BY_ORDINALS=1;
36610 ;;
36611 -o*)
36612 shift
36613 outFile=${D}1
36614 ;;
36615 -i*)
36616 shift
36617 outimpFile=${D}1
36618 ;;
36619 -d*)
36620 shift
36621 description=${D}1
36622 ;;
36623 -f*)
36624 shift
36625 CFLAGS=${D}1
36626 ;;
36627 -c*)
36628 shift
36629 CC=${D}1
36630 ;;
36631 -h*)
36632 PrintHelp
36633 ;;
36634 -ex*)
36635 shift
36636 exclude_symbols=${D}{exclude_symbols}${D}1" "
36637 ;;
36638 -libf*)
36639 shift
36640 library_flags=${D}{library_flags}${D}1" "
36641 ;;
36642 -nocrt*)
36643 CFLAGS="-s"
36644 ;;
36645 -nolxl*)
36646 flag_USE_LXLITE=0
36647 ;;
36648 -* | /*)
36649 case ${D}1 in
36650 -L* | -l*)
36651 libsToLink=1
36652 ;;
36653 *)
36654 ;;
36655 esac
36656 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
36657 ;;
36658 *)
36659 found=0;
36660 if ${D}libsToLink -ne 0 ; then
36661 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
36662 else
36663 for file in ${D}1 ; do
36664 if -f ${D}file ; then
36665 inputFiles="${D}{inputFiles} ${D}file"
36666 found=1
36667 fi
36668 done
36669 if ${D}found -eq 0 ; then
36670 echo "ERROR: No file(s) found: "${D}1
36671 exit 8
36672 fi
36673 fi
36674 ;;
36675 esac
36676 shift
36677done # iterate cmdline words
36678
36679#
36680if -z "${D}inputFiles" ; then
36681 echo "dllar: no input files"
36682 PrintHelp
36683fi
36684
36685# Now extract all .o files from .a files
36686newInputFiles=""
36687for file in ${D}inputFiles ; do
36688 case ${D}file in
36689 *.a | *.lib)
36690 case ${D}file in
36691 *.a)
36692 suffix=".a"
36693 AR="ar"
36694 ;;
36695 *.lib)
36696 suffix=".lib"
36697 AR="emxomfar"
36698 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
36699 ;;
36700 *)
36701 ;;
36702 esac
36703 dirname=\`basnam ${D}file ${D}suffix\`"_%"
36704 mkdir ${D}dirname
36705 if ${D}? -ne 0 ; then
36706 echo "Failed to create subdirectory ./${D}dirname"
36707 CleanUp
36708 exit 8;
36709 fi
36710 # Append '!' to indicate archive
36711 newInputFiles="${D}newInputFiles ${D}{dirname}!"
36712 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
36713 cd ${D}curDir
36714 found=0;
36715 for subfile in ${D}dirname/*.o* ; do
36716 if -f ${D}subfile ; then
36717 found=1
36718 if -s ${D}subfile ; then
36719 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
36720 newInputFiles="${D}newInputFiles ${D}subfile"
36721 fi
36722 fi
36723 done
36724 if ${D}found -eq 0 ; then
36725 echo "WARNING: there are no files in archive \'${D}file\'"
36726 fi
36727 ;;
36728 *)
36729 newInputFiles="${D}{newInputFiles} ${D}file"
36730 ;;
36731 esac
36732done
36733inputFiles="${D}newInputFiles"
36734
36735# Output filename(s).
36736do_backup=0;
36737if -z ${D}outFile ; then
36738 do_backup=1;
36739 set outFile ${D}inputFiles; outFile=${D}2
36740fi
36741
36742# If it is an archive, remove the '!' and the '_%' suffixes
36743case ${D}outFile in
36744*_%!)
36745 outFile=\`basnam ${D}outFile _%!\`
36746 ;;
36747*)
36748 ;;
36749esac
36750case ${D}outFile in
36751*.dll)
36752 outFile=\`basnam ${D}outFile .dll\`
36753 ;;
36754*.DLL)
36755 outFile=\`basnam ${D}outFile .DLL\`
36756 ;;
36757*.o)
36758 outFile=\`basnam ${D}outFile .o\`
36759 ;;
36760*.obj)
36761 outFile=\`basnam ${D}outFile .obj\`
36762 ;;
36763*.a)
36764 outFile=\`basnam ${D}outFile .a\`
36765 ;;
36766*.lib)
36767 outFile=\`basnam ${D}outFile .lib\`
36768 ;;
36769*)
36770 ;;
36771esac
36772case ${D}outimpFile in
36773*.a)
36774 outimpFile=\`basnam ${D}outimpFile .a\`
36775 ;;
36776*.lib)
36777 outimpFile=\`basnam ${D}outimpFile .lib\`
36778 ;;
36779*)
36780 ;;
36781esac
36782if -z ${D}outimpFile ; then
36783 outimpFile=${D}outFile
36784fi
36785defFile="${D}{outFile}.def"
36786arcFile="${D}{outimpFile}.a"
36787arcFile2="${D}{outimpFile}.lib"
36788dllFile="${D}outFile"
36789# Add suffix to dllFile later, first we need a version to use as
36790# name in .def file.
36791
36792if ${D}do_backup -ne 0 ; then
36793 if -f ${D}arcFile ; then
36794 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
36795 fi
36796 if -f ${D}arcFile2 ; then
36797 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
36798 fi
36799fi
36800
36801# Extract public symbols from all the object files.
36802tmpdefFile=${D}{defFile}_%
36803rm -f ${D}tmpdefFile
36804for file in ${D}inputFiles ; do
36805 case ${D}file in
36806 *!)
36807 ;;
36808 *)
36809 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
36810 ;;
36811 esac
36812done
36813
36814# Create the def file.
36815rm -f ${D}defFile
36816echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
36817dllFile="${D}dllFile.dll"
36818if -n ${D}description ; then
36819 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
36820fi
36821echo "EXPORTS" >> ${D}defFile
36822
36823doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
36824grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
36825
36826# Checks if the export is ok or not.
36827for word in ${D}exclude_symbols; do
36828 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
36829 mv ${D}{tmpdefFile}% ${D}tmpdefFile
36830done
36831
36832
36833if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
36834 sed "=" < ${D}tmpdefFile | \
36835 sed '
36836 N
36837 : loop
36838 s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/
36839 t loop
36840 ' > ${D}{tmpdefFile}%
36841 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
36842else
36843 rm -f ${D}{tmpdefFile}%
36844fi
36845cat ${D}tmpdefFile >> ${D}defFile
36846rm -f ${D}tmpdefFile
36847
36848# Do linking, create implib, and apply lxlite.
36849gccCmdl="";
36850for file in ${D}inputFiles ; do
36851 case ${D}file in
36852 *!)
36853 ;;
36854 *)
36855 gccCmdl="${D}gccCmdl ${D}file"
36856 ;;
36857 esac
36858done
36859doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
36860touch "${D}{outFile}.dll"
36861
36862doCommand "emximp -o ${D}arcFile ${D}defFile"
36863if ${D}flag_USE_LXLITE -ne 0 ; then
36864 add_flags="";
36865 if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
36866 add_flags="-ynd"
36867 fi
36868 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
36869fi
36870doCommand "emxomf -s -l ${D}arcFile"
36871
36872# Successful exit.
36873CleanUp 1
36874exit 0
36875EOF
36876
36877 chmod +x dllar.sh
a848cd7e
SC
36878 ;;
36879
36880 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
36881 *-*-sunos4* | \
36882 *-*-osf* | \
36883 *-*-dgux5* | \
36884 *-*-sysv5* )
36885 ;;
36886
36887 *)
36888 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
36889echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
36890 { (exit 1); exit 1; }; }
36891 esac
36892
36893 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
36894 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
36895 fi
36896 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
36897 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
36898 fi
36899
36900
36901
36902
36903
36904
36905
36906
36907 USE_SOVERSION=0
36908 USE_SOVERLINUX=0
36909 USE_SOVERSOLARIS=0
36910 USE_SOSYMLINKS=0
36911 USE_MACVERSION=0
36912 SONAME_FLAG=
36913
36914 case "${BAKEFILE_HOST}" in
36915 *-*-linux* )
36916 SONAME_FLAG="-Wl,-soname,"
36917 USE_SOVERSION=1
36918 USE_SOVERLINUX=1
36919 USE_SOSYMLINKS=1
36920 ;;
36921
36922 *-*-solaris2* )
36923 SONAME_FLAG="-h "
36924 USE_SOVERSION=1
36925 USE_SOVERSOLARIS=1
36926 USE_SOSYMLINKS=1
36927 ;;
36928
36929 *-*-darwin* )
36930 USE_MACVERSION=1
36931 USE_SOVERSION=1
36932 USE_SOSYMLINKS=1
36933 ;;
36934 esac
36935
36936
36937
36938
36939
36940
36941
36942
36943
36944 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
36945echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
36946 DEPS_TRACKING=0
36947
36948 if test "x$GCC" = "xyes"; then
36949 DEPSMODE=gcc
36950 DEPS_TRACKING=1
36951 case "${BAKEFILE_HOST}" in
36952 powerpc-*-darwin* )
36953 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
36954 ;;
36955 * )
36956 DEPSFLAG_GCC="-MMD"
36957 ;;
36958 esac
36959 echo "$as_me:$LINENO: result: gcc" >&5
36960echo "${ECHO_T}gcc" >&6
36961 else
36962 echo "$as_me:$LINENO: result: none" >&5
36963echo "${ECHO_T}none" >&6
36964 fi
36965
36966 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
36967
36968D='$'
36969cat <<EOF >bk-deps
a848cd7e
SC
36970#!/bin/sh
36971
36972# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
36973# script. It is used to track C/C++ files dependencies in portable way.
36974#
36975# Permission is given to use this file in any way.
36976
473276a9 36977DEPSMODE=${DEPSMODE}
a848cd7e 36978DEPSDIR=.deps
473276a9 36979DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 36980
473276a9 36981mkdir -p ${D}DEPSDIR
a848cd7e 36982
473276a9
VS
36983if test ${D}DEPSMODE = gcc ; then
36984 ${D}* ${D}{DEPSFLAG_GCC}
36985 status=${D}?
36986 if test ${D}{status} != 0 ; then
36987 exit ${D}{status}
a848cd7e
SC
36988 fi
36989 # move created file to the location we want it in:
473276a9
VS
36990 while test ${D}# -gt 0; do
36991 case "${D}1" in
a848cd7e
SC
36992 -o )
36993 shift
473276a9 36994 objfile=${D}1
a848cd7e
SC
36995 ;;
36996 -* )
36997 ;;
36998 * )
473276a9 36999 srcfile=${D}1
a848cd7e
SC
37000 ;;
37001 esac
37002 shift
37003 done
473276a9
VS
37004 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
37005 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
37006 if test -f ${D}depfile ; then
37007 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
37008 rm -f ${D}depfile
a848cd7e 37009 else
473276a9
VS
37010 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
37011 if test -f ${D}depfile ; then
37012 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
37013 rm -f ${D}depfile
a848cd7e
SC
37014 fi
37015 fi
37016 exit 0
37017else
473276a9
VS
37018 ${D}*
37019 exit ${D}?
a848cd7e
SC
37020fi
37021EOF
473276a9 37022
a848cd7e
SC
37023 chmod +x bk-deps
37024 fi
37025
37026
37027
37028
37029 RESCOMP=
37030 SETFILE=
37031
37032 case ${BAKEFILE_HOST} in
37033 *-*-cygwin* | *-*-mingw32* )
37034 if test "$build" != "$host" ; then
37035 RESCOMP=$host_alias-windres
37036 else
37037 # Extract the first word of "windres", so it can be a program name with args.
37038set dummy windres; ac_word=$2
37039echo "$as_me:$LINENO: checking for $ac_word" >&5
37040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37041if test "${ac_cv_prog_RESCOMP+set}" = set; then
37042 echo $ECHO_N "(cached) $ECHO_C" >&6
37043else
37044 if test -n "$RESCOMP"; then
37045 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37046else
37047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37048for as_dir in $PATH
37049do
37050 IFS=$as_save_IFS
37051 test -z "$as_dir" && as_dir=.
37052 for ac_exec_ext in '' $ac_executable_extensions; do
37053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37054 ac_cv_prog_RESCOMP="windres"
37055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37056 break 2
37057 fi
37058done
37059done
37060
37061 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
37062fi
37063fi
37064RESCOMP=$ac_cv_prog_RESCOMP
37065if test -n "$RESCOMP"; then
37066 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37067echo "${ECHO_T}$RESCOMP" >&6
37068else
37069 echo "$as_me:$LINENO: result: no" >&5
37070echo "${ECHO_T}no" >&6
37071fi
37072
37073 fi
37074 ;;
37075
37076 *-*-darwin* )
37077 # Extract the first word of "Rez", so it can be a program name with args.
37078set dummy Rez; ac_word=$2
37079echo "$as_me:$LINENO: checking for $ac_word" >&5
37080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37081if test "${ac_cv_prog_RESCOMP+set}" = set; then
37082 echo $ECHO_N "(cached) $ECHO_C" >&6
37083else
37084 if test -n "$RESCOMP"; then
37085 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37086else
37087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37088for as_dir in $PATH
37089do
37090 IFS=$as_save_IFS
37091 test -z "$as_dir" && as_dir=.
37092 for ac_exec_ext in '' $ac_executable_extensions; do
37093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37094 ac_cv_prog_RESCOMP="Rez"
37095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37096 break 2
37097 fi
37098done
37099done
37100
37101 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
37102fi
37103fi
37104RESCOMP=$ac_cv_prog_RESCOMP
37105if test -n "$RESCOMP"; then
37106 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37107echo "${ECHO_T}$RESCOMP" >&6
37108else
37109 echo "$as_me:$LINENO: result: no" >&5
37110echo "${ECHO_T}no" >&6
37111fi
37112
37113 # Extract the first word of "SetFile", so it can be a program name with args.
37114set dummy SetFile; ac_word=$2
37115echo "$as_me:$LINENO: checking for $ac_word" >&5
37116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37117if test "${ac_cv_prog_SETFILE+set}" = set; then
37118 echo $ECHO_N "(cached) $ECHO_C" >&6
37119else
37120 if test -n "$SETFILE"; then
37121 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
37122else
37123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37124for as_dir in $PATH
37125do
37126 IFS=$as_save_IFS
37127 test -z "$as_dir" && as_dir=.
37128 for ac_exec_ext in '' $ac_executable_extensions; do
37129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37130 ac_cv_prog_SETFILE="SetFile"
37131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37132 break 2
37133 fi
37134done
37135done
37136
37137 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
37138fi
37139fi
37140SETFILE=$ac_cv_prog_SETFILE
37141if test -n "$SETFILE"; then
37142 echo "$as_me:$LINENO: result: $SETFILE" >&5
37143echo "${ECHO_T}$SETFILE" >&6
37144else
37145 echo "$as_me:$LINENO: result: no" >&5
37146echo "${ECHO_T}no" >&6
37147fi
37148
37149 ;;
37150 esac
37151
37152
37153
37154
37155
37156
dcc1b6ad
VS
37157BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
37158
37159
a848cd7e 37160
a848cd7e
SC
37161 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
37162if test "${enable_precomp_headers+set}" = set; then
37163 enableval="$enable_precomp_headers"
37164 bk_use_pch="$enableval"
37165fi;
37166
37167 GCC_PCH=0
37168
37169 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
37170 if test "x$GCC" = "xyes"; then
37171 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
37172echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
37173 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 37174#line $LINENO "configure"
a848cd7e
SC
37175/* confdefs.h. */
37176_ACEOF
37177cat confdefs.h >>conftest.$ac_ext
37178cat >>conftest.$ac_ext <<_ACEOF
37179/* end confdefs.h. */
37180
37181int
37182main ()
37183{
37184
37185 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
37186 #error "no pch support"
37187 #endif
37188 #if (__GNUC__ < 3)
37189 #error "no pch support"
37190 #endif
37191 #if (__GNUC__ == 3) && \
37192 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
37193 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
37194 #error "no pch support"
37195 #endif
37196
37197 ;
37198 return 0;
37199}
37200_ACEOF
37201rm -f conftest.$ac_objext
37202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 37203 (eval $ac_compile) 2>&5
a848cd7e 37204 ac_status=$?
a848cd7e
SC
37205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206 (exit $ac_status); } &&
8a7b1113 37207 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37209 (eval $ac_try) 2>&5
37210 ac_status=$?
37211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212 (exit $ac_status); }; }; then
37213
37214 echo "$as_me:$LINENO: result: yes" >&5
37215echo "${ECHO_T}yes" >&6
37216 CPPFLAGS="-fpch-deps $CPPFLAGS"
37217 GCC_PCH=1
37218
37219else
37220 echo "$as_me: failed program was:" >&5
37221sed 's/^/| /' conftest.$ac_ext >&5
37222
37223
37224 echo "$as_me:$LINENO: result: no" >&5
37225echo "${ECHO_T}no" >&6
37226
37227fi
8a7b1113 37228rm -f conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37229 if test $GCC_PCH = 1 ; then
37230 cat <<EOF >bk-make-pch
37231#!/bin/sh
37232
37233# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
37234# script. It is used to generated precompiled headers.
37235#
37236# Permission is given to use this file in any way.
37237
37238outfile="\${1}"
37239header="\${2}"
37240shift
37241shift
37242
37243compiler=
37244headerfile=
37245while test \${#} -gt 0; do
37246 case "\${1}" in
37247 -I* )
37248 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
37249 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
37250 headerfile="\${incdir}/\${header}"
37251 fi
37252 ;;
37253 esac
37254 compiler="\${compiler} \${1}"
37255 shift
37256done
37257
37258if test "x\${headerfile}" = "x" ; then
37259 echo "error: can't find header \${header} in include paths" >2
37260else
37261 if test -f \${outfile} ; then
37262 rm -f \${outfile}
37263 else
37264 mkdir -p \`dirname \${outfile}\`
37265 fi
37266 depsfile=".deps/\`basename \${outfile}\`.d"
37267 mkdir -p .deps
37268 # can do this because gcc is >= 3.4:
37269 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
37270 exit \${?}
37271fi
37272EOF
37273 chmod +x bk-make-pch
37274 fi
37275 fi
37276 fi
37277
37278
37279
37280
37281
dcc1b6ad
VS
37282
37283
37284 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
37285if test "${enable_precomp_headers+set}" = set; then
37286 enableval="$enable_precomp_headers"
37287 bk_use_pch="$enableval"
37288fi;
37289
37290 GCC_PCH=0
37291
37292 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
37293 if test "x$GCC" = "xyes"; then
37294 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
37295echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
37296 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 37297#line $LINENO "configure"
dcc1b6ad
VS
37298/* confdefs.h. */
37299_ACEOF
37300cat confdefs.h >>conftest.$ac_ext
37301cat >>conftest.$ac_ext <<_ACEOF
37302/* end confdefs.h. */
37303
37304int
37305main ()
37306{
37307
37308 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
37309 #error "no pch support"
37310 #endif
37311 #if (__GNUC__ < 3)
37312 #error "no pch support"
37313 #endif
37314 #if (__GNUC__ == 3) && \
37315 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
37316 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
37317 #error "no pch support"
37318 #endif
37319
37320 ;
37321 return 0;
37322}
37323_ACEOF
37324rm -f conftest.$ac_objext
37325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 37326 (eval $ac_compile) 2>&5
dcc1b6ad 37327 ac_status=$?
dcc1b6ad
VS
37328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37329 (exit $ac_status); } &&
8a7b1113 37330 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
37331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37332 (eval $ac_try) 2>&5
37333 ac_status=$?
37334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37335 (exit $ac_status); }; }; then
37336
37337 echo "$as_me:$LINENO: result: yes" >&5
37338echo "${ECHO_T}yes" >&6
37339 CPPFLAGS="-fpch-deps $CPPFLAGS"
37340 GCC_PCH=1
37341
37342else
37343 echo "$as_me: failed program was:" >&5
37344sed 's/^/| /' conftest.$ac_ext >&5
37345
37346
37347 echo "$as_me:$LINENO: result: no" >&5
37348echo "${ECHO_T}no" >&6
37349
37350fi
8a7b1113 37351rm -f conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
37352 if test $GCC_PCH = 1 ; then
37353 cat <<EOF >bk-make-pch
37354#!/bin/sh
37355
37356# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
37357# script. It is used to generated precompiled headers.
37358#
37359# Permission is given to use this file in any way.
37360
37361outfile="\${1}"
37362header="\${2}"
37363shift
37364shift
37365
37366compiler=
37367headerfile=
37368while test \${#} -gt 0; do
37369 case "\${1}" in
37370 -I* )
37371 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
37372 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
37373 headerfile="\${incdir}/\${header}"
37374 fi
37375 ;;
37376 esac
37377 compiler="\${compiler} \${1}"
37378 shift
37379done
37380
37381if test "x\${headerfile}" = "x" ; then
37382 echo "error: can't find header \${header} in include paths" >2
37383else
37384 if test -f \${outfile} ; then
37385 rm -f \${outfile}
37386 else
37387 mkdir -p \`dirname \${outfile}\`
37388 fi
37389 depsfile=".deps/\`basename \${outfile}\`.d"
37390 mkdir -p .deps
37391 # can do this because gcc is >= 3.4:
37392 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
37393 exit \${?}
37394fi
37395EOF
37396 chmod +x bk-make-pch
37397 fi
37398 fi
37399 fi
37400
37401
37402
37403
a848cd7e
SC
37404 COND_BUILD_DEBUG="#"
37405 if test "x$BUILD" = "xdebug" ; then
37406 COND_BUILD_DEBUG=""
37407 fi
37408
37409 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
37410 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
37411 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
37412 fi
37413
37414 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
37415 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
37416 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
37417 fi
37418
37419 COND_BUILD_DEBUG_UNICODE_0="#"
37420 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
37421 COND_BUILD_DEBUG_UNICODE_0=""
37422 fi
37423
37424 COND_BUILD_DEBUG_UNICODE_1="#"
37425 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
37426 COND_BUILD_DEBUG_UNICODE_1=""
37427 fi
37428
37429 COND_BUILD_RELEASE="#"
37430 if test "x$BUILD" = "xrelease" ; then
37431 COND_BUILD_RELEASE=""
37432 fi
37433
37434 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
37435 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
37436 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
37437 fi
37438
37439 COND_BUILD_RELEASE_UNICODE_0="#"
37440 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
37441 COND_BUILD_RELEASE_UNICODE_0=""
37442 fi
37443
37444 COND_BUILD_RELEASE_UNICODE_1="#"
37445 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
37446 COND_BUILD_RELEASE_UNICODE_1=""
37447 fi
37448
37449 COND_DEBUG_FLAG_1="#"
37450 if test "x$DEBUG_FLAG" = "x1" ; then
37451 COND_DEBUG_FLAG_1=""
37452 fi
37453
37454 COND_DEBUG_INFO_0="#"
37455 if test "x$DEBUG_INFO" = "x0" ; then
37456 COND_DEBUG_INFO_0=""
37457 fi
37458
37459 COND_DEBUG_INFO_1="#"
37460 if test "x$DEBUG_INFO" = "x1" ; then
37461 COND_DEBUG_INFO_1=""
37462 fi
37463
37464 COND_DEPS_TRACKING_0="#"
37465 if test "x$DEPS_TRACKING" = "x0" ; then
37466 COND_DEPS_TRACKING_0=""
37467 fi
37468
37469 COND_DEPS_TRACKING_1="#"
37470 if test "x$DEPS_TRACKING" = "x1" ; then
37471 COND_DEPS_TRACKING_1=""
37472 fi
37473
37474 COND_GCC_PCH_1="#"
37475 if test "x$GCC_PCH" = "x1" ; then
37476 COND_GCC_PCH_1=""
37477 fi
37478
37479 COND_MONOLITHIC_0="#"
37480 if test "x$MONOLITHIC" = "x0" ; then
37481 COND_MONOLITHIC_0=""
37482 fi
37483
37484 COND_MONOLITHIC_0_SHARED_0="#"
37485 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
37486 COND_MONOLITHIC_0_SHARED_0=""
37487 fi
37488
37489 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
37490 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
37491 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
37492 fi
37493
37494 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
37495 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
37496 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
37497 fi
37498
37499 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
37500 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
37501 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
37502 fi
37503
37504 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
37505 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
37506 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
37507 fi
37508
37509 COND_MONOLITHIC_0_SHARED_1="#"
37510 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
37511 COND_MONOLITHIC_0_SHARED_1=""
37512 fi
37513
37514 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
37515 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
37516 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
37517 fi
37518
37519 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
37520 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
37521 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
37522 fi
37523
37524 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
37525 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
37526 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
37527 fi
37528
37529 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
37530 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
37531 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
37532 fi
37533
37534 COND_MONOLITHIC_0_USE_ODBC_1="#"
37535 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
37536 COND_MONOLITHIC_0_USE_ODBC_1=""
37537 fi
37538
37539 COND_MONOLITHIC_1="#"
37540 if test "x$MONOLITHIC" = "x1" ; then
37541 COND_MONOLITHIC_1=""
37542 fi
37543
37544 COND_MONOLITHIC_1_SHARED_0="#"
37545 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
37546 COND_MONOLITHIC_1_SHARED_0=""
37547 fi
37548
37549 COND_MONOLITHIC_1_SHARED_1="#"
37550 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
37551 COND_MONOLITHIC_1_SHARED_1=""
37552 fi
37553
37554 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
37555 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
37556 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
37557 fi
37558
37559 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
37560 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
37561 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
37562 fi
37563
37564 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
37565 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
37566 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
37567 fi
37568
37569 COND_PLATFORM_MACOSX_1="#"
37570 if test "x$PLATFORM_MACOSX" = "x1" ; then
37571 COND_PLATFORM_MACOSX_1=""
37572 fi
37573
37574 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
37575 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
37576 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
37577 fi
37578
37579 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
37580 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
37581 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
37582 fi
37583
37584 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
37585 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
37586 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
37587 fi
37588
37589 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
37590 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
37591 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
37592 fi
37593
37594 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
37595 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
37596 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
37597 fi
37598
37599 COND_PLATFORM_MAC_1="#"
37600 if test "x$PLATFORM_MAC" = "x1" ; then
37601 COND_PLATFORM_MAC_1=""
37602 fi
37603
37604 COND_PLATFORM_OS2_1="#"
37605 if test "x$PLATFORM_OS2" = "x1" ; then
37606 COND_PLATFORM_OS2_1=""
37607 fi
37608
37609 COND_PLATFORM_UNIX_0="#"
37610 if test "x$PLATFORM_UNIX" = "x0" ; then
37611 COND_PLATFORM_UNIX_0=""
37612 fi
37613
37614 COND_PLATFORM_UNIX_1="#"
37615 if test "x$PLATFORM_UNIX" = "x1" ; then
37616 COND_PLATFORM_UNIX_1=""
37617 fi
37618
37619 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
37620 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
37621 COND_PLATFORM_UNIX_1_USE_GUI_1=""
37622 fi
37623
37624 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
37625 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
37626 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
37627 fi
37628
37629 COND_PLATFORM_WIN32_0="#"
37630 if test "x$PLATFORM_WIN32" = "x0" ; then
37631 COND_PLATFORM_WIN32_0=""
37632 fi
37633
37634 COND_PLATFORM_WIN32_1="#"
37635 if test "x$PLATFORM_WIN32" = "x1" ; then
37636 COND_PLATFORM_WIN32_1=""
37637 fi
37638
37639 COND_SHARED_0="#"
37640 if test "x$SHARED" = "x0" ; then
37641 COND_SHARED_0=""
37642 fi
37643
37644 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
37645 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
37646 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
37647 fi
37648
37649 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
37650 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
37651 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
37652 fi
37653
37654 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
37655 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
37656 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
37657 fi
37658
37659 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
37660 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
37661 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
37662 fi
37663
37664 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
37665 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
37666 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
37667 fi
37668
37669 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
37670 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
37671 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
37672 fi
37673
37674 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
37675 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
37676 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
37677 fi
37678
37679 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
37680 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
37681 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
37682 fi
37683
37684 COND_SHARED_1="#"
37685 if test "x$SHARED" = "x1" ; then
37686 COND_SHARED_1=""
37687 fi
37688
37689 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
37690 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
37691 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
37692 fi
37693
37694 COND_TOOLKIT_COCOA="#"
37695 if test "x$TOOLKIT" = "xCOCOA" ; then
37696 COND_TOOLKIT_COCOA=""
37697 fi
37698
37699 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
37700 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
37701 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
37702 fi
37703
37704 COND_TOOLKIT_GTK="#"
37705 if test "x$TOOLKIT" = "xGTK" ; then
37706 COND_TOOLKIT_GTK=""
37707 fi
37708
37709 COND_TOOLKIT_GTK_USE_GUI_1="#"
37710 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
37711 COND_TOOLKIT_GTK_USE_GUI_1=""
37712 fi
37713
37714 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
37715 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
37716 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
37717 fi
37718
37719 COND_TOOLKIT_MAC="#"
37720 if test "x$TOOLKIT" = "xMAC" ; then
37721 COND_TOOLKIT_MAC=""
37722 fi
37723
37724 COND_TOOLKIT_MAC_USE_GUI_1="#"
37725 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
37726 COND_TOOLKIT_MAC_USE_GUI_1=""
37727 fi
37728
37729 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
37730 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
37731 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
37732 fi
37733
37734 COND_TOOLKIT_MGL="#"
37735 if test "x$TOOLKIT" = "xMGL" ; then
37736 COND_TOOLKIT_MGL=""
37737 fi
37738
37739 COND_TOOLKIT_MGL_USE_GUI_1="#"
37740 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
37741 COND_TOOLKIT_MGL_USE_GUI_1=""
37742 fi
37743
37744 COND_TOOLKIT_MOTIF="#"
37745 if test "x$TOOLKIT" = "xMOTIF" ; then
37746 COND_TOOLKIT_MOTIF=""
37747 fi
37748
37749 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
37750 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
37751 COND_TOOLKIT_MOTIF_USE_GUI_1=""
37752 fi
37753
37754 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
37755 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
37756 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
37757 fi
37758
37759 COND_TOOLKIT_MSW="#"
37760 if test "x$TOOLKIT" = "xMSW" ; then
37761 COND_TOOLKIT_MSW=""
37762 fi
37763
37764 COND_TOOLKIT_MSW_USE_GUI_1="#"
37765 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
37766 COND_TOOLKIT_MSW_USE_GUI_1=""
37767 fi
37768
37769 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
37770 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
37771 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
37772 fi
37773
37774 COND_TOOLKIT_PM="#"
37775 if test "x$TOOLKIT" = "xPM" ; then
37776 COND_TOOLKIT_PM=""
37777 fi
37778
37779 COND_TOOLKIT_PM_USE_GUI_1="#"
37780 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
37781 COND_TOOLKIT_PM_USE_GUI_1=""
37782 fi
37783
37784 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
37785 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
37786 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
37787 fi
37788
3fd9c298
DE
37789 COND_TOOLKIT_WINCE="#"
37790 if test "x$TOOLKIT" = "xWINCE" ; then
37791 COND_TOOLKIT_WINCE=""
37792 fi
37793
37794 COND_TOOLKIT_WINCE_USE_GUI_1="#"
37795 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
37796 COND_TOOLKIT_WINCE_USE_GUI_1=""
37797 fi
37798
37799 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
37800 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
37801 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
37802 fi
37803
a848cd7e
SC
37804 COND_TOOLKIT_X11="#"
37805 if test "x$TOOLKIT" = "xX11" ; then
37806 COND_TOOLKIT_X11=""
37807 fi
37808
37809 COND_TOOLKIT_X11_USE_GUI_1="#"
37810 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
37811 COND_TOOLKIT_X11_USE_GUI_1=""
37812 fi
37813
37814 COND_UNICODE_1="#"
37815 if test "x$UNICODE" = "x1" ; then
37816 COND_UNICODE_1=""
37817 fi
37818
37819 COND_USE_EXCEPTIONS_0="#"
37820 if test "x$USE_EXCEPTIONS" = "x0" ; then
37821 COND_USE_EXCEPTIONS_0=""
37822 fi
37823
37824 COND_USE_EXCEPTIONS_1="#"
37825 if test "x$USE_EXCEPTIONS" = "x1" ; then
37826 COND_USE_EXCEPTIONS_1=""
37827 fi
37828
37829 COND_USE_GUI_0="#"
37830 if test "x$USE_GUI" = "x0" ; then
37831 COND_USE_GUI_0=""
37832 fi
37833
37834 COND_USE_GUI_1="#"
37835 if test "x$USE_GUI" = "x1" ; then
37836 COND_USE_GUI_1=""
37837 fi
37838
37839 COND_USE_GUI_1_WXUNIV_0="#"
37840 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
37841 COND_USE_GUI_1_WXUNIV_0=""
37842 fi
37843
37844 COND_USE_GUI_1_WXUNIV_1="#"
37845 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
37846 COND_USE_GUI_1_WXUNIV_1=""
37847 fi
37848
37849 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
37850 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
37851 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
37852 fi
37853
37854 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
37855 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
37856 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
37857 fi
37858
37859 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
37860 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
37861 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
37862 fi
37863
37864 COND_USE_ODBC_1="#"
37865 if test "x$USE_ODBC" = "x1" ; then
37866 COND_USE_ODBC_1=""
37867 fi
37868
37869 COND_USE_PLUGINS_0="#"
37870 if test "x$USE_PLUGINS" = "x0" ; then
37871 COND_USE_PLUGINS_0=""
37872 fi
37873
37874 COND_USE_SOSYMLINKS_1="#"
37875 if test "x$USE_SOSYMLINKS" = "x1" ; then
37876 COND_USE_SOSYMLINKS_1=""
37877 fi
37878
37879 COND_USE_SOVERLINUX_1="#"
37880 if test "x$USE_SOVERLINUX" = "x1" ; then
37881 COND_USE_SOVERLINUX_1=""
37882 fi
37883
37884 COND_USE_SOVERSION_0="#"
37885 if test "x$USE_SOVERSION" = "x0" ; then
37886 COND_USE_SOVERSION_0=""
37887 fi
37888
37889 COND_USE_SOVERSOLARIS_1="#"
37890 if test "x$USE_SOVERSOLARIS" = "x1" ; then
37891 COND_USE_SOVERSOLARIS_1=""
37892 fi
37893
37894 COND_WITH_PLUGIN_SDL_1="#"
37895 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
37896 COND_WITH_PLUGIN_SDL_1=""
37897 fi
37898
37899 COND_WITH_SDL_1="#"
37900 if test "x$WITH_SDL" = "x1" ; then
37901 COND_WITH_SDL_1=""
37902 fi
37903
37904 COND_WXUNIV_1="#"
37905 if test "x$WXUNIV" = "x1" ; then
37906 COND_WXUNIV_1=""
37907 fi
37908
37909 COND_WXUSE_EXPAT_BUILTIN="#"
37910 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
37911 COND_WXUSE_EXPAT_BUILTIN=""
37912 fi
37913
37914 COND_WXUSE_LIBJPEG_BUILTIN="#"
37915 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
37916 COND_WXUSE_LIBJPEG_BUILTIN=""
37917 fi
37918
37919 COND_WXUSE_LIBPNG_BUILTIN="#"
37920 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
37921 COND_WXUSE_LIBPNG_BUILTIN=""
37922 fi
37923
37924 COND_WXUSE_LIBTIFF_BUILTIN="#"
37925 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
37926 COND_WXUSE_LIBTIFF_BUILTIN=""
37927 fi
37928
37929 COND_WXUSE_ODBC_BUILTIN="#"
37930 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
37931 COND_WXUSE_ODBC_BUILTIN=""
37932 fi
37933
37934 COND_WXUSE_REGEX_BUILTIN="#"
37935 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
37936 COND_WXUSE_REGEX_BUILTIN=""
37937 fi
37938
37939 COND_WXUSE_ZLIB_BUILTIN="#"
37940 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
37941 COND_WXUSE_ZLIB_BUILTIN=""
37942 fi
37943
dcc1b6ad
VS
37944 COND_BUILD_DEBUG="#"
37945 if test "x$BUILD" = "xdebug" ; then
37946 COND_BUILD_DEBUG=""
37947 fi
37948
37949 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
37950 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
37951 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
37952 fi
37953
37954 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
37955 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
37956 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
37957 fi
37958
37959 COND_BUILD_DEBUG_UNICODE_0="#"
37960 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
37961 COND_BUILD_DEBUG_UNICODE_0=""
37962 fi
37963
37964 COND_BUILD_DEBUG_UNICODE_1="#"
37965 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
37966 COND_BUILD_DEBUG_UNICODE_1=""
37967 fi
37968
37969 COND_BUILD_RELEASE="#"
37970 if test "x$BUILD" = "xrelease" ; then
37971 COND_BUILD_RELEASE=""
37972 fi
37973
37974 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
37975 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
37976 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
37977 fi
37978
37979 COND_BUILD_RELEASE_UNICODE_0="#"
37980 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
37981 COND_BUILD_RELEASE_UNICODE_0=""
37982 fi
37983
37984 COND_BUILD_RELEASE_UNICODE_1="#"
37985 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
37986 COND_BUILD_RELEASE_UNICODE_1=""
37987 fi
37988
37989 COND_DEBUG_FLAG_1="#"
37990 if test "x$DEBUG_FLAG" = "x1" ; then
37991 COND_DEBUG_FLAG_1=""
37992 fi
37993
37994 COND_DEBUG_INFO_0="#"
37995 if test "x$DEBUG_INFO" = "x0" ; then
37996 COND_DEBUG_INFO_0=""
37997 fi
37998
37999 COND_DEBUG_INFO_1="#"
38000 if test "x$DEBUG_INFO" = "x1" ; then
38001 COND_DEBUG_INFO_1=""
38002 fi
38003
38004 COND_DEPS_TRACKING_0="#"
38005 if test "x$DEPS_TRACKING" = "x0" ; then
38006 COND_DEPS_TRACKING_0=""
38007 fi
38008
38009 COND_DEPS_TRACKING_1="#"
38010 if test "x$DEPS_TRACKING" = "x1" ; then
38011 COND_DEPS_TRACKING_1=""
38012 fi
38013
38014 COND_GCC_PCH_1="#"
38015 if test "x$GCC_PCH" = "x1" ; then
38016 COND_GCC_PCH_1=""
38017 fi
38018
38019 COND_MONOLITHIC_0="#"
38020 if test "x$MONOLITHIC" = "x0" ; then
38021 COND_MONOLITHIC_0=""
38022 fi
38023
38024 COND_MONOLITHIC_0_SHARED_0="#"
38025 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
38026 COND_MONOLITHIC_0_SHARED_0=""
38027 fi
38028
38029 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
38030 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
38031 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
38032 fi
38033
38034 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
38035 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38036 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
38037 fi
38038
38039 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
38040 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
38041 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
38042 fi
38043
38044 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
38045 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
38046 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
38047 fi
38048
38049 COND_MONOLITHIC_0_SHARED_1="#"
38050 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
38051 COND_MONOLITHIC_0_SHARED_1=""
38052 fi
38053
38054 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
38055 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
38056 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
38057 fi
38058
38059 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
38060 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38061 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
38062 fi
38063
38064 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
38065 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
38066 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
38067 fi
38068
38069 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
38070 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
38071 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
38072 fi
38073
38074 COND_MONOLITHIC_0_USE_ODBC_1="#"
38075 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
38076 COND_MONOLITHIC_0_USE_ODBC_1=""
38077 fi
38078
38079 COND_MONOLITHIC_1="#"
38080 if test "x$MONOLITHIC" = "x1" ; then
38081 COND_MONOLITHIC_1=""
38082 fi
38083
38084 COND_MONOLITHIC_1_SHARED_0="#"
38085 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
38086 COND_MONOLITHIC_1_SHARED_0=""
38087 fi
38088
38089 COND_MONOLITHIC_1_SHARED_1="#"
38090 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
38091 COND_MONOLITHIC_1_SHARED_1=""
38092 fi
38093
38094 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
38095 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
38096 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
38097 fi
38098
38099 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
38100 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
38101 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
38102 fi
38103
38104 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
38105 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
38106 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
38107 fi
38108
38109 COND_PLATFORM_MACOSX_1="#"
38110 if test "x$PLATFORM_MACOSX" = "x1" ; then
38111 COND_PLATFORM_MACOSX_1=""
38112 fi
38113
38114 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
38115 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
38116 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
38117 fi
38118
38119 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
38120 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
38121 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
38122 fi
38123
38124 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
38125 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
38126 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
38127 fi
38128
38129 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
38130 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
38131 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
38132 fi
38133
38134 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
38135 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
38136 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
38137 fi
38138
38139 COND_PLATFORM_MAC_1="#"
38140 if test "x$PLATFORM_MAC" = "x1" ; then
38141 COND_PLATFORM_MAC_1=""
38142 fi
38143
38144 COND_PLATFORM_OS2_1="#"
38145 if test "x$PLATFORM_OS2" = "x1" ; then
38146 COND_PLATFORM_OS2_1=""
38147 fi
38148
38149 COND_PLATFORM_UNIX_0="#"
38150 if test "x$PLATFORM_UNIX" = "x0" ; then
38151 COND_PLATFORM_UNIX_0=""
38152 fi
38153
38154 COND_PLATFORM_UNIX_1="#"
38155 if test "x$PLATFORM_UNIX" = "x1" ; then
38156 COND_PLATFORM_UNIX_1=""
38157 fi
38158
38159 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
38160 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
38161 COND_PLATFORM_UNIX_1_USE_GUI_1=""
38162 fi
38163
38164 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
38165 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
38166 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
38167 fi
38168
38169 COND_PLATFORM_WIN32_0="#"
38170 if test "x$PLATFORM_WIN32" = "x0" ; then
38171 COND_PLATFORM_WIN32_0=""
38172 fi
38173
38174 COND_PLATFORM_WIN32_1="#"
38175 if test "x$PLATFORM_WIN32" = "x1" ; then
38176 COND_PLATFORM_WIN32_1=""
38177 fi
38178
38179 COND_SHARED_0="#"
38180 if test "x$SHARED" = "x0" ; then
38181 COND_SHARED_0=""
38182 fi
38183
38184 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
38185 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38186 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
38187 fi
38188
38189 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38190 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38191 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38192 fi
38193
38194 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38195 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38196 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38197 fi
38198
38199 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38200 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38201 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38202 fi
38203
38204 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
38205 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
38206 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
38207 fi
38208
38209 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
38210 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
38211 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
38212 fi
38213
38214 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
38215 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
38216 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
38217 fi
38218
38219 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
38220 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
38221 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
38222 fi
38223
38224 COND_SHARED_1="#"
38225 if test "x$SHARED" = "x1" ; then
38226 COND_SHARED_1=""
38227 fi
38228
38229 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
38230 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38231 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
38232 fi
38233
38234 COND_TOOLKIT_COCOA="#"
38235 if test "x$TOOLKIT" = "xCOCOA" ; then
38236 COND_TOOLKIT_COCOA=""
38237 fi
38238
38239 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
38240 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38241 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
38242 fi
38243
38244 COND_TOOLKIT_GTK="#"
38245 if test "x$TOOLKIT" = "xGTK" ; then
38246 COND_TOOLKIT_GTK=""
38247 fi
38248
38249 COND_TOOLKIT_GTK_USE_GUI_1="#"
38250 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
38251 COND_TOOLKIT_GTK_USE_GUI_1=""
38252 fi
38253
38254 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
38255 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38256 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
38257 fi
38258
38259 COND_TOOLKIT_MAC="#"
38260 if test "x$TOOLKIT" = "xMAC" ; then
38261 COND_TOOLKIT_MAC=""
38262 fi
38263
38264 COND_TOOLKIT_MAC_USE_GUI_1="#"
38265 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
38266 COND_TOOLKIT_MAC_USE_GUI_1=""
38267 fi
38268
38269 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
38270 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38271 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
38272 fi
38273
38274 COND_TOOLKIT_MGL="#"
38275 if test "x$TOOLKIT" = "xMGL" ; then
38276 COND_TOOLKIT_MGL=""
38277 fi
38278
38279 COND_TOOLKIT_MGL_USE_GUI_1="#"
38280 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
38281 COND_TOOLKIT_MGL_USE_GUI_1=""
38282 fi
38283
38284 COND_TOOLKIT_MOTIF="#"
38285 if test "x$TOOLKIT" = "xMOTIF" ; then
38286 COND_TOOLKIT_MOTIF=""
38287 fi
38288
38289 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
38290 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
38291 COND_TOOLKIT_MOTIF_USE_GUI_1=""
38292 fi
38293
38294 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
38295 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38296 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
38297 fi
38298
38299 COND_TOOLKIT_MSW="#"
38300 if test "x$TOOLKIT" = "xMSW" ; then
38301 COND_TOOLKIT_MSW=""
38302 fi
38303
38304 COND_TOOLKIT_MSW_USE_GUI_1="#"
38305 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
38306 COND_TOOLKIT_MSW_USE_GUI_1=""
38307 fi
38308
38309 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
38310 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38311 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
38312 fi
38313
38314 COND_TOOLKIT_PM="#"
38315 if test "x$TOOLKIT" = "xPM" ; then
38316 COND_TOOLKIT_PM=""
38317 fi
38318
38319 COND_TOOLKIT_PM_USE_GUI_1="#"
38320 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
38321 COND_TOOLKIT_PM_USE_GUI_1=""
38322 fi
38323
38324 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
38325 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38326 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
38327 fi
38328
38329 COND_TOOLKIT_WINCE="#"
38330 if test "x$TOOLKIT" = "xWINCE" ; then
38331 COND_TOOLKIT_WINCE=""
38332 fi
38333
38334 COND_TOOLKIT_WINCE_USE_GUI_1="#"
38335 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
38336 COND_TOOLKIT_WINCE_USE_GUI_1=""
38337 fi
38338
38339 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
38340 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38341 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
38342 fi
38343
38344 COND_TOOLKIT_X11="#"
38345 if test "x$TOOLKIT" = "xX11" ; then
38346 COND_TOOLKIT_X11=""
38347 fi
38348
38349 COND_TOOLKIT_X11_USE_GUI_1="#"
38350 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
38351 COND_TOOLKIT_X11_USE_GUI_1=""
38352 fi
38353
38354 COND_UNICODE_1="#"
38355 if test "x$UNICODE" = "x1" ; then
38356 COND_UNICODE_1=""
38357 fi
38358
38359 COND_USE_EXCEPTIONS_0="#"
38360 if test "x$USE_EXCEPTIONS" = "x0" ; then
38361 COND_USE_EXCEPTIONS_0=""
38362 fi
38363
38364 COND_USE_EXCEPTIONS_1="#"
38365 if test "x$USE_EXCEPTIONS" = "x1" ; then
38366 COND_USE_EXCEPTIONS_1=""
38367 fi
38368
38369 COND_USE_GUI_0="#"
38370 if test "x$USE_GUI" = "x0" ; then
38371 COND_USE_GUI_0=""
38372 fi
38373
38374 COND_USE_GUI_1="#"
38375 if test "x$USE_GUI" = "x1" ; then
38376 COND_USE_GUI_1=""
38377 fi
38378
38379 COND_USE_GUI_1_WXUNIV_0="#"
38380 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38381 COND_USE_GUI_1_WXUNIV_0=""
38382 fi
38383
38384 COND_USE_GUI_1_WXUNIV_1="#"
38385 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
38386 COND_USE_GUI_1_WXUNIV_1=""
38387 fi
38388
38389 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38390 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38391 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38392 fi
38393
38394 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38395 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38396 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38397 fi
38398
38399 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38400 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38401 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38402 fi
38403
38404 COND_USE_ODBC_1="#"
38405 if test "x$USE_ODBC" = "x1" ; then
38406 COND_USE_ODBC_1=""
38407 fi
38408
38409 COND_USE_PLUGINS_0="#"
38410 if test "x$USE_PLUGINS" = "x0" ; then
38411 COND_USE_PLUGINS_0=""
38412 fi
38413
38414 COND_USE_SOSYMLINKS_1="#"
38415 if test "x$USE_SOSYMLINKS" = "x1" ; then
38416 COND_USE_SOSYMLINKS_1=""
38417 fi
38418
38419 COND_USE_SOVERLINUX_1="#"
38420 if test "x$USE_SOVERLINUX" = "x1" ; then
38421 COND_USE_SOVERLINUX_1=""
38422 fi
38423
38424 COND_USE_SOVERSION_0="#"
38425 if test "x$USE_SOVERSION" = "x0" ; then
38426 COND_USE_SOVERSION_0=""
38427 fi
38428
38429 COND_USE_SOVERSOLARIS_1="#"
38430 if test "x$USE_SOVERSOLARIS" = "x1" ; then
38431 COND_USE_SOVERSOLARIS_1=""
38432 fi
38433
38434 COND_WITH_PLUGIN_SDL_1="#"
38435 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
38436 COND_WITH_PLUGIN_SDL_1=""
38437 fi
38438
38439 COND_WXUNIV_1="#"
38440 if test "x$WXUNIV" = "x1" ; then
38441 COND_WXUNIV_1=""
38442 fi
38443
38444 COND_WXUSE_EXPAT_BUILTIN="#"
38445 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
38446 COND_WXUSE_EXPAT_BUILTIN=""
38447 fi
38448
38449 COND_WXUSE_LIBJPEG_BUILTIN="#"
38450 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38451 COND_WXUSE_LIBJPEG_BUILTIN=""
38452 fi
38453
38454 COND_WXUSE_LIBPNG_BUILTIN="#"
38455 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38456 COND_WXUSE_LIBPNG_BUILTIN=""
38457 fi
38458
38459 COND_WXUSE_LIBTIFF_BUILTIN="#"
38460 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38461 COND_WXUSE_LIBTIFF_BUILTIN=""
38462 fi
38463
38464 COND_WXUSE_ODBC_BUILTIN="#"
38465 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
38466 COND_WXUSE_ODBC_BUILTIN=""
38467 fi
38468
38469 COND_WXUSE_REGEX_BUILTIN="#"
38470 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
38471 COND_WXUSE_REGEX_BUILTIN=""
38472 fi
38473
38474 COND_WXUSE_ZLIB_BUILTIN="#"
38475 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
38476 COND_WXUSE_ZLIB_BUILTIN=""
38477 fi
38478
a848cd7e
SC
38479
38480
38481
38482
38483if test $GCC_PCH = 1 ; then
38484 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38485 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
38486else
38487 case "${host}" in
38488 powerpc-*-darwin* )
38489 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38490 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
38491 ;;
bea8e651
MB
38492 *-*-mingw32* )
38493 if test "$wxUSE_STL" = "yes"; then
38494 echo "$as_me:$LINENO: checking If this MinGW version needs -DNO_GCC_PRAGMA" >&5
38495echo $ECHO_N "checking If this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
38496 cat >conftest.$ac_ext <<_ACEOF
8a7b1113 38497#line $LINENO "configure"
bea8e651
MB
38498/* confdefs.h. */
38499_ACEOF
38500cat confdefs.h >>conftest.$ac_ext
38501cat >>conftest.$ac_ext <<_ACEOF
38502/* end confdefs.h. */
38503
38504int
38505main ()
38506{
38507#if !(__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
38508 #error "Not GCC 3.2 or greater"
38509 #endif
38510
38511 ;
38512 return 0;
38513}
38514_ACEOF
38515rm -f conftest.$ac_objext
38516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a7b1113 38517 (eval $ac_compile) 2>&5
bea8e651 38518 ac_status=$?
bea8e651
MB
38519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520 (exit $ac_status); } &&
8a7b1113 38521 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
38522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38523 (eval $ac_try) 2>&5
38524 ac_status=$?
38525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38526 (exit $ac_status); }; }; then
38527 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38528 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
38529 echo "$as_me:$LINENO: result: yes" >&5
38530echo "${ECHO_T}yes" >&6
38531else
38532 echo "$as_me: failed program was:" >&5
38533sed 's/^/| /' conftest.$ac_ext >&5
38534
38535echo "$as_me:$LINENO: result: no" >&5
38536echo "${ECHO_T}no" >&6
38537fi
8a7b1113 38538rm -f conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
38539 fi
38540 ;;
a848cd7e
SC
38541 esac
38542fi
38543
38544
38545SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
38546
38547
38548
38549
38550
38551
38552
38553
38554
38555
38556
38557
38558
38559
38560
38561
38562
38563
38564
38565
38566
38567
38568
38569
38570
38571
38572
38573
38574
38575
38576
38577
38578
38579
38580
38581
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594
38595
38596
38597
38598
38599
38600
38601
38602
38603
38604
38605
38606
38607
38608
38609
38610
38611
38612
38613
38614
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624
38625
38626
38627
38628
38629
38630
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640
38641
38642
38643
38644
38645
38646echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38647echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8a7b1113 38648set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
a848cd7e
SC
38649if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38650 echo $ECHO_N "(cached) $ECHO_C" >&6
38651else
38652 cat >conftest.make <<\_ACEOF
38653all:
38654 @echo 'ac_maketemp="$(MAKE)"'
38655_ACEOF
38656# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38657eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38658if test -n "$ac_maketemp"; then
38659 eval ac_cv_prog_make_${ac_make}_set=yes
38660else
38661 eval ac_cv_prog_make_${ac_make}_set=no
38662fi
38663rm -f conftest.make
38664fi
38665if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38666 echo "$as_me:$LINENO: result: yes" >&5
38667echo "${ECHO_T}yes" >&6
38668 SET_MAKE=
38669else
38670 echo "$as_me:$LINENO: result: no" >&5
38671echo "${ECHO_T}no" >&6
38672 SET_MAKE="MAKE=${MAKE-make}"
38673fi
38674
38675
38676if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
38677 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
38678fi
38679
38680 ac_config_headers="$ac_config_headers setup.h"
38681
38682
38683 ac_config_files="$ac_config_files wx-config version-script Makefile"
38684
38685
38686 ac_config_commands="$ac_config_commands default"
38687
38688
38689
38690if test "$wxUSE_GUI" = "yes"; then
38691 SUBDIRS="samples demos utils contrib"
38692else SUBDIRS="samples utils"
38693fi
38694
38695
38696
38697# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
38698if test "${with_cppunit_prefix+set}" = set; then
38699 withval="$with_cppunit_prefix"
38700 cppunit_config_prefix="$withval"
38701else
38702 cppunit_config_prefix=""
38703fi;
38704
38705# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
38706if test "${with_cppunit_exec_prefix+set}" = set; then
38707 withval="$with_cppunit_exec_prefix"
38708 cppunit_config_exec_prefix="$withval"
38709else
38710 cppunit_config_exec_prefix=""
38711fi;
38712
38713 if test x$cppunit_config_exec_prefix != x ; then
38714 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
38715 if test x${CPPUNIT_CONFIG+set} != xset ; then
38716 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
38717 fi
38718 fi
38719 if test x$cppunit_config_prefix != x ; then
38720 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
38721 if test x${CPPUNIT_CONFIG+set} != xset ; then
38722 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
38723 fi
38724 fi
38725
38726 # Extract the first word of "cppunit-config", so it can be a program name with args.
38727set dummy cppunit-config; ac_word=$2
38728echo "$as_me:$LINENO: checking for $ac_word" >&5
38729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38730if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
38731 echo $ECHO_N "(cached) $ECHO_C" >&6
38732else
38733 case $CPPUNIT_CONFIG in
38734 [\\/]* | ?:[\\/]*)
38735 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
38736 ;;
38737 *)
38738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38739for as_dir in $PATH
38740do
38741 IFS=$as_save_IFS
38742 test -z "$as_dir" && as_dir=.
38743 for ac_exec_ext in '' $ac_executable_extensions; do
38744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38745 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38747 break 2
38748 fi
38749done
38750done
38751
38752 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
38753 ;;
38754esac
38755fi
38756CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
38757
38758if test -n "$CPPUNIT_CONFIG"; then
38759 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
38760echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
38761else
38762 echo "$as_me:$LINENO: result: no" >&5
38763echo "${ECHO_T}no" >&6
38764fi
38765
38766 cppunit_version_min=1.8.0
38767
38768 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
38769echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
38770 no_cppunit=""
38771 if test "$CPPUNIT_CONFIG" = "no" ; then
38772 no_cppunit=yes
c2218763
VS
38773 echo "$as_me:$LINENO: result: no" >&5
38774echo "${ECHO_T}no" >&6
a848cd7e
SC
38775 else
38776 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
38777 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
38778 cppunit_version=`$CPPUNIT_CONFIG --version`
38779
38780 cppunit_major_version=`echo $cppunit_version | \
38781 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38782 cppunit_minor_version=`echo $cppunit_version | \
38783 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38784 cppunit_micro_version=`echo $cppunit_version | \
38785 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38786
38787 cppunit_major_min=`echo $cppunit_version_min | \
38788 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38789 cppunit_minor_min=`echo $cppunit_version_min | \
38790 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38791 cppunit_micro_min=`echo $cppunit_version_min | \
38792 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38793
38794 cppunit_version_proper=`expr \
38795 $cppunit_major_version \> $cppunit_major_min \| \
38796 $cppunit_major_version \= $cppunit_major_min \& \
38797 $cppunit_minor_version \> $cppunit_minor_min \| \
38798 $cppunit_major_version \= $cppunit_major_min \& \
38799 $cppunit_minor_version \= $cppunit_minor_min \& \
38800 $cppunit_micro_version \>= $cppunit_micro_min `
38801
38802 if test "$cppunit_version_proper" = "1" ; then
38803 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
38804echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
38805 else
38806 echo "$as_me:$LINENO: result: no" >&5
38807echo "${ECHO_T}no" >&6
38808 no_cppunit=yes
38809 fi
38810 fi
38811
38812 if test "x$no_cppunit" = x ; then
c2218763 38813 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
38814 else
38815 CPPUNIT_CFLAGS=""
38816 CPPUNIT_LIBS=""
c2218763 38817 :
a848cd7e
SC
38818 fi
38819
38820
38821
38822
38823
38824for subdir in `echo $SUBDIRS`; do
38825 if test -d ${srcdir}/${subdir} ; then
38826 if test "$wxUSE_GUI" = "yes"; then
38827 if test ${subdir} = "samples"; then
38828 makefiles="samples/Makefile.in $makefiles"
38829 for sample in `echo $SAMPLES_SUBDIRS`; do
38830 if test -d $srcdir/samples/$sample; then
38831 makefiles="samples/$sample/Makefile.in $makefiles"
38832 fi
38833 done
38834 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
38835 fi
38836 else if test ${subdir} = "samples"; then
38837 makefiles="samples/Makefile.in samples/console/Makefile.in"
38838 elif test ${subdir} = "utils"; then
38839 makefiles="utils/HelpGen/Makefile.in \
38840 utils/HelpGen/src/Makefile.in \
38841 utils/tex2rtf/Makefile.in \
38842 utils/tex2rtf/src/Makefile.in"
38843 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
38844 fi
38845 fi
38846
38847 for mkin in $makefiles ; do
38848 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
38849 ac_config_files="$ac_config_files $mk"
38850
38851 done
38852 fi
38853done
38854
38855
38856cat >confcache <<\_ACEOF
38857# This file is a shell script that caches the results of configure
38858# tests run on this system so they can be shared between configure
38859# scripts and configure runs, see configure's option --config-cache.
38860# It is not useful on other systems. If it contains results you don't
38861# want to keep, you may remove or edit it.
38862#
38863# config.status only pays attention to the cache file if you give it
38864# the --recheck option to rerun configure.
38865#
38866# `ac_cv_env_foo' variables (set or unset) will be overridden when
38867# loading this file, other *unset* `ac_cv_foo' will be assigned the
38868# following values.
38869
38870_ACEOF
38871
38872# The following way of writing the cache mishandles newlines in values,
38873# but we know of no workaround that is simple, portable, and efficient.
38874# So, don't put newlines in cache variables' values.
38875# Ultrix sh set writes to stderr and can't be redirected directly,
38876# and sets the high bit in the cache file unless we assign to the vars.
38877{
38878 (set) 2>&1 |
38879 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38880 *ac_space=\ *)
38881 # `set' does not quote correctly, so add quotes (double-quote
38882 # substitution turns \\\\ into \\, and sed turns \\ into \).
38883 sed -n \
8a7b1113
VZ
38884 "s/'/'\\\\''/g;
38885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
38886 ;;
38887 *)
38888 # `set' quotes correctly as required by POSIX, so do not add quotes.
38889 sed -n \
8a7b1113 38890 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
38891 ;;
38892 esac;
38893} |
38894 sed '
38895 t clear
38896 : clear
38897 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38898 t end
38899 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38900 : end' >>confcache
38901if diff $cache_file confcache >/dev/null 2>&1; then :; else
38902 if test -w $cache_file; then
38903 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38904 cat confcache >$cache_file
38905 else
38906 echo "not updating unwritable cache $cache_file"
38907 fi
38908fi
38909rm -f confcache
38910
38911test "x$prefix" = xNONE && prefix=$ac_default_prefix
38912# Let make expand exec_prefix.
38913test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38914
38915# VPATH may cause trouble with some makes, so we remove $(srcdir),
38916# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38917# trailing colons and then remove the whole line if VPATH becomes empty
38918# (actually we leave an empty line to preserve line numbers).
38919if test "x$srcdir" = x.; then
8a7b1113 38920 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
38921s/:*\$(srcdir):*/:/;
38922s/:*\${srcdir}:*/:/;
38923s/:*@srcdir@:*/:/;
8a7b1113 38924s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 38925s/:*$//;
8a7b1113 38926s/^[^=]*=[ ]*$//;
a848cd7e
SC
38927}'
38928fi
38929
38930DEFS=-DHAVE_CONFIG_H
38931
38932ac_libobjs=
38933ac_ltlibobjs=
38934for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38935 # 1. Remove the extension, and $U if already installed.
38936 ac_i=`echo "$ac_i" |
8a7b1113 38937 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
38938 # 2. Add them.
38939 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
38940 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
38941done
38942LIBOBJS=$ac_libobjs
38943
38944LTLIBOBJS=$ac_ltlibobjs
38945
38946
38947
38948: ${CONFIG_STATUS=./config.status}
38949ac_clean_files_save=$ac_clean_files
38950ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38951{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38952echo "$as_me: creating $CONFIG_STATUS" >&6;}
38953cat >$CONFIG_STATUS <<_ACEOF
38954#! $SHELL
38955# Generated by $as_me.
38956# Run this file to recreate the current configuration.
38957# Compiler output produced by configure, useful for debugging
38958# configure, is in config.log if it exists.
38959
38960debug=false
38961ac_cs_recheck=false
38962ac_cs_silent=false
38963SHELL=\${CONFIG_SHELL-$SHELL}
38964_ACEOF
38965
38966cat >>$CONFIG_STATUS <<\_ACEOF
38967## --------------------- ##
38968## M4sh Initialization. ##
38969## --------------------- ##
38970
38971# Be Bourne compatible
38972if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38973 emulate sh
38974 NULLCMD=:
38975 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38976 # is contrary to our usage. Disable this feature.
38977 alias -g '${1+"$@"}'='"$@"'
38978elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
38979 set -o posix
38980fi
a848cd7e
SC
38981
38982# Support unset when possible.
8a7b1113 38983if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
a848cd7e
SC
38984 as_unset=unset
38985else
38986 as_unset=false
38987fi
38988
38989
38990# Work around bugs in pre-3.0 UWIN ksh.
38991$as_unset ENV MAIL MAILPATH
38992PS1='$ '
38993PS2='> '
38994PS4='+ '
38995
38996# NLS nuisances.
38997for as_var in \
38998 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38999 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39000 LC_TELEPHONE LC_TIME
39001do
8a7b1113 39002 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
39003 eval $as_var=C; export $as_var
39004 else
39005 $as_unset $as_var
39006 fi
39007done
39008
39009# Required to use basename.
39010if expr a : '\(a\)' >/dev/null 2>&1; then
39011 as_expr=expr
39012else
39013 as_expr=false
39014fi
39015
39016if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39017 as_basename=basename
39018else
39019 as_basename=false
39020fi
39021
39022
39023# Name of the executable.
39024as_me=`$as_basename "$0" ||
39025$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39026 X"$0" : 'X\(//\)$' \| \
39027 X"$0" : 'X\(/\)$' \| \
39028 . : '\(.\)' 2>/dev/null ||
39029echo X/"$0" |
39030 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39031 /^X\/\(\/\/\)$/{ s//\1/; q; }
39032 /^X\/\(\/\).*/{ s//\1/; q; }
39033 s/.*/./; q'`
39034
39035
39036# PATH needs CR, and LINENO needs CR and PATH.
39037# Avoid depending upon Character Ranges.
39038as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39039as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39040as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39041as_cr_digits='0123456789'
39042as_cr_alnum=$as_cr_Letters$as_cr_digits
39043
39044# The user is always right.
39045if test "${PATH_SEPARATOR+set}" != set; then
39046 echo "#! /bin/sh" >conf$$.sh
39047 echo "exit 0" >>conf$$.sh
39048 chmod +x conf$$.sh
39049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39050 PATH_SEPARATOR=';'
39051 else
39052 PATH_SEPARATOR=:
39053 fi
39054 rm -f conf$$.sh
39055fi
39056
39057
39058 as_lineno_1=$LINENO
39059 as_lineno_2=$LINENO
39060 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39061 test "x$as_lineno_1" != "x$as_lineno_2" &&
39062 test "x$as_lineno_3" = "x$as_lineno_2" || {
39063 # Find who we are. Look in the path if we contain no path at all
39064 # relative or not.
39065 case $0 in
39066 *[\\/]* ) as_myself=$0 ;;
39067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39068for as_dir in $PATH
39069do
39070 IFS=$as_save_IFS
39071 test -z "$as_dir" && as_dir=.
39072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39073done
39074
39075 ;;
39076 esac
39077 # We did not find ourselves, most probably we were run as `sh COMMAND'
39078 # in which case we are not to be found in the path.
39079 if test "x$as_myself" = x; then
39080 as_myself=$0
39081 fi
39082 if test ! -f "$as_myself"; then
39083 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39084echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39085 { (exit 1); exit 1; }; }
39086 fi
39087 case $CONFIG_SHELL in
39088 '')
39089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39090for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39091do
39092 IFS=$as_save_IFS
39093 test -z "$as_dir" && as_dir=.
39094 for as_base in sh bash ksh sh5; do
39095 case $as_dir in
39096 /*)
39097 if ("$as_dir/$as_base" -c '
39098 as_lineno_1=$LINENO
39099 as_lineno_2=$LINENO
39100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39101 test "x$as_lineno_1" != "x$as_lineno_2" &&
39102 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39103 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39104 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39105 CONFIG_SHELL=$as_dir/$as_base
39106 export CONFIG_SHELL
39107 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39108 fi;;
39109 esac
39110 done
39111done
39112;;
39113 esac
39114
39115 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39116 # uniformly replaced by the line number. The first 'sed' inserts a
39117 # line-number line before each line; the second 'sed' does the real
39118 # work. The second script uses 'N' to pair each line-number line
39119 # with the numbered line, and appends trailing '-' during
39120 # substitution so that $LINENO is not a special case at line end.
39121 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39122 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39123 sed '=' <$as_myself |
39124 sed '
39125 N
39126 s,$,-,
39127 : loop
39128 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39129 t loop
39130 s,-$,,
39131 s,^['$as_cr_digits']*\n,,
39132 ' >$as_me.lineno &&
39133 chmod +x $as_me.lineno ||
39134 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39135echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39136 { (exit 1); exit 1; }; }
39137
39138 # Don't try to exec as it changes $[0], causing all sort of problems
39139 # (the dirname of $[0] is not the place where we might find the
39140 # original and so on. Autoconf is especially sensible to this).
39141 . ./$as_me.lineno
39142 # Exit status is that of the last command.
39143 exit
39144}
39145
39146
39147case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39148 *c*,-n*) ECHO_N= ECHO_C='
39149' ECHO_T=' ' ;;
39150 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39151 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39152esac
39153
39154if expr a : '\(a\)' >/dev/null 2>&1; then
39155 as_expr=expr
39156else
39157 as_expr=false
39158fi
39159
39160rm -f conf$$ conf$$.exe conf$$.file
39161echo >conf$$.file
39162if ln -s conf$$.file conf$$ 2>/dev/null; then
39163 # We could just check for DJGPP; but this test a) works b) is more generic
39164 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39165 if test -f conf$$.exe; then
39166 # Don't use ln at all; we don't have any links
39167 as_ln_s='cp -p'
39168 else
39169 as_ln_s='ln -s'
39170 fi
39171elif ln conf$$.file conf$$ 2>/dev/null; then
39172 as_ln_s=ln
39173else
39174 as_ln_s='cp -p'
39175fi
39176rm -f conf$$ conf$$.exe conf$$.file
39177
39178if mkdir -p . 2>/dev/null; then
39179 as_mkdir_p=:
39180else
a848cd7e
SC
39181 as_mkdir_p=false
39182fi
39183
39184as_executable_p="test -f"
39185
39186# Sed expression to map a string onto a valid CPP name.
8a7b1113 39187as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
a848cd7e
SC
39188
39189# Sed expression to map a string onto a valid variable name.
8a7b1113 39190as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
a848cd7e
SC
39191
39192
39193# IFS
39194# We need space, tab and new line, in precisely that order.
39195as_nl='
39196'
39197IFS=" $as_nl"
39198
39199# CDPATH.
39200$as_unset CDPATH
39201
39202exec 6>&1
39203
39204# Open the log real soon, to keep \$[0] and so on meaningful, and to
39205# report actual input values of CONFIG_FILES etc. instead of their
39206# values after options handling. Logging --version etc. is OK.
39207exec 5>>config.log
39208{
39209 echo
39210 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39211## Running $as_me. ##
39212_ASBOX
39213} >&5
39214cat >&5 <<_CSEOF
39215
39216This file was extended by wxWindows $as_me 2.5.1, which was
8a7b1113 39217generated by GNU Autoconf 2.57. Invocation command line was
a848cd7e
SC
39218
39219 CONFIG_FILES = $CONFIG_FILES
39220 CONFIG_HEADERS = $CONFIG_HEADERS
39221 CONFIG_LINKS = $CONFIG_LINKS
39222 CONFIG_COMMANDS = $CONFIG_COMMANDS
39223 $ $0 $@
39224
39225_CSEOF
39226echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39227echo >&5
39228_ACEOF
39229
39230# Files that config.status was made for.
39231if test -n "$ac_config_files"; then
39232 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39233fi
39234
39235if test -n "$ac_config_headers"; then
39236 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39237fi
39238
39239if test -n "$ac_config_links"; then
39240 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39241fi
39242
39243if test -n "$ac_config_commands"; then
39244 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39245fi
39246
39247cat >>$CONFIG_STATUS <<\_ACEOF
39248
39249ac_cs_usage="\
39250\`$as_me' instantiates files from templates according to the
39251current configuration.
39252
39253Usage: $0 [OPTIONS] [FILE]...
39254
39255 -h, --help print this help, then exit
39256 -V, --version print version number, then exit
39257 -q, --quiet do not print progress messages
39258 -d, --debug don't remove temporary files
39259 --recheck update $as_me by reconfiguring in the same conditions
39260 --file=FILE[:TEMPLATE]
8a7b1113 39261 instantiate the configuration file FILE
a848cd7e 39262 --header=FILE[:TEMPLATE]
8a7b1113 39263 instantiate the configuration header FILE
a848cd7e
SC
39264
39265Configuration files:
39266$config_files
39267
39268Configuration headers:
39269$config_headers
39270
39271Configuration commands:
39272$config_commands
39273
39274Report bugs to <bug-autoconf@gnu.org>."
39275_ACEOF
39276
39277cat >>$CONFIG_STATUS <<_ACEOF
39278ac_cs_version="\\
39279wxWindows config.status 2.5.1
8a7b1113 39280configured by $0, generated by GNU Autoconf 2.57,
a848cd7e
SC
39281 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39282
8a7b1113
VZ
39283Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
39284Free Software Foundation, Inc.
a848cd7e
SC
39285This config.status script is free software; the Free Software Foundation
39286gives unlimited permission to copy, distribute and modify it."
39287srcdir=$srcdir
39288INSTALL="$INSTALL"
39289_ACEOF
39290
39291cat >>$CONFIG_STATUS <<\_ACEOF
39292# If no file are specified by the user, then we need to provide default
39293# value. By we need to know if files were specified by the user.
39294ac_need_defaults=:
39295while test $# != 0
39296do
39297 case $1 in
39298 --*=*)
39299 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39300 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39301 ac_shift=:
39302 ;;
39303 -*)
39304 ac_option=$1
39305 ac_optarg=$2
39306 ac_shift=shift
39307 ;;
39308 *) # This is not an option, so the user has probably given explicit
39309 # arguments.
39310 ac_option=$1
39311 ac_need_defaults=false;;
39312 esac
39313
39314 case $ac_option in
39315 # Handling of the options.
39316_ACEOF
39317cat >>$CONFIG_STATUS <<\_ACEOF
39318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39319 ac_cs_recheck=: ;;
39320 --version | --vers* | -V )
39321 echo "$ac_cs_version"; exit 0 ;;
39322 --he | --h)
39323 # Conflict between --help and --header
39324 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39325Try \`$0 --help' for more information." >&5
39326echo "$as_me: error: ambiguous option: $1
39327Try \`$0 --help' for more information." >&2;}
39328 { (exit 1); exit 1; }; };;
39329 --help | --hel | -h )
39330 echo "$ac_cs_usage"; exit 0 ;;
39331 --debug | --d* | -d )
39332 debug=: ;;
39333 --file | --fil | --fi | --f )
39334 $ac_shift
39335 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39336 ac_need_defaults=false;;
39337 --header | --heade | --head | --hea )
39338 $ac_shift
39339 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39340 ac_need_defaults=false;;
39341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39342 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39343 ac_cs_silent=: ;;
39344
39345 # This is an error.
39346 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39347Try \`$0 --help' for more information." >&5
39348echo "$as_me: error: unrecognized option: $1
39349Try \`$0 --help' for more information." >&2;}
39350 { (exit 1); exit 1; }; } ;;
39351
39352 *) ac_config_targets="$ac_config_targets $1" ;;
39353
39354 esac
39355 shift
39356done
39357
39358ac_configure_extra_args=
39359
39360if $ac_cs_silent; then
39361 exec 6>/dev/null
39362 ac_configure_extra_args="$ac_configure_extra_args --silent"
39363fi
39364
39365_ACEOF
39366cat >>$CONFIG_STATUS <<_ACEOF
39367if \$ac_cs_recheck; then
39368 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39369 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39370fi
39371
39372_ACEOF
39373
39374cat >>$CONFIG_STATUS <<_ACEOF
39375#
39376# INIT-COMMANDS section.
39377#
39378
39379
39380 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
39381 LN_S="${LN_S}"
39382
39383
39384
39385_ACEOF
39386
39387
39388
39389cat >>$CONFIG_STATUS <<\_ACEOF
39390for ac_config_target in $ac_config_targets
39391do
39392 case "$ac_config_target" in
39393 # Handling of arguments.
39394 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
39395 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
39396 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39397 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
39398 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39399 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
39400 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39401echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39402 { (exit 1); exit 1; }; };;
39403 esac
39404done
39405
39406# If the user did not use the arguments to specify the items to instantiate,
39407# then the envvar interface is used. Set only those that are not.
39408# We use the long form for the default assignment because of an extremely
39409# bizarre bug on SunOS 4.1.3.
39410if $ac_need_defaults; then
39411 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39412 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39413 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39414fi
39415
39416# Have a temporary directory for convenience. Make it in the build tree
39417# simply because there is no reason to put it here, and in addition,
39418# creating and moving files from /tmp can sometimes cause problems.
39419# Create a temporary directory, and hook for its removal unless debugging.
39420$debug ||
39421{
39422 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39423 trap '{ (exit 1); exit 1; }' 1 2 13 15
39424}
39425
39426# Create a (secure) tmp directory for tmp files.
39427
39428{
39429 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39430 test -n "$tmp" && test -d "$tmp"
39431} ||
39432{
39433 tmp=./confstat$$-$RANDOM
39434 (umask 077 && mkdir $tmp)
39435} ||
39436{
39437 echo "$me: cannot create a temporary directory in ." >&2
39438 { (exit 1); exit 1; }
39439}
39440
39441_ACEOF
39442
39443cat >>$CONFIG_STATUS <<_ACEOF
39444
39445#
39446# CONFIG_FILES section.
39447#
39448
39449# No need to generate the scripts if there are no CONFIG_FILES.
39450# This happens for instance when ./config.status config.h
39451if test -n "\$CONFIG_FILES"; then
39452 # Protect against being on the right side of a sed subst in config.status.
39453 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39454 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39455s,@SHELL@,$SHELL,;t t
39456s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39457s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39458s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39459s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39460s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39461s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39462s,@exec_prefix@,$exec_prefix,;t t
39463s,@prefix@,$prefix,;t t
39464s,@program_transform_name@,$program_transform_name,;t t
39465s,@bindir@,$bindir,;t t
39466s,@sbindir@,$sbindir,;t t
39467s,@libexecdir@,$libexecdir,;t t
39468s,@datadir@,$datadir,;t t
39469s,@sysconfdir@,$sysconfdir,;t t
39470s,@sharedstatedir@,$sharedstatedir,;t t
39471s,@localstatedir@,$localstatedir,;t t
39472s,@libdir@,$libdir,;t t
39473s,@includedir@,$includedir,;t t
39474s,@oldincludedir@,$oldincludedir,;t t
39475s,@infodir@,$infodir,;t t
39476s,@mandir@,$mandir,;t t
39477s,@build_alias@,$build_alias,;t t
39478s,@host_alias@,$host_alias,;t t
39479s,@target_alias@,$target_alias,;t t
39480s,@DEFS@,$DEFS,;t t
39481s,@ECHO_C@,$ECHO_C,;t t
39482s,@ECHO_N@,$ECHO_N,;t t
39483s,@ECHO_T@,$ECHO_T,;t t
39484s,@LIBS@,$LIBS,;t t
39485s,@build@,$build,;t t
39486s,@build_cpu@,$build_cpu,;t t
39487s,@build_vendor@,$build_vendor,;t t
39488s,@build_os@,$build_os,;t t
39489s,@host@,$host,;t t
39490s,@host_cpu@,$host_cpu,;t t
39491s,@host_vendor@,$host_vendor,;t t
39492s,@host_os@,$host_os,;t t
39493s,@target@,$target,;t t
39494s,@target_cpu@,$target_cpu,;t t
39495s,@target_vendor@,$target_vendor,;t t
39496s,@target_os@,$target_os,;t t
39497s,@CC@,$CC,;t t
39498s,@CFLAGS@,$CFLAGS,;t t
39499s,@LDFLAGS@,$LDFLAGS,;t t
39500s,@CPPFLAGS@,$CPPFLAGS,;t t
39501s,@ac_ct_CC@,$ac_ct_CC,;t t
39502s,@EXEEXT@,$EXEEXT,;t t
39503s,@OBJEXT@,$OBJEXT,;t t
39504s,@CPP@,$CPP,;t t
39505s,@EGREP@,$EGREP,;t t
39506s,@CXX@,$CXX,;t t
39507s,@CXXFLAGS@,$CXXFLAGS,;t t
39508s,@ac_ct_CXX@,$ac_ct_CXX,;t t
39509s,@RANLIB@,$RANLIB,;t t
39510s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39511s,@AR@,$AR,;t t
39512s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39513s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39514s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39515s,@STRIP@,$STRIP,;t t
39516s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
39517s,@LN_S@,$LN_S,;t t
39518s,@CXXCPP@,$CXXCPP,;t t
39519s,@subdirs@,$subdirs,;t t
39520s,@PKG_CONFIG@,$PKG_CONFIG,;t t
39521s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
39522s,@GTK_LIBS@,$GTK_LIBS,;t t
39523s,@GTK_CONFIG@,$GTK_CONFIG,;t t
39524s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
39525s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
39526s,@X_CFLAGS@,$X_CFLAGS,;t t
39527s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
39528s,@X_LIBS@,$X_LIBS,;t t
39529s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
39530s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
39531s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
39532s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
39533s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
39534s,@RESCOMP@,$RESCOMP,;t t
39535s,@DEREZ@,$DEREZ,;t t
39536s,@SETFILE@,$SETFILE,;t t
39537s,@LIBICONV@,$LIBICONV,;t t
39538s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
39539s,@SDL_CONFIG@,$SDL_CONFIG,;t t
39540s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
39541s,@SDL_LIBS@,$SDL_LIBS,;t t
39542s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
39543s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
39544s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
39545s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
39546s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
39547s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
39548s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
39549s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
39550s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
39551s,@VENDOR@,$VENDOR,;t t
39552s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
39553s,@WXUNIV@,$WXUNIV,;t t
39554s,@MONOLITHIC@,$MONOLITHIC,;t t
39555s,@USE_PLUGINS@,$USE_PLUGINS,;t t
39556s,@EXTRALIBS@,$EXTRALIBS,;t t
39557s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
39558s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
39559s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
39560s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
39561s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
39562s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
39563s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
39564s,@UNICODE@,$UNICODE,;t t
39565s,@BUILD@,$BUILD,;t t
39566s,@DEBUG_INFO@,$DEBUG_INFO,;t t
39567s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
39568s,@SHARED@,$SHARED,;t t
39569s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
39570s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
39571s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
39572s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
39573s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
39574s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
39575s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
39576s,@SET_MAKE@,$SET_MAKE,;t t
39577s,@MAKE_SET@,$MAKE_SET,;t t
39578s,@ac_ct_AR@,$ac_ct_AR,;t t
39579s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39580s,@NM@,$NM,;t t
39581s,@ac_ct_NM@,$ac_ct_NM,;t t
39582s,@INSTALL_DIR@,$INSTALL_DIR,;t t
39583s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
39584s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
39585s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
39586s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
39587s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
39588s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
39589s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
39590s,@SO_SUFFIX@,$SO_SUFFIX,;t t
39591s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
39592s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
39593s,@LIBPREFIX@,$LIBPREFIX,;t t
39594s,@LIBEXT@,$LIBEXT,;t t
39595s,@DLLPREFIX@,$DLLPREFIX,;t t
39596s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
39597s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
39598s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
39599s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
39600s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
39601s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
39602s,@PIC_FLAG@,$PIC_FLAG,;t t
39603s,@USE_SOVERSION@,$USE_SOVERSION,;t t
39604s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
39605s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
39606s,@USE_MACVERSION@,$USE_MACVERSION,;t t
39607s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
39608s,@SONAME_FLAG@,$SONAME_FLAG,;t t
39609s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
39610s,@GCC_PCH@,$GCC_PCH,;t t
39611s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
39612s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
39613s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
39614s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
39615s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
39616s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
39617s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
39618s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
39619s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
39620s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
39621s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
39622s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
39623s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
39624s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
39625s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
39626s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
39627s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
39628s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
39629s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
39630s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
39631s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
39632s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
39633s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
39634s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
39635s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
39636s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
39637s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
39638s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
39639s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
39640s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
39641s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
39642s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
39643s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
39644s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
39645s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
39646s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
39647s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
39648s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
39649s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
39650s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
39651s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
39652s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
39653s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
39654s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
39655s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
39656s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
39657s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
39658s,@COND_SHARED_0@,$COND_SHARED_0,;t t
39659s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
39660s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39661s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39662s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
39663s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
39664s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
39665s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
39666s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
39667s,@COND_SHARED_1@,$COND_SHARED_1,;t t
39668s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
39669s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
39670s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
39671s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
39672s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
39673s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
39674s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
39675s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
39676s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
39677s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
39678s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
39679s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
39680s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
39681s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
39682s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
39683s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
39684s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
39685s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
39686s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
39687s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
39688s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
39689s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
39690s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
39691s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
39692s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
39693s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
39694s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
39695s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
39696s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
39697s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
39698s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
39699s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
39700s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39701s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39702s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
39703s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
39704s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
39705s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
39706s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
39707s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
39708s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
39709s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
39710s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
39711s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
39712s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
39713s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
39714s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
39715s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
39716s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
39717s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
39718s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
39719s,@PATH_IFS@,$PATH_IFS,;t t
39720s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
39721s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
39722s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
39723s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
39724s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
39725s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
39726s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
39727s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
39728s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
39729s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
39730s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
39731s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
39732s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
39733s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
39734s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
39735s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
39736s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
39737s,@WX_ALL@,$WX_ALL,;t t
39738s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
39739s,@SHARED_LD@,$SHARED_LD,;t t
39740s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
39741s,@STATIC_FLAG@,$STATIC_FLAG,;t t
39742s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
39743s,@USE_GUI@,$USE_GUI,;t t
39744s,@AFMINSTALL@,$AFMINSTALL,;t t
39745s,@WIN32INSTALL@,$WIN32INSTALL,;t t
39746s,@TOOLKIT@,$TOOLKIT,;t t
39747s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
39748s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
39749s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
39750s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
39751s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
39752s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
39753s,@cross_compiling@,$cross_compiling,;t t
39754s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
39755s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
39756s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
39757s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
39758s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
39759s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
39760s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
39761s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
39762s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
39763s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
39764s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
39765s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
39766s,@ALL_HEADERS@,$ALL_HEADERS,;t t
39767s,@ALL_SOURCES@,$ALL_SOURCES,;t t
39768s,@GUIDIST@,$GUIDIST,;t t
39769s,@PORT_FILES@,$PORT_FILES,;t t
39770s,@DISTDIR@,$DISTDIR,;t t
39771s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
39772s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
39773s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
39774s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
39775s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
39776s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
39777s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
39778s,@RESFLAGS@,$RESFLAGS,;t t
39779s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
39780s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
39781s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
39782s,@LIBWXMACRES@,$LIBWXMACRES,;t t
39783s,@MACRESCOMP@,$MACRESCOMP,;t t
39784s,@MACSETFILE@,$MACSETFILE,;t t
39785s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
39786s,@GCC@,$GCC,;t t
39787s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
39788s,@DLLTOOL@,$DLLTOOL,;t t
39789s,@AS@,$AS,;t t
39790s,@LD@,$LD,;t t
39791s,@MAKEINFO@,$MAKEINFO,;t t
39792s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
39793s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
39794s,@LIBOBJS@,$LIBOBJS,;t t
39795s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39796CEOF
39797
39798_ACEOF
39799
39800 cat >>$CONFIG_STATUS <<\_ACEOF
39801 # Split the substitutions into bite-sized pieces for seds with
39802 # small command number limits, like on Digital OSF/1 and HP-UX.
39803 ac_max_sed_lines=48
39804 ac_sed_frag=1 # Number of current file.
39805 ac_beg=1 # First line for current file.
39806 ac_end=$ac_max_sed_lines # Line after last line for current file.
39807 ac_more_lines=:
39808 ac_sed_cmds=
39809 while $ac_more_lines; do
39810 if test $ac_beg -gt 1; then
39811 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39812 else
39813 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39814 fi
39815 if test ! -s $tmp/subs.frag; then
39816 ac_more_lines=false
39817 else
39818 # The purpose of the label and of the branching condition is to
39819 # speed up the sed processing (if there are no `@' at all, there
39820 # is no need to browse any of the substitutions).
39821 # These are the two extra sed commands mentioned above.
39822 (echo ':t
39823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39824 if test -z "$ac_sed_cmds"; then
8a7b1113 39825 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 39826 else
8a7b1113 39827 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
39828 fi
39829 ac_sed_frag=`expr $ac_sed_frag + 1`
39830 ac_beg=$ac_end
39831 ac_end=`expr $ac_end + $ac_max_sed_lines`
39832 fi
39833 done
39834 if test -z "$ac_sed_cmds"; then
39835 ac_sed_cmds=cat
39836 fi
39837fi # test -n "$CONFIG_FILES"
39838
39839_ACEOF
39840cat >>$CONFIG_STATUS <<\_ACEOF
39841for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
39842 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39843 case $ac_file in
39844 - | *:- | *:-:* ) # input from stdin
8a7b1113
VZ
39845 cat >$tmp/stdin
39846 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39847 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 39848 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8a7b1113 39849 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
39850 * ) ac_file_in=$ac_file.in ;;
39851 esac
39852
39853 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39854 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39855$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a7b1113
VZ
39856 X"$ac_file" : 'X\(//\)[^/]' \| \
39857 X"$ac_file" : 'X\(//\)$' \| \
39858 X"$ac_file" : 'X\(/\)' \| \
39859 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
39860echo X"$ac_file" |
39861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39863 /^X\(\/\/\)$/{ s//\1/; q; }
39864 /^X\(\/\).*/{ s//\1/; q; }
39865 s/.*/./; q'`
39866 { if $as_mkdir_p; then
39867 mkdir -p "$ac_dir"
39868 else
39869 as_dir="$ac_dir"
39870 as_dirs=
39871 while test ! -d "$as_dir"; do
39872 as_dirs="$as_dir $as_dirs"
39873 as_dir=`(dirname "$as_dir") 2>/dev/null ||
39874$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a7b1113
VZ
39875 X"$as_dir" : 'X\(//\)[^/]' \| \
39876 X"$as_dir" : 'X\(//\)$' \| \
39877 X"$as_dir" : 'X\(/\)' \| \
39878 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
39879echo X"$as_dir" |
39880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39882 /^X\(\/\/\)$/{ s//\1/; q; }
39883 /^X\(\/\).*/{ s//\1/; q; }
39884 s/.*/./; q'`
39885 done
39886 test ! -n "$as_dirs" || mkdir $as_dirs
39887 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39888echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39889 { (exit 1); exit 1; }; }; }
39890
39891 ac_builddir=.
39892
39893if test "$ac_dir" != .; then
39894 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39895 # A "../" for each directory in $ac_dir_suffix.
39896 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39897else
39898 ac_dir_suffix= ac_top_builddir=
39899fi
39900
39901case $srcdir in
39902 .) # No --srcdir option. We are building in place.
39903 ac_srcdir=.
39904 if test -z "$ac_top_builddir"; then
39905 ac_top_srcdir=.
39906 else
39907 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39908 fi ;;
39909 [\\/]* | ?:[\\/]* ) # Absolute path.
39910 ac_srcdir=$srcdir$ac_dir_suffix;
39911 ac_top_srcdir=$srcdir ;;
39912 *) # Relative path.
39913 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39914 ac_top_srcdir=$ac_top_builddir$srcdir ;;
39915esac
8a7b1113
VZ
39916# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
39917# absolute.
39918ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
39919ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
39920ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
39921ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a848cd7e
SC
39922
39923
39924 case $INSTALL in
39925 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39926 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
39927 esac
39928
dcc1b6ad
VS
39929 if test x"$ac_file" != x-; then
39930 { echo "$as_me:$LINENO: creating $ac_file" >&5
39931echo "$as_me: creating $ac_file" >&6;}
39932 rm -f "$ac_file"
39933 fi
a848cd7e
SC
39934 # Let's still pretend it is `configure' which instantiates (i.e., don't
39935 # use $as_me), people would be surprised to read:
39936 # /* config.h. Generated by config.status. */
39937 if test x"$ac_file" = x-; then
39938 configure_input=
39939 else
39940 configure_input="$ac_file. "
39941 fi
39942 configure_input=$configure_input"Generated from `echo $ac_file_in |
8a7b1113 39943 sed 's,.*/,,'` by configure."
a848cd7e
SC
39944
39945 # First look for the input files in the build tree, otherwise in the
39946 # src tree.
39947 ac_file_inputs=`IFS=:
39948 for f in $ac_file_in; do
39949 case $f in
39950 -) echo $tmp/stdin ;;
39951 [\\/$]*)
8a7b1113
VZ
39952 # Absolute (can't be DOS-style, as IFS=:)
39953 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
39954echo "$as_me: error: cannot find input file: $f" >&2;}
39955 { (exit 1); exit 1; }; }
8a7b1113 39956 echo $f;;
a848cd7e 39957 *) # Relative
8a7b1113
VZ
39958 if test -f "$f"; then
39959 # Build tree
39960 echo $f
39961 elif test -f "$srcdir/$f"; then
39962 # Source tree
39963 echo $srcdir/$f
39964 else
39965 # /dev/null tree
39966 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
39967echo "$as_me: error: cannot find input file: $f" >&2;}
39968 { (exit 1); exit 1; }; }
8a7b1113 39969 fi;;
a848cd7e
SC
39970 esac
39971 done` || { (exit 1); exit 1; }
39972_ACEOF
39973cat >>$CONFIG_STATUS <<_ACEOF
39974 sed "$ac_vpsub
39975$extrasub
39976_ACEOF
39977cat >>$CONFIG_STATUS <<\_ACEOF
39978:t
39979/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39980s,@configure_input@,$configure_input,;t t
39981s,@srcdir@,$ac_srcdir,;t t
39982s,@abs_srcdir@,$ac_abs_srcdir,;t t
39983s,@top_srcdir@,$ac_top_srcdir,;t t
39984s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
39985s,@builddir@,$ac_builddir,;t t
39986s,@abs_builddir@,$ac_abs_builddir,;t t
39987s,@top_builddir@,$ac_top_builddir,;t t
39988s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
39989s,@INSTALL@,$ac_INSTALL,;t t
39990" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
39991 rm -f $tmp/stdin
39992 if test x"$ac_file" != x-; then
39993 mv $tmp/out $ac_file
39994 else
39995 cat $tmp/out
39996 rm -f $tmp/out
39997 fi
39998
39999done
40000_ACEOF
40001cat >>$CONFIG_STATUS <<\_ACEOF
40002
40003#
40004# CONFIG_HEADER section.
40005#
40006
40007# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40008# NAME is the cpp macro being defined and VALUE is the value it is being given.
40009#
40010# ac_d sets the value in "#define NAME VALUE" lines.
8a7b1113
VZ
40011ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40012ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
40013ac_dC=' '
40014ac_dD=',;t'
40015# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8a7b1113 40016ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
40017ac_uB='$,\1#\2define\3'
40018ac_uC=' '
40019ac_uD=',;t'
40020
40021for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40022 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40023 case $ac_file in
40024 - | *:- | *:-:* ) # input from stdin
8a7b1113
VZ
40025 cat >$tmp/stdin
40026 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40027 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 40028 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8a7b1113 40029 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
40030 * ) ac_file_in=$ac_file.in ;;
40031 esac
40032
40033 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40034echo "$as_me: creating $ac_file" >&6;}
40035
40036 # First look for the input files in the build tree, otherwise in the
40037 # src tree.
40038 ac_file_inputs=`IFS=:
40039 for f in $ac_file_in; do
40040 case $f in
40041 -) echo $tmp/stdin ;;
40042 [\\/$]*)
8a7b1113
VZ
40043 # Absolute (can't be DOS-style, as IFS=:)
40044 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
40045echo "$as_me: error: cannot find input file: $f" >&2;}
40046 { (exit 1); exit 1; }; }
8a7b1113 40047 echo $f;;
a848cd7e 40048 *) # Relative
8a7b1113
VZ
40049 if test -f "$f"; then
40050 # Build tree
40051 echo $f
40052 elif test -f "$srcdir/$f"; then
40053 # Source tree
40054 echo $srcdir/$f
40055 else
40056 # /dev/null tree
40057 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
40058echo "$as_me: error: cannot find input file: $f" >&2;}
40059 { (exit 1); exit 1; }; }
8a7b1113 40060 fi;;
a848cd7e
SC
40061 esac
40062 done` || { (exit 1); exit 1; }
40063 # Remove the trailing spaces.
8a7b1113 40064 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
40065
40066_ACEOF
40067
40068# Transform confdefs.h into two sed scripts, `conftest.defines' and
40069# `conftest.undefs', that substitutes the proper values into
40070# config.h.in to produce config.h. The first handles `#define'
40071# templates, and the second `#undef' templates.
40072# And first: Protect against being on the right side of a sed subst in
40073# config.status. Protect against being in an unquoted here document
40074# in config.status.
40075rm -f conftest.defines conftest.undefs
40076# Using a here document instead of a string reduces the quoting nightmare.
40077# Putting comments in sed scripts is not portable.
40078#
40079# `end' is used to avoid that the second main sed command (meant for
40080# 0-ary CPP macros) applies to n-ary macro definitions.
40081# See the Autoconf documentation for `clear'.
40082cat >confdef2sed.sed <<\_ACEOF
40083s/[\\&,]/\\&/g
40084s,[\\$`],\\&,g
40085t clear
40086: clear
8a7b1113 40087s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 40088t end
8a7b1113 40089s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
40090: end
40091_ACEOF
40092# If some macros were called several times there might be several times
40093# the same #defines, which is useless. Nevertheless, we may not want to
40094# sort them, since we want the *last* AC-DEFINE to be honored.
40095uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40096sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40097rm -f confdef2sed.sed
40098
40099# This sed command replaces #undef with comments. This is necessary, for
40100# example, in the case of _POSIX_SOURCE, which is predefined and required
40101# on some systems where configure will not decide to define it.
40102cat >>conftest.undefs <<\_ACEOF
8a7b1113 40103s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
40104_ACEOF
40105
40106# Break up conftest.defines because some shells have a limit on the size
40107# of here documents, and old seds have small limits too (100 cmds).
40108echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8a7b1113 40109echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
40110echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40111echo ' :' >>$CONFIG_STATUS
40112rm -f conftest.tail
40113while grep . conftest.defines >/dev/null
40114do
40115 # Write a limited-size here document to $tmp/defines.sed.
40116 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40117 # Speed up: don't consider the non `#define' lines.
8a7b1113 40118 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
40119 # Work around the forget-to-reset-the-flag bug.
40120 echo 't clr' >>$CONFIG_STATUS
40121 echo ': clr' >>$CONFIG_STATUS
40122 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40123 echo 'CEOF
40124 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40125 rm -f $tmp/in
40126 mv $tmp/out $tmp/in
40127' >>$CONFIG_STATUS
40128 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40129 rm -f conftest.defines
40130 mv conftest.tail conftest.defines
40131done
40132rm -f conftest.defines
40133echo ' fi # grep' >>$CONFIG_STATUS
40134echo >>$CONFIG_STATUS
40135
40136# Break up conftest.undefs because some shells have a limit on the size
40137# of here documents, and old seds have small limits too (100 cmds).
40138echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40139rm -f conftest.tail
40140while grep . conftest.undefs >/dev/null
40141do
40142 # Write a limited-size here document to $tmp/undefs.sed.
40143 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40144 # Speed up: don't consider the non `#undef'
8a7b1113 40145 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
40146 # Work around the forget-to-reset-the-flag bug.
40147 echo 't clr' >>$CONFIG_STATUS
40148 echo ': clr' >>$CONFIG_STATUS
40149 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40150 echo 'CEOF
40151 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40152 rm -f $tmp/in
40153 mv $tmp/out $tmp/in
40154' >>$CONFIG_STATUS
40155 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40156 rm -f conftest.undefs
40157 mv conftest.tail conftest.undefs
40158done
40159rm -f conftest.undefs
40160
40161cat >>$CONFIG_STATUS <<\_ACEOF
40162 # Let's still pretend it is `configure' which instantiates (i.e., don't
40163 # use $as_me), people would be surprised to read:
40164 # /* config.h. Generated by config.status. */
40165 if test x"$ac_file" = x-; then
40166 echo "/* Generated by configure. */" >$tmp/config.h
40167 else
40168 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40169 fi
40170 cat $tmp/in >>$tmp/config.h
40171 rm -f $tmp/in
40172 if test x"$ac_file" != x-; then
40173 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40174 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40175echo "$as_me: $ac_file is unchanged" >&6;}
40176 else
40177 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40178$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a7b1113
VZ
40179 X"$ac_file" : 'X\(//\)[^/]' \| \
40180 X"$ac_file" : 'X\(//\)$' \| \
40181 X"$ac_file" : 'X\(/\)' \| \
40182 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
40183echo X"$ac_file" |
40184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40186 /^X\(\/\/\)$/{ s//\1/; q; }
40187 /^X\(\/\).*/{ s//\1/; q; }
40188 s/.*/./; q'`
40189 { if $as_mkdir_p; then
40190 mkdir -p "$ac_dir"
40191 else
40192 as_dir="$ac_dir"
40193 as_dirs=
40194 while test ! -d "$as_dir"; do
40195 as_dirs="$as_dir $as_dirs"
40196 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40197$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a7b1113
VZ
40198 X"$as_dir" : 'X\(//\)[^/]' \| \
40199 X"$as_dir" : 'X\(//\)$' \| \
40200 X"$as_dir" : 'X\(/\)' \| \
40201 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
40202echo X"$as_dir" |
40203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40205 /^X\(\/\/\)$/{ s//\1/; q; }
40206 /^X\(\/\).*/{ s//\1/; q; }
40207 s/.*/./; q'`
40208 done
40209 test ! -n "$as_dirs" || mkdir $as_dirs
40210 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40211echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40212 { (exit 1); exit 1; }; }; }
40213
40214 rm -f $ac_file
40215 mv $tmp/config.h $ac_file
40216 fi
40217 else
40218 cat $tmp/config.h
40219 rm -f $tmp/config.h
40220 fi
40221done
40222_ACEOF
40223cat >>$CONFIG_STATUS <<\_ACEOF
40224
40225#
40226# CONFIG_COMMANDS section.
40227#
40228for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40229 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40230 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40231 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40232$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a7b1113
VZ
40233 X"$ac_dest" : 'X\(//\)[^/]' \| \
40234 X"$ac_dest" : 'X\(//\)$' \| \
40235 X"$ac_dest" : 'X\(/\)' \| \
40236 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
40237echo X"$ac_dest" |
40238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40240 /^X\(\/\/\)$/{ s//\1/; q; }
40241 /^X\(\/\).*/{ s//\1/; q; }
40242 s/.*/./; q'`
a848cd7e
SC
40243 ac_builddir=.
40244
40245if test "$ac_dir" != .; then
40246 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40247 # A "../" for each directory in $ac_dir_suffix.
40248 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40249else
40250 ac_dir_suffix= ac_top_builddir=
40251fi
40252
40253case $srcdir in
40254 .) # No --srcdir option. We are building in place.
40255 ac_srcdir=.
40256 if test -z "$ac_top_builddir"; then
40257 ac_top_srcdir=.
40258 else
40259 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40260 fi ;;
40261 [\\/]* | ?:[\\/]* ) # Absolute path.
40262 ac_srcdir=$srcdir$ac_dir_suffix;
40263 ac_top_srcdir=$srcdir ;;
40264 *) # Relative path.
40265 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40266 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40267esac
8a7b1113
VZ
40268# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
40269# absolute.
40270ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
40271ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
40272ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
40273ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a848cd7e
SC
40274
40275
40276 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40277echo "$as_me: executing $ac_dest commands" >&6;}
40278 case $ac_dest in
40279 default )
40280 if test ! -h wx-config; then
40281 chmod +x wx-config
40282 mv wx-config wx${TOOLCHAIN_NAME}-config
40283 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
40284 fi
40285
40286 if test ! -d lib; then
40287 mkdir lib
40288 fi
40289 if test ! -d lib/wx; then
40290 mkdir lib/wx
40291 fi
40292 if test ! -d lib/wx/include; then
40293 mkdir lib/wx/include
40294 fi
40295 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
40296 mkdir lib/wx/include/${TOOLCHAIN_NAME}
40297 fi
40298 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
40299 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
40300 fi
40301 if test -f setup.h; then
40302 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
40303 fi
40304 ;;
40305 esac
40306done
40307_ACEOF
40308
40309cat >>$CONFIG_STATUS <<\_ACEOF
40310
40311{ (exit 0); exit 0; }
40312_ACEOF
40313chmod +x $CONFIG_STATUS
40314ac_clean_files=$ac_clean_files_save
40315
40316
40317# configure is writing to config.log, and then calls config.status.
40318# config.status does its own redirection, appending to config.log.
40319# Unfortunately, on DOS this fails, as config.log is still kept open
40320# by configure, so config.status won't be able to write to it; its
40321# output is simply discarded. So we exec the FD to /dev/null,
40322# effectively closing config.log, so it can be properly (re)opened and
40323# appended to by config.status. When coming back to configure, we
40324# need to make the FD available again.
40325if test "$no_create" != yes; then
40326 ac_cs_success=:
40327 ac_config_status_args=
40328 test "$silent" = yes &&
40329 ac_config_status_args="$ac_config_status_args --quiet"
40330 exec 5>/dev/null
40331 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40332 exec 5>>config.log
40333 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40334 # would make configure fail if this is the last instruction.
40335 $ac_cs_success || { (exit 1); exit 1; }
40336fi
40337
40338#
40339# CONFIG_SUBDIRS section.
40340#
40341if test "$no_recursion" != yes; then
40342
40343 # Remove --cache-file and --srcdir arguments so they do not pile up.
40344 ac_sub_configure_args=
40345 ac_prev=
40346 for ac_arg in $ac_configure_args; do
40347 if test -n "$ac_prev"; then
40348 ac_prev=
40349 continue
40350 fi
40351 case $ac_arg in
40352 -cache-file | --cache-file | --cache-fil | --cache-fi \
40353 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40354 ac_prev=cache_file ;;
40355 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40356 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40357 | --c=*)
40358 ;;
40359 --config-cache | -C)
40360 ;;
40361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40362 ac_prev=srcdir ;;
40363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40364 ;;
40365 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40366 ac_prev=prefix ;;
40367 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40368 ;;
40369 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
40370 esac
40371 done
40372
40373 # Always prepend --prefix to ensure using the same prefix
40374 # in subdir configurations.
40375 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
40376
40377 ac_popdir=`pwd`
40378 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40379
40380 # Do not complain, so a configure script can configure whichever
40381 # parts of a large source tree are present.
40382 test -d $srcdir/$ac_dir || continue
40383
40384 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
40385echo "$as_me: configuring in $ac_dir" >&6;}
40386 { if $as_mkdir_p; then
40387 mkdir -p "$ac_dir"
40388 else
40389 as_dir="$ac_dir"
40390 as_dirs=
40391 while test ! -d "$as_dir"; do
40392 as_dirs="$as_dir $as_dirs"
40393 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40394$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a7b1113
VZ
40395 X"$as_dir" : 'X\(//\)[^/]' \| \
40396 X"$as_dir" : 'X\(//\)$' \| \
40397 X"$as_dir" : 'X\(/\)' \| \
40398 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
40399echo X"$as_dir" |
40400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40402 /^X\(\/\/\)$/{ s//\1/; q; }
40403 /^X\(\/\).*/{ s//\1/; q; }
40404 s/.*/./; q'`
40405 done
40406 test ! -n "$as_dirs" || mkdir $as_dirs
40407 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40408echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40409 { (exit 1); exit 1; }; }; }
40410
40411 ac_builddir=.
40412
40413if test "$ac_dir" != .; then
40414 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40415 # A "../" for each directory in $ac_dir_suffix.
40416 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40417else
40418 ac_dir_suffix= ac_top_builddir=
40419fi
40420
40421case $srcdir in
40422 .) # No --srcdir option. We are building in place.
40423 ac_srcdir=.
40424 if test -z "$ac_top_builddir"; then
40425 ac_top_srcdir=.
40426 else
40427 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40428 fi ;;
40429 [\\/]* | ?:[\\/]* ) # Absolute path.
40430 ac_srcdir=$srcdir$ac_dir_suffix;
40431 ac_top_srcdir=$srcdir ;;
40432 *) # Relative path.
40433 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40434 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40435esac
8a7b1113
VZ
40436# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
40437# absolute.
40438ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
40439ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
40440ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
40441ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
a848cd7e
SC
40442
40443
40444 cd $ac_dir
40445
40446 # Check for guested configure; otherwise get Cygnus style configure.
40447 if test -f $ac_srcdir/configure.gnu; then
40448 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
40449 elif test -f $ac_srcdir/configure; then
40450 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
40451 elif test -f $ac_srcdir/configure.in; then
40452 ac_sub_configure=$ac_configure
40453 else
40454 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
40455echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40456 ac_sub_configure=
40457 fi
40458
40459 # The recursion is here.
40460 if test -n "$ac_sub_configure"; then
40461 # Make the cache file name correct relative to the subdirectory.
40462 case $cache_file in
40463 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40464 *) # Relative path.
8a7b1113 40465 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
40466 esac
40467
40468 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
40469echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40470 # The eval makes quoting arguments work.
40471 eval $ac_sub_configure $ac_sub_configure_args \
8a7b1113
VZ
40472 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
40473 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
40474echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
40475 { (exit 1); exit 1; }; }
40476 fi
40477
dcc1b6ad 40478 cd $ac_popdir
a848cd7e
SC
40479 done
40480fi
40481
40482
40483echo
40484echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
40485echo ""
40486echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
40487echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
40488
40489echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
40490echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
40491echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
40492
40493echo " What level of wxWindows compatibility should be enabled?"
40494echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
40495echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
40496
40497echo " Which libraries should wxWindows use?"
40498echo " jpeg ${wxUSE_LIBJPEG-none}"
40499echo " png ${wxUSE_LIBPNG-none}"
40500echo " regex ${wxUSE_REGEX}"
40501echo " tiff ${wxUSE_LIBTIFF-none}"
40502if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
40503echo " xpm ${wxUSE_LIBXPM-none}"
40504fi
40505echo " zlib ${wxUSE_ZLIB}"
40506echo " odbc ${wxUSE_ODBC}"
40507echo " expat ${wxUSE_EXPAT}"
40508echo " libmspack ${wxUSE_LIBMSPACK}"
40509echo " sdl ${wxUSE_LIBSDL}"
40510
40511echo ""
40512