]> git.saurik.com Git - wxWidgets.git/blob - configure
hyperlink is in adv, not core
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for 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
46 do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo 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.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if 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
100 fi
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
113 for as_dir in $PATH
114 do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
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
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
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
155 done
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
190 case `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= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if 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
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS=" $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='wxWidgets'
272 PACKAGE_TARNAME='wxwidgets'
273 PACKAGE_VERSION='2.7.0'
274 PACKAGE_STRING='wxWidgets 2.7.0'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
276
277 ac_unique_file="wx-config.in"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subdirs_all="$ac_subdirs_all src/expat"
316 ac_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 ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_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_ICC_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_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_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_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_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_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_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_USE_XRC_1 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_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 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_MSW_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_WINCE_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_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 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 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
317 ac_subst_files=''
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
338
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654 done
655
656 if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676 do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683 done
684
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729 else
730 ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777 ac_env_CXX_set=${CXX+set}
778 ac_env_CXX_value=$CXX
779 ac_cv_env_CXX_set=${CXX+set}
780 ac_cv_env_CXX_value=$CXX
781 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_env_CXXFLAGS_value=$CXXFLAGS
783 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785 ac_env_CXXCPP_set=${CXXCPP+set}
786 ac_env_CXXCPP_value=$CXXCPP
787 ac_cv_env_CXXCPP_set=${CXXCPP+set}
788 ac_cv_env_CXXCPP_value=$CXXCPP
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
797 \`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819 cat <<_ACEOF
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
822 [$ac_default_prefix]
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
824 [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846 _ACEOF
847
848 cat <<\_ACEOF
849
850 X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854 System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858 _ACEOF
859 fi
860
861 if test -n "$ac_init_help"; then
862 case $ac_init_help in
863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
864 esac
865 cat <<\_ACEOF
866
867 Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
874 --enable-nanox use NanoX
875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
892 --enable-universal_binary create Mac PowerPC and Intel Universal binary (not yet working)
893 --enable-compat24 enable wxWidgets 2.4 compatibility
894 --disable-compat26 disable wxWidgets 2.6 compatibility
895 --disable-rpath disable use of rpath for uninstalled builds
896 --enable-intl use internationalization system
897 --enable-config use wxConfig (and derived) classes
898 --enable-protocols use wxProtocol and derived classes
899 --enable-ftp use wxFTP (requires wxProtocol
900 --enable-http use wxHTTP (requires wxProtocol
901 --enable-fileproto use wxFileProto class (requires wxProtocol
902 --enable-sockets use socket/network classes
903 --enable-ole use OLE classes (Win32 only)
904 --enable-dataobj use data object classes
905 --enable-ipc use interprocess communication (wxSocket etc.)
906 --enable-apple_ieee use the Apple IEEE codec
907 --enable-arcstream use wxArchive streams
908 --enable-backtrace use wxStackWalker class for getting backtraces
909 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
910 --enable-cmdline use wxCmdLineParser class
911 --enable-datetime use wxDateTime class
912 --enable-debugreport use wxDebugReport class
913 --enable-dialupman use dialup network classes
914 --enable-dynlib use wxLibrary class for DLL loading
915 --enable-dynamicloader use (new) wxDynamicLibrary class
916 --enable-exceptions build exception-safe library
917 --enable-ffile use wxFFile class
918 --enable-file use wxFile class
919 --enable-filesystem use virtual file systems classes
920 --enable-fontmap use font encodings conversion classes
921 --enable-fs_inet use virtual HTTP/FTP filesystems
922 --enable-fs_zip use virtual ZIP filesystems
923 --enable-geometry use geometry class
924 --enable-log use logging system
925 --enable-longlong use wxLongLong class
926 --enable-mimetype use wxMimeTypesManager
927 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
928 --enable-snglinst use wxSingleInstanceChecker class
929 --enable-std_iostreams use standard C++ stream classes
930 --enable-std_string use standard C++ string classes
931 --enable-stdpaths use wxStandardPaths class
932 --enable-stopwatch use wxStopWatch class
933 --enable-streams use wxStream etc classes
934 --enable-sysoptions use wxSystemOptions
935 --enable-textbuf use wxTextBuffer class
936 --enable-textfile use wxTextFile class
937 --enable-timer use wxTimer class
938 --enable-unicode compile wxString with Unicode support
939 --enable-sound use wxSound class
940 --enable-mediactrl use wxMediaCtrl class
941 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
942 --enable-wxprintfv use wxWidgets implementation of vprintf()
943 --enable-zipstream use wxZip streams
944 --enable-url use wxURL class
945 --enable-protocol use wxProtocol class
946 --enable-protocol-http HTTP support in wxProtocol
947 --enable-protocol-ftp FTP support in wxProtocol
948 --enable-protocol-file FILE support in wxProtocol
949 --enable-threads use threads
950 --enable-docview use document view architecture
951 --enable-help use help subsystem
952 --enable-mshtmlhelp use MS HTML Help (win32)
953 --enable-html use wxHTML sub-library
954 --enable-htmlhelp use wxHTML-based help
955 --enable-xrc use XRC resources sub-library
956 --enable-constraints use layout-constraints system
957 --enable-printarch use printing architecture
958 --enable-mdi use multiple document interface architecture
959 --enable-mdidoc use docview architecture with MDI
960 --enable-loggui use standard GUI logger
961 --enable-logwin use wxLogWindow
962 --enable-logdialog use wxLogDialog
963 --enable-webkit use wxWebKitCtrl (Mac)
964 --enable-richtext use wxRichTextCtrl
965 --enable-postscript use wxPostscriptDC device context (default for gtk+)
966 --enable-prologio not available; see contrib
967 --enable-resources not available; see contrib
968 --enable-clipboard use wxClipboard class
969 --enable-dnd use Drag'n'Drop classes
970 --enable-metafile use win32 metafiles
971 --enable-controls use all usual controls
972 --enable-accel use accelerators
973 --enable-button use wxButton class
974 --enable-bmpbutton use wxBitmapButton class
975 --enable-calendar use wxCalendarCtrl class
976 --enable-caret use wxCaret class
977 --enable-checkbox use wxCheckBox class
978 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
979 --enable-choice use wxChoice class
980 --enable-choicebook use wxChoicebook class
981 --enable-combobox use wxComboBox class
982 --enable-comboctrl use wxComboCtrl class
983 --enable-datepick use wxDatePickerCtrl class
984 --enable-display use wxDisplay class
985 --enable-gauge use wxGauge class
986 --enable-grid use wxGrid class
987 --enable-dataviewctrl, use wxDataViewCtrl class
988 --enable-hyperlink use wxHyperlinkCtrl class
989 --enable-imaglist use wxImageList class
990 --enable-listbook use wxListbook class
991 --enable-listbox use wxListBox class
992 --enable-listctrl use wxListCtrl class
993 --enable-notebook use wxNotebook class
994 --enable-odcombobox use wxOwnerDrawnComboBox class
995 --enable-radiobox use wxRadioBox class
996 --enable-radiobtn use wxRadioButton class
997 --enable-sash use wxSashWindow class
998 --enable-scrollbar use wxScrollBar class and scrollable windows
999 --enable-slider use wxSlider class
1000 --enable-spinbtn use wxSpinButton class
1001 --enable-spinctrl use wxSpinCtrl class
1002 --enable-splitter use wxSplitterWindow class
1003 --enable-statbmp use wxStaticBitmap class
1004 --enable-statbox use wxStaticBox class
1005 --enable-statline use wxStaticLine class
1006 --enable-stattext use wxStaticText class
1007 --enable-statusbar use wxStatusBar class
1008 --enable-tabdialog use wxTabControl class
1009 --enable-textctrl use wxTextCtrl class
1010 --enable-togglebtn use wxToggleButton class
1011 --enable-toolbar use wxToolBar class
1012 --enable-tbarnative use native wxToolBar class
1013 --enable-tbarsmpl use wxToolBarSimple class
1014 --enable-treebook use wxTreebook class
1015 --enable-toolbook use wxToolbook class
1016 --enable-treectrl use wxTreeCtrl class
1017 --enable-tipwindow use wxTipWindow class
1018 --enable-popupwin use wxPopUpWindow class
1019 --enable-commondlg use all common dialogs
1020 --enable-choicedlg use wxChoiceDialog
1021 --enable-coldlg use wxColourDialog
1022 --enable-filedlg use wxFileDialog
1023 --enable-finddlg use wxFindReplaceDialog
1024 --enable-fontdlg use wxFontDialog
1025 --enable-dirdlg use wxDirDialog
1026 --enable-msgdlg use wxMessageDialog
1027 --enable-numberdlg use wxNumberEntryDialog
1028 --enable-splash use wxSplashScreen
1029 --enable-textdlg use wxTextDialog
1030 --enable-tipdlg use startup tips
1031 --enable-progressdlg use wxProgressDialog
1032 --enable-wizarddlg use wxWizard
1033 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1034 --enable-miniframe use wxMiniFrame class
1035 --enable-tooltips use wxToolTip class
1036 --enable-splines use spline drawing code
1037 --enable-mousewheel use mousewheel
1038 --enable-validators use wxValidator and derived classes
1039 --enable-busyinfo use wxBusyInfo
1040 --enable-joystick use wxJoystick
1041 --enable-metafiles use wxMetaFile (Win32 only)
1042 --enable-dragimage use wxDragImage
1043 --enable-accessibility enable accessibility support
1044 --enable-dccache cache temporary wxDC objects (Win32 only)
1045 --enable-palette use wxPalette class
1046 --enable-image use wxImage class
1047 --enable-gif use gif images (GIF file format)
1048 --enable-pcx use pcx images (PCX file format)
1049 --enable-iff use iff images (IFF file format)
1050 --enable-pnm use pnm images (PNM file format)
1051 --enable-xpm use xpm images (XPM file format)
1052 --enable-icocur use Windows ICO and CUR formats
1053 --enable-official_build official build of wxWidgets (win32 DLL only)
1054 --enable-vendor=VENDOR vendor name (win32 DLL only)
1055 --disable-largefile omit support for large files
1056 --disable-gtktest do not try to compile and run a test GTK+ program
1057 --disable-gtktest Do not try to compile and run a test GTK program
1058 --disable-sdltest Do not try to compile and run a test SDL program
1059 --enable-omf use OMF object format (OS/2)
1060 --disable-dependency-tracking
1061 don't use dependency tracking even if the compiler
1062 can
1063 --disable-precomp-headers
1064 don't use precompiled headers even if compiler can
1065
1066 Optional Packages:
1067 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1068 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1069 --without-subdirs don't generate makefiles for samples/demos/...
1070 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
1071 --with-motif use Motif/Lesstif
1072 --with-mac use Mac OS X
1073 --with-cocoa use Cocoa
1074 --with-wine use Wine
1075 --with-msw use MS-Windows
1076 --with-pm use OS/2 Presentation Manager
1077 --with-mgl use SciTech MGL
1078 --with-microwin use MicroWindows
1079 --with-x11 use X11
1080 --with-libpng use libpng (PNG image format)
1081 --with-libjpeg use libjpeg (JPEG file format)
1082 --with-libtiff use libtiff (TIFF file format)
1083 --with-libxpm use libxpm (XPM file format)
1084 --with-libmspack use libmspack (CHM help files loading)
1085 --with-sdl use SDL for audio on Unix
1086 --with-gnomeprint use GNOME print for printing under GNOME
1087 --with-gnomevfs use GNOME VFS for associating MIME types
1088 --with-hildon use Hildon framework for Nokia 770
1089 --with-opengl use OpenGL (or Mesa)
1090 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1091 --with-regex enable support for wxRegEx class
1092 --with-zlib use zlib for LZW compression
1093 --with-odbc use the IODBC and wxODBC classes
1094 --with-expat enable XML support using expat parser
1095 --with-flavour=NAME specify a name to identify this build
1096 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1097 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1098 --with-x use the X Window System
1099 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1100 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1101 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1102 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1103 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1104
1105 Some influential environment variables:
1106 CC C compiler command
1107 CFLAGS C compiler flags
1108 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1109 nonstandard directory <lib dir>
1110 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1111 headers in a nonstandard directory <include dir>
1112 CPP C preprocessor
1113 CXX C++ compiler command
1114 CXXFLAGS C++ compiler flags
1115 CXXCPP C++ preprocessor
1116
1117 Use these variables to override the choices made by `configure' or to help
1118 it to find libraries and programs with nonstandard names/locations.
1119
1120 Report bugs to <wx-dev@lists.wxwidgets.org>.
1121 _ACEOF
1122 fi
1123
1124 if test "$ac_init_help" = "recursive"; then
1125 # If there are subdirs, report their specific --help.
1126 ac_popdir=`pwd`
1127 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1128 test -d $ac_dir || continue
1129 ac_builddir=.
1130
1131 if test "$ac_dir" != .; then
1132 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1133 # A "../" for each directory in $ac_dir_suffix.
1134 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1135 else
1136 ac_dir_suffix= ac_top_builddir=
1137 fi
1138
1139 case $srcdir in
1140 .) # No --srcdir option. We are building in place.
1141 ac_srcdir=.
1142 if test -z "$ac_top_builddir"; then
1143 ac_top_srcdir=.
1144 else
1145 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1146 fi ;;
1147 [\\/]* | ?:[\\/]* ) # Absolute path.
1148 ac_srcdir=$srcdir$ac_dir_suffix;
1149 ac_top_srcdir=$srcdir ;;
1150 *) # Relative path.
1151 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1152 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1153 esac
1154
1155 # Do not use `cd foo && pwd` to compute absolute paths, because
1156 # the directories may not exist.
1157 case `pwd` in
1158 .) ac_abs_builddir="$ac_dir";;
1159 *)
1160 case "$ac_dir" in
1161 .) ac_abs_builddir=`pwd`;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1163 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1164 esac;;
1165 esac
1166 case $ac_abs_builddir in
1167 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1168 *)
1169 case ${ac_top_builddir}. in
1170 .) ac_abs_top_builddir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1172 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1173 esac;;
1174 esac
1175 case $ac_abs_builddir in
1176 .) ac_abs_srcdir=$ac_srcdir;;
1177 *)
1178 case $ac_srcdir in
1179 .) ac_abs_srcdir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1181 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1182 esac;;
1183 esac
1184 case $ac_abs_builddir in
1185 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1186 *)
1187 case $ac_top_srcdir in
1188 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1189 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1190 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1191 esac;;
1192 esac
1193
1194 cd $ac_dir
1195 # Check for guested configure; otherwise get Cygnus style configure.
1196 if test -f $ac_srcdir/configure.gnu; then
1197 echo
1198 $SHELL $ac_srcdir/configure.gnu --help=recursive
1199 elif test -f $ac_srcdir/configure; then
1200 echo
1201 $SHELL $ac_srcdir/configure --help=recursive
1202 elif test -f $ac_srcdir/configure.ac ||
1203 test -f $ac_srcdir/configure.in; then
1204 echo
1205 $ac_configure --help
1206 else
1207 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1208 fi
1209 cd "$ac_popdir"
1210 done
1211 fi
1212
1213 test -n "$ac_init_help" && exit 0
1214 if $ac_init_version; then
1215 cat <<\_ACEOF
1216 wxWidgets configure 2.7.0
1217 generated by GNU Autoconf 2.59
1218
1219 Copyright (C) 2003 Free Software Foundation, Inc.
1220 This configure script is free software; the Free Software Foundation
1221 gives unlimited permission to copy, distribute and modify it.
1222 _ACEOF
1223 exit 0
1224 fi
1225 exec 5>config.log
1226 cat >&5 <<_ACEOF
1227 This file contains any messages produced by compilers while
1228 running configure, to aid debugging if configure makes a mistake.
1229
1230 It was created by wxWidgets $as_me 2.7.0, which was
1231 generated by GNU Autoconf 2.59. Invocation command line was
1232
1233 $ $0 $@
1234
1235 _ACEOF
1236 {
1237 cat <<_ASUNAME
1238 ## --------- ##
1239 ## Platform. ##
1240 ## --------- ##
1241
1242 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1243 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1244 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1245 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1246 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1247
1248 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1249 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1250
1251 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1252 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1253 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1254 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1255 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1256 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1257 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1258
1259 _ASUNAME
1260
1261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1262 for as_dir in $PATH
1263 do
1264 IFS=$as_save_IFS
1265 test -z "$as_dir" && as_dir=.
1266 echo "PATH: $as_dir"
1267 done
1268
1269 } >&5
1270
1271 cat >&5 <<_ACEOF
1272
1273
1274 ## ----------- ##
1275 ## Core tests. ##
1276 ## ----------- ##
1277
1278 _ACEOF
1279
1280
1281 # Keep a trace of the command line.
1282 # Strip out --no-create and --no-recursion so they do not pile up.
1283 # Strip out --silent because we don't want to record it for future runs.
1284 # Also quote any args containing shell meta-characters.
1285 # Make two passes to allow for proper duplicate-argument suppression.
1286 ac_configure_args=
1287 ac_configure_args0=
1288 ac_configure_args1=
1289 ac_sep=
1290 ac_must_keep_next=false
1291 for ac_pass in 1 2
1292 do
1293 for ac_arg
1294 do
1295 case $ac_arg in
1296 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1298 | -silent | --silent | --silen | --sile | --sil)
1299 continue ;;
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 esac
1303 case $ac_pass in
1304 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1305 2)
1306 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1307 if test $ac_must_keep_next = true; then
1308 ac_must_keep_next=false # Got value, back to normal.
1309 else
1310 case $ac_arg in
1311 *=* | --config-cache | -C | -disable-* | --disable-* \
1312 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1313 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1314 | -with-* | --with-* | -without-* | --without-* | --x)
1315 case "$ac_configure_args0 " in
1316 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1317 esac
1318 ;;
1319 -* ) ac_must_keep_next=true ;;
1320 esac
1321 fi
1322 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1323 # Get rid of the leading space.
1324 ac_sep=" "
1325 ;;
1326 esac
1327 done
1328 done
1329 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1330 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1331
1332 # When interrupted or exit'd, cleanup temporary files, and complete
1333 # config.log. We remove comments because anyway the quotes in there
1334 # would cause problems or look ugly.
1335 # WARNING: Be sure not to use single quotes in there, as some shells,
1336 # such as our DU 5.0 friend, will then `close' the trap.
1337 trap 'exit_status=$?
1338 # Save into config.log some information that might help in debugging.
1339 {
1340 echo
1341
1342 cat <<\_ASBOX
1343 ## ---------------- ##
1344 ## Cache variables. ##
1345 ## ---------------- ##
1346 _ASBOX
1347 echo
1348 # The following way of writing the cache mishandles newlines in values,
1349 {
1350 (set) 2>&1 |
1351 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1352 *ac_space=\ *)
1353 sed -n \
1354 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1356 ;;
1357 *)
1358 sed -n \
1359 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1360 ;;
1361 esac;
1362 }
1363 echo
1364
1365 cat <<\_ASBOX
1366 ## ----------------- ##
1367 ## Output variables. ##
1368 ## ----------------- ##
1369 _ASBOX
1370 echo
1371 for ac_var in $ac_subst_vars
1372 do
1373 eval ac_val=$`echo $ac_var`
1374 echo "$ac_var='"'"'$ac_val'"'"'"
1375 done | sort
1376 echo
1377
1378 if test -n "$ac_subst_files"; then
1379 cat <<\_ASBOX
1380 ## ------------- ##
1381 ## Output files. ##
1382 ## ------------- ##
1383 _ASBOX
1384 echo
1385 for ac_var in $ac_subst_files
1386 do
1387 eval ac_val=$`echo $ac_var`
1388 echo "$ac_var='"'"'$ac_val'"'"'"
1389 done | sort
1390 echo
1391 fi
1392
1393 if test -s confdefs.h; then
1394 cat <<\_ASBOX
1395 ## ----------- ##
1396 ## confdefs.h. ##
1397 ## ----------- ##
1398 _ASBOX
1399 echo
1400 sed "/^$/d" confdefs.h | sort
1401 echo
1402 fi
1403 test "$ac_signal" != 0 &&
1404 echo "$as_me: caught signal $ac_signal"
1405 echo "$as_me: exit $exit_status"
1406 } >&5
1407 rm -f core *.core &&
1408 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1409 exit $exit_status
1410 ' 0
1411 for ac_signal in 1 2 13 15; do
1412 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1413 done
1414 ac_signal=0
1415
1416 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1417 rm -rf conftest* confdefs.h
1418 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1419 echo >confdefs.h
1420
1421 # Predefined preprocessor variables.
1422
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_NAME "$PACKAGE_NAME"
1425 _ACEOF
1426
1427
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1430 _ACEOF
1431
1432
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1435 _ACEOF
1436
1437
1438 cat >>confdefs.h <<_ACEOF
1439 #define PACKAGE_STRING "$PACKAGE_STRING"
1440 _ACEOF
1441
1442
1443 cat >>confdefs.h <<_ACEOF
1444 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1445 _ACEOF
1446
1447
1448 # Let the site file select an alternate cache file if it wants to.
1449 # Prefer explicitly selected file to automatically selected ones.
1450 if test -z "$CONFIG_SITE"; then
1451 if test "x$prefix" != xNONE; then
1452 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1453 else
1454 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1455 fi
1456 fi
1457 for ac_site_file in $CONFIG_SITE; do
1458 if test -r "$ac_site_file"; then
1459 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1460 echo "$as_me: loading site script $ac_site_file" >&6;}
1461 sed 's/^/| /' "$ac_site_file" >&5
1462 . "$ac_site_file"
1463 fi
1464 done
1465
1466 if test -r "$cache_file"; then
1467 # Some versions of bash will fail to source /dev/null (special
1468 # files actually), so we avoid doing that.
1469 if test -f "$cache_file"; then
1470 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1471 echo "$as_me: loading cache $cache_file" >&6;}
1472 case $cache_file in
1473 [\\/]* | ?:[\\/]* ) . $cache_file;;
1474 *) . ./$cache_file;;
1475 esac
1476 fi
1477 else
1478 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1479 echo "$as_me: creating cache $cache_file" >&6;}
1480 >$cache_file
1481 fi
1482
1483 # Check that the precious variables saved in the cache have kept the same
1484 # value.
1485 ac_cache_corrupted=false
1486 for ac_var in `(set) 2>&1 |
1487 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1488 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1489 eval ac_new_set=\$ac_env_${ac_var}_set
1490 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1491 eval ac_new_val="\$ac_env_${ac_var}_value"
1492 case $ac_old_set,$ac_new_set in
1493 set,)
1494 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1495 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1496 ac_cache_corrupted=: ;;
1497 ,set)
1498 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1499 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1500 ac_cache_corrupted=: ;;
1501 ,);;
1502 *)
1503 if test "x$ac_old_val" != "x$ac_new_val"; then
1504 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1505 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1506 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1507 echo "$as_me: former value: $ac_old_val" >&2;}
1508 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1509 echo "$as_me: current value: $ac_new_val" >&2;}
1510 ac_cache_corrupted=:
1511 fi;;
1512 esac
1513 # Pass precious variables to config.status.
1514 if test "$ac_new_set" = set; then
1515 case $ac_new_val in
1516 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1517 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1518 *) ac_arg=$ac_var=$ac_new_val ;;
1519 esac
1520 case " $ac_configure_args " in
1521 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1522 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1523 esac
1524 fi
1525 done
1526 if $ac_cache_corrupted; then
1527 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1528 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1529 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1530 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1531 { (exit 1); exit 1; }; }
1532 fi
1533
1534 ac_ext=c
1535 ac_cpp='$CPP $CPPFLAGS'
1536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569 ac_aux_dir=
1570 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1571 if test -f $ac_dir/install-sh; then
1572 ac_aux_dir=$ac_dir
1573 ac_install_sh="$ac_aux_dir/install-sh -c"
1574 break
1575 elif test -f $ac_dir/install.sh; then
1576 ac_aux_dir=$ac_dir
1577 ac_install_sh="$ac_aux_dir/install.sh -c"
1578 break
1579 elif test -f $ac_dir/shtool; then
1580 ac_aux_dir=$ac_dir
1581 ac_install_sh="$ac_aux_dir/shtool install -c"
1582 break
1583 fi
1584 done
1585 if test -z "$ac_aux_dir"; then
1586 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1587 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1588 { (exit 1); exit 1; }; }
1589 fi
1590 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1591 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1592 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1593
1594 # Make sure we can run config.sub.
1595 $ac_config_sub sun4 >/dev/null 2>&1 ||
1596 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1597 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1598 { (exit 1); exit 1; }; }
1599
1600 echo "$as_me:$LINENO: checking build system type" >&5
1601 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1602 if test "${ac_cv_build+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 ac_cv_build_alias=$build_alias
1606 test -z "$ac_cv_build_alias" &&
1607 ac_cv_build_alias=`$ac_config_guess`
1608 test -z "$ac_cv_build_alias" &&
1609 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1610 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1611 { (exit 1); exit 1; }; }
1612 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1613 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1614 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1615 { (exit 1); exit 1; }; }
1616
1617 fi
1618 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1619 echo "${ECHO_T}$ac_cv_build" >&6
1620 build=$ac_cv_build
1621 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1624
1625
1626 echo "$as_me:$LINENO: checking host system type" >&5
1627 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1628 if test "${ac_cv_host+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631 ac_cv_host_alias=$host_alias
1632 test -z "$ac_cv_host_alias" &&
1633 ac_cv_host_alias=$ac_cv_build_alias
1634 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1638
1639 fi
1640 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1641 echo "${ECHO_T}$ac_cv_host" >&6
1642 host=$ac_cv_host
1643 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648 echo "$as_me:$LINENO: checking target system type" >&5
1649 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1650 if test "${ac_cv_target+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653 ac_cv_target_alias=$target_alias
1654 test "x$ac_cv_target_alias" = "x" &&
1655 ac_cv_target_alias=$ac_cv_host_alias
1656 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1660
1661 fi
1662 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1663 echo "${ECHO_T}$ac_cv_target" >&6
1664 target=$ac_cv_target
1665 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670 # The aliases save the names the user supplied, while $host etc.
1671 # will get canonicalized.
1672 test -n "$target_alias" &&
1673 test "$program_prefix$program_suffix$program_transform_name" = \
1674 NONENONEs,x,x, &&
1675 program_prefix=${target_alias}-
1676
1677
1678
1679 wx_major_version_number=2
1680 wx_minor_version_number=7
1681 wx_release_number=0
1682 wx_subrelease_number=0
1683
1684 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1685 WX_VERSION=$WX_RELEASE.$wx_release_number
1686 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1687
1688 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1689
1690
1691
1692
1693 USE_UNIX=1
1694 USE_OS2=0
1695 USE_WIN32=0
1696 USE_DOS=0
1697 USE_BEOS=0
1698 USE_MAC=0
1699
1700 USE_AIX=
1701 USE_BSD= USE_DARWIN= USE_FREEBSD=
1702 USE_GNU= USE_HPUX=
1703 USE_LINUX=
1704 USE_NETBSD=
1705 USE_OPENBSD=
1706 USE_OSF= USE_SGI=
1707 USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1708 USE_ULTRIX=
1709 USE_UNIXWARE=
1710
1711 USE_ALPHA=
1712
1713 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1714
1715 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1716
1717 DEFAULT_wxUSE_COCOA=0
1718 DEFAULT_wxUSE_GTK=0
1719 DEFAULT_wxUSE_MAC=0
1720 DEFAULT_wxUSE_MGL=0
1721 DEFAULT_wxUSE_MICROWIN=0
1722 DEFAULT_wxUSE_MOTIF=0
1723 DEFAULT_wxUSE_MSW=0
1724 DEFAULT_wxUSE_PM=0
1725 DEFAULT_wxUSE_X11=0
1726
1727 DEFAULT_DEFAULT_wxUSE_COCOA=0
1728 DEFAULT_DEFAULT_wxUSE_GTK=0
1729 DEFAULT_DEFAULT_wxUSE_MAC=0
1730 DEFAULT_DEFAULT_wxUSE_MGL=0
1731 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1733 DEFAULT_DEFAULT_wxUSE_MSW=0
1734 DEFAULT_DEFAULT_wxUSE_PM=0
1735 DEFAULT_DEFAULT_wxUSE_X11=0
1736
1737 PROGRAM_EXT=
1738 SO_SUFFIX=so
1739 SAMPLES_RPATH_FLAG=
1740 SAMPLES_RPATH_POSTLINK=
1741
1742 DEFAULT_STD_FLAG=yes
1743
1744 case "${host}" in
1745 *-hp-hpux* )
1746 USE_HPUX=1
1747 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1748 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1749 SO_SUFFIX=sl
1750 cat >>confdefs.h <<\_ACEOF
1751 #define __HPUX__ 1
1752 _ACEOF
1753
1754
1755 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
1756 ;;
1757 *-*-linux* )
1758 USE_LINUX=1
1759 cat >>confdefs.h <<\_ACEOF
1760 #define __LINUX__ 1
1761 _ACEOF
1762
1763 TMP=`uname -m`
1764 if test "x$TMP" = "xalpha"; then
1765 USE_ALPHA=1
1766 cat >>confdefs.h <<\_ACEOF
1767 #define __ALPHA__ 1
1768 _ACEOF
1769
1770 fi
1771 DEFAULT_DEFAULT_wxUSE_GTK=1
1772 ;;
1773 *-*-gnu* | *-*-k*bsd*-gnu )
1774 USE_GNU=1
1775 TMP=`uname -m`
1776 if test "x$TMP" = "xalpha"; then
1777 USE_ALPHA=1
1778 cat >>confdefs.h <<\_ACEOF
1779 #define __ALPHA__ 1
1780 _ACEOF
1781
1782 fi
1783 DEFAULT_DEFAULT_wxUSE_GTK=1
1784 ;;
1785 *-*-irix5* | *-*-irix6* )
1786 USE_SGI=1
1787 USE_SVR4=1
1788 cat >>confdefs.h <<\_ACEOF
1789 #define __SGI__ 1
1790 _ACEOF
1791
1792 cat >>confdefs.h <<\_ACEOF
1793 #define __SVR4__ 1
1794 _ACEOF
1795
1796 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1797 ;;
1798 *-*-solaris2* )
1799 USE_SUN=1
1800 USE_SOLARIS=1
1801 USE_SVR4=1
1802 cat >>confdefs.h <<\_ACEOF
1803 #define __SUN__ 1
1804 _ACEOF
1805
1806 cat >>confdefs.h <<\_ACEOF
1807 #define __SOLARIS__ 1
1808 _ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811 #define __SVR4__ 1
1812 _ACEOF
1813
1814 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1815 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1816 ;;
1817 *-*-sunos4* )
1818 USE_SUN=1
1819 USE_SUNOS=1
1820 USE_BSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822 #define __SUN__ 1
1823 _ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826 #define __SUNOS__ 1
1827 _ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830 #define __BSD__ 1
1831 _ACEOF
1832
1833 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1834 ;;
1835 *-*-freebsd*)
1836 USE_BSD=1
1837 USE_FREEBSD=1
1838 cat >>confdefs.h <<\_ACEOF
1839 #define __FREEBSD__ 1
1840 _ACEOF
1841
1842 cat >>confdefs.h <<\_ACEOF
1843 #define __BSD__ 1
1844 _ACEOF
1845
1846 DEFAULT_DEFAULT_wxUSE_GTK=1
1847 ;;
1848 *-*-openbsd*)
1849 USE_BSD=1
1850 USE_OPENBSD=1
1851 cat >>confdefs.h <<\_ACEOF
1852 #define __OPENBSD__ 1
1853 _ACEOF
1854
1855 cat >>confdefs.h <<\_ACEOF
1856 #define __BSD__ 1
1857 _ACEOF
1858
1859 DEFAULT_DEFAULT_wxUSE_GTK=1
1860 ;;
1861 *-*-netbsd*)
1862 USE_BSD=1
1863 USE_NETBSD=1
1864 cat >>confdefs.h <<\_ACEOF
1865 #define __NETBSD__ 1
1866 _ACEOF
1867
1868 cat >>confdefs.h <<\_ACEOF
1869 #define __BSD__ 1
1870 _ACEOF
1871
1872 DEFAULT_DEFAULT_wxUSE_GTK=1
1873 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1874
1875 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
1876 ;;
1877 *-*-osf* )
1878 USE_ALPHA=1
1879 USE_OSF=1
1880 cat >>confdefs.h <<\_ACEOF
1881 #define __ALPHA__ 1
1882 _ACEOF
1883
1884 cat >>confdefs.h <<\_ACEOF
1885 #define __OSF__ 1
1886 _ACEOF
1887
1888 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1889 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1890 ;;
1891 *-*-dgux5* )
1892 USE_ALPHA=1
1893 USE_SVR4=1
1894 cat >>confdefs.h <<\_ACEOF
1895 #define __ALPHA__ 1
1896 _ACEOF
1897
1898 cat >>confdefs.h <<\_ACEOF
1899 #define __SVR4__ 1
1900 _ACEOF
1901
1902 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1903 ;;
1904 *-*-sysv5* )
1905 USE_SYSV=1
1906 USE_SVR4=1
1907 cat >>confdefs.h <<\_ACEOF
1908 #define __SYSV__ 1
1909 _ACEOF
1910
1911 cat >>confdefs.h <<\_ACEOF
1912 #define __SVR4__ 1
1913 _ACEOF
1914
1915 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1916 ;;
1917 *-*-aix* )
1918 USE_AIX=1
1919 USE_SYSV=1
1920 USE_SVR4=1
1921 SO_SUFFIX=a
1922 cat >>confdefs.h <<\_ACEOF
1923 #define __AIX__ 1
1924 _ACEOF
1925
1926 cat >>confdefs.h <<\_ACEOF
1927 #define __SYSV__ 1
1928 _ACEOF
1929
1930 cat >>confdefs.h <<\_ACEOF
1931 #define __SVR4__ 1
1932 _ACEOF
1933
1934 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1935 ;;
1936
1937 *-*-*UnixWare*)
1938 USE_SYSV=1
1939 USE_SVR4=1
1940 USE_UNIXWARE=1
1941 cat >>confdefs.h <<\_ACEOF
1942 #define __UNIXWARE__ 1
1943 _ACEOF
1944
1945 ;;
1946
1947 *-*-cygwin* | *-*-mingw32* )
1948 SO_SUFFIX=dll
1949 PROGRAM_EXT=".exe"
1950 DEFAULT_DEFAULT_wxUSE_MSW=1
1951 DEFAULT_STD_FLAG=no
1952 ;;
1953
1954 *-pc-msdosdjgpp )
1955 USE_UNIX=0
1956 USE_DOS=1
1957 cat >>confdefs.h <<\_ACEOF
1958 #define __DOS__ 1
1959 _ACEOF
1960
1961 PROGRAM_EXT=".exe"
1962 DEFAULT_DEFAULT_wxUSE_MGL=1
1963 ;;
1964
1965 *-pc-os2_emx | *-pc-os2-emx )
1966 cat >>confdefs.h <<\_ACEOF
1967 #define __EMX__ 1
1968 _ACEOF
1969
1970 USE_OS2=1
1971 cat >>confdefs.h <<\_ACEOF
1972 #define __OS2__ 1
1973 _ACEOF
1974
1975 PROGRAM_EXT=".exe"
1976 DEFAULT_DEFAULT_wxUSE_PM=1
1977 CXX=gcc
1978 LDFLAGS="$LDFLAGS -Zcrtdll"
1979 ac_executable_extensions=".exe"
1980 export ac_executable_extensions
1981 ac_save_IFS="$IFS"
1982 IFS='\\'
1983 ac_TEMP_PATH=
1984 for ac_dir in $PATH; do
1985 IFS=$ac_save_IFS
1986 if test -z "$ac_TEMP_PATH"; then
1987 ac_TEMP_PATH="$ac_dir"
1988 else
1989 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1990 fi
1991 done
1992 export PATH="$ac_TEMP_PATH"
1993 unset ac_TEMP_PATH
1994 DEFAULT_STD_FLAG=no
1995 ;;
1996
1997 *-*-darwin* )
1998 USE_BSD=1
1999 USE_DARWIN=1
2000 SO_SUFFIX=dylib
2001 cat >>confdefs.h <<\_ACEOF
2002 #define __BSD__ 1
2003 _ACEOF
2004
2005 cat >>confdefs.h <<\_ACEOF
2006 #define __DARWIN__ 1
2007 _ACEOF
2008
2009 cat >>confdefs.h <<\_ACEOF
2010 #define TARGET_CARBON 1
2011 _ACEOF
2012
2013 DEFAULT_DEFAULT_wxUSE_MAC=1
2014 DEFAULT_STD_FLAG=no
2015 ;;
2016 powerpc-apple-macos* )
2017 USE_UNIX=0
2018 ac_cv_c_bigendian=yes
2019 SO_SUFFIX=shlib
2020 DEFAULT_DEFAULT_wxUSE_MAC=1
2021 DEFAULT_STD_FLAG=no
2022 ;;
2023
2024 *-*-beos* )
2025 USE_BEOS=1
2026 cat >>confdefs.h <<\_ACEOF
2027 #define __BEOS__ 1
2028 _ACEOF
2029
2030 ;;
2031
2032 *)
2033 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2034 echo "$as_me: error: unknown system type ${host}." >&2;}
2035 { (exit 1); exit 1; }; }
2036 esac
2037
2038
2039
2040
2041 wx_arg_cache_file="configarg.cache"
2042 echo "loading argument cache $wx_arg_cache_file"
2043 rm -f ${wx_arg_cache_file}.tmp
2044 touch ${wx_arg_cache_file}.tmp
2045 touch ${wx_arg_cache_file}
2046
2047
2048 DEBUG_CONFIGURE=0
2049 if test $DEBUG_CONFIGURE = 1; then
2050 DEFAULT_wxUSE_UNIVERSAL=no
2051 DEFAULT_wxUSE_STL=no
2052
2053 DEFAULT_wxUSE_NANOX=no
2054
2055 DEFAULT_wxUSE_THREADS=yes
2056
2057 DEFAULT_wxUSE_SHARED=yes
2058 DEFAULT_wxUSE_OPTIMISE=no
2059 DEFAULT_wxUSE_PROFILE=no
2060 DEFAULT_wxUSE_NO_DEPS=no
2061 DEFAULT_wxUSE_NO_RTTI=no
2062 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2063 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2064 DEFAULT_wxUSE_RPATH=yes
2065 DEFAULT_wxUSE_PERMISSIVE=no
2066 DEFAULT_wxUSE_DEBUG_FLAG=yes
2067 DEFAULT_wxUSE_DEBUG_INFO=yes
2068 DEFAULT_wxUSE_DEBUG_GDB=yes
2069 DEFAULT_wxUSE_MEM_TRACING=no
2070 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2071 DEFAULT_wxUSE_DMALLOC=no
2072 DEFAULT_wxUSE_APPLE_IEEE=no
2073
2074 DEFAULT_wxUSE_EXCEPTIONS=no
2075 DEFAULT_wxUSE_LOG=yes
2076 DEFAULT_wxUSE_LOGWINDOW=no
2077 DEFAULT_wxUSE_LOGGUI=no
2078 DEFAULT_wxUSE_LOGDIALOG=no
2079
2080 DEFAULT_wxUSE_GUI=yes
2081 DEFAULT_wxUSE_CONTROLS=no
2082
2083 DEFAULT_wxUSE_REGEX=no
2084 DEFAULT_wxUSE_XML=no
2085 DEFAULT_wxUSE_EXPAT=no
2086 DEFAULT_wxUSE_ZLIB=no
2087 DEFAULT_wxUSE_LIBPNG=no
2088 DEFAULT_wxUSE_LIBJPEG=no
2089 DEFAULT_wxUSE_LIBTIFF=no
2090 DEFAULT_wxUSE_LIBXPM=no
2091 DEFAULT_wxUSE_LIBMSPACK=no
2092 DEFAULT_wxUSE_LIBSDL=no
2093 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2094 DEFAULT_wxUSE_LIBGNOMEVFS=no
2095 DEFAULT_wxUSE_LIBHILDON=no
2096 DEFAULT_wxUSE_ODBC=no
2097 DEFAULT_wxUSE_OPENGL=no
2098
2099 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2100 DEFAULT_wxUSE_STACKWALKER=no
2101 DEFAULT_wxUSE_DEBUGREPORT=no
2102 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2103 DEFAULT_wxUSE_STD_IOSTREAM=no
2104 DEFAULT_wxUSE_STD_STRING=no
2105 DEFAULT_wxUSE_CMDLINE_PARSER=no
2106 DEFAULT_wxUSE_DATETIME=no
2107 DEFAULT_wxUSE_TIMER=no
2108 DEFAULT_wxUSE_STOPWATCH=no
2109 DEFAULT_wxUSE_FILE=no
2110 DEFAULT_wxUSE_FFILE=no
2111 DEFAULT_wxUSE_STDPATHS=no
2112 DEFAULT_wxUSE_TEXTBUFFER=no
2113 DEFAULT_wxUSE_TEXTFILE=no
2114 DEFAULT_wxUSE_SOUND=no
2115 DEFAULT_wxUSE_MEDIACTRL=no
2116 DEFAULT_wxUSE_GSTREAMER8=no
2117 DEFAULT_wxUSE_INTL=no
2118 DEFAULT_wxUSE_CONFIG=no
2119 DEFAULT_wxUSE_FONTMAP=no
2120 DEFAULT_wxUSE_STREAMS=no
2121 DEFAULT_wxUSE_SOCKETS=no
2122 DEFAULT_wxUSE_OLE=no
2123 DEFAULT_wxUSE_DATAOBJ=no
2124 DEFAULT_wxUSE_DIALUP_MANAGER=no
2125 DEFAULT_wxUSE_JOYSTICK=no
2126 DEFAULT_wxUSE_DYNLIB_CLASS=no
2127 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2128 DEFAULT_wxUSE_LONGLONG=no
2129 DEFAULT_wxUSE_GEOMETRY=no
2130
2131 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2132 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2133 DEFAULT_wxUSE_POSTSCRIPT=no
2134
2135 DEFAULT_wxUSE_CLIPBOARD=no
2136 DEFAULT_wxUSE_TOOLTIPS=no
2137 DEFAULT_wxUSE_DRAG_AND_DROP=no
2138 DEFAULT_wxUSE_DRAGIMAGE=no
2139 DEFAULT_wxUSE_SPLINES=no
2140 DEFAULT_wxUSE_MOUSEWHEEL=no
2141
2142 DEFAULT_wxUSE_MDI=no
2143 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2144 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2145 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2146
2147 DEFAULT_wxUSE_RESOURCES=no
2148 DEFAULT_wxUSE_CONSTRAINTS=no
2149 DEFAULT_wxUSE_IPC=no
2150 DEFAULT_wxUSE_HELP=no
2151 DEFAULT_wxUSE_MS_HTML_HELP=no
2152 DEFAULT_wxUSE_WXHTML_HELP=no
2153 DEFAULT_wxUSE_TREELAYOUT=no
2154 DEFAULT_wxUSE_METAFILE=no
2155 DEFAULT_wxUSE_MIMETYPE=no
2156 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2157 DEFAULT_wxUSE_PROTOCOL=no
2158 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2159 DEFAULT_wxUSE_PROTOCOL_FTP=no
2160 DEFAULT_wxUSE_PROTOCOL_FILE=no
2161 DEFAULT_wxUSE_URL=no
2162
2163 DEFAULT_wxUSE_COMMONDLGS=no
2164 DEFAULT_wxUSE_CHOICEDLG=no
2165 DEFAULT_wxUSE_COLOURDLG=no
2166 DEFAULT_wxUSE_DIRDLG=no
2167 DEFAULT_wxUSE_FILEDLG=no
2168 DEFAULT_wxUSE_FINDREPLDLG=no
2169 DEFAULT_wxUSE_FONTDLG=no
2170 DEFAULT_wxUSE_MSGDLG=no
2171 DEFAULT_wxUSE_NUMBERDLG=no
2172 DEFAULT_wxUSE_TEXTDLG=no
2173 DEFAULT_wxUSE_SPLASH=no
2174 DEFAULT_wxUSE_STARTUP_TIPS=no
2175 DEFAULT_wxUSE_PROGRESSDLG=no
2176 DEFAULT_wxUSE_WIZARDDLG=no
2177
2178 DEFAULT_wxUSE_MENUS=no
2179 DEFAULT_wxUSE_MINIFRAME=no
2180 DEFAULT_wxUSE_HTML=no
2181 DEFAULT_wxUSE_RICHTEXT=no
2182 DEFAULT_wxUSE_XRC=no
2183 DEFAULT_wxUSE_WEBKIT=no
2184 DEFAULT_wxUSE_FILESYSTEM=no
2185 DEFAULT_wxUSE_FS_INET=no
2186 DEFAULT_wxUSE_FS_ZIP=no
2187 DEFAULT_wxUSE_BUSYINFO=no
2188 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2189 DEFAULT_wxUSE_ZIPSTREAM=no
2190 DEFAULT_wxUSE_VALIDATORS=no
2191
2192 DEFAULT_wxUSE_ACCEL=no
2193 DEFAULT_wxUSE_BUTTON=no
2194 DEFAULT_wxUSE_BMPBUTTON=no
2195 DEFAULT_wxUSE_CALCTRL=no
2196 DEFAULT_wxUSE_CARET=no
2197 DEFAULT_wxUSE_CHECKBOX=no
2198 DEFAULT_wxUSE_CHECKLST=no
2199 DEFAULT_wxUSE_CHOICE=no
2200 DEFAULT_wxUSE_CHOICEBOOK=no
2201 DEFAULT_wxUSE_COMBOBOX=no
2202 DEFAULT_wxUSE_COMBOCTRL=no
2203 DEFAULT_wxUSE_DATEPICKCTRL=no
2204 DEFAULT_wxUSE_DISPLAY=no
2205 DEFAULT_wxUSE_GAUGE=no
2206 DEFAULT_wxUSE_GRID=no
2207 DEFAULT_wxUSE_HYPERLINKCTRL=no
2208 DEFAULT_wxUSE_DATAVIEWCTRL=no
2209 DEFAULT_wxUSE_IMAGLIST=no
2210 DEFAULT_wxUSE_LISTBOOK=no
2211 DEFAULT_wxUSE_LISTBOX=no
2212 DEFAULT_wxUSE_LISTCTRL=no
2213 DEFAULT_wxUSE_NOTEBOOK=no
2214 DEFAULT_wxUSE_ODCOMBOBOX=no
2215 DEFAULT_wxUSE_RADIOBOX=no
2216 DEFAULT_wxUSE_RADIOBTN=no
2217 DEFAULT_wxUSE_SASH=no
2218 DEFAULT_wxUSE_SCROLLBAR=no
2219 DEFAULT_wxUSE_SLIDER=no
2220 DEFAULT_wxUSE_SPINBTN=no
2221 DEFAULT_wxUSE_SPINCTRL=no
2222 DEFAULT_wxUSE_SPLITTER=no
2223 DEFAULT_wxUSE_STATBMP=no
2224 DEFAULT_wxUSE_STATBOX=no
2225 DEFAULT_wxUSE_STATLINE=no
2226 DEFAULT_wxUSE_STATTEXT=no
2227 DEFAULT_wxUSE_STATUSBAR=yes
2228 DEFAULT_wxUSE_TAB_DIALOG=no
2229 DEFAULT_wxUSE_TEXTCTRL=no
2230 DEFAULT_wxUSE_TOGGLEBTN=no
2231 DEFAULT_wxUSE_TOOLBAR=no
2232 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2233 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2234 DEFAULT_wxUSE_TREEBOOK=no
2235 DEFAULT_wxUSE_TOOLBOOK=no
2236 DEFAULT_wxUSE_TREECTRL=no
2237 DEFAULT_wxUSE_POPUPWIN=no
2238 DEFAULT_wxUSE_TIPWINDOW=no
2239
2240 DEFAULT_wxUSE_UNICODE=no
2241 DEFAULT_wxUSE_UNICODE_MSLU=no
2242 DEFAULT_wxUSE_WCSRTOMBS=no
2243
2244 DEFAULT_wxUSE_PALETTE=no
2245 DEFAULT_wxUSE_IMAGE=no
2246 DEFAULT_wxUSE_GIF=no
2247 DEFAULT_wxUSE_PCX=no
2248 DEFAULT_wxUSE_PNM=no
2249 DEFAULT_wxUSE_IFF=no
2250 DEFAULT_wxUSE_XPM=no
2251 DEFAULT_wxUSE_ICO_CUR=no
2252 DEFAULT_wxUSE_ACCESSIBILITY=no
2253
2254 DEFAULT_wxUSE_MONOLITHIC=no
2255 DEFAULT_wxUSE_PLUGINS=no
2256 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2257 else
2258 DEFAULT_wxUSE_UNIVERSAL=no
2259 DEFAULT_wxUSE_STL=no
2260
2261 DEFAULT_wxUSE_NANOX=no
2262
2263 DEFAULT_wxUSE_THREADS=yes
2264
2265 DEFAULT_wxUSE_SHARED=yes
2266 DEFAULT_wxUSE_OPTIMISE=yes
2267 DEFAULT_wxUSE_PROFILE=no
2268 DEFAULT_wxUSE_NO_DEPS=no
2269 DEFAULT_wxUSE_NO_RTTI=no
2270 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2271 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2272 DEFAULT_wxUSE_RPATH=yes
2273 DEFAULT_wxUSE_PERMISSIVE=no
2274 DEFAULT_wxUSE_DEBUG_FLAG=no
2275 DEFAULT_wxUSE_DEBUG_INFO=no
2276 DEFAULT_wxUSE_DEBUG_GDB=no
2277 DEFAULT_wxUSE_MEM_TRACING=no
2278 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2279 DEFAULT_wxUSE_DMALLOC=no
2280 DEFAULT_wxUSE_APPLE_IEEE=yes
2281
2282 DEFAULT_wxUSE_EXCEPTIONS=yes
2283 DEFAULT_wxUSE_LOG=yes
2284 DEFAULT_wxUSE_LOGWINDOW=yes
2285 DEFAULT_wxUSE_LOGGUI=yes
2286 DEFAULT_wxUSE_LOGDIALOG=yes
2287
2288 DEFAULT_wxUSE_GUI=yes
2289
2290 DEFAULT_wxUSE_REGEX=yes
2291 DEFAULT_wxUSE_XML=yes
2292 DEFAULT_wxUSE_EXPAT=yes
2293 DEFAULT_wxUSE_ZLIB=yes
2294 DEFAULT_wxUSE_LIBPNG=yes
2295 DEFAULT_wxUSE_LIBJPEG=yes
2296 DEFAULT_wxUSE_LIBTIFF=yes
2297 DEFAULT_wxUSE_LIBXPM=yes
2298 DEFAULT_wxUSE_LIBMSPACK=yes
2299 DEFAULT_wxUSE_LIBSDL=no
2300 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2301 DEFAULT_wxUSE_LIBGNOMEVFS=no
2302 DEFAULT_wxUSE_LIBHILDON=no
2303 DEFAULT_wxUSE_ODBC=no
2304 DEFAULT_wxUSE_OPENGL=no
2305
2306 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2307 DEFAULT_wxUSE_STACKWALKER=yes
2308 DEFAULT_wxUSE_DEBUGREPORT=yes
2309 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2310 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2311 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2312 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2313 DEFAULT_wxUSE_DATETIME=yes
2314 DEFAULT_wxUSE_TIMER=yes
2315 DEFAULT_wxUSE_STOPWATCH=yes
2316 DEFAULT_wxUSE_FILE=yes
2317 DEFAULT_wxUSE_FFILE=yes
2318 DEFAULT_wxUSE_STDPATHS=yes
2319 DEFAULT_wxUSE_TEXTBUFFER=yes
2320 DEFAULT_wxUSE_TEXTFILE=yes
2321 DEFAULT_wxUSE_SOUND=yes
2322 DEFAULT_wxUSE_MEDIACTRL=no
2323 DEFAULT_wxUSE_GSTREAMER8=no
2324 DEFAULT_wxUSE_INTL=yes
2325 DEFAULT_wxUSE_CONFIG=yes
2326 DEFAULT_wxUSE_FONTMAP=yes
2327 DEFAULT_wxUSE_STREAMS=yes
2328 DEFAULT_wxUSE_SOCKETS=yes
2329 DEFAULT_wxUSE_OLE=yes
2330 DEFAULT_wxUSE_DATAOBJ=yes
2331 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2332 DEFAULT_wxUSE_JOYSTICK=yes
2333 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2334 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2335 DEFAULT_wxUSE_LONGLONG=yes
2336 DEFAULT_wxUSE_GEOMETRY=yes
2337
2338 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2339 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2340 DEFAULT_wxUSE_POSTSCRIPT=yes
2341
2342 DEFAULT_wxUSE_CLIPBOARD=yes
2343 DEFAULT_wxUSE_TOOLTIPS=yes
2344 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2345 DEFAULT_wxUSE_DRAGIMAGE=yes
2346 DEFAULT_wxUSE_SPLINES=yes
2347 DEFAULT_wxUSE_MOUSEWHEEL=yes
2348
2349 DEFAULT_wxUSE_MDI=yes
2350 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2351 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2352 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2353
2354 DEFAULT_wxUSE_RESOURCES=no
2355 DEFAULT_wxUSE_CONSTRAINTS=yes
2356 DEFAULT_wxUSE_IPC=yes
2357 DEFAULT_wxUSE_HELP=yes
2358 DEFAULT_wxUSE_MS_HTML_HELP=yes
2359 DEFAULT_wxUSE_WXHTML_HELP=yes
2360 DEFAULT_wxUSE_TREELAYOUT=yes
2361 DEFAULT_wxUSE_METAFILE=yes
2362 DEFAULT_wxUSE_MIMETYPE=yes
2363 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2364 DEFAULT_wxUSE_PROTOCOL=yes
2365 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2366 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2367 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2368 DEFAULT_wxUSE_URL=yes
2369
2370 DEFAULT_wxUSE_COMMONDLGS=yes
2371 DEFAULT_wxUSE_CHOICEDLG=yes
2372 DEFAULT_wxUSE_COLOURDLG=yes
2373 DEFAULT_wxUSE_DIRDLG=yes
2374 DEFAULT_wxUSE_FILEDLG=yes
2375 DEFAULT_wxUSE_FINDREPLDLG=yes
2376 DEFAULT_wxUSE_FONTDLG=yes
2377 DEFAULT_wxUSE_MSGDLG=yes
2378 DEFAULT_wxUSE_NUMBERDLG=yes
2379 DEFAULT_wxUSE_TEXTDLG=yes
2380 DEFAULT_wxUSE_SPLASH=yes
2381 DEFAULT_wxUSE_STARTUP_TIPS=yes
2382 DEFAULT_wxUSE_PROGRESSDLG=yes
2383 DEFAULT_wxUSE_WIZARDDLG=yes
2384
2385 DEFAULT_wxUSE_MENUS=yes
2386 DEFAULT_wxUSE_MINIFRAME=yes
2387 DEFAULT_wxUSE_HTML=yes
2388 DEFAULT_wxUSE_RICHTEXT=yes
2389 DEFAULT_wxUSE_XRC=yes
2390 DEFAULT_wxUSE_WEBKIT=yes
2391 DEFAULT_wxUSE_FILESYSTEM=yes
2392 DEFAULT_wxUSE_FS_INET=yes
2393 DEFAULT_wxUSE_FS_ZIP=yes
2394 DEFAULT_wxUSE_BUSYINFO=yes
2395 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2396 DEFAULT_wxUSE_ZIPSTREAM=yes
2397 DEFAULT_wxUSE_VALIDATORS=yes
2398
2399 DEFAULT_wxUSE_ACCEL=yes
2400 DEFAULT_wxUSE_BUTTON=yes
2401 DEFAULT_wxUSE_BMPBUTTON=yes
2402 DEFAULT_wxUSE_CALCTRL=yes
2403 DEFAULT_wxUSE_CARET=yes
2404 DEFAULT_wxUSE_CHECKBOX=yes
2405 DEFAULT_wxUSE_CHECKLST=yes
2406 DEFAULT_wxUSE_CHOICE=yes
2407 DEFAULT_wxUSE_CHOICEBOOK=yes
2408 DEFAULT_wxUSE_COMBOBOX=yes
2409 DEFAULT_wxUSE_COMBOCTRL=yes
2410 DEFAULT_wxUSE_DATEPICKCTRL=yes
2411 DEFAULT_wxUSE_DISPLAY=yes
2412 DEFAULT_wxUSE_GAUGE=yes
2413 DEFAULT_wxUSE_GRID=yes
2414 DEFAULT_wxUSE_HYPERLINKCTRL=yes
2415 DEFAULT_wxUSE_DATAVIEWCTRL=no
2416 DEFAULT_wxUSE_IMAGLIST=yes
2417 DEFAULT_wxUSE_LISTBOOK=yes
2418 DEFAULT_wxUSE_LISTBOX=yes
2419 DEFAULT_wxUSE_LISTCTRL=yes
2420 DEFAULT_wxUSE_NOTEBOOK=yes
2421 DEFAULT_wxUSE_ODCOMBOBOX=yes
2422 DEFAULT_wxUSE_RADIOBOX=yes
2423 DEFAULT_wxUSE_RADIOBTN=yes
2424 DEFAULT_wxUSE_SASH=yes
2425 DEFAULT_wxUSE_SCROLLBAR=yes
2426 DEFAULT_wxUSE_SLIDER=yes
2427 DEFAULT_wxUSE_SPINBTN=yes
2428 DEFAULT_wxUSE_SPINCTRL=yes
2429 DEFAULT_wxUSE_SPLITTER=yes
2430 DEFAULT_wxUSE_STATBMP=yes
2431 DEFAULT_wxUSE_STATBOX=yes
2432 DEFAULT_wxUSE_STATLINE=yes
2433 DEFAULT_wxUSE_STATTEXT=yes
2434 DEFAULT_wxUSE_STATUSBAR=yes
2435 DEFAULT_wxUSE_TAB_DIALOG=no
2436 DEFAULT_wxUSE_TEXTCTRL=yes
2437 DEFAULT_wxUSE_TOGGLEBTN=yes
2438 DEFAULT_wxUSE_TOOLBAR=yes
2439 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2440 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2441 DEFAULT_wxUSE_TREEBOOK=yes
2442 DEFAULT_wxUSE_TOOLBOOK=yes
2443 DEFAULT_wxUSE_TREECTRL=yes
2444 DEFAULT_wxUSE_POPUPWIN=yes
2445 DEFAULT_wxUSE_TIPWINDOW=yes
2446
2447 DEFAULT_wxUSE_UNICODE=no
2448 DEFAULT_wxUSE_UNICODE_MSLU=yes
2449 DEFAULT_wxUSE_WCSRTOMBS=no
2450
2451 DEFAULT_wxUSE_PALETTE=yes
2452 DEFAULT_wxUSE_IMAGE=yes
2453 DEFAULT_wxUSE_GIF=yes
2454 DEFAULT_wxUSE_PCX=yes
2455 DEFAULT_wxUSE_IFF=no
2456 DEFAULT_wxUSE_PNM=yes
2457 DEFAULT_wxUSE_XPM=yes
2458 DEFAULT_wxUSE_ICO_CUR=yes
2459 DEFAULT_wxUSE_ACCESSIBILITY=no
2460
2461 DEFAULT_wxUSE_MONOLITHIC=no
2462 DEFAULT_wxUSE_PLUGINS=no
2463 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2464
2465 DEFAULT_wxUSE_GTK2=yes
2466 fi
2467
2468
2469
2470
2471 for toolkit in `echo $ALL_TOOLKITS`; do
2472 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2473 if test "x$LINE" != "x" ; then
2474 has_toolkit_in_cache=1
2475 eval "DEFAULT_$LINE"
2476 eval "CACHE_$toolkit=1"
2477
2478 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2479 if test "x$LINE" != "x" ; then
2480 eval "DEFAULT_$LINE"
2481 fi
2482 fi
2483 done
2484
2485
2486
2487 enablestring=
2488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2489 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2490 no_cache=0
2491 # Check whether --enable-gui or --disable-gui was given.
2492 if test "${enable_gui+set}" = set; then
2493 enableval="$enable_gui"
2494
2495 if test "$enableval" = yes; then
2496 ac_cv_use_gui='wxUSE_GUI=yes'
2497 else
2498 ac_cv_use_gui='wxUSE_GUI=no'
2499 fi
2500
2501 else
2502
2503 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2504 if test "x$LINE" != x ; then
2505 eval "DEFAULT_$LINE"
2506 else
2507 no_cache=1
2508 fi
2509
2510 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2511
2512 fi;
2513
2514 eval "$ac_cv_use_gui"
2515 if test "$no_cache" != 1; then
2516 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2517 fi
2518
2519 if test "$wxUSE_GUI" = yes; then
2520 echo "$as_me:$LINENO: result: yes" >&5
2521 echo "${ECHO_T}yes" >&6
2522 else
2523 echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6
2525 fi
2526
2527
2528 enablestring=
2529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2530 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2531 no_cache=0
2532 # Check whether --enable-monolithic or --disable-monolithic was given.
2533 if test "${enable_monolithic+set}" = set; then
2534 enableval="$enable_monolithic"
2535
2536 if test "$enableval" = yes; then
2537 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2538 else
2539 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2540 fi
2541
2542 else
2543
2544 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2552
2553 fi;
2554
2555 eval "$ac_cv_use_monolithic"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_MONOLITHIC" = yes; then
2561 echo "$as_me:$LINENO: result: yes" >&5
2562 echo "${ECHO_T}yes" >&6
2563 else
2564 echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6
2566 fi
2567
2568
2569 enablestring=
2570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2571 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2572 no_cache=0
2573 # Check whether --enable-plugins or --disable-plugins was given.
2574 if test "${enable_plugins+set}" = set; then
2575 enableval="$enable_plugins"
2576
2577 if test "$enableval" = yes; then
2578 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2579 else
2580 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2581 fi
2582
2583 else
2584
2585 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2593
2594 fi;
2595
2596 eval "$ac_cv_use_plugins"
2597 if test "$no_cache" != 1; then
2598 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2599 fi
2600
2601 if test "$wxUSE_PLUGINS" = yes; then
2602 echo "$as_me:$LINENO: result: yes" >&5
2603 echo "${ECHO_T}yes" >&6
2604 else
2605 echo "$as_me:$LINENO: result: no" >&5
2606 echo "${ECHO_T}no" >&6
2607 fi
2608
2609
2610 withstring=without
2611 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2612 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2613 no_cache=0
2614
2615 # Check whether --with-subdirs or --without-subdirs was given.
2616 if test "${with_subdirs+set}" = set; then
2617 withval="$with_subdirs"
2618
2619 if test "$withval" = yes; then
2620 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2621 else
2622 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2623 fi
2624
2625 else
2626
2627 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2628 if test "x$LINE" != x ; then
2629 eval "DEFAULT_$LINE"
2630 else
2631 no_cache=1
2632 fi
2633
2634 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2635
2636 fi;
2637
2638 eval "$ac_cv_use_subdirs"
2639 if test "$no_cache" != 1; then
2640 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2641 fi
2642
2643 if test "$wxWITH_SUBDIRS" = yes; then
2644 echo "$as_me:$LINENO: result: yes" >&5
2645 echo "${ECHO_T}yes" >&6
2646 else
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2649 fi
2650
2651
2652 if test "$wxUSE_GUI" = "yes"; then
2653
2654
2655 enablestring=
2656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2657 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2658 no_cache=0
2659 # Check whether --enable-universal or --disable-universal was given.
2660 if test "${enable_universal+set}" = set; then
2661 enableval="$enable_universal"
2662
2663 if test "$enableval" = yes; then
2664 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2665 else
2666 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2667 fi
2668
2669 else
2670
2671 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2672 if test "x$LINE" != x ; then
2673 eval "DEFAULT_$LINE"
2674 else
2675 no_cache=1
2676 fi
2677
2678 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2679
2680 fi;
2681
2682 eval "$ac_cv_use_universal"
2683 if test "$no_cache" != 1; then
2684 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2685 fi
2686
2687 if test "$wxUSE_UNIVERSAL" = yes; then
2688 echo "$as_me:$LINENO: result: yes" >&5
2689 echo "${ECHO_T}yes" >&6
2690 else
2691 echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6
2693 fi
2694
2695
2696 # Check whether --with-gtk or --without-gtk was given.
2697 if test "${with_gtk+set}" = set; then
2698 withval="$with_gtk"
2699 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2700 fi;
2701
2702 # Check whether --with-motif or --without-motif was given.
2703 if test "${with_motif+set}" = set; then
2704 withval="$with_motif"
2705 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2706 fi;
2707
2708 # Check whether --with-mac or --without-mac was given.
2709 if test "${with_mac+set}" = set; then
2710 withval="$with_mac"
2711 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2712 fi;
2713
2714 # Check whether --with-cocoa or --without-cocoa was given.
2715 if test "${with_cocoa+set}" = set; then
2716 withval="$with_cocoa"
2717 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2718 fi;
2719
2720 # Check whether --with-wine or --without-wine was given.
2721 if test "${with_wine+set}" = set; then
2722 withval="$with_wine"
2723 wxUSE_WINE="$withval" CACHE_WINE=1
2724 fi;
2725
2726 # Check whether --with-msw or --without-msw was given.
2727 if test "${with_msw+set}" = set; then
2728 withval="$with_msw"
2729 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2730 fi;
2731
2732 # Check whether --with-pm or --without-pm was given.
2733 if test "${with_pm+set}" = set; then
2734 withval="$with_pm"
2735 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2736 fi;
2737
2738 # Check whether --with-mgl or --without-mgl was given.
2739 if test "${with_mgl+set}" = set; then
2740 withval="$with_mgl"
2741 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2742 fi;
2743
2744 # Check whether --with-microwin or --without-microwin was given.
2745 if test "${with_microwin+set}" = set; then
2746 withval="$with_microwin"
2747 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2748 fi;
2749
2750 # Check whether --with-x11 or --without-x11 was given.
2751 if test "${with_x11+set}" = set; then
2752 withval="$with_x11"
2753 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2754 fi;
2755
2756 enablestring=
2757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2758 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2759 no_cache=0
2760 # Check whether --enable-nanox or --disable-nanox was given.
2761 if test "${enable_nanox+set}" = set; then
2762 enableval="$enable_nanox"
2763
2764 if test "$enableval" = yes; then
2765 ac_cv_use_nanox='wxUSE_NANOX=yes'
2766 else
2767 ac_cv_use_nanox='wxUSE_NANOX=no'
2768 fi
2769
2770 else
2771
2772 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2773 if test "x$LINE" != x ; then
2774 eval "DEFAULT_$LINE"
2775 else
2776 no_cache=1
2777 fi
2778
2779 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2780
2781 fi;
2782
2783 eval "$ac_cv_use_nanox"
2784 if test "$no_cache" != 1; then
2785 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2786 fi
2787
2788 if test "$wxUSE_NANOX" = yes; then
2789 echo "$as_me:$LINENO: result: yes" >&5
2790 echo "${ECHO_T}yes" >&6
2791 else
2792 echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2794 fi
2795
2796
2797 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2798 if test "${enable_gtk2+set}" = set; then
2799 enableval="$enable_gtk2"
2800 wxUSE_GTK2="$enableval"
2801 fi;
2802
2803 enablestring=
2804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2805 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2806 no_cache=0
2807 # Check whether --enable-gpe or --disable-gpe was given.
2808 if test "${enable_gpe+set}" = set; then
2809 enableval="$enable_gpe"
2810
2811 if test "$enableval" = yes; then
2812 ac_cv_use_gpe='wxUSE_GPE=yes'
2813 else
2814 ac_cv_use_gpe='wxUSE_GPE=no'
2815 fi
2816
2817 else
2818
2819 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2820 if test "x$LINE" != x ; then
2821 eval "DEFAULT_$LINE"
2822 else
2823 no_cache=1
2824 fi
2825
2826 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2827
2828 fi;
2829
2830 eval "$ac_cv_use_gpe"
2831 if test "$no_cache" != 1; then
2832 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2833 fi
2834
2835 if test "$wxUSE_GPE" = yes; then
2836 echo "$as_me:$LINENO: result: yes" >&5
2837 echo "${ECHO_T}yes" >&6
2838 else
2839 echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6
2841 fi
2842
2843
2844
2845 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2846 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2847 no_cache=0
2848
2849 # Check whether --with-libpng or --without-libpng was given.
2850 if test "${with_libpng+set}" = set; then
2851 withval="$with_libpng"
2852
2853 if test "$withval" = yes; then
2854 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2855 elif test "$withval" = no; then
2856 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2857 elif test "$withval" = sys; then
2858 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2859 elif test "$withval" = builtin; then
2860 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2861 else
2862 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2863 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2864 { (exit 1); exit 1; }; }
2865 fi
2866
2867 else
2868
2869 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2870 if test "x$LINE" != x ; then
2871 eval "DEFAULT_$LINE"
2872 else
2873 no_cache=1
2874 fi
2875
2876 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2877
2878 fi;
2879
2880 eval "$ac_cv_use_libpng"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_LIBPNG" = yes; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6
2888 elif test "$wxUSE_LIBPNG" = no; then
2889 echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2891 elif test "$wxUSE_LIBPNG" = sys; then
2892 echo "$as_me:$LINENO: result: system version" >&5
2893 echo "${ECHO_T}system version" >&6
2894 elif test "$wxUSE_LIBPNG" = builtin; then
2895 echo "$as_me:$LINENO: result: builtin version" >&5
2896 echo "${ECHO_T}builtin version" >&6
2897 else
2898 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2899 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2900 { (exit 1); exit 1; }; }
2901 fi
2902
2903
2904 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2905 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2906 no_cache=0
2907
2908 # Check whether --with-libjpeg or --without-libjpeg was given.
2909 if test "${with_libjpeg+set}" = set; then
2910 withval="$with_libjpeg"
2911
2912 if test "$withval" = yes; then
2913 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2914 elif test "$withval" = no; then
2915 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2916 elif test "$withval" = sys; then
2917 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2918 elif test "$withval" = builtin; then
2919 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2920 else
2921 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2922 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2923 { (exit 1); exit 1; }; }
2924 fi
2925
2926 else
2927
2928 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2929 if test "x$LINE" != x ; then
2930 eval "DEFAULT_$LINE"
2931 else
2932 no_cache=1
2933 fi
2934
2935 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2936
2937 fi;
2938
2939 eval "$ac_cv_use_libjpeg"
2940 if test "$no_cache" != 1; then
2941 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2942 fi
2943
2944 if test "$wxUSE_LIBJPEG" = yes; then
2945 echo "$as_me:$LINENO: result: yes" >&5
2946 echo "${ECHO_T}yes" >&6
2947 elif test "$wxUSE_LIBJPEG" = no; then
2948 echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2950 elif test "$wxUSE_LIBJPEG" = sys; then
2951 echo "$as_me:$LINENO: result: system version" >&5
2952 echo "${ECHO_T}system version" >&6
2953 elif test "$wxUSE_LIBJPEG" = builtin; then
2954 echo "$as_me:$LINENO: result: builtin version" >&5
2955 echo "${ECHO_T}builtin version" >&6
2956 else
2957 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2958 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2959 { (exit 1); exit 1; }; }
2960 fi
2961
2962
2963 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2964 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2965 no_cache=0
2966
2967 # Check whether --with-libtiff or --without-libtiff was given.
2968 if test "${with_libtiff+set}" = set; then
2969 withval="$with_libtiff"
2970
2971 if test "$withval" = yes; then
2972 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2973 elif test "$withval" = no; then
2974 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2975 elif test "$withval" = sys; then
2976 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2977 elif test "$withval" = builtin; then
2978 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2979 else
2980 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2981 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2982 { (exit 1); exit 1; }; }
2983 fi
2984
2985 else
2986
2987 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2988 if test "x$LINE" != x ; then
2989 eval "DEFAULT_$LINE"
2990 else
2991 no_cache=1
2992 fi
2993
2994 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2995
2996 fi;
2997
2998 eval "$ac_cv_use_libtiff"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$wxUSE_LIBTIFF" = yes; then
3004 echo "$as_me:$LINENO: result: yes" >&5
3005 echo "${ECHO_T}yes" >&6
3006 elif test "$wxUSE_LIBTIFF" = no; then
3007 echo "$as_me:$LINENO: result: no" >&5
3008 echo "${ECHO_T}no" >&6
3009 elif test "$wxUSE_LIBTIFF" = sys; then
3010 echo "$as_me:$LINENO: result: system version" >&5
3011 echo "${ECHO_T}system version" >&6
3012 elif test "$wxUSE_LIBTIFF" = builtin; then
3013 echo "$as_me:$LINENO: result: builtin version" >&5
3014 echo "${ECHO_T}builtin version" >&6
3015 else
3016 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3017 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3018 { (exit 1); exit 1; }; }
3019 fi
3020
3021
3022 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3023 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3024 no_cache=0
3025
3026 # Check whether --with-libxpm or --without-libxpm was given.
3027 if test "${with_libxpm+set}" = set; then
3028 withval="$with_libxpm"
3029
3030 if test "$withval" = yes; then
3031 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3032 elif test "$withval" = no; then
3033 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3034 elif test "$withval" = sys; then
3035 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3036 elif test "$withval" = builtin; then
3037 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3038 else
3039 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3040 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3041 { (exit 1); exit 1; }; }
3042 fi
3043
3044 else
3045
3046 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3047 if test "x$LINE" != x ; then
3048 eval "DEFAULT_$LINE"
3049 else
3050 no_cache=1
3051 fi
3052
3053 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3054
3055 fi;
3056
3057 eval "$ac_cv_use_libxpm"
3058 if test "$no_cache" != 1; then
3059 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3060 fi
3061
3062 if test "$wxUSE_LIBXPM" = yes; then
3063 echo "$as_me:$LINENO: result: yes" >&5
3064 echo "${ECHO_T}yes" >&6
3065 elif test "$wxUSE_LIBXPM" = no; then
3066 echo "$as_me:$LINENO: result: no" >&5
3067 echo "${ECHO_T}no" >&6
3068 elif test "$wxUSE_LIBXPM" = sys; then
3069 echo "$as_me:$LINENO: result: system version" >&5
3070 echo "${ECHO_T}system version" >&6
3071 elif test "$wxUSE_LIBXPM" = builtin; then
3072 echo "$as_me:$LINENO: result: builtin version" >&5
3073 echo "${ECHO_T}builtin version" >&6
3074 else
3075 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3076 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3077 { (exit 1); exit 1; }; }
3078 fi
3079
3080
3081 withstring=
3082 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3083 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3084 no_cache=0
3085
3086 # Check whether --with-libmspack or --without-libmspack was given.
3087 if test "${with_libmspack+set}" = set; then
3088 withval="$with_libmspack"
3089
3090 if test "$withval" = yes; then
3091 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3092 else
3093 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3094 fi
3095
3096 else
3097
3098 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3106
3107 fi;
3108
3109 eval "$ac_cv_use_libmspack"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_LIBMSPACK" = yes; then
3115 echo "$as_me:$LINENO: result: yes" >&5
3116 echo "${ECHO_T}yes" >&6
3117 else
3118 echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3120 fi
3121
3122
3123 withstring=
3124 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3125 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3126 no_cache=0
3127
3128 # Check whether --with-sdl or --without-sdl was given.
3129 if test "${with_sdl+set}" = set; then
3130 withval="$with_sdl"
3131
3132 if test "$withval" = yes; then
3133 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3134 else
3135 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3136 fi
3137
3138 else
3139
3140 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3141 if test "x$LINE" != x ; then
3142 eval "DEFAULT_$LINE"
3143 else
3144 no_cache=1
3145 fi
3146
3147 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3148
3149 fi;
3150
3151 eval "$ac_cv_use_sdl"
3152 if test "$no_cache" != 1; then
3153 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3154 fi
3155
3156 if test "$wxUSE_LIBSDL" = yes; then
3157 echo "$as_me:$LINENO: result: yes" >&5
3158 echo "${ECHO_T}yes" >&6
3159 else
3160 echo "$as_me:$LINENO: result: no" >&5
3161 echo "${ECHO_T}no" >&6
3162 fi
3163
3164
3165 withstring=
3166 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3167 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3168 no_cache=0
3169
3170 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3171 if test "${with_gnomeprint+set}" = set; then
3172 withval="$with_gnomeprint"
3173
3174 if test "$withval" = yes; then
3175 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3176 else
3177 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3178 fi
3179
3180 else
3181
3182 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3183 if test "x$LINE" != x ; then
3184 eval "DEFAULT_$LINE"
3185 else
3186 no_cache=1
3187 fi
3188
3189 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3190
3191 fi;
3192
3193 eval "$ac_cv_use_gnomeprint"
3194 if test "$no_cache" != 1; then
3195 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3196 fi
3197
3198 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3199 echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3201 else
3202 echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204 fi
3205
3206
3207 withstring=
3208 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3209 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3210 no_cache=0
3211
3212 # Check whether --with-gnomevfs or --without-gnomevfs was given.
3213 if test "${with_gnomevfs+set}" = set; then
3214 withval="$with_gnomevfs"
3215
3216 if test "$withval" = yes; then
3217 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3218 else
3219 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3220 fi
3221
3222 else
3223
3224 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3225 if test "x$LINE" != x ; then
3226 eval "DEFAULT_$LINE"
3227 else
3228 no_cache=1
3229 fi
3230
3231 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3232
3233 fi;
3234
3235 eval "$ac_cv_use_gnomevfs"
3236 if test "$no_cache" != 1; then
3237 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3238 fi
3239
3240 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3241 echo "$as_me:$LINENO: result: yes" >&5
3242 echo "${ECHO_T}yes" >&6
3243 else
3244 echo "$as_me:$LINENO: result: no" >&5
3245 echo "${ECHO_T}no" >&6
3246 fi
3247
3248
3249 withstring=
3250 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3251 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3252 no_cache=0
3253
3254 # Check whether --with-hildon or --without-hildon was given.
3255 if test "${with_hildon+set}" = set; then
3256 withval="$with_hildon"
3257
3258 if test "$withval" = yes; then
3259 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3260 else
3261 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3262 fi
3263
3264 else
3265
3266 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3267 if test "x$LINE" != x ; then
3268 eval "DEFAULT_$LINE"
3269 else
3270 no_cache=1
3271 fi
3272
3273 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3274
3275 fi;
3276
3277 eval "$ac_cv_use_hildon"
3278 if test "$no_cache" != 1; then
3279 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3280 fi
3281
3282 if test "$wxUSE_LIBHILDON" = yes; then
3283 echo "$as_me:$LINENO: result: yes" >&5
3284 echo "${ECHO_T}yes" >&6
3285 else
3286 echo "$as_me:$LINENO: result: no" >&5
3287 echo "${ECHO_T}no" >&6
3288 fi
3289
3290
3291 withstring=
3292 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3293 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3294 no_cache=0
3295
3296 # Check whether --with-opengl or --without-opengl was given.
3297 if test "${with_opengl+set}" = set; then
3298 withval="$with_opengl"
3299
3300 if test "$withval" = yes; then
3301 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3302 else
3303 ac_cv_use_opengl='wxUSE_OPENGL=no'
3304 fi
3305
3306 else
3307
3308 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3309 if test "x$LINE" != x ; then
3310 eval "DEFAULT_$LINE"
3311 else
3312 no_cache=1
3313 fi
3314
3315 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3316
3317 fi;
3318
3319 eval "$ac_cv_use_opengl"
3320 if test "$no_cache" != 1; then
3321 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3322 fi
3323
3324 if test "$wxUSE_OPENGL" = yes; then
3325 echo "$as_me:$LINENO: result: yes" >&5
3326 echo "${ECHO_T}yes" >&6
3327 else
3328 echo "$as_me:$LINENO: result: no" >&5
3329 echo "${ECHO_T}no" >&6
3330 fi
3331
3332
3333 fi
3334
3335
3336 withstring=
3337 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3338 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3339 no_cache=0
3340
3341 # Check whether --with-dmalloc or --without-dmalloc was given.
3342 if test "${with_dmalloc+set}" = set; then
3343 withval="$with_dmalloc"
3344
3345 if test "$withval" = yes; then
3346 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3347 else
3348 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3349 fi
3350
3351 else
3352
3353 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3354 if test "x$LINE" != x ; then
3355 eval "DEFAULT_$LINE"
3356 else
3357 no_cache=1
3358 fi
3359
3360 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3361
3362 fi;
3363
3364 eval "$ac_cv_use_dmalloc"
3365 if test "$no_cache" != 1; then
3366 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3367 fi
3368
3369 if test "$wxUSE_DMALLOC" = yes; then
3370 echo "$as_me:$LINENO: result: yes" >&5
3371 echo "${ECHO_T}yes" >&6
3372 else
3373 echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3375 fi
3376
3377
3378 echo "$as_me:$LINENO: checking for --with-regex" >&5
3379 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3380 no_cache=0
3381
3382 # Check whether --with-regex or --without-regex was given.
3383 if test "${with_regex+set}" = set; then
3384 withval="$with_regex"
3385
3386 if test "$withval" = yes; then
3387 ac_cv_use_regex='wxUSE_REGEX=yes'
3388 elif test "$withval" = no; then
3389 ac_cv_use_regex='wxUSE_REGEX=no'
3390 elif test "$withval" = sys; then
3391 ac_cv_use_regex='wxUSE_REGEX=sys'
3392 elif test "$withval" = builtin; then
3393 ac_cv_use_regex='wxUSE_REGEX=builtin'
3394 else
3395 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3396 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3397 { (exit 1); exit 1; }; }
3398 fi
3399
3400 else
3401
3402 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3403 if test "x$LINE" != x ; then
3404 eval "DEFAULT_$LINE"
3405 else
3406 no_cache=1
3407 fi
3408
3409 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3410
3411 fi;
3412
3413 eval "$ac_cv_use_regex"
3414 if test "$no_cache" != 1; then
3415 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3416 fi
3417
3418 if test "$wxUSE_REGEX" = yes; then
3419 echo "$as_me:$LINENO: result: yes" >&5
3420 echo "${ECHO_T}yes" >&6
3421 elif test "$wxUSE_REGEX" = no; then
3422 echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6
3424 elif test "$wxUSE_REGEX" = sys; then
3425 echo "$as_me:$LINENO: result: system version" >&5
3426 echo "${ECHO_T}system version" >&6
3427 elif test "$wxUSE_REGEX" = builtin; then
3428 echo "$as_me:$LINENO: result: builtin version" >&5
3429 echo "${ECHO_T}builtin version" >&6
3430 else
3431 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3432 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3433 { (exit 1); exit 1; }; }
3434 fi
3435
3436
3437 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3438 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3439 no_cache=0
3440
3441 # Check whether --with-zlib or --without-zlib was given.
3442 if test "${with_zlib+set}" = set; then
3443 withval="$with_zlib"
3444
3445 if test "$withval" = yes; then
3446 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3447 elif test "$withval" = no; then
3448 ac_cv_use_zlib='wxUSE_ZLIB=no'
3449 elif test "$withval" = sys; then
3450 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3451 elif test "$withval" = builtin; then
3452 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3453 else
3454 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3455 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3456 { (exit 1); exit 1; }; }
3457 fi
3458
3459 else
3460
3461 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3462 if test "x$LINE" != x ; then
3463 eval "DEFAULT_$LINE"
3464 else
3465 no_cache=1
3466 fi
3467
3468 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3469
3470 fi;
3471
3472 eval "$ac_cv_use_zlib"
3473 if test "$no_cache" != 1; then
3474 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3475 fi
3476
3477 if test "$wxUSE_ZLIB" = yes; then
3478 echo "$as_me:$LINENO: result: yes" >&5
3479 echo "${ECHO_T}yes" >&6
3480 elif test "$wxUSE_ZLIB" = no; then
3481 echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6
3483 elif test "$wxUSE_ZLIB" = sys; then
3484 echo "$as_me:$LINENO: result: system version" >&5
3485 echo "${ECHO_T}system version" >&6
3486 elif test "$wxUSE_ZLIB" = builtin; then
3487 echo "$as_me:$LINENO: result: builtin version" >&5
3488 echo "${ECHO_T}builtin version" >&6
3489 else
3490 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3491 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3492 { (exit 1); exit 1; }; }
3493 fi
3494
3495
3496 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3497 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3498 no_cache=0
3499
3500 # Check whether --with-odbc or --without-odbc was given.
3501 if test "${with_odbc+set}" = set; then
3502 withval="$with_odbc"
3503
3504 if test "$withval" = yes; then
3505 ac_cv_use_odbc='wxUSE_ODBC=yes'
3506 elif test "$withval" = no; then
3507 ac_cv_use_odbc='wxUSE_ODBC=no'
3508 elif test "$withval" = sys; then
3509 ac_cv_use_odbc='wxUSE_ODBC=sys'
3510 elif test "$withval" = builtin; then
3511 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3512 else
3513 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3514 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3515 { (exit 1); exit 1; }; }
3516 fi
3517
3518 else
3519
3520 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3521 if test "x$LINE" != x ; then
3522 eval "DEFAULT_$LINE"
3523 else
3524 no_cache=1
3525 fi
3526
3527 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3528
3529 fi;
3530
3531 eval "$ac_cv_use_odbc"
3532 if test "$no_cache" != 1; then
3533 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3534 fi
3535
3536 if test "$wxUSE_ODBC" = yes; then
3537 echo "$as_me:$LINENO: result: yes" >&5
3538 echo "${ECHO_T}yes" >&6
3539 elif test "$wxUSE_ODBC" = no; then
3540 echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3542 elif test "$wxUSE_ODBC" = sys; then
3543 echo "$as_me:$LINENO: result: system version" >&5
3544 echo "${ECHO_T}system version" >&6
3545 elif test "$wxUSE_ODBC" = builtin; then
3546 echo "$as_me:$LINENO: result: builtin version" >&5
3547 echo "${ECHO_T}builtin version" >&6
3548 else
3549 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3550 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3551 { (exit 1); exit 1; }; }
3552 fi
3553
3554
3555 echo "$as_me:$LINENO: checking for --with-expat" >&5
3556 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3557 no_cache=0
3558
3559 # Check whether --with-expat or --without-expat was given.
3560 if test "${with_expat+set}" = set; then
3561 withval="$with_expat"
3562
3563 if test "$withval" = yes; then
3564 ac_cv_use_expat='wxUSE_EXPAT=yes'
3565 elif test "$withval" = no; then
3566 ac_cv_use_expat='wxUSE_EXPAT=no'
3567 elif test "$withval" = sys; then
3568 ac_cv_use_expat='wxUSE_EXPAT=sys'
3569 elif test "$withval" = builtin; then
3570 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3571 else
3572 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3573 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3574 { (exit 1); exit 1; }; }
3575 fi
3576
3577 else
3578
3579 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3580 if test "x$LINE" != x ; then
3581 eval "DEFAULT_$LINE"
3582 else
3583 no_cache=1
3584 fi
3585
3586 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3587
3588 fi;
3589
3590 eval "$ac_cv_use_expat"
3591 if test "$no_cache" != 1; then
3592 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3593 fi
3594
3595 if test "$wxUSE_EXPAT" = yes; then
3596 echo "$as_me:$LINENO: result: yes" >&5
3597 echo "${ECHO_T}yes" >&6
3598 elif test "$wxUSE_EXPAT" = no; then
3599 echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3601 elif test "$wxUSE_EXPAT" = sys; then
3602 echo "$as_me:$LINENO: result: system version" >&5
3603 echo "${ECHO_T}system version" >&6
3604 elif test "$wxUSE_EXPAT" = builtin; then
3605 echo "$as_me:$LINENO: result: builtin version" >&5
3606 echo "${ECHO_T}builtin version" >&6
3607 else
3608 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3609 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3610 { (exit 1); exit 1; }; }
3611 fi
3612
3613
3614
3615
3616 enablestring=
3617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3618 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3619 no_cache=0
3620 # Check whether --enable-shared or --disable-shared was given.
3621 if test "${enable_shared+set}" = set; then
3622 enableval="$enable_shared"
3623
3624 if test "$enableval" = yes; then
3625 ac_cv_use_shared='wxUSE_SHARED=yes'
3626 else
3627 ac_cv_use_shared='wxUSE_SHARED=no'
3628 fi
3629
3630 else
3631
3632 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3633 if test "x$LINE" != x ; then
3634 eval "DEFAULT_$LINE"
3635 else
3636 no_cache=1
3637 fi
3638
3639 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3640
3641 fi;
3642
3643 eval "$ac_cv_use_shared"
3644 if test "$no_cache" != 1; then
3645 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3646 fi
3647
3648 if test "$wxUSE_SHARED" = yes; then
3649 echo "$as_me:$LINENO: result: yes" >&5
3650 echo "${ECHO_T}yes" >&6
3651 else
3652 echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6
3654 fi
3655
3656
3657 enablestring=
3658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3659 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3660 no_cache=0
3661 # Check whether --enable-optimise or --disable-optimise was given.
3662 if test "${enable_optimise+set}" = set; then
3663 enableval="$enable_optimise"
3664
3665 if test "$enableval" = yes; then
3666 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3667 else
3668 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3669 fi
3670
3671 else
3672
3673 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3674 if test "x$LINE" != x ; then
3675 eval "DEFAULT_$LINE"
3676 else
3677 no_cache=1
3678 fi
3679
3680 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3681
3682 fi;
3683
3684 eval "$ac_cv_use_optimise"
3685 if test "$no_cache" != 1; then
3686 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3687 fi
3688
3689 if test "$wxUSE_OPTIMISE" = yes; then
3690 echo "$as_me:$LINENO: result: yes" >&5
3691 echo "${ECHO_T}yes" >&6
3692 else
3693 echo "$as_me:$LINENO: result: no" >&5
3694 echo "${ECHO_T}no" >&6
3695 fi
3696
3697
3698 enablestring=
3699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3700 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3701 no_cache=0
3702 # Check whether --enable-debug or --disable-debug was given.
3703 if test "${enable_debug+set}" = set; then
3704 enableval="$enable_debug"
3705
3706 if test "$enableval" = yes; then
3707 ac_cv_use_debug='wxUSE_DEBUG=yes'
3708 else
3709 ac_cv_use_debug='wxUSE_DEBUG=no'
3710 fi
3711
3712 else
3713
3714 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3715 if test "x$LINE" != x ; then
3716 eval "DEFAULT_$LINE"
3717 else
3718 no_cache=1
3719 fi
3720
3721 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3722
3723 fi;
3724
3725 eval "$ac_cv_use_debug"
3726 if test "$no_cache" != 1; then
3727 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3728 fi
3729
3730 if test "$wxUSE_DEBUG" = yes; then
3731 echo "$as_me:$LINENO: result: yes" >&5
3732 echo "${ECHO_T}yes" >&6
3733 else
3734 echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738
3739 enablestring=
3740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3741 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3742 no_cache=0
3743 # Check whether --enable-stl or --disable-stl was given.
3744 if test "${enable_stl+set}" = set; then
3745 enableval="$enable_stl"
3746
3747 if test "$enableval" = yes; then
3748 ac_cv_use_stl='wxUSE_STL=yes'
3749 else
3750 ac_cv_use_stl='wxUSE_STL=no'
3751 fi
3752
3753 else
3754
3755 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3756 if test "x$LINE" != x ; then
3757 eval "DEFAULT_$LINE"
3758 else
3759 no_cache=1
3760 fi
3761
3762 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3763
3764 fi;
3765
3766 eval "$ac_cv_use_stl"
3767 if test "$no_cache" != 1; then
3768 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3769 fi
3770
3771 if test "$wxUSE_STL" = yes; then
3772 echo "$as_me:$LINENO: result: yes" >&5
3773 echo "${ECHO_T}yes" >&6
3774 else
3775 echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3777 fi
3778
3779 if test "$USE_OS2" = "1"; then
3780 DEFAULT_wxUSE_OMF=no
3781
3782 enablestring=
3783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3784 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3785 no_cache=0
3786 # Check whether --enable-omf or --disable-omf was given.
3787 if test "${enable_omf+set}" = set; then
3788 enableval="$enable_omf"
3789
3790 if test "$enableval" = yes; then
3791 ac_cv_use_omf='wxUSE_OMF=yes'
3792 else
3793 ac_cv_use_omf='wxUSE_OMF=no'
3794 fi
3795
3796 else
3797
3798 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3799 if test "x$LINE" != x ; then
3800 eval "DEFAULT_$LINE"
3801 else
3802 no_cache=1
3803 fi
3804
3805 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3806
3807 fi;
3808
3809 eval "$ac_cv_use_omf"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_OMF" = yes; then
3815 echo "$as_me:$LINENO: result: yes" >&5
3816 echo "${ECHO_T}yes" >&6
3817 else
3818 echo "$as_me:$LINENO: result: no" >&5
3819 echo "${ECHO_T}no" >&6
3820 fi
3821
3822 fi
3823
3824 if test "$wxUSE_DEBUG" = "yes"; then
3825 DEFAULT_wxUSE_DEBUG_FLAG=yes
3826 DEFAULT_wxUSE_DEBUG_INFO=yes
3827 BUILD=debug
3828 elif test "$wxUSE_DEBUG" = "no"; then
3829 DEFAULT_wxUSE_DEBUG_FLAG=no
3830 DEFAULT_wxUSE_DEBUG_INFO=no
3831 BUILD=release
3832 fi
3833
3834
3835 enablestring=
3836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3837 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3838 no_cache=0
3839 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3840 if test "${enable_debug_flag+set}" = set; then
3841 enableval="$enable_debug_flag"
3842
3843 if test "$enableval" = yes; then
3844 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3845 else
3846 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3847 fi
3848
3849 else
3850
3851 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3852 if test "x$LINE" != x ; then
3853 eval "DEFAULT_$LINE"
3854 else
3855 no_cache=1
3856 fi
3857
3858 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3859
3860 fi;
3861
3862 eval "$ac_cv_use_debug_flag"
3863 if test "$no_cache" != 1; then
3864 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3865 fi
3866
3867 if test "$wxUSE_DEBUG_FLAG" = yes; then
3868 echo "$as_me:$LINENO: result: yes" >&5
3869 echo "${ECHO_T}yes" >&6
3870 else
3871 echo "$as_me:$LINENO: result: no" >&5
3872 echo "${ECHO_T}no" >&6
3873 fi
3874
3875
3876 enablestring=
3877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3878 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3879 no_cache=0
3880 # Check whether --enable-debug_info or --disable-debug_info was given.
3881 if test "${enable_debug_info+set}" = set; then
3882 enableval="$enable_debug_info"
3883
3884 if test "$enableval" = yes; then
3885 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3886 else
3887 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3888 fi
3889
3890 else
3891
3892 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3893 if test "x$LINE" != x ; then
3894 eval "DEFAULT_$LINE"
3895 else
3896 no_cache=1
3897 fi
3898
3899 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3900
3901 fi;
3902
3903 eval "$ac_cv_use_debug_info"
3904 if test "$no_cache" != 1; then
3905 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3906 fi
3907
3908 if test "$wxUSE_DEBUG_INFO" = yes; then
3909 echo "$as_me:$LINENO: result: yes" >&5
3910 echo "${ECHO_T}yes" >&6
3911 else
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3914 fi
3915
3916
3917 enablestring=
3918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3919 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3920 no_cache=0
3921 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3922 if test "${enable_debug_gdb+set}" = set; then
3923 enableval="$enable_debug_gdb"
3924
3925 if test "$enableval" = yes; then
3926 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3927 else
3928 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3929 fi
3930
3931 else
3932
3933 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3934 if test "x$LINE" != x ; then
3935 eval "DEFAULT_$LINE"
3936 else
3937 no_cache=1
3938 fi
3939
3940 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3941
3942 fi;
3943
3944 eval "$ac_cv_use_debug_gdb"
3945 if test "$no_cache" != 1; then
3946 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3947 fi
3948
3949 if test "$wxUSE_DEBUG_GDB" = yes; then
3950 echo "$as_me:$LINENO: result: yes" >&5
3951 echo "${ECHO_T}yes" >&6
3952 else
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3955 fi
3956
3957
3958 enablestring=
3959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3960 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3961 no_cache=0
3962 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3963 if test "${enable_debug_cntxt+set}" = set; then
3964 enableval="$enable_debug_cntxt"
3965
3966 if test "$enableval" = yes; then
3967 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3968 else
3969 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3970 fi
3971
3972 else
3973
3974 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3975 if test "x$LINE" != x ; then
3976 eval "DEFAULT_$LINE"
3977 else
3978 no_cache=1
3979 fi
3980
3981 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3982
3983 fi;
3984
3985 eval "$ac_cv_use_debug_cntxt"
3986 if test "$no_cache" != 1; then
3987 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3988 fi
3989
3990 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3991 echo "$as_me:$LINENO: result: yes" >&5
3992 echo "${ECHO_T}yes" >&6
3993 else
3994 echo "$as_me:$LINENO: result: no" >&5
3995 echo "${ECHO_T}no" >&6
3996 fi
3997
3998
3999 enablestring=
4000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4001 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4002 no_cache=0
4003 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4004 if test "${enable_mem_tracing+set}" = set; then
4005 enableval="$enable_mem_tracing"
4006
4007 if test "$enableval" = yes; then
4008 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4009 else
4010 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4011 fi
4012
4013 else
4014
4015 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4016 if test "x$LINE" != x ; then
4017 eval "DEFAULT_$LINE"
4018 else
4019 no_cache=1
4020 fi
4021
4022 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4023
4024 fi;
4025
4026 eval "$ac_cv_use_mem_tracing"
4027 if test "$no_cache" != 1; then
4028 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4029 fi
4030
4031 if test "$wxUSE_MEM_TRACING" = yes; then
4032 echo "$as_me:$LINENO: result: yes" >&5
4033 echo "${ECHO_T}yes" >&6
4034 else
4035 echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4037 fi
4038
4039
4040 enablestring=
4041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4042 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4043 no_cache=0
4044 # Check whether --enable-profile or --disable-profile was given.
4045 if test "${enable_profile+set}" = set; then
4046 enableval="$enable_profile"
4047
4048 if test "$enableval" = yes; then
4049 ac_cv_use_profile='wxUSE_PROFILE=yes'
4050 else
4051 ac_cv_use_profile='wxUSE_PROFILE=no'
4052 fi
4053
4054 else
4055
4056 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4057 if test "x$LINE" != x ; then
4058 eval "DEFAULT_$LINE"
4059 else
4060 no_cache=1
4061 fi
4062
4063 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4064
4065 fi;
4066
4067 eval "$ac_cv_use_profile"
4068 if test "$no_cache" != 1; then
4069 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4070 fi
4071
4072 if test "$wxUSE_PROFILE" = yes; then
4073 echo "$as_me:$LINENO: result: yes" >&5
4074 echo "${ECHO_T}yes" >&6
4075 else
4076 echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4078 fi
4079
4080
4081 enablestring=
4082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4083 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4084 no_cache=0
4085 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4086 if test "${enable_no_rtti+set}" = set; then
4087 enableval="$enable_no_rtti"
4088
4089 if test "$enableval" = yes; then
4090 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4091 else
4092 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4093 fi
4094
4095 else
4096
4097 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4098 if test "x$LINE" != x ; then
4099 eval "DEFAULT_$LINE"
4100 else
4101 no_cache=1
4102 fi
4103
4104 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4105
4106 fi;
4107
4108 eval "$ac_cv_use_no_rtti"
4109 if test "$no_cache" != 1; then
4110 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4111 fi
4112
4113 if test "$wxUSE_NO_RTTI" = yes; then
4114 echo "$as_me:$LINENO: result: yes" >&5
4115 echo "${ECHO_T}yes" >&6
4116 else
4117 echo "$as_me:$LINENO: result: no" >&5
4118 echo "${ECHO_T}no" >&6
4119 fi
4120
4121
4122 enablestring=
4123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4124 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4125 no_cache=0
4126 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4127 if test "${enable_no_exceptions+set}" = set; then
4128 enableval="$enable_no_exceptions"
4129
4130 if test "$enableval" = yes; then
4131 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4132 else
4133 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4134 fi
4135
4136 else
4137
4138 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4139 if test "x$LINE" != x ; then
4140 eval "DEFAULT_$LINE"
4141 else
4142 no_cache=1
4143 fi
4144
4145 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4146
4147 fi;
4148
4149 eval "$ac_cv_use_no_exceptions"
4150 if test "$no_cache" != 1; then
4151 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4152 fi
4153
4154 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4155 echo "$as_me:$LINENO: result: yes" >&5
4156 echo "${ECHO_T}yes" >&6
4157 else
4158 echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4160 fi
4161
4162
4163 enablestring=
4164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4165 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4166 no_cache=0
4167 # Check whether --enable-permissive or --disable-permissive was given.
4168 if test "${enable_permissive+set}" = set; then
4169 enableval="$enable_permissive"
4170
4171 if test "$enableval" = yes; then
4172 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4173 else
4174 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4175 fi
4176
4177 else
4178
4179 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4180 if test "x$LINE" != x ; then
4181 eval "DEFAULT_$LINE"
4182 else
4183 no_cache=1
4184 fi
4185
4186 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4187
4188 fi;
4189
4190 eval "$ac_cv_use_permissive"
4191 if test "$no_cache" != 1; then
4192 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4193 fi
4194
4195 if test "$wxUSE_PERMISSIVE" = yes; then
4196 echo "$as_me:$LINENO: result: yes" >&5
4197 echo "${ECHO_T}yes" >&6
4198 else
4199 echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6
4201 fi
4202
4203
4204 enablestring=
4205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4206 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4207 no_cache=0
4208 # Check whether --enable-no_deps or --disable-no_deps was given.
4209 if test "${enable_no_deps+set}" = set; then
4210 enableval="$enable_no_deps"
4211
4212 if test "$enableval" = yes; then
4213 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4214 else
4215 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4216 fi
4217
4218 else
4219
4220 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4221 if test "x$LINE" != x ; then
4222 eval "DEFAULT_$LINE"
4223 else
4224 no_cache=1
4225 fi
4226
4227 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4228
4229 fi;
4230
4231 eval "$ac_cv_use_no_deps"
4232 if test "$no_cache" != 1; then
4233 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4234 fi
4235
4236 if test "$wxUSE_NO_DEPS" = yes; then
4237 echo "$as_me:$LINENO: result: yes" >&5
4238 echo "${ECHO_T}yes" >&6
4239 else
4240 echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6
4242 fi
4243
4244
4245 enablestring=
4246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4247 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4248 no_cache=0
4249 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4250 if test "${enable_universal_binary+set}" = set; then
4251 enableval="$enable_universal_binary"
4252
4253 if test "$enableval" = yes; then
4254 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4255 else
4256 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4257 fi
4258
4259 else
4260
4261 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4262 if test "x$LINE" != x ; then
4263 eval "DEFAULT_$LINE"
4264 else
4265 no_cache=1
4266 fi
4267
4268 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4269
4270 fi;
4271
4272 eval "$ac_cv_use_universal_binary"
4273 if test "$no_cache" != 1; then
4274 echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4275 fi
4276
4277 if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4278 echo "$as_me:$LINENO: result: yes" >&5
4279 echo "${ECHO_T}yes" >&6
4280 else
4281 echo "$as_me:$LINENO: result: no" >&5
4282 echo "${ECHO_T}no" >&6
4283 fi
4284
4285
4286
4287 enablestring=enable
4288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4289 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4290 no_cache=0
4291 # Check whether --enable-compat24 or --disable-compat24 was given.
4292 if test "${enable_compat24+set}" = set; then
4293 enableval="$enable_compat24"
4294
4295 if test "$enableval" = yes; then
4296 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4297 else
4298 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4299 fi
4300
4301 else
4302
4303 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4304 if test "x$LINE" != x ; then
4305 eval "DEFAULT_$LINE"
4306 else
4307 no_cache=1
4308 fi
4309
4310 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4311
4312 fi;
4313
4314 eval "$ac_cv_use_compat24"
4315 if test "$no_cache" != 1; then
4316 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4317 fi
4318
4319 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4320 echo "$as_me:$LINENO: result: yes" >&5
4321 echo "${ECHO_T}yes" >&6
4322 else
4323 echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6
4325 fi
4326
4327
4328 enablestring=disable
4329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4330 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4331 no_cache=0
4332 # Check whether --enable-compat26 or --disable-compat26 was given.
4333 if test "${enable_compat26+set}" = set; then
4334 enableval="$enable_compat26"
4335
4336 if test "$enableval" = yes; then
4337 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4338 else
4339 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4340 fi
4341
4342 else
4343
4344 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
4345 if test "x$LINE" != x ; then
4346 eval "DEFAULT_$LINE"
4347 else
4348 no_cache=1
4349 fi
4350
4351 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
4352
4353 fi;
4354
4355 eval "$ac_cv_use_compat26"
4356 if test "$no_cache" != 1; then
4357 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4358 fi
4359
4360 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
4361 echo "$as_me:$LINENO: result: yes" >&5
4362 echo "${ECHO_T}yes" >&6
4363 else
4364 echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6
4366 fi
4367
4368
4369
4370 enablestring=
4371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4372 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4373 no_cache=0
4374 # Check whether --enable-rpath or --disable-rpath was given.
4375 if test "${enable_rpath+set}" = set; then
4376 enableval="$enable_rpath"
4377
4378 if test "$enableval" = yes; then
4379 ac_cv_use_rpath='wxUSE_RPATH=yes'
4380 else
4381 ac_cv_use_rpath='wxUSE_RPATH=no'
4382 fi
4383
4384 else
4385
4386 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4387 if test "x$LINE" != x ; then
4388 eval "DEFAULT_$LINE"
4389 else
4390 no_cache=1
4391 fi
4392
4393 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4394
4395 fi;
4396
4397 eval "$ac_cv_use_rpath"
4398 if test "$no_cache" != 1; then
4399 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4400 fi
4401
4402 if test "$wxUSE_RPATH" = yes; then
4403 echo "$as_me:$LINENO: result: yes" >&5
4404 echo "${ECHO_T}yes" >&6
4405 else
4406 echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6
4408 fi
4409
4410
4411
4412
4413
4414 enablestring=
4415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4416 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4417 no_cache=0
4418 # Check whether --enable-intl or --disable-intl was given.
4419 if test "${enable_intl+set}" = set; then
4420 enableval="$enable_intl"
4421
4422 if test "$enableval" = yes; then
4423 ac_cv_use_intl='wxUSE_INTL=yes'
4424 else
4425 ac_cv_use_intl='wxUSE_INTL=no'
4426 fi
4427
4428 else
4429
4430 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4431 if test "x$LINE" != x ; then
4432 eval "DEFAULT_$LINE"
4433 else
4434 no_cache=1
4435 fi
4436
4437 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4438
4439 fi;
4440
4441 eval "$ac_cv_use_intl"
4442 if test "$no_cache" != 1; then
4443 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4444 fi
4445
4446 if test "$wxUSE_INTL" = yes; then
4447 echo "$as_me:$LINENO: result: yes" >&5
4448 echo "${ECHO_T}yes" >&6
4449 else
4450 echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6
4452 fi
4453
4454
4455 enablestring=
4456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4457 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4458 no_cache=0
4459 # Check whether --enable-config or --disable-config was given.
4460 if test "${enable_config+set}" = set; then
4461 enableval="$enable_config"
4462
4463 if test "$enableval" = yes; then
4464 ac_cv_use_config='wxUSE_CONFIG=yes'
4465 else
4466 ac_cv_use_config='wxUSE_CONFIG=no'
4467 fi
4468
4469 else
4470
4471 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4479
4480 fi;
4481
4482 eval "$ac_cv_use_config"
4483 if test "$no_cache" != 1; then
4484 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4485 fi
4486
4487 if test "$wxUSE_CONFIG" = yes; then
4488 echo "$as_me:$LINENO: result: yes" >&5
4489 echo "${ECHO_T}yes" >&6
4490 else
4491 echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4493 fi
4494
4495
4496
4497 enablestring=
4498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4499 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4500 no_cache=0
4501 # Check whether --enable-protocols or --disable-protocols was given.
4502 if test "${enable_protocols+set}" = set; then
4503 enableval="$enable_protocols"
4504
4505 if test "$enableval" = yes; then
4506 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4507 else
4508 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4509 fi
4510
4511 else
4512
4513 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4514 if test "x$LINE" != x ; then
4515 eval "DEFAULT_$LINE"
4516 else
4517 no_cache=1
4518 fi
4519
4520 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4521
4522 fi;
4523
4524 eval "$ac_cv_use_protocols"
4525 if test "$no_cache" != 1; then
4526 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4527 fi
4528
4529 if test "$wxUSE_PROTOCOL" = yes; then
4530 echo "$as_me:$LINENO: result: yes" >&5
4531 echo "${ECHO_T}yes" >&6
4532 else
4533 echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4535 fi
4536
4537
4538 enablestring=
4539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4540 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4541 no_cache=0
4542 # Check whether --enable-ftp or --disable-ftp was given.
4543 if test "${enable_ftp+set}" = set; then
4544 enableval="$enable_ftp"
4545
4546 if test "$enableval" = yes; then
4547 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4548 else
4549 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4550 fi
4551
4552 else
4553
4554 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4555 if test "x$LINE" != x ; then
4556 eval "DEFAULT_$LINE"
4557 else
4558 no_cache=1
4559 fi
4560
4561 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4562
4563 fi;
4564
4565 eval "$ac_cv_use_ftp"
4566 if test "$no_cache" != 1; then
4567 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4568 fi
4569
4570 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4571 echo "$as_me:$LINENO: result: yes" >&5
4572 echo "${ECHO_T}yes" >&6
4573 else
4574 echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4576 fi
4577
4578
4579 enablestring=
4580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4581 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4582 no_cache=0
4583 # Check whether --enable-http or --disable-http was given.
4584 if test "${enable_http+set}" = set; then
4585 enableval="$enable_http"
4586
4587 if test "$enableval" = yes; then
4588 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4589 else
4590 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4591 fi
4592
4593 else
4594
4595 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4596 if test "x$LINE" != x ; then
4597 eval "DEFAULT_$LINE"
4598 else
4599 no_cache=1
4600 fi
4601
4602 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4603
4604 fi;
4605
4606 eval "$ac_cv_use_http"
4607 if test "$no_cache" != 1; then
4608 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4609 fi
4610
4611 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4612 echo "$as_me:$LINENO: result: yes" >&5
4613 echo "${ECHO_T}yes" >&6
4614 else
4615 echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6
4617 fi
4618
4619
4620 enablestring=
4621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4622 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4623 no_cache=0
4624 # Check whether --enable-fileproto or --disable-fileproto was given.
4625 if test "${enable_fileproto+set}" = set; then
4626 enableval="$enable_fileproto"
4627
4628 if test "$enableval" = yes; then
4629 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4630 else
4631 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4632 fi
4633
4634 else
4635
4636 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4637 if test "x$LINE" != x ; then
4638 eval "DEFAULT_$LINE"
4639 else
4640 no_cache=1
4641 fi
4642
4643 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4644
4645 fi;
4646
4647 eval "$ac_cv_use_fileproto"
4648 if test "$no_cache" != 1; then
4649 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4650 fi
4651
4652 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4653 echo "$as_me:$LINENO: result: yes" >&5
4654 echo "${ECHO_T}yes" >&6
4655 else
4656 echo "$as_me:$LINENO: result: no" >&5
4657 echo "${ECHO_T}no" >&6
4658 fi
4659
4660
4661 enablestring=
4662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4663 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4664 no_cache=0
4665 # Check whether --enable-sockets or --disable-sockets was given.
4666 if test "${enable_sockets+set}" = set; then
4667 enableval="$enable_sockets"
4668
4669 if test "$enableval" = yes; then
4670 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4671 else
4672 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4673 fi
4674
4675 else
4676
4677 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4678 if test "x$LINE" != x ; then
4679 eval "DEFAULT_$LINE"
4680 else
4681 no_cache=1
4682 fi
4683
4684 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4685
4686 fi;
4687
4688 eval "$ac_cv_use_sockets"
4689 if test "$no_cache" != 1; then
4690 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4691 fi
4692
4693 if test "$wxUSE_SOCKETS" = yes; then
4694 echo "$as_me:$LINENO: result: yes" >&5
4695 echo "${ECHO_T}yes" >&6
4696 else
4697 echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6
4699 fi
4700
4701
4702 enablestring=
4703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4704 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4705 no_cache=0
4706 # Check whether --enable-ole or --disable-ole was given.
4707 if test "${enable_ole+set}" = set; then
4708 enableval="$enable_ole"
4709
4710 if test "$enableval" = yes; then
4711 ac_cv_use_ole='wxUSE_OLE=yes'
4712 else
4713 ac_cv_use_ole='wxUSE_OLE=no'
4714 fi
4715
4716 else
4717
4718 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4719 if test "x$LINE" != x ; then
4720 eval "DEFAULT_$LINE"
4721 else
4722 no_cache=1
4723 fi
4724
4725 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4726
4727 fi;
4728
4729 eval "$ac_cv_use_ole"
4730 if test "$no_cache" != 1; then
4731 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4732 fi
4733
4734 if test "$wxUSE_OLE" = yes; then
4735 echo "$as_me:$LINENO: result: yes" >&5
4736 echo "${ECHO_T}yes" >&6
4737 else
4738 echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6
4740 fi
4741
4742
4743 enablestring=
4744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4745 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4746 no_cache=0
4747 # Check whether --enable-dataobj or --disable-dataobj was given.
4748 if test "${enable_dataobj+set}" = set; then
4749 enableval="$enable_dataobj"
4750
4751 if test "$enableval" = yes; then
4752 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4753 else
4754 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4755 fi
4756
4757 else
4758
4759 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4760 if test "x$LINE" != x ; then
4761 eval "DEFAULT_$LINE"
4762 else
4763 no_cache=1
4764 fi
4765
4766 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4767
4768 fi;
4769
4770 eval "$ac_cv_use_dataobj"
4771 if test "$no_cache" != 1; then
4772 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4773 fi
4774
4775 if test "$wxUSE_DATAOBJ" = yes; then
4776 echo "$as_me:$LINENO: result: yes" >&5
4777 echo "${ECHO_T}yes" >&6
4778 else
4779 echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6
4781 fi
4782
4783
4784
4785 enablestring=
4786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4787 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4788 no_cache=0
4789 # Check whether --enable-ipc or --disable-ipc was given.
4790 if test "${enable_ipc+set}" = set; then
4791 enableval="$enable_ipc"
4792
4793 if test "$enableval" = yes; then
4794 ac_cv_use_ipc='wxUSE_IPC=yes'
4795 else
4796 ac_cv_use_ipc='wxUSE_IPC=no'
4797 fi
4798
4799 else
4800
4801 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4802 if test "x$LINE" != x ; then
4803 eval "DEFAULT_$LINE"
4804 else
4805 no_cache=1
4806 fi
4807
4808 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4809
4810 fi;
4811
4812 eval "$ac_cv_use_ipc"
4813 if test "$no_cache" != 1; then
4814 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4815 fi
4816
4817 if test "$wxUSE_IPC" = yes; then
4818 echo "$as_me:$LINENO: result: yes" >&5
4819 echo "${ECHO_T}yes" >&6
4820 else
4821 echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6
4823 fi
4824
4825
4826
4827 enablestring=
4828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4829 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4830 no_cache=0
4831 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4832 if test "${enable_apple_ieee+set}" = set; then
4833 enableval="$enable_apple_ieee"
4834
4835 if test "$enableval" = yes; then
4836 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4837 else
4838 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4839 fi
4840
4841 else
4842
4843 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4844 if test "x$LINE" != x ; then
4845 eval "DEFAULT_$LINE"
4846 else
4847 no_cache=1
4848 fi
4849
4850 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4851
4852 fi;
4853
4854 eval "$ac_cv_use_apple_ieee"
4855 if test "$no_cache" != 1; then
4856 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4857 fi
4858
4859 if test "$wxUSE_APPLE_IEEE" = yes; then
4860 echo "$as_me:$LINENO: result: yes" >&5
4861 echo "${ECHO_T}yes" >&6
4862 else
4863 echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6
4865 fi
4866
4867
4868 enablestring=
4869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4870 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4871 no_cache=0
4872 # Check whether --enable-arcstream or --disable-arcstream was given.
4873 if test "${enable_arcstream+set}" = set; then
4874 enableval="$enable_arcstream"
4875
4876 if test "$enableval" = yes; then
4877 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
4878 else
4879 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
4880 fi
4881
4882 else
4883
4884 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
4885 if test "x$LINE" != x ; then
4886 eval "DEFAULT_$LINE"
4887 else
4888 no_cache=1
4889 fi
4890
4891 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
4892
4893 fi;
4894
4895 eval "$ac_cv_use_arcstream"
4896 if test "$no_cache" != 1; then
4897 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4898 fi
4899
4900 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
4901 echo "$as_me:$LINENO: result: yes" >&5
4902 echo "${ECHO_T}yes" >&6
4903 else
4904 echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6
4906 fi
4907
4908
4909 enablestring=
4910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4911 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4912 no_cache=0
4913 # Check whether --enable-backtrace or --disable-backtrace was given.
4914 if test "${enable_backtrace+set}" = set; then
4915 enableval="$enable_backtrace"
4916
4917 if test "$enableval" = yes; then
4918 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4919 else
4920 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4921 fi
4922
4923 else
4924
4925 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4926 if test "x$LINE" != x ; then
4927 eval "DEFAULT_$LINE"
4928 else
4929 no_cache=1
4930 fi
4931
4932 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4933
4934 fi;
4935
4936 eval "$ac_cv_use_backtrace"
4937 if test "$no_cache" != 1; then
4938 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4939 fi
4940
4941 if test "$wxUSE_STACKWALKER" = yes; then
4942 echo "$as_me:$LINENO: result: yes" >&5
4943 echo "${ECHO_T}yes" >&6
4944 else
4945 echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6
4947 fi
4948
4949
4950 enablestring=
4951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4952 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4953 no_cache=0
4954 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4955 if test "${enable_catch_segvs+set}" = set; then
4956 enableval="$enable_catch_segvs"
4957
4958 if test "$enableval" = yes; then
4959 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4960 else
4961 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4962 fi
4963
4964 else
4965
4966 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4967 if test "x$LINE" != x ; then
4968 eval "DEFAULT_$LINE"
4969 else
4970 no_cache=1
4971 fi
4972
4973 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4974
4975 fi;
4976
4977 eval "$ac_cv_use_catch_segvs"
4978 if test "$no_cache" != 1; then
4979 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4980 fi
4981
4982 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4983 echo "$as_me:$LINENO: result: yes" >&5
4984 echo "${ECHO_T}yes" >&6
4985 else
4986 echo "$as_me:$LINENO: result: no" >&5
4987 echo "${ECHO_T}no" >&6
4988 fi
4989
4990
4991 enablestring=
4992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4993 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4994 no_cache=0
4995 # Check whether --enable-cmdline or --disable-cmdline was given.
4996 if test "${enable_cmdline+set}" = set; then
4997 enableval="$enable_cmdline"
4998
4999 if test "$enableval" = yes; then
5000 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5001 else
5002 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5003 fi
5004
5005 else
5006
5007 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5008 if test "x$LINE" != x ; then
5009 eval "DEFAULT_$LINE"
5010 else
5011 no_cache=1
5012 fi
5013
5014 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5015
5016 fi;
5017
5018 eval "$ac_cv_use_cmdline"
5019 if test "$no_cache" != 1; then
5020 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5021 fi
5022
5023 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5024 echo "$as_me:$LINENO: result: yes" >&5
5025 echo "${ECHO_T}yes" >&6
5026 else
5027 echo "$as_me:$LINENO: result: no" >&5
5028 echo "${ECHO_T}no" >&6
5029 fi
5030
5031
5032 enablestring=
5033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5034 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5035 no_cache=0
5036 # Check whether --enable-datetime or --disable-datetime was given.
5037 if test "${enable_datetime+set}" = set; then
5038 enableval="$enable_datetime"
5039
5040 if test "$enableval" = yes; then
5041 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5042 else
5043 ac_cv_use_datetime='wxUSE_DATETIME=no'
5044 fi
5045
5046 else
5047
5048 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5049 if test "x$LINE" != x ; then
5050 eval "DEFAULT_$LINE"
5051 else
5052 no_cache=1
5053 fi
5054
5055 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5056
5057 fi;
5058
5059 eval "$ac_cv_use_datetime"
5060 if test "$no_cache" != 1; then
5061 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5062 fi
5063
5064 if test "$wxUSE_DATETIME" = yes; then
5065 echo "$as_me:$LINENO: result: yes" >&5
5066 echo "${ECHO_T}yes" >&6
5067 else
5068 echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6
5070 fi
5071
5072
5073 enablestring=
5074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5075 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5076 no_cache=0
5077 # Check whether --enable-debugreport or --disable-debugreport was given.
5078 if test "${enable_debugreport+set}" = set; then
5079 enableval="$enable_debugreport"
5080
5081 if test "$enableval" = yes; then
5082 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5083 else
5084 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5085 fi
5086
5087 else
5088
5089 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5090 if test "x$LINE" != x ; then
5091 eval "DEFAULT_$LINE"
5092 else
5093 no_cache=1
5094 fi
5095
5096 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5097
5098 fi;
5099
5100 eval "$ac_cv_use_debugreport"
5101 if test "$no_cache" != 1; then
5102 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5103 fi
5104
5105 if test "$wxUSE_DEBUGREPORT" = yes; then
5106 echo "$as_me:$LINENO: result: yes" >&5
5107 echo "${ECHO_T}yes" >&6
5108 else
5109 echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6
5111 fi
5112
5113
5114 enablestring=
5115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5116 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5117 no_cache=0
5118 # Check whether --enable-dialupman or --disable-dialupman was given.
5119 if test "${enable_dialupman+set}" = set; then
5120 enableval="$enable_dialupman"
5121
5122 if test "$enableval" = yes; then
5123 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5124 else
5125 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5126 fi
5127
5128 else
5129
5130 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5131 if test "x$LINE" != x ; then
5132 eval "DEFAULT_$LINE"
5133 else
5134 no_cache=1
5135 fi
5136
5137 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5138
5139 fi;
5140
5141 eval "$ac_cv_use_dialupman"
5142 if test "$no_cache" != 1; then
5143 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5144 fi
5145
5146 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5147 echo "$as_me:$LINENO: result: yes" >&5
5148 echo "${ECHO_T}yes" >&6
5149 else
5150 echo "$as_me:$LINENO: result: no" >&5
5151 echo "${ECHO_T}no" >&6
5152 fi
5153
5154
5155 enablestring=
5156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5157 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5158 no_cache=0
5159 # Check whether --enable-dynlib or --disable-dynlib was given.
5160 if test "${enable_dynlib+set}" = set; then
5161 enableval="$enable_dynlib"
5162
5163 if test "$enableval" = yes; then
5164 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5165 else
5166 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5167 fi
5168
5169 else
5170
5171 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5172 if test "x$LINE" != x ; then
5173 eval "DEFAULT_$LINE"
5174 else
5175 no_cache=1
5176 fi
5177
5178 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5179
5180 fi;
5181
5182 eval "$ac_cv_use_dynlib"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5188 echo "$as_me:$LINENO: result: yes" >&5
5189 echo "${ECHO_T}yes" >&6
5190 else
5191 echo "$as_me:$LINENO: result: no" >&5
5192 echo "${ECHO_T}no" >&6
5193 fi
5194
5195
5196 enablestring=
5197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5198 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5199 no_cache=0
5200 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5201 if test "${enable_dynamicloader+set}" = set; then
5202 enableval="$enable_dynamicloader"
5203
5204 if test "$enableval" = yes; then
5205 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5206 else
5207 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5208 fi
5209
5210 else
5211
5212 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5213 if test "x$LINE" != x ; then
5214 eval "DEFAULT_$LINE"
5215 else
5216 no_cache=1
5217 fi
5218
5219 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5220
5221 fi;
5222
5223 eval "$ac_cv_use_dynamicloader"
5224 if test "$no_cache" != 1; then
5225 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5226 fi
5227
5228 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5229 echo "$as_me:$LINENO: result: yes" >&5
5230 echo "${ECHO_T}yes" >&6
5231 else
5232 echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6
5234 fi
5235
5236
5237 enablestring=
5238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5239 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5240 no_cache=0
5241 # Check whether --enable-exceptions or --disable-exceptions was given.
5242 if test "${enable_exceptions+set}" = set; then
5243 enableval="$enable_exceptions"
5244
5245 if test "$enableval" = yes; then
5246 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5247 else
5248 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5249 fi
5250
5251 else
5252
5253 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5254 if test "x$LINE" != x ; then
5255 eval "DEFAULT_$LINE"
5256 else
5257 no_cache=1
5258 fi
5259
5260 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5261
5262 fi;
5263
5264 eval "$ac_cv_use_exceptions"
5265 if test "$no_cache" != 1; then
5266 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5267 fi
5268
5269 if test "$wxUSE_EXCEPTIONS" = yes; then
5270 echo "$as_me:$LINENO: result: yes" >&5
5271 echo "${ECHO_T}yes" >&6
5272 else
5273 echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5275 fi
5276
5277
5278 enablestring=
5279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5280 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5281 no_cache=0
5282 # Check whether --enable-ffile or --disable-ffile was given.
5283 if test "${enable_ffile+set}" = set; then
5284 enableval="$enable_ffile"
5285
5286 if test "$enableval" = yes; then
5287 ac_cv_use_ffile='wxUSE_FFILE=yes'
5288 else
5289 ac_cv_use_ffile='wxUSE_FFILE=no'
5290 fi
5291
5292 else
5293
5294 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5295 if test "x$LINE" != x ; then
5296 eval "DEFAULT_$LINE"
5297 else
5298 no_cache=1
5299 fi
5300
5301 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5302
5303 fi;
5304
5305 eval "$ac_cv_use_ffile"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_FFILE" = yes; then
5311 echo "$as_me:$LINENO: result: yes" >&5
5312 echo "${ECHO_T}yes" >&6
5313 else
5314 echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6
5316 fi
5317
5318
5319 enablestring=
5320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5321 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5322 no_cache=0
5323 # Check whether --enable-file or --disable-file was given.
5324 if test "${enable_file+set}" = set; then
5325 enableval="$enable_file"
5326
5327 if test "$enableval" = yes; then
5328 ac_cv_use_file='wxUSE_FILE=yes'
5329 else
5330 ac_cv_use_file='wxUSE_FILE=no'
5331 fi
5332
5333 else
5334
5335 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5343
5344 fi;
5345
5346 eval "$ac_cv_use_file"
5347 if test "$no_cache" != 1; then
5348 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5349 fi
5350
5351 if test "$wxUSE_FILE" = yes; then
5352 echo "$as_me:$LINENO: result: yes" >&5
5353 echo "${ECHO_T}yes" >&6
5354 else
5355 echo "$as_me:$LINENO: result: no" >&5
5356 echo "${ECHO_T}no" >&6
5357 fi
5358
5359
5360 enablestring=
5361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5362 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5363 no_cache=0
5364 # Check whether --enable-filesystem or --disable-filesystem was given.
5365 if test "${enable_filesystem+set}" = set; then
5366 enableval="$enable_filesystem"
5367
5368 if test "$enableval" = yes; then
5369 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5370 else
5371 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5372 fi
5373
5374 else
5375
5376 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5377 if test "x$LINE" != x ; then
5378 eval "DEFAULT_$LINE"
5379 else
5380 no_cache=1
5381 fi
5382
5383 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5384
5385 fi;
5386
5387 eval "$ac_cv_use_filesystem"
5388 if test "$no_cache" != 1; then
5389 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5390 fi
5391
5392 if test "$wxUSE_FILESYSTEM" = yes; then
5393 echo "$as_me:$LINENO: result: yes" >&5
5394 echo "${ECHO_T}yes" >&6
5395 else
5396 echo "$as_me:$LINENO: result: no" >&5
5397 echo "${ECHO_T}no" >&6
5398 fi
5399
5400
5401 enablestring=
5402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5403 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5404 no_cache=0
5405 # Check whether --enable-fontmap or --disable-fontmap was given.
5406 if test "${enable_fontmap+set}" = set; then
5407 enableval="$enable_fontmap"
5408
5409 if test "$enableval" = yes; then
5410 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5411 else
5412 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5413 fi
5414
5415 else
5416
5417 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5418 if test "x$LINE" != x ; then
5419 eval "DEFAULT_$LINE"
5420 else
5421 no_cache=1
5422 fi
5423
5424 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5425
5426 fi;
5427
5428 eval "$ac_cv_use_fontmap"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_FONTMAP" = yes; then
5434 echo "$as_me:$LINENO: result: yes" >&5
5435 echo "${ECHO_T}yes" >&6
5436 else
5437 echo "$as_me:$LINENO: result: no" >&5
5438 echo "${ECHO_T}no" >&6
5439 fi
5440
5441
5442 enablestring=
5443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5444 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5445 no_cache=0
5446 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5447 if test "${enable_fs_inet+set}" = set; then
5448 enableval="$enable_fs_inet"
5449
5450 if test "$enableval" = yes; then
5451 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5452 else
5453 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5454 fi
5455
5456 else
5457
5458 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5459 if test "x$LINE" != x ; then
5460 eval "DEFAULT_$LINE"
5461 else
5462 no_cache=1
5463 fi
5464
5465 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5466
5467 fi;
5468
5469 eval "$ac_cv_use_fs_inet"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_FS_INET" = yes; then
5475 echo "$as_me:$LINENO: result: yes" >&5
5476 echo "${ECHO_T}yes" >&6
5477 else
5478 echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6
5480 fi
5481
5482
5483 enablestring=
5484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5485 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5486 no_cache=0
5487 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5488 if test "${enable_fs_zip+set}" = set; then
5489 enableval="$enable_fs_zip"
5490
5491 if test "$enableval" = yes; then
5492 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5493 else
5494 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5495 fi
5496
5497 else
5498
5499 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5500 if test "x$LINE" != x ; then
5501 eval "DEFAULT_$LINE"
5502 else
5503 no_cache=1
5504 fi
5505
5506 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5507
5508 fi;
5509
5510 eval "$ac_cv_use_fs_zip"
5511 if test "$no_cache" != 1; then
5512 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5513 fi
5514
5515 if test "$wxUSE_FS_ZIP" = yes; then
5516 echo "$as_me:$LINENO: result: yes" >&5
5517 echo "${ECHO_T}yes" >&6
5518 else
5519 echo "$as_me:$LINENO: result: no" >&5
5520 echo "${ECHO_T}no" >&6
5521 fi
5522
5523
5524 enablestring=
5525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5526 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5527 no_cache=0
5528 # Check whether --enable-geometry or --disable-geometry was given.
5529 if test "${enable_geometry+set}" = set; then
5530 enableval="$enable_geometry"
5531
5532 if test "$enableval" = yes; then
5533 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5534 else
5535 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5536 fi
5537
5538 else
5539
5540 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5541 if test "x$LINE" != x ; then
5542 eval "DEFAULT_$LINE"
5543 else
5544 no_cache=1
5545 fi
5546
5547 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5548
5549 fi;
5550
5551 eval "$ac_cv_use_geometry"
5552 if test "$no_cache" != 1; then
5553 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5554 fi
5555
5556 if test "$wxUSE_GEOMETRY" = yes; then
5557 echo "$as_me:$LINENO: result: yes" >&5
5558 echo "${ECHO_T}yes" >&6
5559 else
5560 echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6
5562 fi
5563
5564
5565 enablestring=
5566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5567 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5568 no_cache=0
5569 # Check whether --enable-log or --disable-log was given.
5570 if test "${enable_log+set}" = set; then
5571 enableval="$enable_log"
5572
5573 if test "$enableval" = yes; then
5574 ac_cv_use_log='wxUSE_LOG=yes'
5575 else
5576 ac_cv_use_log='wxUSE_LOG=no'
5577 fi
5578
5579 else
5580
5581 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5589
5590 fi;
5591
5592 eval "$ac_cv_use_log"
5593 if test "$no_cache" != 1; then
5594 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5595 fi
5596
5597 if test "$wxUSE_LOG" = yes; then
5598 echo "$as_me:$LINENO: result: yes" >&5
5599 echo "${ECHO_T}yes" >&6
5600 else
5601 echo "$as_me:$LINENO: result: no" >&5
5602 echo "${ECHO_T}no" >&6
5603 fi
5604
5605
5606 enablestring=
5607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5608 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5609 no_cache=0
5610 # Check whether --enable-longlong or --disable-longlong was given.
5611 if test "${enable_longlong+set}" = set; then
5612 enableval="$enable_longlong"
5613
5614 if test "$enableval" = yes; then
5615 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5616 else
5617 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5618 fi
5619
5620 else
5621
5622 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5623 if test "x$LINE" != x ; then
5624 eval "DEFAULT_$LINE"
5625 else
5626 no_cache=1
5627 fi
5628
5629 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5630
5631 fi;
5632
5633 eval "$ac_cv_use_longlong"
5634 if test "$no_cache" != 1; then
5635 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5636 fi
5637
5638 if test "$wxUSE_LONGLONG" = yes; then
5639 echo "$as_me:$LINENO: result: yes" >&5
5640 echo "${ECHO_T}yes" >&6
5641 else
5642 echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6
5644 fi
5645
5646
5647 enablestring=
5648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5649 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5650 no_cache=0
5651 # Check whether --enable-mimetype or --disable-mimetype was given.
5652 if test "${enable_mimetype+set}" = set; then
5653 enableval="$enable_mimetype"
5654
5655 if test "$enableval" = yes; then
5656 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5657 else
5658 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5659 fi
5660
5661 else
5662
5663 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5671
5672 fi;
5673
5674 eval "$ac_cv_use_mimetype"
5675 if test "$no_cache" != 1; then
5676 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5677 fi
5678
5679 if test "$wxUSE_MIMETYPE" = yes; then
5680 echo "$as_me:$LINENO: result: yes" >&5
5681 echo "${ECHO_T}yes" >&6
5682 else
5683 echo "$as_me:$LINENO: result: no" >&5
5684 echo "${ECHO_T}no" >&6
5685 fi
5686
5687
5688 enablestring=
5689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5690 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5691 no_cache=0
5692 # Check whether --enable-mslu or --disable-mslu was given.
5693 if test "${enable_mslu+set}" = set; then
5694 enableval="$enable_mslu"
5695
5696 if test "$enableval" = yes; then
5697 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5698 else
5699 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5700 fi
5701
5702 else
5703
5704 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5705 if test "x$LINE" != x ; then
5706 eval "DEFAULT_$LINE"
5707 else
5708 no_cache=1
5709 fi
5710
5711 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5712
5713 fi;
5714
5715 eval "$ac_cv_use_mslu"
5716 if test "$no_cache" != 1; then
5717 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5718 fi
5719
5720 if test "$wxUSE_UNICODE_MSLU" = yes; then
5721 echo "$as_me:$LINENO: result: yes" >&5
5722 echo "${ECHO_T}yes" >&6
5723 else
5724 echo "$as_me:$LINENO: result: no" >&5
5725 echo "${ECHO_T}no" >&6
5726 fi
5727
5728
5729 enablestring=
5730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5731 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5732 no_cache=0
5733 # Check whether --enable-snglinst or --disable-snglinst was given.
5734 if test "${enable_snglinst+set}" = set; then
5735 enableval="$enable_snglinst"
5736
5737 if test "$enableval" = yes; then
5738 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5739 else
5740 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5741 fi
5742
5743 else
5744
5745 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5746 if test "x$LINE" != x ; then
5747 eval "DEFAULT_$LINE"
5748 else
5749 no_cache=1
5750 fi
5751
5752 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5753
5754 fi;
5755
5756 eval "$ac_cv_use_snglinst"
5757 if test "$no_cache" != 1; then
5758 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5759 fi
5760
5761 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5762 echo "$as_me:$LINENO: result: yes" >&5
5763 echo "${ECHO_T}yes" >&6
5764 else
5765 echo "$as_me:$LINENO: result: no" >&5
5766 echo "${ECHO_T}no" >&6
5767 fi
5768
5769
5770 enablestring=
5771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5772 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5773 no_cache=0
5774 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5775 if test "${enable_std_iostreams+set}" = set; then
5776 enableval="$enable_std_iostreams"
5777
5778 if test "$enableval" = yes; then
5779 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5780 else
5781 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5782 fi
5783
5784 else
5785
5786 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5787 if test "x$LINE" != x ; then
5788 eval "DEFAULT_$LINE"
5789 else
5790 no_cache=1
5791 fi
5792
5793 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5794
5795 fi;
5796
5797 eval "$ac_cv_use_std_iostreams"
5798 if test "$no_cache" != 1; then
5799 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5800 fi
5801
5802 if test "$wxUSE_STD_IOSTREAM" = yes; then
5803 echo "$as_me:$LINENO: result: yes" >&5
5804 echo "${ECHO_T}yes" >&6
5805 else
5806 echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5808 fi
5809
5810
5811 enablestring=
5812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5813 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5814 no_cache=0
5815 # Check whether --enable-std_string or --disable-std_string was given.
5816 if test "${enable_std_string+set}" = set; then
5817 enableval="$enable_std_string"
5818
5819 if test "$enableval" = yes; then
5820 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5821 else
5822 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5823 fi
5824
5825 else
5826
5827 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5828 if test "x$LINE" != x ; then
5829 eval "DEFAULT_$LINE"
5830 else
5831 no_cache=1
5832 fi
5833
5834 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5835
5836 fi;
5837
5838 eval "$ac_cv_use_std_string"
5839 if test "$no_cache" != 1; then
5840 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5841 fi
5842
5843 if test "$wxUSE_STD_STRING" = yes; then
5844 echo "$as_me:$LINENO: result: yes" >&5
5845 echo "${ECHO_T}yes" >&6
5846 else
5847 echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6
5849 fi
5850
5851
5852 enablestring=
5853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5854 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
5855 no_cache=0
5856 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5857 if test "${enable_stdpaths+set}" = set; then
5858 enableval="$enable_stdpaths"
5859
5860 if test "$enableval" = yes; then
5861 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
5862 else
5863 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
5864 fi
5865
5866 else
5867
5868 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
5869 if test "x$LINE" != x ; then
5870 eval "DEFAULT_$LINE"
5871 else
5872 no_cache=1
5873 fi
5874
5875 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
5876
5877 fi;
5878
5879 eval "$ac_cv_use_stdpaths"
5880 if test "$no_cache" != 1; then
5881 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
5882 fi
5883
5884 if test "$wxUSE_STDPATHS" = yes; then
5885 echo "$as_me:$LINENO: result: yes" >&5
5886 echo "${ECHO_T}yes" >&6
5887 else
5888 echo "$as_me:$LINENO: result: no" >&5
5889 echo "${ECHO_T}no" >&6
5890 fi
5891
5892
5893 enablestring=
5894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5895 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5896 no_cache=0
5897 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5898 if test "${enable_stopwatch+set}" = set; then
5899 enableval="$enable_stopwatch"
5900
5901 if test "$enableval" = yes; then
5902 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5903 else
5904 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5905 fi
5906
5907 else
5908
5909 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5910 if test "x$LINE" != x ; then
5911 eval "DEFAULT_$LINE"
5912 else
5913 no_cache=1
5914 fi
5915
5916 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5917
5918 fi;
5919
5920 eval "$ac_cv_use_stopwatch"
5921 if test "$no_cache" != 1; then
5922 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5923 fi
5924
5925 if test "$wxUSE_STOPWATCH" = yes; then
5926 echo "$as_me:$LINENO: result: yes" >&5
5927 echo "${ECHO_T}yes" >&6
5928 else
5929 echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6
5931 fi
5932
5933
5934 enablestring=
5935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5936 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5937 no_cache=0
5938 # Check whether --enable-streams or --disable-streams was given.
5939 if test "${enable_streams+set}" = set; then
5940 enableval="$enable_streams"
5941
5942 if test "$enableval" = yes; then
5943 ac_cv_use_streams='wxUSE_STREAMS=yes'
5944 else
5945 ac_cv_use_streams='wxUSE_STREAMS=no'
5946 fi
5947
5948 else
5949
5950 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5951 if test "x$LINE" != x ; then
5952 eval "DEFAULT_$LINE"
5953 else
5954 no_cache=1
5955 fi
5956
5957 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5958
5959 fi;
5960
5961 eval "$ac_cv_use_streams"
5962 if test "$no_cache" != 1; then
5963 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5964 fi
5965
5966 if test "$wxUSE_STREAMS" = yes; then
5967 echo "$as_me:$LINENO: result: yes" >&5
5968 echo "${ECHO_T}yes" >&6
5969 else
5970 echo "$as_me:$LINENO: result: no" >&5
5971 echo "${ECHO_T}no" >&6
5972 fi
5973
5974
5975 enablestring=
5976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5977 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5978 no_cache=0
5979 # Check whether --enable-system_options or --disable-system_options was given.
5980 if test "${enable_system_options+set}" = set; then
5981 enableval="$enable_system_options"
5982
5983 if test "$enableval" = yes; then
5984 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5985 else
5986 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5987 fi
5988
5989 else
5990
5991 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5992 if test "x$LINE" != x ; then
5993 eval "DEFAULT_$LINE"
5994 else
5995 no_cache=1
5996 fi
5997
5998 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5999
6000 fi;
6001
6002 eval "$ac_cv_use_system_options"
6003 if test "$no_cache" != 1; then
6004 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6005 fi
6006
6007 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6008 echo "$as_me:$LINENO: result: yes" >&5
6009 echo "${ECHO_T}yes" >&6
6010 else
6011 echo "$as_me:$LINENO: result: no" >&5
6012 echo "${ECHO_T}no" >&6
6013 fi
6014
6015
6016 enablestring=
6017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6018 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6019 no_cache=0
6020 # Check whether --enable-textbuf or --disable-textbuf was given.
6021 if test "${enable_textbuf+set}" = set; then
6022 enableval="$enable_textbuf"
6023
6024 if test "$enableval" = yes; then
6025 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6026 else
6027 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6028 fi
6029
6030 else
6031
6032 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6033 if test "x$LINE" != x ; then
6034 eval "DEFAULT_$LINE"
6035 else
6036 no_cache=1
6037 fi
6038
6039 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6040
6041 fi;
6042
6043 eval "$ac_cv_use_textbuf"
6044 if test "$no_cache" != 1; then
6045 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6046 fi
6047
6048 if test "$wxUSE_TEXTBUFFER" = yes; then
6049 echo "$as_me:$LINENO: result: yes" >&5
6050 echo "${ECHO_T}yes" >&6
6051 else
6052 echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6
6054 fi
6055
6056
6057 enablestring=
6058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6059 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6060 no_cache=0
6061 # Check whether --enable-textfile or --disable-textfile was given.
6062 if test "${enable_textfile+set}" = set; then
6063 enableval="$enable_textfile"
6064
6065 if test "$enableval" = yes; then
6066 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6067 else
6068 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6069 fi
6070
6071 else
6072
6073 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6074 if test "x$LINE" != x ; then
6075 eval "DEFAULT_$LINE"
6076 else
6077 no_cache=1
6078 fi
6079
6080 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6081
6082 fi;
6083
6084 eval "$ac_cv_use_textfile"
6085 if test "$no_cache" != 1; then
6086 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6087 fi
6088
6089 if test "$wxUSE_TEXTFILE" = yes; then
6090 echo "$as_me:$LINENO: result: yes" >&5
6091 echo "${ECHO_T}yes" >&6
6092 else
6093 echo "$as_me:$LINENO: result: no" >&5
6094 echo "${ECHO_T}no" >&6
6095 fi
6096
6097
6098 enablestring=
6099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6100 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6101 no_cache=0
6102 # Check whether --enable-timer or --disable-timer was given.
6103 if test "${enable_timer+set}" = set; then
6104 enableval="$enable_timer"
6105
6106 if test "$enableval" = yes; then
6107 ac_cv_use_timer='wxUSE_TIMER=yes'
6108 else
6109 ac_cv_use_timer='wxUSE_TIMER=no'
6110 fi
6111
6112 else
6113
6114 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6115 if test "x$LINE" != x ; then
6116 eval "DEFAULT_$LINE"
6117 else
6118 no_cache=1
6119 fi
6120
6121 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6122
6123 fi;
6124
6125 eval "$ac_cv_use_timer"
6126 if test "$no_cache" != 1; then
6127 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6128 fi
6129
6130 if test "$wxUSE_TIMER" = yes; then
6131 echo "$as_me:$LINENO: result: yes" >&5
6132 echo "${ECHO_T}yes" >&6
6133 else
6134 echo "$as_me:$LINENO: result: no" >&5
6135 echo "${ECHO_T}no" >&6
6136 fi
6137
6138
6139 enablestring=
6140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6141 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6142 no_cache=0
6143 # Check whether --enable-unicode or --disable-unicode was given.
6144 if test "${enable_unicode+set}" = set; then
6145 enableval="$enable_unicode"
6146
6147 if test "$enableval" = yes; then
6148 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6149 else
6150 ac_cv_use_unicode='wxUSE_UNICODE=no'
6151 fi
6152
6153 else
6154
6155 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6156 if test "x$LINE" != x ; then
6157 eval "DEFAULT_$LINE"
6158 else
6159 no_cache=1
6160 fi
6161
6162 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6163
6164 fi;
6165
6166 eval "$ac_cv_use_unicode"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_UNICODE" = yes; then
6172 echo "$as_me:$LINENO: result: yes" >&5
6173 echo "${ECHO_T}yes" >&6
6174 else
6175 echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6
6177 fi
6178
6179
6180 enablestring=
6181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6182 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6183 no_cache=0
6184 # Check whether --enable-sound or --disable-sound was given.
6185 if test "${enable_sound+set}" = set; then
6186 enableval="$enable_sound"
6187
6188 if test "$enableval" = yes; then
6189 ac_cv_use_sound='wxUSE_SOUND=yes'
6190 else
6191 ac_cv_use_sound='wxUSE_SOUND=no'
6192 fi
6193
6194 else
6195
6196 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6197 if test "x$LINE" != x ; then
6198 eval "DEFAULT_$LINE"
6199 else
6200 no_cache=1
6201 fi
6202
6203 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6204
6205 fi;
6206
6207 eval "$ac_cv_use_sound"
6208 if test "$no_cache" != 1; then
6209 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6210 fi
6211
6212 if test "$wxUSE_SOUND" = yes; then
6213 echo "$as_me:$LINENO: result: yes" >&5
6214 echo "${ECHO_T}yes" >&6
6215 else
6216 echo "$as_me:$LINENO: result: no" >&5
6217 echo "${ECHO_T}no" >&6
6218 fi
6219
6220
6221 enablestring=
6222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6223 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6224 no_cache=0
6225 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6226 if test "${enable_mediactrl+set}" = set; then
6227 enableval="$enable_mediactrl"
6228
6229 if test "$enableval" = yes; then
6230 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6231 else
6232 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6233 fi
6234
6235 else
6236
6237 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6238 if test "x$LINE" != x ; then
6239 eval "DEFAULT_$LINE"
6240 else
6241 no_cache=1
6242 fi
6243
6244 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6245
6246 fi;
6247
6248 eval "$ac_cv_use_mediactrl"
6249 if test "$no_cache" != 1; then
6250 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6251 fi
6252
6253 if test "$wxUSE_MEDIACTRL" = yes; then
6254 echo "$as_me:$LINENO: result: yes" >&5
6255 echo "${ECHO_T}yes" >&6
6256 else
6257 echo "$as_me:$LINENO: result: no" >&5
6258 echo "${ECHO_T}no" >&6
6259 fi
6260
6261
6262 enablestring=
6263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6264 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6265 no_cache=0
6266 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6267 if test "${enable_gstreamer8+set}" = set; then
6268 enableval="$enable_gstreamer8"
6269
6270 if test "$enableval" = yes; then
6271 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6272 else
6273 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6274 fi
6275
6276 else
6277
6278 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6279 if test "x$LINE" != x ; then
6280 eval "DEFAULT_$LINE"
6281 else
6282 no_cache=1
6283 fi
6284
6285 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6286
6287 fi;
6288
6289 eval "$ac_cv_use_gstreamer8"
6290 if test "$no_cache" != 1; then
6291 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6292 fi
6293
6294 if test "$wxUSE_GSTREAMER8" = yes; then
6295 echo "$as_me:$LINENO: result: yes" >&5
6296 echo "${ECHO_T}yes" >&6
6297 else
6298 echo "$as_me:$LINENO: result: no" >&5
6299 echo "${ECHO_T}no" >&6
6300 fi
6301
6302
6303 enablestring=
6304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6305 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6306 no_cache=0
6307 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6308 if test "${enable_wxprintfv+set}" = set; then
6309 enableval="$enable_wxprintfv"
6310
6311 if test "$enableval" = yes; then
6312 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6313 else
6314 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6315 fi
6316
6317 else
6318
6319 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6320 if test "x$LINE" != x ; then
6321 eval "DEFAULT_$LINE"
6322 else
6323 no_cache=1
6324 fi
6325
6326 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6327
6328 fi;
6329
6330 eval "$ac_cv_use_wxprintfv"
6331 if test "$no_cache" != 1; then
6332 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6333 fi
6334
6335 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6336 echo "$as_me:$LINENO: result: yes" >&5
6337 echo "${ECHO_T}yes" >&6
6338 else
6339 echo "$as_me:$LINENO: result: no" >&5
6340 echo "${ECHO_T}no" >&6
6341 fi
6342
6343
6344 enablestring=
6345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6346 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6347 no_cache=0
6348 # Check whether --enable-zipstream or --disable-zipstream was given.
6349 if test "${enable_zipstream+set}" = set; then
6350 enableval="$enable_zipstream"
6351
6352 if test "$enableval" = yes; then
6353 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6354 else
6355 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6356 fi
6357
6358 else
6359
6360 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6361 if test "x$LINE" != x ; then
6362 eval "DEFAULT_$LINE"
6363 else
6364 no_cache=1
6365 fi
6366
6367 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6368
6369 fi;
6370
6371 eval "$ac_cv_use_zipstream"
6372 if test "$no_cache" != 1; then
6373 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6374 fi
6375
6376 if test "$wxUSE_ZIPSTREAM" = yes; then
6377 echo "$as_me:$LINENO: result: yes" >&5
6378 echo "${ECHO_T}yes" >&6
6379 else
6380 echo "$as_me:$LINENO: result: no" >&5
6381 echo "${ECHO_T}no" >&6
6382 fi
6383
6384
6385
6386 enablestring=
6387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6388 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6389 no_cache=0
6390 # Check whether --enable-url or --disable-url was given.
6391 if test "${enable_url+set}" = set; then
6392 enableval="$enable_url"
6393
6394 if test "$enableval" = yes; then
6395 ac_cv_use_url='wxUSE_URL=yes'
6396 else
6397 ac_cv_use_url='wxUSE_URL=no'
6398 fi
6399
6400 else
6401
6402 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6403 if test "x$LINE" != x ; then
6404 eval "DEFAULT_$LINE"
6405 else
6406 no_cache=1
6407 fi
6408
6409 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6410
6411 fi;
6412
6413 eval "$ac_cv_use_url"
6414 if test "$no_cache" != 1; then
6415 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6416 fi
6417
6418 if test "$wxUSE_URL" = yes; then
6419 echo "$as_me:$LINENO: result: yes" >&5
6420 echo "${ECHO_T}yes" >&6
6421 else
6422 echo "$as_me:$LINENO: result: no" >&5
6423 echo "${ECHO_T}no" >&6
6424 fi
6425
6426
6427 enablestring=
6428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6429 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6430 no_cache=0
6431 # Check whether --enable-protocol or --disable-protocol was given.
6432 if test "${enable_protocol+set}" = set; then
6433 enableval="$enable_protocol"
6434
6435 if test "$enableval" = yes; then
6436 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6437 else
6438 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6439 fi
6440
6441 else
6442
6443 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6444 if test "x$LINE" != x ; then
6445 eval "DEFAULT_$LINE"
6446 else
6447 no_cache=1
6448 fi
6449
6450 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6451
6452 fi;
6453
6454 eval "$ac_cv_use_protocol"
6455 if test "$no_cache" != 1; then
6456 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6457 fi
6458
6459 if test "$wxUSE_PROTOCOL" = yes; then
6460 echo "$as_me:$LINENO: result: yes" >&5
6461 echo "${ECHO_T}yes" >&6
6462 else
6463 echo "$as_me:$LINENO: result: no" >&5
6464 echo "${ECHO_T}no" >&6
6465 fi
6466
6467
6468 enablestring=
6469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6470 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6471 no_cache=0
6472 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6473 if test "${enable_protocol_http+set}" = set; then
6474 enableval="$enable_protocol_http"
6475
6476 if test "$enableval" = yes; then
6477 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6478 else
6479 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6480 fi
6481
6482 else
6483
6484 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6485 if test "x$LINE" != x ; then
6486 eval "DEFAULT_$LINE"
6487 else
6488 no_cache=1
6489 fi
6490
6491 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6492
6493 fi;
6494
6495 eval "$ac_cv_use_protocol_http"
6496 if test "$no_cache" != 1; then
6497 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6498 fi
6499
6500 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6501 echo "$as_me:$LINENO: result: yes" >&5
6502 echo "${ECHO_T}yes" >&6
6503 else
6504 echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6
6506 fi
6507
6508
6509 enablestring=
6510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6511 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6512 no_cache=0
6513 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6514 if test "${enable_protocol_ftp+set}" = set; then
6515 enableval="$enable_protocol_ftp"
6516
6517 if test "$enableval" = yes; then
6518 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6519 else
6520 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6521 fi
6522
6523 else
6524
6525 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6526 if test "x$LINE" != x ; then
6527 eval "DEFAULT_$LINE"
6528 else
6529 no_cache=1
6530 fi
6531
6532 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6533
6534 fi;
6535
6536 eval "$ac_cv_use_protocol_ftp"
6537 if test "$no_cache" != 1; then
6538 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6539 fi
6540
6541 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6542 echo "$as_me:$LINENO: result: yes" >&5
6543 echo "${ECHO_T}yes" >&6
6544 else
6545 echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6
6547 fi
6548
6549
6550 enablestring=
6551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6552 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6553 no_cache=0
6554 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6555 if test "${enable_protocol_file+set}" = set; then
6556 enableval="$enable_protocol_file"
6557
6558 if test "$enableval" = yes; then
6559 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6560 else
6561 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6562 fi
6563
6564 else
6565
6566 LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6574
6575 fi;
6576
6577 eval "$ac_cv_use_protocol_file"
6578 if test "$no_cache" != 1; then
6579 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6580 fi
6581
6582 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6583 echo "$as_me:$LINENO: result: yes" >&5
6584 echo "${ECHO_T}yes" >&6
6585 else
6586 echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6
6588 fi
6589
6590
6591
6592
6593
6594 enablestring=
6595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6596 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6597 no_cache=0
6598 # Check whether --enable-threads or --disable-threads was given.
6599 if test "${enable_threads+set}" = set; then
6600 enableval="$enable_threads"
6601
6602 if test "$enableval" = yes; then
6603 ac_cv_use_threads='wxUSE_THREADS=yes'
6604 else
6605 ac_cv_use_threads='wxUSE_THREADS=no'
6606 fi
6607
6608 else
6609
6610 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6611 if test "x$LINE" != x ; then
6612 eval "DEFAULT_$LINE"
6613 else
6614 no_cache=1
6615 fi
6616
6617 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6618
6619 fi;
6620
6621 eval "$ac_cv_use_threads"
6622 if test "$no_cache" != 1; then
6623 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6624 fi
6625
6626 if test "$wxUSE_THREADS" = yes; then
6627 echo "$as_me:$LINENO: result: yes" >&5
6628 echo "${ECHO_T}yes" >&6
6629 else
6630 echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6
6632 fi
6633
6634
6635 if test "$wxUSE_GUI" = "yes"; then
6636
6637
6638
6639 enablestring=
6640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6641 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6642 no_cache=0
6643 # Check whether --enable-docview or --disable-docview was given.
6644 if test "${enable_docview+set}" = set; then
6645 enableval="$enable_docview"
6646
6647 if test "$enableval" = yes; then
6648 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6649 else
6650 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6651 fi
6652
6653 else
6654
6655 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6656 if test "x$LINE" != x ; then
6657 eval "DEFAULT_$LINE"
6658 else
6659 no_cache=1
6660 fi
6661
6662 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6663
6664 fi;
6665
6666 eval "$ac_cv_use_docview"
6667 if test "$no_cache" != 1; then
6668 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6669 fi
6670
6671 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6672 echo "$as_me:$LINENO: result: yes" >&5
6673 echo "${ECHO_T}yes" >&6
6674 else
6675 echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6
6677 fi
6678
6679
6680 enablestring=
6681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6682 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6683 no_cache=0
6684 # Check whether --enable-help or --disable-help was given.
6685 if test "${enable_help+set}" = set; then
6686 enableval="$enable_help"
6687
6688 if test "$enableval" = yes; then
6689 ac_cv_use_help='wxUSE_HELP=yes'
6690 else
6691 ac_cv_use_help='wxUSE_HELP=no'
6692 fi
6693
6694 else
6695
6696 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6697 if test "x$LINE" != x ; then
6698 eval "DEFAULT_$LINE"
6699 else
6700 no_cache=1
6701 fi
6702
6703 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6704
6705 fi;
6706
6707 eval "$ac_cv_use_help"
6708 if test "$no_cache" != 1; then
6709 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6710 fi
6711
6712 if test "$wxUSE_HELP" = yes; then
6713 echo "$as_me:$LINENO: result: yes" >&5
6714 echo "${ECHO_T}yes" >&6
6715 else
6716 echo "$as_me:$LINENO: result: no" >&5
6717 echo "${ECHO_T}no" >&6
6718 fi
6719
6720
6721 enablestring=
6722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6723 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6724 no_cache=0
6725 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6726 if test "${enable_mshtmlhelp+set}" = set; then
6727 enableval="$enable_mshtmlhelp"
6728
6729 if test "$enableval" = yes; then
6730 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6731 else
6732 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6733 fi
6734
6735 else
6736
6737 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6738 if test "x$LINE" != x ; then
6739 eval "DEFAULT_$LINE"
6740 else
6741 no_cache=1
6742 fi
6743
6744 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6745
6746 fi;
6747
6748 eval "$ac_cv_use_mshtmlhelp"
6749 if test "$no_cache" != 1; then
6750 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6751 fi
6752
6753 if test "$wxUSE_MS_HTML_HELP" = yes; then
6754 echo "$as_me:$LINENO: result: yes" >&5
6755 echo "${ECHO_T}yes" >&6
6756 else
6757 echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6
6759 fi
6760
6761
6762 enablestring=
6763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6764 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6765 no_cache=0
6766 # Check whether --enable-html or --disable-html was given.
6767 if test "${enable_html+set}" = set; then
6768 enableval="$enable_html"
6769
6770 if test "$enableval" = yes; then
6771 ac_cv_use_html='wxUSE_HTML=yes'
6772 else
6773 ac_cv_use_html='wxUSE_HTML=no'
6774 fi
6775
6776 else
6777
6778 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6779 if test "x$LINE" != x ; then
6780 eval "DEFAULT_$LINE"
6781 else
6782 no_cache=1
6783 fi
6784
6785 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6786
6787 fi;
6788
6789 eval "$ac_cv_use_html"
6790 if test "$no_cache" != 1; then
6791 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6792 fi
6793
6794 if test "$wxUSE_HTML" = yes; then
6795 echo "$as_me:$LINENO: result: yes" >&5
6796 echo "${ECHO_T}yes" >&6
6797 else
6798 echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6
6800 fi
6801
6802
6803 enablestring=
6804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6805 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6806 no_cache=0
6807 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6808 if test "${enable_htmlhelp+set}" = set; then
6809 enableval="$enable_htmlhelp"
6810
6811 if test "$enableval" = yes; then
6812 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6813 else
6814 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6815 fi
6816
6817 else
6818
6819 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6820 if test "x$LINE" != x ; then
6821 eval "DEFAULT_$LINE"
6822 else
6823 no_cache=1
6824 fi
6825
6826 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6827
6828 fi;
6829
6830 eval "$ac_cv_use_htmlhelp"
6831 if test "$no_cache" != 1; then
6832 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6833 fi
6834
6835 if test "$wxUSE_WXHTML_HELP" = yes; then
6836 echo "$as_me:$LINENO: result: yes" >&5
6837 echo "${ECHO_T}yes" >&6
6838 else
6839 echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6
6841 fi
6842
6843
6844 enablestring=
6845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6846 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6847 no_cache=0
6848 # Check whether --enable-xrc or --disable-xrc was given.
6849 if test "${enable_xrc+set}" = set; then
6850 enableval="$enable_xrc"
6851
6852 if test "$enableval" = yes; then
6853 ac_cv_use_xrc='wxUSE_XRC=yes'
6854 else
6855 ac_cv_use_xrc='wxUSE_XRC=no'
6856 fi
6857
6858 else
6859
6860 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6861 if test "x$LINE" != x ; then
6862 eval "DEFAULT_$LINE"
6863 else
6864 no_cache=1
6865 fi
6866
6867 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6868
6869 fi;
6870
6871 eval "$ac_cv_use_xrc"
6872 if test "$no_cache" != 1; then
6873 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6874 fi
6875
6876 if test "$wxUSE_XRC" = yes; then
6877 echo "$as_me:$LINENO: result: yes" >&5
6878 echo "${ECHO_T}yes" >&6
6879 else
6880 echo "$as_me:$LINENO: result: no" >&5
6881 echo "${ECHO_T}no" >&6
6882 fi
6883
6884
6885 enablestring=
6886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6887 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6888 no_cache=0
6889 # Check whether --enable-constraints or --disable-constraints was given.
6890 if test "${enable_constraints+set}" = set; then
6891 enableval="$enable_constraints"
6892
6893 if test "$enableval" = yes; then
6894 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6895 else
6896 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6897 fi
6898
6899 else
6900
6901 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6902 if test "x$LINE" != x ; then
6903 eval "DEFAULT_$LINE"
6904 else
6905 no_cache=1
6906 fi
6907
6908 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6909
6910 fi;
6911
6912 eval "$ac_cv_use_constraints"
6913 if test "$no_cache" != 1; then
6914 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6915 fi
6916
6917 if test "$wxUSE_CONSTRAINTS" = yes; then
6918 echo "$as_me:$LINENO: result: yes" >&5
6919 echo "${ECHO_T}yes" >&6
6920 else
6921 echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6
6923 fi
6924
6925
6926 enablestring=
6927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6928 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6929 no_cache=0
6930 # Check whether --enable-printarch or --disable-printarch was given.
6931 if test "${enable_printarch+set}" = set; then
6932 enableval="$enable_printarch"
6933
6934 if test "$enableval" = yes; then
6935 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6936 else
6937 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6938 fi
6939
6940 else
6941
6942 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6943 if test "x$LINE" != x ; then
6944 eval "DEFAULT_$LINE"
6945 else
6946 no_cache=1
6947 fi
6948
6949 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6950
6951 fi;
6952
6953 eval "$ac_cv_use_printarch"
6954 if test "$no_cache" != 1; then
6955 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6956 fi
6957
6958 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6959 echo "$as_me:$LINENO: result: yes" >&5
6960 echo "${ECHO_T}yes" >&6
6961 else
6962 echo "$as_me:$LINENO: result: no" >&5
6963 echo "${ECHO_T}no" >&6
6964 fi
6965
6966
6967 enablestring=
6968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6969 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6970 no_cache=0
6971 # Check whether --enable-mdi or --disable-mdi was given.
6972 if test "${enable_mdi+set}" = set; then
6973 enableval="$enable_mdi"
6974
6975 if test "$enableval" = yes; then
6976 ac_cv_use_mdi='wxUSE_MDI=yes'
6977 else
6978 ac_cv_use_mdi='wxUSE_MDI=no'
6979 fi
6980
6981 else
6982
6983 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
6984 if test "x$LINE" != x ; then
6985 eval "DEFAULT_$LINE"
6986 else
6987 no_cache=1
6988 fi
6989
6990 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
6991
6992 fi;
6993
6994 eval "$ac_cv_use_mdi"
6995 if test "$no_cache" != 1; then
6996 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6997 fi
6998
6999 if test "$wxUSE_MDI" = yes; then
7000 echo "$as_me:$LINENO: result: yes" >&5
7001 echo "${ECHO_T}yes" >&6
7002 else
7003 echo "$as_me:$LINENO: result: no" >&5
7004 echo "${ECHO_T}no" >&6
7005 fi
7006
7007
7008 enablestring=
7009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7010 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7011 no_cache=0
7012 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7013 if test "${enable_mdidoc+set}" = set; then
7014 enableval="$enable_mdidoc"
7015
7016 if test "$enableval" = yes; then
7017 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7018 else
7019 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7020 fi
7021
7022 else
7023
7024 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7032
7033 fi;
7034
7035 eval "$ac_cv_use_mdidoc"
7036 if test "$no_cache" != 1; then
7037 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7038 fi
7039
7040 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7041 echo "$as_me:$LINENO: result: yes" >&5
7042 echo "${ECHO_T}yes" >&6
7043 else
7044 echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6
7046 fi
7047
7048
7049 enablestring=
7050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7051 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7052 no_cache=0
7053 # Check whether --enable-loggui or --disable-loggui was given.
7054 if test "${enable_loggui+set}" = set; then
7055 enableval="$enable_loggui"
7056
7057 if test "$enableval" = yes; then
7058 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7059 else
7060 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7061 fi
7062
7063 else
7064
7065 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7066 if test "x$LINE" != x ; then
7067 eval "DEFAULT_$LINE"
7068 else
7069 no_cache=1
7070 fi
7071
7072 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7073
7074 fi;
7075
7076 eval "$ac_cv_use_loggui"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_LOGGUI" = yes; then
7082 echo "$as_me:$LINENO: result: yes" >&5
7083 echo "${ECHO_T}yes" >&6
7084 else
7085 echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6
7087 fi
7088
7089
7090 enablestring=
7091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7092 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7093 no_cache=0
7094 # Check whether --enable-logwin or --disable-logwin was given.
7095 if test "${enable_logwin+set}" = set; then
7096 enableval="$enable_logwin"
7097
7098 if test "$enableval" = yes; then
7099 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7100 else
7101 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7102 fi
7103
7104 else
7105
7106 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7107 if test "x$LINE" != x ; then
7108 eval "DEFAULT_$LINE"
7109 else
7110 no_cache=1
7111 fi
7112
7113 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7114
7115 fi;
7116
7117 eval "$ac_cv_use_logwin"
7118 if test "$no_cache" != 1; then
7119 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7120 fi
7121
7122 if test "$wxUSE_LOGWINDOW" = yes; then
7123 echo "$as_me:$LINENO: result: yes" >&5
7124 echo "${ECHO_T}yes" >&6
7125 else
7126 echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6
7128 fi
7129
7130
7131 enablestring=
7132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7133 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7134 no_cache=0
7135 # Check whether --enable-logdialog or --disable-logdialog was given.
7136 if test "${enable_logdialog+set}" = set; then
7137 enableval="$enable_logdialog"
7138
7139 if test "$enableval" = yes; then
7140 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7141 else
7142 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7143 fi
7144
7145 else
7146
7147 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7148 if test "x$LINE" != x ; then
7149 eval "DEFAULT_$LINE"
7150 else
7151 no_cache=1
7152 fi
7153
7154 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7155
7156 fi;
7157
7158 eval "$ac_cv_use_logdialog"
7159 if test "$no_cache" != 1; then
7160 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7161 fi
7162
7163 if test "$wxUSE_LOGDIALOG" = yes; then
7164 echo "$as_me:$LINENO: result: yes" >&5
7165 echo "${ECHO_T}yes" >&6
7166 else
7167 echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6
7169 fi
7170
7171
7172 enablestring=
7173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7174 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7175 no_cache=0
7176 # Check whether --enable-webkit or --disable-webkit was given.
7177 if test "${enable_webkit+set}" = set; then
7178 enableval="$enable_webkit"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7182 else
7183 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7184 fi
7185
7186 else
7187
7188 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7196
7197 fi;
7198
7199 eval "$ac_cv_use_webkit"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_WEBKIT" = yes; then
7205 echo "$as_me:$LINENO: result: yes" >&5
7206 echo "${ECHO_T}yes" >&6
7207 else
7208 echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6
7210 fi
7211
7212
7213 enablestring=
7214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7215 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7216 no_cache=0
7217 # Check whether --enable-html or --disable-html was given.
7218 if test "${enable_html+set}" = set; then
7219 enableval="$enable_html"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7223 else
7224 ac_cv_use_html='wxUSE_RICHTEXT=no'
7225 fi
7226
7227 else
7228
7229 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7237
7238 fi;
7239
7240 eval "$ac_cv_use_html"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_RICHTEXT" = yes; then
7246 echo "$as_me:$LINENO: result: yes" >&5
7247 echo "${ECHO_T}yes" >&6
7248 else
7249 echo "$as_me:$LINENO: result: no" >&5
7250 echo "${ECHO_T}no" >&6
7251 fi
7252
7253
7254
7255 enablestring=
7256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7257 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7258 no_cache=0
7259 # Check whether --enable-postscript or --disable-postscript was given.
7260 if test "${enable_postscript+set}" = set; then
7261 enableval="$enable_postscript"
7262
7263 if test "$enableval" = yes; then
7264 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7265 else
7266 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7267 fi
7268
7269 else
7270
7271 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7272 if test "x$LINE" != x ; then
7273 eval "DEFAULT_$LINE"
7274 else
7275 no_cache=1
7276 fi
7277
7278 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7279
7280 fi;
7281
7282 eval "$ac_cv_use_postscript"
7283 if test "$no_cache" != 1; then
7284 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7285 fi
7286
7287 if test "$wxUSE_POSTSCRIPT" = yes; then
7288 echo "$as_me:$LINENO: result: yes" >&5
7289 echo "${ECHO_T}yes" >&6
7290 else
7291 echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7293 fi
7294
7295
7296
7297
7298
7299 enablestring=
7300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7301 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7302 no_cache=0
7303 # Check whether --enable-prologio or --disable-prologio was given.
7304 if test "${enable_prologio+set}" = set; then
7305 enableval="$enable_prologio"
7306
7307 if test "$enableval" = yes; then
7308 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7309 else
7310 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7311 fi
7312
7313 else
7314
7315 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7316 if test "x$LINE" != x ; then
7317 eval "DEFAULT_$LINE"
7318 else
7319 no_cache=1
7320 fi
7321
7322 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7323
7324 fi;
7325
7326 eval "$ac_cv_use_prologio"
7327 if test "$no_cache" != 1; then
7328 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7329 fi
7330
7331 if test "$wxUSE_PROLOGIO" = yes; then
7332 echo "$as_me:$LINENO: result: yes" >&5
7333 echo "${ECHO_T}yes" >&6
7334 else
7335 echo "$as_me:$LINENO: result: no" >&5
7336 echo "${ECHO_T}no" >&6
7337 fi
7338
7339
7340 enablestring=
7341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7342 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7343 no_cache=0
7344 # Check whether --enable-resources or --disable-resources was given.
7345 if test "${enable_resources+set}" = set; then
7346 enableval="$enable_resources"
7347
7348 if test "$enableval" = yes; then
7349 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7350 else
7351 ac_cv_use_resources='wxUSE_RESOURCES=no'
7352 fi
7353
7354 else
7355
7356 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7357 if test "x$LINE" != x ; then
7358 eval "DEFAULT_$LINE"
7359 else
7360 no_cache=1
7361 fi
7362
7363 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7364
7365 fi;
7366
7367 eval "$ac_cv_use_resources"
7368 if test "$no_cache" != 1; then
7369 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7370 fi
7371
7372 if test "$wxUSE_RESOURCES" = yes; then
7373 echo "$as_me:$LINENO: result: yes" >&5
7374 echo "${ECHO_T}yes" >&6
7375 else
7376 echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6
7378 fi
7379
7380
7381
7382
7383 enablestring=
7384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7385 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7386 no_cache=0
7387 # Check whether --enable-clipboard or --disable-clipboard was given.
7388 if test "${enable_clipboard+set}" = set; then
7389 enableval="$enable_clipboard"
7390
7391 if test "$enableval" = yes; then
7392 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7393 else
7394 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7395 fi
7396
7397 else
7398
7399 LINE=`grep "wxUSE_CLIPBOARD" ${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_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7407
7408 fi;
7409
7410 eval "$ac_cv_use_clipboard"
7411 if test "$no_cache" != 1; then
7412 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7413 fi
7414
7415 if test "$wxUSE_CLIPBOARD" = yes; then
7416 echo "$as_me:$LINENO: result: yes" >&5
7417 echo "${ECHO_T}yes" >&6
7418 else
7419 echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6
7421 fi
7422
7423
7424 enablestring=
7425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7426 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7427 no_cache=0
7428 # Check whether --enable-dnd or --disable-dnd was given.
7429 if test "${enable_dnd+set}" = set; then
7430 enableval="$enable_dnd"
7431
7432 if test "$enableval" = yes; then
7433 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7434 else
7435 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7436 fi
7437
7438 else
7439
7440 LINE=`grep "wxUSE_DRAG_AND_DROP" ${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_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7448
7449 fi;
7450
7451 eval "$ac_cv_use_dnd"
7452 if test "$no_cache" != 1; then
7453 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7454 fi
7455
7456 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7457 echo "$as_me:$LINENO: result: yes" >&5
7458 echo "${ECHO_T}yes" >&6
7459 else
7460 echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6
7462 fi
7463
7464
7465 enablestring=
7466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7467 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7468 no_cache=0
7469 # Check whether --enable-metafile or --disable-metafile was given.
7470 if test "${enable_metafile+set}" = set; then
7471 enableval="$enable_metafile"
7472
7473 if test "$enableval" = yes; then
7474 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7475 else
7476 ac_cv_use_metafile='wxUSE_METAFILE=no'
7477 fi
7478
7479 else
7480
7481 LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7489
7490 fi;
7491
7492 eval "$ac_cv_use_metafile"
7493 if test "$no_cache" != 1; then
7494 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7495 fi
7496
7497 if test "$wxUSE_METAFILE" = yes; then
7498 echo "$as_me:$LINENO: result: yes" >&5
7499 echo "${ECHO_T}yes" >&6
7500 else
7501 echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7503 fi
7504
7505
7506
7507
7508
7509 enablestring=
7510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7511 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7512 no_cache=0
7513 # Check whether --enable-controls or --disable-controls was given.
7514 if test "${enable_controls+set}" = set; then
7515 enableval="$enable_controls"
7516
7517 if test "$enableval" = yes; then
7518 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7519 else
7520 ac_cv_use_controls='wxUSE_CONTROLS=no'
7521 fi
7522
7523 else
7524
7525 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7526 if test "x$LINE" != x ; then
7527 eval "DEFAULT_$LINE"
7528 else
7529 no_cache=1
7530 fi
7531
7532 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7533
7534 fi;
7535
7536 eval "$ac_cv_use_controls"
7537 if test "$no_cache" != 1; then
7538 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7539 fi
7540
7541 if test "$wxUSE_CONTROLS" = yes; then
7542 echo "$as_me:$LINENO: result: yes" >&5
7543 echo "${ECHO_T}yes" >&6
7544 else
7545 echo "$as_me:$LINENO: result: no" >&5
7546 echo "${ECHO_T}no" >&6
7547 fi
7548
7549
7550 if test "$wxUSE_CONTROLS" = "yes"; then
7551 DEFAULT_wxUSE_ACCEL=yes
7552 DEFAULT_wxUSE_BMPBUTTON=yes
7553 DEFAULT_wxUSE_BUTTON=yes
7554 DEFAULT_wxUSE_CALCTRL=yes
7555 DEFAULT_wxUSE_CARET=yes
7556 DEFAULT_wxUSE_COMBOBOX=yes
7557 DEFAULT_wxUSE_CHECKBOX=yes
7558 DEFAULT_wxUSE_CHECKLISTBOX=yes
7559 DEFAULT_wxUSE_CHOICE=yes
7560 DEFAULT_wxUSE_CHOICEBOOK=yes
7561 DEFAULT_wxUSE_DATEPICKCTRL=yes
7562 DEFAULT_wxUSE_GAUGE=yes
7563 DEFAULT_wxUSE_GRID=yes
7564 DEFAULT_wxUSE_HYPERLINKCTRL=yes
7565 DEFAULT_wxUSE_DATAVIEWCTRL=no
7566 DEFAULT_wxUSE_IMAGLIST=yes
7567 DEFAULT_wxUSE_LISTBOOK=yes
7568 DEFAULT_wxUSE_LISTBOX=yes
7569 DEFAULT_wxUSE_LISTCTRL=yes
7570 DEFAULT_wxUSE_NOTEBOOK=yes
7571 DEFAULT_wxUSE_RADIOBOX=yes
7572 DEFAULT_wxUSE_RADIOBTN=yes
7573 DEFAULT_wxUSE_SASH=yes
7574 DEFAULT_wxUSE_SCROLLBAR=yes
7575 DEFAULT_wxUSE_SLIDER=yes
7576 DEFAULT_wxUSE_SPINBTN=yes
7577 DEFAULT_wxUSE_SPINCTRL=yes
7578 DEFAULT_wxUSE_SPLITTER=yes
7579 DEFAULT_wxUSE_STATBMP=yes
7580 DEFAULT_wxUSE_STATBOX=yes
7581 DEFAULT_wxUSE_STATLINE=yes
7582 DEFAULT_wxUSE_STATUSBAR=yes
7583 DEFAULT_wxUSE_TAB_DIALOG=yes
7584 DEFAULT_wxUSE_TOGGLEBTN=yes
7585 DEFAULT_wxUSE_TOOLBAR=yes
7586 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7587 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7588 DEFAULT_wxUSE_TOOLTIPS=yes
7589 DEFAULT_wxUSE_TREEBOOK=yes
7590 DEFAULT_wxUSE_TOOLBOOK=yes
7591 DEFAULT_wxUSE_TREECTRL=yes
7592 DEFAULT_wxUSE_POPUPWIN=yes
7593 DEFAULT_wxUSE_TIPWINDOW=yes
7594 elif test "$wxUSE_CONTROLS" = "no"; then
7595 DEFAULT_wxUSE_ACCEL=no
7596 DEFAULT_wxUSE_BMPBUTTON=no
7597 DEFAULT_wxUSE_BUTTON=no
7598 DEFAULT_wxUSE_CALCTRL=no
7599 DEFAULT_wxUSE_CARET=no
7600 DEFAULT_wxUSE_COMBOBOX=no
7601 DEFAULT_wxUSE_CHECKBOX=no
7602 DEFAULT_wxUSE_CHECKLISTBOX=no
7603 DEFAULT_wxUSE_CHOICE=no
7604 DEFAULT_wxUSE_CHOICEBOOK=no
7605 DEFAULT_wxUSE_DATEPICKCTRL=no
7606 DEFAULT_wxUSE_GAUGE=no
7607 DEFAULT_wxUSE_GRID=no
7608 DEFAULT_wxUSE_HYPERLINKCTRL=no
7609 DEFAULT_wxUSE_DATAVIEWCTRL=no
7610 DEFAULT_wxUSE_IMAGLIST=no
7611 DEFAULT_wxUSE_LISTBOOK=no
7612 DEFAULT_wxUSE_LISTBOX=no
7613 DEFAULT_wxUSE_LISTCTRL=no
7614 DEFAULT_wxUSE_NOTEBOOK=no
7615 DEFAULT_wxUSE_RADIOBOX=no
7616 DEFAULT_wxUSE_RADIOBTN=no
7617 DEFAULT_wxUSE_SASH=no
7618 DEFAULT_wxUSE_SCROLLBAR=no
7619 DEFAULT_wxUSE_SLIDER=no
7620 DEFAULT_wxUSE_SPINBTN=no
7621 DEFAULT_wxUSE_SPINCTRL=no
7622 DEFAULT_wxUSE_SPLITTER=no
7623 DEFAULT_wxUSE_STATBMP=no
7624 DEFAULT_wxUSE_STATBOX=no
7625 DEFAULT_wxUSE_STATLINE=no
7626 DEFAULT_wxUSE_STATUSBAR=no
7627 DEFAULT_wxUSE_TAB_DIALOG=no
7628 DEFAULT_wxUSE_TOGGLEBTN=no
7629 DEFAULT_wxUSE_TOOLBAR=no
7630 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7631 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7632 DEFAULT_wxUSE_TOOLTIPS=no
7633 DEFAULT_wxUSE_TREEBOOK=no
7634 DEFAULT_wxUSE_TOOLBOOK=no
7635 DEFAULT_wxUSE_TREECTRL=no
7636 DEFAULT_wxUSE_POPUPWIN=no
7637 DEFAULT_wxUSE_TIPWINDOW=no
7638 fi
7639
7640
7641 enablestring=
7642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7643 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7644 no_cache=0
7645 # Check whether --enable-accel or --disable-accel was given.
7646 if test "${enable_accel+set}" = set; then
7647 enableval="$enable_accel"
7648
7649 if test "$enableval" = yes; then
7650 ac_cv_use_accel='wxUSE_ACCEL=yes'
7651 else
7652 ac_cv_use_accel='wxUSE_ACCEL=no'
7653 fi
7654
7655 else
7656
7657 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7658 if test "x$LINE" != x ; then
7659 eval "DEFAULT_$LINE"
7660 else
7661 no_cache=1
7662 fi
7663
7664 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7665
7666 fi;
7667
7668 eval "$ac_cv_use_accel"
7669 if test "$no_cache" != 1; then
7670 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7671 fi
7672
7673 if test "$wxUSE_ACCEL" = yes; then
7674 echo "$as_me:$LINENO: result: yes" >&5
7675 echo "${ECHO_T}yes" >&6
7676 else
7677 echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6
7679 fi
7680
7681
7682 enablestring=
7683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7684 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7685 no_cache=0
7686 # Check whether --enable-button or --disable-button was given.
7687 if test "${enable_button+set}" = set; then
7688 enableval="$enable_button"
7689
7690 if test "$enableval" = yes; then
7691 ac_cv_use_button='wxUSE_BUTTON=yes'
7692 else
7693 ac_cv_use_button='wxUSE_BUTTON=no'
7694 fi
7695
7696 else
7697
7698 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7699 if test "x$LINE" != x ; then
7700 eval "DEFAULT_$LINE"
7701 else
7702 no_cache=1
7703 fi
7704
7705 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7706
7707 fi;
7708
7709 eval "$ac_cv_use_button"
7710 if test "$no_cache" != 1; then
7711 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7712 fi
7713
7714 if test "$wxUSE_BUTTON" = yes; then
7715 echo "$as_me:$LINENO: result: yes" >&5
7716 echo "${ECHO_T}yes" >&6
7717 else
7718 echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6
7720 fi
7721
7722
7723 enablestring=
7724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7725 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7726 no_cache=0
7727 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7728 if test "${enable_bmpbutton+set}" = set; then
7729 enableval="$enable_bmpbutton"
7730
7731 if test "$enableval" = yes; then
7732 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7733 else
7734 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7735 fi
7736
7737 else
7738
7739 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7740 if test "x$LINE" != x ; then
7741 eval "DEFAULT_$LINE"
7742 else
7743 no_cache=1
7744 fi
7745
7746 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7747
7748 fi;
7749
7750 eval "$ac_cv_use_bmpbutton"
7751 if test "$no_cache" != 1; then
7752 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7753 fi
7754
7755 if test "$wxUSE_BMPBUTTON" = yes; then
7756 echo "$as_me:$LINENO: result: yes" >&5
7757 echo "${ECHO_T}yes" >&6
7758 else
7759 echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6
7761 fi
7762
7763
7764 enablestring=
7765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7766 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7767 no_cache=0
7768 # Check whether --enable-calendar or --disable-calendar was given.
7769 if test "${enable_calendar+set}" = set; then
7770 enableval="$enable_calendar"
7771
7772 if test "$enableval" = yes; then
7773 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7774 else
7775 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7776 fi
7777
7778 else
7779
7780 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7781 if test "x$LINE" != x ; then
7782 eval "DEFAULT_$LINE"
7783 else
7784 no_cache=1
7785 fi
7786
7787 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7788
7789 fi;
7790
7791 eval "$ac_cv_use_calendar"
7792 if test "$no_cache" != 1; then
7793 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7794 fi
7795
7796 if test "$wxUSE_CALCTRL" = yes; then
7797 echo "$as_me:$LINENO: result: yes" >&5
7798 echo "${ECHO_T}yes" >&6
7799 else
7800 echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6
7802 fi
7803
7804
7805 enablestring=
7806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7807 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7808 no_cache=0
7809 # Check whether --enable-caret or --disable-caret was given.
7810 if test "${enable_caret+set}" = set; then
7811 enableval="$enable_caret"
7812
7813 if test "$enableval" = yes; then
7814 ac_cv_use_caret='wxUSE_CARET=yes'
7815 else
7816 ac_cv_use_caret='wxUSE_CARET=no'
7817 fi
7818
7819 else
7820
7821 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7822 if test "x$LINE" != x ; then
7823 eval "DEFAULT_$LINE"
7824 else
7825 no_cache=1
7826 fi
7827
7828 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7829
7830 fi;
7831
7832 eval "$ac_cv_use_caret"
7833 if test "$no_cache" != 1; then
7834 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7835 fi
7836
7837 if test "$wxUSE_CARET" = yes; then
7838 echo "$as_me:$LINENO: result: yes" >&5
7839 echo "${ECHO_T}yes" >&6
7840 else
7841 echo "$as_me:$LINENO: result: no" >&5
7842 echo "${ECHO_T}no" >&6
7843 fi
7844
7845
7846 enablestring=
7847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7848 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7849 no_cache=0
7850 # Check whether --enable-checkbox or --disable-checkbox was given.
7851 if test "${enable_checkbox+set}" = set; then
7852 enableval="$enable_checkbox"
7853
7854 if test "$enableval" = yes; then
7855 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7856 else
7857 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7858 fi
7859
7860 else
7861
7862 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7863 if test "x$LINE" != x ; then
7864 eval "DEFAULT_$LINE"
7865 else
7866 no_cache=1
7867 fi
7868
7869 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7870
7871 fi;
7872
7873 eval "$ac_cv_use_checkbox"
7874 if test "$no_cache" != 1; then
7875 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7876 fi
7877
7878 if test "$wxUSE_CHECKBOX" = yes; then
7879 echo "$as_me:$LINENO: result: yes" >&5
7880 echo "${ECHO_T}yes" >&6
7881 else
7882 echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6
7884 fi
7885
7886
7887 enablestring=
7888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7889 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7890 no_cache=0
7891 # Check whether --enable-checklst or --disable-checklst was given.
7892 if test "${enable_checklst+set}" = set; then
7893 enableval="$enable_checklst"
7894
7895 if test "$enableval" = yes; then
7896 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7897 else
7898 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7899 fi
7900
7901 else
7902
7903 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7904 if test "x$LINE" != x ; then
7905 eval "DEFAULT_$LINE"
7906 else
7907 no_cache=1
7908 fi
7909
7910 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7911
7912 fi;
7913
7914 eval "$ac_cv_use_checklst"
7915 if test "$no_cache" != 1; then
7916 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7917 fi
7918
7919 if test "$wxUSE_CHECKLST" = yes; then
7920 echo "$as_me:$LINENO: result: yes" >&5
7921 echo "${ECHO_T}yes" >&6
7922 else
7923 echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6
7925 fi
7926
7927
7928 enablestring=
7929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7930 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7931 no_cache=0
7932 # Check whether --enable-choice or --disable-choice was given.
7933 if test "${enable_choice+set}" = set; then
7934 enableval="$enable_choice"
7935
7936 if test "$enableval" = yes; then
7937 ac_cv_use_choice='wxUSE_CHOICE=yes'
7938 else
7939 ac_cv_use_choice='wxUSE_CHOICE=no'
7940 fi
7941
7942 else
7943
7944 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7945 if test "x$LINE" != x ; then
7946 eval "DEFAULT_$LINE"
7947 else
7948 no_cache=1
7949 fi
7950
7951 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7952
7953 fi;
7954
7955 eval "$ac_cv_use_choice"
7956 if test "$no_cache" != 1; then
7957 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7958 fi
7959
7960 if test "$wxUSE_CHOICE" = yes; then
7961 echo "$as_me:$LINENO: result: yes" >&5
7962 echo "${ECHO_T}yes" >&6
7963 else
7964 echo "$as_me:$LINENO: result: no" >&5
7965 echo "${ECHO_T}no" >&6
7966 fi
7967
7968
7969 enablestring=
7970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7971 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7972 no_cache=0
7973 # Check whether --enable-choicebook or --disable-choicebook was given.
7974 if test "${enable_choicebook+set}" = set; then
7975 enableval="$enable_choicebook"
7976
7977 if test "$enableval" = yes; then
7978 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7979 else
7980 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7981 fi
7982
7983 else
7984
7985 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7986 if test "x$LINE" != x ; then
7987 eval "DEFAULT_$LINE"
7988 else
7989 no_cache=1
7990 fi
7991
7992 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7993
7994 fi;
7995
7996 eval "$ac_cv_use_choicebook"
7997 if test "$no_cache" != 1; then
7998 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7999 fi
8000
8001 if test "$wxUSE_CHOICEBOOK" = yes; then
8002 echo "$as_me:$LINENO: result: yes" >&5
8003 echo "${ECHO_T}yes" >&6
8004 else
8005 echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6
8007 fi
8008
8009
8010 enablestring=
8011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8012 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8013 no_cache=0
8014 # Check whether --enable-combobox or --disable-combobox was given.
8015 if test "${enable_combobox+set}" = set; then
8016 enableval="$enable_combobox"
8017
8018 if test "$enableval" = yes; then
8019 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8020 else
8021 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8022 fi
8023
8024 else
8025
8026 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8027 if test "x$LINE" != x ; then
8028 eval "DEFAULT_$LINE"
8029 else
8030 no_cache=1
8031 fi
8032
8033 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8034
8035 fi;
8036
8037 eval "$ac_cv_use_combobox"
8038 if test "$no_cache" != 1; then
8039 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8040 fi
8041
8042 if test "$wxUSE_COMBOBOX" = yes; then
8043 echo "$as_me:$LINENO: result: yes" >&5
8044 echo "${ECHO_T}yes" >&6
8045 else
8046 echo "$as_me:$LINENO: result: no" >&5
8047 echo "${ECHO_T}no" >&6
8048 fi
8049
8050
8051 enablestring=
8052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8053 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
8054 no_cache=0
8055 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8056 if test "${enable_comboctrl+set}" = set; then
8057 enableval="$enable_comboctrl"
8058
8059 if test "$enableval" = yes; then
8060 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
8061 else
8062 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
8063 fi
8064
8065 else
8066
8067 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
8068 if test "x$LINE" != x ; then
8069 eval "DEFAULT_$LINE"
8070 else
8071 no_cache=1
8072 fi
8073
8074 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
8075
8076 fi;
8077
8078 eval "$ac_cv_use_comboctrl"
8079 if test "$no_cache" != 1; then
8080 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
8081 fi
8082
8083 if test "$wxUSE_COMBOCTRL" = yes; then
8084 echo "$as_me:$LINENO: result: yes" >&5
8085 echo "${ECHO_T}yes" >&6
8086 else
8087 echo "$as_me:$LINENO: result: no" >&5
8088 echo "${ECHO_T}no" >&6
8089 fi
8090
8091
8092 enablestring=
8093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8094 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8095 no_cache=0
8096 # Check whether --enable-datepick or --disable-datepick was given.
8097 if test "${enable_datepick+set}" = set; then
8098 enableval="$enable_datepick"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8102 else
8103 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8104 fi
8105
8106 else
8107
8108 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8116
8117 fi;
8118
8119 eval "$ac_cv_use_datepick"
8120 if test "$no_cache" != 1; then
8121 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8122 fi
8123
8124 if test "$wxUSE_DATEPICKCTRL" = yes; then
8125 echo "$as_me:$LINENO: result: yes" >&5
8126 echo "${ECHO_T}yes" >&6
8127 else
8128 echo "$as_me:$LINENO: result: no" >&5
8129 echo "${ECHO_T}no" >&6
8130 fi
8131
8132
8133 enablestring=
8134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8135 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8136 no_cache=0
8137 # Check whether --enable-display or --disable-display was given.
8138 if test "${enable_display+set}" = set; then
8139 enableval="$enable_display"
8140
8141 if test "$enableval" = yes; then
8142 ac_cv_use_display='wxUSE_DISPLAY=yes'
8143 else
8144 ac_cv_use_display='wxUSE_DISPLAY=no'
8145 fi
8146
8147 else
8148
8149 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8150 if test "x$LINE" != x ; then
8151 eval "DEFAULT_$LINE"
8152 else
8153 no_cache=1
8154 fi
8155
8156 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8157
8158 fi;
8159
8160 eval "$ac_cv_use_display"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_DISPLAY" = yes; then
8166 echo "$as_me:$LINENO: result: yes" >&5
8167 echo "${ECHO_T}yes" >&6
8168 else
8169 echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6
8171 fi
8172
8173
8174 enablestring=
8175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8176 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8177 no_cache=0
8178 # Check whether --enable-gauge or --disable-gauge was given.
8179 if test "${enable_gauge+set}" = set; then
8180 enableval="$enable_gauge"
8181
8182 if test "$enableval" = yes; then
8183 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8184 else
8185 ac_cv_use_gauge='wxUSE_GAUGE=no'
8186 fi
8187
8188 else
8189
8190 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8191 if test "x$LINE" != x ; then
8192 eval "DEFAULT_$LINE"
8193 else
8194 no_cache=1
8195 fi
8196
8197 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8198
8199 fi;
8200
8201 eval "$ac_cv_use_gauge"
8202 if test "$no_cache" != 1; then
8203 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8204 fi
8205
8206 if test "$wxUSE_GAUGE" = yes; then
8207 echo "$as_me:$LINENO: result: yes" >&5
8208 echo "${ECHO_T}yes" >&6
8209 else
8210 echo "$as_me:$LINENO: result: no" >&5
8211 echo "${ECHO_T}no" >&6
8212 fi
8213
8214
8215 enablestring=
8216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8217 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8218 no_cache=0
8219 # Check whether --enable-grid or --disable-grid was given.
8220 if test "${enable_grid+set}" = set; then
8221 enableval="$enable_grid"
8222
8223 if test "$enableval" = yes; then
8224 ac_cv_use_grid='wxUSE_GRID=yes'
8225 else
8226 ac_cv_use_grid='wxUSE_GRID=no'
8227 fi
8228
8229 else
8230
8231 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8232 if test "x$LINE" != x ; then
8233 eval "DEFAULT_$LINE"
8234 else
8235 no_cache=1
8236 fi
8237
8238 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8239
8240 fi;
8241
8242 eval "$ac_cv_use_grid"
8243 if test "$no_cache" != 1; then
8244 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8245 fi
8246
8247 if test "$wxUSE_GRID" = yes; then
8248 echo "$as_me:$LINENO: result: yes" >&5
8249 echo "${ECHO_T}yes" >&6
8250 else
8251 echo "$as_me:$LINENO: result: no" >&5
8252 echo "${ECHO_T}no" >&6
8253 fi
8254
8255
8256 enablestring=
8257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8258 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8259 no_cache=0
8260 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8261 if test "${enable_dataviewctrl+set}" = set; then
8262 enableval="$enable_dataviewctrl"
8263
8264 if test "$enableval" = yes; then
8265 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8266 else
8267 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8268 fi
8269
8270 else
8271
8272 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8273 if test "x$LINE" != x ; then
8274 eval "DEFAULT_$LINE"
8275 else
8276 no_cache=1
8277 fi
8278
8279 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8280
8281 fi;
8282
8283 eval "$ac_cv_use_dataviewctrl"
8284 if test "$no_cache" != 1; then
8285 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8286 fi
8287
8288 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8289 echo "$as_me:$LINENO: result: yes" >&5
8290 echo "${ECHO_T}yes" >&6
8291 else
8292 echo "$as_me:$LINENO: result: no" >&5
8293 echo "${ECHO_T}no" >&6
8294 fi
8295
8296
8297 enablestring=
8298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8299 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8300 no_cache=0
8301 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8302 if test "${enable_hyperlink+set}" = set; then
8303 enableval="$enable_hyperlink"
8304
8305 if test "$enableval" = yes; then
8306 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8307 else
8308 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8309 fi
8310
8311 else
8312
8313 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8321
8322 fi;
8323
8324 eval "$ac_cv_use_hyperlink"
8325 if test "$no_cache" != 1; then
8326 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8327 fi
8328
8329 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8330 echo "$as_me:$LINENO: result: yes" >&5
8331 echo "${ECHO_T}yes" >&6
8332 else
8333 echo "$as_me:$LINENO: result: no" >&5
8334 echo "${ECHO_T}no" >&6
8335 fi
8336
8337
8338 enablestring=
8339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8340 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8341 no_cache=0
8342 # Check whether --enable-imaglist or --disable-imaglist was given.
8343 if test "${enable_imaglist+set}" = set; then
8344 enableval="$enable_imaglist"
8345
8346 if test "$enableval" = yes; then
8347 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8348 else
8349 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8350 fi
8351
8352 else
8353
8354 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8355 if test "x$LINE" != x ; then
8356 eval "DEFAULT_$LINE"
8357 else
8358 no_cache=1
8359 fi
8360
8361 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8362
8363 fi;
8364
8365 eval "$ac_cv_use_imaglist"
8366 if test "$no_cache" != 1; then
8367 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8368 fi
8369
8370 if test "$wxUSE_IMAGLIST" = yes; then
8371 echo "$as_me:$LINENO: result: yes" >&5
8372 echo "${ECHO_T}yes" >&6
8373 else
8374 echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6
8376 fi
8377
8378
8379 enablestring=
8380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8381 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8382 no_cache=0
8383 # Check whether --enable-listbook or --disable-listbook was given.
8384 if test "${enable_listbook+set}" = set; then
8385 enableval="$enable_listbook"
8386
8387 if test "$enableval" = yes; then
8388 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8389 else
8390 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8391 fi
8392
8393 else
8394
8395 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8396 if test "x$LINE" != x ; then
8397 eval "DEFAULT_$LINE"
8398 else
8399 no_cache=1
8400 fi
8401
8402 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8403
8404 fi;
8405
8406 eval "$ac_cv_use_listbook"
8407 if test "$no_cache" != 1; then
8408 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8409 fi
8410
8411 if test "$wxUSE_LISTBOOK" = yes; then
8412 echo "$as_me:$LINENO: result: yes" >&5
8413 echo "${ECHO_T}yes" >&6
8414 else
8415 echo "$as_me:$LINENO: result: no" >&5
8416 echo "${ECHO_T}no" >&6
8417 fi
8418
8419
8420 enablestring=
8421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8422 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8423 no_cache=0
8424 # Check whether --enable-listbox or --disable-listbox was given.
8425 if test "${enable_listbox+set}" = set; then
8426 enableval="$enable_listbox"
8427
8428 if test "$enableval" = yes; then
8429 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8430 else
8431 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8432 fi
8433
8434 else
8435
8436 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8437 if test "x$LINE" != x ; then
8438 eval "DEFAULT_$LINE"
8439 else
8440 no_cache=1
8441 fi
8442
8443 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8444
8445 fi;
8446
8447 eval "$ac_cv_use_listbox"
8448 if test "$no_cache" != 1; then
8449 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8450 fi
8451
8452 if test "$wxUSE_LISTBOX" = yes; then
8453 echo "$as_me:$LINENO: result: yes" >&5
8454 echo "${ECHO_T}yes" >&6
8455 else
8456 echo "$as_me:$LINENO: result: no" >&5
8457 echo "${ECHO_T}no" >&6
8458 fi
8459
8460
8461 enablestring=
8462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8463 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8464 no_cache=0
8465 # Check whether --enable-listctrl or --disable-listctrl was given.
8466 if test "${enable_listctrl+set}" = set; then
8467 enableval="$enable_listctrl"
8468
8469 if test "$enableval" = yes; then
8470 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8471 else
8472 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8473 fi
8474
8475 else
8476
8477 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8478 if test "x$LINE" != x ; then
8479 eval "DEFAULT_$LINE"
8480 else
8481 no_cache=1
8482 fi
8483
8484 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8485
8486 fi;
8487
8488 eval "$ac_cv_use_listctrl"
8489 if test "$no_cache" != 1; then
8490 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8491 fi
8492
8493 if test "$wxUSE_LISTCTRL" = yes; then
8494 echo "$as_me:$LINENO: result: yes" >&5
8495 echo "${ECHO_T}yes" >&6
8496 else
8497 echo "$as_me:$LINENO: result: no" >&5
8498 echo "${ECHO_T}no" >&6
8499 fi
8500
8501
8502 enablestring=
8503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8504 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8505 no_cache=0
8506 # Check whether --enable-notebook or --disable-notebook was given.
8507 if test "${enable_notebook+set}" = set; then
8508 enableval="$enable_notebook"
8509
8510 if test "$enableval" = yes; then
8511 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8512 else
8513 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8514 fi
8515
8516 else
8517
8518 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8519 if test "x$LINE" != x ; then
8520 eval "DEFAULT_$LINE"
8521 else
8522 no_cache=1
8523 fi
8524
8525 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8526
8527 fi;
8528
8529 eval "$ac_cv_use_notebook"
8530 if test "$no_cache" != 1; then
8531 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8532 fi
8533
8534 if test "$wxUSE_NOTEBOOK" = yes; then
8535 echo "$as_me:$LINENO: result: yes" >&5
8536 echo "${ECHO_T}yes" >&6
8537 else
8538 echo "$as_me:$LINENO: result: no" >&5
8539 echo "${ECHO_T}no" >&6
8540 fi
8541
8542
8543 enablestring=
8544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8545 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
8546 no_cache=0
8547 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8548 if test "${enable_odcombobox+set}" = set; then
8549 enableval="$enable_odcombobox"
8550
8551 if test "$enableval" = yes; then
8552 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
8553 else
8554 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
8555 fi
8556
8557 else
8558
8559 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
8560 if test "x$LINE" != x ; then
8561 eval "DEFAULT_$LINE"
8562 else
8563 no_cache=1
8564 fi
8565
8566 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
8567
8568 fi;
8569
8570 eval "$ac_cv_use_odcombobox"
8571 if test "$no_cache" != 1; then
8572 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
8573 fi
8574
8575 if test "$wxUSE_ODCOMBOBOX" = yes; then
8576 echo "$as_me:$LINENO: result: yes" >&5
8577 echo "${ECHO_T}yes" >&6
8578 else
8579 echo "$as_me:$LINENO: result: no" >&5
8580 echo "${ECHO_T}no" >&6
8581 fi
8582
8583
8584 enablestring=
8585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8586 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8587 no_cache=0
8588 # Check whether --enable-radiobox or --disable-radiobox was given.
8589 if test "${enable_radiobox+set}" = set; then
8590 enableval="$enable_radiobox"
8591
8592 if test "$enableval" = yes; then
8593 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8594 else
8595 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8596 fi
8597
8598 else
8599
8600 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8601 if test "x$LINE" != x ; then
8602 eval "DEFAULT_$LINE"
8603 else
8604 no_cache=1
8605 fi
8606
8607 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8608
8609 fi;
8610
8611 eval "$ac_cv_use_radiobox"
8612 if test "$no_cache" != 1; then
8613 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8614 fi
8615
8616 if test "$wxUSE_RADIOBOX" = yes; then
8617 echo "$as_me:$LINENO: result: yes" >&5
8618 echo "${ECHO_T}yes" >&6
8619 else
8620 echo "$as_me:$LINENO: result: no" >&5
8621 echo "${ECHO_T}no" >&6
8622 fi
8623
8624
8625 enablestring=
8626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8627 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8628 no_cache=0
8629 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8630 if test "${enable_radiobtn+set}" = set; then
8631 enableval="$enable_radiobtn"
8632
8633 if test "$enableval" = yes; then
8634 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8635 else
8636 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8637 fi
8638
8639 else
8640
8641 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8642 if test "x$LINE" != x ; then
8643 eval "DEFAULT_$LINE"
8644 else
8645 no_cache=1
8646 fi
8647
8648 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8649
8650 fi;
8651
8652 eval "$ac_cv_use_radiobtn"
8653 if test "$no_cache" != 1; then
8654 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8655 fi
8656
8657 if test "$wxUSE_RADIOBTN" = yes; then
8658 echo "$as_me:$LINENO: result: yes" >&5
8659 echo "${ECHO_T}yes" >&6
8660 else
8661 echo "$as_me:$LINENO: result: no" >&5
8662 echo "${ECHO_T}no" >&6
8663 fi
8664
8665
8666 enablestring=
8667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8668 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8669 no_cache=0
8670 # Check whether --enable-sash or --disable-sash was given.
8671 if test "${enable_sash+set}" = set; then
8672 enableval="$enable_sash"
8673
8674 if test "$enableval" = yes; then
8675 ac_cv_use_sash='wxUSE_SASH=yes'
8676 else
8677 ac_cv_use_sash='wxUSE_SASH=no'
8678 fi
8679
8680 else
8681
8682 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8683 if test "x$LINE" != x ; then
8684 eval "DEFAULT_$LINE"
8685 else
8686 no_cache=1
8687 fi
8688
8689 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8690
8691 fi;
8692
8693 eval "$ac_cv_use_sash"
8694 if test "$no_cache" != 1; then
8695 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8696 fi
8697
8698 if test "$wxUSE_SASH" = yes; then
8699 echo "$as_me:$LINENO: result: yes" >&5
8700 echo "${ECHO_T}yes" >&6
8701 else
8702 echo "$as_me:$LINENO: result: no" >&5
8703 echo "${ECHO_T}no" >&6
8704 fi
8705
8706
8707 enablestring=
8708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8709 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8710 no_cache=0
8711 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8712 if test "${enable_scrollbar+set}" = set; then
8713 enableval="$enable_scrollbar"
8714
8715 if test "$enableval" = yes; then
8716 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8717 else
8718 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8719 fi
8720
8721 else
8722
8723 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8724 if test "x$LINE" != x ; then
8725 eval "DEFAULT_$LINE"
8726 else
8727 no_cache=1
8728 fi
8729
8730 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8731
8732 fi;
8733
8734 eval "$ac_cv_use_scrollbar"
8735 if test "$no_cache" != 1; then
8736 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8737 fi
8738
8739 if test "$wxUSE_SCROLLBAR" = yes; then
8740 echo "$as_me:$LINENO: result: yes" >&5
8741 echo "${ECHO_T}yes" >&6
8742 else
8743 echo "$as_me:$LINENO: result: no" >&5
8744 echo "${ECHO_T}no" >&6
8745 fi
8746
8747
8748 enablestring=
8749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8750 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8751 no_cache=0
8752 # Check whether --enable-slider or --disable-slider was given.
8753 if test "${enable_slider+set}" = set; then
8754 enableval="$enable_slider"
8755
8756 if test "$enableval" = yes; then
8757 ac_cv_use_slider='wxUSE_SLIDER=yes'
8758 else
8759 ac_cv_use_slider='wxUSE_SLIDER=no'
8760 fi
8761
8762 else
8763
8764 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8765 if test "x$LINE" != x ; then
8766 eval "DEFAULT_$LINE"
8767 else
8768 no_cache=1
8769 fi
8770
8771 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8772
8773 fi;
8774
8775 eval "$ac_cv_use_slider"
8776 if test "$no_cache" != 1; then
8777 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8778 fi
8779
8780 if test "$wxUSE_SLIDER" = yes; then
8781 echo "$as_me:$LINENO: result: yes" >&5
8782 echo "${ECHO_T}yes" >&6
8783 else
8784 echo "$as_me:$LINENO: result: no" >&5
8785 echo "${ECHO_T}no" >&6
8786 fi
8787
8788
8789 enablestring=
8790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8791 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8792 no_cache=0
8793 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8794 if test "${enable_spinbtn+set}" = set; then
8795 enableval="$enable_spinbtn"
8796
8797 if test "$enableval" = yes; then
8798 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8799 else
8800 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8801 fi
8802
8803 else
8804
8805 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8806 if test "x$LINE" != x ; then
8807 eval "DEFAULT_$LINE"
8808 else
8809 no_cache=1
8810 fi
8811
8812 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8813
8814 fi;
8815
8816 eval "$ac_cv_use_spinbtn"
8817 if test "$no_cache" != 1; then
8818 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8819 fi
8820
8821 if test "$wxUSE_SPINBTN" = yes; then
8822 echo "$as_me:$LINENO: result: yes" >&5
8823 echo "${ECHO_T}yes" >&6
8824 else
8825 echo "$as_me:$LINENO: result: no" >&5
8826 echo "${ECHO_T}no" >&6
8827 fi
8828
8829
8830 enablestring=
8831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8832 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8833 no_cache=0
8834 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8835 if test "${enable_spinctrl+set}" = set; then
8836 enableval="$enable_spinctrl"
8837
8838 if test "$enableval" = yes; then
8839 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8840 else
8841 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8842 fi
8843
8844 else
8845
8846 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8847 if test "x$LINE" != x ; then
8848 eval "DEFAULT_$LINE"
8849 else
8850 no_cache=1
8851 fi
8852
8853 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8854
8855 fi;
8856
8857 eval "$ac_cv_use_spinctrl"
8858 if test "$no_cache" != 1; then
8859 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8860 fi
8861
8862 if test "$wxUSE_SPINCTRL" = yes; then
8863 echo "$as_me:$LINENO: result: yes" >&5
8864 echo "${ECHO_T}yes" >&6
8865 else
8866 echo "$as_me:$LINENO: result: no" >&5
8867 echo "${ECHO_T}no" >&6
8868 fi
8869
8870
8871 enablestring=
8872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8873 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8874 no_cache=0
8875 # Check whether --enable-splitter or --disable-splitter was given.
8876 if test "${enable_splitter+set}" = set; then
8877 enableval="$enable_splitter"
8878
8879 if test "$enableval" = yes; then
8880 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8881 else
8882 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8883 fi
8884
8885 else
8886
8887 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8888 if test "x$LINE" != x ; then
8889 eval "DEFAULT_$LINE"
8890 else
8891 no_cache=1
8892 fi
8893
8894 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8895
8896 fi;
8897
8898 eval "$ac_cv_use_splitter"
8899 if test "$no_cache" != 1; then
8900 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8901 fi
8902
8903 if test "$wxUSE_SPLITTER" = yes; then
8904 echo "$as_me:$LINENO: result: yes" >&5
8905 echo "${ECHO_T}yes" >&6
8906 else
8907 echo "$as_me:$LINENO: result: no" >&5
8908 echo "${ECHO_T}no" >&6
8909 fi
8910
8911
8912 enablestring=
8913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8914 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8915 no_cache=0
8916 # Check whether --enable-statbmp or --disable-statbmp was given.
8917 if test "${enable_statbmp+set}" = set; then
8918 enableval="$enable_statbmp"
8919
8920 if test "$enableval" = yes; then
8921 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8922 else
8923 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8924 fi
8925
8926 else
8927
8928 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8929 if test "x$LINE" != x ; then
8930 eval "DEFAULT_$LINE"
8931 else
8932 no_cache=1
8933 fi
8934
8935 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8936
8937 fi;
8938
8939 eval "$ac_cv_use_statbmp"
8940 if test "$no_cache" != 1; then
8941 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8942 fi
8943
8944 if test "$wxUSE_STATBMP" = yes; then
8945 echo "$as_me:$LINENO: result: yes" >&5
8946 echo "${ECHO_T}yes" >&6
8947 else
8948 echo "$as_me:$LINENO: result: no" >&5
8949 echo "${ECHO_T}no" >&6
8950 fi
8951
8952
8953 enablestring=
8954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8955 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8956 no_cache=0
8957 # Check whether --enable-statbox or --disable-statbox was given.
8958 if test "${enable_statbox+set}" = set; then
8959 enableval="$enable_statbox"
8960
8961 if test "$enableval" = yes; then
8962 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8963 else
8964 ac_cv_use_statbox='wxUSE_STATBOX=no'
8965 fi
8966
8967 else
8968
8969 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8970 if test "x$LINE" != x ; then
8971 eval "DEFAULT_$LINE"
8972 else
8973 no_cache=1
8974 fi
8975
8976 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8977
8978 fi;
8979
8980 eval "$ac_cv_use_statbox"
8981 if test "$no_cache" != 1; then
8982 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8983 fi
8984
8985 if test "$wxUSE_STATBOX" = yes; then
8986 echo "$as_me:$LINENO: result: yes" >&5
8987 echo "${ECHO_T}yes" >&6
8988 else
8989 echo "$as_me:$LINENO: result: no" >&5
8990 echo "${ECHO_T}no" >&6
8991 fi
8992
8993
8994 enablestring=
8995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8996 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8997 no_cache=0
8998 # Check whether --enable-statline or --disable-statline was given.
8999 if test "${enable_statline+set}" = set; then
9000 enableval="$enable_statline"
9001
9002 if test "$enableval" = yes; then
9003 ac_cv_use_statline='wxUSE_STATLINE=yes'
9004 else
9005 ac_cv_use_statline='wxUSE_STATLINE=no'
9006 fi
9007
9008 else
9009
9010 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9011 if test "x$LINE" != x ; then
9012 eval "DEFAULT_$LINE"
9013 else
9014 no_cache=1
9015 fi
9016
9017 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9018
9019 fi;
9020
9021 eval "$ac_cv_use_statline"
9022 if test "$no_cache" != 1; then
9023 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9024 fi
9025
9026 if test "$wxUSE_STATLINE" = yes; then
9027 echo "$as_me:$LINENO: result: yes" >&5
9028 echo "${ECHO_T}yes" >&6
9029 else
9030 echo "$as_me:$LINENO: result: no" >&5
9031 echo "${ECHO_T}no" >&6
9032 fi
9033
9034
9035 enablestring=
9036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9037 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9038 no_cache=0
9039 # Check whether --enable-stattext or --disable-stattext was given.
9040 if test "${enable_stattext+set}" = set; then
9041 enableval="$enable_stattext"
9042
9043 if test "$enableval" = yes; then
9044 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9045 else
9046 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9047 fi
9048
9049 else
9050
9051 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9052 if test "x$LINE" != x ; then
9053 eval "DEFAULT_$LINE"
9054 else
9055 no_cache=1
9056 fi
9057
9058 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9059
9060 fi;
9061
9062 eval "$ac_cv_use_stattext"
9063 if test "$no_cache" != 1; then
9064 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9065 fi
9066
9067 if test "$wxUSE_STATTEXT" = yes; then
9068 echo "$as_me:$LINENO: result: yes" >&5
9069 echo "${ECHO_T}yes" >&6
9070 else
9071 echo "$as_me:$LINENO: result: no" >&5
9072 echo "${ECHO_T}no" >&6
9073 fi
9074
9075
9076 enablestring=
9077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9078 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9079 no_cache=0
9080 # Check whether --enable-statusbar or --disable-statusbar was given.
9081 if test "${enable_statusbar+set}" = set; then
9082 enableval="$enable_statusbar"
9083
9084 if test "$enableval" = yes; then
9085 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9086 else
9087 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9088 fi
9089
9090 else
9091
9092 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9093 if test "x$LINE" != x ; then
9094 eval "DEFAULT_$LINE"
9095 else
9096 no_cache=1
9097 fi
9098
9099 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9100
9101 fi;
9102
9103 eval "$ac_cv_use_statusbar"
9104 if test "$no_cache" != 1; then
9105 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9106 fi
9107
9108 if test "$wxUSE_STATUSBAR" = yes; then
9109 echo "$as_me:$LINENO: result: yes" >&5
9110 echo "${ECHO_T}yes" >&6
9111 else
9112 echo "$as_me:$LINENO: result: no" >&5
9113 echo "${ECHO_T}no" >&6
9114 fi
9115
9116
9117 enablestring=
9118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9119 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9120 no_cache=0
9121 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9122 if test "${enable_tabdialog+set}" = set; then
9123 enableval="$enable_tabdialog"
9124
9125 if test "$enableval" = yes; then
9126 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
9127 else
9128 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
9129 fi
9130
9131 else
9132
9133 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
9134 if test "x$LINE" != x ; then
9135 eval "DEFAULT_$LINE"
9136 else
9137 no_cache=1
9138 fi
9139
9140 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
9141
9142 fi;
9143
9144 eval "$ac_cv_use_tabdialog"
9145 if test "$no_cache" != 1; then
9146 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9147 fi
9148
9149 if test "$wxUSE_TAB_DIALOG" = yes; then
9150 echo "$as_me:$LINENO: result: yes" >&5
9151 echo "${ECHO_T}yes" >&6
9152 else
9153 echo "$as_me:$LINENO: result: no" >&5
9154 echo "${ECHO_T}no" >&6
9155 fi
9156
9157
9158 enablestring=
9159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9160 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9161 no_cache=0
9162 # Check whether --enable-textctrl or --disable-textctrl was given.
9163 if test "${enable_textctrl+set}" = set; then
9164 enableval="$enable_textctrl"
9165
9166 if test "$enableval" = yes; then
9167 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9168 else
9169 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9170 fi
9171
9172 else
9173
9174 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9175 if test "x$LINE" != x ; then
9176 eval "DEFAULT_$LINE"
9177 else
9178 no_cache=1
9179 fi
9180
9181 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9182
9183 fi;
9184
9185 eval "$ac_cv_use_textctrl"
9186 if test "$no_cache" != 1; then
9187 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9188 fi
9189
9190 if test "$wxUSE_TEXTCTRL" = yes; then
9191 echo "$as_me:$LINENO: result: yes" >&5
9192 echo "${ECHO_T}yes" >&6
9193 else
9194 echo "$as_me:$LINENO: result: no" >&5
9195 echo "${ECHO_T}no" >&6
9196 fi
9197
9198
9199 enablestring=
9200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9201 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9202 no_cache=0
9203 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9204 if test "${enable_togglebtn+set}" = set; then
9205 enableval="$enable_togglebtn"
9206
9207 if test "$enableval" = yes; then
9208 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9209 else
9210 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9211 fi
9212
9213 else
9214
9215 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9216 if test "x$LINE" != x ; then
9217 eval "DEFAULT_$LINE"
9218 else
9219 no_cache=1
9220 fi
9221
9222 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9223
9224 fi;
9225
9226 eval "$ac_cv_use_togglebtn"
9227 if test "$no_cache" != 1; then
9228 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9229 fi
9230
9231 if test "$wxUSE_TOGGLEBTN" = yes; then
9232 echo "$as_me:$LINENO: result: yes" >&5
9233 echo "${ECHO_T}yes" >&6
9234 else
9235 echo "$as_me:$LINENO: result: no" >&5
9236 echo "${ECHO_T}no" >&6
9237 fi
9238
9239
9240 enablestring=
9241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9242 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9243 no_cache=0
9244 # Check whether --enable-toolbar or --disable-toolbar was given.
9245 if test "${enable_toolbar+set}" = set; then
9246 enableval="$enable_toolbar"
9247
9248 if test "$enableval" = yes; then
9249 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9250 else
9251 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9252 fi
9253
9254 else
9255
9256 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9257 if test "x$LINE" != x ; then
9258 eval "DEFAULT_$LINE"
9259 else
9260 no_cache=1
9261 fi
9262
9263 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9264
9265 fi;
9266
9267 eval "$ac_cv_use_toolbar"
9268 if test "$no_cache" != 1; then
9269 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9270 fi
9271
9272 if test "$wxUSE_TOOLBAR" = yes; then
9273 echo "$as_me:$LINENO: result: yes" >&5
9274 echo "${ECHO_T}yes" >&6
9275 else
9276 echo "$as_me:$LINENO: result: no" >&5
9277 echo "${ECHO_T}no" >&6
9278 fi
9279
9280
9281 enablestring=
9282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9283 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9284 no_cache=0
9285 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9286 if test "${enable_tbarnative+set}" = set; then
9287 enableval="$enable_tbarnative"
9288
9289 if test "$enableval" = yes; then
9290 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9291 else
9292 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9293 fi
9294
9295 else
9296
9297 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9298 if test "x$LINE" != x ; then
9299 eval "DEFAULT_$LINE"
9300 else
9301 no_cache=1
9302 fi
9303
9304 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9305
9306 fi;
9307
9308 eval "$ac_cv_use_tbarnative"
9309 if test "$no_cache" != 1; then
9310 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9311 fi
9312
9313 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9314 echo "$as_me:$LINENO: result: yes" >&5
9315 echo "${ECHO_T}yes" >&6
9316 else
9317 echo "$as_me:$LINENO: result: no" >&5
9318 echo "${ECHO_T}no" >&6
9319 fi
9320
9321
9322 enablestring=
9323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9324 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9325 no_cache=0
9326 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9327 if test "${enable_tbarsmpl+set}" = set; then
9328 enableval="$enable_tbarsmpl"
9329
9330 if test "$enableval" = yes; then
9331 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9332 else
9333 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9334 fi
9335
9336 else
9337
9338 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9339 if test "x$LINE" != x ; then
9340 eval "DEFAULT_$LINE"
9341 else
9342 no_cache=1
9343 fi
9344
9345 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9346
9347 fi;
9348
9349 eval "$ac_cv_use_tbarsmpl"
9350 if test "$no_cache" != 1; then
9351 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9352 fi
9353
9354 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9355 echo "$as_me:$LINENO: result: yes" >&5
9356 echo "${ECHO_T}yes" >&6
9357 else
9358 echo "$as_me:$LINENO: result: no" >&5
9359 echo "${ECHO_T}no" >&6
9360 fi
9361
9362
9363 enablestring=
9364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9365 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9366 no_cache=0
9367 # Check whether --enable-treebook or --disable-treebook was given.
9368 if test "${enable_treebook+set}" = set; then
9369 enableval="$enable_treebook"
9370
9371 if test "$enableval" = yes; then
9372 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9373 else
9374 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9375 fi
9376
9377 else
9378
9379 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9380 if test "x$LINE" != x ; then
9381 eval "DEFAULT_$LINE"
9382 else
9383 no_cache=1
9384 fi
9385
9386 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9387
9388 fi;
9389
9390 eval "$ac_cv_use_treebook"
9391 if test "$no_cache" != 1; then
9392 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9393 fi
9394
9395 if test "$wxUSE_TREEBOOK" = yes; then
9396 echo "$as_me:$LINENO: result: yes" >&5
9397 echo "${ECHO_T}yes" >&6
9398 else
9399 echo "$as_me:$LINENO: result: no" >&5
9400 echo "${ECHO_T}no" >&6
9401 fi
9402
9403
9404 enablestring=
9405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9406 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9407 no_cache=0
9408 # Check whether --enable-toolbook or --disable-toolbook was given.
9409 if test "${enable_toolbook+set}" = set; then
9410 enableval="$enable_toolbook"
9411
9412 if test "$enableval" = yes; then
9413 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9414 else
9415 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9416 fi
9417
9418 else
9419
9420 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9421 if test "x$LINE" != x ; then
9422 eval "DEFAULT_$LINE"
9423 else
9424 no_cache=1
9425 fi
9426
9427 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9428
9429 fi;
9430
9431 eval "$ac_cv_use_toolbook"
9432 if test "$no_cache" != 1; then
9433 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9434 fi
9435
9436 if test "$wxUSE_TOOLBOOK" = yes; then
9437 echo "$as_me:$LINENO: result: yes" >&5
9438 echo "${ECHO_T}yes" >&6
9439 else
9440 echo "$as_me:$LINENO: result: no" >&5
9441 echo "${ECHO_T}no" >&6
9442 fi
9443
9444
9445 enablestring=
9446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9447 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9448 no_cache=0
9449 # Check whether --enable-treectrl or --disable-treectrl was given.
9450 if test "${enable_treectrl+set}" = set; then
9451 enableval="$enable_treectrl"
9452
9453 if test "$enableval" = yes; then
9454 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9455 else
9456 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9457 fi
9458
9459 else
9460
9461 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9462 if test "x$LINE" != x ; then
9463 eval "DEFAULT_$LINE"
9464 else
9465 no_cache=1
9466 fi
9467
9468 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9469
9470 fi;
9471
9472 eval "$ac_cv_use_treectrl"
9473 if test "$no_cache" != 1; then
9474 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9475 fi
9476
9477 if test "$wxUSE_TREECTRL" = yes; then
9478 echo "$as_me:$LINENO: result: yes" >&5
9479 echo "${ECHO_T}yes" >&6
9480 else
9481 echo "$as_me:$LINENO: result: no" >&5
9482 echo "${ECHO_T}no" >&6
9483 fi
9484
9485
9486 enablestring=
9487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9488 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9489 no_cache=0
9490 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9491 if test "${enable_tipwindow+set}" = set; then
9492 enableval="$enable_tipwindow"
9493
9494 if test "$enableval" = yes; then
9495 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9496 else
9497 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9498 fi
9499
9500 else
9501
9502 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9503 if test "x$LINE" != x ; then
9504 eval "DEFAULT_$LINE"
9505 else
9506 no_cache=1
9507 fi
9508
9509 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9510
9511 fi;
9512
9513 eval "$ac_cv_use_tipwindow"
9514 if test "$no_cache" != 1; then
9515 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9516 fi
9517
9518 if test "$wxUSE_TIPWINDOW" = yes; then
9519 echo "$as_me:$LINENO: result: yes" >&5
9520 echo "${ECHO_T}yes" >&6
9521 else
9522 echo "$as_me:$LINENO: result: no" >&5
9523 echo "${ECHO_T}no" >&6
9524 fi
9525
9526
9527 enablestring=
9528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9529 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9530 no_cache=0
9531 # Check whether --enable-popupwin or --disable-popupwin was given.
9532 if test "${enable_popupwin+set}" = set; then
9533 enableval="$enable_popupwin"
9534
9535 if test "$enableval" = yes; then
9536 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9537 else
9538 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9539 fi
9540
9541 else
9542
9543 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9544 if test "x$LINE" != x ; then
9545 eval "DEFAULT_$LINE"
9546 else
9547 no_cache=1
9548 fi
9549
9550 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9551
9552 fi;
9553
9554 eval "$ac_cv_use_popupwin"
9555 if test "$no_cache" != 1; then
9556 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9557 fi
9558
9559 if test "$wxUSE_POPUPWIN" = yes; then
9560 echo "$as_me:$LINENO: result: yes" >&5
9561 echo "${ECHO_T}yes" >&6
9562 else
9563 echo "$as_me:$LINENO: result: no" >&5
9564 echo "${ECHO_T}no" >&6
9565 fi
9566
9567
9568
9569
9570 enablestring=
9571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9572 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9573 no_cache=0
9574 # Check whether --enable-commondlg or --disable-commondlg was given.
9575 if test "${enable_commondlg+set}" = set; then
9576 enableval="$enable_commondlg"
9577
9578 if test "$enableval" = yes; then
9579 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9580 else
9581 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9582 fi
9583
9584 else
9585
9586 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9587 if test "x$LINE" != x ; then
9588 eval "DEFAULT_$LINE"
9589 else
9590 no_cache=1
9591 fi
9592
9593 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9594
9595 fi;
9596
9597 eval "$ac_cv_use_commondlg"
9598 if test "$no_cache" != 1; then
9599 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9600 fi
9601
9602 if test "$wxUSE_COMMONDLGS" = yes; then
9603 echo "$as_me:$LINENO: result: yes" >&5
9604 echo "${ECHO_T}yes" >&6
9605 else
9606 echo "$as_me:$LINENO: result: no" >&5
9607 echo "${ECHO_T}no" >&6
9608 fi
9609
9610
9611 enablestring=
9612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9613 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9614 no_cache=0
9615 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9616 if test "${enable_choicedlg+set}" = set; then
9617 enableval="$enable_choicedlg"
9618
9619 if test "$enableval" = yes; then
9620 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9621 else
9622 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9623 fi
9624
9625 else
9626
9627 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9628 if test "x$LINE" != x ; then
9629 eval "DEFAULT_$LINE"
9630 else
9631 no_cache=1
9632 fi
9633
9634 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9635
9636 fi;
9637
9638 eval "$ac_cv_use_choicedlg"
9639 if test "$no_cache" != 1; then
9640 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9641 fi
9642
9643 if test "$wxUSE_CHOICEDLG" = yes; then
9644 echo "$as_me:$LINENO: result: yes" >&5
9645 echo "${ECHO_T}yes" >&6
9646 else
9647 echo "$as_me:$LINENO: result: no" >&5
9648 echo "${ECHO_T}no" >&6
9649 fi
9650
9651
9652 enablestring=
9653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9654 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9655 no_cache=0
9656 # Check whether --enable-coldlg or --disable-coldlg was given.
9657 if test "${enable_coldlg+set}" = set; then
9658 enableval="$enable_coldlg"
9659
9660 if test "$enableval" = yes; then
9661 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9662 else
9663 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9664 fi
9665
9666 else
9667
9668 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9669 if test "x$LINE" != x ; then
9670 eval "DEFAULT_$LINE"
9671 else
9672 no_cache=1
9673 fi
9674
9675 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9676
9677 fi;
9678
9679 eval "$ac_cv_use_coldlg"
9680 if test "$no_cache" != 1; then
9681 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9682 fi
9683
9684 if test "$wxUSE_COLOURDLG" = yes; then
9685 echo "$as_me:$LINENO: result: yes" >&5
9686 echo "${ECHO_T}yes" >&6
9687 else
9688 echo "$as_me:$LINENO: result: no" >&5
9689 echo "${ECHO_T}no" >&6
9690 fi
9691
9692
9693 enablestring=
9694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9695 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9696 no_cache=0
9697 # Check whether --enable-filedlg or --disable-filedlg was given.
9698 if test "${enable_filedlg+set}" = set; then
9699 enableval="$enable_filedlg"
9700
9701 if test "$enableval" = yes; then
9702 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9703 else
9704 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9705 fi
9706
9707 else
9708
9709 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9710 if test "x$LINE" != x ; then
9711 eval "DEFAULT_$LINE"
9712 else
9713 no_cache=1
9714 fi
9715
9716 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9717
9718 fi;
9719
9720 eval "$ac_cv_use_filedlg"
9721 if test "$no_cache" != 1; then
9722 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9723 fi
9724
9725 if test "$wxUSE_FILEDLG" = yes; then
9726 echo "$as_me:$LINENO: result: yes" >&5
9727 echo "${ECHO_T}yes" >&6
9728 else
9729 echo "$as_me:$LINENO: result: no" >&5
9730 echo "${ECHO_T}no" >&6
9731 fi
9732
9733
9734 enablestring=
9735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9736 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9737 no_cache=0
9738 # Check whether --enable-finddlg or --disable-finddlg was given.
9739 if test "${enable_finddlg+set}" = set; then
9740 enableval="$enable_finddlg"
9741
9742 if test "$enableval" = yes; then
9743 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9744 else
9745 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9746 fi
9747
9748 else
9749
9750 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9751 if test "x$LINE" != x ; then
9752 eval "DEFAULT_$LINE"
9753 else
9754 no_cache=1
9755 fi
9756
9757 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9758
9759 fi;
9760
9761 eval "$ac_cv_use_finddlg"
9762 if test "$no_cache" != 1; then
9763 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9764 fi
9765
9766 if test "$wxUSE_FINDREPLDLG" = yes; then
9767 echo "$as_me:$LINENO: result: yes" >&5
9768 echo "${ECHO_T}yes" >&6
9769 else
9770 echo "$as_me:$LINENO: result: no" >&5
9771 echo "${ECHO_T}no" >&6
9772 fi
9773
9774
9775 enablestring=
9776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9777 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9778 no_cache=0
9779 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9780 if test "${enable_fontdlg+set}" = set; then
9781 enableval="$enable_fontdlg"
9782
9783 if test "$enableval" = yes; then
9784 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9785 else
9786 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9787 fi
9788
9789 else
9790
9791 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9792 if test "x$LINE" != x ; then
9793 eval "DEFAULT_$LINE"
9794 else
9795 no_cache=1
9796 fi
9797
9798 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9799
9800 fi;
9801
9802 eval "$ac_cv_use_fontdlg"
9803 if test "$no_cache" != 1; then
9804 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9805 fi
9806
9807 if test "$wxUSE_FONTDLG" = yes; then
9808 echo "$as_me:$LINENO: result: yes" >&5
9809 echo "${ECHO_T}yes" >&6
9810 else
9811 echo "$as_me:$LINENO: result: no" >&5
9812 echo "${ECHO_T}no" >&6
9813 fi
9814
9815
9816 enablestring=
9817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9818 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9819 no_cache=0
9820 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9821 if test "${enable_dirdlg+set}" = set; then
9822 enableval="$enable_dirdlg"
9823
9824 if test "$enableval" = yes; then
9825 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9826 else
9827 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9828 fi
9829
9830 else
9831
9832 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9833 if test "x$LINE" != x ; then
9834 eval "DEFAULT_$LINE"
9835 else
9836 no_cache=1
9837 fi
9838
9839 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9840
9841 fi;
9842
9843 eval "$ac_cv_use_dirdlg"
9844 if test "$no_cache" != 1; then
9845 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9846 fi
9847
9848 if test "$wxUSE_DIRDLG" = yes; then
9849 echo "$as_me:$LINENO: result: yes" >&5
9850 echo "${ECHO_T}yes" >&6
9851 else
9852 echo "$as_me:$LINENO: result: no" >&5
9853 echo "${ECHO_T}no" >&6
9854 fi
9855
9856
9857 enablestring=
9858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9859 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9860 no_cache=0
9861 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9862 if test "${enable_msgdlg+set}" = set; then
9863 enableval="$enable_msgdlg"
9864
9865 if test "$enableval" = yes; then
9866 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9867 else
9868 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9869 fi
9870
9871 else
9872
9873 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9874 if test "x$LINE" != x ; then
9875 eval "DEFAULT_$LINE"
9876 else
9877 no_cache=1
9878 fi
9879
9880 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9881
9882 fi;
9883
9884 eval "$ac_cv_use_msgdlg"
9885 if test "$no_cache" != 1; then
9886 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9887 fi
9888
9889 if test "$wxUSE_MSGDLG" = yes; then
9890 echo "$as_me:$LINENO: result: yes" >&5
9891 echo "${ECHO_T}yes" >&6
9892 else
9893 echo "$as_me:$LINENO: result: no" >&5
9894 echo "${ECHO_T}no" >&6
9895 fi
9896
9897
9898 enablestring=
9899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9900 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9901 no_cache=0
9902 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9903 if test "${enable_numberdlg+set}" = set; then
9904 enableval="$enable_numberdlg"
9905
9906 if test "$enableval" = yes; then
9907 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9908 else
9909 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9910 fi
9911
9912 else
9913
9914 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9915 if test "x$LINE" != x ; then
9916 eval "DEFAULT_$LINE"
9917 else
9918 no_cache=1
9919 fi
9920
9921 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9922
9923 fi;
9924
9925 eval "$ac_cv_use_numberdlg"
9926 if test "$no_cache" != 1; then
9927 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9928 fi
9929
9930 if test "$wxUSE_NUMBERDLG" = yes; then
9931 echo "$as_me:$LINENO: result: yes" >&5
9932 echo "${ECHO_T}yes" >&6
9933 else
9934 echo "$as_me:$LINENO: result: no" >&5
9935 echo "${ECHO_T}no" >&6
9936 fi
9937
9938
9939 enablestring=
9940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9941 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9942 no_cache=0
9943 # Check whether --enable-splash or --disable-splash was given.
9944 if test "${enable_splash+set}" = set; then
9945 enableval="$enable_splash"
9946
9947 if test "$enableval" = yes; then
9948 ac_cv_use_splash='wxUSE_SPLASH=yes'
9949 else
9950 ac_cv_use_splash='wxUSE_SPLASH=no'
9951 fi
9952
9953 else
9954
9955 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9956 if test "x$LINE" != x ; then
9957 eval "DEFAULT_$LINE"
9958 else
9959 no_cache=1
9960 fi
9961
9962 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9963
9964 fi;
9965
9966 eval "$ac_cv_use_splash"
9967 if test "$no_cache" != 1; then
9968 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9969 fi
9970
9971 if test "$wxUSE_SPLASH" = yes; then
9972 echo "$as_me:$LINENO: result: yes" >&5
9973 echo "${ECHO_T}yes" >&6
9974 else
9975 echo "$as_me:$LINENO: result: no" >&5
9976 echo "${ECHO_T}no" >&6
9977 fi
9978
9979
9980 enablestring=
9981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9982 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9983 no_cache=0
9984 # Check whether --enable-textdlg or --disable-textdlg was given.
9985 if test "${enable_textdlg+set}" = set; then
9986 enableval="$enable_textdlg"
9987
9988 if test "$enableval" = yes; then
9989 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9990 else
9991 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9992 fi
9993
9994 else
9995
9996 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9997 if test "x$LINE" != x ; then
9998 eval "DEFAULT_$LINE"
9999 else
10000 no_cache=1
10001 fi
10002
10003 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10004
10005 fi;
10006
10007 eval "$ac_cv_use_textdlg"
10008 if test "$no_cache" != 1; then
10009 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10010 fi
10011
10012 if test "$wxUSE_TEXTDLG" = yes; then
10013 echo "$as_me:$LINENO: result: yes" >&5
10014 echo "${ECHO_T}yes" >&6
10015 else
10016 echo "$as_me:$LINENO: result: no" >&5
10017 echo "${ECHO_T}no" >&6
10018 fi
10019
10020
10021 enablestring=
10022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10023 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10024 no_cache=0
10025 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10026 if test "${enable_tipdlg+set}" = set; then
10027 enableval="$enable_tipdlg"
10028
10029 if test "$enableval" = yes; then
10030 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10031 else
10032 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10033 fi
10034
10035 else
10036
10037 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10038 if test "x$LINE" != x ; then
10039 eval "DEFAULT_$LINE"
10040 else
10041 no_cache=1
10042 fi
10043
10044 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10045
10046 fi;
10047
10048 eval "$ac_cv_use_tipdlg"
10049 if test "$no_cache" != 1; then
10050 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10051 fi
10052
10053 if test "$wxUSE_STARTUP_TIPS" = yes; then
10054 echo "$as_me:$LINENO: result: yes" >&5
10055 echo "${ECHO_T}yes" >&6
10056 else
10057 echo "$as_me:$LINENO: result: no" >&5
10058 echo "${ECHO_T}no" >&6
10059 fi
10060
10061
10062 enablestring=
10063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10064 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10065 no_cache=0
10066 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10067 if test "${enable_progressdlg+set}" = set; then
10068 enableval="$enable_progressdlg"
10069
10070 if test "$enableval" = yes; then
10071 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10072 else
10073 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10074 fi
10075
10076 else
10077
10078 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10079 if test "x$LINE" != x ; then
10080 eval "DEFAULT_$LINE"
10081 else
10082 no_cache=1
10083 fi
10084
10085 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10086
10087 fi;
10088
10089 eval "$ac_cv_use_progressdlg"
10090 if test "$no_cache" != 1; then
10091 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10092 fi
10093
10094 if test "$wxUSE_PROGRESSDLG" = yes; then
10095 echo "$as_me:$LINENO: result: yes" >&5
10096 echo "${ECHO_T}yes" >&6
10097 else
10098 echo "$as_me:$LINENO: result: no" >&5
10099 echo "${ECHO_T}no" >&6
10100 fi
10101
10102
10103 enablestring=
10104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10105 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10106 no_cache=0
10107 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10108 if test "${enable_wizarddlg+set}" = set; then
10109 enableval="$enable_wizarddlg"
10110
10111 if test "$enableval" = yes; then
10112 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10113 else
10114 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10115 fi
10116
10117 else
10118
10119 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10120 if test "x$LINE" != x ; then
10121 eval "DEFAULT_$LINE"
10122 else
10123 no_cache=1
10124 fi
10125
10126 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10127
10128 fi;
10129
10130 eval "$ac_cv_use_wizarddlg"
10131 if test "$no_cache" != 1; then
10132 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10133 fi
10134
10135 if test "$wxUSE_WIZARDDLG" = yes; then
10136 echo "$as_me:$LINENO: result: yes" >&5
10137 echo "${ECHO_T}yes" >&6
10138 else
10139 echo "$as_me:$LINENO: result: no" >&5
10140 echo "${ECHO_T}no" >&6
10141 fi
10142
10143
10144
10145
10146 enablestring=
10147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10148 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10149 no_cache=0
10150 # Check whether --enable-menus or --disable-menus was given.
10151 if test "${enable_menus+set}" = set; then
10152 enableval="$enable_menus"
10153
10154 if test "$enableval" = yes; then
10155 ac_cv_use_menus='wxUSE_MENUS=yes'
10156 else
10157 ac_cv_use_menus='wxUSE_MENUS=no'
10158 fi
10159
10160 else
10161
10162 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10163 if test "x$LINE" != x ; then
10164 eval "DEFAULT_$LINE"
10165 else
10166 no_cache=1
10167 fi
10168
10169 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10170
10171 fi;
10172
10173 eval "$ac_cv_use_menus"
10174 if test "$no_cache" != 1; then
10175 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10176 fi
10177
10178 if test "$wxUSE_MENUS" = yes; then
10179 echo "$as_me:$LINENO: result: yes" >&5
10180 echo "${ECHO_T}yes" >&6
10181 else
10182 echo "$as_me:$LINENO: result: no" >&5
10183 echo "${ECHO_T}no" >&6
10184 fi
10185
10186
10187 enablestring=
10188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10189 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10190 no_cache=0
10191 # Check whether --enable-miniframe or --disable-miniframe was given.
10192 if test "${enable_miniframe+set}" = set; then
10193 enableval="$enable_miniframe"
10194
10195 if test "$enableval" = yes; then
10196 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10197 else
10198 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10199 fi
10200
10201 else
10202
10203 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10204 if test "x$LINE" != x ; then
10205 eval "DEFAULT_$LINE"
10206 else
10207 no_cache=1
10208 fi
10209
10210 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10211
10212 fi;
10213
10214 eval "$ac_cv_use_miniframe"
10215 if test "$no_cache" != 1; then
10216 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10217 fi
10218
10219 if test "$wxUSE_MINIFRAME" = yes; then
10220 echo "$as_me:$LINENO: result: yes" >&5
10221 echo "${ECHO_T}yes" >&6
10222 else
10223 echo "$as_me:$LINENO: result: no" >&5
10224 echo "${ECHO_T}no" >&6
10225 fi
10226
10227
10228 enablestring=
10229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10230 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10231 no_cache=0
10232 # Check whether --enable-tooltips or --disable-tooltips was given.
10233 if test "${enable_tooltips+set}" = set; then
10234 enableval="$enable_tooltips"
10235
10236 if test "$enableval" = yes; then
10237 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10238 else
10239 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10240 fi
10241
10242 else
10243
10244 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10245 if test "x$LINE" != x ; then
10246 eval "DEFAULT_$LINE"
10247 else
10248 no_cache=1
10249 fi
10250
10251 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10252
10253 fi;
10254
10255 eval "$ac_cv_use_tooltips"
10256 if test "$no_cache" != 1; then
10257 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10258 fi
10259
10260 if test "$wxUSE_TOOLTIPS" = yes; then
10261 echo "$as_me:$LINENO: result: yes" >&5
10262 echo "${ECHO_T}yes" >&6
10263 else
10264 echo "$as_me:$LINENO: result: no" >&5
10265 echo "${ECHO_T}no" >&6
10266 fi
10267
10268
10269 enablestring=
10270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10271 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10272 no_cache=0
10273 # Check whether --enable-splines or --disable-splines was given.
10274 if test "${enable_splines+set}" = set; then
10275 enableval="$enable_splines"
10276
10277 if test "$enableval" = yes; then
10278 ac_cv_use_splines='wxUSE_SPLINES=yes'
10279 else
10280 ac_cv_use_splines='wxUSE_SPLINES=no'
10281 fi
10282
10283 else
10284
10285 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10286 if test "x$LINE" != x ; then
10287 eval "DEFAULT_$LINE"
10288 else
10289 no_cache=1
10290 fi
10291
10292 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10293
10294 fi;
10295
10296 eval "$ac_cv_use_splines"
10297 if test "$no_cache" != 1; then
10298 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10299 fi
10300
10301 if test "$wxUSE_SPLINES" = yes; then
10302 echo "$as_me:$LINENO: result: yes" >&5
10303 echo "${ECHO_T}yes" >&6
10304 else
10305 echo "$as_me:$LINENO: result: no" >&5
10306 echo "${ECHO_T}no" >&6
10307 fi
10308
10309
10310 enablestring=
10311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10312 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10313 no_cache=0
10314 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10315 if test "${enable_mousewheel+set}" = set; then
10316 enableval="$enable_mousewheel"
10317
10318 if test "$enableval" = yes; then
10319 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10320 else
10321 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10322 fi
10323
10324 else
10325
10326 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10327 if test "x$LINE" != x ; then
10328 eval "DEFAULT_$LINE"
10329 else
10330 no_cache=1
10331 fi
10332
10333 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10334
10335 fi;
10336
10337 eval "$ac_cv_use_mousewheel"
10338 if test "$no_cache" != 1; then
10339 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10340 fi
10341
10342 if test "$wxUSE_MOUSEWHEEL" = yes; then
10343 echo "$as_me:$LINENO: result: yes" >&5
10344 echo "${ECHO_T}yes" >&6
10345 else
10346 echo "$as_me:$LINENO: result: no" >&5
10347 echo "${ECHO_T}no" >&6
10348 fi
10349
10350
10351 enablestring=
10352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10353 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10354 no_cache=0
10355 # Check whether --enable-validators or --disable-validators was given.
10356 if test "${enable_validators+set}" = set; then
10357 enableval="$enable_validators"
10358
10359 if test "$enableval" = yes; then
10360 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10361 else
10362 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10363 fi
10364
10365 else
10366
10367 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10368 if test "x$LINE" != x ; then
10369 eval "DEFAULT_$LINE"
10370 else
10371 no_cache=1
10372 fi
10373
10374 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10375
10376 fi;
10377
10378 eval "$ac_cv_use_validators"
10379 if test "$no_cache" != 1; then
10380 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10381 fi
10382
10383 if test "$wxUSE_VALIDATORS" = yes; then
10384 echo "$as_me:$LINENO: result: yes" >&5
10385 echo "${ECHO_T}yes" >&6
10386 else
10387 echo "$as_me:$LINENO: result: no" >&5
10388 echo "${ECHO_T}no" >&6
10389 fi
10390
10391
10392 enablestring=
10393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10394 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10395 no_cache=0
10396 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10397 if test "${enable_busyinfo+set}" = set; then
10398 enableval="$enable_busyinfo"
10399
10400 if test "$enableval" = yes; then
10401 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10402 else
10403 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10404 fi
10405
10406 else
10407
10408 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10409 if test "x$LINE" != x ; then
10410 eval "DEFAULT_$LINE"
10411 else
10412 no_cache=1
10413 fi
10414
10415 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10416
10417 fi;
10418
10419 eval "$ac_cv_use_busyinfo"
10420 if test "$no_cache" != 1; then
10421 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10422 fi
10423
10424 if test "$wxUSE_BUSYINFO" = yes; then
10425 echo "$as_me:$LINENO: result: yes" >&5
10426 echo "${ECHO_T}yes" >&6
10427 else
10428 echo "$as_me:$LINENO: result: no" >&5
10429 echo "${ECHO_T}no" >&6
10430 fi
10431
10432
10433 enablestring=
10434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10435 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10436 no_cache=0
10437 # Check whether --enable-joystick or --disable-joystick was given.
10438 if test "${enable_joystick+set}" = set; then
10439 enableval="$enable_joystick"
10440
10441 if test "$enableval" = yes; then
10442 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10443 else
10444 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10445 fi
10446
10447 else
10448
10449 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10450 if test "x$LINE" != x ; then
10451 eval "DEFAULT_$LINE"
10452 else
10453 no_cache=1
10454 fi
10455
10456 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10457
10458 fi;
10459
10460 eval "$ac_cv_use_joystick"
10461 if test "$no_cache" != 1; then
10462 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10463 fi
10464
10465 if test "$wxUSE_JOYSTICK" = yes; then
10466 echo "$as_me:$LINENO: result: yes" >&5
10467 echo "${ECHO_T}yes" >&6
10468 else
10469 echo "$as_me:$LINENO: result: no" >&5
10470 echo "${ECHO_T}no" >&6
10471 fi
10472
10473
10474 enablestring=
10475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10476 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10477 no_cache=0
10478 # Check whether --enable-metafile or --disable-metafile was given.
10479 if test "${enable_metafile+set}" = set; then
10480 enableval="$enable_metafile"
10481
10482 if test "$enableval" = yes; then
10483 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10484 else
10485 ac_cv_use_metafile='wxUSE_METAFILE=no'
10486 fi
10487
10488 else
10489
10490 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10491 if test "x$LINE" != x ; then
10492 eval "DEFAULT_$LINE"
10493 else
10494 no_cache=1
10495 fi
10496
10497 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10498
10499 fi;
10500
10501 eval "$ac_cv_use_metafile"
10502 if test "$no_cache" != 1; then
10503 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10504 fi
10505
10506 if test "$wxUSE_METAFILE" = yes; then
10507 echo "$as_me:$LINENO: result: yes" >&5
10508 echo "${ECHO_T}yes" >&6
10509 else
10510 echo "$as_me:$LINENO: result: no" >&5
10511 echo "${ECHO_T}no" >&6
10512 fi
10513
10514
10515 enablestring=
10516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10517 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10518 no_cache=0
10519 # Check whether --enable-dragimage or --disable-dragimage was given.
10520 if test "${enable_dragimage+set}" = set; then
10521 enableval="$enable_dragimage"
10522
10523 if test "$enableval" = yes; then
10524 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10525 else
10526 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10527 fi
10528
10529 else
10530
10531 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10532 if test "x$LINE" != x ; then
10533 eval "DEFAULT_$LINE"
10534 else
10535 no_cache=1
10536 fi
10537
10538 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10539
10540 fi;
10541
10542 eval "$ac_cv_use_dragimage"
10543 if test "$no_cache" != 1; then
10544 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10545 fi
10546
10547 if test "$wxUSE_DRAGIMAGE" = yes; then
10548 echo "$as_me:$LINENO: result: yes" >&5
10549 echo "${ECHO_T}yes" >&6
10550 else
10551 echo "$as_me:$LINENO: result: no" >&5
10552 echo "${ECHO_T}no" >&6
10553 fi
10554
10555
10556 enablestring=
10557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10558 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10559 no_cache=0
10560 # Check whether --enable-accessibility or --disable-accessibility was given.
10561 if test "${enable_accessibility+set}" = set; then
10562 enableval="$enable_accessibility"
10563
10564 if test "$enableval" = yes; then
10565 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10566 else
10567 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10568 fi
10569
10570 else
10571
10572 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10573 if test "x$LINE" != x ; then
10574 eval "DEFAULT_$LINE"
10575 else
10576 no_cache=1
10577 fi
10578
10579 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10580
10581 fi;
10582
10583 eval "$ac_cv_use_accessibility"
10584 if test "$no_cache" != 1; then
10585 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10586 fi
10587
10588 if test "$wxUSE_ACCESSIBILITY" = yes; then
10589 echo "$as_me:$LINENO: result: yes" >&5
10590 echo "${ECHO_T}yes" >&6
10591 else
10592 echo "$as_me:$LINENO: result: no" >&5
10593 echo "${ECHO_T}no" >&6
10594 fi
10595
10596
10597 if test "$wxUSE_MSW" = "1"; then
10598
10599 enablestring=
10600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10601 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10602 no_cache=0
10603 # Check whether --enable-dccache or --disable-dccache was given.
10604 if test "${enable_dccache+set}" = set; then
10605 enableval="$enable_dccache"
10606
10607 if test "$enableval" = yes; then
10608 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10609 else
10610 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10611 fi
10612
10613 else
10614
10615 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10616 if test "x$LINE" != x ; then
10617 eval "DEFAULT_$LINE"
10618 else
10619 no_cache=1
10620 fi
10621
10622 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10623
10624 fi;
10625
10626 eval "$ac_cv_use_dccache"
10627 if test "$no_cache" != 1; then
10628 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10629 fi
10630
10631 if test "$wxUSE_DC_CACHEING" = yes; then
10632 echo "$as_me:$LINENO: result: yes" >&5
10633 echo "${ECHO_T}yes" >&6
10634 else
10635 echo "$as_me:$LINENO: result: no" >&5
10636 echo "${ECHO_T}no" >&6
10637 fi
10638
10639 fi
10640
10641
10642
10643 enablestring=
10644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10645 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10646 no_cache=0
10647 # Check whether --enable-palette or --disable-palette was given.
10648 if test "${enable_palette+set}" = set; then
10649 enableval="$enable_palette"
10650
10651 if test "$enableval" = yes; then
10652 ac_cv_use_palette='wxUSE_PALETTE=yes'
10653 else
10654 ac_cv_use_palette='wxUSE_PALETTE=no'
10655 fi
10656
10657 else
10658
10659 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10660 if test "x$LINE" != x ; then
10661 eval "DEFAULT_$LINE"
10662 else
10663 no_cache=1
10664 fi
10665
10666 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10667
10668 fi;
10669
10670 eval "$ac_cv_use_palette"
10671 if test "$no_cache" != 1; then
10672 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10673 fi
10674
10675 if test "$wxUSE_PALETTE" = yes; then
10676 echo "$as_me:$LINENO: result: yes" >&5
10677 echo "${ECHO_T}yes" >&6
10678 else
10679 echo "$as_me:$LINENO: result: no" >&5
10680 echo "${ECHO_T}no" >&6
10681 fi
10682
10683
10684 enablestring=
10685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10686 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10687 no_cache=0
10688 # Check whether --enable-image or --disable-image was given.
10689 if test "${enable_image+set}" = set; then
10690 enableval="$enable_image"
10691
10692 if test "$enableval" = yes; then
10693 ac_cv_use_image='wxUSE_IMAGE=yes'
10694 else
10695 ac_cv_use_image='wxUSE_IMAGE=no'
10696 fi
10697
10698 else
10699
10700 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10701 if test "x$LINE" != x ; then
10702 eval "DEFAULT_$LINE"
10703 else
10704 no_cache=1
10705 fi
10706
10707 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10708
10709 fi;
10710
10711 eval "$ac_cv_use_image"
10712 if test "$no_cache" != 1; then
10713 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10714 fi
10715
10716 if test "$wxUSE_IMAGE" = yes; then
10717 echo "$as_me:$LINENO: result: yes" >&5
10718 echo "${ECHO_T}yes" >&6
10719 else
10720 echo "$as_me:$LINENO: result: no" >&5
10721 echo "${ECHO_T}no" >&6
10722 fi
10723
10724
10725 enablestring=
10726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10727 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10728 no_cache=0
10729 # Check whether --enable-gif or --disable-gif was given.
10730 if test "${enable_gif+set}" = set; then
10731 enableval="$enable_gif"
10732
10733 if test "$enableval" = yes; then
10734 ac_cv_use_gif='wxUSE_GIF=yes'
10735 else
10736 ac_cv_use_gif='wxUSE_GIF=no'
10737 fi
10738
10739 else
10740
10741 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10742 if test "x$LINE" != x ; then
10743 eval "DEFAULT_$LINE"
10744 else
10745 no_cache=1
10746 fi
10747
10748 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10749
10750 fi;
10751
10752 eval "$ac_cv_use_gif"
10753 if test "$no_cache" != 1; then
10754 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10755 fi
10756
10757 if test "$wxUSE_GIF" = yes; then
10758 echo "$as_me:$LINENO: result: yes" >&5
10759 echo "${ECHO_T}yes" >&6
10760 else
10761 echo "$as_me:$LINENO: result: no" >&5
10762 echo "${ECHO_T}no" >&6
10763 fi
10764
10765
10766 enablestring=
10767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10768 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10769 no_cache=0
10770 # Check whether --enable-pcx or --disable-pcx was given.
10771 if test "${enable_pcx+set}" = set; then
10772 enableval="$enable_pcx"
10773
10774 if test "$enableval" = yes; then
10775 ac_cv_use_pcx='wxUSE_PCX=yes'
10776 else
10777 ac_cv_use_pcx='wxUSE_PCX=no'
10778 fi
10779
10780 else
10781
10782 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10783 if test "x$LINE" != x ; then
10784 eval "DEFAULT_$LINE"
10785 else
10786 no_cache=1
10787 fi
10788
10789 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10790
10791 fi;
10792
10793 eval "$ac_cv_use_pcx"
10794 if test "$no_cache" != 1; then
10795 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10796 fi
10797
10798 if test "$wxUSE_PCX" = yes; then
10799 echo "$as_me:$LINENO: result: yes" >&5
10800 echo "${ECHO_T}yes" >&6
10801 else
10802 echo "$as_me:$LINENO: result: no" >&5
10803 echo "${ECHO_T}no" >&6
10804 fi
10805
10806
10807 enablestring=
10808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10809 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10810 no_cache=0
10811 # Check whether --enable-iff or --disable-iff was given.
10812 if test "${enable_iff+set}" = set; then
10813 enableval="$enable_iff"
10814
10815 if test "$enableval" = yes; then
10816 ac_cv_use_iff='wxUSE_IFF=yes'
10817 else
10818 ac_cv_use_iff='wxUSE_IFF=no'
10819 fi
10820
10821 else
10822
10823 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10824 if test "x$LINE" != x ; then
10825 eval "DEFAULT_$LINE"
10826 else
10827 no_cache=1
10828 fi
10829
10830 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10831
10832 fi;
10833
10834 eval "$ac_cv_use_iff"
10835 if test "$no_cache" != 1; then
10836 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10837 fi
10838
10839 if test "$wxUSE_IFF" = yes; then
10840 echo "$as_me:$LINENO: result: yes" >&5
10841 echo "${ECHO_T}yes" >&6
10842 else
10843 echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6
10845 fi
10846
10847
10848 enablestring=
10849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10850 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10851 no_cache=0
10852 # Check whether --enable-pnm or --disable-pnm was given.
10853 if test "${enable_pnm+set}" = set; then
10854 enableval="$enable_pnm"
10855
10856 if test "$enableval" = yes; then
10857 ac_cv_use_pnm='wxUSE_PNM=yes'
10858 else
10859 ac_cv_use_pnm='wxUSE_PNM=no'
10860 fi
10861
10862 else
10863
10864 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10865 if test "x$LINE" != x ; then
10866 eval "DEFAULT_$LINE"
10867 else
10868 no_cache=1
10869 fi
10870
10871 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10872
10873 fi;
10874
10875 eval "$ac_cv_use_pnm"
10876 if test "$no_cache" != 1; then
10877 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10878 fi
10879
10880 if test "$wxUSE_PNM" = yes; then
10881 echo "$as_me:$LINENO: result: yes" >&5
10882 echo "${ECHO_T}yes" >&6
10883 else
10884 echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6
10886 fi
10887
10888
10889 enablestring=
10890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10891 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10892 no_cache=0
10893 # Check whether --enable-xpm or --disable-xpm was given.
10894 if test "${enable_xpm+set}" = set; then
10895 enableval="$enable_xpm"
10896
10897 if test "$enableval" = yes; then
10898 ac_cv_use_xpm='wxUSE_XPM=yes'
10899 else
10900 ac_cv_use_xpm='wxUSE_XPM=no'
10901 fi
10902
10903 else
10904
10905 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10906 if test "x$LINE" != x ; then
10907 eval "DEFAULT_$LINE"
10908 else
10909 no_cache=1
10910 fi
10911
10912 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10913
10914 fi;
10915
10916 eval "$ac_cv_use_xpm"
10917 if test "$no_cache" != 1; then
10918 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10919 fi
10920
10921 if test "$wxUSE_XPM" = yes; then
10922 echo "$as_me:$LINENO: result: yes" >&5
10923 echo "${ECHO_T}yes" >&6
10924 else
10925 echo "$as_me:$LINENO: result: no" >&5
10926 echo "${ECHO_T}no" >&6
10927 fi
10928
10929
10930 enablestring=
10931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10932 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10933 no_cache=0
10934 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10935 if test "${enable_ico_cur+set}" = set; then
10936 enableval="$enable_ico_cur"
10937
10938 if test "$enableval" = yes; then
10939 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10940 else
10941 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10942 fi
10943
10944 else
10945
10946 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10947 if test "x$LINE" != x ; then
10948 eval "DEFAULT_$LINE"
10949 else
10950 no_cache=1
10951 fi
10952
10953 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10954
10955 fi;
10956
10957 eval "$ac_cv_use_ico_cur"
10958 if test "$no_cache" != 1; then
10959 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10960 fi
10961
10962 if test "$wxUSE_ICO_CUR" = yes; then
10963 echo "$as_me:$LINENO: result: yes" >&5
10964 echo "${ECHO_T}yes" >&6
10965 else
10966 echo "$as_me:$LINENO: result: no" >&5
10967 echo "${ECHO_T}no" >&6
10968 fi
10969
10970
10971 fi
10972
10973
10974
10975 # Check whether --with-flavour or --without-flavour was given.
10976 if test "${with_flavour+set}" = set; then
10977 withval="$with_flavour"
10978 WX_FLAVOUR="$withval"
10979 fi;
10980
10981
10982
10983 enablestring=
10984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10985 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10986 no_cache=0
10987 # Check whether --enable-official_build or --disable-official_build was given.
10988 if test "${enable_official_build+set}" = set; then
10989 enableval="$enable_official_build"
10990
10991 if test "$enableval" = yes; then
10992 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10993 else
10994 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10995 fi
10996
10997 else
10998
10999 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11000 if test "x$LINE" != x ; then
11001 eval "DEFAULT_$LINE"
11002 else
11003 no_cache=1
11004 fi
11005
11006 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11007
11008 fi;
11009
11010 eval "$ac_cv_use_official_build"
11011 if test "$no_cache" != 1; then
11012 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11013 fi
11014
11015 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11016 echo "$as_me:$LINENO: result: yes" >&5
11017 echo "${ECHO_T}yes" >&6
11018 else
11019 echo "$as_me:$LINENO: result: no" >&5
11020 echo "${ECHO_T}no" >&6
11021 fi
11022
11023 # Check whether --enable-vendor or --disable-vendor was given.
11024 if test "${enable_vendor+set}" = set; then
11025 enableval="$enable_vendor"
11026 VENDOR="$enableval"
11027 fi;
11028 if test "x$VENDOR" = "x"; then
11029 VENDOR="custom"
11030 fi
11031
11032
11033
11034
11035 echo "saving argument cache $wx_arg_cache_file"
11036 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11037
11038
11039
11040 echo "$as_me:$LINENO: checking for toolkit" >&5
11041 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11042
11043 # In Wine, we need to default to MSW, not GTK or MOTIF
11044 if test "$wxUSE_WINE" = "yes"; then
11045 DEFAULT_DEFAULT_wxUSE_GTK=0
11046 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11047 DEFAULT_DEFAULT_wxUSE_MSW=1
11048 wxUSE_SHARED=no
11049 fi
11050
11051
11052 if test "$wxUSE_GUI" = "yes"; then
11053
11054 if test "$USE_BEOS" = 1; then
11055 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11056 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11057 { (exit 1); exit 1; }; }
11058 fi
11059
11060 if test "$TOOLKIT_GIVEN" = 1; then
11061 for toolkit in `echo $ALL_TOOLKITS`; do
11062 var=wxUSE_$toolkit
11063 eval "value=\$${var}"
11064 if test "x$value" = "xno"; then
11065 eval "$var=0"
11066 elif test "x$value" != "x"; then
11067 eval "$var=1"
11068 fi
11069
11070 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11071 eval "wx${toolkit}_VERSION=$value"
11072 fi
11073 done
11074 else
11075 for toolkit in `echo $ALL_TOOLKITS`; do
11076 if test "$has_toolkit_in_cache" != 1; then
11077 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11078 else
11079 var=DEFAULT_wxUSE_$toolkit
11080
11081 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11082 if test "x$version" != "x"; then
11083 eval "wx${toolkit}_VERSION=$version"
11084 fi
11085 fi
11086 eval "wxUSE_$toolkit=\$${var}"
11087 done
11088 fi
11089
11090 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11091 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11092 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11093
11094 case "${host}" in
11095 *-pc-os2_emx | *-pc-os2-emx )
11096 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11097 esac
11098
11099 case "$NUM_TOOLKITS" in
11100 1)
11101 ;;
11102 0)
11103 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11104 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11105 { (exit 1); exit 1; }; }
11106 ;;
11107 *)
11108 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11109 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11110 { (exit 1); exit 1; }; }
11111 esac
11112
11113 # to be removed when --disable-gtk2 isn't needed
11114 if test "x$wxUSE_GTK2" = "xyes"; then
11115 wxGTK_VERSION=2
11116 elif test "x$wxUSE_GTK2" = "xno"; then
11117 wxGTK_VERSION=1
11118 fi
11119
11120 for toolkit in `echo $ALL_TOOLKITS`; do
11121 var=wxUSE_$toolkit
11122 eval "value=\$${var}"
11123 if test "x$value" != x; then
11124 cache_var=CACHE_$toolkit
11125 eval "cache=\$${cache_var}"
11126 if test "$cache" = 1; then
11127 echo "$var=$value" >> ${wx_arg_cache_file}
11128 eval "version=\$wx${toolkit}_VERSION"
11129 if test "x$version" != "x"; then
11130 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11131 fi
11132 fi
11133 if test "$value" = 1; then
11134 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11135 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11136 echo "${ECHO_T}$toolkit_echo" >&6
11137 fi
11138 fi
11139 done
11140 else
11141 if test "x$host_alias" != "x"; then
11142 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11143 echo "${ECHO_T}base ($host_alias hosted) only" >&6
11144 else
11145 echo "$as_me:$LINENO: result: base only" >&5
11146 echo "${ECHO_T}base only" >&6
11147 fi
11148 fi
11149
11150 wants_win32=0
11151 doesnt_want_win32=0
11152 case "${host}" in
11153 *-*-cygwin*)
11154 if test "$wxUSE_MSW" = 1 ; then
11155 wants_win32=1
11156 BAKEFILE_FORCE_PLATFORM=win32
11157 else
11158 doesnt_want_win32=1
11159 fi
11160 ;;
11161 *-*-mingw*)
11162 wants_win32=1
11163 ;;
11164 esac
11165
11166 if test "$wxUSE_WINE" = "yes"; then
11167 wants_win32=1
11168 CC=winegcc
11169 CXX=wineg++
11170 LDFLAGS_GUI="-mwindows"
11171 fi
11172
11173 if test "$wants_win32" = 1 ; then
11174 USE_UNIX=0
11175 USE_WIN32=1
11176 cat >>confdefs.h <<\_ACEOF
11177 #define __WIN32__ 1
11178 _ACEOF
11179
11180 cat >>confdefs.h <<\_ACEOF
11181 #define __WIN95__ 1
11182 _ACEOF
11183
11184 cat >>confdefs.h <<\_ACEOF
11185 #define __WINDOWS__ 1
11186 _ACEOF
11187
11188 cat >>confdefs.h <<\_ACEOF
11189 #define __GNUWIN32__ 1
11190 _ACEOF
11191
11192 cat >>confdefs.h <<\_ACEOF
11193 #define STRICT 1
11194 _ACEOF
11195
11196 cat >>confdefs.h <<\_ACEOF
11197 #define WINVER 0x0400
11198 _ACEOF
11199
11200 fi
11201 if test "$doesnt_want_win32" = 1 ; then
11202 USE_UNIX=1
11203 USE_WIN32=0
11204 fi
11205
11206 if test "$USE_UNIX" = 1 ; then
11207 wxUSE_UNIX=yes
11208 cat >>confdefs.h <<\_ACEOF
11209 #define __UNIX__ 1
11210 _ACEOF
11211
11212 fi
11213
11214
11215 cat >confcache <<\_ACEOF
11216 # This file is a shell script that caches the results of configure
11217 # tests run on this system so they can be shared between configure
11218 # scripts and configure runs, see configure's option --config-cache.
11219 # It is not useful on other systems. If it contains results you don't
11220 # want to keep, you may remove or edit it.
11221 #
11222 # config.status only pays attention to the cache file if you give it
11223 # the --recheck option to rerun configure.
11224 #
11225 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11226 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11227 # following values.
11228
11229 _ACEOF
11230
11231 # The following way of writing the cache mishandles newlines in values,
11232 # but we know of no workaround that is simple, portable, and efficient.
11233 # So, don't put newlines in cache variables' values.
11234 # Ultrix sh set writes to stderr and can't be redirected directly,
11235 # and sets the high bit in the cache file unless we assign to the vars.
11236 {
11237 (set) 2>&1 |
11238 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11239 *ac_space=\ *)
11240 # `set' does not quote correctly, so add quotes (double-quote
11241 # substitution turns \\\\ into \\, and sed turns \\ into \).
11242 sed -n \
11243 "s/'/'\\\\''/g;
11244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11245 ;;
11246 *)
11247 # `set' quotes correctly as required by POSIX, so do not add quotes.
11248 sed -n \
11249 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11250 ;;
11251 esac;
11252 } |
11253 sed '
11254 t clear
11255 : clear
11256 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11257 t end
11258 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11259 : end' >>confcache
11260 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11261 if test -w $cache_file; then
11262 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11263 cat confcache >$cache_file
11264 else
11265 echo "not updating unwritable cache $cache_file"
11266 fi
11267 fi
11268 rm -f confcache
11269
11270 CFLAGS=${CFLAGS:=}
11271
11272
11273
11274 ac_ext=c
11275 ac_cpp='$CPP $CPPFLAGS'
11276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11279 if test -n "$ac_tool_prefix"; then
11280 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11281 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11282 echo "$as_me:$LINENO: checking for $ac_word" >&5
11283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11284 if test "${ac_cv_prog_CC+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 else
11287 if test -n "$CC"; then
11288 ac_cv_prog_CC="$CC" # Let the user override the test.
11289 else
11290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291 for as_dir in $PATH
11292 do
11293 IFS=$as_save_IFS
11294 test -z "$as_dir" && as_dir=.
11295 for ac_exec_ext in '' $ac_executable_extensions; do
11296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11297 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11299 break 2
11300 fi
11301 done
11302 done
11303
11304 fi
11305 fi
11306 CC=$ac_cv_prog_CC
11307 if test -n "$CC"; then
11308 echo "$as_me:$LINENO: result: $CC" >&5
11309 echo "${ECHO_T}$CC" >&6
11310 else
11311 echo "$as_me:$LINENO: result: no" >&5
11312 echo "${ECHO_T}no" >&6
11313 fi
11314
11315 fi
11316 if test -z "$ac_cv_prog_CC"; then
11317 ac_ct_CC=$CC
11318 # Extract the first word of "gcc", so it can be a program name with args.
11319 set dummy gcc; ac_word=$2
11320 echo "$as_me:$LINENO: checking for $ac_word" >&5
11321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 else
11325 if test -n "$ac_ct_CC"; then
11326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11327 else
11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329 for as_dir in $PATH
11330 do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_prog_ac_ct_CC="gcc"
11336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11338 fi
11339 done
11340 done
11341
11342 fi
11343 fi
11344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11345 if test -n "$ac_ct_CC"; then
11346 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11347 echo "${ECHO_T}$ac_ct_CC" >&6
11348 else
11349 echo "$as_me:$LINENO: result: no" >&5
11350 echo "${ECHO_T}no" >&6
11351 fi
11352
11353 CC=$ac_ct_CC
11354 else
11355 CC="$ac_cv_prog_CC"
11356 fi
11357
11358 if test -z "$CC"; then
11359 if test -n "$ac_tool_prefix"; then
11360 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11361 set dummy ${ac_tool_prefix}cc; ac_word=$2
11362 echo "$as_me:$LINENO: checking for $ac_word" >&5
11363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11364 if test "${ac_cv_prog_CC+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367 if test -n "$CC"; then
11368 ac_cv_prog_CC="$CC" # Let the user override the test.
11369 else
11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11372 do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11377 ac_cv_prog_CC="${ac_tool_prefix}cc"
11378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 break 2
11380 fi
11381 done
11382 done
11383
11384 fi
11385 fi
11386 CC=$ac_cv_prog_CC
11387 if test -n "$CC"; then
11388 echo "$as_me:$LINENO: result: $CC" >&5
11389 echo "${ECHO_T}$CC" >&6
11390 else
11391 echo "$as_me:$LINENO: result: no" >&5
11392 echo "${ECHO_T}no" >&6
11393 fi
11394
11395 fi
11396 if test -z "$ac_cv_prog_CC"; then
11397 ac_ct_CC=$CC
11398 # Extract the first word of "cc", so it can be a program name with args.
11399 set dummy cc; ac_word=$2
11400 echo "$as_me:$LINENO: checking for $ac_word" >&5
11401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405 if test -n "$ac_ct_CC"; then
11406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11407 else
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11410 do
11411 IFS=$as_save_IFS
11412 test -z "$as_dir" && as_dir=.
11413 for ac_exec_ext in '' $ac_executable_extensions; do
11414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11415 ac_cv_prog_ac_ct_CC="cc"
11416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11417 break 2
11418 fi
11419 done
11420 done
11421
11422 fi
11423 fi
11424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11425 if test -n "$ac_ct_CC"; then
11426 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11427 echo "${ECHO_T}$ac_ct_CC" >&6
11428 else
11429 echo "$as_me:$LINENO: result: no" >&5
11430 echo "${ECHO_T}no" >&6
11431 fi
11432
11433 CC=$ac_ct_CC
11434 else
11435 CC="$ac_cv_prog_CC"
11436 fi
11437
11438 fi
11439 if test -z "$CC"; then
11440 # Extract the first word of "cc", so it can be a program name with args.
11441 set dummy cc; ac_word=$2
11442 echo "$as_me:$LINENO: checking for $ac_word" >&5
11443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11444 if test "${ac_cv_prog_CC+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447 if test -n "$CC"; then
11448 ac_cv_prog_CC="$CC" # Let the user override the test.
11449 else
11450 ac_prog_rejected=no
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in $PATH
11453 do
11454 IFS=$as_save_IFS
11455 test -z "$as_dir" && as_dir=.
11456 for ac_exec_ext in '' $ac_executable_extensions; do
11457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11458 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11459 ac_prog_rejected=yes
11460 continue
11461 fi
11462 ac_cv_prog_CC="cc"
11463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11464 break 2
11465 fi
11466 done
11467 done
11468
11469 if test $ac_prog_rejected = yes; then
11470 # We found a bogon in the path, so make sure we never use it.
11471 set dummy $ac_cv_prog_CC
11472 shift
11473 if test $# != 0; then
11474 # We chose a different compiler from the bogus one.
11475 # However, it has the same basename, so the bogon will be chosen
11476 # first if we set CC to just the basename; use the full file name.
11477 shift
11478 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11479 fi
11480 fi
11481 fi
11482 fi
11483 CC=$ac_cv_prog_CC
11484 if test -n "$CC"; then
11485 echo "$as_me:$LINENO: result: $CC" >&5
11486 echo "${ECHO_T}$CC" >&6
11487 else
11488 echo "$as_me:$LINENO: result: no" >&5
11489 echo "${ECHO_T}no" >&6
11490 fi
11491
11492 fi
11493 if test -z "$CC"; then
11494 if test -n "$ac_tool_prefix"; then
11495 for ac_prog in cl
11496 do
11497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11499 echo "$as_me:$LINENO: checking for $ac_word" >&5
11500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11501 if test "${ac_cv_prog_CC+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504 if test -n "$CC"; then
11505 ac_cv_prog_CC="$CC" # Let the user override the test.
11506 else
11507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11508 for as_dir in $PATH
11509 do
11510 IFS=$as_save_IFS
11511 test -z "$as_dir" && as_dir=.
11512 for ac_exec_ext in '' $ac_executable_extensions; do
11513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11514 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11516 break 2
11517 fi
11518 done
11519 done
11520
11521 fi
11522 fi
11523 CC=$ac_cv_prog_CC
11524 if test -n "$CC"; then
11525 echo "$as_me:$LINENO: result: $CC" >&5
11526 echo "${ECHO_T}$CC" >&6
11527 else
11528 echo "$as_me:$LINENO: result: no" >&5
11529 echo "${ECHO_T}no" >&6
11530 fi
11531
11532 test -n "$CC" && break
11533 done
11534 fi
11535 if test -z "$CC"; then
11536 ac_ct_CC=$CC
11537 for ac_prog in cl
11538 do
11539 # Extract the first word of "$ac_prog", so it can be a program name with args.
11540 set dummy $ac_prog; ac_word=$2
11541 echo "$as_me:$LINENO: checking for $ac_word" >&5
11542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 else
11546 if test -n "$ac_ct_CC"; then
11547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11548 else
11549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550 for as_dir in $PATH
11551 do
11552 IFS=$as_save_IFS
11553 test -z "$as_dir" && as_dir=.
11554 for ac_exec_ext in '' $ac_executable_extensions; do
11555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11556 ac_cv_prog_ac_ct_CC="$ac_prog"
11557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11558 break 2
11559 fi
11560 done
11561 done
11562
11563 fi
11564 fi
11565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11566 if test -n "$ac_ct_CC"; then
11567 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11568 echo "${ECHO_T}$ac_ct_CC" >&6
11569 else
11570 echo "$as_me:$LINENO: result: no" >&5
11571 echo "${ECHO_T}no" >&6
11572 fi
11573
11574 test -n "$ac_ct_CC" && break
11575 done
11576
11577 CC=$ac_ct_CC
11578 fi
11579
11580 fi
11581
11582
11583 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11584 See \`config.log' for more details." >&5
11585 echo "$as_me: error: no acceptable C compiler found in \$PATH
11586 See \`config.log' for more details." >&2;}
11587 { (exit 1); exit 1; }; }
11588
11589 # Provide some information about the compiler.
11590 echo "$as_me:$LINENO:" \
11591 "checking for C compiler version" >&5
11592 ac_compiler=`set X $ac_compile; echo $2`
11593 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11594 (eval $ac_compiler --version </dev/null >&5) 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }
11598 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11599 (eval $ac_compiler -v </dev/null >&5) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }
11603 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11604 (eval $ac_compiler -V </dev/null >&5) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }
11608
11609 cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h. */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615
11616 int
11617 main ()
11618 {
11619
11620 ;
11621 return 0;
11622 }
11623 _ACEOF
11624 ac_clean_files_save=$ac_clean_files
11625 ac_clean_files="$ac_clean_files a.out a.exe b.out"
11626 # Try to create an executable without -o first, disregard a.out.
11627 # It will help us diagnose broken compilers, and finding out an intuition
11628 # of exeext.
11629 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11630 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
11631 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11632 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11633 (eval $ac_link_default) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; then
11637 # Find the output, starting from the most likely. This scheme is
11638 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
11639 # resort.
11640
11641 # Be careful to initialize this variable, since it used to be cached.
11642 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11643 ac_cv_exeext=
11644 # b.out is created by i960 compilers.
11645 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11646 do
11647 test -f "$ac_file" || continue
11648 case $ac_file in
11649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11650 ;;
11651 conftest.$ac_ext )
11652 # This is the source file.
11653 ;;
11654 [ab].out )
11655 # We found the default executable, but exeext='' is most
11656 # certainly right.
11657 break;;
11658 *.* )
11659 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11660 # FIXME: I believe we export ac_cv_exeext for Libtool,
11661 # but it would be cool to find out if it's true. Does anybody
11662 # maintain Libtool? --akim.
11663 export ac_cv_exeext
11664 break;;
11665 * )
11666 break;;
11667 esac
11668 done
11669 else
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11672
11673 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
11674 See \`config.log' for more details." >&5
11675 echo "$as_me: error: C compiler cannot create executables
11676 See \`config.log' for more details." >&2;}
11677 { (exit 77); exit 77; }; }
11678 fi
11679
11680 ac_exeext=$ac_cv_exeext
11681 echo "$as_me:$LINENO: result: $ac_file" >&5
11682 echo "${ECHO_T}$ac_file" >&6
11683
11684 # Check the compiler produces executables we can run. If not, either
11685 # the compiler is broken, or we cross compile.
11686 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11687 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11688 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11689 # If not cross compiling, check that we can run a simple program.
11690 if test "$cross_compiling" != yes; then
11691 if { ac_try='./$ac_file'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 cross_compiling=no
11698 else
11699 if test "$cross_compiling" = maybe; then
11700 cross_compiling=yes
11701 else
11702 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11703 If you meant to cross compile, use \`--host'.
11704 See \`config.log' for more details." >&5
11705 echo "$as_me: error: cannot run C compiled programs.
11706 If you meant to cross compile, use \`--host'.
11707 See \`config.log' for more details." >&2;}
11708 { (exit 1); exit 1; }; }
11709 fi
11710 fi
11711 fi
11712 echo "$as_me:$LINENO: result: yes" >&5
11713 echo "${ECHO_T}yes" >&6
11714
11715 rm -f a.out a.exe conftest$ac_cv_exeext b.out
11716 ac_clean_files=$ac_clean_files_save
11717 # Check the compiler produces executables we can run. If not, either
11718 # the compiler is broken, or we cross compile.
11719 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11720 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11721 echo "$as_me:$LINENO: result: $cross_compiling" >&5
11722 echo "${ECHO_T}$cross_compiling" >&6
11723
11724 echo "$as_me:$LINENO: checking for suffix of executables" >&5
11725 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11727 (eval $ac_link) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; then
11731 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11732 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11733 # work properly (i.e., refer to `conftest.exe'), while it won't with
11734 # `rm'.
11735 for ac_file in conftest.exe conftest conftest.*; do
11736 test -f "$ac_file" || continue
11737 case $ac_file in
11738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11739 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11740 export ac_cv_exeext
11741 break;;
11742 * ) break;;
11743 esac
11744 done
11745 else
11746 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11747 See \`config.log' for more details." >&5
11748 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11749 See \`config.log' for more details." >&2;}
11750 { (exit 1); exit 1; }; }
11751 fi
11752
11753 rm -f conftest$ac_cv_exeext
11754 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11755 echo "${ECHO_T}$ac_cv_exeext" >&6
11756
11757 rm -f conftest.$ac_ext
11758 EXEEXT=$ac_cv_exeext
11759 ac_exeext=$EXEEXT
11760 echo "$as_me:$LINENO: checking for suffix of object files" >&5
11761 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11762 if test "${ac_cv_objext+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h. */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771
11772 int
11773 main ()
11774 {
11775
11776 ;
11777 return 0;
11778 }
11779 _ACEOF
11780 rm -f conftest.o conftest.obj
11781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11782 (eval $ac_compile) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; then
11786 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11787 case $ac_file in
11788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11789 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11790 break;;
11791 esac
11792 done
11793 else
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11796
11797 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11798 See \`config.log' for more details." >&5
11799 echo "$as_me: error: cannot compute suffix of object files: cannot compile
11800 See \`config.log' for more details." >&2;}
11801 { (exit 1); exit 1; }; }
11802 fi
11803
11804 rm -f conftest.$ac_cv_objext conftest.$ac_ext
11805 fi
11806 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11807 echo "${ECHO_T}$ac_cv_objext" >&6
11808 OBJEXT=$ac_cv_objext
11809 ac_objext=$OBJEXT
11810 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11811 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11812 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815 cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h. */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821
11822 int
11823 main ()
11824 {
11825 #ifndef __GNUC__
11826 choke me
11827 #endif
11828
11829 ;
11830 return 0;
11831 }
11832 _ACEOF
11833 rm -f conftest.$ac_objext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11835 (eval $ac_compile) 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_compiler_gnu=yes
11855 else
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 ac_compiler_gnu=no
11860 fi
11861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11862 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11863
11864 fi
11865 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11866 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11867 GCC=`test $ac_compiler_gnu = yes && echo yes`
11868 ac_test_CFLAGS=${CFLAGS+set}
11869 ac_save_CFLAGS=$CFLAGS
11870 CFLAGS="-g"
11871 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11872 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11873 if test "${ac_cv_prog_cc_g+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h. */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882
11883 int
11884 main ()
11885 {
11886
11887 ;
11888 return 0;
11889 }
11890 _ACEOF
11891 rm -f conftest.$ac_objext
11892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11893 (eval $ac_compile) 2>conftest.er1
11894 ac_status=$?
11895 grep -v '^ *+' conftest.er1 >conftest.err
11896 rm -f conftest.er1
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
11900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest.$ac_objext'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 ac_cv_prog_cc_g=yes
11913 else
11914 echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917 ac_cv_prog_cc_g=no
11918 fi
11919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11920 fi
11921 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11922 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11923 if test "$ac_test_CFLAGS" = set; then
11924 CFLAGS=$ac_save_CFLAGS
11925 elif test $ac_cv_prog_cc_g = yes; then
11926 if test "$GCC" = yes; then
11927 CFLAGS="-g -O2"
11928 else
11929 CFLAGS="-g"
11930 fi
11931 else
11932 if test "$GCC" = yes; then
11933 CFLAGS="-O2"
11934 else
11935 CFLAGS=
11936 fi
11937 fi
11938 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11939 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11940 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 else
11943 ac_cv_prog_cc_stdc=no
11944 ac_save_CC=$CC
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h. */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 #include <stdarg.h>
11952 #include <stdio.h>
11953 #include <sys/types.h>
11954 #include <sys/stat.h>
11955 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11956 struct buf { int x; };
11957 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11958 static char *e (p, i)
11959 char **p;
11960 int i;
11961 {
11962 return p[i];
11963 }
11964 static char *f (char * (*g) (char **, int), char **p, ...)
11965 {
11966 char *s;
11967 va_list v;
11968 va_start (v,p);
11969 s = g (p, va_arg (v,int));
11970 va_end (v);
11971 return s;
11972 }
11973
11974 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11975 function prototypes and stuff, but not '\xHH' hex character constants.
11976 These don't provoke an error unfortunately, instead are silently treated
11977 as 'x'. The following induces an error, until -std1 is added to get
11978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11979 array size at least. It's necessary to write '\x00'==0 to get something
11980 that's true only with -std1. */
11981 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11982
11983 int test (int i, double x);
11984 struct s1 {int (*f) (int a);};
11985 struct s2 {int (*f) (double a);};
11986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11987 int argc;
11988 char **argv;
11989 int
11990 main ()
11991 {
11992 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11993 ;
11994 return 0;
11995 }
11996 _ACEOF
11997 # Don't try gcc -ansi; that turns off useful extensions and
11998 # breaks some systems' header files.
11999 # AIX -qlanglvl=ansi
12000 # Ultrix and OSF/1 -std1
12001 # HP-UX 10.20 and later -Ae
12002 # HP-UX older versions -Aa -D_HPUX_SOURCE
12003 # SVR4 -Xc -D__EXTENSIONS__
12004 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12005 do
12006 CC="$ac_save_CC $ac_arg"
12007 rm -f conftest.$ac_objext
12008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12009 (eval $ac_compile) 2>conftest.er1
12010 ac_status=$?
12011 grep -v '^ *+' conftest.er1 >conftest.err
12012 rm -f conftest.er1
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest.$ac_objext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_cv_prog_cc_stdc=$ac_arg
12029 break
12030 else
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 fi
12035 rm -f conftest.err conftest.$ac_objext
12036 done
12037 rm -f conftest.$ac_ext conftest.$ac_objext
12038 CC=$ac_save_CC
12039
12040 fi
12041
12042 case "x$ac_cv_prog_cc_stdc" in
12043 x|xno)
12044 echo "$as_me:$LINENO: result: none needed" >&5
12045 echo "${ECHO_T}none needed" >&6 ;;
12046 *)
12047 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12048 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12049 CC="$CC $ac_cv_prog_cc_stdc" ;;
12050 esac
12051
12052 # Some people use a C++ compiler to compile C. Since we use `exit',
12053 # in C++ we need to declare it. In case someone uses the same compiler
12054 # for both compiling C and C++ we need to have the C++ compiler decide
12055 # the declaration of exit, since it's the most demanding environment.
12056 cat >conftest.$ac_ext <<_ACEOF
12057 #ifndef __cplusplus
12058 choke me
12059 #endif
12060 _ACEOF
12061 rm -f conftest.$ac_objext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12063 (eval $ac_compile) 2>conftest.er1
12064 ac_status=$?
12065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest.$ac_objext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 for ac_declaration in \
12083 '' \
12084 'extern "C" void std::exit (int) throw (); using std::exit;' \
12085 'extern "C" void std::exit (int); using std::exit;' \
12086 'extern "C" void exit (int) throw ();' \
12087 'extern "C" void exit (int);' \
12088 'void exit (int);'
12089 do
12090 cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h. */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12096 $ac_declaration
12097 #include <stdlib.h>
12098 int
12099 main ()
12100 {
12101 exit (42);
12102 ;
12103 return 0;
12104 }
12105 _ACEOF
12106 rm -f conftest.$ac_objext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12108 (eval $ac_compile) 2>conftest.er1
12109 ac_status=$?
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; } &&
12121 { ac_try='test -s conftest.$ac_objext'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127 :
12128 else
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12131
12132 continue
12133 fi
12134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h. */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 $ac_declaration
12142 int
12143 main ()
12144 {
12145 exit (42);
12146 ;
12147 return 0;
12148 }
12149 _ACEOF
12150 rm -f conftest.$ac_objext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12152 (eval $ac_compile) 2>conftest.er1
12153 ac_status=$?
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
12159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 break
12172 else
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12175
12176 fi
12177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12178 done
12179 rm -f conftest*
12180 if test -n "$ac_declaration"; then
12181 echo '#ifdef __cplusplus' >>confdefs.h
12182 echo $ac_declaration >>confdefs.h
12183 echo '#endif' >>confdefs.h
12184 fi
12185
12186 else
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190 fi
12191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12192 ac_ext=c
12193 ac_cpp='$CPP $CPPFLAGS'
12194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12197
12198
12199
12200 ac_ext=c
12201 ac_cpp='$CPP $CPPFLAGS'
12202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12205
12206 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12207 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12208 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h. */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217
12218 int
12219 main ()
12220 {
12221
12222 #ifndef __INTEL_COMPILER
12223 choke me
12224 #endif
12225
12226 ;
12227 return 0;
12228 }
12229 _ACEOF
12230 rm -f conftest.$ac_objext
12231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12232 (eval $ac_compile) 2>conftest.er1
12233 ac_status=$?
12234 grep -v '^ *+' conftest.er1 >conftest.err
12235 rm -f conftest.er1
12236 cat conftest.err >&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } &&
12239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; } &&
12245 { ac_try='test -s conftest.$ac_objext'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12252 else
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12255
12256 bakefile_cv_c_compiler___INTEL_COMPILER=no
12257
12258 fi
12259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12260
12261
12262 fi
12263 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12264 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12265 ac_ext=c
12266 ac_cpp='$CPP $CPPFLAGS'
12267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12270
12271 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12272 :; INTELCC=yes
12273 else
12274 :;
12275 fi
12276
12277
12278 if test "x$GCC" != "xyes"; then
12279 if test "xCC" = "xC"; then
12280 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
12281 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
12282 if test "${bakefile_cv_c_exto+set}" = set; then
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285 cat >conftest.$ac_ext <<_ACEOF
12286 /* confdefs.h. */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291
12292 int
12293 main ()
12294 {
12295
12296 ;
12297 return 0;
12298 }
12299 _ACEOF
12300 rm -f conftest.$ac_objext conftest.$ac_ext.o
12301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12302 (eval $ac_compile) 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; then
12306 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12307 case $ac_file in
12308 conftest.$ac_ext.o)
12309 bakefile_cv_c_exto="-ext o"
12310 ;;
12311 *)
12312 ;;
12313 esac
12314 done
12315 else
12316 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12317 See \`config.log' for more details." >&5
12318 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12319 See \`config.log' for more details." >&2;}
12320 { (exit 1); exit 1; }; }
12321
12322 fi
12323
12324 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12325
12326 fi
12327 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12328 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12329 if test "x$bakefile_cv_c_exto" '!=' "x"; then
12330 if test "c" = "c"; then
12331 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
12332 fi
12333 if test "c" = "cxx"; then
12334 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
12335 fi
12336 fi
12337
12338 if test "x$bakefile_cv_c_exto" '!=' "x"; then
12339 unset ac_cv_prog_cc_g
12340 ac_test_CFLAGS=${CFLAGS+set}
12341 ac_save_CFLAGS=$CFLAGS
12342 CFLAGS="-g"
12343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12345 if test "${ac_cv_prog_cc_g+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348 cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h. */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354
12355 int
12356 main ()
12357 {
12358
12359 ;
12360 return 0;
12361 }
12362 _ACEOF
12363 rm -f conftest.$ac_objext
12364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12365 (eval $ac_compile) 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest.$ac_objext'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_cv_prog_cc_g=yes
12385 else
12386 echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12388
12389 ac_cv_prog_cc_g=no
12390 fi
12391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12392 fi
12393 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12394 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12395 if test "$ac_test_CFLAGS" = set; then
12396 CFLAGS=$ac_save_CFLAGS
12397 elif test $ac_cv_prog_cc_g = yes; then
12398 if test "$GCC" = yes; then
12399 CFLAGS="-g -O2"
12400 else
12401 CFLAGS="-g"
12402 fi
12403 else
12404 if test "$GCC" = yes; then
12405 CFLAGS="-O2"
12406 else
12407 CFLAGS=
12408 fi
12409 fi
12410 fi
12411 fi
12412
12413 case `uname -s` in
12414 AIX*)
12415 ac_ext=c
12416 ac_cpp='$CPP $CPPFLAGS'
12417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12420
12421 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12422 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12423 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426 cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h. */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12432
12433 int
12434 main ()
12435 {
12436 #ifndef __xlC__
12437 choke me
12438 #endif
12439
12440 ;
12441 return 0;
12442 }
12443 _ACEOF
12444 rm -f conftest.$ac_objext
12445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12446 (eval $ac_compile) 2>conftest.er1
12447 ac_status=$?
12448 grep -v '^ *+' conftest.er1 >conftest.err
12449 rm -f conftest.er1
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest.$ac_objext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 bakefile_compiler_xlc=yes
12466 else
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12469
12470 bakefile_compiler_xlc=no
12471 fi
12472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12473 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12474
12475 fi
12476 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12477 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12478
12479 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12480 ac_ext=c
12481 ac_cpp='$CPP $CPPFLAGS'
12482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12485
12486
12487 ;;
12488
12489 Darwin)
12490 ac_ext=c
12491 ac_cpp='$CPP $CPPFLAGS'
12492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12495
12496 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12497 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12498 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 else
12501 cat >conftest.$ac_ext <<_ACEOF
12502 /* confdefs.h. */
12503 _ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12507
12508 int
12509 main ()
12510 {
12511 #ifndef __MWERKS__
12512 choke me
12513 #endif
12514
12515 ;
12516 return 0;
12517 }
12518 _ACEOF
12519 rm -f conftest.$ac_objext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521 (eval $ac_compile) 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; } &&
12534 { ac_try='test -s conftest.$ac_objext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 bakefile_compiler_mwerks=yes
12541 else
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545 bakefile_compiler_mwerks=no
12546 fi
12547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12548 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12549
12550 fi
12551 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12552 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12553
12554 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
12555 ac_ext=c
12556 ac_cpp='$CPP $CPPFLAGS'
12557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12560
12561
12562 ac_ext=c
12563 ac_cpp='$CPP $CPPFLAGS'
12564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12567
12568 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12569 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
12570 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12573 cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h. */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579
12580 int
12581 main ()
12582 {
12583 #ifndef __xlC__
12584 choke me
12585 #endif
12586
12587 ;
12588 return 0;
12589 }
12590 _ACEOF
12591 rm -f conftest.$ac_objext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593 (eval $ac_compile) 2>conftest.er1
12594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest.$ac_objext'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 bakefile_compiler_xlc=yes
12613 else
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12616
12617 bakefile_compiler_xlc=no
12618 fi
12619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12620 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
12621
12622 fi
12623 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12624 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
12625
12626 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
12627 ac_ext=c
12628 ac_cpp='$CPP $CPPFLAGS'
12629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12632
12633
12634 ;;
12635
12636 IRIX*)
12637
12638
12639 ac_ext=c
12640 ac_cpp='$CPP $CPPFLAGS'
12641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12644
12645 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12646 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12647 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 else
12650 cat >conftest.$ac_ext <<_ACEOF
12651 /* confdefs.h. */
12652 _ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12656
12657 int
12658 main ()
12659 {
12660
12661 #ifndef _SGI_COMPILER_VERSION
12662 choke me
12663 #endif
12664
12665 ;
12666 return 0;
12667 }
12668 _ACEOF
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; } &&
12684 { ac_try='test -s conftest.$ac_objext'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12691 else
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12696
12697 fi
12698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699
12700
12701 fi
12702 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12703 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12704 ac_ext=c
12705 ac_cpp='$CPP $CPPFLAGS'
12706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12709
12710 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12711 :; SGICC=yes
12712 else
12713 :;
12714 fi
12715
12716
12717 ;;
12718
12719 HP-UX*)
12720
12721
12722 ac_ext=c
12723 ac_cpp='$CPP $CPPFLAGS'
12724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12727
12728 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12729 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12730 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 else
12733 cat >conftest.$ac_ext <<_ACEOF
12734 /* confdefs.h. */
12735 _ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12739
12740 int
12741 main ()
12742 {
12743
12744 #ifndef __HP_cc
12745 choke me
12746 #endif
12747
12748 ;
12749 return 0;
12750 }
12751 _ACEOF
12752 rm -f conftest.$ac_objext
12753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12754 (eval $ac_compile) 2>conftest.er1
12755 ac_status=$?
12756 grep -v '^ *+' conftest.er1 >conftest.err
12757 rm -f conftest.er1
12758 cat conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } &&
12761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; } &&
12767 { ac_try='test -s conftest.$ac_objext'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
12773 bakefile_cv_c_compiler___HP_cc=yes
12774 else
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12777
12778 bakefile_cv_c_compiler___HP_cc=no
12779
12780 fi
12781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12782
12783
12784 fi
12785 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12786 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
12787 ac_ext=c
12788 ac_cpp='$CPP $CPPFLAGS'
12789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12792
12793 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12794 :; HPCC=yes
12795 else
12796 :;
12797 fi
12798
12799
12800 ;;
12801
12802 OSF1)
12803
12804
12805 ac_ext=c
12806 ac_cpp='$CPP $CPPFLAGS'
12807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12810
12811 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12812 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12813 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 else
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h. */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822
12823 int
12824 main ()
12825 {
12826
12827 #ifndef __DECC
12828 choke me
12829 #endif
12830
12831 ;
12832 return 0;
12833 }
12834 _ACEOF
12835 rm -f conftest.$ac_objext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12837 (eval $ac_compile) 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; } &&
12850 { ac_try='test -s conftest.$ac_objext'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 bakefile_cv_c_compiler___DECC=yes
12857 else
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12860
12861 bakefile_cv_c_compiler___DECC=no
12862
12863 fi
12864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12865
12866
12867 fi
12868 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12869 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
12870 ac_ext=c
12871 ac_cpp='$CPP $CPPFLAGS'
12872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12875
12876 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12877 :; COMPAQCC=yes
12878 else
12879 :;
12880 fi
12881
12882
12883 ;;
12884
12885 SunOS)
12886
12887
12888 ac_ext=c
12889 ac_cpp='$CPP $CPPFLAGS'
12890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12893
12894 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12895 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12896 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899 cat >conftest.$ac_ext <<_ACEOF
12900 /* confdefs.h. */
12901 _ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12905
12906 int
12907 main ()
12908 {
12909
12910 #ifndef __SUNPRO_C
12911 choke me
12912 #endif
12913
12914 ;
12915 return 0;
12916 }
12917 _ACEOF
12918 rm -f conftest.$ac_objext
12919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12920 (eval $ac_compile) 2>conftest.er1
12921 ac_status=$?
12922 grep -v '^ *+' conftest.er1 >conftest.err
12923 rm -f conftest.er1
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } &&
12927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; } &&
12933 { ac_try='test -s conftest.$ac_objext'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 bakefile_cv_c_compiler___SUNPRO_C=yes
12940 else
12941 echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12943
12944 bakefile_cv_c_compiler___SUNPRO_C=no
12945
12946 fi
12947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12948
12949
12950 fi
12951 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12952 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12953 ac_ext=c
12954 ac_cpp='$CPP $CPPFLAGS'
12955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12958
12959 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12960 :; SUNCC=yes
12961 else
12962 :;
12963 fi
12964
12965
12966 ;;
12967 esac
12968 fi
12969
12970
12971
12972 ac_ext=c
12973 ac_cpp='$CPP $CPPFLAGS'
12974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12977 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12978 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12979 # On Suns, sometimes $CPP names a directory.
12980 if test -n "$CPP" && test -d "$CPP"; then
12981 CPP=
12982 fi
12983 if test -z "$CPP"; then
12984 if test "${ac_cv_prog_CPP+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987 # Double quotes because CPP needs to be expanded
12988 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12989 do
12990 ac_preproc_ok=false
12991 for ac_c_preproc_warn_flag in '' yes
12992 do
12993 # Use a header file that comes with gcc, so configuring glibc
12994 # with a fresh cross-compiler works.
12995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12996 # <limits.h> exists even on freestanding compilers.
12997 # On the NeXT, cc -E runs the code through the compiler's parser,
12998 # not just through cpp. "Syntax error" is here to catch this case.
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h. */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 #ifdef __STDC__
13006 # include <limits.h>
13007 #else
13008 # include <assert.h>
13009 #endif
13010 Syntax error
13011 _ACEOF
13012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13014 ac_status=$?
13015 grep -v '^ *+' conftest.er1 >conftest.err
13016 rm -f conftest.er1
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } >/dev/null; then
13020 if test -s conftest.err; then
13021 ac_cpp_err=$ac_c_preproc_warn_flag
13022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13023 else
13024 ac_cpp_err=
13025 fi
13026 else
13027 ac_cpp_err=yes
13028 fi
13029 if test -z "$ac_cpp_err"; then
13030 :
13031 else
13032 echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13034
13035 # Broken: fails on valid input.
13036 continue
13037 fi
13038 rm -f conftest.err conftest.$ac_ext
13039
13040 # OK, works on sane cases. Now check whether non-existent headers
13041 # can be detected and how.
13042 cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h. */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13048 #include <ac_nonexistent.h>
13049 _ACEOF
13050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } >/dev/null; then
13058 if test -s conftest.err; then
13059 ac_cpp_err=$ac_c_preproc_warn_flag
13060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13061 else
13062 ac_cpp_err=
13063 fi
13064 else
13065 ac_cpp_err=yes
13066 fi
13067 if test -z "$ac_cpp_err"; then
13068 # Broken: success on invalid input.
13069 continue
13070 else
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13073
13074 # Passes both tests.
13075 ac_preproc_ok=:
13076 break
13077 fi
13078 rm -f conftest.err conftest.$ac_ext
13079
13080 done
13081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13082 rm -f conftest.err conftest.$ac_ext
13083 if $ac_preproc_ok; then
13084 break
13085 fi
13086
13087 done
13088 ac_cv_prog_CPP=$CPP
13089
13090 fi
13091 CPP=$ac_cv_prog_CPP
13092 else
13093 ac_cv_prog_CPP=$CPP
13094 fi
13095 echo "$as_me:$LINENO: result: $CPP" >&5
13096 echo "${ECHO_T}$CPP" >&6
13097 ac_preproc_ok=false
13098 for ac_c_preproc_warn_flag in '' yes
13099 do
13100 # Use a header file that comes with gcc, so configuring glibc
13101 # with a fresh cross-compiler works.
13102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13103 # <limits.h> exists even on freestanding compilers.
13104 # On the NeXT, cc -E runs the code through the compiler's parser,
13105 # not just through cpp. "Syntax error" is here to catch this case.
13106 cat >conftest.$ac_ext <<_ACEOF
13107 /* confdefs.h. */
13108 _ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13112 #ifdef __STDC__
13113 # include <limits.h>
13114 #else
13115 # include <assert.h>
13116 #endif
13117 Syntax error
13118 _ACEOF
13119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13121 ac_status=$?
13122 grep -v '^ *+' conftest.er1 >conftest.err
13123 rm -f conftest.er1
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } >/dev/null; then
13127 if test -s conftest.err; then
13128 ac_cpp_err=$ac_c_preproc_warn_flag
13129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13130 else
13131 ac_cpp_err=
13132 fi
13133 else
13134 ac_cpp_err=yes
13135 fi
13136 if test -z "$ac_cpp_err"; then
13137 :
13138 else
13139 echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13141
13142 # Broken: fails on valid input.
13143 continue
13144 fi
13145 rm -f conftest.err conftest.$ac_ext
13146
13147 # OK, works on sane cases. Now check whether non-existent headers
13148 # can be detected and how.
13149 cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h. */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 #include <ac_nonexistent.h>
13156 _ACEOF
13157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } >/dev/null; then
13165 if test -s conftest.err; then
13166 ac_cpp_err=$ac_c_preproc_warn_flag
13167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13168 else
13169 ac_cpp_err=
13170 fi
13171 else
13172 ac_cpp_err=yes
13173 fi
13174 if test -z "$ac_cpp_err"; then
13175 # Broken: success on invalid input.
13176 continue
13177 else
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 # Passes both tests.
13182 ac_preproc_ok=:
13183 break
13184 fi
13185 rm -f conftest.err conftest.$ac_ext
13186
13187 done
13188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13189 rm -f conftest.err conftest.$ac_ext
13190 if $ac_preproc_ok; then
13191 :
13192 else
13193 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13194 See \`config.log' for more details." >&5
13195 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13196 See \`config.log' for more details." >&2;}
13197 { (exit 1); exit 1; }; }
13198 fi
13199
13200 ac_ext=c
13201 ac_cpp='$CPP $CPPFLAGS'
13202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13205
13206
13207 echo "$as_me:$LINENO: checking for egrep" >&5
13208 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13209 if test "${ac_cv_prog_egrep+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 else
13212 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13213 then ac_cv_prog_egrep='grep -E'
13214 else ac_cv_prog_egrep='egrep'
13215 fi
13216 fi
13217 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13218 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13219 EGREP=$ac_cv_prog_egrep
13220
13221
13222 if test $ac_cv_c_compiler_gnu = yes; then
13223 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13224 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13225 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228 ac_pattern="Autoconf.*'x'"
13229 cat >conftest.$ac_ext <<_ACEOF
13230 /* confdefs.h. */
13231 _ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h. */
13235 #include <sgtty.h>
13236 Autoconf TIOCGETP
13237 _ACEOF
13238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13239 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13240 ac_cv_prog_gcc_traditional=yes
13241 else
13242 ac_cv_prog_gcc_traditional=no
13243 fi
13244 rm -f conftest*
13245
13246
13247 if test $ac_cv_prog_gcc_traditional = no; then
13248 cat >conftest.$ac_ext <<_ACEOF
13249 /* confdefs.h. */
13250 _ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h. */
13254 #include <termio.h>
13255 Autoconf TCGETA
13256 _ACEOF
13257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13258 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13259 ac_cv_prog_gcc_traditional=yes
13260 fi
13261 rm -f conftest*
13262
13263 fi
13264 fi
13265 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13266 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13267 if test $ac_cv_prog_gcc_traditional = yes; then
13268 CC="$CC -traditional"
13269 fi
13270 fi
13271
13272
13273 ac_ext=cc
13274 ac_cpp='$CXXCPP $CPPFLAGS'
13275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13278
13279
13280 CXXFLAGS=${CXXFLAGS:=}
13281
13282
13283
13284 ac_ext=cc
13285 ac_cpp='$CXXCPP $CPPFLAGS'
13286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13289 if test -n "$ac_tool_prefix"; then
13290 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13291 do
13292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13294 echo "$as_me:$LINENO: checking for $ac_word" >&5
13295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13296 if test "${ac_cv_prog_CXX+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 else
13299 if test -n "$CXX"; then
13300 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13301 else
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in $PATH
13304 do
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13309 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13311 break 2
13312 fi
13313 done
13314 done
13315
13316 fi
13317 fi
13318 CXX=$ac_cv_prog_CXX
13319 if test -n "$CXX"; then
13320 echo "$as_me:$LINENO: result: $CXX" >&5
13321 echo "${ECHO_T}$CXX" >&6
13322 else
13323 echo "$as_me:$LINENO: result: no" >&5
13324 echo "${ECHO_T}no" >&6
13325 fi
13326
13327 test -n "$CXX" && break
13328 done
13329 fi
13330 if test -z "$CXX"; then
13331 ac_ct_CXX=$CXX
13332 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13333 do
13334 # Extract the first word of "$ac_prog", so it can be a program name with args.
13335 set dummy $ac_prog; ac_word=$2
13336 echo "$as_me:$LINENO: checking for $ac_word" >&5
13337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13338 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341 if test -n "$ac_ct_CXX"; then
13342 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13343 else
13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13346 do
13347 IFS=$as_save_IFS
13348 test -z "$as_dir" && as_dir=.
13349 for ac_exec_ext in '' $ac_executable_extensions; do
13350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351 ac_cv_prog_ac_ct_CXX="$ac_prog"
13352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13353 break 2
13354 fi
13355 done
13356 done
13357
13358 fi
13359 fi
13360 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13361 if test -n "$ac_ct_CXX"; then
13362 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13363 echo "${ECHO_T}$ac_ct_CXX" >&6
13364 else
13365 echo "$as_me:$LINENO: result: no" >&5
13366 echo "${ECHO_T}no" >&6
13367 fi
13368
13369 test -n "$ac_ct_CXX" && break
13370 done
13371 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13372
13373 CXX=$ac_ct_CXX
13374 fi
13375
13376
13377 # Provide some information about the compiler.
13378 echo "$as_me:$LINENO:" \
13379 "checking for C++ compiler version" >&5
13380 ac_compiler=`set X $ac_compile; echo $2`
13381 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13382 (eval $ac_compiler --version </dev/null >&5) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }
13386 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13387 (eval $ac_compiler -v </dev/null >&5) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }
13391 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13392 (eval $ac_compiler -V </dev/null >&5) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }
13396
13397 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13398 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13399 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 else
13402 cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h. */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13408
13409 int
13410 main ()
13411 {
13412 #ifndef __GNUC__
13413 choke me
13414 #endif
13415
13416 ;
13417 return 0;
13418 }
13419 _ACEOF
13420 rm -f conftest.$ac_objext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13422 (eval $ac_compile) 2>conftest.er1
13423 ac_status=$?
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest.$ac_objext'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 ac_compiler_gnu=yes
13442 else
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13445
13446 ac_compiler_gnu=no
13447 fi
13448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13449 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13450
13451 fi
13452 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13453 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13454 GXX=`test $ac_compiler_gnu = yes && echo yes`
13455 ac_test_CXXFLAGS=${CXXFLAGS+set}
13456 ac_save_CXXFLAGS=$CXXFLAGS
13457 CXXFLAGS="-g"
13458 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13459 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13460 if test "${ac_cv_prog_cxx_g+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463 cat >conftest.$ac_ext <<_ACEOF
13464 /* confdefs.h. */
13465 _ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469
13470 int
13471 main ()
13472 {
13473
13474 ;
13475 return 0;
13476 }
13477 _ACEOF
13478 rm -f conftest.$ac_objext
13479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13480 (eval $ac_compile) 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } &&
13487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest.$ac_objext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_prog_cxx_g=yes
13500 else
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13503
13504 ac_cv_prog_cxx_g=no
13505 fi
13506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13507 fi
13508 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13509 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13510 if test "$ac_test_CXXFLAGS" = set; then
13511 CXXFLAGS=$ac_save_CXXFLAGS
13512 elif test $ac_cv_prog_cxx_g = yes; then
13513 if test "$GXX" = yes; then
13514 CXXFLAGS="-g -O2"
13515 else
13516 CXXFLAGS="-g"
13517 fi
13518 else
13519 if test "$GXX" = yes; then
13520 CXXFLAGS="-O2"
13521 else
13522 CXXFLAGS=
13523 fi
13524 fi
13525 for ac_declaration in \
13526 '' \
13527 'extern "C" void std::exit (int) throw (); using std::exit;' \
13528 'extern "C" void std::exit (int); using std::exit;' \
13529 'extern "C" void exit (int) throw ();' \
13530 'extern "C" void exit (int);' \
13531 'void exit (int);'
13532 do
13533 cat >conftest.$ac_ext <<_ACEOF
13534 /* confdefs.h. */
13535 _ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 $ac_declaration
13540 #include <stdlib.h>
13541 int
13542 main ()
13543 {
13544 exit (42);
13545 ;
13546 return 0;
13547 }
13548 _ACEOF
13549 rm -f conftest.$ac_objext
13550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13551 (eval $ac_compile) 2>conftest.er1
13552 ac_status=$?
13553 grep -v '^ *+' conftest.er1 >conftest.err
13554 rm -f conftest.er1
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } &&
13558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; } &&
13564 { ac_try='test -s conftest.$ac_objext'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
13570 :
13571 else
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13574
13575 continue
13576 fi
13577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13578 cat >conftest.$ac_ext <<_ACEOF
13579 /* confdefs.h. */
13580 _ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13584 $ac_declaration
13585 int
13586 main ()
13587 {
13588 exit (42);
13589 ;
13590 return 0;
13591 }
13592 _ACEOF
13593 rm -f conftest.$ac_objext
13594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13595 (eval $ac_compile) 2>conftest.er1
13596 ac_status=$?
13597 grep -v '^ *+' conftest.er1 >conftest.err
13598 rm -f conftest.er1
13599 cat conftest.err >&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } &&
13602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try='test -s conftest.$ac_objext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 break
13615 else
13616 echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13618
13619 fi
13620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13621 done
13622 rm -f conftest*
13623 if test -n "$ac_declaration"; then
13624 echo '#ifdef __cplusplus' >>confdefs.h
13625 echo $ac_declaration >>confdefs.h
13626 echo '#endif' >>confdefs.h
13627 fi
13628
13629 ac_ext=cc
13630 ac_cpp='$CXXCPP $CPPFLAGS'
13631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13634
13635
13636
13637 ac_ext=cc
13638 ac_cpp='$CXXCPP $CPPFLAGS'
13639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13642
13643 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13644 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13645 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13647 else
13648 cat >conftest.$ac_ext <<_ACEOF
13649 /* confdefs.h. */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13654
13655 int
13656 main ()
13657 {
13658
13659 #ifndef __INTEL_COMPILER
13660 choke me
13661 #endif
13662
13663 ;
13664 return 0;
13665 }
13666 _ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13669 (eval $ac_compile) 2>conftest.er1
13670 ac_status=$?
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
13676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest.$ac_objext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13689 else
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13694
13695 fi
13696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13697
13698
13699 fi
13700 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13701 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13702 ac_ext=cc
13703 ac_cpp='$CXXCPP $CPPFLAGS'
13704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13707
13708 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13709 :; INTELCXX=yes
13710 else
13711 :;
13712 fi
13713
13714
13715 if test "x$GCXX" != "xyes"; then
13716 if test "xCXX" = "xC"; then
13717 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
13718 echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
13719 if test "${bakefile_cv_cxx_exto+set}" = set; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 else
13722 cat >conftest.$ac_ext <<_ACEOF
13723 /* confdefs.h. */
13724 _ACEOF
13725 cat confdefs.h >>conftest.$ac_ext
13726 cat >>conftest.$ac_ext <<_ACEOF
13727 /* end confdefs.h. */
13728
13729 int
13730 main ()
13731 {
13732
13733 ;
13734 return 0;
13735 }
13736 _ACEOF
13737 rm -f conftest.$ac_objext conftest.$ac_ext.o
13738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739 (eval $ac_compile) 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; then
13743 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13744 case $ac_file in
13745 conftest.$ac_ext.o)
13746 bakefile_cv_cxx_exto="-ext o"
13747 ;;
13748 *)
13749 ;;
13750 esac
13751 done
13752 else
13753 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13754 See \`config.log' for more details." >&5
13755 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13756 See \`config.log' for more details." >&2;}
13757 { (exit 1); exit 1; }; }
13758
13759 fi
13760
13761 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13762
13763 fi
13764 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13765 echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13766 if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
13767 if test "cxx" = "c"; then
13768 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
13769 fi
13770 if test "cxx" = "cxx"; then
13771 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
13772 fi
13773 fi
13774
13775 if test "x$bakefile_cv_c_exto" '!=' "x"; then
13776 unset ac_cv_prog_cc_g
13777 ac_test_CFLAGS=${CFLAGS+set}
13778 ac_save_CFLAGS=$CFLAGS
13779 CFLAGS="-g"
13780 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13782 if test "${ac_cv_prog_cc_g+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785 cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h. */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791
13792 int
13793 main ()
13794 {
13795
13796 ;
13797 return 0;
13798 }
13799 _ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13802 (eval $ac_compile) 2>conftest.er1
13803 ac_status=$?
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
13809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest.$ac_objext'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_cv_prog_cc_g=yes
13822 else
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13825
13826 ac_cv_prog_cc_g=no
13827 fi
13828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13829 fi
13830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13831 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13832 if test "$ac_test_CFLAGS" = set; then
13833 CFLAGS=$ac_save_CFLAGS
13834 elif test $ac_cv_prog_cc_g = yes; then
13835 if test "$GCC" = yes; then
13836 CFLAGS="-g -O2"
13837 else
13838 CFLAGS="-g"
13839 fi
13840 else
13841 if test "$GCC" = yes; then
13842 CFLAGS="-O2"
13843 else
13844 CFLAGS=
13845 fi
13846 fi
13847 fi
13848 fi
13849
13850 case `uname -s` in
13851 AIX*)
13852 ac_ext=cc
13853 ac_cpp='$CXXCPP $CPPFLAGS'
13854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13857
13858 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13859 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
13860 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 else
13863 cat >conftest.$ac_ext <<_ACEOF
13864 /* confdefs.h. */
13865 _ACEOF
13866 cat confdefs.h >>conftest.$ac_ext
13867 cat >>conftest.$ac_ext <<_ACEOF
13868 /* end confdefs.h. */
13869
13870 int
13871 main ()
13872 {
13873 #ifndef __xlC__
13874 choke me
13875 #endif
13876
13877 ;
13878 return 0;
13879 }
13880 _ACEOF
13881 rm -f conftest.$ac_objext
13882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13883 (eval $ac_compile) 2>conftest.er1
13884 ac_status=$?
13885 grep -v '^ *+' conftest.er1 >conftest.err
13886 rm -f conftest.er1
13887 cat conftest.err >&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } &&
13890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest.$ac_objext'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 bakefile_compiler_xlc=yes
13903 else
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907 bakefile_compiler_xlc=no
13908 fi
13909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13910 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
13911
13912 fi
13913 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13914 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
13915
13916 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
13917 ac_ext=cc
13918 ac_cpp='$CXXCPP $CPPFLAGS'
13919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13922
13923
13924 ;;
13925
13926 Darwin)
13927 ac_ext=cc
13928 ac_cpp='$CXXCPP $CPPFLAGS'
13929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13932
13933 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13934 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13935 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13937 else
13938 cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h. */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944
13945 int
13946 main ()
13947 {
13948 #ifndef __MWERKS__
13949 choke me
13950 #endif
13951
13952 ;
13953 return 0;
13954 }
13955 _ACEOF
13956 rm -f conftest.$ac_objext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; } &&
13971 { ac_try='test -s conftest.$ac_objext'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13977 bakefile_compiler_mwerks=yes
13978 else
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13981
13982 bakefile_compiler_mwerks=no
13983 fi
13984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13985 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13986
13987 fi
13988 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13989 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13990
13991 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
13992 ac_ext=cc
13993 ac_cpp='$CXXCPP $CPPFLAGS'
13994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13997
13998
13999 ac_ext=cc
14000 ac_cpp='$CXXCPP $CPPFLAGS'
14001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14004
14005 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14006 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14007 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010 cat >conftest.$ac_ext <<_ACEOF
14011 /* confdefs.h. */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016
14017 int
14018 main ()
14019 {
14020 #ifndef __xlC__
14021 choke me
14022 #endif
14023
14024 ;
14025 return 0;
14026 }
14027 _ACEOF
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030 (eval $ac_compile) 2>conftest.er1
14031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
14037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; } &&
14043 { ac_try='test -s conftest.$ac_objext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14046 ac_status=$?
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14049 bakefile_compiler_xlc=yes
14050 else
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054 bakefile_compiler_xlc=no
14055 fi
14056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14057 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14058
14059 fi
14060 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14061 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14062
14063 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14064 ac_ext=cc
14065 ac_cpp='$CXXCPP $CPPFLAGS'
14066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14069
14070
14071 ;;
14072
14073 IRIX*)
14074
14075
14076 ac_ext=cc
14077 ac_cpp='$CXXCPP $CPPFLAGS'
14078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14081
14082 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14083 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14084 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087 cat >conftest.$ac_ext <<_ACEOF
14088 /* confdefs.h. */
14089 _ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14093
14094 int
14095 main ()
14096 {
14097
14098 #ifndef _SGI_COMPILER_VERSION
14099 choke me
14100 #endif
14101
14102 ;
14103 return 0;
14104 }
14105 _ACEOF
14106 rm -f conftest.$ac_objext
14107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14108 (eval $ac_compile) 2>conftest.er1
14109 ac_status=$?
14110 grep -v '^ *+' conftest.er1 >conftest.err
14111 rm -f conftest.er1
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } &&
14115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; } &&
14121 { ac_try='test -s conftest.$ac_objext'
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; }; then
14127 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14128 else
14129 echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14133
14134 fi
14135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14136
14137
14138 fi
14139 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14140 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14141 ac_ext=cc
14142 ac_cpp='$CXXCPP $CPPFLAGS'
14143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14146
14147 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14148 :; SGICXX=yes
14149 else
14150 :;
14151 fi
14152
14153
14154 ;;
14155
14156 HP-UX*)
14157
14158
14159 ac_ext=cc
14160 ac_cpp='$CXXCPP $CPPFLAGS'
14161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14164
14165 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14166 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14167 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 else
14170 cat >conftest.$ac_ext <<_ACEOF
14171 /* confdefs.h. */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14176
14177 int
14178 main ()
14179 {
14180
14181 #ifndef __HP_aCC
14182 choke me
14183 #endif
14184
14185 ;
14186 return 0;
14187 }
14188 _ACEOF
14189 rm -f conftest.$ac_objext
14190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14191 (eval $ac_compile) 2>conftest.er1
14192 ac_status=$?
14193 grep -v '^ *+' conftest.er1 >conftest.err
14194 rm -f conftest.er1
14195 cat conftest.err >&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; } &&
14204 { ac_try='test -s conftest.$ac_objext'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 bakefile_cv_cxx_compiler___HP_aCC=yes
14211 else
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14214
14215 bakefile_cv_cxx_compiler___HP_aCC=no
14216
14217 fi
14218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14219
14220
14221 fi
14222 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14223 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
14224 ac_ext=cc
14225 ac_cpp='$CXXCPP $CPPFLAGS'
14226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14229
14230 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14231 :; HPCXX=yes
14232 else
14233 :;
14234 fi
14235
14236
14237 ;;
14238
14239 OSF1)
14240
14241
14242 ac_ext=cc
14243 ac_cpp='$CXXCPP $CPPFLAGS'
14244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14247
14248 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14249 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14250 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 else
14253 cat >conftest.$ac_ext <<_ACEOF
14254 /* confdefs.h. */
14255 _ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259
14260 int
14261 main ()
14262 {
14263
14264 #ifndef __DECCXX
14265 choke me
14266 #endif
14267
14268 ;
14269 return 0;
14270 }
14271 _ACEOF
14272 rm -f conftest.$ac_objext
14273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14274 (eval $ac_compile) 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
14281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest.$ac_objext'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 bakefile_cv_cxx_compiler___DECCXX=yes
14294 else
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14297
14298 bakefile_cv_cxx_compiler___DECCXX=no
14299
14300 fi
14301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14302
14303
14304 fi
14305 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14306 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
14307 ac_ext=cc
14308 ac_cpp='$CXXCPP $CPPFLAGS'
14309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14312
14313 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14314 :; COMPAQCXX=yes
14315 else
14316 :;
14317 fi
14318
14319
14320 ;;
14321
14322 SunOS)
14323
14324
14325 ac_ext=cc
14326 ac_cpp='$CXXCPP $CPPFLAGS'
14327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14330
14331 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14332 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14333 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336 cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h. */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342
14343 int
14344 main ()
14345 {
14346
14347 #ifndef __SUNPRO_CC
14348 choke me
14349 #endif
14350
14351 ;
14352 return 0;
14353 }
14354 _ACEOF
14355 rm -f conftest.$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14377 else
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14380
14381 bakefile_cv_cxx_compiler___SUNPRO_CC=no
14382
14383 fi
14384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14385
14386
14387 fi
14388 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14389 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14390 ac_ext=cc
14391 ac_cpp='$CXXCPP $CPPFLAGS'
14392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14395
14396 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14397 :; SUNCXX=yes
14398 else
14399 :;
14400 fi
14401
14402
14403 ;;
14404 esac
14405 fi
14406
14407
14408
14409 if test -n "$ac_tool_prefix"; then
14410 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14411 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14412 echo "$as_me:$LINENO: checking for $ac_word" >&5
14413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14414 if test "${ac_cv_prog_RANLIB+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 else
14417 if test -n "$RANLIB"; then
14418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14419 else
14420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421 for as_dir in $PATH
14422 do
14423 IFS=$as_save_IFS
14424 test -z "$as_dir" && as_dir=.
14425 for ac_exec_ext in '' $ac_executable_extensions; do
14426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14427 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14429 break 2
14430 fi
14431 done
14432 done
14433
14434 fi
14435 fi
14436 RANLIB=$ac_cv_prog_RANLIB
14437 if test -n "$RANLIB"; then
14438 echo "$as_me:$LINENO: result: $RANLIB" >&5
14439 echo "${ECHO_T}$RANLIB" >&6
14440 else
14441 echo "$as_me:$LINENO: result: no" >&5
14442 echo "${ECHO_T}no" >&6
14443 fi
14444
14445 fi
14446 if test -z "$ac_cv_prog_RANLIB"; then
14447 ac_ct_RANLIB=$RANLIB
14448 # Extract the first word of "ranlib", so it can be a program name with args.
14449 set dummy ranlib; ac_word=$2
14450 echo "$as_me:$LINENO: checking for $ac_word" >&5
14451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14452 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 if test -n "$ac_ct_RANLIB"; then
14456 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14457 else
14458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14459 for as_dir in $PATH
14460 do
14461 IFS=$as_save_IFS
14462 test -z "$as_dir" && as_dir=.
14463 for ac_exec_ext in '' $ac_executable_extensions; do
14464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14465 ac_cv_prog_ac_ct_RANLIB="ranlib"
14466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14467 break 2
14468 fi
14469 done
14470 done
14471
14472 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14473 fi
14474 fi
14475 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14476 if test -n "$ac_ct_RANLIB"; then
14477 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14478 echo "${ECHO_T}$ac_ct_RANLIB" >&6
14479 else
14480 echo "$as_me:$LINENO: result: no" >&5
14481 echo "${ECHO_T}no" >&6
14482 fi
14483
14484 RANLIB=$ac_ct_RANLIB
14485 else
14486 RANLIB="$ac_cv_prog_RANLIB"
14487 fi
14488
14489
14490 if test -n "$ac_tool_prefix"; then
14491 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14492 set dummy ${ac_tool_prefix}ar; ac_word=$2
14493 echo "$as_me:$LINENO: checking for $ac_word" >&5
14494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14495 if test "${ac_cv_prog_AR+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 else
14498 if test -n "$AR"; then
14499 ac_cv_prog_AR="$AR" # Let the user override the test.
14500 else
14501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14502 for as_dir in $PATH
14503 do
14504 IFS=$as_save_IFS
14505 test -z "$as_dir" && as_dir=.
14506 for ac_exec_ext in '' $ac_executable_extensions; do
14507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14508 ac_cv_prog_AR="${ac_tool_prefix}ar"
14509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14510 break 2
14511 fi
14512 done
14513 done
14514
14515 fi
14516 fi
14517 AR=$ac_cv_prog_AR
14518 if test -n "$AR"; then
14519 echo "$as_me:$LINENO: result: $AR" >&5
14520 echo "${ECHO_T}$AR" >&6
14521 else
14522 echo "$as_me:$LINENO: result: no" >&5
14523 echo "${ECHO_T}no" >&6
14524 fi
14525
14526 fi
14527 if test -z "$ac_cv_prog_AR"; then
14528 ac_ct_AR=$AR
14529 # Extract the first word of "ar", so it can be a program name with args.
14530 set dummy ar; ac_word=$2
14531 echo "$as_me:$LINENO: checking for $ac_word" >&5
14532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14533 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14535 else
14536 if test -n "$ac_ct_AR"; then
14537 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14538 else
14539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14540 for as_dir in $PATH
14541 do
14542 IFS=$as_save_IFS
14543 test -z "$as_dir" && as_dir=.
14544 for ac_exec_ext in '' $ac_executable_extensions; do
14545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14546 ac_cv_prog_ac_ct_AR="ar"
14547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14548 break 2
14549 fi
14550 done
14551 done
14552
14553 fi
14554 fi
14555 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14556 if test -n "$ac_ct_AR"; then
14557 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14558 echo "${ECHO_T}$ac_ct_AR" >&6
14559 else
14560 echo "$as_me:$LINENO: result: no" >&5
14561 echo "${ECHO_T}no" >&6
14562 fi
14563
14564 AR=$ac_ct_AR
14565 else
14566 AR="$ac_cv_prog_AR"
14567 fi
14568
14569 if test "x$AR" = "x" ; then
14570 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14571 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
14572 { (exit 1); exit 1; }; }
14573 fi
14574
14575 # Find a good install program. We prefer a C program (faster),
14576 # so one script is as good as another. But avoid the broken or
14577 # incompatible versions:
14578 # SysV /etc/install, /usr/sbin/install
14579 # SunOS /usr/etc/install
14580 # IRIX /sbin/install
14581 # AIX /bin/install
14582 # AmigaOS /C/install, which installs bootblocks on floppy discs
14583 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14584 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14585 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14586 # OS/2's system install, which has a completely different semantic
14587 # ./install, which can be erroneously created by make from ./install.sh.
14588 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14589 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14590 if test -z "$INSTALL"; then
14591 if test "${ac_cv_path_install+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 else
14594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14595 for as_dir in $PATH
14596 do
14597 IFS=$as_save_IFS
14598 test -z "$as_dir" && as_dir=.
14599 # Account for people who put trailing slashes in PATH elements.
14600 case $as_dir/ in
14601 ./ | .// | /cC/* | \
14602 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14603 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14604 /usr/ucb/* ) ;;
14605 *)
14606 # OSF1 and SCO ODT 3.0 have their own names for install.
14607 # Don't use installbsd from OSF since it installs stuff as root
14608 # by default.
14609 for ac_prog in ginstall scoinst install; do
14610 for ac_exec_ext in '' $ac_executable_extensions; do
14611 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14612 if test $ac_prog = install &&
14613 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14614 # AIX install. It has an incompatible calling convention.
14615 :
14616 elif test $ac_prog = install &&
14617 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14618 # program-specific install script used by HP pwplus--don't use.
14619 :
14620 else
14621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14622 break 3
14623 fi
14624 fi
14625 done
14626 done
14627 ;;
14628 esac
14629 done
14630
14631
14632 fi
14633 if test "${ac_cv_path_install+set}" = set; then
14634 INSTALL=$ac_cv_path_install
14635 else
14636 # As a last resort, use the slow shell script. We don't cache a
14637 # path for INSTALL within a source directory, because that will
14638 # break other packages using the cache if that directory is
14639 # removed, or if the path is relative.
14640 INSTALL=$ac_install_sh
14641 fi
14642 fi
14643 echo "$as_me:$LINENO: result: $INSTALL" >&5
14644 echo "${ECHO_T}$INSTALL" >&6
14645
14646 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14647 # It thinks the first close brace ends the variable substitution.
14648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14649
14650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14651
14652 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14653
14654
14655 case ${INSTALL} in
14656 /* ) # Absolute
14657 ;;
14658 ?:* ) # Drive letter, considered as absolute.
14659 ;;
14660 *)
14661 INSTALL=`pwd`/${INSTALL} ;;
14662 esac
14663
14664
14665 case "${host}" in
14666
14667 *-*-darwin* )
14668 INSTALL_PROGRAM="cp -fp"
14669 INSTALL_DATA="cp -fp"
14670 ;;
14671 *)
14672 ;;
14673 esac
14674
14675 if test -n "$ac_tool_prefix"; then
14676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14677 set dummy ${ac_tool_prefix}strip; ac_word=$2
14678 echo "$as_me:$LINENO: checking for $ac_word" >&5
14679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14680 if test "${ac_cv_prog_STRIP+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 else
14683 if test -n "$STRIP"; then
14684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14685 else
14686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14687 for as_dir in $PATH
14688 do
14689 IFS=$as_save_IFS
14690 test -z "$as_dir" && as_dir=.
14691 for ac_exec_ext in '' $ac_executable_extensions; do
14692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14693 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14695 break 2
14696 fi
14697 done
14698 done
14699
14700 fi
14701 fi
14702 STRIP=$ac_cv_prog_STRIP
14703 if test -n "$STRIP"; then
14704 echo "$as_me:$LINENO: result: $STRIP" >&5
14705 echo "${ECHO_T}$STRIP" >&6
14706 else
14707 echo "$as_me:$LINENO: result: no" >&5
14708 echo "${ECHO_T}no" >&6
14709 fi
14710
14711 fi
14712 if test -z "$ac_cv_prog_STRIP"; then
14713 ac_ct_STRIP=$STRIP
14714 # Extract the first word of "strip", so it can be a program name with args.
14715 set dummy strip; ac_word=$2
14716 echo "$as_me:$LINENO: checking for $ac_word" >&5
14717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14720 else
14721 if test -n "$ac_ct_STRIP"; then
14722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14723 else
14724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14725 for as_dir in $PATH
14726 do
14727 IFS=$as_save_IFS
14728 test -z "$as_dir" && as_dir=.
14729 for ac_exec_ext in '' $ac_executable_extensions; do
14730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14731 ac_cv_prog_ac_ct_STRIP="strip"
14732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14733 break 2
14734 fi
14735 done
14736 done
14737
14738 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14739 fi
14740 fi
14741 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14742 if test -n "$ac_ct_STRIP"; then
14743 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14744 echo "${ECHO_T}$ac_ct_STRIP" >&6
14745 else
14746 echo "$as_me:$LINENO: result: no" >&5
14747 echo "${ECHO_T}no" >&6
14748 fi
14749
14750 STRIP=$ac_ct_STRIP
14751 else
14752 STRIP="$ac_cv_prog_STRIP"
14753 fi
14754
14755
14756 if test "$wxUSE_WINE" = "yes"; then
14757 if test -n "$ac_tool_prefix"; then
14758 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14759 set dummy ${ac_tool_prefix}wrc; ac_word=$2
14760 echo "$as_me:$LINENO: checking for $ac_word" >&5
14761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14762 if test "${ac_cv_prog_WINDRES+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 else
14765 if test -n "$WINDRES"; then
14766 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14767 else
14768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14769 for as_dir in $PATH
14770 do
14771 IFS=$as_save_IFS
14772 test -z "$as_dir" && as_dir=.
14773 for ac_exec_ext in '' $ac_executable_extensions; do
14774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14775 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
14776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14777 break 2
14778 fi
14779 done
14780 done
14781
14782 fi
14783 fi
14784 WINDRES=$ac_cv_prog_WINDRES
14785 if test -n "$WINDRES"; then
14786 echo "$as_me:$LINENO: result: $WINDRES" >&5
14787 echo "${ECHO_T}$WINDRES" >&6
14788 else
14789 echo "$as_me:$LINENO: result: no" >&5
14790 echo "${ECHO_T}no" >&6
14791 fi
14792
14793 fi
14794 if test -z "$ac_cv_prog_WINDRES"; then
14795 ac_ct_WINDRES=$WINDRES
14796 # Extract the first word of "wrc", so it can be a program name with args.
14797 set dummy wrc; ac_word=$2
14798 echo "$as_me:$LINENO: checking for $ac_word" >&5
14799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14800 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 else
14803 if test -n "$ac_ct_WINDRES"; then
14804 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14805 else
14806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807 for as_dir in $PATH
14808 do
14809 IFS=$as_save_IFS
14810 test -z "$as_dir" && as_dir=.
14811 for ac_exec_ext in '' $ac_executable_extensions; do
14812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14813 ac_cv_prog_ac_ct_WINDRES="wrc"
14814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14815 break 2
14816 fi
14817 done
14818 done
14819
14820 fi
14821 fi
14822 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14823 if test -n "$ac_ct_WINDRES"; then
14824 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14825 echo "${ECHO_T}$ac_ct_WINDRES" >&6
14826 else
14827 echo "$as_me:$LINENO: result: no" >&5
14828 echo "${ECHO_T}no" >&6
14829 fi
14830
14831 WINDRES=$ac_ct_WINDRES
14832 else
14833 WINDRES="$ac_cv_prog_WINDRES"
14834 fi
14835
14836 RESCOMP="$WINDRES"
14837 else
14838 case "${host}" in
14839 *-*-cygwin* | *-*-mingw32* )
14840 if test -n "$ac_tool_prefix"; then
14841 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14842 set dummy ${ac_tool_prefix}windres; ac_word=$2
14843 echo "$as_me:$LINENO: checking for $ac_word" >&5
14844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14845 if test "${ac_cv_prog_WINDRES+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848 if test -n "$WINDRES"; then
14849 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14850 else
14851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14852 for as_dir in $PATH
14853 do
14854 IFS=$as_save_IFS
14855 test -z "$as_dir" && as_dir=.
14856 for ac_exec_ext in '' $ac_executable_extensions; do
14857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14858 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14860 break 2
14861 fi
14862 done
14863 done
14864
14865 fi
14866 fi
14867 WINDRES=$ac_cv_prog_WINDRES
14868 if test -n "$WINDRES"; then
14869 echo "$as_me:$LINENO: result: $WINDRES" >&5
14870 echo "${ECHO_T}$WINDRES" >&6
14871 else
14872 echo "$as_me:$LINENO: result: no" >&5
14873 echo "${ECHO_T}no" >&6
14874 fi
14875
14876 fi
14877 if test -z "$ac_cv_prog_WINDRES"; then
14878 ac_ct_WINDRES=$WINDRES
14879 # Extract the first word of "windres", so it can be a program name with args.
14880 set dummy windres; ac_word=$2
14881 echo "$as_me:$LINENO: checking for $ac_word" >&5
14882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14883 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886 if test -n "$ac_ct_WINDRES"; then
14887 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14888 else
14889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14890 for as_dir in $PATH
14891 do
14892 IFS=$as_save_IFS
14893 test -z "$as_dir" && as_dir=.
14894 for ac_exec_ext in '' $ac_executable_extensions; do
14895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14896 ac_cv_prog_ac_ct_WINDRES="windres"
14897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14898 break 2
14899 fi
14900 done
14901 done
14902
14903 fi
14904 fi
14905 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14906 if test -n "$ac_ct_WINDRES"; then
14907 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14908 echo "${ECHO_T}$ac_ct_WINDRES" >&6
14909 else
14910 echo "$as_me:$LINENO: result: no" >&5
14911 echo "${ECHO_T}no" >&6
14912 fi
14913
14914 WINDRES=$ac_ct_WINDRES
14915 else
14916 WINDRES="$ac_cv_prog_WINDRES"
14917 fi
14918
14919 RESCOMP="$WINDRES"
14920 if test -n "$ac_tool_prefix"; then
14921 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14922 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14923 echo "$as_me:$LINENO: checking for $ac_word" >&5
14924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14925 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 else
14928 if test -n "$DLLTOOL"; then
14929 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14930 else
14931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14932 for as_dir in $PATH
14933 do
14934 IFS=$as_save_IFS
14935 test -z "$as_dir" && as_dir=.
14936 for ac_exec_ext in '' $ac_executable_extensions; do
14937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14938 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14940 break 2
14941 fi
14942 done
14943 done
14944
14945 fi
14946 fi
14947 DLLTOOL=$ac_cv_prog_DLLTOOL
14948 if test -n "$DLLTOOL"; then
14949 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14950 echo "${ECHO_T}$DLLTOOL" >&6
14951 else
14952 echo "$as_me:$LINENO: result: no" >&5
14953 echo "${ECHO_T}no" >&6
14954 fi
14955
14956 fi
14957 if test -z "$ac_cv_prog_DLLTOOL"; then
14958 ac_ct_DLLTOOL=$DLLTOOL
14959 # Extract the first word of "dlltool", so it can be a program name with args.
14960 set dummy dlltool; ac_word=$2
14961 echo "$as_me:$LINENO: checking for $ac_word" >&5
14962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14963 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966 if test -n "$ac_ct_DLLTOOL"; then
14967 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14968 else
14969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14970 for as_dir in $PATH
14971 do
14972 IFS=$as_save_IFS
14973 test -z "$as_dir" && as_dir=.
14974 for ac_exec_ext in '' $ac_executable_extensions; do
14975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14976 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14978 break 2
14979 fi
14980 done
14981 done
14982
14983 fi
14984 fi
14985 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14986 if test -n "$ac_ct_DLLTOOL"; then
14987 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14988 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14989 else
14990 echo "$as_me:$LINENO: result: no" >&5
14991 echo "${ECHO_T}no" >&6
14992 fi
14993
14994 DLLTOOL=$ac_ct_DLLTOOL
14995 else
14996 DLLTOOL="$ac_cv_prog_DLLTOOL"
14997 fi
14998
14999 ;;
15000 esac
15001 fi
15002
15003 echo "$as_me:$LINENO: checking if make is GNU make" >&5
15004 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15005 if test "${wx_cv_prog_makeisgnu+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 else
15008
15009 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15010 egrep -s GNU > /dev/null); then
15011 wx_cv_prog_makeisgnu="yes"
15012 else
15013 wx_cv_prog_makeisgnu="no"
15014 fi
15015
15016 fi
15017 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15018 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15019
15020 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15021 IF_GNU_MAKE=""
15022 else
15023 IF_GNU_MAKE="#"
15024 fi
15025
15026
15027
15028 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15029 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15030 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15031 if test "${wx_cv_prog_makevpath+set}" = set; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 else
15034
15035 cat - << EOF > confMake
15036 check : file
15037 cp \$? \$@
15038 cp \$? final_file
15039 EOF
15040
15041 if test ! -d sub ; then
15042 mkdir sub
15043 fi
15044 echo dummy > sub/file
15045 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15046 RESULT=$?
15047 rm -f sub/file check final_file confMake
15048 rmdir sub
15049 if test "$RESULT" = 0; then
15050 wx_cv_prog_makevpath="yes"
15051 else
15052 wx_cv_prog_makevpath="no"
15053 fi
15054
15055 fi
15056 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15057 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15058
15059 if test "x$wx_cv_prog_makevpath" != "xyes"; then
15060 { { echo "$as_me:$LINENO: error:
15061 You need a make-utility that is able to use the variable
15062 VPATH correctly.
15063 If your version of make does not support VPATH correctly,
15064 please install GNU-make (possibly as gmake), and start
15065 configure with the following command:
15066 export MAKE=gmake; ./configure for sh-type shells
15067 setenv MAKE gmake; ./configure for csh-type shells
15068 Also please do remember to use gmake in this case every time
15069 you are trying to compile.
15070 " >&5
15071 echo "$as_me: error:
15072 You need a make-utility that is able to use the variable
15073 VPATH correctly.
15074 If your version of make does not support VPATH correctly,
15075 please install GNU-make (possibly as gmake), and start
15076 configure with the following command:
15077 export MAKE=gmake; ./configure for sh-type shells
15078 setenv MAKE gmake; ./configure for csh-type shells
15079 Also please do remember to use gmake in this case every time
15080 you are trying to compile.
15081 " >&2;}
15082 { (exit 1); exit 1; }; }
15083 fi fi
15084 echo "$as_me:$LINENO: checking whether ln -s works" >&5
15085 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15086 LN_S=$as_ln_s
15087 if test "$LN_S" = "ln -s"; then
15088 echo "$as_me:$LINENO: result: yes" >&5
15089 echo "${ECHO_T}yes" >&6
15090 else
15091 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15092 echo "${ECHO_T}no, using $LN_S" >&6
15093 fi
15094
15095
15096
15097
15098 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
15099 CXXFLAGS="-qunique $CXXFLAGS"
15100 fi
15101
15102 case "${host}" in
15103 powerpc-*-darwin* )
15104 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15105 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15106 cat >conftest.$ac_ext <<_ACEOF
15107 /* confdefs.h. */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15112
15113 int
15114 main ()
15115 {
15116 #ifndef __POWERPC__
15117 choke me for lack of PowerPC
15118 #endif
15119
15120 ;
15121 return 0;
15122 }
15123 _ACEOF
15124 rm -f conftest.$ac_objext
15125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15126 (eval $ac_compile) 2>conftest.er1
15127 ac_status=$?
15128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
15133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; } &&
15139 { ac_try='test -s conftest.$ac_objext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 echo "$as_me:$LINENO: result: yes" >&5
15146 echo "${ECHO_T}yes" >&6
15147 else
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15150
15151 echo "$as_me:$LINENO: result: no" >&5
15152 echo "${ECHO_T}no" >&6
15153 cat >>confdefs.h <<\_ACEOF
15154 #define __POWERPC__ 1
15155 _ACEOF
15156
15157
15158 fi
15159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15160 ;;
15161 esac
15162
15163 case "${host}" in
15164 *-*-darwin* )
15165 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15166 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15167 cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h. */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 #include <CoreFoundation/CFBase.h>
15174
15175 int
15176 main ()
15177 {
15178
15179 ;
15180 return 0;
15181 }
15182 _ACEOF
15183 rm -f conftest.$ac_objext
15184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15185 (eval $ac_compile) 2>conftest.er1
15186 ac_status=$?
15187 grep -v '^ *+' conftest.er1 >conftest.err
15188 rm -f conftest.er1
15189 cat conftest.err >&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); } &&
15192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; } &&
15198 { ac_try='test -s conftest.$ac_objext'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 echo "$as_me:$LINENO: result: yes" >&5
15205 echo "${ECHO_T}yes" >&6
15206 else
15207 echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15209
15210 echo "$as_me:$LINENO: result: no" >&5
15211 echo "${ECHO_T}no" >&6
15212 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15213 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15214 cat >conftest.$ac_ext <<_ACEOF
15215 /* confdefs.h. */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15220 #define __CF_USE_FRAMEWORK_INCLUDES__
15221 #include <CoreFoundation/CFBase.h>
15222
15223 int
15224 main ()
15225 {
15226
15227 ;
15228 return 0;
15229 }
15230 _ACEOF
15231 rm -f conftest.$ac_objext
15232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15233 (eval $ac_compile) 2>conftest.er1
15234 ac_status=$?
15235 grep -v '^ *+' conftest.er1 >conftest.err
15236 rm -f conftest.er1
15237 cat conftest.err >&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } &&
15240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; } &&
15246 { ac_try='test -s conftest.$ac_objext'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15252 echo "$as_me:$LINENO: result: yes" >&5
15253 echo "${ECHO_T}yes" >&6
15254 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
15255 else
15256 echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15258
15259 { { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15260 See \`config.log' for more details." >&5
15261 echo "$as_me: error: no. CoreFoundation not available.
15262 See \`config.log' for more details." >&2;}
15263 { (exit 1); exit 1; }; }
15264
15265 fi
15266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15267
15268
15269 fi
15270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15271 ;;
15272 esac
15273
15274 case "${host}" in
15275 *-pc-os2_emx | *-pc-os2-emx )
15276 ac_ext=c
15277 ac_cpp='$CPP $CPPFLAGS'
15278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15281
15282 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15283 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15284 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15285 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288 ac_check_lib_save_LIBS=$LIBS
15289 LIBS="-lcExt $LIBS"
15290 cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h. */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296
15297 /* Override any gcc2 internal prototype to avoid an error. */
15298 #ifdef __cplusplus
15299 extern "C"
15300 #endif
15301 /* We use char because int might match the return type of a gcc2
15302 builtin and then its argument prototype would still apply. */
15303 char drand48 ();
15304 int
15305 main ()
15306 {
15307 drand48 ();
15308 ;
15309 return 0;
15310 }
15311 _ACEOF
15312 rm -f conftest.$ac_objext conftest$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314 (eval $ac_link) 2>conftest.er1
15315 ac_status=$?
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; } &&
15327 { ac_try='test -s conftest$ac_exeext'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_cv_lib_cExt_drand48=yes
15334 else
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15337
15338 ac_cv_lib_cExt_drand48=no
15339 fi
15340 rm -f conftest.err conftest.$ac_objext \
15341 conftest$ac_exeext conftest.$ac_ext
15342 LIBS=$ac_check_lib_save_LIBS
15343 fi
15344 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15345 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15346 if test $ac_cv_lib_cExt_drand48 = yes; then
15347 LIBS="$LIBS -lcExt"
15348 fi
15349
15350 else
15351 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15352 fi
15353 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15354 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
15355 if test "${wx_cv_gccversion+set}" = set; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 else
15358
15359 if test "$cross_compiling" = yes; then
15360 wx_cv_gccversion="EMX2"
15361
15362 else
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h. */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369
15370 #include <stdio.h>
15371
15372 int main()
15373 {
15374 FILE *f=fopen("conftestval", "w");
15375 if (!f) exit(1);
15376 fprintf(f,
15377 #if (__GNUC__ < 3)
15378 "EMX2"
15379 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15380 "EMX3"
15381 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15382 "Innotek5"
15383 #else
15384 "Innotek6"
15385 #endif
15386 );
15387 exit(0);
15388 }
15389
15390 _ACEOF
15391 rm -f conftest$ac_exeext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15393 (eval $ac_link) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 wx_cv_gccversion=`cat conftestval`
15403 else
15404 echo "$as_me: program exited with status $ac_status" >&5
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15407
15408 ( exit $ac_status )
15409 wx_cv_gccversion="EMX2"
15410 fi
15411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15412 fi
15413
15414 fi
15415 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15416 echo "${ECHO_T}$wx_cv_gccversion" >&6
15417 ac_ext=cc
15418 ac_cpp='$CXXCPP $CPPFLAGS'
15419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15422
15423 if test "$wx_cv_gccversion" = "EMX2"; then
15424 LIBS="$LIBS -lstdcpp"
15425 LDFLAGS="$LDFLAGS -Zsysv-signals"
15426 else
15427 if test "$wx_cv_gccversion" = "EMX3"; then
15428 LIBS="$LIBS -lstdcxx -lgcc"
15429 LDFLAGS="$LDFLAGS -Zsysv-signals"
15430 else
15431 LIBS="$LIBS -lstdc++"
15432 fi
15433 fi
15434 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15435 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15436 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15437 wxUSE_OMF=yes
15438 enable_omf=yes
15439 fi
15440 ;;
15441 *)
15442
15443 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
15444 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15445 if test "${ac_cv_string_strcasecmp+set}" = set; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15447 else
15448
15449 cat >conftest.$ac_ext <<_ACEOF
15450 /* confdefs.h. */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15455
15456 #include <string.h>
15457
15458 int
15459 main ()
15460 {
15461
15462 strcasecmp("foo", "bar");
15463
15464 ;
15465 return 0;
15466 }
15467 _ACEOF
15468 rm -f conftest.$ac_objext conftest$ac_exeext
15469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15470 (eval $ac_link) 2>conftest.er1
15471 ac_status=$?
15472 grep -v '^ *+' conftest.er1 >conftest.err
15473 rm -f conftest.er1
15474 cat conftest.err >&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } &&
15477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; } &&
15483 { ac_try='test -s conftest$ac_exeext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 ac_cv_string_strcasecmp=yes
15490 else
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494 ac_cv_string_strcasecmp=no
15495
15496 fi
15497 rm -f conftest.err conftest.$ac_objext \
15498 conftest$ac_exeext conftest.$ac_ext
15499
15500 fi
15501 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15502 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15503
15504 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15505 cat >>confdefs.h <<\_ACEOF
15506 #define HAVE_STRCASECMP_IN_STRING_H 1
15507 _ACEOF
15508
15509 else
15510 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15511 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15512 if test "${ac_cv_strings_strcasecmp+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 else
15515
15516 cat >conftest.$ac_ext <<_ACEOF
15517 /* confdefs.h. */
15518 _ACEOF
15519 cat confdefs.h >>conftest.$ac_ext
15520 cat >>conftest.$ac_ext <<_ACEOF
15521 /* end confdefs.h. */
15522
15523 #include <strings.h>
15524
15525 int
15526 main ()
15527 {
15528
15529 strcasecmp("foo", "bar");
15530
15531 ;
15532 return 0;
15533 }
15534 _ACEOF
15535 rm -f conftest.$ac_objext conftest$ac_exeext
15536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15537 (eval $ac_link) 2>conftest.er1
15538 ac_status=$?
15539 grep -v '^ *+' conftest.er1 >conftest.err
15540 rm -f conftest.er1
15541 cat conftest.err >&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } &&
15544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; } &&
15550 { ac_try='test -s conftest$ac_exeext'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_cv_strings_strcasecmp=yes
15557 else
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15560
15561 ac_cv_strings_strcasecmp=no
15562
15563 fi
15564 rm -f conftest.err conftest.$ac_objext \
15565 conftest$ac_exeext conftest.$ac_ext
15566
15567 fi
15568 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15569 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15570
15571 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
15572 cat >>confdefs.h <<\_ACEOF
15573 #define HAVE_STRCASECMP_IN_STRINGS_H 1
15574 _ACEOF
15575
15576 else
15577 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15578 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15579 { (exit 1); exit 1; }; }
15580 fi
15581 fi
15582
15583 ;;
15584 esac
15585
15586
15587 ac_ext=cc
15588 ac_cpp='$CXXCPP $CPPFLAGS'
15589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15592 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15593 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15594 if test -z "$CXXCPP"; then
15595 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15597 else
15598 # Double quotes because CXXCPP needs to be expanded
15599 for CXXCPP in "$CXX -E" "/lib/cpp"
15600 do
15601 ac_preproc_ok=false
15602 for ac_cxx_preproc_warn_flag in '' yes
15603 do
15604 # Use a header file that comes with gcc, so configuring glibc
15605 # with a fresh cross-compiler works.
15606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15607 # <limits.h> exists even on freestanding compilers.
15608 # On the NeXT, cc -E runs the code through the compiler's parser,
15609 # not just through cpp. "Syntax error" is here to catch this case.
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h. */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 #ifdef __STDC__
15617 # include <limits.h>
15618 #else
15619 # include <assert.h>
15620 #endif
15621 Syntax error
15622 _ACEOF
15623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15625 ac_status=$?
15626 grep -v '^ *+' conftest.er1 >conftest.err
15627 rm -f conftest.er1
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } >/dev/null; then
15631 if test -s conftest.err; then
15632 ac_cpp_err=$ac_cxx_preproc_warn_flag
15633 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15634 else
15635 ac_cpp_err=
15636 fi
15637 else
15638 ac_cpp_err=yes
15639 fi
15640 if test -z "$ac_cpp_err"; then
15641 :
15642 else
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15645
15646 # Broken: fails on valid input.
15647 continue
15648 fi
15649 rm -f conftest.err conftest.$ac_ext
15650
15651 # OK, works on sane cases. Now check whether non-existent headers
15652 # can be detected and how.
15653 cat >conftest.$ac_ext <<_ACEOF
15654 /* confdefs.h. */
15655 _ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h. */
15659 #include <ac_nonexistent.h>
15660 _ACEOF
15661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15663 ac_status=$?
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } >/dev/null; then
15669 if test -s conftest.err; then
15670 ac_cpp_err=$ac_cxx_preproc_warn_flag
15671 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15672 else
15673 ac_cpp_err=
15674 fi
15675 else
15676 ac_cpp_err=yes
15677 fi
15678 if test -z "$ac_cpp_err"; then
15679 # Broken: success on invalid input.
15680 continue
15681 else
15682 echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15684
15685 # Passes both tests.
15686 ac_preproc_ok=:
15687 break
15688 fi
15689 rm -f conftest.err conftest.$ac_ext
15690
15691 done
15692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15693 rm -f conftest.err conftest.$ac_ext
15694 if $ac_preproc_ok; then
15695 break
15696 fi
15697
15698 done
15699 ac_cv_prog_CXXCPP=$CXXCPP
15700
15701 fi
15702 CXXCPP=$ac_cv_prog_CXXCPP
15703 else
15704 ac_cv_prog_CXXCPP=$CXXCPP
15705 fi
15706 echo "$as_me:$LINENO: result: $CXXCPP" >&5
15707 echo "${ECHO_T}$CXXCPP" >&6
15708 ac_preproc_ok=false
15709 for ac_cxx_preproc_warn_flag in '' yes
15710 do
15711 # Use a header file that comes with gcc, so configuring glibc
15712 # with a fresh cross-compiler works.
15713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15714 # <limits.h> exists even on freestanding compilers.
15715 # On the NeXT, cc -E runs the code through the compiler's parser,
15716 # not just through cpp. "Syntax error" is here to catch this case.
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h. */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 #ifdef __STDC__
15724 # include <limits.h>
15725 #else
15726 # include <assert.h>
15727 #endif
15728 Syntax error
15729 _ACEOF
15730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } >/dev/null; then
15738 if test -s conftest.err; then
15739 ac_cpp_err=$ac_cxx_preproc_warn_flag
15740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15741 else
15742 ac_cpp_err=
15743 fi
15744 else
15745 ac_cpp_err=yes
15746 fi
15747 if test -z "$ac_cpp_err"; then
15748 :
15749 else
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 # Broken: fails on valid input.
15754 continue
15755 fi
15756 rm -f conftest.err conftest.$ac_ext
15757
15758 # OK, works on sane cases. Now check whether non-existent headers
15759 # can be detected and how.
15760 cat >conftest.$ac_ext <<_ACEOF
15761 /* confdefs.h. */
15762 _ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h. */
15766 #include <ac_nonexistent.h>
15767 _ACEOF
15768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15770 ac_status=$?
15771 grep -v '^ *+' conftest.er1 >conftest.err
15772 rm -f conftest.er1
15773 cat conftest.err >&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } >/dev/null; then
15776 if test -s conftest.err; then
15777 ac_cpp_err=$ac_cxx_preproc_warn_flag
15778 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15779 else
15780 ac_cpp_err=
15781 fi
15782 else
15783 ac_cpp_err=yes
15784 fi
15785 if test -z "$ac_cpp_err"; then
15786 # Broken: success on invalid input.
15787 continue
15788 else
15789 echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15791
15792 # Passes both tests.
15793 ac_preproc_ok=:
15794 break
15795 fi
15796 rm -f conftest.err conftest.$ac_ext
15797
15798 done
15799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15800 rm -f conftest.err conftest.$ac_ext
15801 if $ac_preproc_ok; then
15802 :
15803 else
15804 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15805 See \`config.log' for more details." >&5
15806 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15807 See \`config.log' for more details." >&2;}
15808 { (exit 1); exit 1; }; }
15809 fi
15810
15811 ac_ext=cc
15812 ac_cpp='$CXXCPP $CPPFLAGS'
15813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15816
15817
15818 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15819 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15820 if test "${ac_cv_header_stdc+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 else
15823 cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h. */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15829 #include <stdlib.h>
15830 #include <stdarg.h>
15831 #include <string.h>
15832 #include <float.h>
15833
15834 int
15835 main ()
15836 {
15837
15838 ;
15839 return 0;
15840 }
15841 _ACEOF
15842 rm -f conftest.$ac_objext
15843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15844 (eval $ac_compile) 2>conftest.er1
15845 ac_status=$?
15846 grep -v '^ *+' conftest.er1 >conftest.err
15847 rm -f conftest.er1
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
15851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; } &&
15857 { ac_try='test -s conftest.$ac_objext'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; }; then
15863 ac_cv_header_stdc=yes
15864 else
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15867
15868 ac_cv_header_stdc=no
15869 fi
15870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15871
15872 if test $ac_cv_header_stdc = yes; then
15873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h. */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15880 #include <string.h>
15881
15882 _ACEOF
15883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15884 $EGREP "memchr" >/dev/null 2>&1; then
15885 :
15886 else
15887 ac_cv_header_stdc=no
15888 fi
15889 rm -f conftest*
15890
15891 fi
15892
15893 if test $ac_cv_header_stdc = yes; then
15894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15895 cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h. */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 #include <stdlib.h>
15902
15903 _ACEOF
15904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15905 $EGREP "free" >/dev/null 2>&1; then
15906 :
15907 else
15908 ac_cv_header_stdc=no
15909 fi
15910 rm -f conftest*
15911
15912 fi
15913
15914 if test $ac_cv_header_stdc = yes; then
15915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15916 if test "$cross_compiling" = yes; then
15917 :
15918 else
15919 cat >conftest.$ac_ext <<_ACEOF
15920 /* confdefs.h. */
15921 _ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 #include <ctype.h>
15926 #if ((' ' & 0x0FF) == 0x020)
15927 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15928 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15929 #else
15930 # define ISLOWER(c) \
15931 (('a' <= (c) && (c) <= 'i') \
15932 || ('j' <= (c) && (c) <= 'r') \
15933 || ('s' <= (c) && (c) <= 'z'))
15934 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15935 #endif
15936
15937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15938 int
15939 main ()
15940 {
15941 int i;
15942 for (i = 0; i < 256; i++)
15943 if (XOR (islower (i), ISLOWER (i))
15944 || toupper (i) != TOUPPER (i))
15945 exit(2);
15946 exit (0);
15947 }
15948 _ACEOF
15949 rm -f conftest$ac_exeext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 :
15961 else
15962 echo "$as_me: program exited with status $ac_status" >&5
15963 echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15965
15966 ( exit $ac_status )
15967 ac_cv_header_stdc=no
15968 fi
15969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15970 fi
15971 fi
15972 fi
15973 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15974 echo "${ECHO_T}$ac_cv_header_stdc" >&6
15975 if test $ac_cv_header_stdc = yes; then
15976
15977 cat >>confdefs.h <<\_ACEOF
15978 #define STDC_HEADERS 1
15979 _ACEOF
15980
15981 fi
15982
15983 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
15994 inttypes.h stdint.h unistd.h
15995 do
15996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15997 echo "$as_me:$LINENO: checking for $ac_header" >&5
15998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 else
16002 cat >conftest.$ac_ext <<_ACEOF
16003 /* confdefs.h. */
16004 _ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 $ac_includes_default
16009
16010 #include <$ac_header>
16011 _ACEOF
16012 rm -f conftest.$ac_objext
16013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16014 (eval $ac_compile) 2>conftest.er1
16015 ac_status=$?
16016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } &&
16021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; } &&
16027 { ac_try='test -s conftest.$ac_objext'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 eval "$as_ac_Header=yes"
16034 else
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16037
16038 eval "$as_ac_Header=no"
16039 fi
16040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16041 fi
16042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16045 cat >>confdefs.h <<_ACEOF
16046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16047 _ACEOF
16048
16049 fi
16050
16051 done
16052
16053
16054
16055 for ac_header in stdlib.h
16056 do
16057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16059 echo "$as_me:$LINENO: checking for $ac_header" >&5
16060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 fi
16064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16066 else
16067 # Is the header compilable?
16068 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16070 cat >conftest.$ac_ext <<_ACEOF
16071 /* confdefs.h. */
16072 _ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h. */
16076 $ac_includes_default
16077 #include <$ac_header>
16078 _ACEOF
16079 rm -f conftest.$ac_objext
16080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16081 (eval $ac_compile) 2>conftest.er1
16082 ac_status=$?
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090 (eval $ac_try) 2>&5
16091 ac_status=$?
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; } &&
16094 { ac_try='test -s conftest.$ac_objext'
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 ac_header_compiler=yes
16101 else
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105 ac_header_compiler=no
16106 fi
16107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16109 echo "${ECHO_T}$ac_header_compiler" >&6
16110
16111 # Is the header present?
16112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16114 cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h. */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 #include <$ac_header>
16121 _ACEOF
16122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16124 ac_status=$?
16125 grep -v '^ *+' conftest.er1 >conftest.err
16126 rm -f conftest.er1
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } >/dev/null; then
16130 if test -s conftest.err; then
16131 ac_cpp_err=$ac_cxx_preproc_warn_flag
16132 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16133 else
16134 ac_cpp_err=
16135 fi
16136 else
16137 ac_cpp_err=yes
16138 fi
16139 if test -z "$ac_cpp_err"; then
16140 ac_header_preproc=yes
16141 else
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145 ac_header_preproc=no
16146 fi
16147 rm -f conftest.err conftest.$ac_ext
16148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16149 echo "${ECHO_T}$ac_header_preproc" >&6
16150
16151 # So? What about this header?
16152 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16153 yes:no: )
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16158 ac_header_preproc=yes
16159 ;;
16160 no:yes:* )
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16173 (
16174 cat <<\_ASBOX
16175 ## ----------------------------------------- ##
16176 ## Report this to wx-dev@lists.wxwidgets.org ##
16177 ## ----------------------------------------- ##
16178 _ASBOX
16179 ) |
16180 sed "s/^/$as_me: WARNING: /" >&2
16181 ;;
16182 esac
16183 echo "$as_me:$LINENO: checking for $ac_header" >&5
16184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 else
16188 eval "$as_ac_Header=\$ac_header_preproc"
16189 fi
16190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16192
16193 fi
16194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16195 cat >>confdefs.h <<_ACEOF
16196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16197 _ACEOF
16198
16199 fi
16200
16201 done
16202
16203
16204 for ac_header in malloc.h
16205 do
16206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16208 echo "$as_me:$LINENO: checking for $ac_header" >&5
16209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 fi
16213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16215 else
16216 # Is the header compilable?
16217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16219 cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h. */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16225 $ac_includes_default
16226 #include <$ac_header>
16227 _ACEOF
16228 rm -f conftest.$ac_objext
16229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16230 (eval $ac_compile) 2>conftest.er1
16231 ac_status=$?
16232 grep -v '^ *+' conftest.er1 >conftest.err
16233 rm -f conftest.er1
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } &&
16237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16240 ac_status=$?
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; } &&
16243 { ac_try='test -s conftest.$ac_objext'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
16249 ac_header_compiler=yes
16250 else
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16253
16254 ac_header_compiler=no
16255 fi
16256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16258 echo "${ECHO_T}$ac_header_compiler" >&6
16259
16260 # Is the header present?
16261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16263 cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h. */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16269 #include <$ac_header>
16270 _ACEOF
16271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16273 ac_status=$?
16274 grep -v '^ *+' conftest.er1 >conftest.err
16275 rm -f conftest.er1
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } >/dev/null; then
16279 if test -s conftest.err; then
16280 ac_cpp_err=$ac_cxx_preproc_warn_flag
16281 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16282 else
16283 ac_cpp_err=
16284 fi
16285 else
16286 ac_cpp_err=yes
16287 fi
16288 if test -z "$ac_cpp_err"; then
16289 ac_header_preproc=yes
16290 else
16291 echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.$ac_ext >&5
16293
16294 ac_header_preproc=no
16295 fi
16296 rm -f conftest.err conftest.$ac_ext
16297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16298 echo "${ECHO_T}$ac_header_preproc" >&6
16299
16300 # So? What about this header?
16301 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16302 yes:no: )
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16307 ac_header_preproc=yes
16308 ;;
16309 no:yes:* )
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16322 (
16323 cat <<\_ASBOX
16324 ## ----------------------------------------- ##
16325 ## Report this to wx-dev@lists.wxwidgets.org ##
16326 ## ----------------------------------------- ##
16327 _ASBOX
16328 ) |
16329 sed "s/^/$as_me: WARNING: /" >&2
16330 ;;
16331 esac
16332 echo "$as_me:$LINENO: checking for $ac_header" >&5
16333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16335 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 else
16337 eval "$as_ac_Header=\$ac_header_preproc"
16338 fi
16339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16341
16342 fi
16343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16344 cat >>confdefs.h <<_ACEOF
16345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16346 _ACEOF
16347
16348 fi
16349
16350 done
16351
16352
16353 for ac_header in unistd.h
16354 do
16355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16357 echo "$as_me:$LINENO: checking for $ac_header" >&5
16358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 fi
16362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16364 else
16365 # Is the header compilable?
16366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h. */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 $ac_includes_default
16375 #include <$ac_header>
16376 _ACEOF
16377 rm -f conftest.$ac_objext
16378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16379 (eval $ac_compile) 2>conftest.er1
16380 ac_status=$?
16381 grep -v '^ *+' conftest.er1 >conftest.err
16382 rm -f conftest.er1
16383 cat conftest.err >&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } &&
16386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; } &&
16392 { ac_try='test -s conftest.$ac_objext'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16395 ac_status=$?
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 ac_header_compiler=yes
16399 else
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16402
16403 ac_header_compiler=no
16404 fi
16405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16407 echo "${ECHO_T}$ac_header_compiler" >&6
16408
16409 # Is the header present?
16410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16412 cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h. */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 #include <$ac_header>
16419 _ACEOF
16420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16422 ac_status=$?
16423 grep -v '^ *+' conftest.er1 >conftest.err
16424 rm -f conftest.er1
16425 cat conftest.err >&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } >/dev/null; then
16428 if test -s conftest.err; then
16429 ac_cpp_err=$ac_cxx_preproc_warn_flag
16430 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16431 else
16432 ac_cpp_err=
16433 fi
16434 else
16435 ac_cpp_err=yes
16436 fi
16437 if test -z "$ac_cpp_err"; then
16438 ac_header_preproc=yes
16439 else
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443 ac_header_preproc=no
16444 fi
16445 rm -f conftest.err conftest.$ac_ext
16446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16447 echo "${ECHO_T}$ac_header_preproc" >&6
16448
16449 # So? What about this header?
16450 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16451 yes:no: )
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16456 ac_header_preproc=yes
16457 ;;
16458 no:yes:* )
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16471 (
16472 cat <<\_ASBOX
16473 ## ----------------------------------------- ##
16474 ## Report this to wx-dev@lists.wxwidgets.org ##
16475 ## ----------------------------------------- ##
16476 _ASBOX
16477 ) |
16478 sed "s/^/$as_me: WARNING: /" >&2
16479 ;;
16480 esac
16481 echo "$as_me:$LINENO: checking for $ac_header" >&5
16482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 else
16486 eval "$as_ac_Header=\$ac_header_preproc"
16487 fi
16488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16490
16491 fi
16492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16493 cat >>confdefs.h <<_ACEOF
16494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16495 _ACEOF
16496
16497 fi
16498
16499 done
16500
16501
16502 for ac_header in wchar.h
16503 do
16504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16506 echo "$as_me:$LINENO: checking for $ac_header" >&5
16507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 fi
16511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16513 else
16514 # Is the header compilable?
16515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16517 cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h. */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16523 $ac_includes_default
16524 #include <$ac_header>
16525 _ACEOF
16526 rm -f conftest.$ac_objext
16527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16528 (eval $ac_compile) 2>conftest.er1
16529 ac_status=$?
16530 grep -v '^ *+' conftest.er1 >conftest.err
16531 rm -f conftest.er1
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; } &&
16541 { ac_try='test -s conftest.$ac_objext'
16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5
16544 ac_status=$?
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; }; then
16547 ac_header_compiler=yes
16548 else
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16551
16552 ac_header_compiler=no
16553 fi
16554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16556 echo "${ECHO_T}$ac_header_compiler" >&6
16557
16558 # Is the header present?
16559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16561 cat >conftest.$ac_ext <<_ACEOF
16562 /* confdefs.h. */
16563 _ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16567 #include <$ac_header>
16568 _ACEOF
16569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16571 ac_status=$?
16572 grep -v '^ *+' conftest.er1 >conftest.err
16573 rm -f conftest.er1
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } >/dev/null; then
16577 if test -s conftest.err; then
16578 ac_cpp_err=$ac_cxx_preproc_warn_flag
16579 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16580 else
16581 ac_cpp_err=
16582 fi
16583 else
16584 ac_cpp_err=yes
16585 fi
16586 if test -z "$ac_cpp_err"; then
16587 ac_header_preproc=yes
16588 else
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16591
16592 ac_header_preproc=no
16593 fi
16594 rm -f conftest.err conftest.$ac_ext
16595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16596 echo "${ECHO_T}$ac_header_preproc" >&6
16597
16598 # So? What about this header?
16599 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16600 yes:no: )
16601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16605 ac_header_preproc=yes
16606 ;;
16607 no:yes:* )
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16620 (
16621 cat <<\_ASBOX
16622 ## ----------------------------------------- ##
16623 ## Report this to wx-dev@lists.wxwidgets.org ##
16624 ## ----------------------------------------- ##
16625 _ASBOX
16626 ) |
16627 sed "s/^/$as_me: WARNING: /" >&2
16628 ;;
16629 esac
16630 echo "$as_me:$LINENO: checking for $ac_header" >&5
16631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635 eval "$as_ac_Header=\$ac_header_preproc"
16636 fi
16637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16639
16640 fi
16641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16642 cat >>confdefs.h <<_ACEOF
16643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16644 _ACEOF
16645
16646 fi
16647
16648 done
16649
16650
16651 if test "$ac_cv_header_wchar_h" != "yes"; then
16652
16653 for ac_header in wcstr.h
16654 do
16655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16657 echo "$as_me:$LINENO: checking for $ac_header" >&5
16658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16661 fi
16662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16664 else
16665 # Is the header compilable?
16666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16668 cat >conftest.$ac_ext <<_ACEOF
16669 /* confdefs.h. */
16670 _ACEOF
16671 cat confdefs.h >>conftest.$ac_ext
16672 cat >>conftest.$ac_ext <<_ACEOF
16673 /* end confdefs.h. */
16674 $ac_includes_default
16675 #include <$ac_header>
16676 _ACEOF
16677 rm -f conftest.$ac_objext
16678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16679 (eval $ac_compile) 2>conftest.er1
16680 ac_status=$?
16681 grep -v '^ *+' conftest.er1 >conftest.err
16682 rm -f conftest.er1
16683 cat conftest.err >&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); } &&
16686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; } &&
16692 { ac_try='test -s conftest.$ac_objext'
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16698 ac_header_compiler=yes
16699 else
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16702
16703 ac_header_compiler=no
16704 fi
16705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16707 echo "${ECHO_T}$ac_header_compiler" >&6
16708
16709 # Is the header present?
16710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16712 cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h. */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 #include <$ac_header>
16719 _ACEOF
16720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16722 ac_status=$?
16723 grep -v '^ *+' conftest.er1 >conftest.err
16724 rm -f conftest.er1
16725 cat conftest.err >&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } >/dev/null; then
16728 if test -s conftest.err; then
16729 ac_cpp_err=$ac_cxx_preproc_warn_flag
16730 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16731 else
16732 ac_cpp_err=
16733 fi
16734 else
16735 ac_cpp_err=yes
16736 fi
16737 if test -z "$ac_cpp_err"; then
16738 ac_header_preproc=yes
16739 else
16740 echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16742
16743 ac_header_preproc=no
16744 fi
16745 rm -f conftest.err conftest.$ac_ext
16746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16747 echo "${ECHO_T}$ac_header_preproc" >&6
16748
16749 # So? What about this header?
16750 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16751 yes:no: )
16752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16756 ac_header_preproc=yes
16757 ;;
16758 no:yes:* )
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16771 (
16772 cat <<\_ASBOX
16773 ## ----------------------------------------- ##
16774 ## Report this to wx-dev@lists.wxwidgets.org ##
16775 ## ----------------------------------------- ##
16776 _ASBOX
16777 ) |
16778 sed "s/^/$as_me: WARNING: /" >&2
16779 ;;
16780 esac
16781 echo "$as_me:$LINENO: checking for $ac_header" >&5
16782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 else
16786 eval "$as_ac_Header=\$ac_header_preproc"
16787 fi
16788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16790
16791 fi
16792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16793 cat >>confdefs.h <<_ACEOF
16794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16795 _ACEOF
16796
16797 fi
16798
16799 done
16800
16801 fi
16802
16803
16804 for ac_header in fnmatch.h
16805 do
16806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16808 echo "$as_me:$LINENO: checking for $ac_header" >&5
16809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16812 fi
16813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16815 else
16816 # Is the header compilable?
16817 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16819 cat >conftest.$ac_ext <<_ACEOF
16820 /* confdefs.h. */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 $ac_includes_default
16826 #include <$ac_header>
16827 _ACEOF
16828 rm -f conftest.$ac_objext
16829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16830 (eval $ac_compile) 2>conftest.er1
16831 ac_status=$?
16832 grep -v '^ *+' conftest.er1 >conftest.err
16833 rm -f conftest.er1
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest.$ac_objext'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 ac_header_compiler=yes
16850 else
16851 echo "$as_me: failed program was:" >&5
16852 sed 's/^/| /' conftest.$ac_ext >&5
16853
16854 ac_header_compiler=no
16855 fi
16856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16858 echo "${ECHO_T}$ac_header_compiler" >&6
16859
16860 # Is the header present?
16861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16863 cat >conftest.$ac_ext <<_ACEOF
16864 /* confdefs.h. */
16865 _ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16869 #include <$ac_header>
16870 _ACEOF
16871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16873 ac_status=$?
16874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } >/dev/null; then
16879 if test -s conftest.err; then
16880 ac_cpp_err=$ac_cxx_preproc_warn_flag
16881 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16882 else
16883 ac_cpp_err=
16884 fi
16885 else
16886 ac_cpp_err=yes
16887 fi
16888 if test -z "$ac_cpp_err"; then
16889 ac_header_preproc=yes
16890 else
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16893
16894 ac_header_preproc=no
16895 fi
16896 rm -f conftest.err conftest.$ac_ext
16897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16898 echo "${ECHO_T}$ac_header_preproc" >&6
16899
16900 # So? What about this header?
16901 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16902 yes:no: )
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16907 ac_header_preproc=yes
16908 ;;
16909 no:yes:* )
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16922 (
16923 cat <<\_ASBOX
16924 ## ----------------------------------------- ##
16925 ## Report this to wx-dev@lists.wxwidgets.org ##
16926 ## ----------------------------------------- ##
16927 _ASBOX
16928 ) |
16929 sed "s/^/$as_me: WARNING: /" >&2
16930 ;;
16931 esac
16932 echo "$as_me:$LINENO: checking for $ac_header" >&5
16933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 else
16937 eval "$as_ac_Header=\$ac_header_preproc"
16938 fi
16939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16941
16942 fi
16943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16944 cat >>confdefs.h <<_ACEOF
16945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16946 _ACEOF
16947
16948 fi
16949
16950 done
16951
16952
16953
16954 for ac_header in langinfo.h
16955 do
16956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16958 echo "$as_me:$LINENO: checking for $ac_header" >&5
16959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962 fi
16963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16965 else
16966 # Is the header compilable?
16967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16969 cat >conftest.$ac_ext <<_ACEOF
16970 /* confdefs.h. */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h. */
16975 $ac_includes_default
16976 #include <$ac_header>
16977 _ACEOF
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980 (eval $ac_compile) 2>conftest.er1
16981 ac_status=$?
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest.$ac_objext'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_header_compiler=yes
17000 else
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17003
17004 ac_header_compiler=no
17005 fi
17006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17008 echo "${ECHO_T}$ac_header_compiler" >&6
17009
17010 # Is the header present?
17011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17013 cat >conftest.$ac_ext <<_ACEOF
17014 /* confdefs.h. */
17015 _ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 #include <$ac_header>
17020 _ACEOF
17021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17023 ac_status=$?
17024 grep -v '^ *+' conftest.er1 >conftest.err
17025 rm -f conftest.er1
17026 cat conftest.err >&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } >/dev/null; then
17029 if test -s conftest.err; then
17030 ac_cpp_err=$ac_cxx_preproc_warn_flag
17031 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17032 else
17033 ac_cpp_err=
17034 fi
17035 else
17036 ac_cpp_err=yes
17037 fi
17038 if test -z "$ac_cpp_err"; then
17039 ac_header_preproc=yes
17040 else
17041 echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17043
17044 ac_header_preproc=no
17045 fi
17046 rm -f conftest.err conftest.$ac_ext
17047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17048 echo "${ECHO_T}$ac_header_preproc" >&6
17049
17050 # So? What about this header?
17051 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17052 yes:no: )
17053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17057 ac_header_preproc=yes
17058 ;;
17059 no:yes:* )
17060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17072 (
17073 cat <<\_ASBOX
17074 ## ----------------------------------------- ##
17075 ## Report this to wx-dev@lists.wxwidgets.org ##
17076 ## ----------------------------------------- ##
17077 _ASBOX
17078 ) |
17079 sed "s/^/$as_me: WARNING: /" >&2
17080 ;;
17081 esac
17082 echo "$as_me:$LINENO: checking for $ac_header" >&5
17083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17086 else
17087 eval "$as_ac_Header=\$ac_header_preproc"
17088 fi
17089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17091
17092 fi
17093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17094 cat >>confdefs.h <<_ACEOF
17095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17096 _ACEOF
17097
17098 fi
17099
17100 done
17101
17102
17103 case "${host}" in
17104 *-pc-os2_emx | *-pc-os2-emx )
17105 if test $ac_cv_header_langinfo_h = "yes" \
17106 -a \( "$wx_cv_gccversion" = "EMX2" \
17107 -o "$wx_cv_gccversion" = "EMX3" \
17108 -o "$wx_cv_gccversion" = "Innotek5" \); then
17109 LIBS="$LIBS -lintl"
17110 fi
17111 ;;
17112 esac
17113
17114
17115 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17116 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17117 if test "${ac_cv_c_const+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120 cat >conftest.$ac_ext <<_ACEOF
17121 /* confdefs.h. */
17122 _ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h. */
17126
17127 int
17128 main ()
17129 {
17130 /* FIXME: Include the comments suggested by Paul. */
17131 #ifndef __cplusplus
17132 /* Ultrix mips cc rejects this. */
17133 typedef int charset[2];
17134 const charset x;
17135 /* SunOS 4.1.1 cc rejects this. */
17136 char const *const *ccp;
17137 char **p;
17138 /* NEC SVR4.0.2 mips cc rejects this. */
17139 struct point {int x, y;};
17140 static struct point const zero = {0,0};
17141 /* AIX XL C 1.02.0.0 rejects this.
17142 It does not let you subtract one const X* pointer from another in
17143 an arm of an if-expression whose if-part is not a constant
17144 expression */
17145 const char *g = "string";
17146 ccp = &g + (g ? g-g : 0);
17147 /* HPUX 7.0 cc rejects these. */
17148 ++ccp;
17149 p = (char**) ccp;
17150 ccp = (char const *const *) p;
17151 { /* SCO 3.2v4 cc rejects this. */
17152 char *t;
17153 char const *s = 0 ? (char *) 0 : (char const *) 0;
17154
17155 *t++ = 0;
17156 }
17157 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17158 int x[] = {25, 17};
17159 const int *foo = &x[0];
17160 ++foo;
17161 }
17162 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17163 typedef const int *iptr;
17164 iptr p = 0;
17165 ++p;
17166 }
17167 { /* AIX XL C 1.02.0.0 rejects this saying
17168 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17169 struct s { int j; const int *ap[3]; };
17170 struct s *b; b->j = 5;
17171 }
17172 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17173 const int foo = 10;
17174 }
17175 #endif
17176
17177 ;
17178 return 0;
17179 }
17180 _ACEOF
17181 rm -f conftest.$ac_objext
17182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17183 (eval $ac_compile) 2>conftest.er1
17184 ac_status=$?
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
17190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } &&
17196 { ac_try='test -s conftest.$ac_objext'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 ac_cv_c_const=yes
17203 else
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17206
17207 ac_cv_c_const=no
17208 fi
17209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17210 fi
17211 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17212 echo "${ECHO_T}$ac_cv_c_const" >&6
17213 if test $ac_cv_c_const = no; then
17214
17215 cat >>confdefs.h <<\_ACEOF
17216 #define const
17217 _ACEOF
17218
17219 fi
17220
17221 echo "$as_me:$LINENO: checking for inline" >&5
17222 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17223 if test "${ac_cv_c_inline+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226 ac_cv_c_inline=no
17227 for ac_kw in inline __inline__ __inline; do
17228 cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h. */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 #ifndef __cplusplus
17235 typedef int foo_t;
17236 static $ac_kw foo_t static_foo () {return 0; }
17237 $ac_kw foo_t foo () {return 0; }
17238 #endif
17239
17240 _ACEOF
17241 rm -f conftest.$ac_objext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243 (eval $ac_compile) 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest.$ac_objext'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; }; then
17262 ac_cv_c_inline=$ac_kw; break
17263 else
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17266
17267 fi
17268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17269 done
17270
17271 fi
17272 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17273 echo "${ECHO_T}$ac_cv_c_inline" >&6
17274
17275
17276 case $ac_cv_c_inline in
17277 inline | yes) ;;
17278 *)
17279 case $ac_cv_c_inline in
17280 no) ac_val=;;
17281 *) ac_val=$ac_cv_c_inline;;
17282 esac
17283 cat >>confdefs.h <<_ACEOF
17284 #ifndef __cplusplus
17285 #define inline $ac_val
17286 #endif
17287 _ACEOF
17288 ;;
17289 esac
17290
17291
17292 echo "$as_me:$LINENO: checking for char" >&5
17293 echo $ECHO_N "checking for char... $ECHO_C" >&6
17294 if test "${ac_cv_type_char+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h. */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 $ac_includes_default
17304 int
17305 main ()
17306 {
17307 if ((char *) 0)
17308 return 0;
17309 if (sizeof (char))
17310 return 0;
17311 ;
17312 return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17317 (eval $ac_compile) 2>conftest.er1
17318 ac_status=$?
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest.$ac_objext'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_cv_type_char=yes
17337 else
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17340
17341 ac_cv_type_char=no
17342 fi
17343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17344 fi
17345 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17346 echo "${ECHO_T}$ac_cv_type_char" >&6
17347
17348 echo "$as_me:$LINENO: checking size of char" >&5
17349 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17350 if test "${ac_cv_sizeof_char+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353 if test "$ac_cv_type_char" = yes; then
17354 # The cast to unsigned long works around a bug in the HP C Compiler
17355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17357 # This bug is HP SR number 8606223364.
17358 if test "$cross_compiling" = yes; then
17359 # Depending upon the size, compute the lo and hi bounds.
17360 cat >conftest.$ac_ext <<_ACEOF
17361 /* confdefs.h. */
17362 _ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17366 $ac_includes_default
17367 int
17368 main ()
17369 {
17370 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17371 test_array [0] = 0
17372
17373 ;
17374 return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext
17378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17379 (eval $ac_compile) 2>conftest.er1
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388 (eval $ac_try) 2>&5
17389 ac_status=$?
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; } &&
17392 { ac_try='test -s conftest.$ac_objext'
17393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17395 ac_status=$?
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); }; }; then
17398 ac_lo=0 ac_mid=0
17399 while :; do
17400 cat >conftest.$ac_ext <<_ACEOF
17401 /* confdefs.h. */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17406 $ac_includes_default
17407 int
17408 main ()
17409 {
17410 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17411 test_array [0] = 0
17412
17413 ;
17414 return 0;
17415 }
17416 _ACEOF
17417 rm -f conftest.$ac_objext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17419 (eval $ac_compile) 2>conftest.er1
17420 ac_status=$?
17421 grep -v '^ *+' conftest.er1 >conftest.err
17422 rm -f conftest.er1
17423 cat conftest.err >&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
17426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; } &&
17432 { ac_try='test -s conftest.$ac_objext'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_hi=$ac_mid; break
17439 else
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443 ac_lo=`expr $ac_mid + 1`
17444 if test $ac_lo -le $ac_mid; then
17445 ac_lo= ac_hi=
17446 break
17447 fi
17448 ac_mid=`expr 2 '*' $ac_mid + 1`
17449 fi
17450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17451 done
17452 else
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456 cat >conftest.$ac_ext <<_ACEOF
17457 /* confdefs.h. */
17458 _ACEOF
17459 cat confdefs.h >>conftest.$ac_ext
17460 cat >>conftest.$ac_ext <<_ACEOF
17461 /* end confdefs.h. */
17462 $ac_includes_default
17463 int
17464 main ()
17465 {
17466 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17467 test_array [0] = 0
17468
17469 ;
17470 return 0;
17471 }
17472 _ACEOF
17473 rm -f conftest.$ac_objext
17474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17475 (eval $ac_compile) 2>conftest.er1
17476 ac_status=$?
17477 grep -v '^ *+' conftest.er1 >conftest.err
17478 rm -f conftest.er1
17479 cat conftest.err >&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } &&
17482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; } &&
17488 { ac_try='test -s conftest.$ac_objext'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 ac_hi=-1 ac_mid=-1
17495 while :; do
17496 cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h. */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17502 $ac_includes_default
17503 int
17504 main ()
17505 {
17506 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17507 test_array [0] = 0
17508
17509 ;
17510 return 0;
17511 }
17512 _ACEOF
17513 rm -f conftest.$ac_objext
17514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17515 (eval $ac_compile) 2>conftest.er1
17516 ac_status=$?
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
17522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; } &&
17528 { ac_try='test -s conftest.$ac_objext'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; }; then
17534 ac_lo=$ac_mid; break
17535 else
17536 echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17538
17539 ac_hi=`expr '(' $ac_mid ')' - 1`
17540 if test $ac_mid -le $ac_hi; then
17541 ac_lo= ac_hi=
17542 break
17543 fi
17544 ac_mid=`expr 2 '*' $ac_mid`
17545 fi
17546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17547 done
17548 else
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17551
17552 ac_lo= ac_hi=
17553 fi
17554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17555 fi
17556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17557 # Binary search between lo and hi bounds.
17558 while test "x$ac_lo" != "x$ac_hi"; do
17559 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17560 cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h. */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 $ac_includes_default
17567 int
17568 main ()
17569 {
17570 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17571 test_array [0] = 0
17572
17573 ;
17574 return 0;
17575 }
17576 _ACEOF
17577 rm -f conftest.$ac_objext
17578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17579 (eval $ac_compile) 2>conftest.er1
17580 ac_status=$?
17581 grep -v '^ *+' conftest.er1 >conftest.err
17582 rm -f conftest.er1
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } &&
17586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; } &&
17592 { ac_try='test -s conftest.$ac_objext'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17598 ac_hi=$ac_mid
17599 else
17600 echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17602
17603 ac_lo=`expr '(' $ac_mid ')' + 1`
17604 fi
17605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17606 done
17607 case $ac_lo in
17608 ?*) ac_cv_sizeof_char=$ac_lo;;
17609 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17610 See \`config.log' for more details." >&5
17611 echo "$as_me: error: cannot compute sizeof (char), 77
17612 See \`config.log' for more details." >&2;}
17613 { (exit 1); exit 1; }; } ;;
17614 esac
17615 else
17616 if test "$cross_compiling" = yes; then
17617 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17618 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17619 { (exit 1); exit 1; }; }
17620 else
17621 cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h. */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17627 $ac_includes_default
17628 long longval () { return (long) (sizeof (char)); }
17629 unsigned long ulongval () { return (long) (sizeof (char)); }
17630 #include <stdio.h>
17631 #include <stdlib.h>
17632 int
17633 main ()
17634 {
17635
17636 FILE *f = fopen ("conftest.val", "w");
17637 if (! f)
17638 exit (1);
17639 if (((long) (sizeof (char))) < 0)
17640 {
17641 long i = longval ();
17642 if (i != ((long) (sizeof (char))))
17643 exit (1);
17644 fprintf (f, "%ld\n", i);
17645 }
17646 else
17647 {
17648 unsigned long i = ulongval ();
17649 if (i != ((long) (sizeof (char))))
17650 exit (1);
17651 fprintf (f, "%lu\n", i);
17652 }
17653 exit (ferror (f) || fclose (f) != 0);
17654
17655 ;
17656 return 0;
17657 }
17658 _ACEOF
17659 rm -f conftest$ac_exeext
17660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17661 (eval $ac_link) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17670 ac_cv_sizeof_char=`cat conftest.val`
17671 else
17672 echo "$as_me: program exited with status $ac_status" >&5
17673 echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17675
17676 ( exit $ac_status )
17677 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17678 See \`config.log' for more details." >&5
17679 echo "$as_me: error: cannot compute sizeof (char), 77
17680 See \`config.log' for more details." >&2;}
17681 { (exit 1); exit 1; }; }
17682 fi
17683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17684 fi
17685 fi
17686 rm -f conftest.val
17687 else
17688 ac_cv_sizeof_char=0
17689 fi
17690 fi
17691 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17692 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17693 cat >>confdefs.h <<_ACEOF
17694 #define SIZEOF_CHAR $ac_cv_sizeof_char
17695 _ACEOF
17696
17697
17698 echo "$as_me:$LINENO: checking for short" >&5
17699 echo $ECHO_N "checking for short... $ECHO_C" >&6
17700 if test "${ac_cv_type_short+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17702 else
17703 cat >conftest.$ac_ext <<_ACEOF
17704 /* confdefs.h. */
17705 _ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17709 $ac_includes_default
17710 int
17711 main ()
17712 {
17713 if ((short *) 0)
17714 return 0;
17715 if (sizeof (short))
17716 return 0;
17717 ;
17718 return 0;
17719 }
17720 _ACEOF
17721 rm -f conftest.$ac_objext
17722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17723 (eval $ac_compile) 2>conftest.er1
17724 ac_status=$?
17725 grep -v '^ *+' conftest.er1 >conftest.err
17726 rm -f conftest.er1
17727 cat conftest.err >&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); } &&
17730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732 (eval $ac_try) 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; } &&
17736 { ac_try='test -s conftest.$ac_objext'
17737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738 (eval $ac_try) 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; }; then
17742 ac_cv_type_short=yes
17743 else
17744 echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17746
17747 ac_cv_type_short=no
17748 fi
17749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17750 fi
17751 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17752 echo "${ECHO_T}$ac_cv_type_short" >&6
17753
17754 echo "$as_me:$LINENO: checking size of short" >&5
17755 echo $ECHO_N "checking size of short... $ECHO_C" >&6
17756 if test "${ac_cv_sizeof_short+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 else
17759 if test "$ac_cv_type_short" = yes; then
17760 # The cast to unsigned long works around a bug in the HP C Compiler
17761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17763 # This bug is HP SR number 8606223364.
17764 if test "$cross_compiling" = yes; then
17765 # Depending upon the size, compute the lo and hi bounds.
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h. */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 $ac_includes_default
17773 int
17774 main ()
17775 {
17776 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17777 test_array [0] = 0
17778
17779 ;
17780 return 0;
17781 }
17782 _ACEOF
17783 rm -f conftest.$ac_objext
17784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17785 (eval $ac_compile) 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } &&
17792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; } &&
17798 { ac_try='test -s conftest.$ac_objext'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 ac_lo=0 ac_mid=0
17805 while :; do
17806 cat >conftest.$ac_ext <<_ACEOF
17807 /* confdefs.h. */
17808 _ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 $ac_includes_default
17813 int
17814 main ()
17815 {
17816 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17817 test_array [0] = 0
17818
17819 ;
17820 return 0;
17821 }
17822 _ACEOF
17823 rm -f conftest.$ac_objext
17824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17825 (eval $ac_compile) 2>conftest.er1
17826 ac_status=$?
17827 grep -v '^ *+' conftest.er1 >conftest.err
17828 rm -f conftest.er1
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } &&
17832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest.$ac_objext'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_hi=$ac_mid; break
17845 else
17846 echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17848
17849 ac_lo=`expr $ac_mid + 1`
17850 if test $ac_lo -le $ac_mid; then
17851 ac_lo= ac_hi=
17852 break
17853 fi
17854 ac_mid=`expr 2 '*' $ac_mid + 1`
17855 fi
17856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17857 done
17858 else
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17861
17862 cat >conftest.$ac_ext <<_ACEOF
17863 /* confdefs.h. */
17864 _ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h. */
17868 $ac_includes_default
17869 int
17870 main ()
17871 {
17872 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17873 test_array [0] = 0
17874
17875 ;
17876 return 0;
17877 }
17878 _ACEOF
17879 rm -f conftest.$ac_objext
17880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17881 (eval $ac_compile) 2>conftest.er1
17882 ac_status=$?
17883 grep -v '^ *+' conftest.er1 >conftest.err
17884 rm -f conftest.er1
17885 cat conftest.err >&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
17888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17891 ac_status=$?
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; } &&
17894 { ac_try='test -s conftest.$ac_objext'
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; }; then
17900 ac_hi=-1 ac_mid=-1
17901 while :; do
17902 cat >conftest.$ac_ext <<_ACEOF
17903 /* confdefs.h. */
17904 _ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17908 $ac_includes_default
17909 int
17910 main ()
17911 {
17912 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17913 test_array [0] = 0
17914
17915 ;
17916 return 0;
17917 }
17918 _ACEOF
17919 rm -f conftest.$ac_objext
17920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17921 (eval $ac_compile) 2>conftest.er1
17922 ac_status=$?
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest.$ac_objext'
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_lo=$ac_mid; break
17941 else
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17944
17945 ac_hi=`expr '(' $ac_mid ')' - 1`
17946 if test $ac_mid -le $ac_hi; then
17947 ac_lo= ac_hi=
17948 break
17949 fi
17950 ac_mid=`expr 2 '*' $ac_mid`
17951 fi
17952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17953 done
17954 else
17955 echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17957
17958 ac_lo= ac_hi=
17959 fi
17960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17961 fi
17962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17963 # Binary search between lo and hi bounds.
17964 while test "x$ac_lo" != "x$ac_hi"; do
17965 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17966 cat >conftest.$ac_ext <<_ACEOF
17967 /* confdefs.h. */
17968 _ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h. */
17972 $ac_includes_default
17973 int
17974 main ()
17975 {
17976 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17977 test_array [0] = 0
17978
17979 ;
17980 return 0;
17981 }
17982 _ACEOF
17983 rm -f conftest.$ac_objext
17984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17985 (eval $ac_compile) 2>conftest.er1
17986 ac_status=$?
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
17992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest.$ac_objext'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 ac_hi=$ac_mid
18005 else
18006 echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009 ac_lo=`expr '(' $ac_mid ')' + 1`
18010 fi
18011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18012 done
18013 case $ac_lo in
18014 ?*) ac_cv_sizeof_short=$ac_lo;;
18015 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18016 See \`config.log' for more details." >&5
18017 echo "$as_me: error: cannot compute sizeof (short), 77
18018 See \`config.log' for more details." >&2;}
18019 { (exit 1); exit 1; }; } ;;
18020 esac
18021 else
18022 if test "$cross_compiling" = yes; then
18023 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18024 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18025 { (exit 1); exit 1; }; }
18026 else
18027 cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h. */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18033 $ac_includes_default
18034 long longval () { return (long) (sizeof (short)); }
18035 unsigned long ulongval () { return (long) (sizeof (short)); }
18036 #include <stdio.h>
18037 #include <stdlib.h>
18038 int
18039 main ()
18040 {
18041
18042 FILE *f = fopen ("conftest.val", "w");
18043 if (! f)
18044 exit (1);
18045 if (((long) (sizeof (short))) < 0)
18046 {
18047 long i = longval ();
18048 if (i != ((long) (sizeof (short))))
18049 exit (1);
18050 fprintf (f, "%ld\n", i);
18051 }
18052 else
18053 {
18054 unsigned long i = ulongval ();
18055 if (i != ((long) (sizeof (short))))
18056 exit (1);
18057 fprintf (f, "%lu\n", i);
18058 }
18059 exit (ferror (f) || fclose (f) != 0);
18060
18061 ;
18062 return 0;
18063 }
18064 _ACEOF
18065 rm -f conftest$ac_exeext
18066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18067 (eval $ac_link) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 ac_cv_sizeof_short=`cat conftest.val`
18077 else
18078 echo "$as_me: program exited with status $ac_status" >&5
18079 echo "$as_me: failed program was:" >&5
18080 sed 's/^/| /' conftest.$ac_ext >&5
18081
18082 ( exit $ac_status )
18083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18084 See \`config.log' for more details." >&5
18085 echo "$as_me: error: cannot compute sizeof (short), 77
18086 See \`config.log' for more details." >&2;}
18087 { (exit 1); exit 1; }; }
18088 fi
18089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18090 fi
18091 fi
18092 rm -f conftest.val
18093 else
18094 ac_cv_sizeof_short=0
18095 fi
18096 fi
18097 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18098 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18099 cat >>confdefs.h <<_ACEOF
18100 #define SIZEOF_SHORT $ac_cv_sizeof_short
18101 _ACEOF
18102
18103
18104 echo "$as_me:$LINENO: checking for void *" >&5
18105 echo $ECHO_N "checking for void *... $ECHO_C" >&6
18106 if test "${ac_cv_type_void_p+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109 cat >conftest.$ac_ext <<_ACEOF
18110 /* confdefs.h. */
18111 _ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18115 $ac_includes_default
18116 int
18117 main ()
18118 {
18119 if ((void * *) 0)
18120 return 0;
18121 if (sizeof (void *))
18122 return 0;
18123 ;
18124 return 0;
18125 }
18126 _ACEOF
18127 rm -f conftest.$ac_objext
18128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18129 (eval $ac_compile) 2>conftest.er1
18130 ac_status=$?
18131 grep -v '^ *+' conftest.er1 >conftest.err
18132 rm -f conftest.er1
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
18136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; } &&
18142 { ac_try='test -s conftest.$ac_objext'
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; }; then
18148 ac_cv_type_void_p=yes
18149 else
18150 echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.$ac_ext >&5
18152
18153 ac_cv_type_void_p=no
18154 fi
18155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18156 fi
18157 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18158 echo "${ECHO_T}$ac_cv_type_void_p" >&6
18159
18160 echo "$as_me:$LINENO: checking size of void *" >&5
18161 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18162 if test "${ac_cv_sizeof_void_p+set}" = set; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18164 else
18165 if test "$ac_cv_type_void_p" = yes; then
18166 # The cast to unsigned long works around a bug in the HP C Compiler
18167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18169 # This bug is HP SR number 8606223364.
18170 if test "$cross_compiling" = yes; then
18171 # Depending upon the size, compute the lo and hi bounds.
18172 cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h. */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 $ac_includes_default
18179 int
18180 main ()
18181 {
18182 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18183 test_array [0] = 0
18184
18185 ;
18186 return 0;
18187 }
18188 _ACEOF
18189 rm -f conftest.$ac_objext
18190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18191 (eval $ac_compile) 2>conftest.er1
18192 ac_status=$?
18193 grep -v '^ *+' conftest.er1 >conftest.err
18194 rm -f conftest.er1
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest.$ac_objext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_lo=0 ac_mid=0
18211 while :; do
18212 cat >conftest.$ac_ext <<_ACEOF
18213 /* confdefs.h. */
18214 _ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h. */
18218 $ac_includes_default
18219 int
18220 main ()
18221 {
18222 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18223 test_array [0] = 0
18224
18225 ;
18226 return 0;
18227 }
18228 _ACEOF
18229 rm -f conftest.$ac_objext
18230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18231 (eval $ac_compile) 2>conftest.er1
18232 ac_status=$?
18233 grep -v '^ *+' conftest.er1 >conftest.err
18234 rm -f conftest.er1
18235 cat conftest.err >&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); } &&
18238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240 (eval $ac_try) 2>&5
18241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; } &&
18244 { ac_try='test -s conftest.$ac_objext'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
18250 ac_hi=$ac_mid; break
18251 else
18252 echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18254
18255 ac_lo=`expr $ac_mid + 1`
18256 if test $ac_lo -le $ac_mid; then
18257 ac_lo= ac_hi=
18258 break
18259 fi
18260 ac_mid=`expr 2 '*' $ac_mid + 1`
18261 fi
18262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18263 done
18264 else
18265 echo "$as_me: failed program was:" >&5
18266 sed 's/^/| /' conftest.$ac_ext >&5
18267
18268 cat >conftest.$ac_ext <<_ACEOF
18269 /* confdefs.h. */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18274 $ac_includes_default
18275 int
18276 main ()
18277 {
18278 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18279 test_array [0] = 0
18280
18281 ;
18282 return 0;
18283 }
18284 _ACEOF
18285 rm -f conftest.$ac_objext
18286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18287 (eval $ac_compile) 2>conftest.er1
18288 ac_status=$?
18289 grep -v '^ *+' conftest.er1 >conftest.err
18290 rm -f conftest.er1
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
18294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest.$ac_objext'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_hi=-1 ac_mid=-1
18307 while :; do
18308 cat >conftest.$ac_ext <<_ACEOF
18309 /* confdefs.h. */
18310 _ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18314 $ac_includes_default
18315 int
18316 main ()
18317 {
18318 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18319 test_array [0] = 0
18320
18321 ;
18322 return 0;
18323 }
18324 _ACEOF
18325 rm -f conftest.$ac_objext
18326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18327 (eval $ac_compile) 2>conftest.er1
18328 ac_status=$?
18329 grep -v '^ *+' conftest.er1 >conftest.err
18330 rm -f conftest.er1
18331 cat conftest.err >&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } &&
18334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest.$ac_objext'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; }; then
18346 ac_lo=$ac_mid; break
18347 else
18348 echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18350
18351 ac_hi=`expr '(' $ac_mid ')' - 1`
18352 if test $ac_mid -le $ac_hi; then
18353 ac_lo= ac_hi=
18354 break
18355 fi
18356 ac_mid=`expr 2 '*' $ac_mid`
18357 fi
18358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18359 done
18360 else
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18363
18364 ac_lo= ac_hi=
18365 fi
18366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18367 fi
18368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18369 # Binary search between lo and hi bounds.
18370 while test "x$ac_lo" != "x$ac_hi"; do
18371 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18372 cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h. */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 $ac_includes_default
18379 int
18380 main ()
18381 {
18382 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18383 test_array [0] = 0
18384
18385 ;
18386 return 0;
18387 }
18388 _ACEOF
18389 rm -f conftest.$ac_objext
18390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18391 (eval $ac_compile) 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; } &&
18404 { ac_try='test -s conftest.$ac_objext'
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; }; then
18410 ac_hi=$ac_mid
18411 else
18412 echo "$as_me: failed program was:" >&5
18413 sed 's/^/| /' conftest.$ac_ext >&5
18414
18415 ac_lo=`expr '(' $ac_mid ')' + 1`
18416 fi
18417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18418 done
18419 case $ac_lo in
18420 ?*) ac_cv_sizeof_void_p=$ac_lo;;
18421 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18422 See \`config.log' for more details." >&5
18423 echo "$as_me: error: cannot compute sizeof (void *), 77
18424 See \`config.log' for more details." >&2;}
18425 { (exit 1); exit 1; }; } ;;
18426 esac
18427 else
18428 if test "$cross_compiling" = yes; then
18429 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18430 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18431 { (exit 1); exit 1; }; }
18432 else
18433 cat >conftest.$ac_ext <<_ACEOF
18434 /* confdefs.h. */
18435 _ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18439 $ac_includes_default
18440 long longval () { return (long) (sizeof (void *)); }
18441 unsigned long ulongval () { return (long) (sizeof (void *)); }
18442 #include <stdio.h>
18443 #include <stdlib.h>
18444 int
18445 main ()
18446 {
18447
18448 FILE *f = fopen ("conftest.val", "w");
18449 if (! f)
18450 exit (1);
18451 if (((long) (sizeof (void *))) < 0)
18452 {
18453 long i = longval ();
18454 if (i != ((long) (sizeof (void *))))
18455 exit (1);
18456 fprintf (f, "%ld\n", i);
18457 }
18458 else
18459 {
18460 unsigned long i = ulongval ();
18461 if (i != ((long) (sizeof (void *))))
18462 exit (1);
18463 fprintf (f, "%lu\n", i);
18464 }
18465 exit (ferror (f) || fclose (f) != 0);
18466
18467 ;
18468 return 0;
18469 }
18470 _ACEOF
18471 rm -f conftest$ac_exeext
18472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18473 (eval $ac_link) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; }; then
18482 ac_cv_sizeof_void_p=`cat conftest.val`
18483 else
18484 echo "$as_me: program exited with status $ac_status" >&5
18485 echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18487
18488 ( exit $ac_status )
18489 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18490 See \`config.log' for more details." >&5
18491 echo "$as_me: error: cannot compute sizeof (void *), 77
18492 See \`config.log' for more details." >&2;}
18493 { (exit 1); exit 1; }; }
18494 fi
18495 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18496 fi
18497 fi
18498 rm -f conftest.val
18499 else
18500 ac_cv_sizeof_void_p=0
18501 fi
18502 fi
18503 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18504 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18505 cat >>confdefs.h <<_ACEOF
18506 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18507 _ACEOF
18508
18509
18510 echo "$as_me:$LINENO: checking for int" >&5
18511 echo $ECHO_N "checking for int... $ECHO_C" >&6
18512 if test "${ac_cv_type_int+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 else
18515 cat >conftest.$ac_ext <<_ACEOF
18516 /* confdefs.h. */
18517 _ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18521 $ac_includes_default
18522 int
18523 main ()
18524 {
18525 if ((int *) 0)
18526 return 0;
18527 if (sizeof (int))
18528 return 0;
18529 ;
18530 return 0;
18531 }
18532 _ACEOF
18533 rm -f conftest.$ac_objext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18535 (eval $ac_compile) 2>conftest.er1
18536 ac_status=$?
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } &&
18548 { ac_try='test -s conftest.$ac_objext'
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_cv_type_int=yes
18555 else
18556 echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18558
18559 ac_cv_type_int=no
18560 fi
18561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18562 fi
18563 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18564 echo "${ECHO_T}$ac_cv_type_int" >&6
18565
18566 echo "$as_me:$LINENO: checking size of int" >&5
18567 echo $ECHO_N "checking size of int... $ECHO_C" >&6
18568 if test "${ac_cv_sizeof_int+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571 if test "$ac_cv_type_int" = yes; then
18572 # The cast to unsigned long works around a bug in the HP C Compiler
18573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18575 # This bug is HP SR number 8606223364.
18576 if test "$cross_compiling" = yes; then
18577 # Depending upon the size, compute the lo and hi bounds.
18578 cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h. */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18584 $ac_includes_default
18585 int
18586 main ()
18587 {
18588 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18589 test_array [0] = 0
18590
18591 ;
18592 return 0;
18593 }
18594 _ACEOF
18595 rm -f conftest.$ac_objext
18596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18597 (eval $ac_compile) 2>conftest.er1
18598 ac_status=$?
18599 grep -v '^ *+' conftest.er1 >conftest.err
18600 rm -f conftest.er1
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } &&
18604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18606 (eval $ac_try) 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; } &&
18610 { ac_try='test -s conftest.$ac_objext'
18611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18612 (eval $ac_try) 2>&5
18613 ac_status=$?
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; }; then
18616 ac_lo=0 ac_mid=0
18617 while :; do
18618 cat >conftest.$ac_ext <<_ACEOF
18619 /* confdefs.h. */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18624 $ac_includes_default
18625 int
18626 main ()
18627 {
18628 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18629 test_array [0] = 0
18630
18631 ;
18632 return 0;
18633 }
18634 _ACEOF
18635 rm -f conftest.$ac_objext
18636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18637 (eval $ac_compile) 2>conftest.er1
18638 ac_status=$?
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
18644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; } &&
18650 { ac_try='test -s conftest.$ac_objext'
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 ac_hi=$ac_mid; break
18657 else
18658 echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18660
18661 ac_lo=`expr $ac_mid + 1`
18662 if test $ac_lo -le $ac_mid; then
18663 ac_lo= ac_hi=
18664 break
18665 fi
18666 ac_mid=`expr 2 '*' $ac_mid + 1`
18667 fi
18668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18669 done
18670 else
18671 echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18673
18674 cat >conftest.$ac_ext <<_ACEOF
18675 /* confdefs.h. */
18676 _ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18680 $ac_includes_default
18681 int
18682 main ()
18683 {
18684 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18685 test_array [0] = 0
18686
18687 ;
18688 return 0;
18689 }
18690 _ACEOF
18691 rm -f conftest.$ac_objext
18692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18693 (eval $ac_compile) 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
18700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try='test -s conftest.$ac_objext'
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18709 ac_status=$?
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; }; then
18712 ac_hi=-1 ac_mid=-1
18713 while :; do
18714 cat >conftest.$ac_ext <<_ACEOF
18715 /* confdefs.h. */
18716 _ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720 $ac_includes_default
18721 int
18722 main ()
18723 {
18724 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18725 test_array [0] = 0
18726
18727 ;
18728 return 0;
18729 }
18730 _ACEOF
18731 rm -f conftest.$ac_objext
18732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18733 (eval $ac_compile) 2>conftest.er1
18734 ac_status=$?
18735 grep -v '^ *+' conftest.er1 >conftest.err
18736 rm -f conftest.er1
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } &&
18740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; } &&
18746 { ac_try='test -s conftest.$ac_objext'
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18752 ac_lo=$ac_mid; break
18753 else
18754 echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18756
18757 ac_hi=`expr '(' $ac_mid ')' - 1`
18758 if test $ac_mid -le $ac_hi; then
18759 ac_lo= ac_hi=
18760 break
18761 fi
18762 ac_mid=`expr 2 '*' $ac_mid`
18763 fi
18764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18765 done
18766 else
18767 echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18769
18770 ac_lo= ac_hi=
18771 fi
18772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18773 fi
18774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18775 # Binary search between lo and hi bounds.
18776 while test "x$ac_lo" != "x$ac_hi"; do
18777 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18778 cat >conftest.$ac_ext <<_ACEOF
18779 /* confdefs.h. */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18784 $ac_includes_default
18785 int
18786 main ()
18787 {
18788 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18789 test_array [0] = 0
18790
18791 ;
18792 return 0;
18793 }
18794 _ACEOF
18795 rm -f conftest.$ac_objext
18796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18797 (eval $ac_compile) 2>conftest.er1
18798 ac_status=$?
18799 grep -v '^ *+' conftest.er1 >conftest.err
18800 rm -f conftest.er1
18801 cat conftest.err >&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } &&
18804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest.$ac_objext'
18811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18812 (eval $ac_try) 2>&5
18813 ac_status=$?
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; }; then
18816 ac_hi=$ac_mid
18817 else
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18820
18821 ac_lo=`expr '(' $ac_mid ')' + 1`
18822 fi
18823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18824 done
18825 case $ac_lo in
18826 ?*) ac_cv_sizeof_int=$ac_lo;;
18827 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18828 See \`config.log' for more details." >&5
18829 echo "$as_me: error: cannot compute sizeof (int), 77
18830 See \`config.log' for more details." >&2;}
18831 { (exit 1); exit 1; }; } ;;
18832 esac
18833 else
18834 if test "$cross_compiling" = yes; then
18835 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18836 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18837 { (exit 1); exit 1; }; }
18838 else
18839 cat >conftest.$ac_ext <<_ACEOF
18840 /* confdefs.h. */
18841 _ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18845 $ac_includes_default
18846 long longval () { return (long) (sizeof (int)); }
18847 unsigned long ulongval () { return (long) (sizeof (int)); }
18848 #include <stdio.h>
18849 #include <stdlib.h>
18850 int
18851 main ()
18852 {
18853
18854 FILE *f = fopen ("conftest.val", "w");
18855 if (! f)
18856 exit (1);
18857 if (((long) (sizeof (int))) < 0)
18858 {
18859 long i = longval ();
18860 if (i != ((long) (sizeof (int))))
18861 exit (1);
18862 fprintf (f, "%ld\n", i);
18863 }
18864 else
18865 {
18866 unsigned long i = ulongval ();
18867 if (i != ((long) (sizeof (int))))
18868 exit (1);
18869 fprintf (f, "%lu\n", i);
18870 }
18871 exit (ferror (f) || fclose (f) != 0);
18872
18873 ;
18874 return 0;
18875 }
18876 _ACEOF
18877 rm -f conftest$ac_exeext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18879 (eval $ac_link) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_cv_sizeof_int=`cat conftest.val`
18889 else
18890 echo "$as_me: program exited with status $ac_status" >&5
18891 echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18893
18894 ( exit $ac_status )
18895 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18896 See \`config.log' for more details." >&5
18897 echo "$as_me: error: cannot compute sizeof (int), 77
18898 See \`config.log' for more details." >&2;}
18899 { (exit 1); exit 1; }; }
18900 fi
18901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18902 fi
18903 fi
18904 rm -f conftest.val
18905 else
18906 ac_cv_sizeof_int=0
18907 fi
18908 fi
18909 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18910 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18911 cat >>confdefs.h <<_ACEOF
18912 #define SIZEOF_INT $ac_cv_sizeof_int
18913 _ACEOF
18914
18915
18916 echo "$as_me:$LINENO: checking for long" >&5
18917 echo $ECHO_N "checking for long... $ECHO_C" >&6
18918 if test "${ac_cv_type_long+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921 cat >conftest.$ac_ext <<_ACEOF
18922 /* confdefs.h. */
18923 _ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18927 $ac_includes_default
18928 int
18929 main ()
18930 {
18931 if ((long *) 0)
18932 return 0;
18933 if (sizeof (long))
18934 return 0;
18935 ;
18936 return 0;
18937 }
18938 _ACEOF
18939 rm -f conftest.$ac_objext
18940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18941 (eval $ac_compile) 2>conftest.er1
18942 ac_status=$?
18943 grep -v '^ *+' conftest.er1 >conftest.err
18944 rm -f conftest.er1
18945 cat conftest.err >&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try='test -s conftest.$ac_objext'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 ac_cv_type_long=yes
18961 else
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18964
18965 ac_cv_type_long=no
18966 fi
18967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18968 fi
18969 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18970 echo "${ECHO_T}$ac_cv_type_long" >&6
18971
18972 echo "$as_me:$LINENO: checking size of long" >&5
18973 echo $ECHO_N "checking size of long... $ECHO_C" >&6
18974 if test "${ac_cv_sizeof_long+set}" = set; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18976 else
18977 if test "$ac_cv_type_long" = yes; then
18978 # The cast to unsigned long works around a bug in the HP C Compiler
18979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18981 # This bug is HP SR number 8606223364.
18982 if test "$cross_compiling" = yes; then
18983 # Depending upon the size, compute the lo and hi bounds.
18984 cat >conftest.$ac_ext <<_ACEOF
18985 /* confdefs.h. */
18986 _ACEOF
18987 cat confdefs.h >>conftest.$ac_ext
18988 cat >>conftest.$ac_ext <<_ACEOF
18989 /* end confdefs.h. */
18990 $ac_includes_default
18991 int
18992 main ()
18993 {
18994 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18995 test_array [0] = 0
18996
18997 ;
18998 return 0;
18999 }
19000 _ACEOF
19001 rm -f conftest.$ac_objext
19002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19003 (eval $ac_compile) 2>conftest.er1
19004 ac_status=$?
19005 grep -v '^ *+' conftest.er1 >conftest.err
19006 rm -f conftest.er1
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } &&
19010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19013 ac_status=$?
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; } &&
19016 { ac_try='test -s conftest.$ac_objext'
19017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19018 (eval $ac_try) 2>&5
19019 ac_status=$?
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; }; then
19022 ac_lo=0 ac_mid=0
19023 while :; do
19024 cat >conftest.$ac_ext <<_ACEOF
19025 /* confdefs.h. */
19026 _ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19030 $ac_includes_default
19031 int
19032 main ()
19033 {
19034 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19035 test_array [0] = 0
19036
19037 ;
19038 return 0;
19039 }
19040 _ACEOF
19041 rm -f conftest.$ac_objext
19042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19043 (eval $ac_compile) 2>conftest.er1
19044 ac_status=$?
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -f conftest.er1
19047 cat conftest.err >&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
19050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19053 ac_status=$?
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; } &&
19056 { ac_try='test -s conftest.$ac_objext'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 ac_hi=$ac_mid; break
19063 else
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19066
19067 ac_lo=`expr $ac_mid + 1`
19068 if test $ac_lo -le $ac_mid; then
19069 ac_lo= ac_hi=
19070 break
19071 fi
19072 ac_mid=`expr 2 '*' $ac_mid + 1`
19073 fi
19074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19075 done
19076 else
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19079
19080 cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h. */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 $ac_includes_default
19087 int
19088 main ()
19089 {
19090 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19091 test_array [0] = 0
19092
19093 ;
19094 return 0;
19095 }
19096 _ACEOF
19097 rm -f conftest.$ac_objext
19098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19099 (eval $ac_compile) 2>conftest.er1
19100 ac_status=$?
19101 grep -v '^ *+' conftest.er1 >conftest.err
19102 rm -f conftest.er1
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } &&
19106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; } &&
19112 { ac_try='test -s conftest.$ac_objext'
19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; }; then
19118 ac_hi=-1 ac_mid=-1
19119 while :; do
19120 cat >conftest.$ac_ext <<_ACEOF
19121 /* confdefs.h. */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19126 $ac_includes_default
19127 int
19128 main ()
19129 {
19130 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19131 test_array [0] = 0
19132
19133 ;
19134 return 0;
19135 }
19136 _ACEOF
19137 rm -f conftest.$ac_objext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19139 (eval $ac_compile) 2>conftest.er1
19140 ac_status=$?
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
19146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; } &&
19152 { ac_try='test -s conftest.$ac_objext'
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 ac_lo=$ac_mid; break
19159 else
19160 echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19162
19163 ac_hi=`expr '(' $ac_mid ')' - 1`
19164 if test $ac_mid -le $ac_hi; then
19165 ac_lo= ac_hi=
19166 break
19167 fi
19168 ac_mid=`expr 2 '*' $ac_mid`
19169 fi
19170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19171 done
19172 else
19173 echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19175
19176 ac_lo= ac_hi=
19177 fi
19178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19179 fi
19180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19181 # Binary search between lo and hi bounds.
19182 while test "x$ac_lo" != "x$ac_hi"; do
19183 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19184 cat >conftest.$ac_ext <<_ACEOF
19185 /* confdefs.h. */
19186 _ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h. */
19190 $ac_includes_default
19191 int
19192 main ()
19193 {
19194 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19195 test_array [0] = 0
19196
19197 ;
19198 return 0;
19199 }
19200 _ACEOF
19201 rm -f conftest.$ac_objext
19202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19203 (eval $ac_compile) 2>conftest.er1
19204 ac_status=$?
19205 grep -v '^ *+' conftest.er1 >conftest.err
19206 rm -f conftest.er1
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
19210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19213 ac_status=$?
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; } &&
19216 { ac_try='test -s conftest.$ac_objext'
19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19219 ac_status=$?
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; }; then
19222 ac_hi=$ac_mid
19223 else
19224 echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227 ac_lo=`expr '(' $ac_mid ')' + 1`
19228 fi
19229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19230 done
19231 case $ac_lo in
19232 ?*) ac_cv_sizeof_long=$ac_lo;;
19233 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19234 See \`config.log' for more details." >&5
19235 echo "$as_me: error: cannot compute sizeof (long), 77
19236 See \`config.log' for more details." >&2;}
19237 { (exit 1); exit 1; }; } ;;
19238 esac
19239 else
19240 if test "$cross_compiling" = yes; then
19241 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19242 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19243 { (exit 1); exit 1; }; }
19244 else
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h. */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251 $ac_includes_default
19252 long longval () { return (long) (sizeof (long)); }
19253 unsigned long ulongval () { return (long) (sizeof (long)); }
19254 #include <stdio.h>
19255 #include <stdlib.h>
19256 int
19257 main ()
19258 {
19259
19260 FILE *f = fopen ("conftest.val", "w");
19261 if (! f)
19262 exit (1);
19263 if (((long) (sizeof (long))) < 0)
19264 {
19265 long i = longval ();
19266 if (i != ((long) (sizeof (long))))
19267 exit (1);
19268 fprintf (f, "%ld\n", i);
19269 }
19270 else
19271 {
19272 unsigned long i = ulongval ();
19273 if (i != ((long) (sizeof (long))))
19274 exit (1);
19275 fprintf (f, "%lu\n", i);
19276 }
19277 exit (ferror (f) || fclose (f) != 0);
19278
19279 ;
19280 return 0;
19281 }
19282 _ACEOF
19283 rm -f conftest$ac_exeext
19284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19285 (eval $ac_link) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294 ac_cv_sizeof_long=`cat conftest.val`
19295 else
19296 echo "$as_me: program exited with status $ac_status" >&5
19297 echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19299
19300 ( exit $ac_status )
19301 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19302 See \`config.log' for more details." >&5
19303 echo "$as_me: error: cannot compute sizeof (long), 77
19304 See \`config.log' for more details." >&2;}
19305 { (exit 1); exit 1; }; }
19306 fi
19307 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19308 fi
19309 fi
19310 rm -f conftest.val
19311 else
19312 ac_cv_sizeof_long=0
19313 fi
19314 fi
19315 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19316 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19317 cat >>confdefs.h <<_ACEOF
19318 #define SIZEOF_LONG $ac_cv_sizeof_long
19319 _ACEOF
19320
19321
19322 echo "$as_me:$LINENO: checking for size_t" >&5
19323 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19324 if test "${ac_cv_type_size_t+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19326 else
19327 cat >conftest.$ac_ext <<_ACEOF
19328 /* confdefs.h. */
19329 _ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19333 $ac_includes_default
19334 int
19335 main ()
19336 {
19337 if ((size_t *) 0)
19338 return 0;
19339 if (sizeof (size_t))
19340 return 0;
19341 ;
19342 return 0;
19343 }
19344 _ACEOF
19345 rm -f conftest.$ac_objext
19346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19347 (eval $ac_compile) 2>conftest.er1
19348 ac_status=$?
19349 grep -v '^ *+' conftest.er1 >conftest.err
19350 rm -f conftest.er1
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } &&
19354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356 (eval $ac_try) 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; } &&
19360 { ac_try='test -s conftest.$ac_objext'
19361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362 (eval $ac_try) 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; }; then
19366 ac_cv_type_size_t=yes
19367 else
19368 echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19370
19371 ac_cv_type_size_t=no
19372 fi
19373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19374 fi
19375 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19376 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19377
19378 echo "$as_me:$LINENO: checking size of size_t" >&5
19379 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19380 if test "${ac_cv_sizeof_size_t+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19382 else
19383 if test "$ac_cv_type_size_t" = yes; then
19384 # The cast to unsigned long works around a bug in the HP C Compiler
19385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19387 # This bug is HP SR number 8606223364.
19388 if test "$cross_compiling" = yes; then
19389 # Depending upon the size, compute the lo and hi bounds.
19390 cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h. */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 $ac_includes_default
19397 int
19398 main ()
19399 {
19400 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19401 test_array [0] = 0
19402
19403 ;
19404 return 0;
19405 }
19406 _ACEOF
19407 rm -f conftest.$ac_objext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19409 (eval $ac_compile) 2>conftest.er1
19410 ac_status=$?
19411 grep -v '^ *+' conftest.er1 >conftest.err
19412 rm -f conftest.er1
19413 cat conftest.err >&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } &&
19416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418 (eval $ac_try) 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; } &&
19422 { ac_try='test -s conftest.$ac_objext'
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
19428 ac_lo=0 ac_mid=0
19429 while :; do
19430 cat >conftest.$ac_ext <<_ACEOF
19431 /* confdefs.h. */
19432 _ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19436 $ac_includes_default
19437 int
19438 main ()
19439 {
19440 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19441 test_array [0] = 0
19442
19443 ;
19444 return 0;
19445 }
19446 _ACEOF
19447 rm -f conftest.$ac_objext
19448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19449 (eval $ac_compile) 2>conftest.er1
19450 ac_status=$?
19451 grep -v '^ *+' conftest.er1 >conftest.err
19452 rm -f conftest.er1
19453 cat conftest.err >&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } &&
19456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; } &&
19462 { ac_try='test -s conftest.$ac_objext'
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; }; then
19468 ac_hi=$ac_mid; break
19469 else
19470 echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19472
19473 ac_lo=`expr $ac_mid + 1`
19474 if test $ac_lo -le $ac_mid; then
19475 ac_lo= ac_hi=
19476 break
19477 fi
19478 ac_mid=`expr 2 '*' $ac_mid + 1`
19479 fi
19480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19481 done
19482 else
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h. */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19492 $ac_includes_default
19493 int
19494 main ()
19495 {
19496 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19497 test_array [0] = 0
19498
19499 ;
19500 return 0;
19501 }
19502 _ACEOF
19503 rm -f conftest.$ac_objext
19504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19505 (eval $ac_compile) 2>conftest.er1
19506 ac_status=$?
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_hi=-1 ac_mid=-1
19525 while :; do
19526 cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h. */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19532 $ac_includes_default
19533 int
19534 main ()
19535 {
19536 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19537 test_array [0] = 0
19538
19539 ;
19540 return 0;
19541 }
19542 _ACEOF
19543 rm -f conftest.$ac_objext
19544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19545 (eval $ac_compile) 2>conftest.er1
19546 ac_status=$?
19547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 ac_lo=$ac_mid; break
19565 else
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569 ac_hi=`expr '(' $ac_mid ')' - 1`
19570 if test $ac_mid -le $ac_hi; then
19571 ac_lo= ac_hi=
19572 break
19573 fi
19574 ac_mid=`expr 2 '*' $ac_mid`
19575 fi
19576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19577 done
19578 else
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582 ac_lo= ac_hi=
19583 fi
19584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19585 fi
19586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19587 # Binary search between lo and hi bounds.
19588 while test "x$ac_lo" != "x$ac_hi"; do
19589 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19590 cat >conftest.$ac_ext <<_ACEOF
19591 /* confdefs.h. */
19592 _ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19596 $ac_includes_default
19597 int
19598 main ()
19599 {
19600 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19601 test_array [0] = 0
19602
19603 ;
19604 return 0;
19605 }
19606 _ACEOF
19607 rm -f conftest.$ac_objext
19608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19609 (eval $ac_compile) 2>conftest.er1
19610 ac_status=$?
19611 grep -v '^ *+' conftest.er1 >conftest.err
19612 rm -f conftest.er1
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } &&
19616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; } &&
19622 { ac_try='test -s conftest.$ac_objext'
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19625 ac_status=$?
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
19628 ac_hi=$ac_mid
19629 else
19630 echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19632
19633 ac_lo=`expr '(' $ac_mid ')' + 1`
19634 fi
19635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19636 done
19637 case $ac_lo in
19638 ?*) ac_cv_sizeof_size_t=$ac_lo;;
19639 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19640 See \`config.log' for more details." >&5
19641 echo "$as_me: error: cannot compute sizeof (size_t), 77
19642 See \`config.log' for more details." >&2;}
19643 { (exit 1); exit 1; }; } ;;
19644 esac
19645 else
19646 if test "$cross_compiling" = yes; then
19647 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19648 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19649 { (exit 1); exit 1; }; }
19650 else
19651 cat >conftest.$ac_ext <<_ACEOF
19652 /* confdefs.h. */
19653 _ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19657 $ac_includes_default
19658 long longval () { return (long) (sizeof (size_t)); }
19659 unsigned long ulongval () { return (long) (sizeof (size_t)); }
19660 #include <stdio.h>
19661 #include <stdlib.h>
19662 int
19663 main ()
19664 {
19665
19666 FILE *f = fopen ("conftest.val", "w");
19667 if (! f)
19668 exit (1);
19669 if (((long) (sizeof (size_t))) < 0)
19670 {
19671 long i = longval ();
19672 if (i != ((long) (sizeof (size_t))))
19673 exit (1);
19674 fprintf (f, "%ld\n", i);
19675 }
19676 else
19677 {
19678 unsigned long i = ulongval ();
19679 if (i != ((long) (sizeof (size_t))))
19680 exit (1);
19681 fprintf (f, "%lu\n", i);
19682 }
19683 exit (ferror (f) || fclose (f) != 0);
19684
19685 ;
19686 return 0;
19687 }
19688 _ACEOF
19689 rm -f conftest$ac_exeext
19690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19691 (eval $ac_link) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; }; then
19700 ac_cv_sizeof_size_t=`cat conftest.val`
19701 else
19702 echo "$as_me: program exited with status $ac_status" >&5
19703 echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19705
19706 ( exit $ac_status )
19707 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19708 See \`config.log' for more details." >&5
19709 echo "$as_me: error: cannot compute sizeof (size_t), 77
19710 See \`config.log' for more details." >&2;}
19711 { (exit 1); exit 1; }; }
19712 fi
19713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19714 fi
19715 fi
19716 rm -f conftest.val
19717 else
19718 ac_cv_sizeof_size_t=0
19719 fi
19720 fi
19721 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19722 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19723 cat >>confdefs.h <<_ACEOF
19724 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19725 _ACEOF
19726
19727
19728
19729 case "${host}" in
19730 arm-*-linux* )
19731 echo "$as_me:$LINENO: checking for long long" >&5
19732 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19733 if test "${ac_cv_type_long_long+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736 cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h. */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742 $ac_includes_default
19743 int
19744 main ()
19745 {
19746 if ((long long *) 0)
19747 return 0;
19748 if (sizeof (long long))
19749 return 0;
19750 ;
19751 return 0;
19752 }
19753 _ACEOF
19754 rm -f conftest.$ac_objext
19755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19756 (eval $ac_compile) 2>conftest.er1
19757 ac_status=$?
19758 grep -v '^ *+' conftest.er1 >conftest.err
19759 rm -f conftest.er1
19760 cat conftest.err >&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } &&
19763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765 (eval $ac_try) 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); }; } &&
19769 { ac_try='test -s conftest.$ac_objext'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_cv_type_long_long=yes
19776 else
19777 echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19779
19780 ac_cv_type_long_long=no
19781 fi
19782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19783 fi
19784 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19785 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19786
19787 echo "$as_me:$LINENO: checking size of long long" >&5
19788 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19789 if test "${ac_cv_sizeof_long_long+set}" = set; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 else
19792 if test "$ac_cv_type_long_long" = yes; then
19793 # The cast to unsigned long works around a bug in the HP C Compiler
19794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19796 # This bug is HP SR number 8606223364.
19797 if test "$cross_compiling" = yes; then
19798 # Depending upon the size, compute the lo and hi bounds.
19799 cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h. */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 $ac_includes_default
19806 int
19807 main ()
19808 {
19809 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19810 test_array [0] = 0
19811
19812 ;
19813 return 0;
19814 }
19815 _ACEOF
19816 rm -f conftest.$ac_objext
19817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19818 (eval $ac_compile) 2>conftest.er1
19819 ac_status=$?
19820 grep -v '^ *+' conftest.er1 >conftest.err
19821 rm -f conftest.er1
19822 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } &&
19825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; } &&
19831 { ac_try='test -s conftest.$ac_objext'
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; }; then
19837 ac_lo=0 ac_mid=0
19838 while :; do
19839 cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h. */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 $ac_includes_default
19846 int
19847 main ()
19848 {
19849 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19850 test_array [0] = 0
19851
19852 ;
19853 return 0;
19854 }
19855 _ACEOF
19856 rm -f conftest.$ac_objext
19857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19858 (eval $ac_compile) 2>conftest.er1
19859 ac_status=$?
19860 grep -v '^ *+' conftest.er1 >conftest.err
19861 rm -f conftest.er1
19862 cat conftest.err >&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); } &&
19865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19868 ac_status=$?
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; } &&
19871 { ac_try='test -s conftest.$ac_objext'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; }; then
19877 ac_hi=$ac_mid; break
19878 else
19879 echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19881
19882 ac_lo=`expr $ac_mid + 1`
19883 if test $ac_lo -le $ac_mid; then
19884 ac_lo= ac_hi=
19885 break
19886 fi
19887 ac_mid=`expr 2 '*' $ac_mid + 1`
19888 fi
19889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19890 done
19891 else
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19894
19895 cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h. */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19901 $ac_includes_default
19902 int
19903 main ()
19904 {
19905 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19906 test_array [0] = 0
19907
19908 ;
19909 return 0;
19910 }
19911 _ACEOF
19912 rm -f conftest.$ac_objext
19913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19914 (eval $ac_compile) 2>conftest.er1
19915 ac_status=$?
19916 grep -v '^ *+' conftest.er1 >conftest.err
19917 rm -f conftest.er1
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } &&
19921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; } &&
19927 { ac_try='test -s conftest.$ac_objext'
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
19933 ac_hi=-1 ac_mid=-1
19934 while :; do
19935 cat >conftest.$ac_ext <<_ACEOF
19936 /* confdefs.h. */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19941 $ac_includes_default
19942 int
19943 main ()
19944 {
19945 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19946 test_array [0] = 0
19947
19948 ;
19949 return 0;
19950 }
19951 _ACEOF
19952 rm -f conftest.$ac_objext
19953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19954 (eval $ac_compile) 2>conftest.er1
19955 ac_status=$?
19956 grep -v '^ *+' conftest.er1 >conftest.err
19957 rm -f conftest.er1
19958 cat conftest.err >&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } &&
19961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; } &&
19967 { ac_try='test -s conftest.$ac_objext'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; }; then
19973 ac_lo=$ac_mid; break
19974 else
19975 echo "$as_me: failed program was:" >&5
19976 sed 's/^/| /' conftest.$ac_ext >&5
19977
19978 ac_hi=`expr '(' $ac_mid ')' - 1`
19979 if test $ac_mid -le $ac_hi; then
19980 ac_lo= ac_hi=
19981 break
19982 fi
19983 ac_mid=`expr 2 '*' $ac_mid`
19984 fi
19985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19986 done
19987 else
19988 echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19990
19991 ac_lo= ac_hi=
19992 fi
19993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19994 fi
19995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19996 # Binary search between lo and hi bounds.
19997 while test "x$ac_lo" != "x$ac_hi"; do
19998 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19999 cat >conftest.$ac_ext <<_ACEOF
20000 /* confdefs.h. */
20001 _ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
20004 /* end confdefs.h. */
20005 $ac_includes_default
20006 int
20007 main ()
20008 {
20009 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20010 test_array [0] = 0
20011
20012 ;
20013 return 0;
20014 }
20015 _ACEOF
20016 rm -f conftest.$ac_objext
20017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20018 (eval $ac_compile) 2>conftest.er1
20019 ac_status=$?
20020 grep -v '^ *+' conftest.er1 >conftest.err
20021 rm -f conftest.er1
20022 cat conftest.err >&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } &&
20025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest.$ac_objext'
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 ac_hi=$ac_mid
20038 else
20039 echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20041
20042 ac_lo=`expr '(' $ac_mid ')' + 1`
20043 fi
20044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20045 done
20046 case $ac_lo in
20047 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20048 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20049 See \`config.log' for more details." >&5
20050 echo "$as_me: error: cannot compute sizeof (long long), 77
20051 See \`config.log' for more details." >&2;}
20052 { (exit 1); exit 1; }; } ;;
20053 esac
20054 else
20055 if test "$cross_compiling" = yes; then
20056 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20057 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20058 { (exit 1); exit 1; }; }
20059 else
20060 cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h. */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 $ac_includes_default
20067 long longval () { return (long) (sizeof (long long)); }
20068 unsigned long ulongval () { return (long) (sizeof (long long)); }
20069 #include <stdio.h>
20070 #include <stdlib.h>
20071 int
20072 main ()
20073 {
20074
20075 FILE *f = fopen ("conftest.val", "w");
20076 if (! f)
20077 exit (1);
20078 if (((long) (sizeof (long long))) < 0)
20079 {
20080 long i = longval ();
20081 if (i != ((long) (sizeof (long long))))
20082 exit (1);
20083 fprintf (f, "%ld\n", i);
20084 }
20085 else
20086 {
20087 unsigned long i = ulongval ();
20088 if (i != ((long) (sizeof (long long))))
20089 exit (1);
20090 fprintf (f, "%lu\n", i);
20091 }
20092 exit (ferror (f) || fclose (f) != 0);
20093
20094 ;
20095 return 0;
20096 }
20097 _ACEOF
20098 rm -f conftest$ac_exeext
20099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20100 (eval $ac_link) 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 ac_cv_sizeof_long_long=`cat conftest.val`
20110 else
20111 echo "$as_me: program exited with status $ac_status" >&5
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20114
20115 ( exit $ac_status )
20116 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20117 See \`config.log' for more details." >&5
20118 echo "$as_me: error: cannot compute sizeof (long long), 77
20119 See \`config.log' for more details." >&2;}
20120 { (exit 1); exit 1; }; }
20121 fi
20122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20123 fi
20124 fi
20125 rm -f conftest.val
20126 else
20127 ac_cv_sizeof_long_long=0
20128 fi
20129 fi
20130 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20131 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20132 cat >>confdefs.h <<_ACEOF
20133 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20134 _ACEOF
20135
20136
20137 ;;
20138 *-hp-hpux* )
20139 echo "$as_me:$LINENO: checking for long long" >&5
20140 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20141 if test "${ac_cv_type_long_long+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 else
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h. */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 $ac_includes_default
20151 int
20152 main ()
20153 {
20154 if ((long long *) 0)
20155 return 0;
20156 if (sizeof (long long))
20157 return 0;
20158 ;
20159 return 0;
20160 }
20161 _ACEOF
20162 rm -f conftest.$ac_objext
20163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20164 (eval $ac_compile) 2>conftest.er1
20165 ac_status=$?
20166 grep -v '^ *+' conftest.er1 >conftest.err
20167 rm -f conftest.er1
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } &&
20171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173 (eval $ac_try) 2>&5
20174 ac_status=$?
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; } &&
20177 { ac_try='test -s conftest.$ac_objext'
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_type_long_long=yes
20184 else
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20187
20188 ac_cv_type_long_long=no
20189 fi
20190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20191 fi
20192 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20193 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20194
20195 echo "$as_me:$LINENO: checking size of long long" >&5
20196 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20197 if test "${ac_cv_sizeof_long_long+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20199 else
20200 if test "$ac_cv_type_long_long" = yes; then
20201 # The cast to unsigned long works around a bug in the HP C Compiler
20202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20204 # This bug is HP SR number 8606223364.
20205 if test "$cross_compiling" = yes; then
20206 # Depending upon the size, compute the lo and hi bounds.
20207 cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h. */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20213 $ac_includes_default
20214 int
20215 main ()
20216 {
20217 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20218 test_array [0] = 0
20219
20220 ;
20221 return 0;
20222 }
20223 _ACEOF
20224 rm -f conftest.$ac_objext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
20233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235 (eval $ac_try) 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; } &&
20239 { ac_try='test -s conftest.$ac_objext'
20240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20242 ac_status=$?
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; }; then
20245 ac_lo=0 ac_mid=0
20246 while :; do
20247 cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h. */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20253 $ac_includes_default
20254 int
20255 main ()
20256 {
20257 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20258 test_array [0] = 0
20259
20260 ;
20261 return 0;
20262 }
20263 _ACEOF
20264 rm -f conftest.$ac_objext
20265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20266 (eval $ac_compile) 2>conftest.er1
20267 ac_status=$?
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } &&
20273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; } &&
20279 { ac_try='test -s conftest.$ac_objext'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20282 ac_status=$?
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20285 ac_hi=$ac_mid; break
20286 else
20287 echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20289
20290 ac_lo=`expr $ac_mid + 1`
20291 if test $ac_lo -le $ac_mid; then
20292 ac_lo= ac_hi=
20293 break
20294 fi
20295 ac_mid=`expr 2 '*' $ac_mid + 1`
20296 fi
20297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20298 done
20299 else
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20302
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h. */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 $ac_includes_default
20310 int
20311 main ()
20312 {
20313 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20314 test_array [0] = 0
20315
20316 ;
20317 return 0;
20318 }
20319 _ACEOF
20320 rm -f conftest.$ac_objext
20321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20322 (eval $ac_compile) 2>conftest.er1
20323 ac_status=$?
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } &&
20329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331 (eval $ac_try) 2>&5
20332 ac_status=$?
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; } &&
20335 { ac_try='test -s conftest.$ac_objext'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341 ac_hi=-1 ac_mid=-1
20342 while :; do
20343 cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h. */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 $ac_includes_default
20350 int
20351 main ()
20352 {
20353 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20354 test_array [0] = 0
20355
20356 ;
20357 return 0;
20358 }
20359 _ACEOF
20360 rm -f conftest.$ac_objext
20361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20362 (eval $ac_compile) 2>conftest.er1
20363 ac_status=$?
20364 grep -v '^ *+' conftest.er1 >conftest.err
20365 rm -f conftest.er1
20366 cat conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
20369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try='test -s conftest.$ac_objext'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 ac_lo=$ac_mid; break
20382 else
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20385
20386 ac_hi=`expr '(' $ac_mid ')' - 1`
20387 if test $ac_mid -le $ac_hi; then
20388 ac_lo= ac_hi=
20389 break
20390 fi
20391 ac_mid=`expr 2 '*' $ac_mid`
20392 fi
20393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20394 done
20395 else
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20398
20399 ac_lo= ac_hi=
20400 fi
20401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20402 fi
20403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20404 # Binary search between lo and hi bounds.
20405 while test "x$ac_lo" != "x$ac_hi"; do
20406 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20407 cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h. */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 $ac_includes_default
20414 int
20415 main ()
20416 {
20417 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20418 test_array [0] = 0
20419
20420 ;
20421 return 0;
20422 }
20423 _ACEOF
20424 rm -f conftest.$ac_objext
20425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20426 (eval $ac_compile) 2>conftest.er1
20427 ac_status=$?
20428 grep -v '^ *+' conftest.er1 >conftest.err
20429 rm -f conftest.er1
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } &&
20433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; } &&
20439 { ac_try='test -s conftest.$ac_objext'
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20442 ac_status=$?
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; }; then
20445 ac_hi=$ac_mid
20446 else
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20449
20450 ac_lo=`expr '(' $ac_mid ')' + 1`
20451 fi
20452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20453 done
20454 case $ac_lo in
20455 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20456 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20457 See \`config.log' for more details." >&5
20458 echo "$as_me: error: cannot compute sizeof (long long), 77
20459 See \`config.log' for more details." >&2;}
20460 { (exit 1); exit 1; }; } ;;
20461 esac
20462 else
20463 if test "$cross_compiling" = yes; then
20464 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20465 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20466 { (exit 1); exit 1; }; }
20467 else
20468 cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h. */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 $ac_includes_default
20475 long longval () { return (long) (sizeof (long long)); }
20476 unsigned long ulongval () { return (long) (sizeof (long long)); }
20477 #include <stdio.h>
20478 #include <stdlib.h>
20479 int
20480 main ()
20481 {
20482
20483 FILE *f = fopen ("conftest.val", "w");
20484 if (! f)
20485 exit (1);
20486 if (((long) (sizeof (long long))) < 0)
20487 {
20488 long i = longval ();
20489 if (i != ((long) (sizeof (long long))))
20490 exit (1);
20491 fprintf (f, "%ld\n", i);
20492 }
20493 else
20494 {
20495 unsigned long i = ulongval ();
20496 if (i != ((long) (sizeof (long long))))
20497 exit (1);
20498 fprintf (f, "%lu\n", i);
20499 }
20500 exit (ferror (f) || fclose (f) != 0);
20501
20502 ;
20503 return 0;
20504 }
20505 _ACEOF
20506 rm -f conftest$ac_exeext
20507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20508 (eval $ac_link) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20514 ac_status=$?
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_cv_sizeof_long_long=`cat conftest.val`
20518 else
20519 echo "$as_me: program exited with status $ac_status" >&5
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20522
20523 ( exit $ac_status )
20524 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20525 See \`config.log' for more details." >&5
20526 echo "$as_me: error: cannot compute sizeof (long long), 77
20527 See \`config.log' for more details." >&2;}
20528 { (exit 1); exit 1; }; }
20529 fi
20530 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20531 fi
20532 fi
20533 rm -f conftest.val
20534 else
20535 ac_cv_sizeof_long_long=0
20536 fi
20537 fi
20538 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20539 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20540 cat >>confdefs.h <<_ACEOF
20541 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20542 _ACEOF
20543
20544
20545 if test "$ac_cv_sizeof_long_long" != "0"; then
20546 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
20547 fi
20548 ;;
20549 * )
20550 echo "$as_me:$LINENO: checking for long long" >&5
20551 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20552 if test "${ac_cv_type_long_long+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20554 else
20555 cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h. */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 $ac_includes_default
20562 int
20563 main ()
20564 {
20565 if ((long long *) 0)
20566 return 0;
20567 if (sizeof (long long))
20568 return 0;
20569 ;
20570 return 0;
20571 }
20572 _ACEOF
20573 rm -f conftest.$ac_objext
20574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20575 (eval $ac_compile) 2>conftest.er1
20576 ac_status=$?
20577 grep -v '^ *+' conftest.er1 >conftest.err
20578 rm -f conftest.er1
20579 cat conftest.err >&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } &&
20582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; } &&
20588 { ac_try='test -s conftest.$ac_objext'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 ac_cv_type_long_long=yes
20595 else
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599 ac_cv_type_long_long=no
20600 fi
20601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20602 fi
20603 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20604 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20605
20606 echo "$as_me:$LINENO: checking size of long long" >&5
20607 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20608 if test "${ac_cv_sizeof_long_long+set}" = set; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20610 else
20611 if test "$ac_cv_type_long_long" = yes; then
20612 # The cast to unsigned long works around a bug in the HP C Compiler
20613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20615 # This bug is HP SR number 8606223364.
20616 if test "$cross_compiling" = yes; then
20617 # Depending upon the size, compute the lo and hi bounds.
20618 cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h. */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 $ac_includes_default
20625 int
20626 main ()
20627 {
20628 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20629 test_array [0] = 0
20630
20631 ;
20632 return 0;
20633 }
20634 _ACEOF
20635 rm -f conftest.$ac_objext
20636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20637 (eval $ac_compile) 2>conftest.er1
20638 ac_status=$?
20639 grep -v '^ *+' conftest.er1 >conftest.err
20640 rm -f conftest.er1
20641 cat conftest.err >&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } &&
20644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; } &&
20650 { ac_try='test -s conftest.$ac_objext'
20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 ac_lo=0 ac_mid=0
20657 while :; do
20658 cat >conftest.$ac_ext <<_ACEOF
20659 /* confdefs.h. */
20660 _ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20664 $ac_includes_default
20665 int
20666 main ()
20667 {
20668 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20669 test_array [0] = 0
20670
20671 ;
20672 return 0;
20673 }
20674 _ACEOF
20675 rm -f conftest.$ac_objext
20676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20677 (eval $ac_compile) 2>conftest.er1
20678 ac_status=$?
20679 grep -v '^ *+' conftest.er1 >conftest.err
20680 rm -f conftest.er1
20681 cat conftest.err >&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } &&
20684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest.$ac_objext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 ac_hi=$ac_mid; break
20697 else
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701 ac_lo=`expr $ac_mid + 1`
20702 if test $ac_lo -le $ac_mid; then
20703 ac_lo= ac_hi=
20704 break
20705 fi
20706 ac_mid=`expr 2 '*' $ac_mid + 1`
20707 fi
20708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20709 done
20710 else
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20713
20714 cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h. */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 $ac_includes_default
20721 int
20722 main ()
20723 {
20724 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20725 test_array [0] = 0
20726
20727 ;
20728 return 0;
20729 }
20730 _ACEOF
20731 rm -f conftest.$ac_objext
20732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20733 (eval $ac_compile) 2>conftest.er1
20734 ac_status=$?
20735 grep -v '^ *+' conftest.er1 >conftest.err
20736 rm -f conftest.er1
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } &&
20740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest.$ac_objext'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20749 ac_status=$?
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 ac_hi=-1 ac_mid=-1
20753 while :; do
20754 cat >conftest.$ac_ext <<_ACEOF
20755 /* confdefs.h. */
20756 _ACEOF
20757 cat confdefs.h >>conftest.$ac_ext
20758 cat >>conftest.$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20760 $ac_includes_default
20761 int
20762 main ()
20763 {
20764 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20765 test_array [0] = 0
20766
20767 ;
20768 return 0;
20769 }
20770 _ACEOF
20771 rm -f conftest.$ac_objext
20772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20773 (eval $ac_compile) 2>conftest.er1
20774 ac_status=$?
20775 grep -v '^ *+' conftest.er1 >conftest.err
20776 rm -f conftest.er1
20777 cat conftest.err >&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } &&
20780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20783 ac_status=$?
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; } &&
20786 { ac_try='test -s conftest.$ac_objext'
20787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20792 ac_lo=$ac_mid; break
20793 else
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796
20797 ac_hi=`expr '(' $ac_mid ')' - 1`
20798 if test $ac_mid -le $ac_hi; then
20799 ac_lo= ac_hi=
20800 break
20801 fi
20802 ac_mid=`expr 2 '*' $ac_mid`
20803 fi
20804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20805 done
20806 else
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20809
20810 ac_lo= ac_hi=
20811 fi
20812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20813 fi
20814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20815 # Binary search between lo and hi bounds.
20816 while test "x$ac_lo" != "x$ac_hi"; do
20817 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h. */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 $ac_includes_default
20825 int
20826 main ()
20827 {
20828 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20829 test_array [0] = 0
20830
20831 ;
20832 return 0;
20833 }
20834 _ACEOF
20835 rm -f conftest.$ac_objext
20836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20837 (eval $ac_compile) 2>conftest.er1
20838 ac_status=$?
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
20844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest.$ac_objext'
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20853 ac_status=$?
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; }; then
20856 ac_hi=$ac_mid
20857 else
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20860
20861 ac_lo=`expr '(' $ac_mid ')' + 1`
20862 fi
20863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20864 done
20865 case $ac_lo in
20866 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20867 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20868 See \`config.log' for more details." >&5
20869 echo "$as_me: error: cannot compute sizeof (long long), 77
20870 See \`config.log' for more details." >&2;}
20871 { (exit 1); exit 1; }; } ;;
20872 esac
20873 else
20874 if test "$cross_compiling" = yes; then
20875 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20876 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20877 { (exit 1); exit 1; }; }
20878 else
20879 cat >conftest.$ac_ext <<_ACEOF
20880 /* confdefs.h. */
20881 _ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20885 $ac_includes_default
20886 long longval () { return (long) (sizeof (long long)); }
20887 unsigned long ulongval () { return (long) (sizeof (long long)); }
20888 #include <stdio.h>
20889 #include <stdlib.h>
20890 int
20891 main ()
20892 {
20893
20894 FILE *f = fopen ("conftest.val", "w");
20895 if (! f)
20896 exit (1);
20897 if (((long) (sizeof (long long))) < 0)
20898 {
20899 long i = longval ();
20900 if (i != ((long) (sizeof (long long))))
20901 exit (1);
20902 fprintf (f, "%ld\n", i);
20903 }
20904 else
20905 {
20906 unsigned long i = ulongval ();
20907 if (i != ((long) (sizeof (long long))))
20908 exit (1);
20909 fprintf (f, "%lu\n", i);
20910 }
20911 exit (ferror (f) || fclose (f) != 0);
20912
20913 ;
20914 return 0;
20915 }
20916 _ACEOF
20917 rm -f conftest$ac_exeext
20918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20919 (eval $ac_link) 2>&5
20920 ac_status=$?
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 ac_cv_sizeof_long_long=`cat conftest.val`
20929 else
20930 echo "$as_me: program exited with status $ac_status" >&5
20931 echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20933
20934 ( exit $ac_status )
20935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20936 See \`config.log' for more details." >&5
20937 echo "$as_me: error: cannot compute sizeof (long long), 77
20938 See \`config.log' for more details." >&2;}
20939 { (exit 1); exit 1; }; }
20940 fi
20941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20942 fi
20943 fi
20944 rm -f conftest.val
20945 else
20946 ac_cv_sizeof_long_long=0
20947 fi
20948 fi
20949 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20950 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20951 cat >>confdefs.h <<_ACEOF
20952 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20953 _ACEOF
20954
20955
20956 esac
20957
20958 echo "$as_me:$LINENO: checking for wchar_t" >&5
20959 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20960 if test "${ac_cv_type_wchar_t+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20962 else
20963 cat >conftest.$ac_ext <<_ACEOF
20964 /* confdefs.h. */
20965 _ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20969
20970 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20971 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20972 # error "fake wchar_t"
20973 #endif
20974 #ifdef HAVE_WCHAR_H
20975 # ifdef __CYGWIN__
20976 # include <stddef.h>
20977 # endif
20978 # include <wchar.h>
20979 #endif
20980 #ifdef HAVE_STDLIB_H
20981 # include <stdlib.h>
20982 #endif
20983 #include <stdio.h>
20984
20985
20986
20987 int
20988 main ()
20989 {
20990 if ((wchar_t *) 0)
20991 return 0;
20992 if (sizeof (wchar_t))
20993 return 0;
20994 ;
20995 return 0;
20996 }
20997 _ACEOF
20998 rm -f conftest.$ac_objext
20999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000 (eval $ac_compile) 2>conftest.er1
21001 ac_status=$?
21002 grep -v '^ *+' conftest.er1 >conftest.err
21003 rm -f conftest.er1
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
21007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; } &&
21013 { ac_try='test -s conftest.$ac_objext'
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
21019 ac_cv_type_wchar_t=yes
21020 else
21021 echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21023
21024 ac_cv_type_wchar_t=no
21025 fi
21026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21027 fi
21028 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21029 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21030
21031 echo "$as_me:$LINENO: checking size of wchar_t" >&5
21032 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21033 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036 if test "$ac_cv_type_wchar_t" = yes; then
21037 # The cast to unsigned long works around a bug in the HP C Compiler
21038 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21039 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21040 # This bug is HP SR number 8606223364.
21041 if test "$cross_compiling" = yes; then
21042 # Depending upon the size, compute the lo and hi bounds.
21043 cat >conftest.$ac_ext <<_ACEOF
21044 /* confdefs.h. */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049
21050 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21051 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21052 # error "fake wchar_t"
21053 #endif
21054 #ifdef HAVE_WCHAR_H
21055 # ifdef __CYGWIN__
21056 # include <stddef.h>
21057 # endif
21058 # include <wchar.h>
21059 #endif
21060 #ifdef HAVE_STDLIB_H
21061 # include <stdlib.h>
21062 #endif
21063 #include <stdio.h>
21064
21065
21066
21067 int
21068 main ()
21069 {
21070 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21071 test_array [0] = 0
21072
21073 ;
21074 return 0;
21075 }
21076 _ACEOF
21077 rm -f conftest.$ac_objext
21078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21079 (eval $ac_compile) 2>conftest.er1
21080 ac_status=$?
21081 grep -v '^ *+' conftest.er1 >conftest.err
21082 rm -f conftest.er1
21083 cat conftest.err >&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } &&
21086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest.$ac_objext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_lo=0 ac_mid=0
21099 while :; do
21100 cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h. */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21106
21107 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21108 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21109 # error "fake wchar_t"
21110 #endif
21111 #ifdef HAVE_WCHAR_H
21112 # ifdef __CYGWIN__
21113 # include <stddef.h>
21114 # endif
21115 # include <wchar.h>
21116 #endif
21117 #ifdef HAVE_STDLIB_H
21118 # include <stdlib.h>
21119 #endif
21120 #include <stdio.h>
21121
21122
21123
21124 int
21125 main ()
21126 {
21127 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21128 test_array [0] = 0
21129
21130 ;
21131 return 0;
21132 }
21133 _ACEOF
21134 rm -f conftest.$ac_objext
21135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21136 (eval $ac_compile) 2>conftest.er1
21137 ac_status=$?
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } &&
21143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; } &&
21149 { ac_try='test -s conftest.$ac_objext'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_hi=$ac_mid; break
21156 else
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21159
21160 ac_lo=`expr $ac_mid + 1`
21161 if test $ac_lo -le $ac_mid; then
21162 ac_lo= ac_hi=
21163 break
21164 fi
21165 ac_mid=`expr 2 '*' $ac_mid + 1`
21166 fi
21167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21168 done
21169 else
21170 echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21172
21173 cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h. */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21179
21180 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21181 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21182 # error "fake wchar_t"
21183 #endif
21184 #ifdef HAVE_WCHAR_H
21185 # ifdef __CYGWIN__
21186 # include <stddef.h>
21187 # endif
21188 # include <wchar.h>
21189 #endif
21190 #ifdef HAVE_STDLIB_H
21191 # include <stdlib.h>
21192 #endif
21193 #include <stdio.h>
21194
21195
21196
21197 int
21198 main ()
21199 {
21200 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21201 test_array [0] = 0
21202
21203 ;
21204 return 0;
21205 }
21206 _ACEOF
21207 rm -f conftest.$ac_objext
21208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21209 (eval $ac_compile) 2>conftest.er1
21210 ac_status=$?
21211 grep -v '^ *+' conftest.er1 >conftest.err
21212 rm -f conftest.er1
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
21216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218 (eval $ac_try) 2>&5
21219 ac_status=$?
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); }; } &&
21222 { ac_try='test -s conftest.$ac_objext'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; }; then
21228 ac_hi=-1 ac_mid=-1
21229 while :; do
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h. */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236
21237 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21238 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21239 # error "fake wchar_t"
21240 #endif
21241 #ifdef HAVE_WCHAR_H
21242 # ifdef __CYGWIN__
21243 # include <stddef.h>
21244 # endif
21245 # include <wchar.h>
21246 #endif
21247 #ifdef HAVE_STDLIB_H
21248 # include <stdlib.h>
21249 #endif
21250 #include <stdio.h>
21251
21252
21253
21254 int
21255 main ()
21256 {
21257 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21258 test_array [0] = 0
21259
21260 ;
21261 return 0;
21262 }
21263 _ACEOF
21264 rm -f conftest.$ac_objext
21265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21266 (eval $ac_compile) 2>conftest.er1
21267 ac_status=$?
21268 grep -v '^ *+' conftest.er1 >conftest.err
21269 rm -f conftest.er1
21270 cat conftest.err >&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); } &&
21273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; } &&
21279 { ac_try='test -s conftest.$ac_objext'
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21285 ac_lo=$ac_mid; break
21286 else
21287 echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21289
21290 ac_hi=`expr '(' $ac_mid ')' - 1`
21291 if test $ac_mid -le $ac_hi; then
21292 ac_lo= ac_hi=
21293 break
21294 fi
21295 ac_mid=`expr 2 '*' $ac_mid`
21296 fi
21297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21298 done
21299 else
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303 ac_lo= ac_hi=
21304 fi
21305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21306 fi
21307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21308 # Binary search between lo and hi bounds.
21309 while test "x$ac_lo" != "x$ac_hi"; do
21310 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21311 cat >conftest.$ac_ext <<_ACEOF
21312 /* confdefs.h. */
21313 _ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h. */
21317
21318 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21319 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21320 # error "fake wchar_t"
21321 #endif
21322 #ifdef HAVE_WCHAR_H
21323 # ifdef __CYGWIN__
21324 # include <stddef.h>
21325 # endif
21326 # include <wchar.h>
21327 #endif
21328 #ifdef HAVE_STDLIB_H
21329 # include <stdlib.h>
21330 #endif
21331 #include <stdio.h>
21332
21333
21334
21335 int
21336 main ()
21337 {
21338 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21339 test_array [0] = 0
21340
21341 ;
21342 return 0;
21343 }
21344 _ACEOF
21345 rm -f conftest.$ac_objext
21346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21347 (eval $ac_compile) 2>conftest.er1
21348 ac_status=$?
21349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } &&
21354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21357 ac_status=$?
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; } &&
21360 { ac_try='test -s conftest.$ac_objext'
21361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21363 ac_status=$?
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_hi=$ac_mid
21367 else
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21370
21371 ac_lo=`expr '(' $ac_mid ')' + 1`
21372 fi
21373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21374 done
21375 case $ac_lo in
21376 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21377 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21378 See \`config.log' for more details." >&5
21379 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21380 See \`config.log' for more details." >&2;}
21381 { (exit 1); exit 1; }; } ;;
21382 esac
21383 else
21384 if test "$cross_compiling" = yes; then
21385 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21386 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21387 { (exit 1); exit 1; }; }
21388 else
21389 cat >conftest.$ac_ext <<_ACEOF
21390 /* confdefs.h. */
21391 _ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21395
21396 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21397 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21398 # error "fake wchar_t"
21399 #endif
21400 #ifdef HAVE_WCHAR_H
21401 # ifdef __CYGWIN__
21402 # include <stddef.h>
21403 # endif
21404 # include <wchar.h>
21405 #endif
21406 #ifdef HAVE_STDLIB_H
21407 # include <stdlib.h>
21408 #endif
21409 #include <stdio.h>
21410
21411
21412
21413 long longval () { return (long) (sizeof (wchar_t)); }
21414 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21415 #include <stdio.h>
21416 #include <stdlib.h>
21417 int
21418 main ()
21419 {
21420
21421 FILE *f = fopen ("conftest.val", "w");
21422 if (! f)
21423 exit (1);
21424 if (((long) (sizeof (wchar_t))) < 0)
21425 {
21426 long i = longval ();
21427 if (i != ((long) (sizeof (wchar_t))))
21428 exit (1);
21429 fprintf (f, "%ld\n", i);
21430 }
21431 else
21432 {
21433 unsigned long i = ulongval ();
21434 if (i != ((long) (sizeof (wchar_t))))
21435 exit (1);
21436 fprintf (f, "%lu\n", i);
21437 }
21438 exit (ferror (f) || fclose (f) != 0);
21439
21440 ;
21441 return 0;
21442 }
21443 _ACEOF
21444 rm -f conftest$ac_exeext
21445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21446 (eval $ac_link) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; }; then
21455 ac_cv_sizeof_wchar_t=`cat conftest.val`
21456 else
21457 echo "$as_me: program exited with status $ac_status" >&5
21458 echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21460
21461 ( exit $ac_status )
21462 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21463 See \`config.log' for more details." >&5
21464 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21465 See \`config.log' for more details." >&2;}
21466 { (exit 1); exit 1; }; }
21467 fi
21468 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21469 fi
21470 fi
21471 rm -f conftest.val
21472 else
21473 ac_cv_sizeof_wchar_t=0
21474 fi
21475 fi
21476 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21477 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21478 cat >>confdefs.h <<_ACEOF
21479 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21480 _ACEOF
21481
21482
21483 if test "$ac_cv_sizeof_wchar_t" != "0"; then
21484 wxUSE_WCHAR_T=yes
21485 else
21486 wxUSE_WCHAR_T=no
21487 fi
21488
21489 echo "$as_me:$LINENO: checking for va_copy" >&5
21490 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21491 if test "${wx_cv_func_va_copy+set}" = set; then
21492 echo $ECHO_N "(cached) $ECHO_C" >&6
21493 else
21494
21495 cat >conftest.$ac_ext <<_ACEOF
21496
21497 #include <stdarg.h>
21498 void foo(char *f, ...)
21499 {
21500 va_list ap1, ap2;
21501 va_start(ap1, f);
21502 va_copy(ap2, ap1);
21503 va_end(ap2);
21504 va_end(ap1);
21505 }
21506 int main()
21507 {
21508 foo("hi", 17);
21509 return 0;
21510 }
21511 _ACEOF
21512 rm -f conftest.$ac_objext conftest$ac_exeext
21513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21514 (eval $ac_link) 2>conftest.er1
21515 ac_status=$?
21516 grep -v '^ *+' conftest.er1 >conftest.err
21517 rm -f conftest.er1
21518 cat conftest.err >&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } &&
21521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
21524 ac_status=$?
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; } &&
21527 { ac_try='test -s conftest$ac_exeext'
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21530 ac_status=$?
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; }; then
21533 wx_cv_func_va_copy=yes
21534 else
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538 wx_cv_func_va_copy=no
21539
21540 fi
21541 rm -f conftest.err conftest.$ac_objext \
21542 conftest$ac_exeext conftest.$ac_ext
21543
21544
21545 fi
21546 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21547 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21548
21549 if test $wx_cv_func_va_copy = "yes"; then
21550 cat >>confdefs.h <<\_ACEOF
21551 #define HAVE_VA_COPY 1
21552 _ACEOF
21553
21554 else
21555 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21556 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21557 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21558 echo $ECHO_N "(cached) $ECHO_C" >&6
21559 else
21560
21561 if test "$cross_compiling" = yes; then
21562 wx_cv_type_va_list_lvalue=yes
21563
21564 else
21565 cat >conftest.$ac_ext <<_ACEOF
21566
21567 #include <stdarg.h>
21568 int foo(char *f, ...)
21569 {
21570 va_list ap1, ap2;
21571 va_start(ap1, f);
21572 ap2 = ap1;
21573 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21574 return 1;
21575 va_end(ap2);
21576 va_end(ap1);
21577 return 0;
21578 }
21579 int main()
21580 {
21581 return foo("hi", 17);
21582 }
21583 _ACEOF
21584 rm -f conftest$ac_exeext
21585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21586 (eval $ac_link) 2>&5
21587 ac_status=$?
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21592 ac_status=$?
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; }; then
21595 wx_cv_type_va_list_lvalue=yes
21596 else
21597 echo "$as_me: program exited with status $ac_status" >&5
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21600
21601 ( exit $ac_status )
21602 wx_cv_type_va_list_lvalue=no
21603 fi
21604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21605 fi
21606
21607
21608 fi
21609 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21610 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21611
21612 if test $wx_cv_type_va_list_lvalue != "yes"; then
21613 cat >>confdefs.h <<\_ACEOF
21614 #define VA_LIST_IS_ARRAY 1
21615 _ACEOF
21616
21617 fi
21618 fi
21619
21620 # Check whether --enable-largefile or --disable-largefile was given.
21621 if test "${enable_largefile+set}" = set; then
21622 enableval="$enable_largefile"
21623
21624 fi;
21625 if test "$enable_largefile" != no; then
21626 wx_largefile=no
21627
21628 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21629 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21630 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21632 else
21633
21634 cat >conftest.$ac_ext <<_ACEOF
21635 /* confdefs.h. */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640 #define _FILE_OFFSET_BITS 64
21641 #include <sys/types.h>
21642 int
21643 main ()
21644 {
21645 typedef struct {
21646 unsigned int field: sizeof(off_t) == 8;
21647 } wxlf;
21648
21649 ;
21650 return 0;
21651 }
21652 _ACEOF
21653 rm -f conftest.$ac_objext
21654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21655 (eval $ac_compile) 2>conftest.er1
21656 ac_status=$?
21657 grep -v '^ *+' conftest.er1 >conftest.err
21658 rm -f conftest.er1
21659 cat conftest.err >&5
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } &&
21662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21665 ac_status=$?
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; } &&
21668 { ac_try='test -s conftest.$ac_objext'
21669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670 (eval $ac_try) 2>&5
21671 ac_status=$?
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; }; then
21674 ac_cv_sys_file_offset_bits=64
21675 else
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21678
21679 ac_cv_sys_file_offset_bits=no
21680 fi
21681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21682
21683
21684 fi
21685 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21686 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21687
21688 if test "$ac_cv_sys_file_offset_bits" != no; then
21689 wx_largefile=yes
21690 cat >>confdefs.h <<_ACEOF
21691 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21692 _ACEOF
21693
21694 fi
21695
21696 if test "x$wx_largefile" != "xyes"; then
21697
21698 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21699 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21700 if test "${ac_cv_sys_large_files+set}" = set; then
21701 echo $ECHO_N "(cached) $ECHO_C" >&6
21702 else
21703
21704 cat >conftest.$ac_ext <<_ACEOF
21705 /* confdefs.h. */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h. */
21710 #define _LARGE_FILES 1
21711 #include <sys/types.h>
21712 int
21713 main ()
21714 {
21715 typedef struct {
21716 unsigned int field: sizeof(off_t) == 8;
21717 } wxlf;
21718
21719 ;
21720 return 0;
21721 }
21722 _ACEOF
21723 rm -f conftest.$ac_objext
21724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21725 (eval $ac_compile) 2>conftest.er1
21726 ac_status=$?
21727 grep -v '^ *+' conftest.er1 >conftest.err
21728 rm -f conftest.er1
21729 cat conftest.err >&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } &&
21732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; } &&
21738 { ac_try='test -s conftest.$ac_objext'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; }; then
21744 ac_cv_sys_large_files=1
21745 else
21746 echo "$as_me: failed program was:" >&5
21747 sed 's/^/| /' conftest.$ac_ext >&5
21748
21749 ac_cv_sys_large_files=no
21750 fi
21751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21752
21753
21754 fi
21755 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21756 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21757
21758 if test "$ac_cv_sys_large_files" != no; then
21759 wx_largefile=yes
21760 cat >>confdefs.h <<_ACEOF
21761 #define _LARGE_FILES $ac_cv_sys_large_files
21762 _ACEOF
21763
21764 fi
21765
21766 fi
21767
21768 echo "$as_me:$LINENO: checking if large file support is available" >&5
21769 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21770 if test "x$wx_largefile" = "xyes"; then
21771 cat >>confdefs.h <<\_ACEOF
21772 #define HAVE_LARGEFILE_SUPPORT 1
21773 _ACEOF
21774
21775 fi
21776 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21777 echo "${ECHO_T}$wx_largefile" >&6
21778 fi
21779
21780
21781 if test "x$wx_largefile" = "xyes"; then
21782 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
21783 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
21784
21785 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21786 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21787 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21788 if test "${wx_cv_STDC_EXT_required+set}" = set; then
21789 echo $ECHO_N "(cached) $ECHO_C" >&6
21790 else
21791
21792 cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h. */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798
21799 int
21800 main ()
21801 {
21802
21803 #ifndef __STDC_EXT__
21804 choke me
21805 #endif
21806
21807 ;
21808 return 0;
21809 }
21810 _ACEOF
21811 rm -f conftest.$ac_objext
21812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21813 (eval $ac_compile) 2>conftest.er1
21814 ac_status=$?
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } &&
21820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21823 ac_status=$?
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; } &&
21826 { ac_try='test -s conftest.$ac_objext'
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }; then
21832 wx_cv_STDC_EXT_required=no
21833 else
21834 echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21836
21837 wx_cv_STDC_EXT_required=yes
21838
21839 fi
21840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21841
21842
21843 fi
21844 echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21845 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21846 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
21847 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
21848 fi
21849 fi
21850 else
21851 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
21852 fi
21853 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21854 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21855 if test "${ac_cv_sys_largefile_source+set}" = set; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 else
21858 while :; do
21859 ac_cv_sys_largefile_source=no
21860 cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h. */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 #include <stdio.h>
21867 int
21868 main ()
21869 {
21870 return !fseeko;
21871 ;
21872 return 0;
21873 }
21874 _ACEOF
21875 rm -f conftest.$ac_objext
21876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21877 (eval $ac_compile) 2>conftest.er1
21878 ac_status=$?
21879 grep -v '^ *+' conftest.er1 >conftest.err
21880 rm -f conftest.er1
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } &&
21884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } &&
21890 { ac_try='test -s conftest.$ac_objext'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21893 ac_status=$?
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
21896 break
21897 else
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901 fi
21902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21903 cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h. */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21909 #define _LARGEFILE_SOURCE 1
21910 #include <stdio.h>
21911 int
21912 main ()
21913 {
21914 return !fseeko;
21915 ;
21916 return 0;
21917 }
21918 _ACEOF
21919 rm -f conftest.$ac_objext
21920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21921 (eval $ac_compile) 2>conftest.er1
21922 ac_status=$?
21923 grep -v '^ *+' conftest.er1 >conftest.err
21924 rm -f conftest.er1
21925 cat conftest.err >&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } &&
21928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; } &&
21934 { ac_try='test -s conftest.$ac_objext'
21935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21937 ac_status=$?
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; }; then
21940 ac_cv_sys_largefile_source=1; break
21941 else
21942 echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21944
21945 fi
21946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21947 break
21948 done
21949 fi
21950 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21951 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21952 if test "$ac_cv_sys_largefile_source" != no; then
21953
21954 cat >>confdefs.h <<_ACEOF
21955 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21956 _ACEOF
21957
21958 fi
21959 rm -f conftest*
21960
21961 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21962 # in glibc 2.1.3, but that breaks too many other things.
21963 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21964 echo "$as_me:$LINENO: checking for fseeko" >&5
21965 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21966 if test "${ac_cv_func_fseeko+set}" = set; then
21967 echo $ECHO_N "(cached) $ECHO_C" >&6
21968 else
21969 cat >conftest.$ac_ext <<_ACEOF
21970 /* confdefs.h. */
21971 _ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h. */
21975 #include <stdio.h>
21976 int
21977 main ()
21978 {
21979 return fseeko && fseeko (stdin, 0, 0);
21980 ;
21981 return 0;
21982 }
21983 _ACEOF
21984 rm -f conftest.$ac_objext conftest$ac_exeext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21986 (eval $ac_link) 2>conftest.er1
21987 ac_status=$?
21988 grep -v '^ *+' conftest.er1 >conftest.err
21989 rm -f conftest.er1
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } &&
21993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21995 (eval $ac_try) 2>&5
21996 ac_status=$?
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); }; } &&
21999 { ac_try='test -s conftest$ac_exeext'
22000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001 (eval $ac_try) 2>&5
22002 ac_status=$?
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); }; }; then
22005 ac_cv_func_fseeko=yes
22006 else
22007 echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22009
22010 ac_cv_func_fseeko=no
22011 fi
22012 rm -f conftest.err conftest.$ac_objext \
22013 conftest$ac_exeext conftest.$ac_ext
22014 fi
22015 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22016 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22017 if test $ac_cv_func_fseeko = yes; then
22018
22019 cat >>confdefs.h <<\_ACEOF
22020 #define HAVE_FSEEKO 1
22021 _ACEOF
22022
22023 fi
22024
22025 if test "$ac_cv_sys_largefile_source" != no; then
22026 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
22027 fi
22028 fi
22029
22030 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22031 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22032 if test "${ac_cv_c_bigendian+set}" = set; then
22033 echo $ECHO_N "(cached) $ECHO_C" >&6
22034 else
22035 ac_cv_c_bigendian=unknown
22036 # See if sys/param.h defines the BYTE_ORDER macro.
22037 cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h. */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22043 #include <sys/types.h>
22044 #include <sys/param.h>
22045 int
22046 main ()
22047 {
22048
22049 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22050 bogus endian macros
22051 #endif
22052 ;
22053 return 0;
22054 }
22055 _ACEOF
22056 rm -f conftest.$ac_objext
22057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22058 (eval $ac_compile) 2>conftest.er1
22059 ac_status=$?
22060 grep -v '^ *+' conftest.er1 >conftest.err
22061 rm -f conftest.er1
22062 cat conftest.err >&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } &&
22065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22067 (eval $ac_try) 2>&5
22068 ac_status=$?
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); }; } &&
22071 { ac_try='test -s conftest.$ac_objext'
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22074 ac_status=$?
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; }; then
22077 # It does; now see whether it defined to BIG_ENDIAN or not.
22078 cat >conftest.$ac_ext <<_ACEOF
22079 /* confdefs.h. */
22080 _ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h. */
22084 #include <sys/types.h>
22085 #include <sys/param.h>
22086 int
22087 main ()
22088 {
22089
22090 #if BYTE_ORDER != BIG_ENDIAN
22091 not big endian
22092 #endif
22093 ;
22094 return 0;
22095 }
22096 _ACEOF
22097 rm -f conftest.$ac_objext
22098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22099 (eval $ac_compile) 2>conftest.er1
22100 ac_status=$?
22101 grep -v '^ *+' conftest.er1 >conftest.err
22102 rm -f conftest.er1
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } &&
22106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest.$ac_objext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 ac_cv_c_bigendian=yes
22119 else
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123 ac_cv_c_bigendian=no
22124 fi
22125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22126 else
22127 echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22129
22130 fi
22131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22132 if test $ac_cv_c_bigendian = unknown; then
22133 if test "$cross_compiling" = yes; then
22134 ac_cv_c_bigendian=unknown
22135 else
22136 cat >conftest.$ac_ext <<_ACEOF
22137 /* confdefs.h. */
22138 _ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22142 main () {
22143 /* Are we little or big endian? From Harbison&Steele. */
22144 union
22145 {
22146 long l;
22147 char c[sizeof (long)];
22148 } u;
22149 u.l = 1;
22150 exit (u.c[sizeof (long) - 1] == 1);
22151 }
22152 _ACEOF
22153 rm -f conftest$ac_exeext
22154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22155 (eval $ac_link) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160 (eval $ac_try) 2>&5
22161 ac_status=$?
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; }; then
22164 ac_cv_c_bigendian=no
22165 else
22166 echo "$as_me: program exited with status $ac_status" >&5
22167 echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22169
22170 ( exit $ac_status )
22171 ac_cv_c_bigendian=yes
22172 fi
22173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22174 fi
22175 fi
22176 fi
22177 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22178 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22179 if test $ac_cv_c_bigendian = unknown; then
22180 { 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
22181 echo "$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;}
22182 fi
22183 if test $ac_cv_c_bigendian = yes; then
22184 cat >>confdefs.h <<\_ACEOF
22185 #define WORDS_BIGENDIAN 1
22186 _ACEOF
22187
22188 fi
22189
22190
22191
22192
22193
22194 ac_ext=cc
22195 ac_cpp='$CXXCPP $CPPFLAGS'
22196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22199
22200
22201
22202 for ac_header in iostream
22203 do
22204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22206 echo "$as_me:$LINENO: checking for $ac_header" >&5
22207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22210 fi
22211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22213 else
22214 # Is the header compilable?
22215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22217 cat >conftest.$ac_ext <<_ACEOF
22218 /* confdefs.h. */
22219 _ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22223 $ac_includes_default
22224 #include <$ac_header>
22225 _ACEOF
22226 rm -f conftest.$ac_objext
22227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22228 (eval $ac_compile) 2>conftest.er1
22229 ac_status=$?
22230 grep -v '^ *+' conftest.er1 >conftest.err
22231 rm -f conftest.er1
22232 cat conftest.err >&5
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } &&
22235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22237 (eval $ac_try) 2>&5
22238 ac_status=$?
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); }; } &&
22241 { ac_try='test -s conftest.$ac_objext'
22242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243 (eval $ac_try) 2>&5
22244 ac_status=$?
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); }; }; then
22247 ac_header_compiler=yes
22248 else
22249 echo "$as_me: failed program was:" >&5
22250 sed 's/^/| /' conftest.$ac_ext >&5
22251
22252 ac_header_compiler=no
22253 fi
22254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22256 echo "${ECHO_T}$ac_header_compiler" >&6
22257
22258 # Is the header present?
22259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22261 cat >conftest.$ac_ext <<_ACEOF
22262 /* confdefs.h. */
22263 _ACEOF
22264 cat confdefs.h >>conftest.$ac_ext
22265 cat >>conftest.$ac_ext <<_ACEOF
22266 /* end confdefs.h. */
22267 #include <$ac_header>
22268 _ACEOF
22269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22271 ac_status=$?
22272 grep -v '^ *+' conftest.er1 >conftest.err
22273 rm -f conftest.er1
22274 cat conftest.err >&5
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); } >/dev/null; then
22277 if test -s conftest.err; then
22278 ac_cpp_err=$ac_cxx_preproc_warn_flag
22279 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22280 else
22281 ac_cpp_err=
22282 fi
22283 else
22284 ac_cpp_err=yes
22285 fi
22286 if test -z "$ac_cpp_err"; then
22287 ac_header_preproc=yes
22288 else
22289 echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22291
22292 ac_header_preproc=no
22293 fi
22294 rm -f conftest.err conftest.$ac_ext
22295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22296 echo "${ECHO_T}$ac_header_preproc" >&6
22297
22298 # So? What about this header?
22299 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22300 yes:no: )
22301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22305 ac_header_preproc=yes
22306 ;;
22307 no:yes:* )
22308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22320 (
22321 cat <<\_ASBOX
22322 ## ----------------------------------------- ##
22323 ## Report this to wx-dev@lists.wxwidgets.org ##
22324 ## ----------------------------------------- ##
22325 _ASBOX
22326 ) |
22327 sed "s/^/$as_me: WARNING: /" >&2
22328 ;;
22329 esac
22330 echo "$as_me:$LINENO: checking for $ac_header" >&5
22331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22333 echo $ECHO_N "(cached) $ECHO_C" >&6
22334 else
22335 eval "$as_ac_Header=\$ac_header_preproc"
22336 fi
22337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22339
22340 fi
22341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22342 cat >>confdefs.h <<_ACEOF
22343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22344 _ACEOF
22345
22346 fi
22347
22348 done
22349
22350
22351 if test "$ac_cv_header_iostream" = "yes" ; then
22352 :
22353 else
22354 cat >>confdefs.h <<\_ACEOF
22355 #define wxUSE_IOSTREAMH 1
22356 _ACEOF
22357
22358 fi
22359
22360 ac_ext=cc
22361 ac_cpp='$CXXCPP $CPPFLAGS'
22362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22365
22366
22367
22368
22369 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22370 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22371 if test "${wx_cv_cpp_bool+set}" = set; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22373 else
22374
22375
22376
22377 ac_ext=cc
22378 ac_cpp='$CXXCPP $CPPFLAGS'
22379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22382
22383
22384 cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h. */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22390
22391
22392 int
22393 main ()
22394 {
22395
22396 bool b = true;
22397
22398 return 0;
22399
22400 ;
22401 return 0;
22402 }
22403 _ACEOF
22404 rm -f conftest.$ac_objext
22405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22406 (eval $ac_compile) 2>conftest.er1
22407 ac_status=$?
22408 grep -v '^ *+' conftest.er1 >conftest.err
22409 rm -f conftest.er1
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } &&
22413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22416 ac_status=$?
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; } &&
22419 { ac_try='test -s conftest.$ac_objext'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }; then
22425
22426 wx_cv_cpp_bool=yes
22427
22428 else
22429 echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22431
22432
22433 wx_cv_cpp_bool=no
22434
22435
22436 fi
22437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22438
22439 ac_ext=cc
22440 ac_cpp='$CXXCPP $CPPFLAGS'
22441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22444
22445
22446 fi
22447 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22448 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22449
22450 if test "$wx_cv_cpp_bool" = "yes"; then
22451 cat >>confdefs.h <<\_ACEOF
22452 #define HAVE_BOOL 1
22453 _ACEOF
22454
22455 fi
22456
22457
22458
22459 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22460 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22461 if test "${wx_cv_explicit+set}" = set; then
22462 echo $ECHO_N "(cached) $ECHO_C" >&6
22463 else
22464
22465
22466
22467 ac_ext=cc
22468 ac_cpp='$CXXCPP $CPPFLAGS'
22469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22472
22473
22474 cat >conftest.$ac_ext <<_ACEOF
22475 /* confdefs.h. */
22476 _ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22480
22481 class Foo { public: explicit Foo(int) {} };
22482
22483 int
22484 main ()
22485 {
22486
22487 return 0;
22488
22489 ;
22490 return 0;
22491 }
22492 _ACEOF
22493 rm -f conftest.$ac_objext
22494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22495 (eval $ac_compile) 2>conftest.er1
22496 ac_status=$?
22497 grep -v '^ *+' conftest.er1 >conftest.err
22498 rm -f conftest.er1
22499 cat conftest.err >&5
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } &&
22502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504 (eval $ac_try) 2>&5
22505 ac_status=$?
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); }; } &&
22508 { ac_try='test -s conftest.$ac_objext'
22509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22510 (eval $ac_try) 2>&5
22511 ac_status=$?
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); }; }; then
22514
22515 cat >conftest.$ac_ext <<_ACEOF
22516 /* confdefs.h. */
22517 _ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22521
22522 class Foo { public: explicit Foo(int) {} };
22523 static void TakeFoo(const Foo& foo) { }
22524
22525 int
22526 main ()
22527 {
22528
22529 TakeFoo(17);
22530 return 0;
22531
22532 ;
22533 return 0;
22534 }
22535 _ACEOF
22536 rm -f conftest.$ac_objext
22537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22538 (eval $ac_compile) 2>conftest.er1
22539 ac_status=$?
22540 grep -v '^ *+' conftest.er1 >conftest.err
22541 rm -f conftest.er1
22542 cat conftest.err >&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } &&
22545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22547 (eval $ac_try) 2>&5
22548 ac_status=$?
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); }; } &&
22551 { ac_try='test -s conftest.$ac_objext'
22552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553 (eval $ac_try) 2>&5
22554 ac_status=$?
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; }; then
22557 wx_cv_explicit=no
22558 else
22559 echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22561
22562 wx_cv_explicit=yes
22563
22564 fi
22565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22566
22567 else
22568 echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22570
22571 wx_cv_explicit=no
22572
22573 fi
22574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22575
22576 ac_ext=cc
22577 ac_cpp='$CXXCPP $CPPFLAGS'
22578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22581
22582
22583 fi
22584 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22585 echo "${ECHO_T}$wx_cv_explicit" >&6
22586
22587 if test "$wx_cv_explicit" = "yes"; then
22588 cat >>confdefs.h <<\_ACEOF
22589 #define HAVE_EXPLICIT 1
22590 _ACEOF
22591
22592 fi
22593
22594
22595 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22596 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22597 if test "${ac_cv_cxx_const_cast+set}" = set; then
22598 echo $ECHO_N "(cached) $ECHO_C" >&6
22599 else
22600
22601
22602 ac_ext=cc
22603 ac_cpp='$CXXCPP $CPPFLAGS'
22604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22607
22608 cat >conftest.$ac_ext <<_ACEOF
22609 /* confdefs.h. */
22610 _ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h. */
22614
22615 int
22616 main ()
22617 {
22618 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22619 ;
22620 return 0;
22621 }
22622 _ACEOF
22623 rm -f conftest.$ac_objext
22624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22625 (eval $ac_compile) 2>conftest.er1
22626 ac_status=$?
22627 grep -v '^ *+' conftest.er1 >conftest.err
22628 rm -f conftest.er1
22629 cat conftest.err >&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } &&
22632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; } &&
22638 { ac_try='test -s conftest.$ac_objext'
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }; then
22644 ac_cv_cxx_const_cast=yes
22645 else
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22648
22649 ac_cv_cxx_const_cast=no
22650 fi
22651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22652 ac_ext=cc
22653 ac_cpp='$CXXCPP $CPPFLAGS'
22654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22657
22658
22659 fi
22660 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22661 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22662 if test "$ac_cv_cxx_const_cast" = yes; then
22663
22664 cat >>confdefs.h <<\_ACEOF
22665 #define HAVE_CONST_CAST
22666 _ACEOF
22667
22668 fi
22669
22670 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22671 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22672 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22673 echo $ECHO_N "(cached) $ECHO_C" >&6
22674 else
22675
22676
22677 ac_ext=cc
22678 ac_cpp='$CXXCPP $CPPFLAGS'
22679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22682
22683 cat >conftest.$ac_ext <<_ACEOF
22684 /* confdefs.h. */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h. */
22689 #include <typeinfo>
22690 class Base { public : Base () {} virtual void f () = 0;};
22691 class Derived : public Base { public : Derived () {} virtual void f () {} };
22692 class Unrelated { public : Unrelated () {} };
22693 int g (Unrelated&) { return 0; }
22694 int
22695 main ()
22696 {
22697
22698 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22699 ;
22700 return 0;
22701 }
22702 _ACEOF
22703 rm -f conftest.$ac_objext
22704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22705 (eval $ac_compile) 2>conftest.er1
22706 ac_status=$?
22707 grep -v '^ *+' conftest.er1 >conftest.err
22708 rm -f conftest.er1
22709 cat conftest.err >&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); } &&
22712 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714 (eval $ac_try) 2>&5
22715 ac_status=$?
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; } &&
22718 { ac_try='test -s conftest.$ac_objext'
22719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720 (eval $ac_try) 2>&5
22721 ac_status=$?
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); }; }; then
22724 ac_cv_cxx_reinterpret_cast=yes
22725 else
22726 echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.$ac_ext >&5
22728
22729 ac_cv_cxx_reinterpret_cast=no
22730 fi
22731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22732 ac_ext=cc
22733 ac_cpp='$CXXCPP $CPPFLAGS'
22734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22737
22738
22739 fi
22740 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22741 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22742 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22743
22744 cat >>confdefs.h <<\_ACEOF
22745 #define HAVE_REINTERPRET_CAST
22746 _ACEOF
22747
22748 fi
22749
22750 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22751 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22752 if test "${ac_cv_cxx_static_cast+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22754 else
22755
22756
22757 ac_ext=cc
22758 ac_cpp='$CXXCPP $CPPFLAGS'
22759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22762
22763 cat >conftest.$ac_ext <<_ACEOF
22764 /* confdefs.h. */
22765 _ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h. */
22769 #include <typeinfo>
22770 class Base { public : Base () {} virtual void f () = 0; };
22771 class Derived : public Base { public : Derived () {} virtual void f () {} };
22772 int g (Derived&) { return 0; }
22773 int
22774 main ()
22775 {
22776
22777 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22778 ;
22779 return 0;
22780 }
22781 _ACEOF
22782 rm -f conftest.$ac_objext
22783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22784 (eval $ac_compile) 2>conftest.er1
22785 ac_status=$?
22786 grep -v '^ *+' conftest.er1 >conftest.err
22787 rm -f conftest.er1
22788 cat conftest.err >&5
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } &&
22791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793 (eval $ac_try) 2>&5
22794 ac_status=$?
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); }; } &&
22797 { ac_try='test -s conftest.$ac_objext'
22798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22799 (eval $ac_try) 2>&5
22800 ac_status=$?
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); }; }; then
22803 ac_cv_cxx_static_cast=yes
22804 else
22805 echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22807
22808 ac_cv_cxx_static_cast=no
22809 fi
22810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22811 ac_ext=cc
22812 ac_cpp='$CXXCPP $CPPFLAGS'
22813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22816
22817
22818 fi
22819 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22820 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22821 if test "$ac_cv_cxx_static_cast" = yes; then
22822
22823 cat >>confdefs.h <<\_ACEOF
22824 #define HAVE_STATIC_CAST
22825 _ACEOF
22826
22827 fi
22828
22829
22830 if test "x$SUNCXX" = xyes; then
22831 CXXFLAGS="-features=tmplife $CXXFLAGS"
22832 fi
22833
22834 if test "x$SUNCC" = xyes; then
22835 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
22836 fi
22837
22838 if test "x$SGICC" = "xyes"; then
22839 CFLAGS="-woff 3970 $CFLAGS"
22840 fi
22841 if test "x$SGICXX" = "xyes"; then
22842 CXXFLAGS="-woff 3970 $CXXFLAGS"
22843 fi
22844
22845 if test "x$HPCC" = "xyes"; then
22846 CFLAGS="+W 2011,2450 $CFLAGS"
22847 fi
22848 if test "x$HPCXX" = "xyes"; then
22849 CXXFLAGS="+W 2340 $CXXFLAGS"
22850 fi
22851
22852 if test "x$COMPAQCXX" = "xyes"; then
22853 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22854 fi
22855
22856 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
22857 if test "$wxUSE_UNICODE" = "yes"; then
22858 std_string="std::wstring"
22859 char_type="wchar_t"
22860 else
22861 std_string="std::string"
22862 char_type="char"
22863 fi
22864
22865 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22866 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
22867 cat >conftest.$ac_ext <<_ACEOF
22868 /* confdefs.h. */
22869 _ACEOF
22870 cat confdefs.h >>conftest.$ac_ext
22871 cat >>conftest.$ac_ext <<_ACEOF
22872 /* end confdefs.h. */
22873 #include <string>
22874 int
22875 main ()
22876 {
22877 $std_string foo;
22878 ;
22879 return 0;
22880 }
22881 _ACEOF
22882 rm -f conftest.$ac_objext
22883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22884 (eval $ac_compile) 2>conftest.er1
22885 ac_status=$?
22886 grep -v '^ *+' conftest.er1 >conftest.err
22887 rm -f conftest.er1
22888 cat conftest.err >&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } &&
22891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22893 (eval $ac_try) 2>&5
22894 ac_status=$?
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); }; } &&
22897 { ac_try='test -s conftest.$ac_objext'
22898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22899 (eval $ac_try) 2>&5
22900 ac_status=$?
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); }; }; then
22903 echo "$as_me:$LINENO: result: yes" >&5
22904 echo "${ECHO_T}yes" >&6
22905 cat >>confdefs.h <<\_ACEOF
22906 #define HAVE_STD_WSTRING 1
22907 _ACEOF
22908
22909 else
22910 echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22912
22913 echo "$as_me:$LINENO: result: no" >&5
22914 echo "${ECHO_T}no" >&6
22915 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22916 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
22917 cat >conftest.$ac_ext <<_ACEOF
22918 /* confdefs.h. */
22919 _ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h. */
22923
22924 #ifdef HAVE_WCHAR_H
22925 # ifdef __CYGWIN__
22926 # include <stddef.h>
22927 # endif
22928 # include <wchar.h>
22929 #endif
22930 #ifdef HAVE_STDLIB_H
22931 # include <stdlib.h>
22932 #endif
22933 #include <stdio.h>
22934 #include <string>
22935
22936 int
22937 main ()
22938 {
22939 std::basic_string<$char_type> foo;
22940 const $char_type* dummy = foo.c_str();
22941 ;
22942 return 0;
22943 }
22944 _ACEOF
22945 rm -f conftest.$ac_objext
22946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22947 (eval $ac_compile) 2>conftest.er1
22948 ac_status=$?
22949 grep -v '^ *+' conftest.er1 >conftest.err
22950 rm -f conftest.er1
22951 cat conftest.err >&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); } &&
22954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22957 ac_status=$?
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; } &&
22960 { ac_try='test -s conftest.$ac_objext'
22961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962 (eval $ac_try) 2>&5
22963 ac_status=$?
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); }; }; then
22966 echo "$as_me:$LINENO: result: yes" >&5
22967 echo "${ECHO_T}yes" >&6
22968 else
22969 echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22971
22972 echo "$as_me:$LINENO: result: no" >&5
22973 echo "${ECHO_T}no" >&6
22974 if test "$wxUSE_STL" = "yes"; then
22975 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22976 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22977 { (exit 1); exit 1; }; }
22978 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22979 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22980 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
22981 { (exit 1); exit 1; }; }
22982 else
22983 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22984 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22985 wxUSE_STD_STRING=no
22986 fi
22987
22988
22989 fi
22990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22991
22992 fi
22993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22994 fi
22995
22996 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22997 echo "$as_me:$LINENO: checking for std::istream" >&5
22998 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22999 if test "${ac_cv_type_std__istream+set}" = set; then
23000 echo $ECHO_N "(cached) $ECHO_C" >&6
23001 else
23002 cat >conftest.$ac_ext <<_ACEOF
23003 /* confdefs.h. */
23004 _ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h. */
23008 #include <iostream>
23009
23010 int
23011 main ()
23012 {
23013 if ((std::istream *) 0)
23014 return 0;
23015 if (sizeof (std::istream))
23016 return 0;
23017 ;
23018 return 0;
23019 }
23020 _ACEOF
23021 rm -f conftest.$ac_objext
23022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23023 (eval $ac_compile) 2>conftest.er1
23024 ac_status=$?
23025 grep -v '^ *+' conftest.er1 >conftest.err
23026 rm -f conftest.er1
23027 cat conftest.err >&5
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); } &&
23030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23032 (eval $ac_try) 2>&5
23033 ac_status=$?
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); }; } &&
23036 { ac_try='test -s conftest.$ac_objext'
23037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23038 (eval $ac_try) 2>&5
23039 ac_status=$?
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); }; }; then
23042 ac_cv_type_std__istream=yes
23043 else
23044 echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23046
23047 ac_cv_type_std__istream=no
23048 fi
23049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23050 fi
23051 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23052 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23053 if test $ac_cv_type_std__istream = yes; then
23054
23055 cat >>confdefs.h <<_ACEOF
23056 #define HAVE_STD__ISTREAM 1
23057 _ACEOF
23058
23059
23060 else
23061 wxUSE_STD_IOSTREAM=no
23062 fi
23063 echo "$as_me:$LINENO: checking for std::ostream" >&5
23064 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23065 if test "${ac_cv_type_std__ostream+set}" = set; then
23066 echo $ECHO_N "(cached) $ECHO_C" >&6
23067 else
23068 cat >conftest.$ac_ext <<_ACEOF
23069 /* confdefs.h. */
23070 _ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h. */
23074 #include <iostream>
23075
23076 int
23077 main ()
23078 {
23079 if ((std::ostream *) 0)
23080 return 0;
23081 if (sizeof (std::ostream))
23082 return 0;
23083 ;
23084 return 0;
23085 }
23086 _ACEOF
23087 rm -f conftest.$ac_objext
23088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23089 (eval $ac_compile) 2>conftest.er1
23090 ac_status=$?
23091 grep -v '^ *+' conftest.er1 >conftest.err
23092 rm -f conftest.er1
23093 cat conftest.err >&5
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); } &&
23096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098 (eval $ac_try) 2>&5
23099 ac_status=$?
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; } &&
23102 { ac_try='test -s conftest.$ac_objext'
23103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23105 ac_status=$?
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; }; then
23108 ac_cv_type_std__ostream=yes
23109 else
23110 echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23112
23113 ac_cv_type_std__ostream=no
23114 fi
23115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23116 fi
23117 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23118 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23119 if test $ac_cv_type_std__ostream = yes; then
23120
23121 cat >>confdefs.h <<_ACEOF
23122 #define HAVE_STD__OSTREAM 1
23123 _ACEOF
23124
23125
23126 else
23127 wxUSE_STD_IOSTREAM=no
23128 fi
23129
23130
23131 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
23132 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23133 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23134 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23135 { (exit 1); exit 1; }; }
23136 else
23137 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
23138 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
23139 fi
23140 fi
23141 fi
23142
23143 if test "$wxUSE_STL" = "yes"; then
23144 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23145 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
23146 cat >conftest.$ac_ext <<_ACEOF
23147 /* confdefs.h. */
23148 _ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h. */
23152 #include <string>
23153 #include <functional>
23154 #include <algorithm>
23155 #include <vector>
23156 #include <list>
23157 int
23158 main ()
23159 {
23160 std::vector<int> moo;
23161 std::list<int> foo;
23162 std::vector<int>::iterator it =
23163 std::find_if(moo.begin(), moo.end(),
23164 std::bind2nd(std::less<int>(), 3));
23165 ;
23166 return 0;
23167 }
23168 _ACEOF
23169 rm -f conftest.$ac_objext
23170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23171 (eval $ac_compile) 2>conftest.er1
23172 ac_status=$?
23173 grep -v '^ *+' conftest.er1 >conftest.err
23174 rm -f conftest.er1
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } &&
23178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23181 ac_status=$?
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; } &&
23184 { ac_try='test -s conftest.$ac_objext'
23185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186 (eval $ac_try) 2>&5
23187 ac_status=$?
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; }; then
23190 echo "$as_me:$LINENO: result: yes" >&5
23191 echo "${ECHO_T}yes" >&6
23192 else
23193 echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23195
23196 echo "$as_me:$LINENO: result: no" >&5
23197 echo "${ECHO_T}no" >&6
23198 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23199 echo "$as_me: error: Basic STL functionality missing" >&2;}
23200 { (exit 1); exit 1; }; }
23201 fi
23202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23203
23204 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23205 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23206 cat >conftest.$ac_ext <<_ACEOF
23207 /* confdefs.h. */
23208 _ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23212 #include <string>
23213 int
23214 main ()
23215 {
23216 std::string foo, bar;
23217 foo.compare(bar);
23218 foo.compare(1, 1, bar);
23219 foo.compare(1, 1, bar, 1, 1);
23220 foo.compare("");
23221 foo.compare(1, 1, "");
23222 foo.compare(1, 1, "", 2);
23223 ;
23224 return 0;
23225 }
23226 _ACEOF
23227 rm -f conftest.$ac_objext
23228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23229 (eval $ac_compile) 2>conftest.er1
23230 ac_status=$?
23231 grep -v '^ *+' conftest.er1 >conftest.err
23232 rm -f conftest.er1
23233 cat conftest.err >&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } &&
23236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; } &&
23242 { ac_try='test -s conftest.$ac_objext'
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
23248 echo "$as_me:$LINENO: result: yes" >&5
23249 echo "${ECHO_T}yes" >&6
23250 cat >>confdefs.h <<\_ACEOF
23251 #define HAVE_STD_STRING_COMPARE 1
23252 _ACEOF
23253
23254 else
23255 echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23257
23258 echo "$as_me:$LINENO: result: no" >&5
23259 echo "${ECHO_T}no" >&6
23260 fi
23261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23262
23263 if test "${ac_cv_header_hash_map+set}" = set; then
23264 echo "$as_me:$LINENO: checking for hash_map" >&5
23265 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23266 if test "${ac_cv_header_hash_map+set}" = set; then
23267 echo $ECHO_N "(cached) $ECHO_C" >&6
23268 fi
23269 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23270 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23271 else
23272 # Is the header compilable?
23273 echo "$as_me:$LINENO: checking hash_map usability" >&5
23274 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23275 cat >conftest.$ac_ext <<_ACEOF
23276 /* confdefs.h. */
23277 _ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h. */
23281 $ac_includes_default
23282 #include <hash_map>
23283 _ACEOF
23284 rm -f conftest.$ac_objext
23285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23286 (eval $ac_compile) 2>conftest.er1
23287 ac_status=$?
23288 grep -v '^ *+' conftest.er1 >conftest.err
23289 rm -f conftest.er1
23290 cat conftest.err >&5
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); } &&
23293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295 (eval $ac_try) 2>&5
23296 ac_status=$?
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; } &&
23299 { ac_try='test -s conftest.$ac_objext'
23300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301 (eval $ac_try) 2>&5
23302 ac_status=$?
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); }; }; then
23305 ac_header_compiler=yes
23306 else
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23309
23310 ac_header_compiler=no
23311 fi
23312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23314 echo "${ECHO_T}$ac_header_compiler" >&6
23315
23316 # Is the header present?
23317 echo "$as_me:$LINENO: checking hash_map presence" >&5
23318 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23319 cat >conftest.$ac_ext <<_ACEOF
23320 /* confdefs.h. */
23321 _ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h. */
23325 #include <hash_map>
23326 _ACEOF
23327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23329 ac_status=$?
23330 grep -v '^ *+' conftest.er1 >conftest.err
23331 rm -f conftest.er1
23332 cat conftest.err >&5
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } >/dev/null; then
23335 if test -s conftest.err; then
23336 ac_cpp_err=$ac_cxx_preproc_warn_flag
23337 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23338 else
23339 ac_cpp_err=
23340 fi
23341 else
23342 ac_cpp_err=yes
23343 fi
23344 if test -z "$ac_cpp_err"; then
23345 ac_header_preproc=yes
23346 else
23347 echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23349
23350 ac_header_preproc=no
23351 fi
23352 rm -f conftest.err conftest.$ac_ext
23353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23354 echo "${ECHO_T}$ac_header_preproc" >&6
23355
23356 # So? What about this header?
23357 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23358 yes:no: )
23359 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23360 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23361 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23362 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23363 ac_header_preproc=yes
23364 ;;
23365 no:yes:* )
23366 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23367 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
23368 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23369 echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23370 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23371 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23372 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23373 echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
23374 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23375 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
23376 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23377 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
23378 (
23379 cat <<\_ASBOX
23380 ## ----------------------------------------- ##
23381 ## Report this to wx-dev@lists.wxwidgets.org ##
23382 ## ----------------------------------------- ##
23383 _ASBOX
23384 ) |
23385 sed "s/^/$as_me: WARNING: /" >&2
23386 ;;
23387 esac
23388 echo "$as_me:$LINENO: checking for hash_map" >&5
23389 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23390 if test "${ac_cv_header_hash_map+set}" = set; then
23391 echo $ECHO_N "(cached) $ECHO_C" >&6
23392 else
23393 ac_cv_header_hash_map=$ac_header_preproc
23394 fi
23395 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23396 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23397
23398 fi
23399 if test $ac_cv_header_hash_map = yes; then
23400 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23401 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23402 cat >conftest.$ac_ext <<_ACEOF
23403 /* confdefs.h. */
23404 _ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h. */
23408 #include <hash_map>
23409 #include <hash_set>
23410 int
23411 main ()
23412 {
23413 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23414 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23415 ;
23416 return 0;
23417 }
23418 _ACEOF
23419 rm -f conftest.$ac_objext
23420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23421 (eval $ac_compile) 2>conftest.er1
23422 ac_status=$?
23423 grep -v '^ *+' conftest.er1 >conftest.err
23424 rm -f conftest.er1
23425 cat conftest.err >&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); } &&
23428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23431 ac_status=$?
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; } &&
23434 { ac_try='test -s conftest.$ac_objext'
23435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436 (eval $ac_try) 2>&5
23437 ac_status=$?
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); }; }; then
23440 echo "$as_me:$LINENO: result: yes" >&5
23441 echo "${ECHO_T}yes" >&6
23442 cat >>confdefs.h <<\_ACEOF
23443 #define HAVE_HASH_MAP 1
23444 _ACEOF
23445
23446 cat >>confdefs.h <<\_ACEOF
23447 #define HAVE_STD_HASH_MAP 1
23448 _ACEOF
23449
23450 else
23451 echo "$as_me: failed program was:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23453
23454 echo "$as_me:$LINENO: result: no" >&5
23455 echo "${ECHO_T}no" >&6
23456 fi
23457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23458
23459 fi
23460
23461
23462
23463 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23464 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23465 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23466 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23467 echo $ECHO_N "(cached) $ECHO_C" >&6
23468 fi
23469 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23470 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23471 else
23472 # Is the header compilable?
23473 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23474 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23475 cat >conftest.$ac_ext <<_ACEOF
23476 /* confdefs.h. */
23477 _ACEOF
23478 cat confdefs.h >>conftest.$ac_ext
23479 cat >>conftest.$ac_ext <<_ACEOF
23480 /* end confdefs.h. */
23481 $ac_includes_default
23482 #include <ext/hash_map>
23483 _ACEOF
23484 rm -f conftest.$ac_objext
23485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23486 (eval $ac_compile) 2>conftest.er1
23487 ac_status=$?
23488 grep -v '^ *+' conftest.er1 >conftest.err
23489 rm -f conftest.er1
23490 cat conftest.err >&5
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); } &&
23493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; } &&
23499 { ac_try='test -s conftest.$ac_objext'
23500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; }; then
23505 ac_header_compiler=yes
23506 else
23507 echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23509
23510 ac_header_compiler=no
23511 fi
23512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23514 echo "${ECHO_T}$ac_header_compiler" >&6
23515
23516 # Is the header present?
23517 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23518 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23519 cat >conftest.$ac_ext <<_ACEOF
23520 /* confdefs.h. */
23521 _ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h. */
23525 #include <ext/hash_map>
23526 _ACEOF
23527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23529 ac_status=$?
23530 grep -v '^ *+' conftest.er1 >conftest.err
23531 rm -f conftest.er1
23532 cat conftest.err >&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } >/dev/null; then
23535 if test -s conftest.err; then
23536 ac_cpp_err=$ac_cxx_preproc_warn_flag
23537 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23538 else
23539 ac_cpp_err=
23540 fi
23541 else
23542 ac_cpp_err=yes
23543 fi
23544 if test -z "$ac_cpp_err"; then
23545 ac_header_preproc=yes
23546 else
23547 echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23549
23550 ac_header_preproc=no
23551 fi
23552 rm -f conftest.err conftest.$ac_ext
23553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23554 echo "${ECHO_T}$ac_header_preproc" >&6
23555
23556 # So? What about this header?
23557 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23558 yes:no: )
23559 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23560 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23561 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23562 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23563 ac_header_preproc=yes
23564 ;;
23565 no:yes:* )
23566 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23567 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
23568 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23569 echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23570 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23571 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23572 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23573 echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
23574 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23575 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
23576 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23577 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
23578 (
23579 cat <<\_ASBOX
23580 ## ----------------------------------------- ##
23581 ## Report this to wx-dev@lists.wxwidgets.org ##
23582 ## ----------------------------------------- ##
23583 _ASBOX
23584 ) |
23585 sed "s/^/$as_me: WARNING: /" >&2
23586 ;;
23587 esac
23588 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23589 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23590 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23591 echo $ECHO_N "(cached) $ECHO_C" >&6
23592 else
23593 ac_cv_header_ext_hash_map=$ac_header_preproc
23594 fi
23595 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23596 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23597
23598 fi
23599 if test $ac_cv_header_ext_hash_map = yes; then
23600 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23601 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23602 cat >conftest.$ac_ext <<_ACEOF
23603 /* confdefs.h. */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23608 #include <ext/hash_map>
23609 #include <ext/hash_set>
23610 int
23611 main ()
23612 {
23613 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23614 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23615 ;
23616 return 0;
23617 }
23618 _ACEOF
23619 rm -f conftest.$ac_objext
23620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23621 (eval $ac_compile) 2>conftest.er1
23622 ac_status=$?
23623 grep -v '^ *+' conftest.er1 >conftest.err
23624 rm -f conftest.er1
23625 cat conftest.err >&5
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); } &&
23628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23631 ac_status=$?
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; } &&
23634 { ac_try='test -s conftest.$ac_objext'
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23637 ac_status=$?
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; }; then
23640 echo "$as_me:$LINENO: result: yes" >&5
23641 echo "${ECHO_T}yes" >&6
23642 cat >>confdefs.h <<\_ACEOF
23643 #define HAVE_EXT_HASH_MAP 1
23644 _ACEOF
23645
23646 cat >>confdefs.h <<\_ACEOF
23647 #define HAVE_GNU_CXX_HASH_MAP 1
23648 _ACEOF
23649
23650 else
23651 echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23653
23654 echo "$as_me:$LINENO: result: no" >&5
23655 echo "${ECHO_T}no" >&6
23656 fi
23657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23658
23659 fi
23660
23661
23662 fi
23663
23664
23665 SEARCH_INCLUDE="\
23666 /usr/local/include \
23667 \
23668 /usr/Motif-2.1/include \
23669 /usr/Motif-1.2/include \
23670 /usr/include/Motif1.2 \
23671 \
23672 /usr/dt/include \
23673 /usr/openwin/include \
23674 \
23675 /usr/include/Xm \
23676 \
23677 /usr/X11R6/include \
23678 /usr/X11R6.4/include \
23679 /usr/X11R5/include \
23680 /usr/X11R4/include \
23681 \
23682 /usr/include/X11R6 \
23683 /usr/include/X11R5 \
23684 /usr/include/X11R4 \
23685 \
23686 /usr/local/X11R6/include \
23687 /usr/local/X11R5/include \
23688 /usr/local/X11R4/include \
23689 \
23690 /usr/local/include/X11R6 \
23691 /usr/local/include/X11R5 \
23692 /usr/local/include/X11R4 \
23693 \
23694 /usr/X11/include \
23695 /usr/include/X11 \
23696 /usr/local/X11/include \
23697 /usr/local/include/X11 \
23698 \
23699 /usr/XFree86/include/X11 \
23700 /usr/pkg/include \
23701 \
23702 /usr/openwin/share/include"
23703
23704 echo "$as_me:$LINENO: checking for libraries directory" >&5
23705 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
23706
23707 case "${host}" in
23708 *-*-irix6* )
23709 if test "${wx_cv_std_libpath+set}" = set; then
23710 echo $ECHO_N "(cached) $ECHO_C" >&6
23711 else
23712
23713 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23714 for e in a so sl dylib dll.a; do
23715 libc="$d/libc.$e"
23716 if test -f $libc; then
23717 save_LIBS="$LIBS"
23718 LIBS="$libc"
23719 cat >conftest.$ac_ext <<_ACEOF
23720 int main() { return 0; }
23721 _ACEOF
23722 rm -f conftest.$ac_objext conftest$ac_exeext
23723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23724 (eval $ac_link) 2>conftest.er1
23725 ac_status=$?
23726 grep -v '^ *+' conftest.er1 >conftest.err
23727 rm -f conftest.er1
23728 cat conftest.err >&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); } &&
23731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23733 (eval $ac_try) 2>&5
23734 ac_status=$?
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; } &&
23737 { ac_try='test -s conftest$ac_exeext'
23738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23739 (eval $ac_try) 2>&5
23740 ac_status=$?
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); }; }; then
23743 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23744 else
23745 echo "$as_me: failed program was:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23747
23748 fi
23749 rm -f conftest.err conftest.$ac_objext \
23750 conftest$ac_exeext conftest.$ac_ext
23751 LIBS="$save_LIBS"
23752 if test "x$wx_cv_std_libpath" != "x"; then
23753 break 2
23754 fi
23755 fi
23756 done
23757 done
23758 if test "x$wx_cv_std_libpath" = "x"; then
23759 wx_cv_std_libpath="lib"
23760 fi
23761
23762
23763 fi
23764
23765 ;;
23766
23767 *-*-solaris2* )
23768 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23769 wx_cv_std_libpath="lib/64"
23770 else
23771 wx_cv_std_libpath="lib"
23772 fi
23773 ;;
23774
23775 *-*-linux* )
23776 if test "$ac_cv_sizeof_void_p" = 8 -a \
23777 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23778 wx_cv_std_libpath="lib64"
23779 else
23780 wx_cv_std_libpath="lib"
23781 fi
23782 ;;
23783
23784 *)
23785 wx_cv_std_libpath="lib";
23786 ;;
23787 esac
23788
23789 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23790 echo "${ECHO_T}$wx_cv_std_libpath" >&6
23791
23792 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
23793
23794 if test "$build" != "$host" -a "$GCC" = yes; then
23795 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23796 cross_root=`dirname $cross_root`
23797 cross_root=`dirname $cross_root`
23798
23799 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23800 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23801 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
23802
23803 if test -z "$PKG_CONFIG_PATH"; then
23804 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23805 export PKG_CONFIG_PATH
23806 fi
23807
23808 if test -z "$x_includes" -o "$x_includes" = NONE; then
23809
23810 ac_find_includes=
23811 for ac_dir in $SEARCH_INCLUDE /usr/include;
23812 do
23813 if test -f "$ac_dir/X11/Intrinsic.h"; then
23814 ac_find_includes=$ac_dir
23815 break
23816 fi
23817 done
23818
23819 x_includes=$ac_find_includes
23820 fi
23821 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23822
23823 ac_find_libraries=
23824 for ac_dir in $SEARCH_LIB;
23825 do
23826 for ac_extension in a so sl dylib dll.a; do
23827 if test -f "$ac_dir/libXt.$ac_extension"; then
23828 ac_find_libraries=$ac_dir
23829 break 2
23830 fi
23831 done
23832 done
23833
23834 x_libraries=$ac_find_libraries
23835 fi
23836 fi
23837 fi
23838
23839
23840 cat >confcache <<\_ACEOF
23841 # This file is a shell script that caches the results of configure
23842 # tests run on this system so they can be shared between configure
23843 # scripts and configure runs, see configure's option --config-cache.
23844 # It is not useful on other systems. If it contains results you don't
23845 # want to keep, you may remove or edit it.
23846 #
23847 # config.status only pays attention to the cache file if you give it
23848 # the --recheck option to rerun configure.
23849 #
23850 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23851 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23852 # following values.
23853
23854 _ACEOF
23855
23856 # The following way of writing the cache mishandles newlines in values,
23857 # but we know of no workaround that is simple, portable, and efficient.
23858 # So, don't put newlines in cache variables' values.
23859 # Ultrix sh set writes to stderr and can't be redirected directly,
23860 # and sets the high bit in the cache file unless we assign to the vars.
23861 {
23862 (set) 2>&1 |
23863 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23864 *ac_space=\ *)
23865 # `set' does not quote correctly, so add quotes (double-quote
23866 # substitution turns \\\\ into \\, and sed turns \\ into \).
23867 sed -n \
23868 "s/'/'\\\\''/g;
23869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23870 ;;
23871 *)
23872 # `set' quotes correctly as required by POSIX, so do not add quotes.
23873 sed -n \
23874 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23875 ;;
23876 esac;
23877 } |
23878 sed '
23879 t clear
23880 : clear
23881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23882 t end
23883 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23884 : end' >>confcache
23885 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23886 if test -w $cache_file; then
23887 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23888 cat confcache >$cache_file
23889 else
23890 echo "not updating unwritable cache $cache_file"
23891 fi
23892 fi
23893 rm -f confcache
23894
23895 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23896 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23897 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23898 if test "${wx_cv_lib_glibc21+set}" = set; then
23899 echo $ECHO_N "(cached) $ECHO_C" >&6
23900 else
23901
23902 cat >conftest.$ac_ext <<_ACEOF
23903 /* confdefs.h. */
23904 _ACEOF
23905 cat confdefs.h >>conftest.$ac_ext
23906 cat >>conftest.$ac_ext <<_ACEOF
23907 /* end confdefs.h. */
23908 #include <features.h>
23909 int
23910 main ()
23911 {
23912
23913 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
23914 not glibc 2.1
23915 #endif
23916
23917 ;
23918 return 0;
23919 }
23920 _ACEOF
23921 rm -f conftest.$ac_objext
23922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23923 (eval $ac_compile) 2>conftest.er1
23924 ac_status=$?
23925 grep -v '^ *+' conftest.er1 >conftest.err
23926 rm -f conftest.er1
23927 cat conftest.err >&5
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); } &&
23930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932 (eval $ac_try) 2>&5
23933 ac_status=$?
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); }; } &&
23936 { ac_try='test -s conftest.$ac_objext'
23937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938 (eval $ac_try) 2>&5
23939 ac_status=$?
23940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); }; }; then
23942
23943 wx_cv_lib_glibc21=yes
23944
23945 else
23946 echo "$as_me: failed program was:" >&5
23947 sed 's/^/| /' conftest.$ac_ext >&5
23948
23949
23950 wx_cv_lib_glibc21=no
23951
23952
23953 fi
23954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23955
23956 fi
23957 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23958 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23959 if test "$wx_cv_lib_glibc21" = "yes"; then
23960 cat >>confdefs.h <<\_ACEOF
23961 #define wxHAVE_GLIBC2 1
23962 _ACEOF
23963
23964 fi
23965 fi
23966
23967 if test "x$wx_cv_lib_glibc21" = "xyes"; then
23968 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23969 cat >>confdefs.h <<\_ACEOF
23970 #define _GNU_SOURCE 1
23971 _ACEOF
23972
23973 fi
23974 fi
23975
23976 have_cos=0
23977 have_floor=0
23978
23979 for ac_func in cos
23980 do
23981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23982 echo "$as_me:$LINENO: checking for $ac_func" >&5
23983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23984 if eval "test \"\${$as_ac_var+set}\" = set"; then
23985 echo $ECHO_N "(cached) $ECHO_C" >&6
23986 else
23987 cat >conftest.$ac_ext <<_ACEOF
23988 /* confdefs.h. */
23989 _ACEOF
23990 cat confdefs.h >>conftest.$ac_ext
23991 cat >>conftest.$ac_ext <<_ACEOF
23992 /* end confdefs.h. */
23993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23995 #define $ac_func innocuous_$ac_func
23996
23997 /* System header to define __stub macros and hopefully few prototypes,
23998 which can conflict with char $ac_func (); below.
23999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24000 <limits.h> exists even on freestanding compilers. */
24001
24002 #ifdef __STDC__
24003 # include <limits.h>
24004 #else
24005 # include <assert.h>
24006 #endif
24007
24008 #undef $ac_func
24009
24010 /* Override any gcc2 internal prototype to avoid an error. */
24011 #ifdef __cplusplus
24012 extern "C"
24013 {
24014 #endif
24015 /* We use char because int might match the return type of a gcc2
24016 builtin and then its argument prototype would still apply. */
24017 char $ac_func ();
24018 /* The GNU C library defines this for functions which it implements
24019 to always fail with ENOSYS. Some functions are actually named
24020 something starting with __ and the normal name is an alias. */
24021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24022 choke me
24023 #else
24024 char (*f) () = $ac_func;
24025 #endif
24026 #ifdef __cplusplus
24027 }
24028 #endif
24029
24030 int
24031 main ()
24032 {
24033 return f != $ac_func;
24034 ;
24035 return 0;
24036 }
24037 _ACEOF
24038 rm -f conftest.$ac_objext conftest$ac_exeext
24039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24040 (eval $ac_link) 2>conftest.er1
24041 ac_status=$?
24042 grep -v '^ *+' conftest.er1 >conftest.err
24043 rm -f conftest.er1
24044 cat conftest.err >&5
24045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); } &&
24047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24049 (eval $ac_try) 2>&5
24050 ac_status=$?
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); }; } &&
24053 { ac_try='test -s conftest$ac_exeext'
24054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24055 (eval $ac_try) 2>&5
24056 ac_status=$?
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); }; }; then
24059 eval "$as_ac_var=yes"
24060 else
24061 echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24063
24064 eval "$as_ac_var=no"
24065 fi
24066 rm -f conftest.err conftest.$ac_objext \
24067 conftest$ac_exeext conftest.$ac_ext
24068 fi
24069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24071 if test `eval echo '${'$as_ac_var'}'` = yes; then
24072 cat >>confdefs.h <<_ACEOF
24073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24074 _ACEOF
24075 have_cos=1
24076 fi
24077 done
24078
24079
24080 for ac_func in floor
24081 do
24082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24083 echo "$as_me:$LINENO: checking for $ac_func" >&5
24084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24085 if eval "test \"\${$as_ac_var+set}\" = set"; then
24086 echo $ECHO_N "(cached) $ECHO_C" >&6
24087 else
24088 cat >conftest.$ac_ext <<_ACEOF
24089 /* confdefs.h. */
24090 _ACEOF
24091 cat confdefs.h >>conftest.$ac_ext
24092 cat >>conftest.$ac_ext <<_ACEOF
24093 /* end confdefs.h. */
24094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24096 #define $ac_func innocuous_$ac_func
24097
24098 /* System header to define __stub macros and hopefully few prototypes,
24099 which can conflict with char $ac_func (); below.
24100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24101 <limits.h> exists even on freestanding compilers. */
24102
24103 #ifdef __STDC__
24104 # include <limits.h>
24105 #else
24106 # include <assert.h>
24107 #endif
24108
24109 #undef $ac_func
24110
24111 /* Override any gcc2 internal prototype to avoid an error. */
24112 #ifdef __cplusplus
24113 extern "C"
24114 {
24115 #endif
24116 /* We use char because int might match the return type of a gcc2
24117 builtin and then its argument prototype would still apply. */
24118 char $ac_func ();
24119 /* The GNU C library defines this for functions which it implements
24120 to always fail with ENOSYS. Some functions are actually named
24121 something starting with __ and the normal name is an alias. */
24122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24123 choke me
24124 #else
24125 char (*f) () = $ac_func;
24126 #endif
24127 #ifdef __cplusplus
24128 }
24129 #endif
24130
24131 int
24132 main ()
24133 {
24134 return f != $ac_func;
24135 ;
24136 return 0;
24137 }
24138 _ACEOF
24139 rm -f conftest.$ac_objext conftest$ac_exeext
24140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24141 (eval $ac_link) 2>conftest.er1
24142 ac_status=$?
24143 grep -v '^ *+' conftest.er1 >conftest.err
24144 rm -f conftest.er1
24145 cat conftest.err >&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } &&
24148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24150 (eval $ac_try) 2>&5
24151 ac_status=$?
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); }; } &&
24154 { ac_try='test -s conftest$ac_exeext'
24155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24156 (eval $ac_try) 2>&5
24157 ac_status=$?
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); }; }; then
24160 eval "$as_ac_var=yes"
24161 else
24162 echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24164
24165 eval "$as_ac_var=no"
24166 fi
24167 rm -f conftest.err conftest.$ac_objext \
24168 conftest$ac_exeext conftest.$ac_ext
24169 fi
24170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24172 if test `eval echo '${'$as_ac_var'}'` = yes; then
24173 cat >>confdefs.h <<_ACEOF
24174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24175 _ACEOF
24176 have_floor=1
24177 fi
24178 done
24179
24180 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24181 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24182 if test "$have_cos" = 1 -a "$have_floor" = 1; then
24183 echo "$as_me:$LINENO: result: yes" >&5
24184 echo "${ECHO_T}yes" >&6
24185 else
24186 echo "$as_me:$LINENO: result: no" >&5
24187 echo "${ECHO_T}no" >&6
24188 LIBS="$LIBS -lm"
24189 # use different functions to avoid configure caching
24190 have_sin=0
24191 have_ceil=0
24192
24193 for ac_func in sin
24194 do
24195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24196 echo "$as_me:$LINENO: checking for $ac_func" >&5
24197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24198 if eval "test \"\${$as_ac_var+set}\" = set"; then
24199 echo $ECHO_N "(cached) $ECHO_C" >&6
24200 else
24201 cat >conftest.$ac_ext <<_ACEOF
24202 /* confdefs.h. */
24203 _ACEOF
24204 cat confdefs.h >>conftest.$ac_ext
24205 cat >>conftest.$ac_ext <<_ACEOF
24206 /* end confdefs.h. */
24207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24209 #define $ac_func innocuous_$ac_func
24210
24211 /* System header to define __stub macros and hopefully few prototypes,
24212 which can conflict with char $ac_func (); below.
24213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24214 <limits.h> exists even on freestanding compilers. */
24215
24216 #ifdef __STDC__
24217 # include <limits.h>
24218 #else
24219 # include <assert.h>
24220 #endif
24221
24222 #undef $ac_func
24223
24224 /* Override any gcc2 internal prototype to avoid an error. */
24225 #ifdef __cplusplus
24226 extern "C"
24227 {
24228 #endif
24229 /* We use char because int might match the return type of a gcc2
24230 builtin and then its argument prototype would still apply. */
24231 char $ac_func ();
24232 /* The GNU C library defines this for functions which it implements
24233 to always fail with ENOSYS. Some functions are actually named
24234 something starting with __ and the normal name is an alias. */
24235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24236 choke me
24237 #else
24238 char (*f) () = $ac_func;
24239 #endif
24240 #ifdef __cplusplus
24241 }
24242 #endif
24243
24244 int
24245 main ()
24246 {
24247 return f != $ac_func;
24248 ;
24249 return 0;
24250 }
24251 _ACEOF
24252 rm -f conftest.$ac_objext conftest$ac_exeext
24253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24254 (eval $ac_link) 2>conftest.er1
24255 ac_status=$?
24256 grep -v '^ *+' conftest.er1 >conftest.err
24257 rm -f conftest.er1
24258 cat conftest.err >&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); } &&
24261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263 (eval $ac_try) 2>&5
24264 ac_status=$?
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; } &&
24267 { ac_try='test -s conftest$ac_exeext'
24268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269 (eval $ac_try) 2>&5
24270 ac_status=$?
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); }; }; then
24273 eval "$as_ac_var=yes"
24274 else
24275 echo "$as_me: failed program was:" >&5
24276 sed 's/^/| /' conftest.$ac_ext >&5
24277
24278 eval "$as_ac_var=no"
24279 fi
24280 rm -f conftest.err conftest.$ac_objext \
24281 conftest$ac_exeext conftest.$ac_ext
24282 fi
24283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24285 if test `eval echo '${'$as_ac_var'}'` = yes; then
24286 cat >>confdefs.h <<_ACEOF
24287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24288 _ACEOF
24289 have_sin=1
24290 fi
24291 done
24292
24293
24294 for ac_func in ceil
24295 do
24296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24297 echo "$as_me:$LINENO: checking for $ac_func" >&5
24298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24299 if eval "test \"\${$as_ac_var+set}\" = set"; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
24301 else
24302 cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h. */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24310 #define $ac_func innocuous_$ac_func
24311
24312 /* System header to define __stub macros and hopefully few prototypes,
24313 which can conflict with char $ac_func (); below.
24314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24315 <limits.h> exists even on freestanding compilers. */
24316
24317 #ifdef __STDC__
24318 # include <limits.h>
24319 #else
24320 # include <assert.h>
24321 #endif
24322
24323 #undef $ac_func
24324
24325 /* Override any gcc2 internal prototype to avoid an error. */
24326 #ifdef __cplusplus
24327 extern "C"
24328 {
24329 #endif
24330 /* We use char because int might match the return type of a gcc2
24331 builtin and then its argument prototype would still apply. */
24332 char $ac_func ();
24333 /* The GNU C library defines this for functions which it implements
24334 to always fail with ENOSYS. Some functions are actually named
24335 something starting with __ and the normal name is an alias. */
24336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24337 choke me
24338 #else
24339 char (*f) () = $ac_func;
24340 #endif
24341 #ifdef __cplusplus
24342 }
24343 #endif
24344
24345 int
24346 main ()
24347 {
24348 return f != $ac_func;
24349 ;
24350 return 0;
24351 }
24352 _ACEOF
24353 rm -f conftest.$ac_objext conftest$ac_exeext
24354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24355 (eval $ac_link) 2>conftest.er1
24356 ac_status=$?
24357 grep -v '^ *+' conftest.er1 >conftest.err
24358 rm -f conftest.er1
24359 cat conftest.err >&5
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); } &&
24362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24364 (eval $ac_try) 2>&5
24365 ac_status=$?
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); }; } &&
24368 { ac_try='test -s conftest$ac_exeext'
24369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24370 (eval $ac_try) 2>&5
24371 ac_status=$?
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); }; }; then
24374 eval "$as_ac_var=yes"
24375 else
24376 echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24378
24379 eval "$as_ac_var=no"
24380 fi
24381 rm -f conftest.err conftest.$ac_objext \
24382 conftest$ac_exeext conftest.$ac_ext
24383 fi
24384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24386 if test `eval echo '${'$as_ac_var'}'` = yes; then
24387 cat >>confdefs.h <<_ACEOF
24388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24389 _ACEOF
24390 have_ceil=1
24391 fi
24392 done
24393
24394 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24395 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24396 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24397 echo "$as_me:$LINENO: result: yes" >&5
24398 echo "${ECHO_T}yes" >&6
24399 else
24400 echo "$as_me:$LINENO: result: no" >&5
24401 echo "${ECHO_T}no" >&6
24402 # not sure we should warn the user, crash, etc.
24403 fi
24404 fi
24405
24406
24407
24408 if test "$wxUSE_REGEX" != "no"; then
24409 cat >>confdefs.h <<\_ACEOF
24410 #define wxUSE_REGEX 1
24411 _ACEOF
24412
24413
24414 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24415 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24416 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24417 wxUSE_REGEX=builtin
24418 fi
24419
24420 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24421 if test "${ac_cv_header_regex_h+set}" = set; then
24422 echo "$as_me:$LINENO: checking for regex.h" >&5
24423 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24424 if test "${ac_cv_header_regex_h+set}" = set; then
24425 echo $ECHO_N "(cached) $ECHO_C" >&6
24426 fi
24427 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24428 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24429 else
24430 # Is the header compilable?
24431 echo "$as_me:$LINENO: checking regex.h usability" >&5
24432 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24433 cat >conftest.$ac_ext <<_ACEOF
24434 /* confdefs.h. */
24435 _ACEOF
24436 cat confdefs.h >>conftest.$ac_ext
24437 cat >>conftest.$ac_ext <<_ACEOF
24438 /* end confdefs.h. */
24439 $ac_includes_default
24440 #include <regex.h>
24441 _ACEOF
24442 rm -f conftest.$ac_objext
24443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24444 (eval $ac_compile) 2>conftest.er1
24445 ac_status=$?
24446 grep -v '^ *+' conftest.er1 >conftest.err
24447 rm -f conftest.er1
24448 cat conftest.err >&5
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); } &&
24451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453 (eval $ac_try) 2>&5
24454 ac_status=$?
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); }; } &&
24457 { ac_try='test -s conftest.$ac_objext'
24458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24459 (eval $ac_try) 2>&5
24460 ac_status=$?
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); }; }; then
24463 ac_header_compiler=yes
24464 else
24465 echo "$as_me: failed program was:" >&5
24466 sed 's/^/| /' conftest.$ac_ext >&5
24467
24468 ac_header_compiler=no
24469 fi
24470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24472 echo "${ECHO_T}$ac_header_compiler" >&6
24473
24474 # Is the header present?
24475 echo "$as_me:$LINENO: checking regex.h presence" >&5
24476 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24477 cat >conftest.$ac_ext <<_ACEOF
24478 /* confdefs.h. */
24479 _ACEOF
24480 cat confdefs.h >>conftest.$ac_ext
24481 cat >>conftest.$ac_ext <<_ACEOF
24482 /* end confdefs.h. */
24483 #include <regex.h>
24484 _ACEOF
24485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24487 ac_status=$?
24488 grep -v '^ *+' conftest.er1 >conftest.err
24489 rm -f conftest.er1
24490 cat conftest.err >&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); } >/dev/null; then
24493 if test -s conftest.err; then
24494 ac_cpp_err=$ac_cxx_preproc_warn_flag
24495 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24496 else
24497 ac_cpp_err=
24498 fi
24499 else
24500 ac_cpp_err=yes
24501 fi
24502 if test -z "$ac_cpp_err"; then
24503 ac_header_preproc=yes
24504 else
24505 echo "$as_me: failed program was:" >&5
24506 sed 's/^/| /' conftest.$ac_ext >&5
24507
24508 ac_header_preproc=no
24509 fi
24510 rm -f conftest.err conftest.$ac_ext
24511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24512 echo "${ECHO_T}$ac_header_preproc" >&6
24513
24514 # So? What about this header?
24515 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24516 yes:no: )
24517 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24518 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24519 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24520 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24521 ac_header_preproc=yes
24522 ;;
24523 no:yes:* )
24524 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24525 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24526 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24527 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24528 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24529 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24530 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24531 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24532 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24533 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24534 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24535 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24536 (
24537 cat <<\_ASBOX
24538 ## ----------------------------------------- ##
24539 ## Report this to wx-dev@lists.wxwidgets.org ##
24540 ## ----------------------------------------- ##
24541 _ASBOX
24542 ) |
24543 sed "s/^/$as_me: WARNING: /" >&2
24544 ;;
24545 esac
24546 echo "$as_me:$LINENO: checking for regex.h" >&5
24547 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24548 if test "${ac_cv_header_regex_h+set}" = set; then
24549 echo $ECHO_N "(cached) $ECHO_C" >&6
24550 else
24551 ac_cv_header_regex_h=$ac_header_preproc
24552 fi
24553 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24554 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24555
24556 fi
24557 if test $ac_cv_header_regex_h = yes; then
24558
24559
24560 for ac_func in regcomp re_search
24561 do
24562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24563 echo "$as_me:$LINENO: checking for $ac_func" >&5
24564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24565 if eval "test \"\${$as_ac_var+set}\" = set"; then
24566 echo $ECHO_N "(cached) $ECHO_C" >&6
24567 else
24568 cat >conftest.$ac_ext <<_ACEOF
24569 /* confdefs.h. */
24570 _ACEOF
24571 cat confdefs.h >>conftest.$ac_ext
24572 cat >>conftest.$ac_ext <<_ACEOF
24573 /* end confdefs.h. */
24574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24576 #define $ac_func innocuous_$ac_func
24577
24578 /* System header to define __stub macros and hopefully few prototypes,
24579 which can conflict with char $ac_func (); below.
24580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24581 <limits.h> exists even on freestanding compilers. */
24582
24583 #ifdef __STDC__
24584 # include <limits.h>
24585 #else
24586 # include <assert.h>
24587 #endif
24588
24589 #undef $ac_func
24590
24591 /* Override any gcc2 internal prototype to avoid an error. */
24592 #ifdef __cplusplus
24593 extern "C"
24594 {
24595 #endif
24596 /* We use char because int might match the return type of a gcc2
24597 builtin and then its argument prototype would still apply. */
24598 char $ac_func ();
24599 /* The GNU C library defines this for functions which it implements
24600 to always fail with ENOSYS. Some functions are actually named
24601 something starting with __ and the normal name is an alias. */
24602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24603 choke me
24604 #else
24605 char (*f) () = $ac_func;
24606 #endif
24607 #ifdef __cplusplus
24608 }
24609 #endif
24610
24611 int
24612 main ()
24613 {
24614 return f != $ac_func;
24615 ;
24616 return 0;
24617 }
24618 _ACEOF
24619 rm -f conftest.$ac_objext conftest$ac_exeext
24620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24621 (eval $ac_link) 2>conftest.er1
24622 ac_status=$?
24623 grep -v '^ *+' conftest.er1 >conftest.err
24624 rm -f conftest.er1
24625 cat conftest.err >&5
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); } &&
24628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630 (eval $ac_try) 2>&5
24631 ac_status=$?
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; } &&
24634 { ac_try='test -s conftest$ac_exeext'
24635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636 (eval $ac_try) 2>&5
24637 ac_status=$?
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); }; }; then
24640 eval "$as_ac_var=yes"
24641 else
24642 echo "$as_me: failed program was:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24644
24645 eval "$as_ac_var=no"
24646 fi
24647 rm -f conftest.err conftest.$ac_objext \
24648 conftest$ac_exeext conftest.$ac_ext
24649 fi
24650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24652 if test `eval echo '${'$as_ac_var'}'` = yes; then
24653 cat >>confdefs.h <<_ACEOF
24654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24655 _ACEOF
24656
24657 fi
24658 done
24659
24660 fi
24661
24662
24663
24664 if test "x$ac_cv_func_regcomp" != "xyes"; then
24665 if test "$wxUSE_REGEX" = "sys" ; then
24666 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24667 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24668 { (exit 1); exit 1; }; }
24669 else
24670 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24671 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24672 wxUSE_REGEX=builtin
24673 fi
24674 else
24675 wxUSE_REGEX=sys
24676 cat >>confdefs.h <<\_ACEOF
24677 #define WX_NO_REGEX_ADVANCED 1
24678 _ACEOF
24679
24680 fi
24681 fi
24682 fi
24683
24684
24685 ZLIB_LINK=
24686 if test "$wxUSE_ZLIB" != "no" ; then
24687 cat >>confdefs.h <<\_ACEOF
24688 #define wxUSE_ZLIB 1
24689 _ACEOF
24690
24691
24692 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24693 if test "$USE_DARWIN" = 1; then
24694 system_zlib_h_ok="yes"
24695 else
24696 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24697 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24698 if test "${ac_cv_header_zlib_h+set}" = set; then
24699 echo $ECHO_N "(cached) $ECHO_C" >&6
24700 else
24701 if test "$cross_compiling" = yes; then
24702 unset ac_cv_header_zlib_h
24703
24704 else
24705 cat >conftest.$ac_ext <<_ACEOF
24706 /* confdefs.h. */
24707 _ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h. */
24711
24712 #include <zlib.h>
24713 #include <stdio.h>
24714
24715 int main()
24716 {
24717 FILE *f=fopen("conftestval", "w");
24718 if (!f) exit(1);
24719 fprintf(f, "%s",
24720 ZLIB_VERSION[0] == '1' &&
24721 (ZLIB_VERSION[2] > '1' ||
24722 (ZLIB_VERSION[2] == '1' &&
24723 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24724 exit(0);
24725 }
24726
24727 _ACEOF
24728 rm -f conftest$ac_exeext
24729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24730 (eval $ac_link) 2>&5
24731 ac_status=$?
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; }; then
24739 ac_cv_header_zlib_h=`cat conftestval`
24740 else
24741 echo "$as_me: program exited with status $ac_status" >&5
24742 echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.$ac_ext >&5
24744
24745 ( exit $ac_status )
24746 ac_cv_header_zlib_h=no
24747 fi
24748 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24749 fi
24750
24751 fi
24752 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24753 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24754 if test "${ac_cv_header_zlib_h+set}" = set; then
24755 echo "$as_me:$LINENO: checking for zlib.h" >&5
24756 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24757 if test "${ac_cv_header_zlib_h+set}" = set; then
24758 echo $ECHO_N "(cached) $ECHO_C" >&6
24759 fi
24760 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24761 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24762 else
24763 # Is the header compilable?
24764 echo "$as_me:$LINENO: checking zlib.h usability" >&5
24765 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24766 cat >conftest.$ac_ext <<_ACEOF
24767 /* confdefs.h. */
24768 _ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h. */
24772 $ac_includes_default
24773 #include <zlib.h>
24774 _ACEOF
24775 rm -f conftest.$ac_objext
24776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24777 (eval $ac_compile) 2>conftest.er1
24778 ac_status=$?
24779 grep -v '^ *+' conftest.er1 >conftest.err
24780 rm -f conftest.er1
24781 cat conftest.err >&5
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); } &&
24784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786 (eval $ac_try) 2>&5
24787 ac_status=$?
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); }; } &&
24790 { ac_try='test -s conftest.$ac_objext'
24791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; }; then
24796 ac_header_compiler=yes
24797 else
24798 echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24800
24801 ac_header_compiler=no
24802 fi
24803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24805 echo "${ECHO_T}$ac_header_compiler" >&6
24806
24807 # Is the header present?
24808 echo "$as_me:$LINENO: checking zlib.h presence" >&5
24809 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24810 cat >conftest.$ac_ext <<_ACEOF
24811 /* confdefs.h. */
24812 _ACEOF
24813 cat confdefs.h >>conftest.$ac_ext
24814 cat >>conftest.$ac_ext <<_ACEOF
24815 /* end confdefs.h. */
24816 #include <zlib.h>
24817 _ACEOF
24818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24820 ac_status=$?
24821 grep -v '^ *+' conftest.er1 >conftest.err
24822 rm -f conftest.er1
24823 cat conftest.err >&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); } >/dev/null; then
24826 if test -s conftest.err; then
24827 ac_cpp_err=$ac_cxx_preproc_warn_flag
24828 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24829 else
24830 ac_cpp_err=
24831 fi
24832 else
24833 ac_cpp_err=yes
24834 fi
24835 if test -z "$ac_cpp_err"; then
24836 ac_header_preproc=yes
24837 else
24838 echo "$as_me: failed program was:" >&5
24839 sed 's/^/| /' conftest.$ac_ext >&5
24840
24841 ac_header_preproc=no
24842 fi
24843 rm -f conftest.err conftest.$ac_ext
24844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24845 echo "${ECHO_T}$ac_header_preproc" >&6
24846
24847 # So? What about this header?
24848 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24849 yes:no: )
24850 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24851 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24852 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24853 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24854 ac_header_preproc=yes
24855 ;;
24856 no:yes:* )
24857 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24858 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
24859 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24860 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24861 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24862 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24863 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24864 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24865 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24866 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
24867 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24868 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
24869 (
24870 cat <<\_ASBOX
24871 ## ----------------------------------------- ##
24872 ## Report this to wx-dev@lists.wxwidgets.org ##
24873 ## ----------------------------------------- ##
24874 _ASBOX
24875 ) |
24876 sed "s/^/$as_me: WARNING: /" >&2
24877 ;;
24878 esac
24879 echo "$as_me:$LINENO: checking for zlib.h" >&5
24880 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24881 if test "${ac_cv_header_zlib_h+set}" = set; then
24882 echo $ECHO_N "(cached) $ECHO_C" >&6
24883 else
24884 ac_cv_header_zlib_h=$ac_header_preproc
24885 fi
24886 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24887 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24888
24889 fi
24890
24891
24892
24893 system_zlib_h_ok=$ac_cv_header_zlib_h
24894 fi
24895
24896 if test "$system_zlib_h_ok" = "yes"; then
24897 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24898 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24899 if test "${ac_cv_lib_z_deflate+set}" = set; then
24900 echo $ECHO_N "(cached) $ECHO_C" >&6
24901 else
24902 ac_check_lib_save_LIBS=$LIBS
24903 LIBS="-lz $LIBS"
24904 cat >conftest.$ac_ext <<_ACEOF
24905 /* confdefs.h. */
24906 _ACEOF
24907 cat confdefs.h >>conftest.$ac_ext
24908 cat >>conftest.$ac_ext <<_ACEOF
24909 /* end confdefs.h. */
24910
24911 /* Override any gcc2 internal prototype to avoid an error. */
24912 #ifdef __cplusplus
24913 extern "C"
24914 #endif
24915 /* We use char because int might match the return type of a gcc2
24916 builtin and then its argument prototype would still apply. */
24917 char deflate ();
24918 int
24919 main ()
24920 {
24921 deflate ();
24922 ;
24923 return 0;
24924 }
24925 _ACEOF
24926 rm -f conftest.$ac_objext conftest$ac_exeext
24927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24928 (eval $ac_link) 2>conftest.er1
24929 ac_status=$?
24930 grep -v '^ *+' conftest.er1 >conftest.err
24931 rm -f conftest.er1
24932 cat conftest.err >&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } &&
24935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937 (eval $ac_try) 2>&5
24938 ac_status=$?
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); }; } &&
24941 { ac_try='test -s conftest$ac_exeext'
24942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943 (eval $ac_try) 2>&5
24944 ac_status=$?
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); }; }; then
24947 ac_cv_lib_z_deflate=yes
24948 else
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24951
24952 ac_cv_lib_z_deflate=no
24953 fi
24954 rm -f conftest.err conftest.$ac_objext \
24955 conftest$ac_exeext conftest.$ac_ext
24956 LIBS=$ac_check_lib_save_LIBS
24957 fi
24958 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24959 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24960 if test $ac_cv_lib_z_deflate = yes; then
24961 ZLIB_LINK=" -lz"
24962 fi
24963
24964 fi
24965
24966 if test "x$ZLIB_LINK" = "x" ; then
24967 if test "$wxUSE_ZLIB" = "sys" ; then
24968 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24969 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24970 { (exit 1); exit 1; }; }
24971 else
24972 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24973 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24974 wxUSE_ZLIB=builtin
24975 fi
24976 else
24977 wxUSE_ZLIB=sys
24978 fi
24979 fi
24980 fi
24981
24982
24983 PNG_LINK=
24984 if test "$wxUSE_LIBPNG" != "no" ; then
24985 cat >>confdefs.h <<\_ACEOF
24986 #define wxUSE_LIBPNG 1
24987 _ACEOF
24988
24989
24990 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24991 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24992 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24993 wxUSE_LIBPNG=sys
24994 fi
24995
24996 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24997 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24998 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24999 wxUSE_LIBPNG=builtin
25000 fi
25001
25002 if test "$wxUSE_MGL" != 1 ; then
25003 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25004 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25005 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25006 if test "${ac_cv_header_png_h+set}" = set; then
25007 echo $ECHO_N "(cached) $ECHO_C" >&6
25008 else
25009 if test "$cross_compiling" = yes; then
25010 unset ac_cv_header_png_h
25011
25012 else
25013 cat >conftest.$ac_ext <<_ACEOF
25014 /* confdefs.h. */
25015 _ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h. */
25019
25020 #include <png.h>
25021 #include <stdio.h>
25022
25023 int main()
25024 {
25025 FILE *f=fopen("conftestval", "w");
25026 if (!f) exit(1);
25027 fprintf(f, "%s",
25028 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25029 exit(0);
25030 }
25031
25032 _ACEOF
25033 rm -f conftest$ac_exeext
25034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25035 (eval $ac_link) 2>&5
25036 ac_status=$?
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; }; then
25044 ac_cv_header_png_h=`cat conftestval`
25045 else
25046 echo "$as_me: program exited with status $ac_status" >&5
25047 echo "$as_me: failed program was:" >&5
25048 sed 's/^/| /' conftest.$ac_ext >&5
25049
25050 ( exit $ac_status )
25051 ac_cv_header_png_h=no
25052 fi
25053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25054 fi
25055
25056 fi
25057 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25058 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25059 if test "${ac_cv_header_png_h+set}" = set; then
25060 echo "$as_me:$LINENO: checking for png.h" >&5
25061 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25062 if test "${ac_cv_header_png_h+set}" = set; then
25063 echo $ECHO_N "(cached) $ECHO_C" >&6
25064 fi
25065 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25066 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25067 else
25068 # Is the header compilable?
25069 echo "$as_me:$LINENO: checking png.h usability" >&5
25070 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25071 cat >conftest.$ac_ext <<_ACEOF
25072 /* confdefs.h. */
25073 _ACEOF
25074 cat confdefs.h >>conftest.$ac_ext
25075 cat >>conftest.$ac_ext <<_ACEOF
25076 /* end confdefs.h. */
25077 $ac_includes_default
25078 #include <png.h>
25079 _ACEOF
25080 rm -f conftest.$ac_objext
25081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25082 (eval $ac_compile) 2>conftest.er1
25083 ac_status=$?
25084 grep -v '^ *+' conftest.er1 >conftest.err
25085 rm -f conftest.er1
25086 cat conftest.err >&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } &&
25089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25091 (eval $ac_try) 2>&5
25092 ac_status=$?
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); }; } &&
25095 { ac_try='test -s conftest.$ac_objext'
25096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25097 (eval $ac_try) 2>&5
25098 ac_status=$?
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); }; }; then
25101 ac_header_compiler=yes
25102 else
25103 echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25105
25106 ac_header_compiler=no
25107 fi
25108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25110 echo "${ECHO_T}$ac_header_compiler" >&6
25111
25112 # Is the header present?
25113 echo "$as_me:$LINENO: checking png.h presence" >&5
25114 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25115 cat >conftest.$ac_ext <<_ACEOF
25116 /* confdefs.h. */
25117 _ACEOF
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h. */
25121 #include <png.h>
25122 _ACEOF
25123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25125 ac_status=$?
25126 grep -v '^ *+' conftest.er1 >conftest.err
25127 rm -f conftest.er1
25128 cat conftest.err >&5
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); } >/dev/null; then
25131 if test -s conftest.err; then
25132 ac_cpp_err=$ac_cxx_preproc_warn_flag
25133 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25134 else
25135 ac_cpp_err=
25136 fi
25137 else
25138 ac_cpp_err=yes
25139 fi
25140 if test -z "$ac_cpp_err"; then
25141 ac_header_preproc=yes
25142 else
25143 echo "$as_me: failed program was:" >&5
25144 sed 's/^/| /' conftest.$ac_ext >&5
25145
25146 ac_header_preproc=no
25147 fi
25148 rm -f conftest.err conftest.$ac_ext
25149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25150 echo "${ECHO_T}$ac_header_preproc" >&6
25151
25152 # So? What about this header?
25153 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25154 yes:no: )
25155 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25156 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25157 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25158 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25159 ac_header_preproc=yes
25160 ;;
25161 no:yes:* )
25162 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25163 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
25164 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25165 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25166 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25167 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25168 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25169 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
25170 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25171 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
25172 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25173 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
25174 (
25175 cat <<\_ASBOX
25176 ## ----------------------------------------- ##
25177 ## Report this to wx-dev@lists.wxwidgets.org ##
25178 ## ----------------------------------------- ##
25179 _ASBOX
25180 ) |
25181 sed "s/^/$as_me: WARNING: /" >&2
25182 ;;
25183 esac
25184 echo "$as_me:$LINENO: checking for png.h" >&5
25185 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25186 if test "${ac_cv_header_png_h+set}" = set; then
25187 echo $ECHO_N "(cached) $ECHO_C" >&6
25188 else
25189 ac_cv_header_png_h=$ac_header_preproc
25190 fi
25191 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25192 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25193
25194 fi
25195
25196
25197
25198 if test "$ac_cv_header_png_h" = "yes"; then
25199 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25200 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25201 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25203 else
25204 ac_check_lib_save_LIBS=$LIBS
25205 LIBS="-lpng -lz -lm $LIBS"
25206 cat >conftest.$ac_ext <<_ACEOF
25207 /* confdefs.h. */
25208 _ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h. */
25212
25213 /* Override any gcc2 internal prototype to avoid an error. */
25214 #ifdef __cplusplus
25215 extern "C"
25216 #endif
25217 /* We use char because int might match the return type of a gcc2
25218 builtin and then its argument prototype would still apply. */
25219 char png_check_sig ();
25220 int
25221 main ()
25222 {
25223 png_check_sig ();
25224 ;
25225 return 0;
25226 }
25227 _ACEOF
25228 rm -f conftest.$ac_objext conftest$ac_exeext
25229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25230 (eval $ac_link) 2>conftest.er1
25231 ac_status=$?
25232 grep -v '^ *+' conftest.er1 >conftest.err
25233 rm -f conftest.er1
25234 cat conftest.err >&5
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } &&
25237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25239 (eval $ac_try) 2>&5
25240 ac_status=$?
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); }; } &&
25243 { ac_try='test -s conftest$ac_exeext'
25244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245 (eval $ac_try) 2>&5
25246 ac_status=$?
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); }; }; then
25249 ac_cv_lib_png_png_check_sig=yes
25250 else
25251 echo "$as_me: failed program was:" >&5
25252 sed 's/^/| /' conftest.$ac_ext >&5
25253
25254 ac_cv_lib_png_png_check_sig=no
25255 fi
25256 rm -f conftest.err conftest.$ac_objext \
25257 conftest$ac_exeext conftest.$ac_ext
25258 LIBS=$ac_check_lib_save_LIBS
25259 fi
25260 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25261 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25262 if test $ac_cv_lib_png_png_check_sig = yes; then
25263 PNG_LINK=" -lpng -lz"
25264 fi
25265
25266 fi
25267
25268 if test "x$PNG_LINK" = "x" ; then
25269 if test "$wxUSE_LIBPNG" = "sys" ; then
25270 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25271 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25272 { (exit 1); exit 1; }; }
25273 else
25274 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25275 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25276 wxUSE_LIBPNG=builtin
25277 fi
25278 else
25279 wxUSE_LIBPNG=sys
25280 fi
25281 fi
25282 fi
25283
25284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25285 fi
25286
25287
25288 JPEG_LINK=
25289 if test "$wxUSE_LIBJPEG" != "no" ; then
25290 cat >>confdefs.h <<\_ACEOF
25291 #define wxUSE_LIBJPEG 1
25292 _ACEOF
25293
25294
25295 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25296 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25297 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25298 wxUSE_LIBJPEG=sys
25299 fi
25300
25301 if test "$wxUSE_MGL" != 1 ; then
25302 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25303 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25304 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25305 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25306 echo $ECHO_N "(cached) $ECHO_C" >&6
25307 else
25308 cat >conftest.$ac_ext <<_ACEOF
25309 /* confdefs.h. */
25310 _ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h. */
25314
25315 #undef HAVE_STDLIB_H
25316 #include <stdio.h>
25317 #include <jpeglib.h>
25318
25319 int
25320 main ()
25321 {
25322
25323
25324 ;
25325 return 0;
25326 }
25327 _ACEOF
25328 rm -f conftest.$ac_objext
25329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25330 (eval $ac_compile) 2>conftest.er1
25331 ac_status=$?
25332 grep -v '^ *+' conftest.er1 >conftest.err
25333 rm -f conftest.er1
25334 cat conftest.err >&5
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } &&
25337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25339 (eval $ac_try) 2>&5
25340 ac_status=$?
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); }; } &&
25343 { ac_try='test -s conftest.$ac_objext'
25344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25345 (eval $ac_try) 2>&5
25346 ac_status=$?
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); }; }; then
25349 ac_cv_header_jpeglib_h=yes
25350 else
25351 echo "$as_me: failed program was:" >&5
25352 sed 's/^/| /' conftest.$ac_ext >&5
25353
25354 ac_cv_header_jpeglib_h=no
25355
25356 fi
25357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25358
25359 fi
25360
25361 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25362 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25363
25364 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25365 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25366 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25367 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25368 echo $ECHO_N "(cached) $ECHO_C" >&6
25369 else
25370 ac_check_lib_save_LIBS=$LIBS
25371 LIBS="-ljpeg $LIBS"
25372 cat >conftest.$ac_ext <<_ACEOF
25373 /* confdefs.h. */
25374 _ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h. */
25378
25379 /* Override any gcc2 internal prototype to avoid an error. */
25380 #ifdef __cplusplus
25381 extern "C"
25382 #endif
25383 /* We use char because int might match the return type of a gcc2
25384 builtin and then its argument prototype would still apply. */
25385 char jpeg_read_header ();
25386 int
25387 main ()
25388 {
25389 jpeg_read_header ();
25390 ;
25391 return 0;
25392 }
25393 _ACEOF
25394 rm -f conftest.$ac_objext conftest$ac_exeext
25395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25396 (eval $ac_link) 2>conftest.er1
25397 ac_status=$?
25398 grep -v '^ *+' conftest.er1 >conftest.err
25399 rm -f conftest.er1
25400 cat conftest.err >&5
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); } &&
25403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25405 (eval $ac_try) 2>&5
25406 ac_status=$?
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); }; } &&
25409 { ac_try='test -s conftest$ac_exeext'
25410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411 (eval $ac_try) 2>&5
25412 ac_status=$?
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); }; }; then
25415 ac_cv_lib_jpeg_jpeg_read_header=yes
25416 else
25417 echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25419
25420 ac_cv_lib_jpeg_jpeg_read_header=no
25421 fi
25422 rm -f conftest.err conftest.$ac_objext \
25423 conftest$ac_exeext conftest.$ac_ext
25424 LIBS=$ac_check_lib_save_LIBS
25425 fi
25426 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25427 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25428 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25429 JPEG_LINK=" -ljpeg"
25430 fi
25431
25432 fi
25433
25434 if test "x$JPEG_LINK" = "x" ; then
25435 if test "$wxUSE_LIBJPEG" = "sys" ; then
25436 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25437 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25438 { (exit 1); exit 1; }; }
25439 else
25440 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25441 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25442 wxUSE_LIBJPEG=builtin
25443 fi
25444 else
25445 wxUSE_LIBJPEG=sys
25446 fi
25447 fi
25448 fi
25449 fi
25450
25451
25452 TIFF_LINK=
25453 TIFF_PREREQ_LINKS=-lm
25454 if test "$wxUSE_LIBTIFF" != "no" ; then
25455 cat >>confdefs.h <<\_ACEOF
25456 #define wxUSE_LIBTIFF 1
25457 _ACEOF
25458
25459
25460 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25461 if test "$wxUSE_LIBJPEG" = "sys"; then
25462 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25463 fi
25464 if test "$wxUSE_ZLIB" = "sys"; then
25465 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25466 fi
25467 if test "${ac_cv_header_tiffio_h+set}" = set; then
25468 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25469 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25470 if test "${ac_cv_header_tiffio_h+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
25472 fi
25473 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25474 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25475 else
25476 # Is the header compilable?
25477 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25478 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25479 cat >conftest.$ac_ext <<_ACEOF
25480 /* confdefs.h. */
25481 _ACEOF
25482 cat confdefs.h >>conftest.$ac_ext
25483 cat >>conftest.$ac_ext <<_ACEOF
25484 /* end confdefs.h. */
25485 $ac_includes_default
25486 #include <tiffio.h>
25487 _ACEOF
25488 rm -f conftest.$ac_objext
25489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25490 (eval $ac_compile) 2>conftest.er1
25491 ac_status=$?
25492 grep -v '^ *+' conftest.er1 >conftest.err
25493 rm -f conftest.er1
25494 cat conftest.err >&5
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); } &&
25497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25499 (eval $ac_try) 2>&5
25500 ac_status=$?
25501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); }; } &&
25503 { ac_try='test -s conftest.$ac_objext'
25504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25505 (eval $ac_try) 2>&5
25506 ac_status=$?
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); }; }; then
25509 ac_header_compiler=yes
25510 else
25511 echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25513
25514 ac_header_compiler=no
25515 fi
25516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25518 echo "${ECHO_T}$ac_header_compiler" >&6
25519
25520 # Is the header present?
25521 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25522 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25523 cat >conftest.$ac_ext <<_ACEOF
25524 /* confdefs.h. */
25525 _ACEOF
25526 cat confdefs.h >>conftest.$ac_ext
25527 cat >>conftest.$ac_ext <<_ACEOF
25528 /* end confdefs.h. */
25529 #include <tiffio.h>
25530 _ACEOF
25531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25533 ac_status=$?
25534 grep -v '^ *+' conftest.er1 >conftest.err
25535 rm -f conftest.er1
25536 cat conftest.err >&5
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); } >/dev/null; then
25539 if test -s conftest.err; then
25540 ac_cpp_err=$ac_cxx_preproc_warn_flag
25541 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25542 else
25543 ac_cpp_err=
25544 fi
25545 else
25546 ac_cpp_err=yes
25547 fi
25548 if test -z "$ac_cpp_err"; then
25549 ac_header_preproc=yes
25550 else
25551 echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25553
25554 ac_header_preproc=no
25555 fi
25556 rm -f conftest.err conftest.$ac_ext
25557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25558 echo "${ECHO_T}$ac_header_preproc" >&6
25559
25560 # So? What about this header?
25561 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25562 yes:no: )
25563 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25564 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25565 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25566 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25567 ac_header_preproc=yes
25568 ;;
25569 no:yes:* )
25570 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25571 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
25572 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25573 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25574 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25575 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25576 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25577 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
25578 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25579 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
25580 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25581 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
25582 (
25583 cat <<\_ASBOX
25584 ## ----------------------------------------- ##
25585 ## Report this to wx-dev@lists.wxwidgets.org ##
25586 ## ----------------------------------------- ##
25587 _ASBOX
25588 ) |
25589 sed "s/^/$as_me: WARNING: /" >&2
25590 ;;
25591 esac
25592 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25593 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25594 if test "${ac_cv_header_tiffio_h+set}" = set; then
25595 echo $ECHO_N "(cached) $ECHO_C" >&6
25596 else
25597 ac_cv_header_tiffio_h=$ac_header_preproc
25598 fi
25599 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25600 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25601
25602 fi
25603 if test $ac_cv_header_tiffio_h = yes; then
25604
25605 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25606 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25607 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25608 echo $ECHO_N "(cached) $ECHO_C" >&6
25609 else
25610 ac_check_lib_save_LIBS=$LIBS
25611 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25612 cat >conftest.$ac_ext <<_ACEOF
25613 /* confdefs.h. */
25614 _ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h. */
25618
25619 /* Override any gcc2 internal prototype to avoid an error. */
25620 #ifdef __cplusplus
25621 extern "C"
25622 #endif
25623 /* We use char because int might match the return type of a gcc2
25624 builtin and then its argument prototype would still apply. */
25625 char TIFFError ();
25626 int
25627 main ()
25628 {
25629 TIFFError ();
25630 ;
25631 return 0;
25632 }
25633 _ACEOF
25634 rm -f conftest.$ac_objext conftest$ac_exeext
25635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25636 (eval $ac_link) 2>conftest.er1
25637 ac_status=$?
25638 grep -v '^ *+' conftest.er1 >conftest.err
25639 rm -f conftest.er1
25640 cat conftest.err >&5
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } &&
25643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25645 (eval $ac_try) 2>&5
25646 ac_status=$?
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); }; } &&
25649 { ac_try='test -s conftest$ac_exeext'
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25652 ac_status=$?
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; }; then
25655 ac_cv_lib_tiff_TIFFError=yes
25656 else
25657 echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25659
25660 ac_cv_lib_tiff_TIFFError=no
25661 fi
25662 rm -f conftest.err conftest.$ac_objext \
25663 conftest$ac_exeext conftest.$ac_ext
25664 LIBS=$ac_check_lib_save_LIBS
25665 fi
25666 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25667 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25668 if test $ac_cv_lib_tiff_TIFFError = yes; then
25669 TIFF_LINK=" -ltiff"
25670 fi
25671
25672
25673
25674 fi
25675
25676
25677
25678 if test "x$TIFF_LINK" = "x" ; then
25679 if test "$wxUSE_LIBTIFF" = "sys" ; then
25680 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25681 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25682 { (exit 1); exit 1; }; }
25683 else
25684 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25685 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25686 wxUSE_LIBTIFF=builtin
25687 fi
25688 else
25689 wxUSE_LIBTIFF=sys
25690 fi
25691 fi
25692 fi
25693
25694
25695 if test "$wxUSE_WCHAR_T" != "yes"; then
25696 if test "$wxUSE_EXPAT" != "no"; then
25697 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25698 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25699 wxUSE_EXPAT=no
25700 fi
25701 if test "$wxUSE_XML" != "no"; then
25702 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25703 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25704 wxUSE_XML=no
25705 fi
25706 fi
25707
25708 if test "$wxUSE_EXPAT" != "no"; then
25709 wxUSE_XML=yes
25710 cat >>confdefs.h <<\_ACEOF
25711 #define wxUSE_EXPAT 1
25712 _ACEOF
25713
25714 cat >>confdefs.h <<\_ACEOF
25715 #define wxUSE_XML 1
25716 _ACEOF
25717
25718
25719 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25720 if test "${ac_cv_header_expat_h+set}" = set; then
25721 echo "$as_me:$LINENO: checking for expat.h" >&5
25722 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25723 if test "${ac_cv_header_expat_h+set}" = set; then
25724 echo $ECHO_N "(cached) $ECHO_C" >&6
25725 fi
25726 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25727 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25728 else
25729 # Is the header compilable?
25730 echo "$as_me:$LINENO: checking expat.h usability" >&5
25731 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25732 cat >conftest.$ac_ext <<_ACEOF
25733 /* confdefs.h. */
25734 _ACEOF
25735 cat confdefs.h >>conftest.$ac_ext
25736 cat >>conftest.$ac_ext <<_ACEOF
25737 /* end confdefs.h. */
25738 $ac_includes_default
25739 #include <expat.h>
25740 _ACEOF
25741 rm -f conftest.$ac_objext
25742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25743 (eval $ac_compile) 2>conftest.er1
25744 ac_status=$?
25745 grep -v '^ *+' conftest.er1 >conftest.err
25746 rm -f conftest.er1
25747 cat conftest.err >&5
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); } &&
25750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25752 (eval $ac_try) 2>&5
25753 ac_status=$?
25754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); }; } &&
25756 { ac_try='test -s conftest.$ac_objext'
25757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758 (eval $ac_try) 2>&5
25759 ac_status=$?
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); }; }; then
25762 ac_header_compiler=yes
25763 else
25764 echo "$as_me: failed program was:" >&5
25765 sed 's/^/| /' conftest.$ac_ext >&5
25766
25767 ac_header_compiler=no
25768 fi
25769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25771 echo "${ECHO_T}$ac_header_compiler" >&6
25772
25773 # Is the header present?
25774 echo "$as_me:$LINENO: checking expat.h presence" >&5
25775 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25776 cat >conftest.$ac_ext <<_ACEOF
25777 /* confdefs.h. */
25778 _ACEOF
25779 cat confdefs.h >>conftest.$ac_ext
25780 cat >>conftest.$ac_ext <<_ACEOF
25781 /* end confdefs.h. */
25782 #include <expat.h>
25783 _ACEOF
25784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25786 ac_status=$?
25787 grep -v '^ *+' conftest.er1 >conftest.err
25788 rm -f conftest.er1
25789 cat conftest.err >&5
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); } >/dev/null; then
25792 if test -s conftest.err; then
25793 ac_cpp_err=$ac_cxx_preproc_warn_flag
25794 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25795 else
25796 ac_cpp_err=
25797 fi
25798 else
25799 ac_cpp_err=yes
25800 fi
25801 if test -z "$ac_cpp_err"; then
25802 ac_header_preproc=yes
25803 else
25804 echo "$as_me: failed program was:" >&5
25805 sed 's/^/| /' conftest.$ac_ext >&5
25806
25807 ac_header_preproc=no
25808 fi
25809 rm -f conftest.err conftest.$ac_ext
25810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25811 echo "${ECHO_T}$ac_header_preproc" >&6
25812
25813 # So? What about this header?
25814 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25815 yes:no: )
25816 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25817 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25818 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25819 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25820 ac_header_preproc=yes
25821 ;;
25822 no:yes:* )
25823 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25824 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
25825 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25826 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25827 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25828 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25829 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25830 echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
25831 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25832 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
25833 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25834 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
25835 (
25836 cat <<\_ASBOX
25837 ## ----------------------------------------- ##
25838 ## Report this to wx-dev@lists.wxwidgets.org ##
25839 ## ----------------------------------------- ##
25840 _ASBOX
25841 ) |
25842 sed "s/^/$as_me: WARNING: /" >&2
25843 ;;
25844 esac
25845 echo "$as_me:$LINENO: checking for expat.h" >&5
25846 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25847 if test "${ac_cv_header_expat_h+set}" = set; then
25848 echo $ECHO_N "(cached) $ECHO_C" >&6
25849 else
25850 ac_cv_header_expat_h=$ac_header_preproc
25851 fi
25852 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25853 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25854
25855 fi
25856 if test $ac_cv_header_expat_h = yes; then
25857 found_expat_h=1
25858 fi
25859
25860
25861 if test "x$found_expat_h" = "x1"; then
25862 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25863 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25864 if test "${wx_cv_expat_is_not_broken+set}" = set; then
25865 echo $ECHO_N "(cached) $ECHO_C" >&6
25866 else
25867
25868 cat >conftest.$ac_ext <<_ACEOF
25869 /* confdefs.h. */
25870 _ACEOF
25871 cat confdefs.h >>conftest.$ac_ext
25872 cat >>conftest.$ac_ext <<_ACEOF
25873 /* end confdefs.h. */
25874 #include <expat.h>
25875 int
25876 main ()
25877 {
25878
25879 ;
25880 return 0;
25881 }
25882 _ACEOF
25883 rm -f conftest.$ac_objext
25884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25885 (eval $ac_compile) 2>conftest.er1
25886 ac_status=$?
25887 grep -v '^ *+' conftest.er1 >conftest.err
25888 rm -f conftest.er1
25889 cat conftest.err >&5
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); } &&
25892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894 (eval $ac_try) 2>&5
25895 ac_status=$?
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); }; } &&
25898 { ac_try='test -s conftest.$ac_objext'
25899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25900 (eval $ac_try) 2>&5
25901 ac_status=$?
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); }; }; then
25904 wx_cv_expat_is_not_broken=yes
25905 else
25906 echo "$as_me: failed program was:" >&5
25907 sed 's/^/| /' conftest.$ac_ext >&5
25908
25909 wx_cv_expat_is_not_broken=no
25910
25911 fi
25912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25913
25914
25915 fi
25916 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25917 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25918 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25919 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25920 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25921 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25922 echo $ECHO_N "(cached) $ECHO_C" >&6
25923 else
25924 ac_check_lib_save_LIBS=$LIBS
25925 LIBS="-lexpat $LIBS"
25926 cat >conftest.$ac_ext <<_ACEOF
25927 /* confdefs.h. */
25928 _ACEOF
25929 cat confdefs.h >>conftest.$ac_ext
25930 cat >>conftest.$ac_ext <<_ACEOF
25931 /* end confdefs.h. */
25932
25933 /* Override any gcc2 internal prototype to avoid an error. */
25934 #ifdef __cplusplus
25935 extern "C"
25936 #endif
25937 /* We use char because int might match the return type of a gcc2
25938 builtin and then its argument prototype would still apply. */
25939 char XML_ParserCreate ();
25940 int
25941 main ()
25942 {
25943 XML_ParserCreate ();
25944 ;
25945 return 0;
25946 }
25947 _ACEOF
25948 rm -f conftest.$ac_objext conftest$ac_exeext
25949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25950 (eval $ac_link) 2>conftest.er1
25951 ac_status=$?
25952 grep -v '^ *+' conftest.er1 >conftest.err
25953 rm -f conftest.er1
25954 cat conftest.err >&5
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } &&
25957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25959 (eval $ac_try) 2>&5
25960 ac_status=$?
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); }; } &&
25963 { ac_try='test -s conftest$ac_exeext'
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25966 ac_status=$?
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; }; then
25969 ac_cv_lib_expat_XML_ParserCreate=yes
25970 else
25971 echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25973
25974 ac_cv_lib_expat_XML_ParserCreate=no
25975 fi
25976 rm -f conftest.err conftest.$ac_objext \
25977 conftest$ac_exeext conftest.$ac_ext
25978 LIBS=$ac_check_lib_save_LIBS
25979 fi
25980 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25981 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25982 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25983 EXPAT_LINK=" -lexpat"
25984 fi
25985
25986 fi
25987 fi
25988 if test "x$EXPAT_LINK" = "x" ; then
25989 if test "$wxUSE_EXPAT" = "sys" ; then
25990 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25991 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25992 { (exit 1); exit 1; }; }
25993 else
25994 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25995 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25996 wxUSE_EXPAT=builtin
25997 fi
25998 else
25999 wxUSE_EXPAT=sys
26000 fi
26001 fi
26002 if test "$wxUSE_EXPAT" = "builtin" ; then
26003
26004
26005 subdirs="$subdirs src/expat"
26006
26007 fi
26008 fi
26009
26010
26011
26012 if test "$wxUSE_LIBMSPACK" != "no"; then
26013 if test "${ac_cv_header_mspack_h+set}" = set; then
26014 echo "$as_me:$LINENO: checking for mspack.h" >&5
26015 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26016 if test "${ac_cv_header_mspack_h+set}" = set; then
26017 echo $ECHO_N "(cached) $ECHO_C" >&6
26018 fi
26019 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26020 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26021 else
26022 # Is the header compilable?
26023 echo "$as_me:$LINENO: checking mspack.h usability" >&5
26024 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26025 cat >conftest.$ac_ext <<_ACEOF
26026 /* confdefs.h. */
26027 _ACEOF
26028 cat confdefs.h >>conftest.$ac_ext
26029 cat >>conftest.$ac_ext <<_ACEOF
26030 /* end confdefs.h. */
26031 $ac_includes_default
26032 #include <mspack.h>
26033 _ACEOF
26034 rm -f conftest.$ac_objext
26035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26036 (eval $ac_compile) 2>conftest.er1
26037 ac_status=$?
26038 grep -v '^ *+' conftest.er1 >conftest.err
26039 rm -f conftest.er1
26040 cat conftest.err >&5
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); } &&
26043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045 (eval $ac_try) 2>&5
26046 ac_status=$?
26047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); }; } &&
26049 { ac_try='test -s conftest.$ac_objext'
26050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26051 (eval $ac_try) 2>&5
26052 ac_status=$?
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); }; }; then
26055 ac_header_compiler=yes
26056 else
26057 echo "$as_me: failed program was:" >&5
26058 sed 's/^/| /' conftest.$ac_ext >&5
26059
26060 ac_header_compiler=no
26061 fi
26062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26064 echo "${ECHO_T}$ac_header_compiler" >&6
26065
26066 # Is the header present?
26067 echo "$as_me:$LINENO: checking mspack.h presence" >&5
26068 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26069 cat >conftest.$ac_ext <<_ACEOF
26070 /* confdefs.h. */
26071 _ACEOF
26072 cat confdefs.h >>conftest.$ac_ext
26073 cat >>conftest.$ac_ext <<_ACEOF
26074 /* end confdefs.h. */
26075 #include <mspack.h>
26076 _ACEOF
26077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26079 ac_status=$?
26080 grep -v '^ *+' conftest.er1 >conftest.err
26081 rm -f conftest.er1
26082 cat conftest.err >&5
26083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084 (exit $ac_status); } >/dev/null; then
26085 if test -s conftest.err; then
26086 ac_cpp_err=$ac_cxx_preproc_warn_flag
26087 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26088 else
26089 ac_cpp_err=
26090 fi
26091 else
26092 ac_cpp_err=yes
26093 fi
26094 if test -z "$ac_cpp_err"; then
26095 ac_header_preproc=yes
26096 else
26097 echo "$as_me: failed program was:" >&5
26098 sed 's/^/| /' conftest.$ac_ext >&5
26099
26100 ac_header_preproc=no
26101 fi
26102 rm -f conftest.err conftest.$ac_ext
26103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26104 echo "${ECHO_T}$ac_header_preproc" >&6
26105
26106 # So? What about this header?
26107 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26108 yes:no: )
26109 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26110 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26111 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26112 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26113 ac_header_preproc=yes
26114 ;;
26115 no:yes:* )
26116 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26117 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
26118 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26119 echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26120 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26121 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26122 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26123 echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
26124 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26125 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
26126 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26127 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
26128 (
26129 cat <<\_ASBOX
26130 ## ----------------------------------------- ##
26131 ## Report this to wx-dev@lists.wxwidgets.org ##
26132 ## ----------------------------------------- ##
26133 _ASBOX
26134 ) |
26135 sed "s/^/$as_me: WARNING: /" >&2
26136 ;;
26137 esac
26138 echo "$as_me:$LINENO: checking for mspack.h" >&5
26139 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26140 if test "${ac_cv_header_mspack_h+set}" = set; then
26141 echo $ECHO_N "(cached) $ECHO_C" >&6
26142 else
26143 ac_cv_header_mspack_h=$ac_header_preproc
26144 fi
26145 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26146 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26147
26148 fi
26149 if test $ac_cv_header_mspack_h = yes; then
26150 found_mspack_h=1
26151 fi
26152
26153
26154 if test "x$found_mspack_h" = "x1"; then
26155 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26156 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26157 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26158 echo $ECHO_N "(cached) $ECHO_C" >&6
26159 else
26160 ac_check_lib_save_LIBS=$LIBS
26161 LIBS="-lmspack $LIBS"
26162 cat >conftest.$ac_ext <<_ACEOF
26163 /* confdefs.h. */
26164 _ACEOF
26165 cat confdefs.h >>conftest.$ac_ext
26166 cat >>conftest.$ac_ext <<_ACEOF
26167 /* end confdefs.h. */
26168
26169 /* Override any gcc2 internal prototype to avoid an error. */
26170 #ifdef __cplusplus
26171 extern "C"
26172 #endif
26173 /* We use char because int might match the return type of a gcc2
26174 builtin and then its argument prototype would still apply. */
26175 char mspack_create_chm_decompressor ();
26176 int
26177 main ()
26178 {
26179 mspack_create_chm_decompressor ();
26180 ;
26181 return 0;
26182 }
26183 _ACEOF
26184 rm -f conftest.$ac_objext conftest$ac_exeext
26185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26186 (eval $ac_link) 2>conftest.er1
26187 ac_status=$?
26188 grep -v '^ *+' conftest.er1 >conftest.err
26189 rm -f conftest.er1
26190 cat conftest.err >&5
26191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); } &&
26193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195 (eval $ac_try) 2>&5
26196 ac_status=$?
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); }; } &&
26199 { ac_try='test -s conftest$ac_exeext'
26200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26201 (eval $ac_try) 2>&5
26202 ac_status=$?
26203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); }; }; then
26205 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26206 else
26207 echo "$as_me: failed program was:" >&5
26208 sed 's/^/| /' conftest.$ac_ext >&5
26209
26210 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26211 fi
26212 rm -f conftest.err conftest.$ac_objext \
26213 conftest$ac_exeext conftest.$ac_ext
26214 LIBS=$ac_check_lib_save_LIBS
26215 fi
26216 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26217 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26218 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26219 MSPACK_LINK=" -lmspack"
26220 fi
26221
26222 fi
26223 if test "x$MSPACK_LINK" = "x" ; then
26224 wxUSE_LIBMSPACK=no
26225 fi
26226 fi
26227
26228 if test "$wxUSE_LIBMSPACK" != "no"; then
26229 cat >>confdefs.h <<\_ACEOF
26230 #define wxUSE_LIBMSPACK 1
26231 _ACEOF
26232
26233 fi
26234
26235
26236
26237 AFMINSTALL=
26238 WIN32INSTALL=
26239
26240 TOOLKIT=
26241 TOOLKIT_INCLUDE=
26242 WIDGET_SET=
26243
26244 if test "$USE_WIN32" = 1 ; then
26245
26246 for ac_header in w32api.h
26247 do
26248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26250 echo "$as_me:$LINENO: checking for $ac_header" >&5
26251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26253 echo $ECHO_N "(cached) $ECHO_C" >&6
26254 fi
26255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26257 else
26258 # Is the header compilable?
26259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26261 cat >conftest.$ac_ext <<_ACEOF
26262 /* confdefs.h. */
26263 _ACEOF
26264 cat confdefs.h >>conftest.$ac_ext
26265 cat >>conftest.$ac_ext <<_ACEOF
26266 /* end confdefs.h. */
26267 $ac_includes_default
26268 #include <$ac_header>
26269 _ACEOF
26270 rm -f conftest.$ac_objext
26271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26272 (eval $ac_compile) 2>conftest.er1
26273 ac_status=$?
26274 grep -v '^ *+' conftest.er1 >conftest.err
26275 rm -f conftest.er1
26276 cat conftest.err >&5
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); } &&
26279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281 (eval $ac_try) 2>&5
26282 ac_status=$?
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); }; } &&
26285 { ac_try='test -s conftest.$ac_objext'
26286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287 (eval $ac_try) 2>&5
26288 ac_status=$?
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); }; }; then
26291 ac_header_compiler=yes
26292 else
26293 echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26295
26296 ac_header_compiler=no
26297 fi
26298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26300 echo "${ECHO_T}$ac_header_compiler" >&6
26301
26302 # Is the header present?
26303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26305 cat >conftest.$ac_ext <<_ACEOF
26306 /* confdefs.h. */
26307 _ACEOF
26308 cat confdefs.h >>conftest.$ac_ext
26309 cat >>conftest.$ac_ext <<_ACEOF
26310 /* end confdefs.h. */
26311 #include <$ac_header>
26312 _ACEOF
26313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26315 ac_status=$?
26316 grep -v '^ *+' conftest.er1 >conftest.err
26317 rm -f conftest.er1
26318 cat conftest.err >&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } >/dev/null; then
26321 if test -s conftest.err; then
26322 ac_cpp_err=$ac_cxx_preproc_warn_flag
26323 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26324 else
26325 ac_cpp_err=
26326 fi
26327 else
26328 ac_cpp_err=yes
26329 fi
26330 if test -z "$ac_cpp_err"; then
26331 ac_header_preproc=yes
26332 else
26333 echo "$as_me: failed program was:" >&5
26334 sed 's/^/| /' conftest.$ac_ext >&5
26335
26336 ac_header_preproc=no
26337 fi
26338 rm -f conftest.err conftest.$ac_ext
26339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26340 echo "${ECHO_T}$ac_header_preproc" >&6
26341
26342 # So? What about this header?
26343 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26344 yes:no: )
26345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26349 ac_header_preproc=yes
26350 ;;
26351 no:yes:* )
26352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26364 (
26365 cat <<\_ASBOX
26366 ## ----------------------------------------- ##
26367 ## Report this to wx-dev@lists.wxwidgets.org ##
26368 ## ----------------------------------------- ##
26369 _ASBOX
26370 ) |
26371 sed "s/^/$as_me: WARNING: /" >&2
26372 ;;
26373 esac
26374 echo "$as_me:$LINENO: checking for $ac_header" >&5
26375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26377 echo $ECHO_N "(cached) $ECHO_C" >&6
26378 else
26379 eval "$as_ac_Header=\$ac_header_preproc"
26380 fi
26381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26383
26384 fi
26385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26386 cat >>confdefs.h <<_ACEOF
26387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26388 _ACEOF
26389
26390 fi
26391
26392 done
26393
26394 if test "${ac_cv_header_windows_h+set}" = set; then
26395 echo "$as_me:$LINENO: checking for windows.h" >&5
26396 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26397 if test "${ac_cv_header_windows_h+set}" = set; then
26398 echo $ECHO_N "(cached) $ECHO_C" >&6
26399 fi
26400 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26401 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26402 else
26403 # Is the header compilable?
26404 echo "$as_me:$LINENO: checking windows.h usability" >&5
26405 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26406 cat >conftest.$ac_ext <<_ACEOF
26407 /* confdefs.h. */
26408 _ACEOF
26409 cat confdefs.h >>conftest.$ac_ext
26410 cat >>conftest.$ac_ext <<_ACEOF
26411 /* end confdefs.h. */
26412 $ac_includes_default
26413 #include <windows.h>
26414 _ACEOF
26415 rm -f conftest.$ac_objext
26416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26417 (eval $ac_compile) 2>conftest.er1
26418 ac_status=$?
26419 grep -v '^ *+' conftest.er1 >conftest.err
26420 rm -f conftest.er1
26421 cat conftest.err >&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); } &&
26424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26426 (eval $ac_try) 2>&5
26427 ac_status=$?
26428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429 (exit $ac_status); }; } &&
26430 { ac_try='test -s conftest.$ac_objext'
26431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26432 (eval $ac_try) 2>&5
26433 ac_status=$?
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); }; }; then
26436 ac_header_compiler=yes
26437 else
26438 echo "$as_me: failed program was:" >&5
26439 sed 's/^/| /' conftest.$ac_ext >&5
26440
26441 ac_header_compiler=no
26442 fi
26443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26445 echo "${ECHO_T}$ac_header_compiler" >&6
26446
26447 # Is the header present?
26448 echo "$as_me:$LINENO: checking windows.h presence" >&5
26449 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26450 cat >conftest.$ac_ext <<_ACEOF
26451 /* confdefs.h. */
26452 _ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h. */
26456 #include <windows.h>
26457 _ACEOF
26458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26460 ac_status=$?
26461 grep -v '^ *+' conftest.er1 >conftest.err
26462 rm -f conftest.er1
26463 cat conftest.err >&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } >/dev/null; then
26466 if test -s conftest.err; then
26467 ac_cpp_err=$ac_cxx_preproc_warn_flag
26468 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26469 else
26470 ac_cpp_err=
26471 fi
26472 else
26473 ac_cpp_err=yes
26474 fi
26475 if test -z "$ac_cpp_err"; then
26476 ac_header_preproc=yes
26477 else
26478 echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26480
26481 ac_header_preproc=no
26482 fi
26483 rm -f conftest.err conftest.$ac_ext
26484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26485 echo "${ECHO_T}$ac_header_preproc" >&6
26486
26487 # So? What about this header?
26488 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26489 yes:no: )
26490 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26491 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26492 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26493 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26494 ac_header_preproc=yes
26495 ;;
26496 no:yes:* )
26497 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26498 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
26499 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26500 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26501 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26502 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26503 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26504 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
26505 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26506 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
26507 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26508 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
26509 (
26510 cat <<\_ASBOX
26511 ## ----------------------------------------- ##
26512 ## Report this to wx-dev@lists.wxwidgets.org ##
26513 ## ----------------------------------------- ##
26514 _ASBOX
26515 ) |
26516 sed "s/^/$as_me: WARNING: /" >&2
26517 ;;
26518 esac
26519 echo "$as_me:$LINENO: checking for windows.h" >&5
26520 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26521 if test "${ac_cv_header_windows_h+set}" = set; then
26522 echo $ECHO_N "(cached) $ECHO_C" >&6
26523 else
26524 ac_cv_header_windows_h=$ac_header_preproc
26525 fi
26526 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26527 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26528
26529 fi
26530 if test $ac_cv_header_windows_h = yes; then
26531 :
26532 else
26533
26534 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26535 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26536 { (exit 1); exit 1; }; }
26537
26538 fi
26539
26540
26541
26542 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26543
26544 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26545 LIBS="$LIBS -loleacc"
26546 fi
26547
26548 case "${host}" in
26549 *-*-cygwin* )
26550 LIBS="$LIBS -lkernel32 -luser32"
26551 esac
26552
26553 if test "$wxUSE_ODBC" = "sys" ; then
26554 wxUSE_ODBC = "yes"
26555 fi
26556 if test "$wxUSE_ODBC" = "yes" ; then
26557 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26558 cat >>confdefs.h <<\_ACEOF
26559 #define wxUSE_ODBC 1
26560 _ACEOF
26561
26562 fi
26563
26564 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
26565 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26566
26567 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
26568
26569 WIN32INSTALL=win32install
26570 fi
26571
26572 if test "$wxUSE_GUI" = "yes"; then
26573 USE_GUI=1
26574
26575 GUI_TK_LIBRARY=
26576
26577 WXGTK12=
26578 WXGTK127=
26579 WXGTK20=
26580 WXGPE=
26581
26582 if test "$wxUSE_COCOA" = 1 ; then
26583 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26584 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26585 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26586 wxUSE_PRINTING_ARCHITECTURE=no
26587 fi
26588 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26589 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26590 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26591 wxUSE_DRAG_AND_DROP=no
26592 fi
26593 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26594 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26595 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26596 wxUSE_DRAGIMAGE=no
26597 fi
26598 fi
26599
26600 if test "$wxUSE_MSW" = 1 ; then
26601 TOOLKIT=MSW
26602 GUIDIST=MSW_DIST
26603
26604 case "${host}" in
26605 *-*-mingw32* )
26606 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26607 esac
26608 fi
26609
26610 if test "$wxUSE_GTK" = 1; then
26611 ac_ext=c
26612 ac_cpp='$CPP $CPPFLAGS'
26613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26616
26617
26618 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26619 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26620
26621 gtk_version_cached=1
26622 if test "${wx_cv_lib_gtk+set}" = set; then
26623 echo $ECHO_N "(cached) $ECHO_C" >&6
26624 else
26625
26626 gtk_version_cached=0
26627 echo "$as_me:$LINENO: result: " >&5
26628 echo "${ECHO_T}" >&6
26629
26630 GTK_MODULES=
26631 if test "$wxUSE_THREADS" = "yes"; then
26632 GTK_MODULES=gthread
26633 fi
26634
26635 wx_cv_lib_gtk=
26636 if test "x$wxGTK_VERSION" != "x1"
26637 then
26638 case "${host}" in
26639 *-*-solaris2* )
26640 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26641 enable_gtktest=no
26642 fi
26643 esac
26644
26645 # Check whether --enable-gtktest or --disable-gtktest was given.
26646 if test "${enable_gtktest+set}" = set; then
26647 enableval="$enable_gtktest"
26648
26649 else
26650 enable_gtktest=yes
26651 fi;
26652
26653 pkg_config_args=gtk+-2.0
26654 for module in . $GTK_MODULES
26655 do
26656 case "$module" in
26657 gthread)
26658 pkg_config_args="$pkg_config_args gthread-2.0"
26659 ;;
26660 esac
26661 done
26662
26663 no_gtk=""
26664
26665 # Extract the first word of "pkg-config", so it can be a program name with args.
26666 set dummy pkg-config; ac_word=$2
26667 echo "$as_me:$LINENO: checking for $ac_word" >&5
26668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26669 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26670 echo $ECHO_N "(cached) $ECHO_C" >&6
26671 else
26672 case $PKG_CONFIG in
26673 [\\/]* | ?:[\\/]*)
26674 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26675 ;;
26676 *)
26677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26678 for as_dir in $PATH
26679 do
26680 IFS=$as_save_IFS
26681 test -z "$as_dir" && as_dir=.
26682 for ac_exec_ext in '' $ac_executable_extensions; do
26683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26684 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26686 break 2
26687 fi
26688 done
26689 done
26690
26691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26692 ;;
26693 esac
26694 fi
26695 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26696
26697 if test -n "$PKG_CONFIG"; then
26698 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26699 echo "${ECHO_T}$PKG_CONFIG" >&6
26700 else
26701 echo "$as_me:$LINENO: result: no" >&5
26702 echo "${ECHO_T}no" >&6
26703 fi
26704
26705
26706 if test x$PKG_CONFIG != xno ; then
26707 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26708 :
26709 else
26710 echo "*** pkg-config too old; version 0.7 or better required."
26711 no_gtk=yes
26712 PKG_CONFIG=no
26713 fi
26714 else
26715 no_gtk=yes
26716 fi
26717
26718 min_gtk_version=2.0.0
26719 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26720 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26721
26722 if test x$PKG_CONFIG != xno ; then
26723 ## don't try to run the test against uninstalled libtool libs
26724 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26725 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26726 enable_gtktest=no
26727 fi
26728
26729 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26730 :
26731 else
26732 no_gtk=yes
26733 fi
26734 fi
26735
26736 if test x"$no_gtk" = x ; then
26737 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26738 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26739 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26740 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26741 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26742 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26743 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26744 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26745 if test "x$enable_gtktest" = "xyes" ; then
26746 ac_save_CFLAGS="$CFLAGS"
26747 ac_save_LIBS="$LIBS"
26748 CFLAGS="$CFLAGS $GTK_CFLAGS"
26749 LIBS="$GTK_LIBS $LIBS"
26750 rm -f conf.gtktest
26751 if test "$cross_compiling" = yes; then
26752 echo $ac_n "cross compiling; assumed OK... $ac_c"
26753 else
26754 cat >conftest.$ac_ext <<_ACEOF
26755 /* confdefs.h. */
26756 _ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h. */
26760
26761 #include <gtk/gtk.h>
26762 #include <stdio.h>
26763 #include <stdlib.h>
26764
26765 int
26766 main ()
26767 {
26768 int major, minor, micro;
26769 char *tmp_version;
26770
26771 system ("touch conf.gtktest");
26772
26773 /* HP/UX 9 (%@#!) writes to sscanf strings */
26774 tmp_version = g_strdup("$min_gtk_version");
26775 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26776 printf("%s, bad version string\n", "$min_gtk_version");
26777 exit(1);
26778 }
26779
26780 if ((gtk_major_version != $gtk_config_major_version) ||
26781 (gtk_minor_version != $gtk_config_minor_version) ||
26782 (gtk_micro_version != $gtk_config_micro_version))
26783 {
26784 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26785 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26786 gtk_major_version, gtk_minor_version, gtk_micro_version);
26787 printf ("*** was found! If pkg-config was correct, then it is best\n");
26788 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26789 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26790 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26791 printf("*** required on your system.\n");
26792 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26793 printf("*** to point to the correct configuration files\n");
26794 }
26795 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26796 (gtk_minor_version != GTK_MINOR_VERSION) ||
26797 (gtk_micro_version != GTK_MICRO_VERSION))
26798 {
26799 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26800 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26801 printf("*** library (version %d.%d.%d)\n",
26802 gtk_major_version, gtk_minor_version, gtk_micro_version);
26803 }
26804 else
26805 {
26806 if ((gtk_major_version > major) ||
26807 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26808 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26809 {
26810 return 0;
26811 }
26812 else
26813 {
26814 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26815 gtk_major_version, gtk_minor_version, gtk_micro_version);
26816 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26817 major, minor, micro);
26818 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26819 printf("***\n");
26820 printf("*** If you have already installed a sufficiently new version, this error\n");
26821 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26822 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26823 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26824 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26825 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26826 printf("*** so that the correct libraries are found at run-time))\n");
26827 }
26828 }
26829 return 1;
26830 }
26831
26832 _ACEOF
26833 rm -f conftest$ac_exeext
26834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26835 (eval $ac_link) 2>&5
26836 ac_status=$?
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26840 (eval $ac_try) 2>&5
26841 ac_status=$?
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); }; }; then
26844 :
26845 else
26846 echo "$as_me: program exited with status $ac_status" >&5
26847 echo "$as_me: failed program was:" >&5
26848 sed 's/^/| /' conftest.$ac_ext >&5
26849
26850 ( exit $ac_status )
26851 no_gtk=yes
26852 fi
26853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26854 fi
26855 CFLAGS="$ac_save_CFLAGS"
26856 LIBS="$ac_save_LIBS"
26857 fi
26858 fi
26859 if test "x$no_gtk" = x ; then
26860 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26861 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26862 wx_cv_lib_gtk=2.0
26863 else
26864 echo "$as_me:$LINENO: result: no" >&5
26865 echo "${ECHO_T}no" >&6
26866 if test "$PKG_CONFIG" = "no" ; then
26867 echo "*** A new enough version of pkg-config was not found."
26868 echo "*** See http://pkgconfig.sourceforge.net"
26869 else
26870 if test -f conf.gtktest ; then
26871 :
26872 else
26873 echo "*** Could not run GTK+ test program, checking why..."
26874 ac_save_CFLAGS="$CFLAGS"
26875 ac_save_LIBS="$LIBS"
26876 CFLAGS="$CFLAGS $GTK_CFLAGS"
26877 LIBS="$LIBS $GTK_LIBS"
26878 cat >conftest.$ac_ext <<_ACEOF
26879 /* confdefs.h. */
26880 _ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h. */
26884
26885 #include <gtk/gtk.h>
26886 #include <stdio.h>
26887
26888 int
26889 main ()
26890 {
26891 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26892 ;
26893 return 0;
26894 }
26895 _ACEOF
26896 rm -f conftest.$ac_objext conftest$ac_exeext
26897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26898 (eval $ac_link) 2>conftest.er1
26899 ac_status=$?
26900 grep -v '^ *+' conftest.er1 >conftest.err
26901 rm -f conftest.er1
26902 cat conftest.err >&5
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); } &&
26905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26907 (eval $ac_try) 2>&5
26908 ac_status=$?
26909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910 (exit $ac_status); }; } &&
26911 { ac_try='test -s conftest$ac_exeext'
26912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26913 (eval $ac_try) 2>&5
26914 ac_status=$?
26915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26916 (exit $ac_status); }; }; then
26917 echo "*** The test program compiled, but did not run. This usually means"
26918 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26919 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26920 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26921 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26922 echo "*** is required on your system"
26923 echo "***"
26924 echo "*** If you have an old version installed, it is best to remove it, although"
26925 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26926 else
26927 echo "$as_me: failed program was:" >&5
26928 sed 's/^/| /' conftest.$ac_ext >&5
26929
26930 echo "*** The test program failed to compile or link. See the file config.log for the"
26931 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26932 fi
26933 rm -f conftest.err conftest.$ac_objext \
26934 conftest$ac_exeext conftest.$ac_ext
26935 CFLAGS="$ac_save_CFLAGS"
26936 LIBS="$ac_save_LIBS"
26937 fi
26938 fi
26939 GTK_CFLAGS=""
26940 GTK_LIBS=""
26941 :
26942 fi
26943
26944
26945 rm -f conf.gtktest
26946
26947
26948 case "${host}" in
26949 *-*-solaris2* )
26950 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26951 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26952 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26953 fi
26954 if test "$wxUSE_SHARED" != "yes"; then
26955 GTK_LIBS="$GTK_LIBS -lX11"
26956 fi
26957 esac
26958 fi
26959
26960 if test -z "$wx_cv_lib_gtk"; then
26961 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
26962
26963 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26964 if test "${with_gtk_prefix+set}" = set; then
26965 withval="$with_gtk_prefix"
26966 gtk_config_prefix="$withval"
26967 else
26968 gtk_config_prefix=""
26969 fi;
26970
26971 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26972 if test "${with_gtk_exec_prefix+set}" = set; then
26973 withval="$with_gtk_exec_prefix"
26974 gtk_config_exec_prefix="$withval"
26975 else
26976 gtk_config_exec_prefix=""
26977 fi;
26978 # Check whether --enable-gtktest or --disable-gtktest was given.
26979 if test "${enable_gtktest+set}" = set; then
26980 enableval="$enable_gtktest"
26981
26982 else
26983 enable_gtktest=yes
26984 fi;
26985
26986 for module in . $GTK_MODULES
26987 do
26988 case "$module" in
26989 gthread)
26990 gtk_config_args="$gtk_config_args gthread"
26991 ;;
26992 esac
26993 done
26994
26995 if test x$gtk_config_exec_prefix != x ; then
26996 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26997 if test x${GTK_CONFIG+set} != xset ; then
26998 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26999 fi
27000 fi
27001 if test x$gtk_config_prefix != x ; then
27002 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27003 if test x${GTK_CONFIG+set} != xset ; then
27004 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27005 fi
27006 fi
27007
27008 # Extract the first word of "gtk-config", so it can be a program name with args.
27009 set dummy gtk-config; ac_word=$2
27010 echo "$as_me:$LINENO: checking for $ac_word" >&5
27011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27012 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27013 echo $ECHO_N "(cached) $ECHO_C" >&6
27014 else
27015 case $GTK_CONFIG in
27016 [\\/]* | ?:[\\/]*)
27017 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27018 ;;
27019 *)
27020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27021 for as_dir in $PATH
27022 do
27023 IFS=$as_save_IFS
27024 test -z "$as_dir" && as_dir=.
27025 for ac_exec_ext in '' $ac_executable_extensions; do
27026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27027 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27029 break 2
27030 fi
27031 done
27032 done
27033
27034 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27035 ;;
27036 esac
27037 fi
27038 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27039
27040 if test -n "$GTK_CONFIG"; then
27041 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27042 echo "${ECHO_T}$GTK_CONFIG" >&6
27043 else
27044 echo "$as_me:$LINENO: result: no" >&5
27045 echo "${ECHO_T}no" >&6
27046 fi
27047
27048 min_gtk_version=1.2.7
27049 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27050 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27051 no_gtk=""
27052 if test "$GTK_CONFIG" = "no" ; then
27053 no_gtk=yes
27054 else
27055 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27056 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27057 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27058 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27059 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27060 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27061 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27062 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27063 if test "x$enable_gtktest" = "xyes" ; then
27064 ac_save_CFLAGS="$CFLAGS"
27065 ac_save_LIBS="$LIBS"
27066 CFLAGS="$CFLAGS $GTK_CFLAGS"
27067 LIBS="$GTK_LIBS $LIBS"
27068 rm -f conf.gtktest
27069 if test "$cross_compiling" = yes; then
27070 echo $ac_n "cross compiling; assumed OK... $ac_c"
27071 else
27072 cat >conftest.$ac_ext <<_ACEOF
27073 /* confdefs.h. */
27074 _ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h. */
27078
27079 #include <gtk/gtk.h>
27080 #include <stdio.h>
27081 #include <stdlib.h>
27082
27083 int
27084 main ()
27085 {
27086 int major, minor, micro;
27087 char *tmp_version;
27088
27089 system ("touch conf.gtktest");
27090
27091 /* HP/UX 9 (%@#!) writes to sscanf strings */
27092 tmp_version = g_strdup("$min_gtk_version");
27093 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27094 printf("%s, bad version string\n", "$min_gtk_version");
27095 exit(1);
27096 }
27097
27098 if ((gtk_major_version != $gtk_config_major_version) ||
27099 (gtk_minor_version != $gtk_config_minor_version) ||
27100 (gtk_micro_version != $gtk_config_micro_version))
27101 {
27102 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27103 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27104 gtk_major_version, gtk_minor_version, gtk_micro_version);
27105 printf ("*** was found! If gtk-config was correct, then it is best\n");
27106 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27107 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27108 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27109 printf("*** required on your system.\n");
27110 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27111 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27112 printf("*** before re-running configure\n");
27113 }
27114 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27115 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27116 (gtk_minor_version != GTK_MINOR_VERSION) ||
27117 (gtk_micro_version != GTK_MICRO_VERSION))
27118 {
27119 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27120 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27121 printf("*** library (version %d.%d.%d)\n",
27122 gtk_major_version, gtk_minor_version, gtk_micro_version);
27123 }
27124 #endif /* defined (GTK_MAJOR_VERSION) ... */
27125 else
27126 {
27127 if ((gtk_major_version > major) ||
27128 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27129 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27130 {
27131 return 0;
27132 }
27133 else
27134 {
27135 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27136 gtk_major_version, gtk_minor_version, gtk_micro_version);
27137 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27138 major, minor, micro);
27139 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27140 printf("***\n");
27141 printf("*** If you have already installed a sufficiently new version, this error\n");
27142 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27143 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27144 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27145 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27146 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27147 printf("*** so that the correct libraries are found at run-time))\n");
27148 }
27149 }
27150 return 1;
27151 }
27152
27153 _ACEOF
27154 rm -f conftest$ac_exeext
27155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27156 (eval $ac_link) 2>&5
27157 ac_status=$?
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27161 (eval $ac_try) 2>&5
27162 ac_status=$?
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); }; }; then
27165 :
27166 else
27167 echo "$as_me: program exited with status $ac_status" >&5
27168 echo "$as_me: failed program was:" >&5
27169 sed 's/^/| /' conftest.$ac_ext >&5
27170
27171 ( exit $ac_status )
27172 no_gtk=yes
27173 fi
27174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27175 fi
27176 CFLAGS="$ac_save_CFLAGS"
27177 LIBS="$ac_save_LIBS"
27178 fi
27179 fi
27180 if test "x$no_gtk" = x ; then
27181 echo "$as_me:$LINENO: result: yes" >&5
27182 echo "${ECHO_T}yes" >&6
27183 wx_cv_lib_gtk=1.2.7
27184 else
27185 echo "$as_me:$LINENO: result: no" >&5
27186 echo "${ECHO_T}no" >&6
27187 if test "$GTK_CONFIG" = "no" ; then
27188 echo "*** The gtk-config script installed by GTK could not be found"
27189 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27190 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27191 echo "*** full path to gtk-config."
27192 else
27193 if test -f conf.gtktest ; then
27194 :
27195 else
27196 echo "*** Could not run GTK test program, checking why..."
27197 CFLAGS="$CFLAGS $GTK_CFLAGS"
27198 LIBS="$LIBS $GTK_LIBS"
27199 cat >conftest.$ac_ext <<_ACEOF
27200 /* confdefs.h. */
27201 _ACEOF
27202 cat confdefs.h >>conftest.$ac_ext
27203 cat >>conftest.$ac_ext <<_ACEOF
27204 /* end confdefs.h. */
27205
27206 #include <gtk/gtk.h>
27207 #include <stdio.h>
27208
27209 int
27210 main ()
27211 {
27212 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27213 ;
27214 return 0;
27215 }
27216 _ACEOF
27217 rm -f conftest.$ac_objext conftest$ac_exeext
27218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27219 (eval $ac_link) 2>conftest.er1
27220 ac_status=$?
27221 grep -v '^ *+' conftest.er1 >conftest.err
27222 rm -f conftest.er1
27223 cat conftest.err >&5
27224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225 (exit $ac_status); } &&
27226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27228 (eval $ac_try) 2>&5
27229 ac_status=$?
27230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); }; } &&
27232 { ac_try='test -s conftest$ac_exeext'
27233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234 (eval $ac_try) 2>&5
27235 ac_status=$?
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; }; then
27238 echo "*** The test program compiled, but did not run. This usually means"
27239 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27240 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27241 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27242 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27243 echo "*** is required on your system"
27244 echo "***"
27245 echo "*** If you have an old version installed, it is best to remove it, although"
27246 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27247 echo "***"
27248 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27249 echo "*** came with the system with the command"
27250 echo "***"
27251 echo "*** rpm --erase --nodeps gtk gtk-devel"
27252 else
27253 echo "$as_me: failed program was:" >&5
27254 sed 's/^/| /' conftest.$ac_ext >&5
27255
27256 echo "*** The test program failed to compile or link. See the file config.log for the"
27257 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27258 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27259 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27260 fi
27261 rm -f conftest.err conftest.$ac_objext \
27262 conftest$ac_exeext conftest.$ac_ext
27263 CFLAGS="$ac_save_CFLAGS"
27264 LIBS="$ac_save_LIBS"
27265 fi
27266 fi
27267 GTK_CFLAGS=""
27268 GTK_LIBS=""
27269 :
27270 fi
27271
27272
27273 rm -f conf.gtktest
27274
27275
27276 if test -z "$wx_cv_lib_gtk"; then
27277
27278 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27279 if test "${with_gtk_prefix+set}" = set; then
27280 withval="$with_gtk_prefix"
27281 gtk_config_prefix="$withval"
27282 else
27283 gtk_config_prefix=""
27284 fi;
27285
27286 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27287 if test "${with_gtk_exec_prefix+set}" = set; then
27288 withval="$with_gtk_exec_prefix"
27289 gtk_config_exec_prefix="$withval"
27290 else
27291 gtk_config_exec_prefix=""
27292 fi;
27293 # Check whether --enable-gtktest or --disable-gtktest was given.
27294 if test "${enable_gtktest+set}" = set; then
27295 enableval="$enable_gtktest"
27296
27297 else
27298 enable_gtktest=yes
27299 fi;
27300
27301 for module in . $GTK_MODULES
27302 do
27303 case "$module" in
27304 gthread)
27305 gtk_config_args="$gtk_config_args gthread"
27306 ;;
27307 esac
27308 done
27309
27310 if test x$gtk_config_exec_prefix != x ; then
27311 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27312 if test x${GTK_CONFIG+set} != xset ; then
27313 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27314 fi
27315 fi
27316 if test x$gtk_config_prefix != x ; then
27317 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27318 if test x${GTK_CONFIG+set} != xset ; then
27319 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27320 fi
27321 fi
27322
27323 # Extract the first word of "gtk-config", so it can be a program name with args.
27324 set dummy gtk-config; ac_word=$2
27325 echo "$as_me:$LINENO: checking for $ac_word" >&5
27326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27327 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27328 echo $ECHO_N "(cached) $ECHO_C" >&6
27329 else
27330 case $GTK_CONFIG in
27331 [\\/]* | ?:[\\/]*)
27332 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27333 ;;
27334 *)
27335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27336 for as_dir in $PATH
27337 do
27338 IFS=$as_save_IFS
27339 test -z "$as_dir" && as_dir=.
27340 for ac_exec_ext in '' $ac_executable_extensions; do
27341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27342 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27344 break 2
27345 fi
27346 done
27347 done
27348
27349 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27350 ;;
27351 esac
27352 fi
27353 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27354
27355 if test -n "$GTK_CONFIG"; then
27356 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27357 echo "${ECHO_T}$GTK_CONFIG" >&6
27358 else
27359 echo "$as_me:$LINENO: result: no" >&5
27360 echo "${ECHO_T}no" >&6
27361 fi
27362
27363 min_gtk_version=1.2.3
27364 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27365 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27366 no_gtk=""
27367 if test "$GTK_CONFIG" = "no" ; then
27368 no_gtk=yes
27369 else
27370 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27371 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27372 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27373 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27374 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27375 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27376 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27377 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27378 if test "x$enable_gtktest" = "xyes" ; then
27379 ac_save_CFLAGS="$CFLAGS"
27380 ac_save_LIBS="$LIBS"
27381 CFLAGS="$CFLAGS $GTK_CFLAGS"
27382 LIBS="$GTK_LIBS $LIBS"
27383 rm -f conf.gtktest
27384 if test "$cross_compiling" = yes; then
27385 echo $ac_n "cross compiling; assumed OK... $ac_c"
27386 else
27387 cat >conftest.$ac_ext <<_ACEOF
27388 /* confdefs.h. */
27389 _ACEOF
27390 cat confdefs.h >>conftest.$ac_ext
27391 cat >>conftest.$ac_ext <<_ACEOF
27392 /* end confdefs.h. */
27393
27394 #include <gtk/gtk.h>
27395 #include <stdio.h>
27396 #include <stdlib.h>
27397
27398 int
27399 main ()
27400 {
27401 int major, minor, micro;
27402 char *tmp_version;
27403
27404 system ("touch conf.gtktest");
27405
27406 /* HP/UX 9 (%@#!) writes to sscanf strings */
27407 tmp_version = g_strdup("$min_gtk_version");
27408 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27409 printf("%s, bad version string\n", "$min_gtk_version");
27410 exit(1);
27411 }
27412
27413 if ((gtk_major_version != $gtk_config_major_version) ||
27414 (gtk_minor_version != $gtk_config_minor_version) ||
27415 (gtk_micro_version != $gtk_config_micro_version))
27416 {
27417 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27418 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27419 gtk_major_version, gtk_minor_version, gtk_micro_version);
27420 printf ("*** was found! If gtk-config was correct, then it is best\n");
27421 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27422 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27423 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27424 printf("*** required on your system.\n");
27425 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27426 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27427 printf("*** before re-running configure\n");
27428 }
27429 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27430 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27431 (gtk_minor_version != GTK_MINOR_VERSION) ||
27432 (gtk_micro_version != GTK_MICRO_VERSION))
27433 {
27434 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27435 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27436 printf("*** library (version %d.%d.%d)\n",
27437 gtk_major_version, gtk_minor_version, gtk_micro_version);
27438 }
27439 #endif /* defined (GTK_MAJOR_VERSION) ... */
27440 else
27441 {
27442 if ((gtk_major_version > major) ||
27443 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27444 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27445 {
27446 return 0;
27447 }
27448 else
27449 {
27450 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27451 gtk_major_version, gtk_minor_version, gtk_micro_version);
27452 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27453 major, minor, micro);
27454 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27455 printf("***\n");
27456 printf("*** If you have already installed a sufficiently new version, this error\n");
27457 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27458 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27459 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27460 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27461 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27462 printf("*** so that the correct libraries are found at run-time))\n");
27463 }
27464 }
27465 return 1;
27466 }
27467
27468 _ACEOF
27469 rm -f conftest$ac_exeext
27470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27471 (eval $ac_link) 2>&5
27472 ac_status=$?
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27476 (eval $ac_try) 2>&5
27477 ac_status=$?
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; }; then
27480 :
27481 else
27482 echo "$as_me: program exited with status $ac_status" >&5
27483 echo "$as_me: failed program was:" >&5
27484 sed 's/^/| /' conftest.$ac_ext >&5
27485
27486 ( exit $ac_status )
27487 no_gtk=yes
27488 fi
27489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27490 fi
27491 CFLAGS="$ac_save_CFLAGS"
27492 LIBS="$ac_save_LIBS"
27493 fi
27494 fi
27495 if test "x$no_gtk" = x ; then
27496 echo "$as_me:$LINENO: result: yes" >&5
27497 echo "${ECHO_T}yes" >&6
27498 wx_cv_lib_gtk=1.2.3
27499 else
27500 echo "$as_me:$LINENO: result: no" >&5
27501 echo "${ECHO_T}no" >&6
27502 if test "$GTK_CONFIG" = "no" ; then
27503 echo "*** The gtk-config script installed by GTK could not be found"
27504 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27505 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27506 echo "*** full path to gtk-config."
27507 else
27508 if test -f conf.gtktest ; then
27509 :
27510 else
27511 echo "*** Could not run GTK test program, checking why..."
27512 CFLAGS="$CFLAGS $GTK_CFLAGS"
27513 LIBS="$LIBS $GTK_LIBS"
27514 cat >conftest.$ac_ext <<_ACEOF
27515 /* confdefs.h. */
27516 _ACEOF
27517 cat confdefs.h >>conftest.$ac_ext
27518 cat >>conftest.$ac_ext <<_ACEOF
27519 /* end confdefs.h. */
27520
27521 #include <gtk/gtk.h>
27522 #include <stdio.h>
27523
27524 int
27525 main ()
27526 {
27527 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27528 ;
27529 return 0;
27530 }
27531 _ACEOF
27532 rm -f conftest.$ac_objext conftest$ac_exeext
27533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27534 (eval $ac_link) 2>conftest.er1
27535 ac_status=$?
27536 grep -v '^ *+' conftest.er1 >conftest.err
27537 rm -f conftest.er1
27538 cat conftest.err >&5
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); } &&
27541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27543 (eval $ac_try) 2>&5
27544 ac_status=$?
27545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546 (exit $ac_status); }; } &&
27547 { ac_try='test -s conftest$ac_exeext'
27548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27549 (eval $ac_try) 2>&5
27550 ac_status=$?
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); }; }; then
27553 echo "*** The test program compiled, but did not run. This usually means"
27554 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27555 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27556 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27557 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27558 echo "*** is required on your system"
27559 echo "***"
27560 echo "*** If you have an old version installed, it is best to remove it, although"
27561 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27562 echo "***"
27563 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27564 echo "*** came with the system with the command"
27565 echo "***"
27566 echo "*** rpm --erase --nodeps gtk gtk-devel"
27567 else
27568 echo "$as_me: failed program was:" >&5
27569 sed 's/^/| /' conftest.$ac_ext >&5
27570
27571 echo "*** The test program failed to compile or link. See the file config.log for the"
27572 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27573 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27574 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27575 fi
27576 rm -f conftest.err conftest.$ac_objext \
27577 conftest$ac_exeext conftest.$ac_ext
27578 CFLAGS="$ac_save_CFLAGS"
27579 LIBS="$ac_save_LIBS"
27580 fi
27581 fi
27582 GTK_CFLAGS=""
27583 GTK_LIBS=""
27584 :
27585 fi
27586
27587
27588 rm -f conf.gtktest
27589
27590 fi
27591 fi
27592 fi
27593
27594 if test -z "$wx_cv_lib_gtk"; then
27595 wx_cv_lib_gtk=none
27596 else
27597 wx_cv_cflags_gtk=$GTK_CFLAGS
27598 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
27599 fi
27600
27601
27602 fi
27603
27604
27605 if test "$gtk_version_cached" = 1; then
27606 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27607 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27608 fi
27609
27610 case "$wx_cv_lib_gtk" in
27611 2.0) WXGTK20=1
27612 TOOLKIT_VERSION=2
27613 ;;
27614 1.2.7) WXGTK127=1
27615 WXGTK12=1
27616 ;;
27617 1.2.3) WXGTK12=1
27618 ;;
27619 *) { { echo "$as_me:$LINENO: error:
27620 The development files for GTK+ were not found. For GTK+ 2, please
27621 ensure that pkg-config is in the path and that gtk+-2.0.pc is
27622 installed. For GTK+ 1.2 please check that gtk-config is in the path,
27623 and that the version is 1.2.3 or above. Also check that the
27624 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27625 --libs' are in the LD_LIBRARY_PATH or equivalent.
27626 " >&5
27627 echo "$as_me: error:
27628 The development files for GTK+ were not found. For GTK+ 2, please
27629 ensure that pkg-config is in the path and that gtk+-2.0.pc is
27630 installed. For GTK+ 1.2 please check that gtk-config is in the path,
27631 and that the version is 1.2.3 or above. Also check that the
27632 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27633 --libs' are in the LD_LIBRARY_PATH or equivalent.
27634 " >&2;}
27635 { (exit 1); exit 1; }; }
27636 ;;
27637 esac
27638
27639 if test "$WXGTK20" = 1; then
27640 save_CFLAGS="$CFLAGS"
27641 save_LIBS="$LIBS"
27642 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
27643 LIBS="$LIBS $wx_cv_libs_gtk"
27644
27645 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27646 echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27647 cat >conftest.$ac_ext <<_ACEOF
27648 /* confdefs.h. */
27649 _ACEOF
27650 cat confdefs.h >>conftest.$ac_ext
27651 cat >>conftest.$ac_ext <<_ACEOF
27652 /* end confdefs.h. */
27653
27654 #include <gtk/gtk.h>
27655
27656 int
27657 main ()
27658 {
27659
27660 void *f = gtk_icon_size_lookup;
27661
27662 ;
27663 return 0;
27664 }
27665 _ACEOF
27666 rm -f conftest.$ac_objext
27667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27668 (eval $ac_compile) 2>conftest.er1
27669 ac_status=$?
27670 grep -v '^ *+' conftest.er1 >conftest.err
27671 rm -f conftest.er1
27672 cat conftest.err >&5
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); } &&
27675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677 (eval $ac_try) 2>&5
27678 ac_status=$?
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; } &&
27681 { ac_try='test -s conftest.$ac_objext'
27682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27683 (eval $ac_try) 2>&5
27684 ac_status=$?
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); }; }; then
27687
27688 echo "$as_me:$LINENO: result: no" >&5
27689 echo "${ECHO_T}no" >&6
27690
27691 else
27692 echo "$as_me: failed program was:" >&5
27693 sed 's/^/| /' conftest.$ac_ext >&5
27694
27695
27696 cat >>confdefs.h <<\_ACEOF
27697 #define NEED_GTK_ICON_SIZE_LOOKUP 1
27698 _ACEOF
27699
27700 echo "$as_me:$LINENO: result: yes" >&5
27701 echo "${ECHO_T}yes" >&6
27702
27703 fi
27704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27705
27706 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27707 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27708 cat >conftest.$ac_ext <<_ACEOF
27709 /* confdefs.h. */
27710 _ACEOF
27711 cat confdefs.h >>conftest.$ac_ext
27712 cat >>conftest.$ac_ext <<_ACEOF
27713 /* end confdefs.h. */
27714
27715 #include <gtk/gtk.h>
27716
27717 int
27718 main ()
27719 {
27720
27721 #if !GTK_CHECK_VERSION(2,4,0)
27722 Not GTK+ 2.4
27723 #endif
27724
27725 ;
27726 return 0;
27727 }
27728 _ACEOF
27729 rm -f conftest.$ac_objext
27730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27731 (eval $ac_compile) 2>conftest.er1
27732 ac_status=$?
27733 grep -v '^ *+' conftest.er1 >conftest.err
27734 rm -f conftest.er1
27735 cat conftest.err >&5
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); } &&
27738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27740 (eval $ac_try) 2>&5
27741 ac_status=$?
27742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); }; } &&
27744 { ac_try='test -s conftest.$ac_objext'
27745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27746 (eval $ac_try) 2>&5
27747 ac_status=$?
27748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749 (exit $ac_status); }; }; then
27750
27751 cat >>confdefs.h <<\_ACEOF
27752 #define __WXGTK24__ 1
27753 _ACEOF
27754
27755 echo "$as_me:$LINENO: result: yes" >&5
27756 echo "${ECHO_T}yes" >&6
27757
27758 else
27759 echo "$as_me: failed program was:" >&5
27760 sed 's/^/| /' conftest.$ac_ext >&5
27761
27762
27763 echo "$as_me:$LINENO: result: no" >&5
27764 echo "${ECHO_T}no" >&6
27765
27766 fi
27767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27768
27769 CFLAGS="$save_CFLAGS"
27770 LIBS="$save_LIBS"
27771 else
27772 if test "$wxUSE_UNICODE" = "yes"; then
27773 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27774 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27775 wxUSE_UNICODE=no
27776 fi
27777 fi
27778
27779 ac_ext=cc
27780 ac_cpp='$CXXCPP $CPPFLAGS'
27781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27784
27785
27786 if test "$USE_DARWIN" != 1; then
27787
27788 for ac_func in poll
27789 do
27790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27791 echo "$as_me:$LINENO: checking for $ac_func" >&5
27792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27793 if eval "test \"\${$as_ac_var+set}\" = set"; then
27794 echo $ECHO_N "(cached) $ECHO_C" >&6
27795 else
27796 cat >conftest.$ac_ext <<_ACEOF
27797 /* confdefs.h. */
27798 _ACEOF
27799 cat confdefs.h >>conftest.$ac_ext
27800 cat >>conftest.$ac_ext <<_ACEOF
27801 /* end confdefs.h. */
27802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27804 #define $ac_func innocuous_$ac_func
27805
27806 /* System header to define __stub macros and hopefully few prototypes,
27807 which can conflict with char $ac_func (); below.
27808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27809 <limits.h> exists even on freestanding compilers. */
27810
27811 #ifdef __STDC__
27812 # include <limits.h>
27813 #else
27814 # include <assert.h>
27815 #endif
27816
27817 #undef $ac_func
27818
27819 /* Override any gcc2 internal prototype to avoid an error. */
27820 #ifdef __cplusplus
27821 extern "C"
27822 {
27823 #endif
27824 /* We use char because int might match the return type of a gcc2
27825 builtin and then its argument prototype would still apply. */
27826 char $ac_func ();
27827 /* The GNU C library defines this for functions which it implements
27828 to always fail with ENOSYS. Some functions are actually named
27829 something starting with __ and the normal name is an alias. */
27830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27831 choke me
27832 #else
27833 char (*f) () = $ac_func;
27834 #endif
27835 #ifdef __cplusplus
27836 }
27837 #endif
27838
27839 int
27840 main ()
27841 {
27842 return f != $ac_func;
27843 ;
27844 return 0;
27845 }
27846 _ACEOF
27847 rm -f conftest.$ac_objext conftest$ac_exeext
27848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27849 (eval $ac_link) 2>conftest.er1
27850 ac_status=$?
27851 grep -v '^ *+' conftest.er1 >conftest.err
27852 rm -f conftest.er1
27853 cat conftest.err >&5
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); } &&
27856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858 (eval $ac_try) 2>&5
27859 ac_status=$?
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; } &&
27862 { ac_try='test -s conftest$ac_exeext'
27863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27864 (eval $ac_try) 2>&5
27865 ac_status=$?
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); }; }; then
27868 eval "$as_ac_var=yes"
27869 else
27870 echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27872
27873 eval "$as_ac_var=no"
27874 fi
27875 rm -f conftest.err conftest.$ac_objext \
27876 conftest$ac_exeext conftest.$ac_ext
27877 fi
27878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27880 if test `eval echo '${'$as_ac_var'}'` = yes; then
27881 cat >>confdefs.h <<_ACEOF
27882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27883 _ACEOF
27884
27885 fi
27886 done
27887
27888 fi
27889
27890 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27891 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27892
27893 AFMINSTALL=afminstall
27894 TOOLKIT=GTK
27895 GUIDIST=GTK_DIST
27896
27897 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27898 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27899 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27900 echo $ECHO_N "(cached) $ECHO_C" >&6
27901 else
27902 ac_check_lib_save_LIBS=$LIBS
27903 LIBS="-lgdk $LIBS"
27904 cat >conftest.$ac_ext <<_ACEOF
27905 /* confdefs.h. */
27906 _ACEOF
27907 cat confdefs.h >>conftest.$ac_ext
27908 cat >>conftest.$ac_ext <<_ACEOF
27909 /* end confdefs.h. */
27910
27911 /* Override any gcc2 internal prototype to avoid an error. */
27912 #ifdef __cplusplus
27913 extern "C"
27914 #endif
27915 /* We use char because int might match the return type of a gcc2
27916 builtin and then its argument prototype would still apply. */
27917 char gdk_im_open ();
27918 int
27919 main ()
27920 {
27921 gdk_im_open ();
27922 ;
27923 return 0;
27924 }
27925 _ACEOF
27926 rm -f conftest.$ac_objext conftest$ac_exeext
27927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27928 (eval $ac_link) 2>conftest.er1
27929 ac_status=$?
27930 grep -v '^ *+' conftest.er1 >conftest.err
27931 rm -f conftest.er1
27932 cat conftest.err >&5
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); } &&
27935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27937 (eval $ac_try) 2>&5
27938 ac_status=$?
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); }; } &&
27941 { ac_try='test -s conftest$ac_exeext'
27942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27943 (eval $ac_try) 2>&5
27944 ac_status=$?
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); }; }; then
27947 ac_cv_lib_gdk_gdk_im_open=yes
27948 else
27949 echo "$as_me: failed program was:" >&5
27950 sed 's/^/| /' conftest.$ac_ext >&5
27951
27952 ac_cv_lib_gdk_gdk_im_open=no
27953 fi
27954 rm -f conftest.err conftest.$ac_objext \
27955 conftest$ac_exeext conftest.$ac_ext
27956 LIBS=$ac_check_lib_save_LIBS
27957 fi
27958 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27959 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27960 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27961 cat >>confdefs.h <<\_ACEOF
27962 #define HAVE_XIM 1
27963 _ACEOF
27964
27965 fi
27966
27967
27968
27969 if test "$wxUSE_GPE" = "yes"; then
27970 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27971 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27972
27973 ac_find_libraries=
27974 for ac_dir in $SEARCH_LIB;
27975 do
27976 for ac_extension in a so sl dylib dll.a; do
27977 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27978 ac_find_libraries=$ac_dir
27979 break 2
27980 fi
27981 done
27982 done
27983
27984 if test "$ac_find_libraries" != "" ; then
27985
27986 if test "$ac_find_libraries" = "default location"; then
27987 ac_path_to_link=""
27988 else
27989 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27990 result=$?
27991 if test $result = 0; then
27992 ac_path_to_link=""
27993 else
27994 ac_path_to_link=" -L$ac_find_libraries"
27995 fi
27996 fi
27997
27998 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27999 WXGPE=1
28000 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28001 echo "${ECHO_T}found in $ac_find_libraries" >&6
28002 else
28003 echo "$as_me:$LINENO: result: not found" >&5
28004 echo "${ECHO_T}not found" >&6
28005 fi
28006
28007 fi
28008 fi
28009
28010 if test "$wxUSE_MGL" = 1; then
28011 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28012 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28013 if test "x$MGL_ROOT" = x ; then
28014 echo "$as_me:$LINENO: result: not found" >&5
28015 echo "${ECHO_T}not found" >&6
28016 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28017 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28018 { (exit 1); exit 1; }; }
28019 else
28020 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28021 echo "${ECHO_T}$MGL_ROOT" >&6
28022 fi
28023
28024 echo "$as_me:$LINENO: checking for libmgl location" >&5
28025 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28026 case "${host}" in
28027 *-*-linux* )
28028 if test "x$wxUSE_SHARED" = xyes ; then
28029 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28030 else
28031 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28032 fi
28033 ;;
28034 *-pc-msdosdjgpp )
28035 mgl_os_candidates="dos32/dj2"
28036 ;;
28037 *)
28038 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28039 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28040 { (exit 1); exit 1; }; }
28041 esac
28042
28043 mgl_lib_type=""
28044 mgl_os=""
28045
28046 for mgl_os_i in $mgl_os_candidates ; do
28047 if test "x$mgl_os" = x ; then
28048 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28049 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28050 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28051 mgl_lib_type=debug
28052 mgl_os=$mgl_os_i
28053 fi
28054 fi
28055 if test "x$mgl_lib_type" = x ; then
28056 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28057 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28058 mgl_lib_type=release
28059 mgl_os=$mgl_os_i
28060 fi
28061 fi
28062 fi
28063 done
28064
28065 if test "x$mgl_os" = x ; then
28066 echo "$as_me:$LINENO: result: not found" >&5
28067 echo "${ECHO_T}not found" >&6
28068 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28069 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28070 { (exit 1); exit 1; }; }
28071 fi
28072 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28073 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28074
28075 wxUSE_UNIVERSAL="yes"
28076
28077 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28078 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28079
28080 AFMINSTALL=afminstall
28081 TOOLKIT=MGL
28082 GUIDIST=MGL_DIST
28083 fi
28084
28085 if test "$wxUSE_MICROWIN" = 1; then
28086 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28087 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28088 if test "x$MICROWINDOWS" = x ; then
28089 echo "$as_me:$LINENO: result: not found" >&5
28090 echo "${ECHO_T}not found" >&6
28091 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28092 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28093 { (exit 1); exit 1; }; }
28094 else
28095 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28096 echo "${ECHO_T}$MICROWINDOWS" >&6
28097 fi
28098
28099 if test -f $MICROWINDOWS/lib/libmwin.a; then
28100 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28101 echo "${ECHO_T}MicroWindows' libraries found." >&6
28102 else
28103 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28104 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28105 { (exit 1); exit 1; }; }
28106 fi
28107
28108 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28109 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28110
28111 wxUSE_UNIVERSAL="yes"
28112
28113 AFMINSTALL=afminstall
28114 TOOLKIT=MICROWIN
28115 GUIDIST=MICROWIN_DIST
28116
28117 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28118 fi
28119
28120 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
28121
28122 if test "x$ac_path_x_has_been_run" != xyes; then
28123 echo "$as_me:$LINENO: checking for X" >&5
28124 echo $ECHO_N "checking for X... $ECHO_C" >&6
28125
28126 ac_path_x_has_been_run=yes
28127
28128 # Check whether --with-x or --without-x was given.
28129 if test "${with_x+set}" = set; then
28130 withval="$with_x"
28131
28132 fi;
28133 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28134 if test "x$with_x" = xno; then
28135 # The user explicitly disabled X.
28136 have_x=disabled
28137 else
28138 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28139 # Both variables are already set.
28140 have_x=yes
28141 else
28142 if test "${ac_cv_have_x+set}" = set; then
28143 echo $ECHO_N "(cached) $ECHO_C" >&6
28144 else
28145 # One or both of the vars are not set, and there is no cached value.
28146 ac_x_includes=no ac_x_libraries=no
28147 rm -fr conftest.dir
28148 if mkdir conftest.dir; then
28149 cd conftest.dir
28150 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28151 cat >Imakefile <<'_ACEOF'
28152 acfindx:
28153 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28154 _ACEOF
28155 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28156 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28157 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28158 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28159 for ac_extension in a so sl; do
28160 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
28161 test -f $ac_im_libdir/libX11.$ac_extension; then
28162 ac_im_usrlibdir=$ac_im_libdir; break
28163 fi
28164 done
28165 # Screen out bogus values from the imake configuration. They are
28166 # bogus both because they are the default anyway, and because
28167 # using them would break gcc on systems where it needs fixed includes.
28168 case $ac_im_incroot in
28169 /usr/include) ;;
28170 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28171 esac
28172 case $ac_im_usrlibdir in
28173 /usr/lib | /lib) ;;
28174 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28175 esac
28176 fi
28177 cd ..
28178 rm -fr conftest.dir
28179 fi
28180
28181 # Standard set of common directories for X headers.
28182 # Check X11 before X11Rn because it is often a symlink to the current release.
28183 ac_x_header_dirs='
28184 /usr/X11/include
28185 /usr/X11R6/include
28186 /usr/X11R5/include
28187 /usr/X11R4/include
28188
28189 /usr/include/X11
28190 /usr/include/X11R6
28191 /usr/include/X11R5
28192 /usr/include/X11R4
28193
28194 /usr/local/X11/include
28195 /usr/local/X11R6/include
28196 /usr/local/X11R5/include
28197 /usr/local/X11R4/include
28198
28199 /usr/local/include/X11
28200 /usr/local/include/X11R6
28201 /usr/local/include/X11R5
28202 /usr/local/include/X11R4
28203
28204 /usr/X386/include
28205 /usr/x386/include
28206 /usr/XFree86/include/X11
28207
28208 /usr/include
28209 /usr/local/include
28210 /usr/unsupported/include
28211 /usr/athena/include
28212 /usr/local/x11r5/include
28213 /usr/lpp/Xamples/include
28214
28215 /usr/openwin/include
28216 /usr/openwin/share/include'
28217
28218 if test "$ac_x_includes" = no; then
28219 # Guess where to find include files, by looking for a specified header file.
28220 # First, try using that file with no special directory specified.
28221 cat >conftest.$ac_ext <<_ACEOF
28222 /* confdefs.h. */
28223 _ACEOF
28224 cat confdefs.h >>conftest.$ac_ext
28225 cat >>conftest.$ac_ext <<_ACEOF
28226 /* end confdefs.h. */
28227 #include <X11/Intrinsic.h>
28228 _ACEOF
28229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28231 ac_status=$?
28232 grep -v '^ *+' conftest.er1 >conftest.err
28233 rm -f conftest.er1
28234 cat conftest.err >&5
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); } >/dev/null; then
28237 if test -s conftest.err; then
28238 ac_cpp_err=$ac_cxx_preproc_warn_flag
28239 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28240 else
28241 ac_cpp_err=
28242 fi
28243 else
28244 ac_cpp_err=yes
28245 fi
28246 if test -z "$ac_cpp_err"; then
28247 # We can compile using X headers with no special include directory.
28248 ac_x_includes=
28249 else
28250 echo "$as_me: failed program was:" >&5
28251 sed 's/^/| /' conftest.$ac_ext >&5
28252
28253 for ac_dir in $ac_x_header_dirs; do
28254 if test -r "$ac_dir/X11/Intrinsic.h"; then
28255 ac_x_includes=$ac_dir
28256 break
28257 fi
28258 done
28259 fi
28260 rm -f conftest.err conftest.$ac_ext
28261 fi # $ac_x_includes = no
28262
28263 if test "$ac_x_libraries" = no; then
28264 # Check for the libraries.
28265 # See if we find them without any special options.
28266 # Don't add to $LIBS permanently.
28267 ac_save_LIBS=$LIBS
28268 LIBS="-lXt $LIBS"
28269 cat >conftest.$ac_ext <<_ACEOF
28270 /* confdefs.h. */
28271 _ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h. */
28275 #include <X11/Intrinsic.h>
28276 int
28277 main ()
28278 {
28279 XtMalloc (0)
28280 ;
28281 return 0;
28282 }
28283 _ACEOF
28284 rm -f conftest.$ac_objext conftest$ac_exeext
28285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28286 (eval $ac_link) 2>conftest.er1
28287 ac_status=$?
28288 grep -v '^ *+' conftest.er1 >conftest.err
28289 rm -f conftest.er1
28290 cat conftest.err >&5
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); } &&
28293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28295 (eval $ac_try) 2>&5
28296 ac_status=$?
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); }; } &&
28299 { ac_try='test -s conftest$ac_exeext'
28300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28301 (eval $ac_try) 2>&5
28302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); }; }; then
28305 LIBS=$ac_save_LIBS
28306 # We can link X programs with no special library path.
28307 ac_x_libraries=
28308 else
28309 echo "$as_me: failed program was:" >&5
28310 sed 's/^/| /' conftest.$ac_ext >&5
28311
28312 LIBS=$ac_save_LIBS
28313 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28314 do
28315 # Don't even attempt the hair of trying to link an X program!
28316 for ac_extension in a so sl; do
28317 if test -r $ac_dir/libXt.$ac_extension; then
28318 ac_x_libraries=$ac_dir
28319 break 2
28320 fi
28321 done
28322 done
28323 fi
28324 rm -f conftest.err conftest.$ac_objext \
28325 conftest$ac_exeext conftest.$ac_ext
28326 fi # $ac_x_libraries = no
28327
28328 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28329 # Didn't find X anywhere. Cache the known absence of X.
28330 ac_cv_have_x="have_x=no"
28331 else
28332 # Record where we found X for the cache.
28333 ac_cv_have_x="have_x=yes \
28334 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
28335 fi
28336 fi
28337
28338 fi
28339 eval "$ac_cv_have_x"
28340 fi # $with_x != no
28341
28342 if test "$have_x" != yes; then
28343 echo "$as_me:$LINENO: result: $have_x" >&5
28344 echo "${ECHO_T}$have_x" >&6
28345 no_x=yes
28346 else
28347 # If each of the values was on the command line, it overrides each guess.
28348 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28349 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28350 # Update the cache value to reflect the command line values.
28351 ac_cv_have_x="have_x=yes \
28352 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
28353 # It might be that x_includes is empty (headers are found in the
28354 # standard search path. Then output the corresponding message
28355 ac_out_x_includes=$x_includes
28356 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28357 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28358 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
28359 fi
28360
28361 fi
28362 if test "$no_x" = yes; then
28363 # Not all programs may use this symbol, but it does not hurt to define it.
28364
28365 cat >>confdefs.h <<\_ACEOF
28366 #define X_DISPLAY_MISSING 1
28367 _ACEOF
28368
28369 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28370 else
28371 if test -n "$x_includes"; then
28372 X_CFLAGS="$X_CFLAGS -I$x_includes"
28373 fi
28374
28375 # It would also be nice to do this for all -L options, not just this one.
28376 if test -n "$x_libraries"; then
28377 X_LIBS="$X_LIBS -L$x_libraries"
28378 # For Solaris; some versions of Sun CC require a space after -R and
28379 # others require no space. Words are not sufficient . . . .
28380 case `(uname -sr) 2>/dev/null` in
28381 "SunOS 5"*)
28382 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28383 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28384 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28385 cat >conftest.$ac_ext <<_ACEOF
28386 /* confdefs.h. */
28387 _ACEOF
28388 cat confdefs.h >>conftest.$ac_ext
28389 cat >>conftest.$ac_ext <<_ACEOF
28390 /* end confdefs.h. */
28391
28392 int
28393 main ()
28394 {
28395
28396 ;
28397 return 0;
28398 }
28399 _ACEOF
28400 rm -f conftest.$ac_objext conftest$ac_exeext
28401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28402 (eval $ac_link) 2>conftest.er1
28403 ac_status=$?
28404 grep -v '^ *+' conftest.er1 >conftest.err
28405 rm -f conftest.er1
28406 cat conftest.err >&5
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); } &&
28409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411 (eval $ac_try) 2>&5
28412 ac_status=$?
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); }; } &&
28415 { ac_try='test -s conftest$ac_exeext'
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28418 ac_status=$?
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; }; then
28421 ac_R_nospace=yes
28422 else
28423 echo "$as_me: failed program was:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28425
28426 ac_R_nospace=no
28427 fi
28428 rm -f conftest.err conftest.$ac_objext \
28429 conftest$ac_exeext conftest.$ac_ext
28430 if test $ac_R_nospace = yes; then
28431 echo "$as_me:$LINENO: result: no" >&5
28432 echo "${ECHO_T}no" >&6
28433 X_LIBS="$X_LIBS -R$x_libraries"
28434 else
28435 LIBS="$ac_xsave_LIBS -R $x_libraries"
28436 cat >conftest.$ac_ext <<_ACEOF
28437 /* confdefs.h. */
28438 _ACEOF
28439 cat confdefs.h >>conftest.$ac_ext
28440 cat >>conftest.$ac_ext <<_ACEOF
28441 /* end confdefs.h. */
28442
28443 int
28444 main ()
28445 {
28446
28447 ;
28448 return 0;
28449 }
28450 _ACEOF
28451 rm -f conftest.$ac_objext conftest$ac_exeext
28452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28453 (eval $ac_link) 2>conftest.er1
28454 ac_status=$?
28455 grep -v '^ *+' conftest.er1 >conftest.err
28456 rm -f conftest.er1
28457 cat conftest.err >&5
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); } &&
28460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28462 (eval $ac_try) 2>&5
28463 ac_status=$?
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); }; } &&
28466 { ac_try='test -s conftest$ac_exeext'
28467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468 (eval $ac_try) 2>&5
28469 ac_status=$?
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; }; then
28472 ac_R_space=yes
28473 else
28474 echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28476
28477 ac_R_space=no
28478 fi
28479 rm -f conftest.err conftest.$ac_objext \
28480 conftest$ac_exeext conftest.$ac_ext
28481 if test $ac_R_space = yes; then
28482 echo "$as_me:$LINENO: result: yes" >&5
28483 echo "${ECHO_T}yes" >&6
28484 X_LIBS="$X_LIBS -R $x_libraries"
28485 else
28486 echo "$as_me:$LINENO: result: neither works" >&5
28487 echo "${ECHO_T}neither works" >&6
28488 fi
28489 fi
28490 LIBS=$ac_xsave_LIBS
28491 esac
28492 fi
28493
28494 # Check for system-dependent libraries X programs must link with.
28495 # Do this before checking for the system-independent R6 libraries
28496 # (-lICE), since we may need -lsocket or whatever for X linking.
28497
28498 if test "$ISC" = yes; then
28499 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28500 else
28501 # Martyn Johnson says this is needed for Ultrix, if the X
28502 # libraries were built with DECnet support. And Karl Berry says
28503 # the Alpha needs dnet_stub (dnet does not exist).
28504 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28505 cat >conftest.$ac_ext <<_ACEOF
28506 /* confdefs.h. */
28507 _ACEOF
28508 cat confdefs.h >>conftest.$ac_ext
28509 cat >>conftest.$ac_ext <<_ACEOF
28510 /* end confdefs.h. */
28511
28512 /* Override any gcc2 internal prototype to avoid an error. */
28513 #ifdef __cplusplus
28514 extern "C"
28515 #endif
28516 /* We use char because int might match the return type of a gcc2
28517 builtin and then its argument prototype would still apply. */
28518 char XOpenDisplay ();
28519 int
28520 main ()
28521 {
28522 XOpenDisplay ();
28523 ;
28524 return 0;
28525 }
28526 _ACEOF
28527 rm -f conftest.$ac_objext conftest$ac_exeext
28528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28529 (eval $ac_link) 2>conftest.er1
28530 ac_status=$?
28531 grep -v '^ *+' conftest.er1 >conftest.err
28532 rm -f conftest.er1
28533 cat conftest.err >&5
28534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535 (exit $ac_status); } &&
28536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28538 (eval $ac_try) 2>&5
28539 ac_status=$?
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); }; } &&
28542 { ac_try='test -s conftest$ac_exeext'
28543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28544 (eval $ac_try) 2>&5
28545 ac_status=$?
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); }; }; then
28548 :
28549 else
28550 echo "$as_me: failed program was:" >&5
28551 sed 's/^/| /' conftest.$ac_ext >&5
28552
28553 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28554 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28555 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28556 echo $ECHO_N "(cached) $ECHO_C" >&6
28557 else
28558 ac_check_lib_save_LIBS=$LIBS
28559 LIBS="-ldnet $LIBS"
28560 cat >conftest.$ac_ext <<_ACEOF
28561 /* confdefs.h. */
28562 _ACEOF
28563 cat confdefs.h >>conftest.$ac_ext
28564 cat >>conftest.$ac_ext <<_ACEOF
28565 /* end confdefs.h. */
28566
28567 /* Override any gcc2 internal prototype to avoid an error. */
28568 #ifdef __cplusplus
28569 extern "C"
28570 #endif
28571 /* We use char because int might match the return type of a gcc2
28572 builtin and then its argument prototype would still apply. */
28573 char dnet_ntoa ();
28574 int
28575 main ()
28576 {
28577 dnet_ntoa ();
28578 ;
28579 return 0;
28580 }
28581 _ACEOF
28582 rm -f conftest.$ac_objext conftest$ac_exeext
28583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28584 (eval $ac_link) 2>conftest.er1
28585 ac_status=$?
28586 grep -v '^ *+' conftest.er1 >conftest.err
28587 rm -f conftest.er1
28588 cat conftest.err >&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } &&
28591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28593 (eval $ac_try) 2>&5
28594 ac_status=$?
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; } &&
28597 { ac_try='test -s conftest$ac_exeext'
28598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28599 (eval $ac_try) 2>&5
28600 ac_status=$?
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); }; }; then
28603 ac_cv_lib_dnet_dnet_ntoa=yes
28604 else
28605 echo "$as_me: failed program was:" >&5
28606 sed 's/^/| /' conftest.$ac_ext >&5
28607
28608 ac_cv_lib_dnet_dnet_ntoa=no
28609 fi
28610 rm -f conftest.err conftest.$ac_objext \
28611 conftest$ac_exeext conftest.$ac_ext
28612 LIBS=$ac_check_lib_save_LIBS
28613 fi
28614 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28615 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28616 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28617 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28618 fi
28619
28620 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28621 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28622 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28623 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28624 echo $ECHO_N "(cached) $ECHO_C" >&6
28625 else
28626 ac_check_lib_save_LIBS=$LIBS
28627 LIBS="-ldnet_stub $LIBS"
28628 cat >conftest.$ac_ext <<_ACEOF
28629 /* confdefs.h. */
28630 _ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28634
28635 /* Override any gcc2 internal prototype to avoid an error. */
28636 #ifdef __cplusplus
28637 extern "C"
28638 #endif
28639 /* We use char because int might match the return type of a gcc2
28640 builtin and then its argument prototype would still apply. */
28641 char dnet_ntoa ();
28642 int
28643 main ()
28644 {
28645 dnet_ntoa ();
28646 ;
28647 return 0;
28648 }
28649 _ACEOF
28650 rm -f conftest.$ac_objext conftest$ac_exeext
28651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28652 (eval $ac_link) 2>conftest.er1
28653 ac_status=$?
28654 grep -v '^ *+' conftest.er1 >conftest.err
28655 rm -f conftest.er1
28656 cat conftest.err >&5
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); } &&
28659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661 (eval $ac_try) 2>&5
28662 ac_status=$?
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); }; } &&
28665 { ac_try='test -s conftest$ac_exeext'
28666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667 (eval $ac_try) 2>&5
28668 ac_status=$?
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; }; then
28671 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28672 else
28673 echo "$as_me: failed program was:" >&5
28674 sed 's/^/| /' conftest.$ac_ext >&5
28675
28676 ac_cv_lib_dnet_stub_dnet_ntoa=no
28677 fi
28678 rm -f conftest.err conftest.$ac_objext \
28679 conftest$ac_exeext conftest.$ac_ext
28680 LIBS=$ac_check_lib_save_LIBS
28681 fi
28682 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28683 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28684 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28685 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28686 fi
28687
28688 fi
28689 fi
28690 rm -f conftest.err conftest.$ac_objext \
28691 conftest$ac_exeext conftest.$ac_ext
28692 LIBS="$ac_xsave_LIBS"
28693
28694 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28695 # to get the SysV transport functions.
28696 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28697 # needs -lnsl.
28698 # The nsl library prevents programs from opening the X display
28699 # on Irix 5.2, according to T.E. Dickey.
28700 # The functions gethostbyname, getservbyname, and inet_addr are
28701 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28702 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28703 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28704 if test "${ac_cv_func_gethostbyname+set}" = set; then
28705 echo $ECHO_N "(cached) $ECHO_C" >&6
28706 else
28707 cat >conftest.$ac_ext <<_ACEOF
28708 /* confdefs.h. */
28709 _ACEOF
28710 cat confdefs.h >>conftest.$ac_ext
28711 cat >>conftest.$ac_ext <<_ACEOF
28712 /* end confdefs.h. */
28713 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28715 #define gethostbyname innocuous_gethostbyname
28716
28717 /* System header to define __stub macros and hopefully few prototypes,
28718 which can conflict with char gethostbyname (); below.
28719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28720 <limits.h> exists even on freestanding compilers. */
28721
28722 #ifdef __STDC__
28723 # include <limits.h>
28724 #else
28725 # include <assert.h>
28726 #endif
28727
28728 #undef gethostbyname
28729
28730 /* Override any gcc2 internal prototype to avoid an error. */
28731 #ifdef __cplusplus
28732 extern "C"
28733 {
28734 #endif
28735 /* We use char because int might match the return type of a gcc2
28736 builtin and then its argument prototype would still apply. */
28737 char gethostbyname ();
28738 /* The GNU C library defines this for functions which it implements
28739 to always fail with ENOSYS. Some functions are actually named
28740 something starting with __ and the normal name is an alias. */
28741 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28742 choke me
28743 #else
28744 char (*f) () = gethostbyname;
28745 #endif
28746 #ifdef __cplusplus
28747 }
28748 #endif
28749
28750 int
28751 main ()
28752 {
28753 return f != gethostbyname;
28754 ;
28755 return 0;
28756 }
28757 _ACEOF
28758 rm -f conftest.$ac_objext conftest$ac_exeext
28759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28760 (eval $ac_link) 2>conftest.er1
28761 ac_status=$?
28762 grep -v '^ *+' conftest.er1 >conftest.err
28763 rm -f conftest.er1
28764 cat conftest.err >&5
28765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766 (exit $ac_status); } &&
28767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28769 (eval $ac_try) 2>&5
28770 ac_status=$?
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); }; } &&
28773 { ac_try='test -s conftest$ac_exeext'
28774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775 (eval $ac_try) 2>&5
28776 ac_status=$?
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); }; }; then
28779 ac_cv_func_gethostbyname=yes
28780 else
28781 echo "$as_me: failed program was:" >&5
28782 sed 's/^/| /' conftest.$ac_ext >&5
28783
28784 ac_cv_func_gethostbyname=no
28785 fi
28786 rm -f conftest.err conftest.$ac_objext \
28787 conftest$ac_exeext conftest.$ac_ext
28788 fi
28789 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28790 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28791
28792 if test $ac_cv_func_gethostbyname = no; then
28793 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28794 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28795 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28796 echo $ECHO_N "(cached) $ECHO_C" >&6
28797 else
28798 ac_check_lib_save_LIBS=$LIBS
28799 LIBS="-lnsl $LIBS"
28800 cat >conftest.$ac_ext <<_ACEOF
28801 /* confdefs.h. */
28802 _ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h. */
28806
28807 /* Override any gcc2 internal prototype to avoid an error. */
28808 #ifdef __cplusplus
28809 extern "C"
28810 #endif
28811 /* We use char because int might match the return type of a gcc2
28812 builtin and then its argument prototype would still apply. */
28813 char gethostbyname ();
28814 int
28815 main ()
28816 {
28817 gethostbyname ();
28818 ;
28819 return 0;
28820 }
28821 _ACEOF
28822 rm -f conftest.$ac_objext conftest$ac_exeext
28823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28824 (eval $ac_link) 2>conftest.er1
28825 ac_status=$?
28826 grep -v '^ *+' conftest.er1 >conftest.err
28827 rm -f conftest.er1
28828 cat conftest.err >&5
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); } &&
28831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833 (eval $ac_try) 2>&5
28834 ac_status=$?
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); }; } &&
28837 { ac_try='test -s conftest$ac_exeext'
28838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28839 (eval $ac_try) 2>&5
28840 ac_status=$?
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); }; }; then
28843 ac_cv_lib_nsl_gethostbyname=yes
28844 else
28845 echo "$as_me: failed program was:" >&5
28846 sed 's/^/| /' conftest.$ac_ext >&5
28847
28848 ac_cv_lib_nsl_gethostbyname=no
28849 fi
28850 rm -f conftest.err conftest.$ac_objext \
28851 conftest$ac_exeext conftest.$ac_ext
28852 LIBS=$ac_check_lib_save_LIBS
28853 fi
28854 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28855 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28856 if test $ac_cv_lib_nsl_gethostbyname = yes; then
28857 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28858 fi
28859
28860 if test $ac_cv_lib_nsl_gethostbyname = no; then
28861 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28862 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28863 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28864 echo $ECHO_N "(cached) $ECHO_C" >&6
28865 else
28866 ac_check_lib_save_LIBS=$LIBS
28867 LIBS="-lbsd $LIBS"
28868 cat >conftest.$ac_ext <<_ACEOF
28869 /* confdefs.h. */
28870 _ACEOF
28871 cat confdefs.h >>conftest.$ac_ext
28872 cat >>conftest.$ac_ext <<_ACEOF
28873 /* end confdefs.h. */
28874
28875 /* Override any gcc2 internal prototype to avoid an error. */
28876 #ifdef __cplusplus
28877 extern "C"
28878 #endif
28879 /* We use char because int might match the return type of a gcc2
28880 builtin and then its argument prototype would still apply. */
28881 char gethostbyname ();
28882 int
28883 main ()
28884 {
28885 gethostbyname ();
28886 ;
28887 return 0;
28888 }
28889 _ACEOF
28890 rm -f conftest.$ac_objext conftest$ac_exeext
28891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28892 (eval $ac_link) 2>conftest.er1
28893 ac_status=$?
28894 grep -v '^ *+' conftest.er1 >conftest.err
28895 rm -f conftest.er1
28896 cat conftest.err >&5
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); } &&
28899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28901 (eval $ac_try) 2>&5
28902 ac_status=$?
28903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904 (exit $ac_status); }; } &&
28905 { ac_try='test -s conftest$ac_exeext'
28906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28907 (eval $ac_try) 2>&5
28908 ac_status=$?
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); }; }; then
28911 ac_cv_lib_bsd_gethostbyname=yes
28912 else
28913 echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.$ac_ext >&5
28915
28916 ac_cv_lib_bsd_gethostbyname=no
28917 fi
28918 rm -f conftest.err conftest.$ac_objext \
28919 conftest$ac_exeext conftest.$ac_ext
28920 LIBS=$ac_check_lib_save_LIBS
28921 fi
28922 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28923 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28924 if test $ac_cv_lib_bsd_gethostbyname = yes; then
28925 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28926 fi
28927
28928 fi
28929 fi
28930
28931 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28932 # socket/setsockopt and other routines are undefined under SCO ODT
28933 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28934 # on later versions), says Simon Leinen: it contains gethostby*
28935 # variants that don't use the name server (or something). -lsocket
28936 # must be given before -lnsl if both are needed. We assume that
28937 # if connect needs -lnsl, so does gethostbyname.
28938 echo "$as_me:$LINENO: checking for connect" >&5
28939 echo $ECHO_N "checking for connect... $ECHO_C" >&6
28940 if test "${ac_cv_func_connect+set}" = set; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28942 else
28943 cat >conftest.$ac_ext <<_ACEOF
28944 /* confdefs.h. */
28945 _ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h. */
28949 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
28950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28951 #define connect innocuous_connect
28952
28953 /* System header to define __stub macros and hopefully few prototypes,
28954 which can conflict with char connect (); below.
28955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28956 <limits.h> exists even on freestanding compilers. */
28957
28958 #ifdef __STDC__
28959 # include <limits.h>
28960 #else
28961 # include <assert.h>
28962 #endif
28963
28964 #undef connect
28965
28966 /* Override any gcc2 internal prototype to avoid an error. */
28967 #ifdef __cplusplus
28968 extern "C"
28969 {
28970 #endif
28971 /* We use char because int might match the return type of a gcc2
28972 builtin and then its argument prototype would still apply. */
28973 char connect ();
28974 /* The GNU C library defines this for functions which it implements
28975 to always fail with ENOSYS. Some functions are actually named
28976 something starting with __ and the normal name is an alias. */
28977 #if defined (__stub_connect) || defined (__stub___connect)
28978 choke me
28979 #else
28980 char (*f) () = connect;
28981 #endif
28982 #ifdef __cplusplus
28983 }
28984 #endif
28985
28986 int
28987 main ()
28988 {
28989 return f != connect;
28990 ;
28991 return 0;
28992 }
28993 _ACEOF
28994 rm -f conftest.$ac_objext conftest$ac_exeext
28995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28996 (eval $ac_link) 2>conftest.er1
28997 ac_status=$?
28998 grep -v '^ *+' conftest.er1 >conftest.err
28999 rm -f conftest.er1
29000 cat conftest.err >&5
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); } &&
29003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005 (eval $ac_try) 2>&5
29006 ac_status=$?
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; } &&
29009 { ac_try='test -s conftest$ac_exeext'
29010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29011 (eval $ac_try) 2>&5
29012 ac_status=$?
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); }; }; then
29015 ac_cv_func_connect=yes
29016 else
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29019
29020 ac_cv_func_connect=no
29021 fi
29022 rm -f conftest.err conftest.$ac_objext \
29023 conftest$ac_exeext conftest.$ac_ext
29024 fi
29025 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29026 echo "${ECHO_T}$ac_cv_func_connect" >&6
29027
29028 if test $ac_cv_func_connect = no; then
29029 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29030 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29031 if test "${ac_cv_lib_socket_connect+set}" = set; then
29032 echo $ECHO_N "(cached) $ECHO_C" >&6
29033 else
29034 ac_check_lib_save_LIBS=$LIBS
29035 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29036 cat >conftest.$ac_ext <<_ACEOF
29037 /* confdefs.h. */
29038 _ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h. */
29042
29043 /* Override any gcc2 internal prototype to avoid an error. */
29044 #ifdef __cplusplus
29045 extern "C"
29046 #endif
29047 /* We use char because int might match the return type of a gcc2
29048 builtin and then its argument prototype would still apply. */
29049 char connect ();
29050 int
29051 main ()
29052 {
29053 connect ();
29054 ;
29055 return 0;
29056 }
29057 _ACEOF
29058 rm -f conftest.$ac_objext conftest$ac_exeext
29059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29060 (eval $ac_link) 2>conftest.er1
29061 ac_status=$?
29062 grep -v '^ *+' conftest.er1 >conftest.err
29063 rm -f conftest.er1
29064 cat conftest.err >&5
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); } &&
29067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29069 (eval $ac_try) 2>&5
29070 ac_status=$?
29071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072 (exit $ac_status); }; } &&
29073 { ac_try='test -s conftest$ac_exeext'
29074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075 (eval $ac_try) 2>&5
29076 ac_status=$?
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; }; then
29079 ac_cv_lib_socket_connect=yes
29080 else
29081 echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29083
29084 ac_cv_lib_socket_connect=no
29085 fi
29086 rm -f conftest.err conftest.$ac_objext \
29087 conftest$ac_exeext conftest.$ac_ext
29088 LIBS=$ac_check_lib_save_LIBS
29089 fi
29090 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29091 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29092 if test $ac_cv_lib_socket_connect = yes; then
29093 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29094 fi
29095
29096 fi
29097
29098 # Guillermo Gomez says -lposix is necessary on A/UX.
29099 echo "$as_me:$LINENO: checking for remove" >&5
29100 echo $ECHO_N "checking for remove... $ECHO_C" >&6
29101 if test "${ac_cv_func_remove+set}" = set; then
29102 echo $ECHO_N "(cached) $ECHO_C" >&6
29103 else
29104 cat >conftest.$ac_ext <<_ACEOF
29105 /* confdefs.h. */
29106 _ACEOF
29107 cat confdefs.h >>conftest.$ac_ext
29108 cat >>conftest.$ac_ext <<_ACEOF
29109 /* end confdefs.h. */
29110 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
29111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29112 #define remove innocuous_remove
29113
29114 /* System header to define __stub macros and hopefully few prototypes,
29115 which can conflict with char remove (); below.
29116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29117 <limits.h> exists even on freestanding compilers. */
29118
29119 #ifdef __STDC__
29120 # include <limits.h>
29121 #else
29122 # include <assert.h>
29123 #endif
29124
29125 #undef remove
29126
29127 /* Override any gcc2 internal prototype to avoid an error. */
29128 #ifdef __cplusplus
29129 extern "C"
29130 {
29131 #endif
29132 /* We use char because int might match the return type of a gcc2
29133 builtin and then its argument prototype would still apply. */
29134 char remove ();
29135 /* The GNU C library defines this for functions which it implements
29136 to always fail with ENOSYS. Some functions are actually named
29137 something starting with __ and the normal name is an alias. */
29138 #if defined (__stub_remove) || defined (__stub___remove)
29139 choke me
29140 #else
29141 char (*f) () = remove;
29142 #endif
29143 #ifdef __cplusplus
29144 }
29145 #endif
29146
29147 int
29148 main ()
29149 {
29150 return f != remove;
29151 ;
29152 return 0;
29153 }
29154 _ACEOF
29155 rm -f conftest.$ac_objext conftest$ac_exeext
29156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29157 (eval $ac_link) 2>conftest.er1
29158 ac_status=$?
29159 grep -v '^ *+' conftest.er1 >conftest.err
29160 rm -f conftest.er1
29161 cat conftest.err >&5
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); } &&
29164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29166 (eval $ac_try) 2>&5
29167 ac_status=$?
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); }; } &&
29170 { ac_try='test -s conftest$ac_exeext'
29171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29172 (eval $ac_try) 2>&5
29173 ac_status=$?
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); }; }; then
29176 ac_cv_func_remove=yes
29177 else
29178 echo "$as_me: failed program was:" >&5
29179 sed 's/^/| /' conftest.$ac_ext >&5
29180
29181 ac_cv_func_remove=no
29182 fi
29183 rm -f conftest.err conftest.$ac_objext \
29184 conftest$ac_exeext conftest.$ac_ext
29185 fi
29186 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29187 echo "${ECHO_T}$ac_cv_func_remove" >&6
29188
29189 if test $ac_cv_func_remove = no; then
29190 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29191 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29192 if test "${ac_cv_lib_posix_remove+set}" = set; then
29193 echo $ECHO_N "(cached) $ECHO_C" >&6
29194 else
29195 ac_check_lib_save_LIBS=$LIBS
29196 LIBS="-lposix $LIBS"
29197 cat >conftest.$ac_ext <<_ACEOF
29198 /* confdefs.h. */
29199 _ACEOF
29200 cat confdefs.h >>conftest.$ac_ext
29201 cat >>conftest.$ac_ext <<_ACEOF
29202 /* end confdefs.h. */
29203
29204 /* Override any gcc2 internal prototype to avoid an error. */
29205 #ifdef __cplusplus
29206 extern "C"
29207 #endif
29208 /* We use char because int might match the return type of a gcc2
29209 builtin and then its argument prototype would still apply. */
29210 char remove ();
29211 int
29212 main ()
29213 {
29214 remove ();
29215 ;
29216 return 0;
29217 }
29218 _ACEOF
29219 rm -f conftest.$ac_objext conftest$ac_exeext
29220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29221 (eval $ac_link) 2>conftest.er1
29222 ac_status=$?
29223 grep -v '^ *+' conftest.er1 >conftest.err
29224 rm -f conftest.er1
29225 cat conftest.err >&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); } &&
29228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29230 (eval $ac_try) 2>&5
29231 ac_status=$?
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; } &&
29234 { ac_try='test -s conftest$ac_exeext'
29235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29236 (eval $ac_try) 2>&5
29237 ac_status=$?
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; }; then
29240 ac_cv_lib_posix_remove=yes
29241 else
29242 echo "$as_me: failed program was:" >&5
29243 sed 's/^/| /' conftest.$ac_ext >&5
29244
29245 ac_cv_lib_posix_remove=no
29246 fi
29247 rm -f conftest.err conftest.$ac_objext \
29248 conftest$ac_exeext conftest.$ac_ext
29249 LIBS=$ac_check_lib_save_LIBS
29250 fi
29251 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29252 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29253 if test $ac_cv_lib_posix_remove = yes; then
29254 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29255 fi
29256
29257 fi
29258
29259 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29260 echo "$as_me:$LINENO: checking for shmat" >&5
29261 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29262 if test "${ac_cv_func_shmat+set}" = set; then
29263 echo $ECHO_N "(cached) $ECHO_C" >&6
29264 else
29265 cat >conftest.$ac_ext <<_ACEOF
29266 /* confdefs.h. */
29267 _ACEOF
29268 cat confdefs.h >>conftest.$ac_ext
29269 cat >>conftest.$ac_ext <<_ACEOF
29270 /* end confdefs.h. */
29271 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29273 #define shmat innocuous_shmat
29274
29275 /* System header to define __stub macros and hopefully few prototypes,
29276 which can conflict with char shmat (); below.
29277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29278 <limits.h> exists even on freestanding compilers. */
29279
29280 #ifdef __STDC__
29281 # include <limits.h>
29282 #else
29283 # include <assert.h>
29284 #endif
29285
29286 #undef shmat
29287
29288 /* Override any gcc2 internal prototype to avoid an error. */
29289 #ifdef __cplusplus
29290 extern "C"
29291 {
29292 #endif
29293 /* We use char because int might match the return type of a gcc2
29294 builtin and then its argument prototype would still apply. */
29295 char shmat ();
29296 /* The GNU C library defines this for functions which it implements
29297 to always fail with ENOSYS. Some functions are actually named
29298 something starting with __ and the normal name is an alias. */
29299 #if defined (__stub_shmat) || defined (__stub___shmat)
29300 choke me
29301 #else
29302 char (*f) () = shmat;
29303 #endif
29304 #ifdef __cplusplus
29305 }
29306 #endif
29307
29308 int
29309 main ()
29310 {
29311 return f != shmat;
29312 ;
29313 return 0;
29314 }
29315 _ACEOF
29316 rm -f conftest.$ac_objext conftest$ac_exeext
29317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29318 (eval $ac_link) 2>conftest.er1
29319 ac_status=$?
29320 grep -v '^ *+' conftest.er1 >conftest.err
29321 rm -f conftest.er1
29322 cat conftest.err >&5
29323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324 (exit $ac_status); } &&
29325 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29327 (eval $ac_try) 2>&5
29328 ac_status=$?
29329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 (exit $ac_status); }; } &&
29331 { ac_try='test -s conftest$ac_exeext'
29332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333 (eval $ac_try) 2>&5
29334 ac_status=$?
29335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 (exit $ac_status); }; }; then
29337 ac_cv_func_shmat=yes
29338 else
29339 echo "$as_me: failed program was:" >&5
29340 sed 's/^/| /' conftest.$ac_ext >&5
29341
29342 ac_cv_func_shmat=no
29343 fi
29344 rm -f conftest.err conftest.$ac_objext \
29345 conftest$ac_exeext conftest.$ac_ext
29346 fi
29347 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29348 echo "${ECHO_T}$ac_cv_func_shmat" >&6
29349
29350 if test $ac_cv_func_shmat = no; then
29351 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29352 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29353 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29354 echo $ECHO_N "(cached) $ECHO_C" >&6
29355 else
29356 ac_check_lib_save_LIBS=$LIBS
29357 LIBS="-lipc $LIBS"
29358 cat >conftest.$ac_ext <<_ACEOF
29359 /* confdefs.h. */
29360 _ACEOF
29361 cat confdefs.h >>conftest.$ac_ext
29362 cat >>conftest.$ac_ext <<_ACEOF
29363 /* end confdefs.h. */
29364
29365 /* Override any gcc2 internal prototype to avoid an error. */
29366 #ifdef __cplusplus
29367 extern "C"
29368 #endif
29369 /* We use char because int might match the return type of a gcc2
29370 builtin and then its argument prototype would still apply. */
29371 char shmat ();
29372 int
29373 main ()
29374 {
29375 shmat ();
29376 ;
29377 return 0;
29378 }
29379 _ACEOF
29380 rm -f conftest.$ac_objext conftest$ac_exeext
29381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29382 (eval $ac_link) 2>conftest.er1
29383 ac_status=$?
29384 grep -v '^ *+' conftest.er1 >conftest.err
29385 rm -f conftest.er1
29386 cat conftest.err >&5
29387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388 (exit $ac_status); } &&
29389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29391 (eval $ac_try) 2>&5
29392 ac_status=$?
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); }; } &&
29395 { ac_try='test -s conftest$ac_exeext'
29396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397 (eval $ac_try) 2>&5
29398 ac_status=$?
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); }; }; then
29401 ac_cv_lib_ipc_shmat=yes
29402 else
29403 echo "$as_me: failed program was:" >&5
29404 sed 's/^/| /' conftest.$ac_ext >&5
29405
29406 ac_cv_lib_ipc_shmat=no
29407 fi
29408 rm -f conftest.err conftest.$ac_objext \
29409 conftest$ac_exeext conftest.$ac_ext
29410 LIBS=$ac_check_lib_save_LIBS
29411 fi
29412 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29413 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29414 if test $ac_cv_lib_ipc_shmat = yes; then
29415 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29416 fi
29417
29418 fi
29419 fi
29420
29421 # Check for libraries that X11R6 Xt/Xaw programs need.
29422 ac_save_LDFLAGS=$LDFLAGS
29423 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29424 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29425 # check for ICE first), but we must link in the order -lSM -lICE or
29426 # we get undefined symbols. So assume we have SM if we have ICE.
29427 # These have to be linked with before -lX11, unlike the other
29428 # libraries we check for below, so use a different variable.
29429 # John Interrante, Karl Berry
29430 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29431 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29432 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29433 echo $ECHO_N "(cached) $ECHO_C" >&6
29434 else
29435 ac_check_lib_save_LIBS=$LIBS
29436 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29437 cat >conftest.$ac_ext <<_ACEOF
29438 /* confdefs.h. */
29439 _ACEOF
29440 cat confdefs.h >>conftest.$ac_ext
29441 cat >>conftest.$ac_ext <<_ACEOF
29442 /* end confdefs.h. */
29443
29444 /* Override any gcc2 internal prototype to avoid an error. */
29445 #ifdef __cplusplus
29446 extern "C"
29447 #endif
29448 /* We use char because int might match the return type of a gcc2
29449 builtin and then its argument prototype would still apply. */
29450 char IceConnectionNumber ();
29451 int
29452 main ()
29453 {
29454 IceConnectionNumber ();
29455 ;
29456 return 0;
29457 }
29458 _ACEOF
29459 rm -f conftest.$ac_objext conftest$ac_exeext
29460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29461 (eval $ac_link) 2>conftest.er1
29462 ac_status=$?
29463 grep -v '^ *+' conftest.er1 >conftest.err
29464 rm -f conftest.er1
29465 cat conftest.err >&5
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); } &&
29468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470 (eval $ac_try) 2>&5
29471 ac_status=$?
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); }; } &&
29474 { ac_try='test -s conftest$ac_exeext'
29475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29476 (eval $ac_try) 2>&5
29477 ac_status=$?
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); }; }; then
29480 ac_cv_lib_ICE_IceConnectionNumber=yes
29481 else
29482 echo "$as_me: failed program was:" >&5
29483 sed 's/^/| /' conftest.$ac_ext >&5
29484
29485 ac_cv_lib_ICE_IceConnectionNumber=no
29486 fi
29487 rm -f conftest.err conftest.$ac_objext \
29488 conftest$ac_exeext conftest.$ac_ext
29489 LIBS=$ac_check_lib_save_LIBS
29490 fi
29491 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29492 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29493 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29494 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29495 fi
29496
29497 LDFLAGS=$ac_save_LDFLAGS
29498
29499 fi
29500
29501
29502 if test "$no_x" = "yes"; then
29503 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29504 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29505 { (exit 1); exit 1; }; }
29506 fi
29507
29508 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29509 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
29510 AFMINSTALL=afminstall
29511 COMPILED_X_PROGRAM=0
29512
29513 fi
29514
29515 if test "$wxUSE_X11" = 1; then
29516 if test "$wxUSE_NANOX" = "yes"; then
29517 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29518 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29519 if test "x$MICROWIN" = x ; then
29520 echo "$as_me:$LINENO: result: not found" >&5
29521 echo "${ECHO_T}not found" >&6
29522 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29523 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29524 { (exit 1); exit 1; }; }
29525 else
29526 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29527 echo "${ECHO_T}$MICROWIN" >&6
29528 cat >>confdefs.h <<\_ACEOF
29529 #define wxUSE_NANOX 1
29530 _ACEOF
29531
29532 fi
29533 fi
29534
29535 if test "$wxUSE_UNICODE" = "yes"; then
29536
29537 succeeded=no
29538
29539 if test -z "$PKG_CONFIG"; then
29540 # Extract the first word of "pkg-config", so it can be a program name with args.
29541 set dummy pkg-config; ac_word=$2
29542 echo "$as_me:$LINENO: checking for $ac_word" >&5
29543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29544 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29545 echo $ECHO_N "(cached) $ECHO_C" >&6
29546 else
29547 case $PKG_CONFIG in
29548 [\\/]* | ?:[\\/]*)
29549 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29550 ;;
29551 *)
29552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29553 for as_dir in $PATH
29554 do
29555 IFS=$as_save_IFS
29556 test -z "$as_dir" && as_dir=.
29557 for ac_exec_ext in '' $ac_executable_extensions; do
29558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29559 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29561 break 2
29562 fi
29563 done
29564 done
29565
29566 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29567 ;;
29568 esac
29569 fi
29570 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29571
29572 if test -n "$PKG_CONFIG"; then
29573 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29574 echo "${ECHO_T}$PKG_CONFIG" >&6
29575 else
29576 echo "$as_me:$LINENO: result: no" >&5
29577 echo "${ECHO_T}no" >&6
29578 fi
29579
29580 fi
29581
29582 if test "$PKG_CONFIG" = "no" ; then
29583 echo "*** The pkg-config script could not be found. Make sure it is"
29584 echo "*** in your path, or set the PKG_CONFIG environment variable"
29585 echo "*** to the full path to pkg-config."
29586 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29587 else
29588 PKG_CONFIG_MIN_VERSION=0.9.0
29589 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29590 echo "$as_me:$LINENO: checking for pangox" >&5
29591 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29592
29593 if $PKG_CONFIG --exists "pangox" ; then
29594 echo "$as_me:$LINENO: result: yes" >&5
29595 echo "${ECHO_T}yes" >&6
29596 succeeded=yes
29597
29598 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29599 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29600 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29601 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29602 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29603
29604 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29605 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29606 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29607 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29608 echo "${ECHO_T}$PANGOX_LIBS" >&6
29609 else
29610 PANGOX_CFLAGS=""
29611 PANGOX_LIBS=""
29612 ## If we have a custom action on failure, don't print errors, but
29613 ## do set a variable so people can do so.
29614 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29615
29616 fi
29617
29618
29619
29620 else
29621 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29622 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29623 fi
29624 fi
29625
29626 if test $succeeded = yes; then
29627
29628 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
29629 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29630
29631 else
29632
29633 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29634 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29635 { (exit 1); exit 1; }; }
29636
29637
29638 fi
29639
29640
29641 succeeded=no
29642
29643 if test -z "$PKG_CONFIG"; then
29644 # Extract the first word of "pkg-config", so it can be a program name with args.
29645 set dummy pkg-config; ac_word=$2
29646 echo "$as_me:$LINENO: checking for $ac_word" >&5
29647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29648 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29649 echo $ECHO_N "(cached) $ECHO_C" >&6
29650 else
29651 case $PKG_CONFIG in
29652 [\\/]* | ?:[\\/]*)
29653 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29654 ;;
29655 *)
29656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29657 for as_dir in $PATH
29658 do
29659 IFS=$as_save_IFS
29660 test -z "$as_dir" && as_dir=.
29661 for ac_exec_ext in '' $ac_executable_extensions; do
29662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29663 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29665 break 2
29666 fi
29667 done
29668 done
29669
29670 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29671 ;;
29672 esac
29673 fi
29674 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29675
29676 if test -n "$PKG_CONFIG"; then
29677 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29678 echo "${ECHO_T}$PKG_CONFIG" >&6
29679 else
29680 echo "$as_me:$LINENO: result: no" >&5
29681 echo "${ECHO_T}no" >&6
29682 fi
29683
29684 fi
29685
29686 if test "$PKG_CONFIG" = "no" ; then
29687 echo "*** The pkg-config script could not be found. Make sure it is"
29688 echo "*** in your path, or set the PKG_CONFIG environment variable"
29689 echo "*** to the full path to pkg-config."
29690 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29691 else
29692 PKG_CONFIG_MIN_VERSION=0.9.0
29693 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29694 echo "$as_me:$LINENO: checking for pangoft2" >&5
29695 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29696
29697 if $PKG_CONFIG --exists "pangoft2" ; then
29698 echo "$as_me:$LINENO: result: yes" >&5
29699 echo "${ECHO_T}yes" >&6
29700 succeeded=yes
29701
29702 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29703 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29704 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29705 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29706 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29707
29708 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29709 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29710 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29711 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29712 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29713 else
29714 PANGOFT2_CFLAGS=""
29715 PANGOFT2_LIBS=""
29716 ## If we have a custom action on failure, don't print errors, but
29717 ## do set a variable so people can do so.
29718 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29719
29720 fi
29721
29722
29723
29724 else
29725 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29726 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29727 fi
29728 fi
29729
29730 if test $succeeded = yes; then
29731
29732 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
29733 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29734
29735 else
29736
29737 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29738 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29739 wxUSE_PRINTING_ARCHITECTURE="no"
29740
29741
29742 fi
29743
29744
29745 succeeded=no
29746
29747 if test -z "$PKG_CONFIG"; then
29748 # Extract the first word of "pkg-config", so it can be a program name with args.
29749 set dummy pkg-config; ac_word=$2
29750 echo "$as_me:$LINENO: checking for $ac_word" >&5
29751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29752 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29753 echo $ECHO_N "(cached) $ECHO_C" >&6
29754 else
29755 case $PKG_CONFIG in
29756 [\\/]* | ?:[\\/]*)
29757 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29758 ;;
29759 *)
29760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29761 for as_dir in $PATH
29762 do
29763 IFS=$as_save_IFS
29764 test -z "$as_dir" && as_dir=.
29765 for ac_exec_ext in '' $ac_executable_extensions; do
29766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29767 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29769 break 2
29770 fi
29771 done
29772 done
29773
29774 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29775 ;;
29776 esac
29777 fi
29778 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29779
29780 if test -n "$PKG_CONFIG"; then
29781 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29782 echo "${ECHO_T}$PKG_CONFIG" >&6
29783 else
29784 echo "$as_me:$LINENO: result: no" >&5
29785 echo "${ECHO_T}no" >&6
29786 fi
29787
29788 fi
29789
29790 if test "$PKG_CONFIG" = "no" ; then
29791 echo "*** The pkg-config script could not be found. Make sure it is"
29792 echo "*** in your path, or set the PKG_CONFIG environment variable"
29793 echo "*** to the full path to pkg-config."
29794 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29795 else
29796 PKG_CONFIG_MIN_VERSION=0.9.0
29797 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29798 echo "$as_me:$LINENO: checking for pangoxft" >&5
29799 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29800
29801 if $PKG_CONFIG --exists "pangoxft" ; then
29802 echo "$as_me:$LINENO: result: yes" >&5
29803 echo "${ECHO_T}yes" >&6
29804 succeeded=yes
29805
29806 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29807 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29808 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29809 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29810 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29811
29812 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29813 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29814 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29815 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29816 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29817 else
29818 PANGOXFT_CFLAGS=""
29819 PANGOXFT_LIBS=""
29820 ## If we have a custom action on failure, don't print errors, but
29821 ## do set a variable so people can do so.
29822 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29823
29824 fi
29825
29826
29827
29828 else
29829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29831 fi
29832 fi
29833
29834 if test $succeeded = yes; then
29835
29836 cat >>confdefs.h <<\_ACEOF
29837 #define HAVE_PANGO_XFT 1
29838 _ACEOF
29839
29840 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
29841 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29842
29843 else
29844
29845 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29846 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29847
29848
29849 fi
29850
29851 save_CXXFLAGS="$CXXFLAGS"
29852 save_LIBS="$LIBS"
29853 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
29854 LIBS="$LIBS $PANGOX_LIBS"
29855
29856 for ac_func in pango_font_family_is_monospace
29857 do
29858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29859 echo "$as_me:$LINENO: checking for $ac_func" >&5
29860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29861 if eval "test \"\${$as_ac_var+set}\" = set"; then
29862 echo $ECHO_N "(cached) $ECHO_C" >&6
29863 else
29864 cat >conftest.$ac_ext <<_ACEOF
29865 /* confdefs.h. */
29866 _ACEOF
29867 cat confdefs.h >>conftest.$ac_ext
29868 cat >>conftest.$ac_ext <<_ACEOF
29869 /* end confdefs.h. */
29870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29872 #define $ac_func innocuous_$ac_func
29873
29874 /* System header to define __stub macros and hopefully few prototypes,
29875 which can conflict with char $ac_func (); below.
29876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29877 <limits.h> exists even on freestanding compilers. */
29878
29879 #ifdef __STDC__
29880 # include <limits.h>
29881 #else
29882 # include <assert.h>
29883 #endif
29884
29885 #undef $ac_func
29886
29887 /* Override any gcc2 internal prototype to avoid an error. */
29888 #ifdef __cplusplus
29889 extern "C"
29890 {
29891 #endif
29892 /* We use char because int might match the return type of a gcc2
29893 builtin and then its argument prototype would still apply. */
29894 char $ac_func ();
29895 /* The GNU C library defines this for functions which it implements
29896 to always fail with ENOSYS. Some functions are actually named
29897 something starting with __ and the normal name is an alias. */
29898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29899 choke me
29900 #else
29901 char (*f) () = $ac_func;
29902 #endif
29903 #ifdef __cplusplus
29904 }
29905 #endif
29906
29907 int
29908 main ()
29909 {
29910 return f != $ac_func;
29911 ;
29912 return 0;
29913 }
29914 _ACEOF
29915 rm -f conftest.$ac_objext conftest$ac_exeext
29916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29917 (eval $ac_link) 2>conftest.er1
29918 ac_status=$?
29919 grep -v '^ *+' conftest.er1 >conftest.err
29920 rm -f conftest.er1
29921 cat conftest.err >&5
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); } &&
29924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29926 (eval $ac_try) 2>&5
29927 ac_status=$?
29928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); }; } &&
29930 { ac_try='test -s conftest$ac_exeext'
29931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29932 (eval $ac_try) 2>&5
29933 ac_status=$?
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); }; }; then
29936 eval "$as_ac_var=yes"
29937 else
29938 echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.$ac_ext >&5
29940
29941 eval "$as_ac_var=no"
29942 fi
29943 rm -f conftest.err conftest.$ac_objext \
29944 conftest$ac_exeext conftest.$ac_ext
29945 fi
29946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29948 if test `eval echo '${'$as_ac_var'}'` = yes; then
29949 cat >>confdefs.h <<_ACEOF
29950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29951 _ACEOF
29952
29953 fi
29954 done
29955
29956 CXXFLAGS="$save_CXXFLAGS"
29957 LIBS="$save_LIBS"
29958 fi
29959
29960 wxUSE_UNIVERSAL="yes"
29961
29962 if test "$wxUSE_NANOX" = "yes"; then
29963 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29964 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"
29965 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29966 else
29967 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29968 fi
29969
29970 TOOLKIT=X11
29971 GUIDIST=X11_DIST
29972 fi
29973
29974 if test "$wxUSE_MOTIF" = 1; then
29975 if test "$wxUSE_UNICODE" = "yes"; then
29976 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29977 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29978 { (exit 1); exit 1; }; }
29979 fi
29980
29981 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29982 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
29983
29984 ac_find_includes=
29985 for ac_dir in $SEARCH_INCLUDE /usr/include;
29986 do
29987 if test -f "$ac_dir/Xm/Xm.h"; then
29988 ac_find_includes=$ac_dir
29989 break
29990 fi
29991 done
29992
29993 if test "$ac_find_includes" != "" ; then
29994 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29995 echo "${ECHO_T}found in $ac_find_includes" >&6
29996
29997 if test "x$ac_find_includes" = "x/usr/include"; then
29998 ac_path_to_include=""
29999 else
30000 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30001 result=$?
30002 if test $result = 0; then
30003 ac_path_to_include=""
30004 else
30005 ac_path_to_include=" -I$ac_find_includes"
30006 fi
30007 fi
30008
30009 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30010 else
30011 save_CXXFLAGS=$CXXFLAGS
30012 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30013
30014 cat >conftest.$ac_ext <<_ACEOF
30015 /* confdefs.h. */
30016 _ACEOF
30017 cat confdefs.h >>conftest.$ac_ext
30018 cat >>conftest.$ac_ext <<_ACEOF
30019 /* end confdefs.h. */
30020
30021 #include <Xm/Xm.h>
30022
30023 int
30024 main ()
30025 {
30026
30027 int version;
30028 version = xmUseVersion;
30029
30030 ;
30031 return 0;
30032 }
30033 _ACEOF
30034 rm -f conftest.$ac_objext
30035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30036 (eval $ac_compile) 2>conftest.er1
30037 ac_status=$?
30038 grep -v '^ *+' conftest.er1 >conftest.err
30039 rm -f conftest.er1
30040 cat conftest.err >&5
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); } &&
30043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30045 (eval $ac_try) 2>&5
30046 ac_status=$?
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); }; } &&
30049 { ac_try='test -s conftest.$ac_objext'
30050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30051 (eval $ac_try) 2>&5
30052 ac_status=$?
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; }; then
30055
30056 echo "$as_me:$LINENO: result: found in default search path" >&5
30057 echo "${ECHO_T}found in default search path" >&6
30058 COMPILED_X_PROGRAM=1
30059
30060 else
30061 echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30063
30064
30065 echo "$as_me:$LINENO: result: no" >&5
30066 echo "${ECHO_T}no" >&6
30067 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30068 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
30069 { (exit 1); exit 1; }; }
30070
30071
30072 fi
30073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30074
30075 CXXFLAGS=$save_CXXFLAGS
30076 fi
30077
30078
30079 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
30080 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30081
30082 ac_find_libraries=
30083 for ac_dir in $SEARCH_LIB;
30084 do
30085 for ac_extension in a so sl dylib dll.a; do
30086 if test -f "$ac_dir/libXm.$ac_extension"; then
30087 ac_find_libraries=$ac_dir
30088 break 2
30089 fi
30090 done
30091 done
30092
30093
30094 if test "x$ac_find_libraries" != "x" ; then
30095 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30096 echo "${ECHO_T}found in $ac_find_libraries" >&6
30097
30098
30099 if test "$ac_find_libraries" = "default location"; then
30100 ac_path_to_link=""
30101 else
30102 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30103 result=$?
30104 if test $result = 0; then
30105 ac_path_to_link=""
30106 else
30107 ac_path_to_link=" -L$ac_find_libraries"
30108 fi
30109 fi
30110
30111 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30112 else
30113 save_CXXFLAGS=$CXXFLAGS
30114 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30115 save_LIBS="$LIBS"
30116 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
30117
30118 cat >conftest.$ac_ext <<_ACEOF
30119 /* confdefs.h. */
30120 _ACEOF
30121 cat confdefs.h >>conftest.$ac_ext
30122 cat >>conftest.$ac_ext <<_ACEOF
30123 /* end confdefs.h. */
30124
30125 #include <Xm/Xm.h>
30126
30127 int
30128 main ()
30129 {
30130
30131 int version;
30132 version = xmUseVersion;
30133
30134 ;
30135 return 0;
30136 }
30137 _ACEOF
30138 rm -f conftest.$ac_objext conftest$ac_exeext
30139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30140 (eval $ac_link) 2>conftest.er1
30141 ac_status=$?
30142 grep -v '^ *+' conftest.er1 >conftest.err
30143 rm -f conftest.er1
30144 cat conftest.err >&5
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); } &&
30147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30149 (eval $ac_try) 2>&5
30150 ac_status=$?
30151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 (exit $ac_status); }; } &&
30153 { ac_try='test -s conftest$ac_exeext'
30154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30155 (eval $ac_try) 2>&5
30156 ac_status=$?
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); }; }; then
30159
30160 echo "$as_me:$LINENO: result: found in default search path" >&5
30161 echo "${ECHO_T}found in default search path" >&6
30162 COMPILED_X_PROGRAM=1
30163
30164 else
30165 echo "$as_me: failed program was:" >&5
30166 sed 's/^/| /' conftest.$ac_ext >&5
30167
30168
30169 echo "$as_me:$LINENO: result: no" >&5
30170 echo "${ECHO_T}no" >&6
30171 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
30172 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30173 { (exit 1); exit 1; }; }
30174
30175
30176 fi
30177 rm -f conftest.err conftest.$ac_objext \
30178 conftest$ac_exeext conftest.$ac_ext
30179
30180 CXXFLAGS=$save_CXXFLAGS
30181 LIBS="$save_LIBS"
30182 fi
30183
30184 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30185 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30186 libp_link=""
30187 libsm_ice_link=""
30188 libs_found=0
30189 for libp in "" " -lXp"; do
30190 if test "$libs_found" = "0"; then
30191 for libsm_ice in "" " -lSM -lICE"; do
30192 if test "$libs_found" = "0"; then
30193 save_LIBS="$LIBS"
30194 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
30195 save_CXXFLAGS=$CXXFLAGS
30196 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30197
30198 cat >conftest.$ac_ext <<_ACEOF
30199 /* confdefs.h. */
30200 _ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h. */
30204
30205 #include <Xm/Xm.h>
30206 #include <Xm/List.h>
30207
30208 int
30209 main ()
30210 {
30211
30212 XmString string = NULL;
30213 Widget w = NULL;
30214 int position = 0;
30215 XmListAddItem(w, string, position);
30216
30217 ;
30218 return 0;
30219 }
30220 _ACEOF
30221 rm -f conftest.$ac_objext conftest$ac_exeext
30222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30223 (eval $ac_link) 2>conftest.er1
30224 ac_status=$?
30225 grep -v '^ *+' conftest.er1 >conftest.err
30226 rm -f conftest.er1
30227 cat conftest.err >&5
30228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229 (exit $ac_status); } &&
30230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30232 (eval $ac_try) 2>&5
30233 ac_status=$?
30234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235 (exit $ac_status); }; } &&
30236 { ac_try='test -s conftest$ac_exeext'
30237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30238 (eval $ac_try) 2>&5
30239 ac_status=$?
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); }; }; then
30242
30243 libp_link="$libp"
30244 libsm_ice_link="$libsm_ice"
30245 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30246 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30247 libs_found=1
30248
30249 else
30250 echo "$as_me: failed program was:" >&5
30251 sed 's/^/| /' conftest.$ac_ext >&5
30252
30253
30254
30255 fi
30256 rm -f conftest.err conftest.$ac_objext \
30257 conftest$ac_exeext conftest.$ac_ext
30258
30259 LIBS="$save_LIBS"
30260 CXXFLAGS=$save_CXXFLAGS
30261 fi
30262 done
30263 fi
30264 done
30265
30266 if test "$libs_found" = "0"; then
30267 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30268 echo "${ECHO_T}can't find the right libraries" >&6
30269 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30270 echo "$as_me: error: can't link a simple motif program" >&2;}
30271 { (exit 1); exit 1; }; }
30272 fi
30273
30274 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30275 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30276 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30277 echo $ECHO_N "(cached) $ECHO_C" >&6
30278 else
30279 ac_check_lib_save_LIBS=$LIBS
30280 LIBS="-lSgm $LIBS"
30281 cat >conftest.$ac_ext <<_ACEOF
30282 /* confdefs.h. */
30283 _ACEOF
30284 cat confdefs.h >>conftest.$ac_ext
30285 cat >>conftest.$ac_ext <<_ACEOF
30286 /* end confdefs.h. */
30287
30288 /* Override any gcc2 internal prototype to avoid an error. */
30289 #ifdef __cplusplus
30290 extern "C"
30291 #endif
30292 /* We use char because int might match the return type of a gcc2
30293 builtin and then its argument prototype would still apply. */
30294 char SgCreateList ();
30295 int
30296 main ()
30297 {
30298 SgCreateList ();
30299 ;
30300 return 0;
30301 }
30302 _ACEOF
30303 rm -f conftest.$ac_objext conftest$ac_exeext
30304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30305 (eval $ac_link) 2>conftest.er1
30306 ac_status=$?
30307 grep -v '^ *+' conftest.er1 >conftest.err
30308 rm -f conftest.er1
30309 cat conftest.err >&5
30310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311 (exit $ac_status); } &&
30312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30314 (eval $ac_try) 2>&5
30315 ac_status=$?
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); }; } &&
30318 { ac_try='test -s conftest$ac_exeext'
30319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30320 (eval $ac_try) 2>&5
30321 ac_status=$?
30322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323 (exit $ac_status); }; }; then
30324 ac_cv_lib_Sgm_SgCreateList=yes
30325 else
30326 echo "$as_me: failed program was:" >&5
30327 sed 's/^/| /' conftest.$ac_ext >&5
30328
30329 ac_cv_lib_Sgm_SgCreateList=no
30330 fi
30331 rm -f conftest.err conftest.$ac_objext \
30332 conftest$ac_exeext conftest.$ac_ext
30333 LIBS=$ac_check_lib_save_LIBS
30334 fi
30335 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30336 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30337 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30338 libsgm_link=" -lSgm"
30339 fi
30340
30341
30342 save_CXXFLAGS=$CXXFLAGS
30343 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30344
30345 echo "$as_me:$LINENO: checking for Motif 2" >&5
30346 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
30347 if test "${wx_cv_lib_motif2+set}" = set; then
30348 echo $ECHO_N "(cached) $ECHO_C" >&6
30349 else
30350 cat >conftest.$ac_ext <<_ACEOF
30351 /* confdefs.h. */
30352 _ACEOF
30353 cat confdefs.h >>conftest.$ac_ext
30354 cat >>conftest.$ac_ext <<_ACEOF
30355 /* end confdefs.h. */
30356
30357 #include <Xm/Xm.h>
30358
30359 int
30360 main ()
30361 {
30362
30363 #if XmVersion < 2000
30364 Not Motif 2
30365 #endif
30366
30367 ;
30368 return 0;
30369 }
30370 _ACEOF
30371 rm -f conftest.$ac_objext
30372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30373 (eval $ac_compile) 2>conftest.er1
30374 ac_status=$?
30375 grep -v '^ *+' conftest.er1 >conftest.err
30376 rm -f conftest.er1
30377 cat conftest.err >&5
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); } &&
30380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30382 (eval $ac_try) 2>&5
30383 ac_status=$?
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); }; } &&
30386 { ac_try='test -s conftest.$ac_objext'
30387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388 (eval $ac_try) 2>&5
30389 ac_status=$?
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; }; then
30392 wx_cv_lib_motif2="yes"
30393 else
30394 echo "$as_me: failed program was:" >&5
30395 sed 's/^/| /' conftest.$ac_ext >&5
30396
30397 wx_cv_lib_motif2="no"
30398 fi
30399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30400 fi
30401 echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30402 echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30403 if test "$wx_cv_lib_motif2" = "yes"; then
30404 cat >>confdefs.h <<\_ACEOF
30405 #define __WXMOTIF20__ 1
30406 _ACEOF
30407
30408 else
30409 cat >>confdefs.h <<\_ACEOF
30410 #define __WXMOTIF20__ 0
30411 _ACEOF
30412
30413 fi
30414
30415 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30416 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
30417 if test "${wx_cv_lib_lesstif+set}" = set; then
30418 echo $ECHO_N "(cached) $ECHO_C" >&6
30419 else
30420 cat >conftest.$ac_ext <<_ACEOF
30421 /* confdefs.h. */
30422 _ACEOF
30423 cat confdefs.h >>conftest.$ac_ext
30424 cat >>conftest.$ac_ext <<_ACEOF
30425 /* end confdefs.h. */
30426
30427 #include <Xm/Xm.h>
30428
30429 int
30430 main ()
30431 {
30432
30433 #if !defined(LesstifVersion) || LesstifVersion <= 0
30434 Not Lesstif
30435 #endif
30436
30437 ;
30438 return 0;
30439 }
30440 _ACEOF
30441 rm -f conftest.$ac_objext
30442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30443 (eval $ac_compile) 2>conftest.er1
30444 ac_status=$?
30445 grep -v '^ *+' conftest.er1 >conftest.err
30446 rm -f conftest.er1
30447 cat conftest.err >&5
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); } &&
30450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30452 (eval $ac_try) 2>&5
30453 ac_status=$?
30454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455 (exit $ac_status); }; } &&
30456 { ac_try='test -s conftest.$ac_objext'
30457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30458 (eval $ac_try) 2>&5
30459 ac_status=$?
30460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30461 (exit $ac_status); }; }; then
30462 wx_cv_lib_lesstif="yes"
30463 else
30464 echo "$as_me: failed program was:" >&5
30465 sed 's/^/| /' conftest.$ac_ext >&5
30466
30467 wx_cv_lib_lesstif="no"
30468 fi
30469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30470
30471 fi
30472 echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30473 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30474 if test "$wx_cv_lib_lesstif" = "yes"; then
30475 cat >>confdefs.h <<\_ACEOF
30476 #define __WXLESSTIF__ 1
30477 _ACEOF
30478
30479 else
30480 cat >>confdefs.h <<\_ACEOF
30481 #define __WXLESSTIF__ 0
30482 _ACEOF
30483
30484 fi
30485
30486 CXXFLAGS=$save_CXXFLAGS
30487
30488 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
30489 TOOLKIT=MOTIF
30490 GUIDIST=MOTIF_DIST
30491 fi
30492
30493 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30494 if test "$wxUSE_LIBXPM" = "sys"; then
30495 echo "$as_me:$LINENO: checking for Xpm library" >&5
30496 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30497
30498 ac_find_libraries=
30499 for ac_dir in $SEARCH_LIB;
30500 do
30501 for ac_extension in a so sl dylib dll.a; do
30502 if test -f "$ac_dir/libXpm.$ac_extension"; then
30503 ac_find_libraries=$ac_dir
30504 break 2
30505 fi
30506 done
30507 done
30508
30509 if test "$ac_find_libraries" != "" ; then
30510
30511 if test "$ac_find_libraries" = "default location"; then
30512 ac_path_to_link=""
30513 else
30514 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30515 result=$?
30516 if test $result = 0; then
30517 ac_path_to_link=""
30518 else
30519 ac_path_to_link=" -L$ac_find_libraries"
30520 fi
30521 fi
30522
30523 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30524 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30525 echo "${ECHO_T}found in $ac_find_libraries" >&6
30526
30527 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30528 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30529 if test "${wx_cv_x11_xpm_h+set}" = set; then
30530 echo $ECHO_N "(cached) $ECHO_C" >&6
30531 else
30532
30533 save_CXXFLAGS=$CXXFLAGS
30534 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30535
30536 cat >conftest.$ac_ext <<_ACEOF
30537 /* confdefs.h. */
30538 _ACEOF
30539 cat confdefs.h >>conftest.$ac_ext
30540 cat >>conftest.$ac_ext <<_ACEOF
30541 /* end confdefs.h. */
30542
30543 #include <X11/xpm.h>
30544
30545 int
30546 main ()
30547 {
30548
30549 int version;
30550 version = XpmLibraryVersion();
30551
30552 ;
30553 return 0;
30554 }
30555 _ACEOF
30556 rm -f conftest.$ac_objext
30557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30558 (eval $ac_compile) 2>conftest.er1
30559 ac_status=$?
30560 grep -v '^ *+' conftest.er1 >conftest.err
30561 rm -f conftest.er1
30562 cat conftest.err >&5
30563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564 (exit $ac_status); } &&
30565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
30571 { ac_try='test -s conftest.$ac_objext'
30572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30573 (eval $ac_try) 2>&5
30574 ac_status=$?
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); }; }; then
30577 wx_cv_x11_xpm_h=yes
30578 else
30579 echo "$as_me: failed program was:" >&5
30580 sed 's/^/| /' conftest.$ac_ext >&5
30581
30582 wx_cv_x11_xpm_h=no
30583
30584 fi
30585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30586
30587 CXXFLAGS=$save_CXXFLAGS
30588
30589
30590 fi
30591 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30592 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30593
30594 if test $wx_cv_x11_xpm_h = "yes"; then
30595 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30596 cat >>confdefs.h <<\_ACEOF
30597 #define wxHAVE_LIB_XPM 1
30598 _ACEOF
30599
30600 else
30601 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30602 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30603 fi
30604 fi
30605
30606 fi
30607
30608 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30609 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30610 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30611 echo $ECHO_N "(cached) $ECHO_C" >&6
30612 else
30613 ac_check_lib_save_LIBS=$LIBS
30614 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30615 cat >conftest.$ac_ext <<_ACEOF
30616 /* confdefs.h. */
30617 _ACEOF
30618 cat confdefs.h >>conftest.$ac_ext
30619 cat >>conftest.$ac_ext <<_ACEOF
30620 /* end confdefs.h. */
30621
30622 /* Override any gcc2 internal prototype to avoid an error. */
30623 #ifdef __cplusplus
30624 extern "C"
30625 #endif
30626 /* We use char because int might match the return type of a gcc2
30627 builtin and then its argument prototype would still apply. */
30628 char XShapeQueryExtension ();
30629 int
30630 main ()
30631 {
30632 XShapeQueryExtension ();
30633 ;
30634 return 0;
30635 }
30636 _ACEOF
30637 rm -f conftest.$ac_objext conftest$ac_exeext
30638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30639 (eval $ac_link) 2>conftest.er1
30640 ac_status=$?
30641 grep -v '^ *+' conftest.er1 >conftest.err
30642 rm -f conftest.er1
30643 cat conftest.err >&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); } &&
30646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30648 (eval $ac_try) 2>&5
30649 ac_status=$?
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); }; } &&
30652 { ac_try='test -s conftest$ac_exeext'
30653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30654 (eval $ac_try) 2>&5
30655 ac_status=$?
30656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657 (exit $ac_status); }; }; then
30658 ac_cv_lib_Xext_XShapeQueryExtension=yes
30659 else
30660 echo "$as_me: failed program was:" >&5
30661 sed 's/^/| /' conftest.$ac_ext >&5
30662
30663 ac_cv_lib_Xext_XShapeQueryExtension=no
30664 fi
30665 rm -f conftest.err conftest.$ac_objext \
30666 conftest$ac_exeext conftest.$ac_ext
30667 LIBS=$ac_check_lib_save_LIBS
30668 fi
30669 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30670 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30671 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30672
30673 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30674 wxHAVE_XEXT_LIB=1
30675
30676 fi
30677
30678
30679 if test "$wxHAVE_XEXT_LIB" = 1; then
30680 save_CXXFLAGS="$CXXFLAGS"
30681 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
30682
30683 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30684 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30685 cat >conftest.$ac_ext <<_ACEOF
30686 /* confdefs.h. */
30687 _ACEOF
30688 cat confdefs.h >>conftest.$ac_ext
30689 cat >>conftest.$ac_ext <<_ACEOF
30690 /* end confdefs.h. */
30691
30692 #include <X11/Xlib.h>
30693 #include <X11/extensions/shape.h>
30694
30695 int
30696 main ()
30697 {
30698
30699 int dummy1, dummy2;
30700 XShapeQueryExtension((Display*)NULL,
30701 (int*)NULL, (int*)NULL);
30702
30703 ;
30704 return 0;
30705 }
30706 _ACEOF
30707 rm -f conftest.$ac_objext
30708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30709 (eval $ac_compile) 2>conftest.er1
30710 ac_status=$?
30711 grep -v '^ *+' conftest.er1 >conftest.err
30712 rm -f conftest.er1
30713 cat conftest.err >&5
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); } &&
30716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30718 (eval $ac_try) 2>&5
30719 ac_status=$?
30720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30721 (exit $ac_status); }; } &&
30722 { ac_try='test -s conftest.$ac_objext'
30723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30724 (eval $ac_try) 2>&5
30725 ac_status=$?
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); }; }; then
30728
30729 cat >>confdefs.h <<\_ACEOF
30730 #define HAVE_XSHAPE 1
30731 _ACEOF
30732
30733 echo "$as_me:$LINENO: result: found" >&5
30734 echo "${ECHO_T}found" >&6
30735
30736 else
30737 echo "$as_me: failed program was:" >&5
30738 sed 's/^/| /' conftest.$ac_ext >&5
30739
30740
30741 echo "$as_me:$LINENO: result: not found" >&5
30742 echo "${ECHO_T}not found" >&6
30743
30744 fi
30745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30746 CXXFLAGS="$save_CXXFLAGS"
30747
30748 fi
30749 fi
30750
30751 if test "$wxUSE_MAC" = 1; then
30752 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30753 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30754 if test "$GCC" = yes; then
30755 echo "$as_me:$LINENO: result: gcc" >&5
30756 echo "${ECHO_T}gcc" >&6
30757 CPPFLAGS_PASCAL="-fpascal-strings"
30758 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30759 echo "$as_me:$LINENO: result: xlc" >&5
30760 echo "${ECHO_T}xlc" >&6
30761 CPPFLAGS_PASCAL="-qmacpstr"
30762 else
30763 echo "$as_me:$LINENO: result: none" >&5
30764 echo "${ECHO_T}none" >&6
30765 fi
30766
30767 if test "x$wxUSE_UNIX" = "xyes"; then
30768 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
30769 else
30770 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
30771 fi
30772
30773 TOOLKIT=MAC
30774 GUIDIST=MACX_DIST
30775 WXBASEPORT="_carbon"
30776 fi
30777
30778 if test "$wxUSE_COCOA" = 1; then
30779 TOOLKIT=COCOA
30780 GUIDIST=COCOA_DIST
30781 fi
30782
30783 if test "$wxUSE_PM" = 1; then
30784 TOOLKIT=PM
30785 GUIDIST=PM_DIST
30786 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30787 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30788 if test "${wx_cv_spbcdata+set}" = set; then
30789 echo $ECHO_N "(cached) $ECHO_C" >&6
30790 else
30791
30792 cat >conftest.$ac_ext <<_ACEOF
30793 /* confdefs.h. */
30794 _ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h. */
30798
30799 #define INCL_PM
30800 #include <os2.h>
30801
30802 int
30803 main ()
30804 {
30805
30806 SPBCDATA test;
30807
30808 ;
30809 return 0;
30810 }
30811 _ACEOF
30812 rm -f conftest.$ac_objext
30813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30814 (eval $ac_compile) 2>conftest.er1
30815 ac_status=$?
30816 grep -v '^ *+' conftest.er1 >conftest.err
30817 rm -f conftest.er1
30818 cat conftest.err >&5
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); } &&
30821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30823 (eval $ac_try) 2>&5
30824 ac_status=$?
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; } &&
30827 { ac_try='test -s conftest.$ac_objext'
30828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829 (eval $ac_try) 2>&5
30830 ac_status=$?
30831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832 (exit $ac_status); }; }; then
30833 wx_cv_spbcdata=yes
30834 else
30835 echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30837
30838 wx_cv_spbcdata=no
30839
30840 fi
30841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30842
30843
30844 fi
30845 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30846 echo "${ECHO_T}$wx_cv_spbcdata" >&6
30847
30848 if test $wx_cv_spbcdata = "yes"; then
30849 cat >>confdefs.h <<\_ACEOF
30850 #define HAVE_SPBCDATA 1
30851 _ACEOF
30852
30853 fi
30854 fi
30855
30856 if test "$TOOLKIT" = "PM" ; then
30857 TOOLKIT_DIR="os2"
30858 else
30859 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30860 fi
30861
30862 if test "$wxUSE_UNIVERSAL" = "yes"; then
30863 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30864 WIDGET_SET=univ
30865 fi
30866
30867 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30868 DISTDIR="wx\$(TOOLKIT)"
30869 else
30870 USE_GUI=0
30871
30872 TOOLKIT_DIR="base"
30873
30874 if test "$USE_WIN32" = 1 ; then
30875 TOOLKIT="MSW"
30876 fi
30877
30878 GUIDIST="BASE_DIST"
30879 DISTDIR="wxBase"
30880 fi
30881
30882
30883 if test "$wxUSE_GUI" = "yes"; then
30884 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30885
30886 for ac_header in X11/Xlib.h
30887 do
30888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30890 echo "$as_me:$LINENO: checking for $ac_header" >&5
30891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30893 echo $ECHO_N "(cached) $ECHO_C" >&6
30894 fi
30895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30897 else
30898 # Is the header compilable?
30899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30901 cat >conftest.$ac_ext <<_ACEOF
30902 /* confdefs.h. */
30903 _ACEOF
30904 cat confdefs.h >>conftest.$ac_ext
30905 cat >>conftest.$ac_ext <<_ACEOF
30906 /* end confdefs.h. */
30907 $ac_includes_default
30908 #include <$ac_header>
30909 _ACEOF
30910 rm -f conftest.$ac_objext
30911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30912 (eval $ac_compile) 2>conftest.er1
30913 ac_status=$?
30914 grep -v '^ *+' conftest.er1 >conftest.err
30915 rm -f conftest.er1
30916 cat conftest.err >&5
30917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918 (exit $ac_status); } &&
30919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30921 (eval $ac_try) 2>&5
30922 ac_status=$?
30923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924 (exit $ac_status); }; } &&
30925 { ac_try='test -s conftest.$ac_objext'
30926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30927 (eval $ac_try) 2>&5
30928 ac_status=$?
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930 (exit $ac_status); }; }; then
30931 ac_header_compiler=yes
30932 else
30933 echo "$as_me: failed program was:" >&5
30934 sed 's/^/| /' conftest.$ac_ext >&5
30935
30936 ac_header_compiler=no
30937 fi
30938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30940 echo "${ECHO_T}$ac_header_compiler" >&6
30941
30942 # Is the header present?
30943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30945 cat >conftest.$ac_ext <<_ACEOF
30946 /* confdefs.h. */
30947 _ACEOF
30948 cat confdefs.h >>conftest.$ac_ext
30949 cat >>conftest.$ac_ext <<_ACEOF
30950 /* end confdefs.h. */
30951 #include <$ac_header>
30952 _ACEOF
30953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30955 ac_status=$?
30956 grep -v '^ *+' conftest.er1 >conftest.err
30957 rm -f conftest.er1
30958 cat conftest.err >&5
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); } >/dev/null; then
30961 if test -s conftest.err; then
30962 ac_cpp_err=$ac_cxx_preproc_warn_flag
30963 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
30964 else
30965 ac_cpp_err=
30966 fi
30967 else
30968 ac_cpp_err=yes
30969 fi
30970 if test -z "$ac_cpp_err"; then
30971 ac_header_preproc=yes
30972 else
30973 echo "$as_me: failed program was:" >&5
30974 sed 's/^/| /' conftest.$ac_ext >&5
30975
30976 ac_header_preproc=no
30977 fi
30978 rm -f conftest.err conftest.$ac_ext
30979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30980 echo "${ECHO_T}$ac_header_preproc" >&6
30981
30982 # So? What about this header?
30983 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
30984 yes:no: )
30985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30989 ac_header_preproc=yes
30990 ;;
30991 no:yes:* )
30992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31004 (
31005 cat <<\_ASBOX
31006 ## ----------------------------------------- ##
31007 ## Report this to wx-dev@lists.wxwidgets.org ##
31008 ## ----------------------------------------- ##
31009 _ASBOX
31010 ) |
31011 sed "s/^/$as_me: WARNING: /" >&2
31012 ;;
31013 esac
31014 echo "$as_me:$LINENO: checking for $ac_header" >&5
31015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31017 echo $ECHO_N "(cached) $ECHO_C" >&6
31018 else
31019 eval "$as_ac_Header=\$ac_header_preproc"
31020 fi
31021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31023
31024 fi
31025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31026 cat >>confdefs.h <<_ACEOF
31027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31028 _ACEOF
31029
31030 fi
31031
31032 done
31033
31034
31035 for ac_header in X11/XKBlib.h
31036 do
31037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31038 echo "$as_me:$LINENO: checking for $ac_header" >&5
31039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31041 echo $ECHO_N "(cached) $ECHO_C" >&6
31042 else
31043 cat >conftest.$ac_ext <<_ACEOF
31044 /* confdefs.h. */
31045 _ACEOF
31046 cat confdefs.h >>conftest.$ac_ext
31047 cat >>conftest.$ac_ext <<_ACEOF
31048 /* end confdefs.h. */
31049
31050 #if HAVE_X11_XLIB_H
31051 #include <X11/Xlib.h>
31052 #endif
31053
31054
31055 #include <$ac_header>
31056 _ACEOF
31057 rm -f conftest.$ac_objext
31058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31059 (eval $ac_compile) 2>conftest.er1
31060 ac_status=$?
31061 grep -v '^ *+' conftest.er1 >conftest.err
31062 rm -f conftest.er1
31063 cat conftest.err >&5
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); } &&
31066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31068 (eval $ac_try) 2>&5
31069 ac_status=$?
31070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); }; } &&
31072 { ac_try='test -s conftest.$ac_objext'
31073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31074 (eval $ac_try) 2>&5
31075 ac_status=$?
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); }; }; then
31078 eval "$as_ac_Header=yes"
31079 else
31080 echo "$as_me: failed program was:" >&5
31081 sed 's/^/| /' conftest.$ac_ext >&5
31082
31083 eval "$as_ac_Header=no"
31084 fi
31085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31086 fi
31087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31090 cat >>confdefs.h <<_ACEOF
31091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31092 _ACEOF
31093
31094 fi
31095
31096 done
31097
31098 fi
31099 fi
31100
31101
31102
31103 IODBC_C_SRC=""
31104
31105
31106 if test "$TOOLKIT" != "MSW" ; then
31107
31108 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31109
31110 if test "${ac_cv_header_sql_h+set}" = set; then
31111 echo "$as_me:$LINENO: checking for sql.h" >&5
31112 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31113 if test "${ac_cv_header_sql_h+set}" = set; then
31114 echo $ECHO_N "(cached) $ECHO_C" >&6
31115 fi
31116 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31117 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31118 else
31119 # Is the header compilable?
31120 echo "$as_me:$LINENO: checking sql.h usability" >&5
31121 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31122 cat >conftest.$ac_ext <<_ACEOF
31123 /* confdefs.h. */
31124 _ACEOF
31125 cat confdefs.h >>conftest.$ac_ext
31126 cat >>conftest.$ac_ext <<_ACEOF
31127 /* end confdefs.h. */
31128 $ac_includes_default
31129 #include <sql.h>
31130 _ACEOF
31131 rm -f conftest.$ac_objext
31132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31133 (eval $ac_compile) 2>conftest.er1
31134 ac_status=$?
31135 grep -v '^ *+' conftest.er1 >conftest.err
31136 rm -f conftest.er1
31137 cat conftest.err >&5
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); } &&
31140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31142 (eval $ac_try) 2>&5
31143 ac_status=$?
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; } &&
31146 { ac_try='test -s conftest.$ac_objext'
31147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31148 (eval $ac_try) 2>&5
31149 ac_status=$?
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); }; }; then
31152 ac_header_compiler=yes
31153 else
31154 echo "$as_me: failed program was:" >&5
31155 sed 's/^/| /' conftest.$ac_ext >&5
31156
31157 ac_header_compiler=no
31158 fi
31159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31161 echo "${ECHO_T}$ac_header_compiler" >&6
31162
31163 # Is the header present?
31164 echo "$as_me:$LINENO: checking sql.h presence" >&5
31165 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31166 cat >conftest.$ac_ext <<_ACEOF
31167 /* confdefs.h. */
31168 _ACEOF
31169 cat confdefs.h >>conftest.$ac_ext
31170 cat >>conftest.$ac_ext <<_ACEOF
31171 /* end confdefs.h. */
31172 #include <sql.h>
31173 _ACEOF
31174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31176 ac_status=$?
31177 grep -v '^ *+' conftest.er1 >conftest.err
31178 rm -f conftest.er1
31179 cat conftest.err >&5
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); } >/dev/null; then
31182 if test -s conftest.err; then
31183 ac_cpp_err=$ac_cxx_preproc_warn_flag
31184 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31185 else
31186 ac_cpp_err=
31187 fi
31188 else
31189 ac_cpp_err=yes
31190 fi
31191 if test -z "$ac_cpp_err"; then
31192 ac_header_preproc=yes
31193 else
31194 echo "$as_me: failed program was:" >&5
31195 sed 's/^/| /' conftest.$ac_ext >&5
31196
31197 ac_header_preproc=no
31198 fi
31199 rm -f conftest.err conftest.$ac_ext
31200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31201 echo "${ECHO_T}$ac_header_preproc" >&6
31202
31203 # So? What about this header?
31204 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31205 yes:no: )
31206 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31207 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31208 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31209 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31210 ac_header_preproc=yes
31211 ;;
31212 no:yes:* )
31213 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31214 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
31215 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31216 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31217 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31218 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31219 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31220 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
31221 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31222 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
31223 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31224 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
31225 (
31226 cat <<\_ASBOX
31227 ## ----------------------------------------- ##
31228 ## Report this to wx-dev@lists.wxwidgets.org ##
31229 ## ----------------------------------------- ##
31230 _ASBOX
31231 ) |
31232 sed "s/^/$as_me: WARNING: /" >&2
31233 ;;
31234 esac
31235 echo "$as_me:$LINENO: checking for sql.h" >&5
31236 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31237 if test "${ac_cv_header_sql_h+set}" = set; then
31238 echo $ECHO_N "(cached) $ECHO_C" >&6
31239 else
31240 ac_cv_header_sql_h=$ac_header_preproc
31241 fi
31242 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31243 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31244
31245 fi
31246 if test $ac_cv_header_sql_h = yes; then
31247 found_sql_h=1
31248 fi
31249
31250
31251 if test "x$found_sql_h" = "x1" ; then
31252 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31253 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31254 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31255 echo $ECHO_N "(cached) $ECHO_C" >&6
31256 else
31257 ac_check_lib_save_LIBS=$LIBS
31258 LIBS="-liodbc $LIBS"
31259 cat >conftest.$ac_ext <<_ACEOF
31260 /* confdefs.h. */
31261 _ACEOF
31262 cat confdefs.h >>conftest.$ac_ext
31263 cat >>conftest.$ac_ext <<_ACEOF
31264 /* end confdefs.h. */
31265
31266 /* Override any gcc2 internal prototype to avoid an error. */
31267 #ifdef __cplusplus
31268 extern "C"
31269 #endif
31270 /* We use char because int might match the return type of a gcc2
31271 builtin and then its argument prototype would still apply. */
31272 char SQLAllocEnv ();
31273 int
31274 main ()
31275 {
31276 SQLAllocEnv ();
31277 ;
31278 return 0;
31279 }
31280 _ACEOF
31281 rm -f conftest.$ac_objext conftest$ac_exeext
31282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31283 (eval $ac_link) 2>conftest.er1
31284 ac_status=$?
31285 grep -v '^ *+' conftest.er1 >conftest.err
31286 rm -f conftest.er1
31287 cat conftest.err >&5
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); } &&
31290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31292 (eval $ac_try) 2>&5
31293 ac_status=$?
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); }; } &&
31296 { ac_try='test -s conftest$ac_exeext'
31297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31298 (eval $ac_try) 2>&5
31299 ac_status=$?
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); }; }; then
31302 ac_cv_lib_iodbc_SQLAllocEnv=yes
31303 else
31304 echo "$as_me: failed program was:" >&5
31305 sed 's/^/| /' conftest.$ac_ext >&5
31306
31307 ac_cv_lib_iodbc_SQLAllocEnv=no
31308 fi
31309 rm -f conftest.err conftest.$ac_objext \
31310 conftest$ac_exeext conftest.$ac_ext
31311 LIBS=$ac_check_lib_save_LIBS
31312 fi
31313 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31314 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31315 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31316 ODBC_LINK=" -liodbc"
31317 else
31318
31319 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31320 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31321 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31322 echo $ECHO_N "(cached) $ECHO_C" >&6
31323 else
31324 ac_check_lib_save_LIBS=$LIBS
31325 LIBS="-lunixodbc $LIBS"
31326 cat >conftest.$ac_ext <<_ACEOF
31327 /* confdefs.h. */
31328 _ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h. */
31332
31333 /* Override any gcc2 internal prototype to avoid an error. */
31334 #ifdef __cplusplus
31335 extern "C"
31336 #endif
31337 /* We use char because int might match the return type of a gcc2
31338 builtin and then its argument prototype would still apply. */
31339 char SQLAllocEnv ();
31340 int
31341 main ()
31342 {
31343 SQLAllocEnv ();
31344 ;
31345 return 0;
31346 }
31347 _ACEOF
31348 rm -f conftest.$ac_objext conftest$ac_exeext
31349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31350 (eval $ac_link) 2>conftest.er1
31351 ac_status=$?
31352 grep -v '^ *+' conftest.er1 >conftest.err
31353 rm -f conftest.er1
31354 cat conftest.err >&5
31355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356 (exit $ac_status); } &&
31357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31359 (eval $ac_try) 2>&5
31360 ac_status=$?
31361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362 (exit $ac_status); }; } &&
31363 { ac_try='test -s conftest$ac_exeext'
31364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31365 (eval $ac_try) 2>&5
31366 ac_status=$?
31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); }; }; then
31369 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31370 else
31371 echo "$as_me: failed program was:" >&5
31372 sed 's/^/| /' conftest.$ac_ext >&5
31373
31374 ac_cv_lib_unixodbc_SQLAllocEnv=no
31375 fi
31376 rm -f conftest.err conftest.$ac_objext \
31377 conftest$ac_exeext conftest.$ac_ext
31378 LIBS=$ac_check_lib_save_LIBS
31379 fi
31380 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31381 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31382 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31383 ODBC_LINK=" -lunixodbc"
31384 else
31385
31386 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31387 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31388 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31389 echo $ECHO_N "(cached) $ECHO_C" >&6
31390 else
31391 ac_check_lib_save_LIBS=$LIBS
31392 LIBS="-lodbc $LIBS"
31393 cat >conftest.$ac_ext <<_ACEOF
31394 /* confdefs.h. */
31395 _ACEOF
31396 cat confdefs.h >>conftest.$ac_ext
31397 cat >>conftest.$ac_ext <<_ACEOF
31398 /* end confdefs.h. */
31399
31400 /* Override any gcc2 internal prototype to avoid an error. */
31401 #ifdef __cplusplus
31402 extern "C"
31403 #endif
31404 /* We use char because int might match the return type of a gcc2
31405 builtin and then its argument prototype would still apply. */
31406 char SQLAllocEnv ();
31407 int
31408 main ()
31409 {
31410 SQLAllocEnv ();
31411 ;
31412 return 0;
31413 }
31414 _ACEOF
31415 rm -f conftest.$ac_objext conftest$ac_exeext
31416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31417 (eval $ac_link) 2>conftest.er1
31418 ac_status=$?
31419 grep -v '^ *+' conftest.er1 >conftest.err
31420 rm -f conftest.er1
31421 cat conftest.err >&5
31422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); } &&
31424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31426 (eval $ac_try) 2>&5
31427 ac_status=$?
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); }; } &&
31430 { ac_try='test -s conftest$ac_exeext'
31431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31432 (eval $ac_try) 2>&5
31433 ac_status=$?
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; }; then
31436 ac_cv_lib_odbc_SQLAllocEnv=yes
31437 else
31438 echo "$as_me: failed program was:" >&5
31439 sed 's/^/| /' conftest.$ac_ext >&5
31440
31441 ac_cv_lib_odbc_SQLAllocEnv=no
31442 fi
31443 rm -f conftest.err conftest.$ac_objext \
31444 conftest$ac_exeext conftest.$ac_ext
31445 LIBS=$ac_check_lib_save_LIBS
31446 fi
31447 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31448 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31449 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31450 ODBC_LINK=" -lodbc"
31451 fi
31452
31453
31454 fi
31455
31456
31457 fi
31458
31459 fi
31460 if test "x$ODBC_LINK" = "x" ; then
31461 if test "$wxUSE_ODBC" = "sys" ; then
31462 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31463 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31464 { (exit 1); exit 1; }; }
31465 else
31466 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31467 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31468 wxUSE_ODBC=builtin
31469 fi
31470 else
31471 wxUSE_ODBC=sys
31472 fi
31473 fi
31474
31475 if test "$wxUSE_ODBC" = "builtin" ; then
31476 cat >>confdefs.h <<\_ACEOF
31477 #define wxUSE_BUILTIN_IODBC 1
31478 _ACEOF
31479
31480 fi
31481 fi
31482
31483 if test "$wxUSE_ODBC" != "no" ; then
31484 cat >>confdefs.h <<\_ACEOF
31485 #define wxUSE_ODBC 1
31486 _ACEOF
31487
31488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31489
31490 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
31491 fi
31492
31493
31494 if test "$wxUSE_DISPLAY" = "yes"; then
31495 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
31496 echo "$as_me:$LINENO: checking for Xinerama" >&5
31497 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31498
31499 ac_find_libraries=
31500 for ac_dir in $SEARCH_LIB;
31501 do
31502 for ac_extension in a so sl dylib dll.a; do
31503 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31504 ac_find_libraries=$ac_dir
31505 break 2
31506 fi
31507 done
31508 done
31509
31510 if test "$ac_find_libraries" != "" ; then
31511
31512 if test "$ac_find_libraries" = "default location"; then
31513 ac_path_to_link=""
31514 else
31515 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31516 result=$?
31517 if test $result = 0; then
31518 ac_path_to_link=""
31519 else
31520 ac_path_to_link=" -L$ac_find_libraries"
31521 fi
31522 fi
31523
31524 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31525 LDFLAGS="$LDFLAGS $ac_path_to_link"
31526 fi
31527 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31528 echo "$as_me:$LINENO: result: yes" >&5
31529 echo "${ECHO_T}yes" >&6
31530
31531 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31532 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31533
31534 ac_find_libraries=
31535 for ac_dir in $SEARCH_LIB;
31536 do
31537 for ac_extension in a so sl dylib dll.a; do
31538 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31539 ac_find_libraries=$ac_dir
31540 break 2
31541 fi
31542 done
31543 done
31544
31545 if test "$ac_find_libraries" != "" ; then
31546 echo "$as_me:$LINENO: result: yes" >&5
31547 echo "${ECHO_T}yes" >&6
31548
31549 for ac_header in X11/extensions/xf86vmode.h
31550 do
31551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31552 echo "$as_me:$LINENO: checking for $ac_header" >&5
31553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31555 echo $ECHO_N "(cached) $ECHO_C" >&6
31556 else
31557 cat >conftest.$ac_ext <<_ACEOF
31558 /* confdefs.h. */
31559 _ACEOF
31560 cat confdefs.h >>conftest.$ac_ext
31561 cat >>conftest.$ac_ext <<_ACEOF
31562 /* end confdefs.h. */
31563
31564 #if HAVE_X11_XLIB_H
31565 #include <X11/Xlib.h>
31566 #endif
31567
31568
31569 #include <$ac_header>
31570 _ACEOF
31571 rm -f conftest.$ac_objext
31572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31573 (eval $ac_compile) 2>conftest.er1
31574 ac_status=$?
31575 grep -v '^ *+' conftest.er1 >conftest.err
31576 rm -f conftest.er1
31577 cat conftest.err >&5
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); } &&
31580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31582 (eval $ac_try) 2>&5
31583 ac_status=$?
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); }; } &&
31586 { ac_try='test -s conftest.$ac_objext'
31587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31588 (eval $ac_try) 2>&5
31589 ac_status=$?
31590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591 (exit $ac_status); }; }; then
31592 eval "$as_ac_Header=yes"
31593 else
31594 echo "$as_me: failed program was:" >&5
31595 sed 's/^/| /' conftest.$ac_ext >&5
31596
31597 eval "$as_ac_Header=no"
31598 fi
31599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31600 fi
31601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31604 cat >>confdefs.h <<_ACEOF
31605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31606 _ACEOF
31607
31608 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31609
31610 fi
31611
31612 done
31613
31614 else
31615 echo "$as_me:$LINENO: result: no" >&5
31616 echo "${ECHO_T}no" >&6
31617 fi
31618
31619 else
31620 echo "$as_me:$LINENO: result: no" >&5
31621 echo "${ECHO_T}no" >&6
31622 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31623 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
31624 wxUSE_DISPLAY="no"
31625 fi
31626 elif test "$wxUSE_MSW" = 1; then
31627
31628 for ac_header in ddraw.h
31629 do
31630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31631 echo "$as_me:$LINENO: checking for $ac_header" >&5
31632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31635 else
31636 cat >conftest.$ac_ext <<_ACEOF
31637 /* confdefs.h. */
31638 _ACEOF
31639 cat confdefs.h >>conftest.$ac_ext
31640 cat >>conftest.$ac_ext <<_ACEOF
31641 /* end confdefs.h. */
31642 #include <windows.h>
31643
31644 #include <$ac_header>
31645 _ACEOF
31646 rm -f conftest.$ac_objext
31647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31648 (eval $ac_compile) 2>conftest.er1
31649 ac_status=$?
31650 grep -v '^ *+' conftest.er1 >conftest.err
31651 rm -f conftest.er1
31652 cat conftest.err >&5
31653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31654 (exit $ac_status); } &&
31655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
31661 { ac_try='test -s conftest.$ac_objext'
31662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31663 (eval $ac_try) 2>&5
31664 ac_status=$?
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); }; }; then
31667 eval "$as_ac_Header=yes"
31668 else
31669 echo "$as_me: failed program was:" >&5
31670 sed 's/^/| /' conftest.$ac_ext >&5
31671
31672 eval "$as_ac_Header=no"
31673 fi
31674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31675 fi
31676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31679 cat >>confdefs.h <<_ACEOF
31680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31681 _ACEOF
31682
31683 fi
31684
31685 done
31686
31687 fi
31688 fi
31689
31690
31691 USE_OPENGL=0
31692 if test "$wxUSE_OPENGL" = "yes"; then
31693 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31694 OPENGL_LIBS="-framework OpenGL -framework AGL"
31695 elif test "$wxUSE_MSW" = 1; then
31696 OPENGL_LIBS="-lopengl32 -lglu32"
31697 else
31698
31699
31700 ac_find_includes=
31701 for ac_dir in $SEARCH_INCLUDE /usr/include;
31702 do
31703 if test -f "$ac_dir/GL/gl.h"; then
31704 ac_find_includes=$ac_dir
31705 break
31706 fi
31707 done
31708
31709 if test "$ac_find_includes" != "" ; then
31710 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31711 echo "${ECHO_T}found in $ac_find_includes" >&6
31712
31713 if test "x$ac_find_includes" = "x/usr/include"; then
31714 ac_path_to_include=""
31715 else
31716 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31717 result=$?
31718 if test $result = 0; then
31719 ac_path_to_include=""
31720 else
31721 ac_path_to_include=" -I$ac_find_includes"
31722 fi
31723 fi
31724
31725 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
31726 fi
31727
31728 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31729 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31730 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31731 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31732 echo $ECHO_N "(cached) $ECHO_C" >&6
31733 fi
31734 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31735 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31736 else
31737 # Is the header compilable?
31738 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31739 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31740 cat >conftest.$ac_ext <<_ACEOF
31741 /* confdefs.h. */
31742 _ACEOF
31743 cat confdefs.h >>conftest.$ac_ext
31744 cat >>conftest.$ac_ext <<_ACEOF
31745 /* end confdefs.h. */
31746 $ac_includes_default
31747 #include <GL/gl.h>
31748 _ACEOF
31749 rm -f conftest.$ac_objext
31750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31751 (eval $ac_compile) 2>conftest.er1
31752 ac_status=$?
31753 grep -v '^ *+' conftest.er1 >conftest.err
31754 rm -f conftest.er1
31755 cat conftest.err >&5
31756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31757 (exit $ac_status); } &&
31758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31760 (eval $ac_try) 2>&5
31761 ac_status=$?
31762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763 (exit $ac_status); }; } &&
31764 { ac_try='test -s conftest.$ac_objext'
31765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31766 (eval $ac_try) 2>&5
31767 ac_status=$?
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); }; }; then
31770 ac_header_compiler=yes
31771 else
31772 echo "$as_me: failed program was:" >&5
31773 sed 's/^/| /' conftest.$ac_ext >&5
31774
31775 ac_header_compiler=no
31776 fi
31777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31779 echo "${ECHO_T}$ac_header_compiler" >&6
31780
31781 # Is the header present?
31782 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31783 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31784 cat >conftest.$ac_ext <<_ACEOF
31785 /* confdefs.h. */
31786 _ACEOF
31787 cat confdefs.h >>conftest.$ac_ext
31788 cat >>conftest.$ac_ext <<_ACEOF
31789 /* end confdefs.h. */
31790 #include <GL/gl.h>
31791 _ACEOF
31792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31794 ac_status=$?
31795 grep -v '^ *+' conftest.er1 >conftest.err
31796 rm -f conftest.er1
31797 cat conftest.err >&5
31798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799 (exit $ac_status); } >/dev/null; then
31800 if test -s conftest.err; then
31801 ac_cpp_err=$ac_cxx_preproc_warn_flag
31802 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31803 else
31804 ac_cpp_err=
31805 fi
31806 else
31807 ac_cpp_err=yes
31808 fi
31809 if test -z "$ac_cpp_err"; then
31810 ac_header_preproc=yes
31811 else
31812 echo "$as_me: failed program was:" >&5
31813 sed 's/^/| /' conftest.$ac_ext >&5
31814
31815 ac_header_preproc=no
31816 fi
31817 rm -f conftest.err conftest.$ac_ext
31818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31819 echo "${ECHO_T}$ac_header_preproc" >&6
31820
31821 # So? What about this header?
31822 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31823 yes:no: )
31824 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31825 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31826 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31827 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31828 ac_header_preproc=yes
31829 ;;
31830 no:yes:* )
31831 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31832 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
31833 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31834 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31835 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31836 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31837 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31838 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
31839 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31840 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
31841 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31842 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
31843 (
31844 cat <<\_ASBOX
31845 ## ----------------------------------------- ##
31846 ## Report this to wx-dev@lists.wxwidgets.org ##
31847 ## ----------------------------------------- ##
31848 _ASBOX
31849 ) |
31850 sed "s/^/$as_me: WARNING: /" >&2
31851 ;;
31852 esac
31853 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31854 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31855 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31856 echo $ECHO_N "(cached) $ECHO_C" >&6
31857 else
31858 ac_cv_header_GL_gl_h=$ac_header_preproc
31859 fi
31860 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31861 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31862
31863 fi
31864 if test $ac_cv_header_GL_gl_h = yes; then
31865
31866 found_gl=0
31867
31868 echo "$as_me:$LINENO: checking for -lGL" >&5
31869 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31870
31871 ac_find_libraries=
31872 for ac_dir in $SEARCH_LIB;
31873 do
31874 for ac_extension in a so sl dylib dll.a; do
31875 if test -f "$ac_dir/libGL.$ac_extension"; then
31876 ac_find_libraries=$ac_dir
31877 break 2
31878 fi
31879 done
31880 done
31881
31882 if test "$ac_find_libraries" != "" ; then
31883 echo "$as_me:$LINENO: result: yes" >&5
31884 echo "${ECHO_T}yes" >&6
31885
31886
31887 if test "$ac_find_libraries" = "default location"; then
31888 ac_path_to_link=""
31889 else
31890 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31891 result=$?
31892 if test $result = 0; then
31893 ac_path_to_link=""
31894 else
31895 ac_path_to_link=" -L$ac_find_libraries"
31896 fi
31897 fi
31898
31899 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31900 LDFLAGS_GL="$ac_path_to_link"
31901 fi
31902
31903 echo "$as_me:$LINENO: checking for -lGLU" >&5
31904 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
31905
31906 ac_find_libraries=
31907 for ac_dir in $SEARCH_LIB;
31908 do
31909 for ac_extension in a so sl dylib dll.a; do
31910 if test -f "$ac_dir/libGLU.$ac_extension"; then
31911 ac_find_libraries=$ac_dir
31912 break 2
31913 fi
31914 done
31915 done
31916
31917 if test "$ac_find_libraries" != "" ; then
31918
31919 if test "$ac_find_libraries" = "default location"; then
31920 ac_path_to_link=""
31921 else
31922 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31923 result=$?
31924 if test $result = 0; then
31925 ac_path_to_link=""
31926 else
31927 ac_path_to_link=" -L$ac_find_libraries"
31928 fi
31929 fi
31930
31931 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31932 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31933 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31934 fi
31935
31936 found_gl=1
31937 OPENGL_LIBS="-lGL -lGLU"
31938 echo "$as_me:$LINENO: result: yes" >&5
31939 echo "${ECHO_T}yes" >&6
31940 else
31941 echo "$as_me:$LINENO: result: no" >&5
31942 echo "${ECHO_T}no" >&6
31943 fi
31944 else
31945 echo "$as_me:$LINENO: result: no" >&5
31946 echo "${ECHO_T}no" >&6
31947 fi
31948
31949 if test "$found_gl" != 1; then
31950 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31951 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31952
31953 ac_find_libraries=
31954 for ac_dir in $SEARCH_LIB;
31955 do
31956 for ac_extension in a so sl dylib dll.a; do
31957 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31958 ac_find_libraries=$ac_dir
31959 break 2
31960 fi
31961 done
31962 done
31963
31964 if test "$ac_find_libraries" != "" ; then
31965
31966 if test "$ac_find_libraries" = "default location"; then
31967 ac_path_to_link=""
31968 else
31969 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31970 result=$?
31971 if test $result = 0; then
31972 ac_path_to_link=""
31973 else
31974 ac_path_to_link=" -L$ac_find_libraries"
31975 fi
31976 fi
31977
31978 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31979 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31980 echo "$as_me:$LINENO: result: yes" >&5
31981 echo "${ECHO_T}yes" >&6
31982 else
31983 echo "$as_me:$LINENO: result: no" >&5
31984 echo "${ECHO_T}no" >&6
31985 fi
31986 fi
31987
31988 fi
31989
31990
31991
31992 if test "x$OPENGL_LIBS" = "x"; then
31993 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31994 echo "$as_me: error: OpenGL libraries not available" >&2;}
31995 { (exit 1); exit 1; }; }
31996 fi
31997 fi
31998
31999 if test "$wxUSE_OPENGL" = "yes"; then
32000 USE_OPENGL=1
32001 cat >>confdefs.h <<\_ACEOF
32002 #define wxUSE_OPENGL 1
32003 _ACEOF
32004
32005 cat >>confdefs.h <<\_ACEOF
32006 #define wxUSE_GLCANVAS 1
32007 _ACEOF
32008
32009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32010 fi
32011 fi
32012
32013
32014 if test -n "$TOOLKIT" ; then
32015 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32016 fi
32017
32018
32019
32020 if test "$wxUSE_SHARED" = "yes"; then
32021 case "${host}" in
32022 *-pc-msdosdjgpp )
32023 wxUSE_SHARED=no
32024 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32025 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32026 ;;
32027 esac
32028 fi
32029
32030 if test "$wxUSE_SHARED" = "yes"; then
32031
32032
32033 found_versioning=no
32034
32035
32036 if test $found_versioning = no ; then
32037 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32038 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32039 if test "${wx_cv_version_script+set}" = set; then
32040 echo $ECHO_N "(cached) $ECHO_C" >&6
32041 else
32042
32043 echo "VER_1 { *; };" >conftest.sym
32044 echo "int main() { return 0; }" >conftest.cpp
32045
32046 if { ac_try='
32047 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32048 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32050 (eval $ac_try) 2>&5
32051 ac_status=$?
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; } ; then
32054 if test -s conftest.stderr ; then
32055 wx_cv_version_script=no
32056 else
32057 wx_cv_version_script=yes
32058 fi
32059 else
32060 wx_cv_version_script=no
32061 fi
32062
32063 if test $wx_cv_version_script = yes
32064 then
32065 echo "struct B { virtual ~B() { } }; \
32066 struct D : public B { }; \
32067 void F() { D d; }" > conftest.cpp
32068
32069 if { ac_try='
32070 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32071 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32073 (eval $ac_try) 2>&5
32074 ac_status=$?
32075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076 (exit $ac_status); }; } &&
32077 { ac_try='
32078 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32079 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32081 (eval $ac_try) 2>&5
32082 ac_status=$?
32083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 (exit $ac_status); }; }
32085 then
32086 if { ac_try='
32087 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32088 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32090 (eval $ac_try) 2>&5
32091 ac_status=$?
32092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32093 (exit $ac_status); }; }
32094 then
32095 wx_cv_version_script=yes
32096 else
32097 wx_cv_version_script=no
32098 fi
32099 fi
32100 fi
32101
32102 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
32103 rm -f conftest1.output conftest2.output conftest3.output
32104
32105 fi
32106 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32107 echo "${ECHO_T}$wx_cv_version_script" >&6
32108 if test $wx_cv_version_script = yes ; then
32109 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32110 fi
32111 fi
32112
32113
32114 case "${host}" in
32115 *-*-linux* | *-*-gnu* )
32116 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
32117 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
32118 ;;
32119
32120 *-*-solaris2* )
32121 if test "$GCC" = yes ; then
32122 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
32123
32124 saveLdflags="$LDFLAGS"
32125 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32126 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32127 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32128 cat >conftest.$ac_ext <<_ACEOF
32129 /* confdefs.h. */
32130 _ACEOF
32131 cat confdefs.h >>conftest.$ac_ext
32132 cat >>conftest.$ac_ext <<_ACEOF
32133 /* end confdefs.h. */
32134
32135 int
32136 main ()
32137 {
32138
32139 ;
32140 return 0;
32141 }
32142 _ACEOF
32143 rm -f conftest.$ac_objext conftest$ac_exeext
32144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32145 (eval $ac_link) 2>conftest.er1
32146 ac_status=$?
32147 grep -v '^ *+' conftest.er1 >conftest.err
32148 rm -f conftest.er1
32149 cat conftest.err >&5
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); } &&
32152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32154 (eval $ac_try) 2>&5
32155 ac_status=$?
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; } &&
32158 { ac_try='test -s conftest$ac_exeext'
32159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32160 (eval $ac_try) 2>&5
32161 ac_status=$?
32162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163 (exit $ac_status); }; }; then
32164
32165 echo "$as_me:$LINENO: result: yes" >&5
32166 echo "${ECHO_T}yes" >&6
32167 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
32168 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
32169
32170 else
32171 echo "$as_me: failed program was:" >&5
32172 sed 's/^/| /' conftest.$ac_ext >&5
32173
32174
32175 echo "$as_me:$LINENO: result: no" >&5
32176 echo "${ECHO_T}no" >&6
32177 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32178 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32179 LDFLAGS="$saveLdflags -Wl,-R,/"
32180 cat >conftest.$ac_ext <<_ACEOF
32181 /* confdefs.h. */
32182 _ACEOF
32183 cat confdefs.h >>conftest.$ac_ext
32184 cat >>conftest.$ac_ext <<_ACEOF
32185 /* end confdefs.h. */
32186
32187 int
32188 main ()
32189 {
32190
32191 ;
32192 return 0;
32193 }
32194 _ACEOF
32195 rm -f conftest.$ac_objext conftest$ac_exeext
32196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32197 (eval $ac_link) 2>conftest.er1
32198 ac_status=$?
32199 grep -v '^ *+' conftest.er1 >conftest.err
32200 rm -f conftest.er1
32201 cat conftest.err >&5
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); } &&
32204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32206 (eval $ac_try) 2>&5
32207 ac_status=$?
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); }; } &&
32210 { ac_try='test -s conftest$ac_exeext'
32211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32212 (eval $ac_try) 2>&5
32213 ac_status=$?
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); }; }; then
32216
32217 echo "$as_me:$LINENO: result: yes" >&5
32218 echo "${ECHO_T}yes" >&6
32219 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32220 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32221
32222 else
32223 echo "$as_me: failed program was:" >&5
32224 sed 's/^/| /' conftest.$ac_ext >&5
32225
32226
32227 echo "$as_me:$LINENO: result: no" >&5
32228 echo "${ECHO_T}no" >&6
32229
32230 fi
32231 rm -f conftest.err conftest.$ac_objext \
32232 conftest$ac_exeext conftest.$ac_ext
32233
32234 fi
32235 rm -f conftest.err conftest.$ac_objext \
32236 conftest$ac_exeext conftest.$ac_ext
32237 LDFLAGS="$saveLdflags"
32238 else
32239 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
32240 WXCONFIG_RPATH="-R\$libdir"
32241 fi
32242 ;;
32243
32244 *-*-darwin* )
32245 install_name_tool=`which install_name_tool`
32246 if test "$install_name_tool" -a -x "$install_name_tool"; then
32247 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32248 cat <<EOF >change-install-names
32249 #!/bin/sh
32250 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32251 inst_cmd="install_name_tool "
32252 for i in \${libnames} ; do
32253 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32254 done
32255 \${inst_cmd} \${3}
32256 EOF
32257 chmod +x change-install-names
32258 fi
32259 ;;
32260
32261 *-*-cygwin* | *-*-mingw32* )
32262 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32263 ;;
32264
32265 *-*-hpux* )
32266 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32267 WXCONFIG_RPATH="-Wl,+b,\$libdir"
32268 ;;
32269
32270 esac
32271
32272 if test $wxUSE_RPATH = "no"; then
32273 SAMPLES_RPATH_FLAG=''
32274 SAMPLES_RPATH_POSTLINK=''
32275 WXCONFIG_RPATH=''
32276 fi
32277
32278 SHARED=1
32279
32280 else
32281
32282 config_linkage_component="-static"
32283 SHARED=0
32284
32285 fi
32286
32287
32288 UNICODE=0
32289 lib_unicode_suffix=
32290 WX_CHARTYPE="ansi"
32291 if test "$wxUSE_UNICODE" = "yes"; then
32292 lib_unicode_suffix=u
32293 WX_CHARTYPE="unicode"
32294 UNICODE=1
32295 fi
32296
32297 lib_debug_suffix=
32298 WX_DEBUGTYPE="release"
32299 DEBUG_FLAG=0
32300 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32301 lib_debug_suffix=d
32302 WX_DEBUGTYPE="debug"
32303 DEBUG_FLAG=1
32304 fi
32305
32306 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32307 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
32308
32309 DEBUG_INFO=0
32310 if test "$wxUSE_DEBUG_INFO" = "yes"; then
32311 DEBUG_INFO=1
32312 fi
32313
32314 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
32315
32316 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
32317
32318 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
32319
32320 if test "$cross_compiling" = "yes"; then
32321 HOST_SUFFIX="-$host_alias"
32322 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32323 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
32324 fi
32325
32326 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32327 if test "${TOOLKIT_DIR}" = "os2"; then
32328 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32329 else
32330 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32331 fi
32332
32333
32334
32335 if test "$wxUSE_COCOA" = 1; then
32336
32337
32338 ac_ext=c
32339 ac_cpp='$CPP $CPPFLAGS'
32340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32343
32344 ac_ext=m
32345
32346 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32347 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32348 cat >conftest.$ac_ext <<_ACEOF
32349 /* confdefs.h. */
32350 _ACEOF
32351 cat confdefs.h >>conftest.$ac_ext
32352 cat >>conftest.$ac_ext <<_ACEOF
32353 /* end confdefs.h. */
32354 #include <AppKit/NSEvent.h>
32355 #include <CoreFoundation/CoreFoundation.h>
32356
32357 int
32358 main ()
32359 {
32360
32361 ;
32362 return 0;
32363 }
32364 _ACEOF
32365 rm -f conftest.$ac_objext
32366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32367 (eval $ac_compile) 2>conftest.er1
32368 ac_status=$?
32369 grep -v '^ *+' conftest.er1 >conftest.err
32370 rm -f conftest.er1
32371 cat conftest.err >&5
32372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373 (exit $ac_status); } &&
32374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32376 (eval $ac_try) 2>&5
32377 ac_status=$?
32378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379 (exit $ac_status); }; } &&
32380 { ac_try='test -s conftest.$ac_objext'
32381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32382 (eval $ac_try) 2>&5
32383 ac_status=$?
32384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32385 (exit $ac_status); }; }; then
32386 echo "$as_me:$LINENO: result: no" >&5
32387 echo "${ECHO_T}no" >&6
32388 else
32389 echo "$as_me: failed program was:" >&5
32390 sed 's/^/| /' conftest.$ac_ext >&5
32391
32392 echo "$as_me:$LINENO: result: yes" >&5
32393 echo "${ECHO_T}yes" >&6
32394 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32395 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32396 cat >conftest.$ac_ext <<_ACEOF
32397 /* confdefs.h. */
32398 _ACEOF
32399 cat confdefs.h >>conftest.$ac_ext
32400 cat >>conftest.$ac_ext <<_ACEOF
32401 /* end confdefs.h. */
32402 #define __Point__ 1
32403 #include <AppKit/NSEvent.h>
32404 #include <CoreFoundation/CoreFoundation.h>
32405
32406 int
32407 main ()
32408 {
32409
32410 ;
32411 return 0;
32412 }
32413 _ACEOF
32414 rm -f conftest.$ac_objext
32415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32416 (eval $ac_compile) 2>conftest.er1
32417 ac_status=$?
32418 grep -v '^ *+' conftest.er1 >conftest.err
32419 rm -f conftest.er1
32420 cat conftest.err >&5
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); } &&
32423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32425 (eval $ac_try) 2>&5
32426 ac_status=$?
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); }; } &&
32429 { ac_try='test -s conftest.$ac_objext'
32430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32431 (eval $ac_try) 2>&5
32432 ac_status=$?
32433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434 (exit $ac_status); }; }; then
32435 echo "$as_me:$LINENO: result: yes" >&5
32436 echo "${ECHO_T}yes" >&6
32437 cat >>confdefs.h <<\_ACEOF
32438 #define __Point__ 1
32439 _ACEOF
32440
32441
32442 else
32443 echo "$as_me: failed program was:" >&5
32444 sed 's/^/| /' conftest.$ac_ext >&5
32445
32446 { { echo "$as_me:$LINENO: error: no
32447 See \`config.log' for more details." >&5
32448 echo "$as_me: error: no
32449 See \`config.log' for more details." >&2;}
32450 { (exit 1); exit 1; }; }
32451
32452 fi
32453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32454
32455 fi
32456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32457 ac_ext=cc
32458 ac_cpp='$CXXCPP $CPPFLAGS'
32459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32462
32463 fi
32464
32465 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
32466 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32467 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
32468
32469 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
32470
32471 # Extract the first word of "Rez", so it can be a program name with args.
32472 set dummy Rez; ac_word=$2
32473 echo "$as_me:$LINENO: checking for $ac_word" >&5
32474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32475 if test "${ac_cv_prog_REZ+set}" = set; then
32476 echo $ECHO_N "(cached) $ECHO_C" >&6
32477 else
32478 if test -n "$REZ"; then
32479 ac_cv_prog_REZ="$REZ" # Let the user override the test.
32480 else
32481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32482 for as_dir in $PATH
32483 do
32484 IFS=$as_save_IFS
32485 test -z "$as_dir" && as_dir=.
32486 for ac_exec_ext in '' $ac_executable_extensions; do
32487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32488 ac_cv_prog_REZ="Rez"
32489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32490 break 2
32491 fi
32492 done
32493 done
32494
32495 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
32496 fi
32497 fi
32498 REZ=$ac_cv_prog_REZ
32499 if test -n "$REZ"; then
32500 echo "$as_me:$LINENO: result: $REZ" >&5
32501 echo "${ECHO_T}$REZ" >&6
32502 else
32503 echo "$as_me:$LINENO: result: no" >&5
32504 echo "${ECHO_T}no" >&6
32505 fi
32506
32507 # Extract the first word of "DeRez", so it can be a program name with args.
32508 set dummy DeRez; ac_word=$2
32509 echo "$as_me:$LINENO: checking for $ac_word" >&5
32510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32511 if test "${ac_cv_prog_DEREZ+set}" = set; then
32512 echo $ECHO_N "(cached) $ECHO_C" >&6
32513 else
32514 if test -n "$DEREZ"; then
32515 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32516 else
32517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32518 for as_dir in $PATH
32519 do
32520 IFS=$as_save_IFS
32521 test -z "$as_dir" && as_dir=.
32522 for ac_exec_ext in '' $ac_executable_extensions; do
32523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32524 ac_cv_prog_DEREZ="DeRez"
32525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32526 break 2
32527 fi
32528 done
32529 done
32530
32531 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32532 fi
32533 fi
32534 DEREZ=$ac_cv_prog_DEREZ
32535 if test -n "$DEREZ"; then
32536 echo "$as_me:$LINENO: result: $DEREZ" >&5
32537 echo "${ECHO_T}$DEREZ" >&6
32538 else
32539 echo "$as_me:$LINENO: result: no" >&5
32540 echo "${ECHO_T}no" >&6
32541 fi
32542
32543 # Extract the first word of "SetFile", so it can be a program name with args.
32544 set dummy SetFile; ac_word=$2
32545 echo "$as_me:$LINENO: checking for $ac_word" >&5
32546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32547 if test "${ac_cv_prog_SETFILE+set}" = set; then
32548 echo $ECHO_N "(cached) $ECHO_C" >&6
32549 else
32550 if test -n "$SETFILE"; then
32551 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32552 else
32553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32554 for as_dir in $PATH
32555 do
32556 IFS=$as_save_IFS
32557 test -z "$as_dir" && as_dir=.
32558 for ac_exec_ext in '' $ac_executable_extensions; do
32559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32560 ac_cv_prog_SETFILE="SetFile"
32561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32562 break 2
32563 fi
32564 done
32565 done
32566
32567 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32568 fi
32569 fi
32570 SETFILE=$ac_cv_prog_SETFILE
32571 if test -n "$SETFILE"; then
32572 echo "$as_me:$LINENO: result: $SETFILE" >&5
32573 echo "${ECHO_T}$SETFILE" >&6
32574 else
32575 echo "$as_me:$LINENO: result: no" >&5
32576 echo "${ECHO_T}no" >&6
32577 fi
32578
32579
32580 MACSETFILE="\$(SETFILE)"
32581
32582 if test "$wxUSE_MAC" = 1; then
32583 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
32584 RESCOMP="$REZ"
32585 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
32586 else
32587 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32588 RESCOMP="echo -n \| $REZ"
32589 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
32590 fi
32591
32592 else
32593 MACSETFILE="@true"
32594
32595 if test "$wxUSE_PM" = 1; then
32596 RESCOMP="emxbind"
32597 WXCONFIG_RESFLAGS="-ep"
32598
32599 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
32600 else
32601 POSTLINK_COMMAND="@true"
32602 fi
32603
32604 fi
32605
32606
32607
32608 echo "$as_me:$LINENO: checking for mode_t" >&5
32609 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32610 if test "${ac_cv_type_mode_t+set}" = set; then
32611 echo $ECHO_N "(cached) $ECHO_C" >&6
32612 else
32613 cat >conftest.$ac_ext <<_ACEOF
32614 /* confdefs.h. */
32615 _ACEOF
32616 cat confdefs.h >>conftest.$ac_ext
32617 cat >>conftest.$ac_ext <<_ACEOF
32618 /* end confdefs.h. */
32619 $ac_includes_default
32620 int
32621 main ()
32622 {
32623 if ((mode_t *) 0)
32624 return 0;
32625 if (sizeof (mode_t))
32626 return 0;
32627 ;
32628 return 0;
32629 }
32630 _ACEOF
32631 rm -f conftest.$ac_objext
32632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32633 (eval $ac_compile) 2>conftest.er1
32634 ac_status=$?
32635 grep -v '^ *+' conftest.er1 >conftest.err
32636 rm -f conftest.er1
32637 cat conftest.err >&5
32638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639 (exit $ac_status); } &&
32640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32642 (eval $ac_try) 2>&5
32643 ac_status=$?
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; } &&
32646 { ac_try='test -s conftest.$ac_objext'
32647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32648 (eval $ac_try) 2>&5
32649 ac_status=$?
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); }; }; then
32652 ac_cv_type_mode_t=yes
32653 else
32654 echo "$as_me: failed program was:" >&5
32655 sed 's/^/| /' conftest.$ac_ext >&5
32656
32657 ac_cv_type_mode_t=no
32658 fi
32659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32660 fi
32661 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32662 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32663 if test $ac_cv_type_mode_t = yes; then
32664 :
32665 else
32666
32667 cat >>confdefs.h <<_ACEOF
32668 #define mode_t int
32669 _ACEOF
32670
32671 fi
32672
32673 echo "$as_me:$LINENO: checking for off_t" >&5
32674 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32675 if test "${ac_cv_type_off_t+set}" = set; then
32676 echo $ECHO_N "(cached) $ECHO_C" >&6
32677 else
32678 cat >conftest.$ac_ext <<_ACEOF
32679 /* confdefs.h. */
32680 _ACEOF
32681 cat confdefs.h >>conftest.$ac_ext
32682 cat >>conftest.$ac_ext <<_ACEOF
32683 /* end confdefs.h. */
32684 $ac_includes_default
32685 int
32686 main ()
32687 {
32688 if ((off_t *) 0)
32689 return 0;
32690 if (sizeof (off_t))
32691 return 0;
32692 ;
32693 return 0;
32694 }
32695 _ACEOF
32696 rm -f conftest.$ac_objext
32697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32698 (eval $ac_compile) 2>conftest.er1
32699 ac_status=$?
32700 grep -v '^ *+' conftest.er1 >conftest.err
32701 rm -f conftest.er1
32702 cat conftest.err >&5
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); } &&
32705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32707 (eval $ac_try) 2>&5
32708 ac_status=$?
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); }; } &&
32711 { ac_try='test -s conftest.$ac_objext'
32712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32713 (eval $ac_try) 2>&5
32714 ac_status=$?
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); }; }; then
32717 ac_cv_type_off_t=yes
32718 else
32719 echo "$as_me: failed program was:" >&5
32720 sed 's/^/| /' conftest.$ac_ext >&5
32721
32722 ac_cv_type_off_t=no
32723 fi
32724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32725 fi
32726 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32727 echo "${ECHO_T}$ac_cv_type_off_t" >&6
32728 if test $ac_cv_type_off_t = yes; then
32729 :
32730 else
32731
32732 cat >>confdefs.h <<_ACEOF
32733 #define off_t long
32734 _ACEOF
32735
32736 fi
32737
32738 echo "$as_me:$LINENO: checking for pid_t" >&5
32739 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32740 if test "${ac_cv_type_pid_t+set}" = set; then
32741 echo $ECHO_N "(cached) $ECHO_C" >&6
32742 else
32743 cat >conftest.$ac_ext <<_ACEOF
32744 /* confdefs.h. */
32745 _ACEOF
32746 cat confdefs.h >>conftest.$ac_ext
32747 cat >>conftest.$ac_ext <<_ACEOF
32748 /* end confdefs.h. */
32749 $ac_includes_default
32750 int
32751 main ()
32752 {
32753 if ((pid_t *) 0)
32754 return 0;
32755 if (sizeof (pid_t))
32756 return 0;
32757 ;
32758 return 0;
32759 }
32760 _ACEOF
32761 rm -f conftest.$ac_objext
32762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32763 (eval $ac_compile) 2>conftest.er1
32764 ac_status=$?
32765 grep -v '^ *+' conftest.er1 >conftest.err
32766 rm -f conftest.er1
32767 cat conftest.err >&5
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); } &&
32770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772 (eval $ac_try) 2>&5
32773 ac_status=$?
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; } &&
32776 { ac_try='test -s conftest.$ac_objext'
32777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778 (eval $ac_try) 2>&5
32779 ac_status=$?
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; }; then
32782 ac_cv_type_pid_t=yes
32783 else
32784 echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32786
32787 ac_cv_type_pid_t=no
32788 fi
32789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32790 fi
32791 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32792 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32793 if test $ac_cv_type_pid_t = yes; then
32794 :
32795 else
32796
32797 cat >>confdefs.h <<_ACEOF
32798 #define pid_t int
32799 _ACEOF
32800
32801 fi
32802
32803 echo "$as_me:$LINENO: checking for size_t" >&5
32804 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32805 if test "${ac_cv_type_size_t+set}" = set; then
32806 echo $ECHO_N "(cached) $ECHO_C" >&6
32807 else
32808 cat >conftest.$ac_ext <<_ACEOF
32809 /* confdefs.h. */
32810 _ACEOF
32811 cat confdefs.h >>conftest.$ac_ext
32812 cat >>conftest.$ac_ext <<_ACEOF
32813 /* end confdefs.h. */
32814 $ac_includes_default
32815 int
32816 main ()
32817 {
32818 if ((size_t *) 0)
32819 return 0;
32820 if (sizeof (size_t))
32821 return 0;
32822 ;
32823 return 0;
32824 }
32825 _ACEOF
32826 rm -f conftest.$ac_objext
32827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32828 (eval $ac_compile) 2>conftest.er1
32829 ac_status=$?
32830 grep -v '^ *+' conftest.er1 >conftest.err
32831 rm -f conftest.er1
32832 cat conftest.err >&5
32833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834 (exit $ac_status); } &&
32835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32837 (eval $ac_try) 2>&5
32838 ac_status=$?
32839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); }; } &&
32841 { ac_try='test -s conftest.$ac_objext'
32842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32843 (eval $ac_try) 2>&5
32844 ac_status=$?
32845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846 (exit $ac_status); }; }; then
32847 ac_cv_type_size_t=yes
32848 else
32849 echo "$as_me: failed program was:" >&5
32850 sed 's/^/| /' conftest.$ac_ext >&5
32851
32852 ac_cv_type_size_t=no
32853 fi
32854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32855 fi
32856 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32857 echo "${ECHO_T}$ac_cv_type_size_t" >&6
32858 if test $ac_cv_type_size_t = yes; then
32859 :
32860 else
32861
32862 cat >>confdefs.h <<_ACEOF
32863 #define size_t unsigned
32864 _ACEOF
32865
32866 fi
32867
32868 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32869 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32870 if test "${ac_cv_type_uid_t+set}" = set; then
32871 echo $ECHO_N "(cached) $ECHO_C" >&6
32872 else
32873 cat >conftest.$ac_ext <<_ACEOF
32874 /* confdefs.h. */
32875 _ACEOF
32876 cat confdefs.h >>conftest.$ac_ext
32877 cat >>conftest.$ac_ext <<_ACEOF
32878 /* end confdefs.h. */
32879 #include <sys/types.h>
32880
32881 _ACEOF
32882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32883 $EGREP "uid_t" >/dev/null 2>&1; then
32884 ac_cv_type_uid_t=yes
32885 else
32886 ac_cv_type_uid_t=no
32887 fi
32888 rm -f conftest*
32889
32890 fi
32891 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32892 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32893 if test $ac_cv_type_uid_t = no; then
32894
32895 cat >>confdefs.h <<\_ACEOF
32896 #define uid_t int
32897 _ACEOF
32898
32899
32900 cat >>confdefs.h <<\_ACEOF
32901 #define gid_t int
32902 _ACEOF
32903
32904 fi
32905
32906
32907 echo "$as_me:$LINENO: checking for ssize_t" >&5
32908 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32909 if test "${ac_cv_type_ssize_t+set}" = set; then
32910 echo $ECHO_N "(cached) $ECHO_C" >&6
32911 else
32912 cat >conftest.$ac_ext <<_ACEOF
32913 /* confdefs.h. */
32914 _ACEOF
32915 cat confdefs.h >>conftest.$ac_ext
32916 cat >>conftest.$ac_ext <<_ACEOF
32917 /* end confdefs.h. */
32918 $ac_includes_default
32919 int
32920 main ()
32921 {
32922 if ((ssize_t *) 0)
32923 return 0;
32924 if (sizeof (ssize_t))
32925 return 0;
32926 ;
32927 return 0;
32928 }
32929 _ACEOF
32930 rm -f conftest.$ac_objext
32931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32932 (eval $ac_compile) 2>conftest.er1
32933 ac_status=$?
32934 grep -v '^ *+' conftest.er1 >conftest.err
32935 rm -f conftest.er1
32936 cat conftest.err >&5
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); } &&
32939 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32941 (eval $ac_try) 2>&5
32942 ac_status=$?
32943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944 (exit $ac_status); }; } &&
32945 { ac_try='test -s conftest.$ac_objext'
32946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32947 (eval $ac_try) 2>&5
32948 ac_status=$?
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; }; then
32951 ac_cv_type_ssize_t=yes
32952 else
32953 echo "$as_me: failed program was:" >&5
32954 sed 's/^/| /' conftest.$ac_ext >&5
32955
32956 ac_cv_type_ssize_t=no
32957 fi
32958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32959 fi
32960 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32961 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32962 if test $ac_cv_type_ssize_t = yes; then
32963
32964 cat >>confdefs.h <<_ACEOF
32965 #define HAVE_SSIZE_T 1
32966 _ACEOF
32967
32968
32969 fi
32970
32971
32972 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32973 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32974 if test "${wx_cv_size_t_is_uint+set}" = set; then
32975 echo $ECHO_N "(cached) $ECHO_C" >&6
32976 else
32977
32978 cat >conftest.$ac_ext <<_ACEOF
32979 /* confdefs.h. */
32980 _ACEOF
32981 cat confdefs.h >>conftest.$ac_ext
32982 cat >>conftest.$ac_ext <<_ACEOF
32983 /* end confdefs.h. */
32984 #include <stddef.h>
32985 int
32986 main ()
32987 {
32988
32989 return 0; }
32990
32991 struct Foo { void foo(size_t); void foo(unsigned int); };
32992
32993 int bar() {
32994
32995 ;
32996 return 0;
32997 }
32998 _ACEOF
32999 rm -f conftest.$ac_objext
33000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33001 (eval $ac_compile) 2>conftest.er1
33002 ac_status=$?
33003 grep -v '^ *+' conftest.er1 >conftest.err
33004 rm -f conftest.er1
33005 cat conftest.err >&5
33006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007 (exit $ac_status); } &&
33008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33010 (eval $ac_try) 2>&5
33011 ac_status=$?
33012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013 (exit $ac_status); }; } &&
33014 { ac_try='test -s conftest.$ac_objext'
33015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016 (eval $ac_try) 2>&5
33017 ac_status=$?
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); }; }; then
33020 wx_cv_size_t_is_uint=no
33021 else
33022 echo "$as_me: failed program was:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33024
33025 wx_cv_size_t_is_uint=yes
33026
33027 fi
33028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33029
33030
33031 fi
33032 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33033 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33034
33035 if test "$wx_cv_size_t_is_uint" = "yes"; then
33036 cat >>confdefs.h <<\_ACEOF
33037 #define wxSIZE_T_IS_UINT 1
33038 _ACEOF
33039
33040 else
33041 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33042 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33043 if test "${wx_cv_size_t_is_ulong+set}" = set; then
33044 echo $ECHO_N "(cached) $ECHO_C" >&6
33045 else
33046 cat >conftest.$ac_ext <<_ACEOF
33047 /* confdefs.h. */
33048 _ACEOF
33049 cat confdefs.h >>conftest.$ac_ext
33050 cat >>conftest.$ac_ext <<_ACEOF
33051 /* end confdefs.h. */
33052 #include <stddef.h>
33053 int
33054 main ()
33055 {
33056
33057 return 0; }
33058
33059 struct Foo { void foo(size_t); void foo(unsigned long); };
33060
33061 int bar() {
33062
33063 ;
33064 return 0;
33065 }
33066 _ACEOF
33067 rm -f conftest.$ac_objext
33068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33069 (eval $ac_compile) 2>conftest.er1
33070 ac_status=$?
33071 grep -v '^ *+' conftest.er1 >conftest.err
33072 rm -f conftest.er1
33073 cat conftest.err >&5
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); } &&
33076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33078 (eval $ac_try) 2>&5
33079 ac_status=$?
33080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081 (exit $ac_status); }; } &&
33082 { ac_try='test -s conftest.$ac_objext'
33083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33084 (eval $ac_try) 2>&5
33085 ac_status=$?
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); }; }; then
33088 wx_cv_size_t_is_ulong=no
33089 else
33090 echo "$as_me: failed program was:" >&5
33091 sed 's/^/| /' conftest.$ac_ext >&5
33092
33093 wx_cv_size_t_is_ulong=yes
33094
33095 fi
33096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33097
33098 fi
33099 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33100 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33101
33102 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33103 cat >>confdefs.h <<\_ACEOF
33104 #define wxSIZE_T_IS_ULONG 1
33105 _ACEOF
33106
33107 fi
33108 fi
33109
33110
33111 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33112 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33113 if test "${wx_cv_struct_pw_gecos+set}" = set; then
33114 echo $ECHO_N "(cached) $ECHO_C" >&6
33115 else
33116
33117 cat >conftest.$ac_ext <<_ACEOF
33118 /* confdefs.h. */
33119 _ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h. */
33123 #include <pwd.h>
33124 int
33125 main ()
33126 {
33127
33128 char *p;
33129 struct passwd *pw;
33130 p = pw->pw_gecos;
33131
33132 ;
33133 return 0;
33134 }
33135 _ACEOF
33136 rm -f conftest.$ac_objext
33137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33138 (eval $ac_compile) 2>conftest.er1
33139 ac_status=$?
33140 grep -v '^ *+' conftest.er1 >conftest.err
33141 rm -f conftest.er1
33142 cat conftest.err >&5
33143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144 (exit $ac_status); } &&
33145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33147 (eval $ac_try) 2>&5
33148 ac_status=$?
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); }; } &&
33151 { ac_try='test -s conftest.$ac_objext'
33152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33153 (eval $ac_try) 2>&5
33154 ac_status=$?
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); }; }; then
33157
33158 wx_cv_struct_pw_gecos=yes
33159
33160 else
33161 echo "$as_me: failed program was:" >&5
33162 sed 's/^/| /' conftest.$ac_ext >&5
33163
33164
33165 wx_cv_struct_pw_gecos=no
33166
33167
33168 fi
33169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33170
33171
33172 fi
33173 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33174 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33175
33176 if test "$wx_cv_struct_pw_gecos" = "yes"; then
33177 cat >>confdefs.h <<\_ACEOF
33178 #define HAVE_PW_GECOS 1
33179 _ACEOF
33180
33181 fi
33182
33183
33184 if test "$wxUSE_WCHAR_T" = "yes"; then
33185 cat >>confdefs.h <<\_ACEOF
33186 #define wxUSE_WCHAR_T 1
33187 _ACEOF
33188
33189
33190 WCSLEN_FOUND=0
33191 WCHAR_LINK=
33192
33193 for ac_func in wcslen
33194 do
33195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33196 echo "$as_me:$LINENO: checking for $ac_func" >&5
33197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33198 if eval "test \"\${$as_ac_var+set}\" = set"; then
33199 echo $ECHO_N "(cached) $ECHO_C" >&6
33200 else
33201 cat >conftest.$ac_ext <<_ACEOF
33202 /* confdefs.h. */
33203 _ACEOF
33204 cat confdefs.h >>conftest.$ac_ext
33205 cat >>conftest.$ac_ext <<_ACEOF
33206 /* end confdefs.h. */
33207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33209 #define $ac_func innocuous_$ac_func
33210
33211 /* System header to define __stub macros and hopefully few prototypes,
33212 which can conflict with char $ac_func (); below.
33213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33214 <limits.h> exists even on freestanding compilers. */
33215
33216 #ifdef __STDC__
33217 # include <limits.h>
33218 #else
33219 # include <assert.h>
33220 #endif
33221
33222 #undef $ac_func
33223
33224 /* Override any gcc2 internal prototype to avoid an error. */
33225 #ifdef __cplusplus
33226 extern "C"
33227 {
33228 #endif
33229 /* We use char because int might match the return type of a gcc2
33230 builtin and then its argument prototype would still apply. */
33231 char $ac_func ();
33232 /* The GNU C library defines this for functions which it implements
33233 to always fail with ENOSYS. Some functions are actually named
33234 something starting with __ and the normal name is an alias. */
33235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33236 choke me
33237 #else
33238 char (*f) () = $ac_func;
33239 #endif
33240 #ifdef __cplusplus
33241 }
33242 #endif
33243
33244 int
33245 main ()
33246 {
33247 return f != $ac_func;
33248 ;
33249 return 0;
33250 }
33251 _ACEOF
33252 rm -f conftest.$ac_objext conftest$ac_exeext
33253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33254 (eval $ac_link) 2>conftest.er1
33255 ac_status=$?
33256 grep -v '^ *+' conftest.er1 >conftest.err
33257 rm -f conftest.er1
33258 cat conftest.err >&5
33259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); } &&
33261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33263 (eval $ac_try) 2>&5
33264 ac_status=$?
33265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266 (exit $ac_status); }; } &&
33267 { ac_try='test -s conftest$ac_exeext'
33268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33269 (eval $ac_try) 2>&5
33270 ac_status=$?
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); }; }; then
33273 eval "$as_ac_var=yes"
33274 else
33275 echo "$as_me: failed program was:" >&5
33276 sed 's/^/| /' conftest.$ac_ext >&5
33277
33278 eval "$as_ac_var=no"
33279 fi
33280 rm -f conftest.err conftest.$ac_objext \
33281 conftest$ac_exeext conftest.$ac_ext
33282 fi
33283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33285 if test `eval echo '${'$as_ac_var'}'` = yes; then
33286 cat >>confdefs.h <<_ACEOF
33287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33288 _ACEOF
33289 WCSLEN_FOUND=1
33290 fi
33291 done
33292
33293
33294 if test "$WCSLEN_FOUND" = 0; then
33295 if test "$TOOLKIT" = "MSW"; then
33296 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33297 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33298 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33299 echo $ECHO_N "(cached) $ECHO_C" >&6
33300 else
33301 ac_check_lib_save_LIBS=$LIBS
33302 LIBS="-lmsvcrt $LIBS"
33303 cat >conftest.$ac_ext <<_ACEOF
33304 /* confdefs.h. */
33305 _ACEOF
33306 cat confdefs.h >>conftest.$ac_ext
33307 cat >>conftest.$ac_ext <<_ACEOF
33308 /* end confdefs.h. */
33309
33310 /* Override any gcc2 internal prototype to avoid an error. */
33311 #ifdef __cplusplus
33312 extern "C"
33313 #endif
33314 /* We use char because int might match the return type of a gcc2
33315 builtin and then its argument prototype would still apply. */
33316 char wcslen ();
33317 int
33318 main ()
33319 {
33320 wcslen ();
33321 ;
33322 return 0;
33323 }
33324 _ACEOF
33325 rm -f conftest.$ac_objext conftest$ac_exeext
33326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33327 (eval $ac_link) 2>conftest.er1
33328 ac_status=$?
33329 grep -v '^ *+' conftest.er1 >conftest.err
33330 rm -f conftest.er1
33331 cat conftest.err >&5
33332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333 (exit $ac_status); } &&
33334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33336 (eval $ac_try) 2>&5
33337 ac_status=$?
33338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339 (exit $ac_status); }; } &&
33340 { ac_try='test -s conftest$ac_exeext'
33341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33342 (eval $ac_try) 2>&5
33343 ac_status=$?
33344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345 (exit $ac_status); }; }; then
33346 ac_cv_lib_msvcrt_wcslen=yes
33347 else
33348 echo "$as_me: failed program was:" >&5
33349 sed 's/^/| /' conftest.$ac_ext >&5
33350
33351 ac_cv_lib_msvcrt_wcslen=no
33352 fi
33353 rm -f conftest.err conftest.$ac_objext \
33354 conftest$ac_exeext conftest.$ac_ext
33355 LIBS=$ac_check_lib_save_LIBS
33356 fi
33357 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33358 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33359 if test $ac_cv_lib_msvcrt_wcslen = yes; then
33360 WCHAR_OK=1
33361 fi
33362
33363 else
33364 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33365 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33366 if test "${ac_cv_lib_w_wcslen+set}" = set; then
33367 echo $ECHO_N "(cached) $ECHO_C" >&6
33368 else
33369 ac_check_lib_save_LIBS=$LIBS
33370 LIBS="-lw $LIBS"
33371 cat >conftest.$ac_ext <<_ACEOF
33372 /* confdefs.h. */
33373 _ACEOF
33374 cat confdefs.h >>conftest.$ac_ext
33375 cat >>conftest.$ac_ext <<_ACEOF
33376 /* end confdefs.h. */
33377
33378 /* Override any gcc2 internal prototype to avoid an error. */
33379 #ifdef __cplusplus
33380 extern "C"
33381 #endif
33382 /* We use char because int might match the return type of a gcc2
33383 builtin and then its argument prototype would still apply. */
33384 char wcslen ();
33385 int
33386 main ()
33387 {
33388 wcslen ();
33389 ;
33390 return 0;
33391 }
33392 _ACEOF
33393 rm -f conftest.$ac_objext conftest$ac_exeext
33394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33395 (eval $ac_link) 2>conftest.er1
33396 ac_status=$?
33397 grep -v '^ *+' conftest.er1 >conftest.err
33398 rm -f conftest.er1
33399 cat conftest.err >&5
33400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401 (exit $ac_status); } &&
33402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33404 (eval $ac_try) 2>&5
33405 ac_status=$?
33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407 (exit $ac_status); }; } &&
33408 { ac_try='test -s conftest$ac_exeext'
33409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33410 (eval $ac_try) 2>&5
33411 ac_status=$?
33412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413 (exit $ac_status); }; }; then
33414 ac_cv_lib_w_wcslen=yes
33415 else
33416 echo "$as_me: failed program was:" >&5
33417 sed 's/^/| /' conftest.$ac_ext >&5
33418
33419 ac_cv_lib_w_wcslen=no
33420 fi
33421 rm -f conftest.err conftest.$ac_objext \
33422 conftest$ac_exeext conftest.$ac_ext
33423 LIBS=$ac_check_lib_save_LIBS
33424 fi
33425 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33426 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33427 if test $ac_cv_lib_w_wcslen = yes; then
33428
33429 WCHAR_LINK=" -lw"
33430 WCSLEN_FOUND=1
33431
33432 fi
33433
33434 fi
33435 fi
33436
33437 if test "$WCSLEN_FOUND" = 1; then
33438 cat >>confdefs.h <<\_ACEOF
33439 #define HAVE_WCSLEN 1
33440 _ACEOF
33441
33442 fi
33443
33444 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
33445 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
33446 fi
33447
33448 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33449 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33450 if test "${ac_cv_type_mbstate_t+set}" = set; then
33451 echo $ECHO_N "(cached) $ECHO_C" >&6
33452 else
33453 cat >conftest.$ac_ext <<_ACEOF
33454 /* confdefs.h. */
33455 _ACEOF
33456 cat confdefs.h >>conftest.$ac_ext
33457 cat >>conftest.$ac_ext <<_ACEOF
33458 /* end confdefs.h. */
33459 #include <wchar.h>
33460
33461 int
33462 main ()
33463 {
33464 if ((mbstate_t *) 0)
33465 return 0;
33466 if (sizeof (mbstate_t))
33467 return 0;
33468 ;
33469 return 0;
33470 }
33471 _ACEOF
33472 rm -f conftest.$ac_objext
33473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33474 (eval $ac_compile) 2>conftest.er1
33475 ac_status=$?
33476 grep -v '^ *+' conftest.er1 >conftest.err
33477 rm -f conftest.er1
33478 cat conftest.err >&5
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); } &&
33481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33483 (eval $ac_try) 2>&5
33484 ac_status=$?
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); }; } &&
33487 { ac_try='test -s conftest.$ac_objext'
33488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33489 (eval $ac_try) 2>&5
33490 ac_status=$?
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); }; }; then
33493 ac_cv_type_mbstate_t=yes
33494 else
33495 echo "$as_me: failed program was:" >&5
33496 sed 's/^/| /' conftest.$ac_ext >&5
33497
33498 ac_cv_type_mbstate_t=no
33499 fi
33500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33501 fi
33502 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33503 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33504 if test $ac_cv_type_mbstate_t = yes; then
33505
33506 cat >>confdefs.h <<_ACEOF
33507 #define HAVE_MBSTATE_T 1
33508 _ACEOF
33509
33510
33511 for ac_func in wcsrtombs
33512 do
33513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33514 echo "$as_me:$LINENO: checking for $ac_func" >&5
33515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33516 if eval "test \"\${$as_ac_var+set}\" = set"; then
33517 echo $ECHO_N "(cached) $ECHO_C" >&6
33518 else
33519 cat >conftest.$ac_ext <<_ACEOF
33520 /* confdefs.h. */
33521 _ACEOF
33522 cat confdefs.h >>conftest.$ac_ext
33523 cat >>conftest.$ac_ext <<_ACEOF
33524 /* end confdefs.h. */
33525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33527 #define $ac_func innocuous_$ac_func
33528
33529 /* System header to define __stub macros and hopefully few prototypes,
33530 which can conflict with char $ac_func (); below.
33531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33532 <limits.h> exists even on freestanding compilers. */
33533
33534 #ifdef __STDC__
33535 # include <limits.h>
33536 #else
33537 # include <assert.h>
33538 #endif
33539
33540 #undef $ac_func
33541
33542 /* Override any gcc2 internal prototype to avoid an error. */
33543 #ifdef __cplusplus
33544 extern "C"
33545 {
33546 #endif
33547 /* We use char because int might match the return type of a gcc2
33548 builtin and then its argument prototype would still apply. */
33549 char $ac_func ();
33550 /* The GNU C library defines this for functions which it implements
33551 to always fail with ENOSYS. Some functions are actually named
33552 something starting with __ and the normal name is an alias. */
33553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33554 choke me
33555 #else
33556 char (*f) () = $ac_func;
33557 #endif
33558 #ifdef __cplusplus
33559 }
33560 #endif
33561
33562 int
33563 main ()
33564 {
33565 return f != $ac_func;
33566 ;
33567 return 0;
33568 }
33569 _ACEOF
33570 rm -f conftest.$ac_objext conftest$ac_exeext
33571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33572 (eval $ac_link) 2>conftest.er1
33573 ac_status=$?
33574 grep -v '^ *+' conftest.er1 >conftest.err
33575 rm -f conftest.er1
33576 cat conftest.err >&5
33577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578 (exit $ac_status); } &&
33579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33581 (eval $ac_try) 2>&5
33582 ac_status=$?
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); }; } &&
33585 { ac_try='test -s conftest$ac_exeext'
33586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33587 (eval $ac_try) 2>&5
33588 ac_status=$?
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 (exit $ac_status); }; }; then
33591 eval "$as_ac_var=yes"
33592 else
33593 echo "$as_me: failed program was:" >&5
33594 sed 's/^/| /' conftest.$ac_ext >&5
33595
33596 eval "$as_ac_var=no"
33597 fi
33598 rm -f conftest.err conftest.$ac_objext \
33599 conftest$ac_exeext conftest.$ac_ext
33600 fi
33601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33603 if test `eval echo '${'$as_ac_var'}'` = yes; then
33604 cat >>confdefs.h <<_ACEOF
33605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33606 _ACEOF
33607
33608 fi
33609 done
33610
33611 fi
33612
33613 else
33614 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33615 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33616 fi
33617
33618
33619
33620 for ac_func in snprintf vsnprintf
33621 do
33622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33623 echo "$as_me:$LINENO: checking for $ac_func" >&5
33624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33625 if eval "test \"\${$as_ac_var+set}\" = set"; then
33626 echo $ECHO_N "(cached) $ECHO_C" >&6
33627 else
33628 cat >conftest.$ac_ext <<_ACEOF
33629 /* confdefs.h. */
33630 _ACEOF
33631 cat confdefs.h >>conftest.$ac_ext
33632 cat >>conftest.$ac_ext <<_ACEOF
33633 /* end confdefs.h. */
33634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33636 #define $ac_func innocuous_$ac_func
33637
33638 /* System header to define __stub macros and hopefully few prototypes,
33639 which can conflict with char $ac_func (); below.
33640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33641 <limits.h> exists even on freestanding compilers. */
33642
33643 #ifdef __STDC__
33644 # include <limits.h>
33645 #else
33646 # include <assert.h>
33647 #endif
33648
33649 #undef $ac_func
33650
33651 /* Override any gcc2 internal prototype to avoid an error. */
33652 #ifdef __cplusplus
33653 extern "C"
33654 {
33655 #endif
33656 /* We use char because int might match the return type of a gcc2
33657 builtin and then its argument prototype would still apply. */
33658 char $ac_func ();
33659 /* The GNU C library defines this for functions which it implements
33660 to always fail with ENOSYS. Some functions are actually named
33661 something starting with __ and the normal name is an alias. */
33662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33663 choke me
33664 #else
33665 char (*f) () = $ac_func;
33666 #endif
33667 #ifdef __cplusplus
33668 }
33669 #endif
33670
33671 int
33672 main ()
33673 {
33674 return f != $ac_func;
33675 ;
33676 return 0;
33677 }
33678 _ACEOF
33679 rm -f conftest.$ac_objext conftest$ac_exeext
33680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33681 (eval $ac_link) 2>conftest.er1
33682 ac_status=$?
33683 grep -v '^ *+' conftest.er1 >conftest.err
33684 rm -f conftest.er1
33685 cat conftest.err >&5
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); } &&
33688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33690 (eval $ac_try) 2>&5
33691 ac_status=$?
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); }; } &&
33694 { ac_try='test -s conftest$ac_exeext'
33695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33696 (eval $ac_try) 2>&5
33697 ac_status=$?
33698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699 (exit $ac_status); }; }; then
33700 eval "$as_ac_var=yes"
33701 else
33702 echo "$as_me: failed program was:" >&5
33703 sed 's/^/| /' conftest.$ac_ext >&5
33704
33705 eval "$as_ac_var=no"
33706 fi
33707 rm -f conftest.err conftest.$ac_objext \
33708 conftest$ac_exeext conftest.$ac_ext
33709 fi
33710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33712 if test `eval echo '${'$as_ac_var'}'` = yes; then
33713 cat >>confdefs.h <<_ACEOF
33714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33715 _ACEOF
33716
33717 fi
33718 done
33719
33720
33721 if test "$ac_cv_func_vsnprintf" = "yes"; then
33722 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33723 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33724 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33725 echo $ECHO_N "(cached) $ECHO_C" >&6
33726 else
33727
33728 cat >conftest.$ac_ext <<_ACEOF
33729 /* confdefs.h. */
33730 _ACEOF
33731 cat confdefs.h >>conftest.$ac_ext
33732 cat >>conftest.$ac_ext <<_ACEOF
33733 /* end confdefs.h. */
33734
33735 #include <stdio.h>
33736 #include <stdarg.h>
33737 #ifdef __MSL__
33738 #if __MSL__ >= 0x6000
33739 namespace std {}
33740 using namespace std;
33741 #endif
33742 #endif
33743
33744 int
33745 main ()
33746 {
33747
33748 char *buf;
33749 va_list ap;
33750 vsnprintf(buf, 10u, "%s", ap);
33751
33752 ;
33753 return 0;
33754 }
33755 _ACEOF
33756 rm -f conftest.$ac_objext
33757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33758 (eval $ac_compile) 2>conftest.er1
33759 ac_status=$?
33760 grep -v '^ *+' conftest.er1 >conftest.err
33761 rm -f conftest.er1
33762 cat conftest.err >&5
33763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764 (exit $ac_status); } &&
33765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33767 (eval $ac_try) 2>&5
33768 ac_status=$?
33769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770 (exit $ac_status); }; } &&
33771 { ac_try='test -s conftest.$ac_objext'
33772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33773 (eval $ac_try) 2>&5
33774 ac_status=$?
33775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776 (exit $ac_status); }; }; then
33777 wx_cv_func_vsnprintf_decl=yes
33778 else
33779 echo "$as_me: failed program was:" >&5
33780 sed 's/^/| /' conftest.$ac_ext >&5
33781
33782 wx_cv_func_vsnprintf_decl=no
33783
33784 fi
33785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33786
33787
33788 fi
33789 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33790 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33791
33792 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33793 cat >>confdefs.h <<\_ACEOF
33794 #define HAVE_VSNPRINTF_DECL 1
33795 _ACEOF
33796
33797
33798 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33799 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33800 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33801 echo $ECHO_N "(cached) $ECHO_C" >&6
33802 else
33803
33804 cat >conftest.$ac_ext <<_ACEOF
33805 /* confdefs.h. */
33806 _ACEOF
33807 cat confdefs.h >>conftest.$ac_ext
33808 cat >>conftest.$ac_ext <<_ACEOF
33809 /* end confdefs.h. */
33810
33811 #include <stdio.h>
33812 #include <stdarg.h>
33813 #ifdef __MSL__
33814 #if __MSL__ >= 0x6000
33815 namespace std {}
33816 using namespace std;
33817 #endif
33818 #endif
33819
33820 int
33821 main ()
33822 {
33823
33824 char *buf;
33825 va_list ap;
33826 const char *fmt = "%s";
33827 vsnprintf(buf, 10u, fmt, ap);
33828
33829 ;
33830 return 0;
33831 }
33832 _ACEOF
33833 rm -f conftest.$ac_objext
33834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33835 (eval $ac_compile) 2>conftest.er1
33836 ac_status=$?
33837 grep -v '^ *+' conftest.er1 >conftest.err
33838 rm -f conftest.er1
33839 cat conftest.err >&5
33840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33841 (exit $ac_status); } &&
33842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33844 (eval $ac_try) 2>&5
33845 ac_status=$?
33846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847 (exit $ac_status); }; } &&
33848 { ac_try='test -s conftest.$ac_objext'
33849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33850 (eval $ac_try) 2>&5
33851 ac_status=$?
33852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853 (exit $ac_status); }; }; then
33854 wx_cv_func_broken_vsnprintf_decl=no
33855 else
33856 echo "$as_me: failed program was:" >&5
33857 sed 's/^/| /' conftest.$ac_ext >&5
33858
33859 wx_cv_func_broken_vsnprintf_decl=yes
33860
33861 fi
33862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33863
33864
33865 fi
33866 echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33867 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33868
33869 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33870 cat >>confdefs.h <<\_ACEOF
33871 #define HAVE_BROKEN_VSNPRINTF_DECL 1
33872 _ACEOF
33873
33874 fi
33875 fi
33876 fi
33877
33878 if test "$ac_cv_func_snprintf" = "yes"; then
33879 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33880 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33881 if test "${wx_cv_func_snprintf_decl+set}" = set; then
33882 echo $ECHO_N "(cached) $ECHO_C" >&6
33883 else
33884
33885 cat >conftest.$ac_ext <<_ACEOF
33886 /* confdefs.h. */
33887 _ACEOF
33888 cat confdefs.h >>conftest.$ac_ext
33889 cat >>conftest.$ac_ext <<_ACEOF
33890 /* end confdefs.h. */
33891
33892 #include <stdio.h>
33893 #include <stdarg.h>
33894 #ifdef __MSL__
33895 #if __MSL__ >= 0x6000
33896 namespace std {}
33897 using namespace std;
33898 #endif
33899 #endif
33900
33901 int
33902 main ()
33903 {
33904
33905 char *buf;
33906 snprintf(buf, 10u, "%s", "wx");
33907
33908 ;
33909 return 0;
33910 }
33911 _ACEOF
33912 rm -f conftest.$ac_objext
33913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33914 (eval $ac_compile) 2>conftest.er1
33915 ac_status=$?
33916 grep -v '^ *+' conftest.er1 >conftest.err
33917 rm -f conftest.er1
33918 cat conftest.err >&5
33919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); } &&
33921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33923 (eval $ac_try) 2>&5
33924 ac_status=$?
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; } &&
33927 { ac_try='test -s conftest.$ac_objext'
33928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33929 (eval $ac_try) 2>&5
33930 ac_status=$?
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; }; then
33933 wx_cv_func_snprintf_decl=yes
33934 else
33935 echo "$as_me: failed program was:" >&5
33936 sed 's/^/| /' conftest.$ac_ext >&5
33937
33938 wx_cv_func_snprintf_decl=no
33939
33940 fi
33941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33942
33943
33944 fi
33945 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33946 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33947
33948 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33949 cat >>confdefs.h <<\_ACEOF
33950 #define HAVE_SNPRINTF_DECL 1
33951 _ACEOF
33952
33953
33954 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33955 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33956 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33957 echo $ECHO_N "(cached) $ECHO_C" >&6
33958 else
33959
33960 cat >conftest.$ac_ext <<_ACEOF
33961 /* confdefs.h. */
33962 _ACEOF
33963 cat confdefs.h >>conftest.$ac_ext
33964 cat >>conftest.$ac_ext <<_ACEOF
33965 /* end confdefs.h. */
33966
33967 #include <stdio.h>
33968 #include <stdarg.h>
33969 #ifdef __MSL__
33970 #if __MSL__ >= 0x6000
33971 namespace std {}
33972 using namespace std;
33973 #endif
33974 #endif
33975
33976 int
33977 main ()
33978 {
33979
33980 char *buf;
33981 const char *fmt = "%s";
33982 snprintf(buf, 10u, fmt, "wx");
33983
33984 ;
33985 return 0;
33986 }
33987 _ACEOF
33988 rm -f conftest.$ac_objext
33989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33990 (eval $ac_compile) 2>conftest.er1
33991 ac_status=$?
33992 grep -v '^ *+' conftest.er1 >conftest.err
33993 rm -f conftest.er1
33994 cat conftest.err >&5
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); } &&
33997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33999 (eval $ac_try) 2>&5
34000 ac_status=$?
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); }; } &&
34003 { ac_try='test -s conftest.$ac_objext'
34004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005 (eval $ac_try) 2>&5
34006 ac_status=$?
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); }; }; then
34009 wx_cv_func_broken_snprintf_decl=no
34010 else
34011 echo "$as_me: failed program was:" >&5
34012 sed 's/^/| /' conftest.$ac_ext >&5
34013
34014 wx_cv_func_broken_snprintf_decl=yes
34015
34016 fi
34017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34018
34019
34020 fi
34021 echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34022 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34023
34024 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34025 cat >>confdefs.h <<\_ACEOF
34026 #define HAVE_BROKEN_SNPRINTF_DECL 1
34027 _ACEOF
34028
34029 fi
34030 fi
34031 fi
34032
34033 if test "$wxUSE_UNICODE" = yes; then
34034
34035
34036
34037
34038
34039
34040 for ac_func in wputc wputchar putws fputws wprintf vswprintf
34041 do
34042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34043 echo "$as_me:$LINENO: checking for $ac_func" >&5
34044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34045 if eval "test \"\${$as_ac_var+set}\" = set"; then
34046 echo $ECHO_N "(cached) $ECHO_C" >&6
34047 else
34048 cat >conftest.$ac_ext <<_ACEOF
34049 /* confdefs.h. */
34050 _ACEOF
34051 cat confdefs.h >>conftest.$ac_ext
34052 cat >>conftest.$ac_ext <<_ACEOF
34053 /* end confdefs.h. */
34054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34056 #define $ac_func innocuous_$ac_func
34057
34058 /* System header to define __stub macros and hopefully few prototypes,
34059 which can conflict with char $ac_func (); below.
34060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34061 <limits.h> exists even on freestanding compilers. */
34062
34063 #ifdef __STDC__
34064 # include <limits.h>
34065 #else
34066 # include <assert.h>
34067 #endif
34068
34069 #undef $ac_func
34070
34071 /* Override any gcc2 internal prototype to avoid an error. */
34072 #ifdef __cplusplus
34073 extern "C"
34074 {
34075 #endif
34076 /* We use char because int might match the return type of a gcc2
34077 builtin and then its argument prototype would still apply. */
34078 char $ac_func ();
34079 /* The GNU C library defines this for functions which it implements
34080 to always fail with ENOSYS. Some functions are actually named
34081 something starting with __ and the normal name is an alias. */
34082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34083 choke me
34084 #else
34085 char (*f) () = $ac_func;
34086 #endif
34087 #ifdef __cplusplus
34088 }
34089 #endif
34090
34091 int
34092 main ()
34093 {
34094 return f != $ac_func;
34095 ;
34096 return 0;
34097 }
34098 _ACEOF
34099 rm -f conftest.$ac_objext conftest$ac_exeext
34100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34101 (eval $ac_link) 2>conftest.er1
34102 ac_status=$?
34103 grep -v '^ *+' conftest.er1 >conftest.err
34104 rm -f conftest.er1
34105 cat conftest.err >&5
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); } &&
34108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110 (eval $ac_try) 2>&5
34111 ac_status=$?
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; } &&
34114 { ac_try='test -s conftest$ac_exeext'
34115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34116 (eval $ac_try) 2>&5
34117 ac_status=$?
34118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119 (exit $ac_status); }; }; then
34120 eval "$as_ac_var=yes"
34121 else
34122 echo "$as_me: failed program was:" >&5
34123 sed 's/^/| /' conftest.$ac_ext >&5
34124
34125 eval "$as_ac_var=no"
34126 fi
34127 rm -f conftest.err conftest.$ac_objext \
34128 conftest$ac_exeext conftest.$ac_ext
34129 fi
34130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34132 if test `eval echo '${'$as_ac_var'}'` = yes; then
34133 cat >>confdefs.h <<_ACEOF
34134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34135 _ACEOF
34136
34137 fi
34138 done
34139
34140
34141 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34142 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34143 cat >conftest.$ac_ext <<_ACEOF
34144 /* confdefs.h. */
34145 _ACEOF
34146 cat confdefs.h >>conftest.$ac_ext
34147 cat >>conftest.$ac_ext <<_ACEOF
34148 /* end confdefs.h. */
34149 #include <wchar.h>
34150 int
34151 main ()
34152 {
34153 &_vsnwprintf;
34154 ;
34155 return 0;
34156 }
34157 _ACEOF
34158 rm -f conftest.$ac_objext
34159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34160 (eval $ac_compile) 2>conftest.er1
34161 ac_status=$?
34162 grep -v '^ *+' conftest.er1 >conftest.err
34163 rm -f conftest.er1
34164 cat conftest.err >&5
34165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166 (exit $ac_status); } &&
34167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34169 (eval $ac_try) 2>&5
34170 ac_status=$?
34171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34172 (exit $ac_status); }; } &&
34173 { ac_try='test -s conftest.$ac_objext'
34174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34175 (eval $ac_try) 2>&5
34176 ac_status=$?
34177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34178 (exit $ac_status); }; }; then
34179 echo "$as_me:$LINENO: result: yes" >&5
34180 echo "${ECHO_T}yes" >&6
34181 cat >>confdefs.h <<\_ACEOF
34182 #define HAVE__VSNWPRINTF 1
34183 _ACEOF
34184
34185 else
34186 echo "$as_me: failed program was:" >&5
34187 sed 's/^/| /' conftest.$ac_ext >&5
34188
34189 echo "$as_me:$LINENO: result: no" >&5
34190 echo "${ECHO_T}no" >&6
34191 fi
34192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
34193 fi
34194
34195 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34196
34197 for ac_func in fnmatch
34198 do
34199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34200 echo "$as_me:$LINENO: checking for $ac_func" >&5
34201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34202 if eval "test \"\${$as_ac_var+set}\" = set"; then
34203 echo $ECHO_N "(cached) $ECHO_C" >&6
34204 else
34205 cat >conftest.$ac_ext <<_ACEOF
34206 /* confdefs.h. */
34207 _ACEOF
34208 cat confdefs.h >>conftest.$ac_ext
34209 cat >>conftest.$ac_ext <<_ACEOF
34210 /* end confdefs.h. */
34211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34213 #define $ac_func innocuous_$ac_func
34214
34215 /* System header to define __stub macros and hopefully few prototypes,
34216 which can conflict with char $ac_func (); below.
34217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34218 <limits.h> exists even on freestanding compilers. */
34219
34220 #ifdef __STDC__
34221 # include <limits.h>
34222 #else
34223 # include <assert.h>
34224 #endif
34225
34226 #undef $ac_func
34227
34228 /* Override any gcc2 internal prototype to avoid an error. */
34229 #ifdef __cplusplus
34230 extern "C"
34231 {
34232 #endif
34233 /* We use char because int might match the return type of a gcc2
34234 builtin and then its argument prototype would still apply. */
34235 char $ac_func ();
34236 /* The GNU C library defines this for functions which it implements
34237 to always fail with ENOSYS. Some functions are actually named
34238 something starting with __ and the normal name is an alias. */
34239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34240 choke me
34241 #else
34242 char (*f) () = $ac_func;
34243 #endif
34244 #ifdef __cplusplus
34245 }
34246 #endif
34247
34248 int
34249 main ()
34250 {
34251 return f != $ac_func;
34252 ;
34253 return 0;
34254 }
34255 _ACEOF
34256 rm -f conftest.$ac_objext conftest$ac_exeext
34257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34258 (eval $ac_link) 2>conftest.er1
34259 ac_status=$?
34260 grep -v '^ *+' conftest.er1 >conftest.err
34261 rm -f conftest.er1
34262 cat conftest.err >&5
34263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264 (exit $ac_status); } &&
34265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34267 (eval $ac_try) 2>&5
34268 ac_status=$?
34269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34270 (exit $ac_status); }; } &&
34271 { ac_try='test -s conftest$ac_exeext'
34272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34273 (eval $ac_try) 2>&5
34274 ac_status=$?
34275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276 (exit $ac_status); }; }; then
34277 eval "$as_ac_var=yes"
34278 else
34279 echo "$as_me: failed program was:" >&5
34280 sed 's/^/| /' conftest.$ac_ext >&5
34281
34282 eval "$as_ac_var=no"
34283 fi
34284 rm -f conftest.err conftest.$ac_objext \
34285 conftest$ac_exeext conftest.$ac_ext
34286 fi
34287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34289 if test `eval echo '${'$as_ac_var'}'` = yes; then
34290 cat >>confdefs.h <<_ACEOF
34291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34292 _ACEOF
34293
34294 fi
34295 done
34296
34297 fi
34298
34299 if test "$wxUSE_FILE" = "yes"; then
34300
34301 for ac_func in fsync
34302 do
34303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34304 echo "$as_me:$LINENO: checking for $ac_func" >&5
34305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34306 if eval "test \"\${$as_ac_var+set}\" = set"; then
34307 echo $ECHO_N "(cached) $ECHO_C" >&6
34308 else
34309 cat >conftest.$ac_ext <<_ACEOF
34310 /* confdefs.h. */
34311 _ACEOF
34312 cat confdefs.h >>conftest.$ac_ext
34313 cat >>conftest.$ac_ext <<_ACEOF
34314 /* end confdefs.h. */
34315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34317 #define $ac_func innocuous_$ac_func
34318
34319 /* System header to define __stub macros and hopefully few prototypes,
34320 which can conflict with char $ac_func (); below.
34321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34322 <limits.h> exists even on freestanding compilers. */
34323
34324 #ifdef __STDC__
34325 # include <limits.h>
34326 #else
34327 # include <assert.h>
34328 #endif
34329
34330 #undef $ac_func
34331
34332 /* Override any gcc2 internal prototype to avoid an error. */
34333 #ifdef __cplusplus
34334 extern "C"
34335 {
34336 #endif
34337 /* We use char because int might match the return type of a gcc2
34338 builtin and then its argument prototype would still apply. */
34339 char $ac_func ();
34340 /* The GNU C library defines this for functions which it implements
34341 to always fail with ENOSYS. Some functions are actually named
34342 something starting with __ and the normal name is an alias. */
34343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34344 choke me
34345 #else
34346 char (*f) () = $ac_func;
34347 #endif
34348 #ifdef __cplusplus
34349 }
34350 #endif
34351
34352 int
34353 main ()
34354 {
34355 return f != $ac_func;
34356 ;
34357 return 0;
34358 }
34359 _ACEOF
34360 rm -f conftest.$ac_objext conftest$ac_exeext
34361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34362 (eval $ac_link) 2>conftest.er1
34363 ac_status=$?
34364 grep -v '^ *+' conftest.er1 >conftest.err
34365 rm -f conftest.er1
34366 cat conftest.err >&5
34367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368 (exit $ac_status); } &&
34369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34371 (eval $ac_try) 2>&5
34372 ac_status=$?
34373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34374 (exit $ac_status); }; } &&
34375 { ac_try='test -s conftest$ac_exeext'
34376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34377 (eval $ac_try) 2>&5
34378 ac_status=$?
34379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34380 (exit $ac_status); }; }; then
34381 eval "$as_ac_var=yes"
34382 else
34383 echo "$as_me: failed program was:" >&5
34384 sed 's/^/| /' conftest.$ac_ext >&5
34385
34386 eval "$as_ac_var=no"
34387 fi
34388 rm -f conftest.err conftest.$ac_objext \
34389 conftest$ac_exeext conftest.$ac_ext
34390 fi
34391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34393 if test `eval echo '${'$as_ac_var'}'` = yes; then
34394 cat >>confdefs.h <<_ACEOF
34395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34396 _ACEOF
34397
34398 fi
34399 done
34400
34401 fi
34402
34403
34404 if test "$TOOLKIT" != "MSW"; then
34405
34406
34407
34408
34409
34410 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34411 if test "${with_libiconv_prefix+set}" = set; then
34412 withval="$with_libiconv_prefix"
34413
34414 for dir in `echo "$withval" | tr : ' '`; do
34415 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34416 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34417 done
34418
34419 fi;
34420
34421 echo "$as_me:$LINENO: checking for iconv" >&5
34422 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34423 if test "${am_cv_func_iconv+set}" = set; then
34424 echo $ECHO_N "(cached) $ECHO_C" >&6
34425 else
34426
34427 am_cv_func_iconv="no, consider installing GNU libiconv"
34428 am_cv_lib_iconv=no
34429 cat >conftest.$ac_ext <<_ACEOF
34430 /* confdefs.h. */
34431 _ACEOF
34432 cat confdefs.h >>conftest.$ac_ext
34433 cat >>conftest.$ac_ext <<_ACEOF
34434 /* end confdefs.h. */
34435 #include <stdlib.h>
34436 #include <iconv.h>
34437 int
34438 main ()
34439 {
34440 iconv_t cd = iconv_open("","");
34441 iconv(cd,NULL,NULL,NULL,NULL);
34442 iconv_close(cd);
34443 ;
34444 return 0;
34445 }
34446 _ACEOF
34447 rm -f conftest.$ac_objext conftest$ac_exeext
34448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34449 (eval $ac_link) 2>conftest.er1
34450 ac_status=$?
34451 grep -v '^ *+' conftest.er1 >conftest.err
34452 rm -f conftest.er1
34453 cat conftest.err >&5
34454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); } &&
34456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34458 (eval $ac_try) 2>&5
34459 ac_status=$?
34460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461 (exit $ac_status); }; } &&
34462 { ac_try='test -s conftest$ac_exeext'
34463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34464 (eval $ac_try) 2>&5
34465 ac_status=$?
34466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34467 (exit $ac_status); }; }; then
34468 am_cv_func_iconv=yes
34469 else
34470 echo "$as_me: failed program was:" >&5
34471 sed 's/^/| /' conftest.$ac_ext >&5
34472
34473 fi
34474 rm -f conftest.err conftest.$ac_objext \
34475 conftest$ac_exeext conftest.$ac_ext
34476 if test "$am_cv_func_iconv" != yes; then
34477 am_save_LIBS="$LIBS"
34478 LIBS="$LIBS -liconv"
34479 cat >conftest.$ac_ext <<_ACEOF
34480 /* confdefs.h. */
34481 _ACEOF
34482 cat confdefs.h >>conftest.$ac_ext
34483 cat >>conftest.$ac_ext <<_ACEOF
34484 /* end confdefs.h. */
34485 #include <stdlib.h>
34486 #include <iconv.h>
34487 int
34488 main ()
34489 {
34490 iconv_t cd = iconv_open("","");
34491 iconv(cd,NULL,NULL,NULL,NULL);
34492 iconv_close(cd);
34493 ;
34494 return 0;
34495 }
34496 _ACEOF
34497 rm -f conftest.$ac_objext conftest$ac_exeext
34498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34499 (eval $ac_link) 2>conftest.er1
34500 ac_status=$?
34501 grep -v '^ *+' conftest.er1 >conftest.err
34502 rm -f conftest.er1
34503 cat conftest.err >&5
34504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505 (exit $ac_status); } &&
34506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34508 (eval $ac_try) 2>&5
34509 ac_status=$?
34510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34511 (exit $ac_status); }; } &&
34512 { ac_try='test -s conftest$ac_exeext'
34513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34514 (eval $ac_try) 2>&5
34515 ac_status=$?
34516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517 (exit $ac_status); }; }; then
34518 am_cv_lib_iconv=yes
34519 am_cv_func_iconv=yes
34520 else
34521 echo "$as_me: failed program was:" >&5
34522 sed 's/^/| /' conftest.$ac_ext >&5
34523
34524 fi
34525 rm -f conftest.err conftest.$ac_objext \
34526 conftest$ac_exeext conftest.$ac_ext
34527 LIBS="$am_save_LIBS"
34528 fi
34529
34530 fi
34531 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34532 echo "${ECHO_T}$am_cv_func_iconv" >&6
34533 if test "$am_cv_func_iconv" = yes; then
34534
34535 cat >>confdefs.h <<\_ACEOF
34536 #define HAVE_ICONV 1
34537 _ACEOF
34538
34539 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34540 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34541 if test "${wx_cv_func_iconv_const+set}" = set; then
34542 echo $ECHO_N "(cached) $ECHO_C" >&6
34543 else
34544 cat >conftest.$ac_ext <<_ACEOF
34545 /* confdefs.h. */
34546 _ACEOF
34547 cat confdefs.h >>conftest.$ac_ext
34548 cat >>conftest.$ac_ext <<_ACEOF
34549 /* end confdefs.h. */
34550
34551 #include <stdlib.h>
34552 #include <iconv.h>
34553 extern
34554 #ifdef __cplusplus
34555 "C"
34556 #endif
34557 #if defined(__STDC__) || defined(__cplusplus)
34558 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34559 #else
34560 size_t iconv();
34561 #endif
34562
34563 int
34564 main ()
34565 {
34566
34567 ;
34568 return 0;
34569 }
34570 _ACEOF
34571 rm -f conftest.$ac_objext
34572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34573 (eval $ac_compile) 2>conftest.er1
34574 ac_status=$?
34575 grep -v '^ *+' conftest.er1 >conftest.err
34576 rm -f conftest.er1
34577 cat conftest.err >&5
34578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579 (exit $ac_status); } &&
34580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34582 (eval $ac_try) 2>&5
34583 ac_status=$?
34584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34585 (exit $ac_status); }; } &&
34586 { ac_try='test -s conftest.$ac_objext'
34587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34588 (eval $ac_try) 2>&5
34589 ac_status=$?
34590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591 (exit $ac_status); }; }; then
34592 wx_cv_func_iconv_const="no"
34593 else
34594 echo "$as_me: failed program was:" >&5
34595 sed 's/^/| /' conftest.$ac_ext >&5
34596
34597 wx_cv_func_iconv_const="yes"
34598
34599 fi
34600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34601
34602 fi
34603 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34604 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34605
34606 iconv_const=
34607 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34608 iconv_const="const"
34609 fi
34610
34611
34612 cat >>confdefs.h <<_ACEOF
34613 #define ICONV_CONST $iconv_const
34614 _ACEOF
34615
34616 fi
34617 LIBICONV=
34618 if test "$am_cv_lib_iconv" = yes; then
34619 LIBICONV="-liconv"
34620 fi
34621
34622
34623 LIBS="$LIBICONV $LIBS"
34624
34625 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34626
34627 for ac_func in sigaction
34628 do
34629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34630 echo "$as_me:$LINENO: checking for $ac_func" >&5
34631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34632 if eval "test \"\${$as_ac_var+set}\" = set"; then
34633 echo $ECHO_N "(cached) $ECHO_C" >&6
34634 else
34635 cat >conftest.$ac_ext <<_ACEOF
34636 /* confdefs.h. */
34637 _ACEOF
34638 cat confdefs.h >>conftest.$ac_ext
34639 cat >>conftest.$ac_ext <<_ACEOF
34640 /* end confdefs.h. */
34641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34643 #define $ac_func innocuous_$ac_func
34644
34645 /* System header to define __stub macros and hopefully few prototypes,
34646 which can conflict with char $ac_func (); below.
34647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34648 <limits.h> exists even on freestanding compilers. */
34649
34650 #ifdef __STDC__
34651 # include <limits.h>
34652 #else
34653 # include <assert.h>
34654 #endif
34655
34656 #undef $ac_func
34657
34658 /* Override any gcc2 internal prototype to avoid an error. */
34659 #ifdef __cplusplus
34660 extern "C"
34661 {
34662 #endif
34663 /* We use char because int might match the return type of a gcc2
34664 builtin and then its argument prototype would still apply. */
34665 char $ac_func ();
34666 /* The GNU C library defines this for functions which it implements
34667 to always fail with ENOSYS. Some functions are actually named
34668 something starting with __ and the normal name is an alias. */
34669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34670 choke me
34671 #else
34672 char (*f) () = $ac_func;
34673 #endif
34674 #ifdef __cplusplus
34675 }
34676 #endif
34677
34678 int
34679 main ()
34680 {
34681 return f != $ac_func;
34682 ;
34683 return 0;
34684 }
34685 _ACEOF
34686 rm -f conftest.$ac_objext conftest$ac_exeext
34687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34688 (eval $ac_link) 2>conftest.er1
34689 ac_status=$?
34690 grep -v '^ *+' conftest.er1 >conftest.err
34691 rm -f conftest.er1
34692 cat conftest.err >&5
34693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694 (exit $ac_status); } &&
34695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34697 (eval $ac_try) 2>&5
34698 ac_status=$?
34699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34700 (exit $ac_status); }; } &&
34701 { ac_try='test -s conftest$ac_exeext'
34702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34703 (eval $ac_try) 2>&5
34704 ac_status=$?
34705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706 (exit $ac_status); }; }; then
34707 eval "$as_ac_var=yes"
34708 else
34709 echo "$as_me: failed program was:" >&5
34710 sed 's/^/| /' conftest.$ac_ext >&5
34711
34712 eval "$as_ac_var=no"
34713 fi
34714 rm -f conftest.err conftest.$ac_objext \
34715 conftest$ac_exeext conftest.$ac_ext
34716 fi
34717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34719 if test `eval echo '${'$as_ac_var'}'` = yes; then
34720 cat >>confdefs.h <<_ACEOF
34721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34722 _ACEOF
34723
34724 fi
34725 done
34726
34727
34728 if test "$ac_cv_func_sigaction" = "no"; then
34729 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34730 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34731 wxUSE_ON_FATAL_EXCEPTION=no
34732 fi
34733
34734 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34735 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34736 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34737 if test "${wx_cv_type_sa_handler+set}" = set; then
34738 echo $ECHO_N "(cached) $ECHO_C" >&6
34739 else
34740
34741 cat >conftest.$ac_ext <<_ACEOF
34742 /* confdefs.h. */
34743 _ACEOF
34744 cat confdefs.h >>conftest.$ac_ext
34745 cat >>conftest.$ac_ext <<_ACEOF
34746 /* end confdefs.h. */
34747 #include <signal.h>
34748 int
34749 main ()
34750 {
34751
34752 extern void testSigHandler(int);
34753
34754 struct sigaction sa;
34755 sa.sa_handler = testSigHandler;
34756
34757 ;
34758 return 0;
34759 }
34760 _ACEOF
34761 rm -f conftest.$ac_objext
34762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34763 (eval $ac_compile) 2>conftest.er1
34764 ac_status=$?
34765 grep -v '^ *+' conftest.er1 >conftest.err
34766 rm -f conftest.er1
34767 cat conftest.err >&5
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); } &&
34770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34772 (eval $ac_try) 2>&5
34773 ac_status=$?
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); }; } &&
34776 { ac_try='test -s conftest.$ac_objext'
34777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34778 (eval $ac_try) 2>&5
34779 ac_status=$?
34780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34781 (exit $ac_status); }; }; then
34782
34783 wx_cv_type_sa_handler=int
34784
34785 else
34786 echo "$as_me: failed program was:" >&5
34787 sed 's/^/| /' conftest.$ac_ext >&5
34788
34789
34790 wx_cv_type_sa_handler=void
34791
34792 fi
34793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34794
34795 fi
34796 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34797 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34798
34799 cat >>confdefs.h <<_ACEOF
34800 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34801 _ACEOF
34802
34803 fi
34804 fi
34805
34806 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34807 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34808 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34809 if test "${wx_cv_func_backtrace+set}" = set; then
34810 echo $ECHO_N "(cached) $ECHO_C" >&6
34811 else
34812
34813 cat >conftest.$ac_ext <<_ACEOF
34814 /* confdefs.h. */
34815 _ACEOF
34816 cat confdefs.h >>conftest.$ac_ext
34817 cat >>conftest.$ac_ext <<_ACEOF
34818 /* end confdefs.h. */
34819 #include <execinfo.h>
34820 int
34821 main ()
34822 {
34823
34824 void *trace[1];
34825 char **messages;
34826
34827 backtrace(trace, 1);
34828 messages = backtrace_symbols(trace, 1);
34829
34830 ;
34831 return 0;
34832 }
34833 _ACEOF
34834 rm -f conftest.$ac_objext
34835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34836 (eval $ac_compile) 2>conftest.er1
34837 ac_status=$?
34838 grep -v '^ *+' conftest.er1 >conftest.err
34839 rm -f conftest.er1
34840 cat conftest.err >&5
34841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842 (exit $ac_status); } &&
34843 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34845 (eval $ac_try) 2>&5
34846 ac_status=$?
34847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848 (exit $ac_status); }; } &&
34849 { ac_try='test -s conftest.$ac_objext'
34850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34851 (eval $ac_try) 2>&5
34852 ac_status=$?
34853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); }; }; then
34855 wx_cv_func_backtrace=yes
34856 else
34857 echo "$as_me: failed program was:" >&5
34858 sed 's/^/| /' conftest.$ac_ext >&5
34859
34860 wx_cv_func_backtrace=no
34861
34862 fi
34863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34864
34865
34866 fi
34867 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34868 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34869
34870
34871 if test "$wx_cv_func_backtrace" = "no"; then
34872 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34873 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34874 wxUSE_STACKWALKER=no
34875 else
34876 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34877 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34878 if test "${wx_cv_func_cxa_demangle+set}" = set; then
34879 echo $ECHO_N "(cached) $ECHO_C" >&6
34880 else
34881
34882 cat >conftest.$ac_ext <<_ACEOF
34883 /* confdefs.h. */
34884 _ACEOF
34885 cat confdefs.h >>conftest.$ac_ext
34886 cat >>conftest.$ac_ext <<_ACEOF
34887 /* end confdefs.h. */
34888 #include <cxxabi.h>
34889 int
34890 main ()
34891 {
34892
34893 int rc;
34894 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34895
34896 ;
34897 return 0;
34898 }
34899 _ACEOF
34900 rm -f conftest.$ac_objext conftest$ac_exeext
34901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34902 (eval $ac_link) 2>conftest.er1
34903 ac_status=$?
34904 grep -v '^ *+' conftest.er1 >conftest.err
34905 rm -f conftest.er1
34906 cat conftest.err >&5
34907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34908 (exit $ac_status); } &&
34909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34911 (eval $ac_try) 2>&5
34912 ac_status=$?
34913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914 (exit $ac_status); }; } &&
34915 { ac_try='test -s conftest$ac_exeext'
34916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34917 (eval $ac_try) 2>&5
34918 ac_status=$?
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); }; }; then
34921 wx_cv_func_cxa_demangle=yes
34922 else
34923 echo "$as_me: failed program was:" >&5
34924 sed 's/^/| /' conftest.$ac_ext >&5
34925
34926 wx_cv_func_cxa_demangle=no
34927
34928 fi
34929 rm -f conftest.err conftest.$ac_objext \
34930 conftest$ac_exeext conftest.$ac_ext
34931
34932
34933 fi
34934 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34935 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34936
34937 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34938 cat >>confdefs.h <<\_ACEOF
34939 #define HAVE_CXA_DEMANGLE 1
34940 _ACEOF
34941
34942 fi
34943 fi
34944 fi
34945
34946 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34947 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34948 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34949 wxUSE_STACKWALKER=no
34950 fi
34951
34952
34953
34954
34955 for ac_func in mkstemp mktemp
34956 do
34957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34958 echo "$as_me:$LINENO: checking for $ac_func" >&5
34959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34960 if eval "test \"\${$as_ac_var+set}\" = set"; then
34961 echo $ECHO_N "(cached) $ECHO_C" >&6
34962 else
34963 cat >conftest.$ac_ext <<_ACEOF
34964 /* confdefs.h. */
34965 _ACEOF
34966 cat confdefs.h >>conftest.$ac_ext
34967 cat >>conftest.$ac_ext <<_ACEOF
34968 /* end confdefs.h. */
34969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34971 #define $ac_func innocuous_$ac_func
34972
34973 /* System header to define __stub macros and hopefully few prototypes,
34974 which can conflict with char $ac_func (); below.
34975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34976 <limits.h> exists even on freestanding compilers. */
34977
34978 #ifdef __STDC__
34979 # include <limits.h>
34980 #else
34981 # include <assert.h>
34982 #endif
34983
34984 #undef $ac_func
34985
34986 /* Override any gcc2 internal prototype to avoid an error. */
34987 #ifdef __cplusplus
34988 extern "C"
34989 {
34990 #endif
34991 /* We use char because int might match the return type of a gcc2
34992 builtin and then its argument prototype would still apply. */
34993 char $ac_func ();
34994 /* The GNU C library defines this for functions which it implements
34995 to always fail with ENOSYS. Some functions are actually named
34996 something starting with __ and the normal name is an alias. */
34997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34998 choke me
34999 #else
35000 char (*f) () = $ac_func;
35001 #endif
35002 #ifdef __cplusplus
35003 }
35004 #endif
35005
35006 int
35007 main ()
35008 {
35009 return f != $ac_func;
35010 ;
35011 return 0;
35012 }
35013 _ACEOF
35014 rm -f conftest.$ac_objext conftest$ac_exeext
35015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35016 (eval $ac_link) 2>conftest.er1
35017 ac_status=$?
35018 grep -v '^ *+' conftest.er1 >conftest.err
35019 rm -f conftest.er1
35020 cat conftest.err >&5
35021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35022 (exit $ac_status); } &&
35023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35025 (eval $ac_try) 2>&5
35026 ac_status=$?
35027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35028 (exit $ac_status); }; } &&
35029 { ac_try='test -s conftest$ac_exeext'
35030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35031 (eval $ac_try) 2>&5
35032 ac_status=$?
35033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35034 (exit $ac_status); }; }; then
35035 eval "$as_ac_var=yes"
35036 else
35037 echo "$as_me: failed program was:" >&5
35038 sed 's/^/| /' conftest.$ac_ext >&5
35039
35040 eval "$as_ac_var=no"
35041 fi
35042 rm -f conftest.err conftest.$ac_objext \
35043 conftest$ac_exeext conftest.$ac_ext
35044 fi
35045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35047 if test `eval echo '${'$as_ac_var'}'` = yes; then
35048 cat >>confdefs.h <<_ACEOF
35049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35050 _ACEOF
35051 break
35052 fi
35053 done
35054
35055
35056 echo "$as_me:$LINENO: checking for statfs" >&5
35057 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35058 if test "${wx_cv_func_statfs+set}" = set; then
35059 echo $ECHO_N "(cached) $ECHO_C" >&6
35060 else
35061 cat >conftest.$ac_ext <<_ACEOF
35062 /* confdefs.h. */
35063 _ACEOF
35064 cat confdefs.h >>conftest.$ac_ext
35065 cat >>conftest.$ac_ext <<_ACEOF
35066 /* end confdefs.h. */
35067
35068 #if defined(__BSD__)
35069 #include <sys/param.h>
35070 #include <sys/mount.h>
35071 #else
35072 #include <sys/vfs.h>
35073 #endif
35074
35075 int
35076 main ()
35077 {
35078
35079 long l;
35080 struct statfs fs;
35081 statfs("/", &fs);
35082 l = fs.f_bsize;
35083 l += fs.f_blocks;
35084 l += fs.f_bavail;
35085
35086 ;
35087 return 0;
35088 }
35089 _ACEOF
35090 rm -f conftest.$ac_objext
35091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35092 (eval $ac_compile) 2>conftest.er1
35093 ac_status=$?
35094 grep -v '^ *+' conftest.er1 >conftest.err
35095 rm -f conftest.er1
35096 cat conftest.err >&5
35097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35098 (exit $ac_status); } &&
35099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35101 (eval $ac_try) 2>&5
35102 ac_status=$?
35103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35104 (exit $ac_status); }; } &&
35105 { ac_try='test -s conftest.$ac_objext'
35106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35107 (eval $ac_try) 2>&5
35108 ac_status=$?
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); }; }; then
35111 wx_cv_func_statfs=yes
35112 else
35113 echo "$as_me: failed program was:" >&5
35114 sed 's/^/| /' conftest.$ac_ext >&5
35115
35116 wx_cv_func_statfs=no
35117
35118 fi
35119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35120
35121 fi
35122 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35123 echo "${ECHO_T}$wx_cv_func_statfs" >&6
35124
35125 if test "$wx_cv_func_statfs" = "yes"; then
35126 echo "$as_me:$LINENO: checking for statfs declaration" >&5
35127 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35128 if test "${wx_cv_func_statfs_decl+set}" = set; then
35129 echo $ECHO_N "(cached) $ECHO_C" >&6
35130 else
35131 cat >conftest.$ac_ext <<_ACEOF
35132 /* confdefs.h. */
35133 _ACEOF
35134 cat confdefs.h >>conftest.$ac_ext
35135 cat >>conftest.$ac_ext <<_ACEOF
35136 /* end confdefs.h. */
35137
35138 #if defined(__BSD__)
35139 #include <sys/param.h>
35140 #include <sys/mount.h>
35141 #else
35142 #include <sys/vfs.h>
35143 #endif
35144
35145 int
35146 main ()
35147 {
35148
35149 struct statfs fs;
35150 statfs("", &fs);
35151
35152 ;
35153 return 0;
35154 }
35155 _ACEOF
35156 rm -f conftest.$ac_objext
35157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35158 (eval $ac_compile) 2>conftest.er1
35159 ac_status=$?
35160 grep -v '^ *+' conftest.er1 >conftest.err
35161 rm -f conftest.er1
35162 cat conftest.err >&5
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 (exit $ac_status); } &&
35165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35167 (eval $ac_try) 2>&5
35168 ac_status=$?
35169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35170 (exit $ac_status); }; } &&
35171 { ac_try='test -s conftest.$ac_objext'
35172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35173 (eval $ac_try) 2>&5
35174 ac_status=$?
35175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35176 (exit $ac_status); }; }; then
35177 wx_cv_func_statfs_decl=yes
35178 else
35179 echo "$as_me: failed program was:" >&5
35180 sed 's/^/| /' conftest.$ac_ext >&5
35181
35182 wx_cv_func_statfs_decl=no
35183
35184 fi
35185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35186
35187 fi
35188 echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35189 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
35190
35191 if test "$wx_cv_func_statfs_decl" = "yes"; then
35192 cat >>confdefs.h <<\_ACEOF
35193 #define HAVE_STATFS_DECL 1
35194 _ACEOF
35195
35196 fi
35197
35198 wx_cv_type_statvfs_t="struct statfs"
35199 cat >>confdefs.h <<\_ACEOF
35200 #define HAVE_STATFS 1
35201 _ACEOF
35202
35203 else
35204 echo "$as_me:$LINENO: checking for statvfs" >&5
35205 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35206 if test "${wx_cv_func_statvfs+set}" = set; then
35207 echo $ECHO_N "(cached) $ECHO_C" >&6
35208 else
35209 cat >conftest.$ac_ext <<_ACEOF
35210 /* confdefs.h. */
35211 _ACEOF
35212 cat confdefs.h >>conftest.$ac_ext
35213 cat >>conftest.$ac_ext <<_ACEOF
35214 /* end confdefs.h. */
35215
35216 #include <stddef.h>
35217 #include <sys/statvfs.h>
35218
35219 int
35220 main ()
35221 {
35222
35223 statvfs("/", NULL);
35224
35225 ;
35226 return 0;
35227 }
35228 _ACEOF
35229 rm -f conftest.$ac_objext
35230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35231 (eval $ac_compile) 2>conftest.er1
35232 ac_status=$?
35233 grep -v '^ *+' conftest.er1 >conftest.err
35234 rm -f conftest.er1
35235 cat conftest.err >&5
35236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237 (exit $ac_status); } &&
35238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35240 (eval $ac_try) 2>&5
35241 ac_status=$?
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); }; } &&
35244 { ac_try='test -s conftest.$ac_objext'
35245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35246 (eval $ac_try) 2>&5
35247 ac_status=$?
35248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249 (exit $ac_status); }; }; then
35250 wx_cv_func_statvfs=yes
35251 else
35252 echo "$as_me: failed program was:" >&5
35253 sed 's/^/| /' conftest.$ac_ext >&5
35254
35255 wx_cv_func_statvfs=no
35256
35257 fi
35258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35259
35260 fi
35261 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35262 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35263
35264 if test "$wx_cv_func_statvfs" = "yes"; then
35265 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
35266 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35267 if test "${wx_cv_type_statvfs_t+set}" = set; then
35268 echo $ECHO_N "(cached) $ECHO_C" >&6
35269 else
35270 cat >conftest.$ac_ext <<_ACEOF
35271 /* confdefs.h. */
35272 _ACEOF
35273 cat confdefs.h >>conftest.$ac_ext
35274 cat >>conftest.$ac_ext <<_ACEOF
35275 /* end confdefs.h. */
35276
35277 #include <sys/statvfs.h>
35278
35279 int
35280 main ()
35281 {
35282
35283 long l;
35284 statvfs_t fs;
35285 statvfs("/", &fs);
35286 l = fs.f_bsize;
35287 l += fs.f_blocks;
35288 l += fs.f_bavail;
35289
35290 ;
35291 return 0;
35292 }
35293 _ACEOF
35294 rm -f conftest.$ac_objext
35295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35296 (eval $ac_compile) 2>conftest.er1
35297 ac_status=$?
35298 grep -v '^ *+' conftest.er1 >conftest.err
35299 rm -f conftest.er1
35300 cat conftest.err >&5
35301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); } &&
35303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35305 (eval $ac_try) 2>&5
35306 ac_status=$?
35307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); }; } &&
35309 { ac_try='test -s conftest.$ac_objext'
35310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35311 (eval $ac_try) 2>&5
35312 ac_status=$?
35313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314 (exit $ac_status); }; }; then
35315 wx_cv_type_statvfs_t=statvfs_t
35316 else
35317 echo "$as_me: failed program was:" >&5
35318 sed 's/^/| /' conftest.$ac_ext >&5
35319
35320
35321 cat >conftest.$ac_ext <<_ACEOF
35322 /* confdefs.h. */
35323 _ACEOF
35324 cat confdefs.h >>conftest.$ac_ext
35325 cat >>conftest.$ac_ext <<_ACEOF
35326 /* end confdefs.h. */
35327
35328 #include <sys/statvfs.h>
35329
35330 int
35331 main ()
35332 {
35333
35334 long l;
35335 struct statvfs fs;
35336 statvfs("/", &fs);
35337 l = fs.f_bsize;
35338 l += fs.f_blocks;
35339 l += fs.f_bavail;
35340
35341 ;
35342 return 0;
35343 }
35344 _ACEOF
35345 rm -f conftest.$ac_objext
35346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35347 (eval $ac_compile) 2>conftest.er1
35348 ac_status=$?
35349 grep -v '^ *+' conftest.er1 >conftest.err
35350 rm -f conftest.er1
35351 cat conftest.err >&5
35352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353 (exit $ac_status); } &&
35354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35356 (eval $ac_try) 2>&5
35357 ac_status=$?
35358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359 (exit $ac_status); }; } &&
35360 { ac_try='test -s conftest.$ac_objext'
35361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35362 (eval $ac_try) 2>&5
35363 ac_status=$?
35364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35365 (exit $ac_status); }; }; then
35366 wx_cv_type_statvfs_t="struct statvfs"
35367 else
35368 echo "$as_me: failed program was:" >&5
35369 sed 's/^/| /' conftest.$ac_ext >&5
35370
35371 wx_cv_type_statvfs_t="unknown"
35372
35373 fi
35374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35375
35376
35377 fi
35378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35379
35380 fi
35381 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35382 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35383
35384 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35385 cat >>confdefs.h <<\_ACEOF
35386 #define HAVE_STATVFS 1
35387 _ACEOF
35388
35389 fi
35390 else
35391 wx_cv_type_statvfs_t="unknown"
35392 fi
35393 fi
35394
35395 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35396 cat >>confdefs.h <<_ACEOF
35397 #define WX_STATFS_T $wx_cv_type_statvfs_t
35398 _ACEOF
35399
35400 else
35401 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35402 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35403 fi
35404
35405 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35406
35407
35408 for ac_func in fcntl flock
35409 do
35410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35411 echo "$as_me:$LINENO: checking for $ac_func" >&5
35412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35413 if eval "test \"\${$as_ac_var+set}\" = set"; then
35414 echo $ECHO_N "(cached) $ECHO_C" >&6
35415 else
35416 cat >conftest.$ac_ext <<_ACEOF
35417 /* confdefs.h. */
35418 _ACEOF
35419 cat confdefs.h >>conftest.$ac_ext
35420 cat >>conftest.$ac_ext <<_ACEOF
35421 /* end confdefs.h. */
35422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35424 #define $ac_func innocuous_$ac_func
35425
35426 /* System header to define __stub macros and hopefully few prototypes,
35427 which can conflict with char $ac_func (); below.
35428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35429 <limits.h> exists even on freestanding compilers. */
35430
35431 #ifdef __STDC__
35432 # include <limits.h>
35433 #else
35434 # include <assert.h>
35435 #endif
35436
35437 #undef $ac_func
35438
35439 /* Override any gcc2 internal prototype to avoid an error. */
35440 #ifdef __cplusplus
35441 extern "C"
35442 {
35443 #endif
35444 /* We use char because int might match the return type of a gcc2
35445 builtin and then its argument prototype would still apply. */
35446 char $ac_func ();
35447 /* The GNU C library defines this for functions which it implements
35448 to always fail with ENOSYS. Some functions are actually named
35449 something starting with __ and the normal name is an alias. */
35450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35451 choke me
35452 #else
35453 char (*f) () = $ac_func;
35454 #endif
35455 #ifdef __cplusplus
35456 }
35457 #endif
35458
35459 int
35460 main ()
35461 {
35462 return f != $ac_func;
35463 ;
35464 return 0;
35465 }
35466 _ACEOF
35467 rm -f conftest.$ac_objext conftest$ac_exeext
35468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35469 (eval $ac_link) 2>conftest.er1
35470 ac_status=$?
35471 grep -v '^ *+' conftest.er1 >conftest.err
35472 rm -f conftest.er1
35473 cat conftest.err >&5
35474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475 (exit $ac_status); } &&
35476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35478 (eval $ac_try) 2>&5
35479 ac_status=$?
35480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481 (exit $ac_status); }; } &&
35482 { ac_try='test -s conftest$ac_exeext'
35483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35484 (eval $ac_try) 2>&5
35485 ac_status=$?
35486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35487 (exit $ac_status); }; }; then
35488 eval "$as_ac_var=yes"
35489 else
35490 echo "$as_me: failed program was:" >&5
35491 sed 's/^/| /' conftest.$ac_ext >&5
35492
35493 eval "$as_ac_var=no"
35494 fi
35495 rm -f conftest.err conftest.$ac_objext \
35496 conftest$ac_exeext conftest.$ac_ext
35497 fi
35498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35500 if test `eval echo '${'$as_ac_var'}'` = yes; then
35501 cat >>confdefs.h <<_ACEOF
35502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35503 _ACEOF
35504 break
35505 fi
35506 done
35507
35508
35509 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35510 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35511 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35512 wxUSE_SNGLINST_CHECKER=no
35513 fi
35514 fi
35515
35516
35517 for ac_func in timegm
35518 do
35519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35520 echo "$as_me:$LINENO: checking for $ac_func" >&5
35521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35522 if eval "test \"\${$as_ac_var+set}\" = set"; then
35523 echo $ECHO_N "(cached) $ECHO_C" >&6
35524 else
35525 cat >conftest.$ac_ext <<_ACEOF
35526 /* confdefs.h. */
35527 _ACEOF
35528 cat confdefs.h >>conftest.$ac_ext
35529 cat >>conftest.$ac_ext <<_ACEOF
35530 /* end confdefs.h. */
35531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35533 #define $ac_func innocuous_$ac_func
35534
35535 /* System header to define __stub macros and hopefully few prototypes,
35536 which can conflict with char $ac_func (); below.
35537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35538 <limits.h> exists even on freestanding compilers. */
35539
35540 #ifdef __STDC__
35541 # include <limits.h>
35542 #else
35543 # include <assert.h>
35544 #endif
35545
35546 #undef $ac_func
35547
35548 /* Override any gcc2 internal prototype to avoid an error. */
35549 #ifdef __cplusplus
35550 extern "C"
35551 {
35552 #endif
35553 /* We use char because int might match the return type of a gcc2
35554 builtin and then its argument prototype would still apply. */
35555 char $ac_func ();
35556 /* The GNU C library defines this for functions which it implements
35557 to always fail with ENOSYS. Some functions are actually named
35558 something starting with __ and the normal name is an alias. */
35559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35560 choke me
35561 #else
35562 char (*f) () = $ac_func;
35563 #endif
35564 #ifdef __cplusplus
35565 }
35566 #endif
35567
35568 int
35569 main ()
35570 {
35571 return f != $ac_func;
35572 ;
35573 return 0;
35574 }
35575 _ACEOF
35576 rm -f conftest.$ac_objext conftest$ac_exeext
35577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35578 (eval $ac_link) 2>conftest.er1
35579 ac_status=$?
35580 grep -v '^ *+' conftest.er1 >conftest.err
35581 rm -f conftest.er1
35582 cat conftest.err >&5
35583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35584 (exit $ac_status); } &&
35585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35587 (eval $ac_try) 2>&5
35588 ac_status=$?
35589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590 (exit $ac_status); }; } &&
35591 { ac_try='test -s conftest$ac_exeext'
35592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35593 (eval $ac_try) 2>&5
35594 ac_status=$?
35595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596 (exit $ac_status); }; }; then
35597 eval "$as_ac_var=yes"
35598 else
35599 echo "$as_me: failed program was:" >&5
35600 sed 's/^/| /' conftest.$ac_ext >&5
35601
35602 eval "$as_ac_var=no"
35603 fi
35604 rm -f conftest.err conftest.$ac_objext \
35605 conftest$ac_exeext conftest.$ac_ext
35606 fi
35607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35609 if test `eval echo '${'$as_ac_var'}'` = yes; then
35610 cat >>confdefs.h <<_ACEOF
35611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35612 _ACEOF
35613
35614 fi
35615 done
35616
35617
35618
35619
35620 for ac_func in putenv setenv
35621 do
35622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35623 echo "$as_me:$LINENO: checking for $ac_func" >&5
35624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35625 if eval "test \"\${$as_ac_var+set}\" = set"; then
35626 echo $ECHO_N "(cached) $ECHO_C" >&6
35627 else
35628 cat >conftest.$ac_ext <<_ACEOF
35629 /* confdefs.h. */
35630 _ACEOF
35631 cat confdefs.h >>conftest.$ac_ext
35632 cat >>conftest.$ac_ext <<_ACEOF
35633 /* end confdefs.h. */
35634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35636 #define $ac_func innocuous_$ac_func
35637
35638 /* System header to define __stub macros and hopefully few prototypes,
35639 which can conflict with char $ac_func (); below.
35640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35641 <limits.h> exists even on freestanding compilers. */
35642
35643 #ifdef __STDC__
35644 # include <limits.h>
35645 #else
35646 # include <assert.h>
35647 #endif
35648
35649 #undef $ac_func
35650
35651 /* Override any gcc2 internal prototype to avoid an error. */
35652 #ifdef __cplusplus
35653 extern "C"
35654 {
35655 #endif
35656 /* We use char because int might match the return type of a gcc2
35657 builtin and then its argument prototype would still apply. */
35658 char $ac_func ();
35659 /* The GNU C library defines this for functions which it implements
35660 to always fail with ENOSYS. Some functions are actually named
35661 something starting with __ and the normal name is an alias. */
35662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35663 choke me
35664 #else
35665 char (*f) () = $ac_func;
35666 #endif
35667 #ifdef __cplusplus
35668 }
35669 #endif
35670
35671 int
35672 main ()
35673 {
35674 return f != $ac_func;
35675 ;
35676 return 0;
35677 }
35678 _ACEOF
35679 rm -f conftest.$ac_objext conftest$ac_exeext
35680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35681 (eval $ac_link) 2>conftest.er1
35682 ac_status=$?
35683 grep -v '^ *+' conftest.er1 >conftest.err
35684 rm -f conftest.er1
35685 cat conftest.err >&5
35686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687 (exit $ac_status); } &&
35688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35690 (eval $ac_try) 2>&5
35691 ac_status=$?
35692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35693 (exit $ac_status); }; } &&
35694 { ac_try='test -s conftest$ac_exeext'
35695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35696 (eval $ac_try) 2>&5
35697 ac_status=$?
35698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35699 (exit $ac_status); }; }; then
35700 eval "$as_ac_var=yes"
35701 else
35702 echo "$as_me: failed program was:" >&5
35703 sed 's/^/| /' conftest.$ac_ext >&5
35704
35705 eval "$as_ac_var=no"
35706 fi
35707 rm -f conftest.err conftest.$ac_objext \
35708 conftest$ac_exeext conftest.$ac_ext
35709 fi
35710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35712 if test `eval echo '${'$as_ac_var'}'` = yes; then
35713 cat >>confdefs.h <<_ACEOF
35714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35715 _ACEOF
35716 break
35717 fi
35718 done
35719
35720
35721 HAVE_SOME_SLEEP_FUNC=0
35722 if test "$USE_BEOS" = 1; then
35723 cat >>confdefs.h <<\_ACEOF
35724 #define HAVE_SLEEP 1
35725 _ACEOF
35726
35727 HAVE_SOME_SLEEP_FUNC=1
35728 fi
35729
35730 if test "$USE_DARWIN" = 1; then
35731 cat >>confdefs.h <<\_ACEOF
35732 #define HAVE_USLEEP 1
35733 _ACEOF
35734
35735 HAVE_SOME_SLEEP_FUNC=1
35736 fi
35737
35738 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35739 POSIX4_LINK=
35740
35741 for ac_func in nanosleep
35742 do
35743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35744 echo "$as_me:$LINENO: checking for $ac_func" >&5
35745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35746 if eval "test \"\${$as_ac_var+set}\" = set"; then
35747 echo $ECHO_N "(cached) $ECHO_C" >&6
35748 else
35749 cat >conftest.$ac_ext <<_ACEOF
35750 /* confdefs.h. */
35751 _ACEOF
35752 cat confdefs.h >>conftest.$ac_ext
35753 cat >>conftest.$ac_ext <<_ACEOF
35754 /* end confdefs.h. */
35755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35757 #define $ac_func innocuous_$ac_func
35758
35759 /* System header to define __stub macros and hopefully few prototypes,
35760 which can conflict with char $ac_func (); below.
35761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35762 <limits.h> exists even on freestanding compilers. */
35763
35764 #ifdef __STDC__
35765 # include <limits.h>
35766 #else
35767 # include <assert.h>
35768 #endif
35769
35770 #undef $ac_func
35771
35772 /* Override any gcc2 internal prototype to avoid an error. */
35773 #ifdef __cplusplus
35774 extern "C"
35775 {
35776 #endif
35777 /* We use char because int might match the return type of a gcc2
35778 builtin and then its argument prototype would still apply. */
35779 char $ac_func ();
35780 /* The GNU C library defines this for functions which it implements
35781 to always fail with ENOSYS. Some functions are actually named
35782 something starting with __ and the normal name is an alias. */
35783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35784 choke me
35785 #else
35786 char (*f) () = $ac_func;
35787 #endif
35788 #ifdef __cplusplus
35789 }
35790 #endif
35791
35792 int
35793 main ()
35794 {
35795 return f != $ac_func;
35796 ;
35797 return 0;
35798 }
35799 _ACEOF
35800 rm -f conftest.$ac_objext conftest$ac_exeext
35801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35802 (eval $ac_link) 2>conftest.er1
35803 ac_status=$?
35804 grep -v '^ *+' conftest.er1 >conftest.err
35805 rm -f conftest.er1
35806 cat conftest.err >&5
35807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35808 (exit $ac_status); } &&
35809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35811 (eval $ac_try) 2>&5
35812 ac_status=$?
35813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35814 (exit $ac_status); }; } &&
35815 { ac_try='test -s conftest$ac_exeext'
35816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35817 (eval $ac_try) 2>&5
35818 ac_status=$?
35819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35820 (exit $ac_status); }; }; then
35821 eval "$as_ac_var=yes"
35822 else
35823 echo "$as_me: failed program was:" >&5
35824 sed 's/^/| /' conftest.$ac_ext >&5
35825
35826 eval "$as_ac_var=no"
35827 fi
35828 rm -f conftest.err conftest.$ac_objext \
35829 conftest$ac_exeext conftest.$ac_ext
35830 fi
35831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35833 if test `eval echo '${'$as_ac_var'}'` = yes; then
35834 cat >>confdefs.h <<_ACEOF
35835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35836 _ACEOF
35837 cat >>confdefs.h <<\_ACEOF
35838 #define HAVE_NANOSLEEP 1
35839 _ACEOF
35840
35841 else
35842
35843 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35844 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35845 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35846 echo $ECHO_N "(cached) $ECHO_C" >&6
35847 else
35848 ac_check_lib_save_LIBS=$LIBS
35849 LIBS="-lposix4 $LIBS"
35850 cat >conftest.$ac_ext <<_ACEOF
35851 /* confdefs.h. */
35852 _ACEOF
35853 cat confdefs.h >>conftest.$ac_ext
35854 cat >>conftest.$ac_ext <<_ACEOF
35855 /* end confdefs.h. */
35856
35857 /* Override any gcc2 internal prototype to avoid an error. */
35858 #ifdef __cplusplus
35859 extern "C"
35860 #endif
35861 /* We use char because int might match the return type of a gcc2
35862 builtin and then its argument prototype would still apply. */
35863 char nanosleep ();
35864 int
35865 main ()
35866 {
35867 nanosleep ();
35868 ;
35869 return 0;
35870 }
35871 _ACEOF
35872 rm -f conftest.$ac_objext conftest$ac_exeext
35873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35874 (eval $ac_link) 2>conftest.er1
35875 ac_status=$?
35876 grep -v '^ *+' conftest.er1 >conftest.err
35877 rm -f conftest.er1
35878 cat conftest.err >&5
35879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); } &&
35881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35883 (eval $ac_try) 2>&5
35884 ac_status=$?
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); }; } &&
35887 { ac_try='test -s conftest$ac_exeext'
35888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35889 (eval $ac_try) 2>&5
35890 ac_status=$?
35891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892 (exit $ac_status); }; }; then
35893 ac_cv_lib_posix4_nanosleep=yes
35894 else
35895 echo "$as_me: failed program was:" >&5
35896 sed 's/^/| /' conftest.$ac_ext >&5
35897
35898 ac_cv_lib_posix4_nanosleep=no
35899 fi
35900 rm -f conftest.err conftest.$ac_objext \
35901 conftest$ac_exeext conftest.$ac_ext
35902 LIBS=$ac_check_lib_save_LIBS
35903 fi
35904 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35905 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35906 if test $ac_cv_lib_posix4_nanosleep = yes; then
35907
35908 cat >>confdefs.h <<\_ACEOF
35909 #define HAVE_NANOSLEEP 1
35910 _ACEOF
35911
35912 POSIX4_LINK=" -lposix4"
35913
35914 else
35915
35916
35917 for ac_func in usleep
35918 do
35919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35920 echo "$as_me:$LINENO: checking for $ac_func" >&5
35921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35922 if eval "test \"\${$as_ac_var+set}\" = set"; then
35923 echo $ECHO_N "(cached) $ECHO_C" >&6
35924 else
35925 cat >conftest.$ac_ext <<_ACEOF
35926 /* confdefs.h. */
35927 _ACEOF
35928 cat confdefs.h >>conftest.$ac_ext
35929 cat >>conftest.$ac_ext <<_ACEOF
35930 /* end confdefs.h. */
35931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35933 #define $ac_func innocuous_$ac_func
35934
35935 /* System header to define __stub macros and hopefully few prototypes,
35936 which can conflict with char $ac_func (); below.
35937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35938 <limits.h> exists even on freestanding compilers. */
35939
35940 #ifdef __STDC__
35941 # include <limits.h>
35942 #else
35943 # include <assert.h>
35944 #endif
35945
35946 #undef $ac_func
35947
35948 /* Override any gcc2 internal prototype to avoid an error. */
35949 #ifdef __cplusplus
35950 extern "C"
35951 {
35952 #endif
35953 /* We use char because int might match the return type of a gcc2
35954 builtin and then its argument prototype would still apply. */
35955 char $ac_func ();
35956 /* The GNU C library defines this for functions which it implements
35957 to always fail with ENOSYS. Some functions are actually named
35958 something starting with __ and the normal name is an alias. */
35959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35960 choke me
35961 #else
35962 char (*f) () = $ac_func;
35963 #endif
35964 #ifdef __cplusplus
35965 }
35966 #endif
35967
35968 int
35969 main ()
35970 {
35971 return f != $ac_func;
35972 ;
35973 return 0;
35974 }
35975 _ACEOF
35976 rm -f conftest.$ac_objext conftest$ac_exeext
35977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35978 (eval $ac_link) 2>conftest.er1
35979 ac_status=$?
35980 grep -v '^ *+' conftest.er1 >conftest.err
35981 rm -f conftest.er1
35982 cat conftest.err >&5
35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984 (exit $ac_status); } &&
35985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35987 (eval $ac_try) 2>&5
35988 ac_status=$?
35989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35990 (exit $ac_status); }; } &&
35991 { ac_try='test -s conftest$ac_exeext'
35992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35993 (eval $ac_try) 2>&5
35994 ac_status=$?
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); }; }; then
35997 eval "$as_ac_var=yes"
35998 else
35999 echo "$as_me: failed program was:" >&5
36000 sed 's/^/| /' conftest.$ac_ext >&5
36001
36002 eval "$as_ac_var=no"
36003 fi
36004 rm -f conftest.err conftest.$ac_objext \
36005 conftest$ac_exeext conftest.$ac_ext
36006 fi
36007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36009 if test `eval echo '${'$as_ac_var'}'` = yes; then
36010 cat >>confdefs.h <<_ACEOF
36011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36012 _ACEOF
36013 cat >>confdefs.h <<\_ACEOF
36014 #define HAVE_USLEEP 1
36015 _ACEOF
36016
36017 else
36018 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36019 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36020
36021 fi
36022 done
36023
36024
36025
36026 fi
36027
36028
36029
36030 fi
36031 done
36032
36033 fi
36034
36035
36036
36037 for ac_func in uname gethostname
36038 do
36039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36040 echo "$as_me:$LINENO: checking for $ac_func" >&5
36041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36042 if eval "test \"\${$as_ac_var+set}\" = set"; then
36043 echo $ECHO_N "(cached) $ECHO_C" >&6
36044 else
36045 cat >conftest.$ac_ext <<_ACEOF
36046 /* confdefs.h. */
36047 _ACEOF
36048 cat confdefs.h >>conftest.$ac_ext
36049 cat >>conftest.$ac_ext <<_ACEOF
36050 /* end confdefs.h. */
36051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36053 #define $ac_func innocuous_$ac_func
36054
36055 /* System header to define __stub macros and hopefully few prototypes,
36056 which can conflict with char $ac_func (); below.
36057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36058 <limits.h> exists even on freestanding compilers. */
36059
36060 #ifdef __STDC__
36061 # include <limits.h>
36062 #else
36063 # include <assert.h>
36064 #endif
36065
36066 #undef $ac_func
36067
36068 /* Override any gcc2 internal prototype to avoid an error. */
36069 #ifdef __cplusplus
36070 extern "C"
36071 {
36072 #endif
36073 /* We use char because int might match the return type of a gcc2
36074 builtin and then its argument prototype would still apply. */
36075 char $ac_func ();
36076 /* The GNU C library defines this for functions which it implements
36077 to always fail with ENOSYS. Some functions are actually named
36078 something starting with __ and the normal name is an alias. */
36079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36080 choke me
36081 #else
36082 char (*f) () = $ac_func;
36083 #endif
36084 #ifdef __cplusplus
36085 }
36086 #endif
36087
36088 int
36089 main ()
36090 {
36091 return f != $ac_func;
36092 ;
36093 return 0;
36094 }
36095 _ACEOF
36096 rm -f conftest.$ac_objext conftest$ac_exeext
36097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36098 (eval $ac_link) 2>conftest.er1
36099 ac_status=$?
36100 grep -v '^ *+' conftest.er1 >conftest.err
36101 rm -f conftest.er1
36102 cat conftest.err >&5
36103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104 (exit $ac_status); } &&
36105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36107 (eval $ac_try) 2>&5
36108 ac_status=$?
36109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36110 (exit $ac_status); }; } &&
36111 { ac_try='test -s conftest$ac_exeext'
36112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36113 (eval $ac_try) 2>&5
36114 ac_status=$?
36115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36116 (exit $ac_status); }; }; then
36117 eval "$as_ac_var=yes"
36118 else
36119 echo "$as_me: failed program was:" >&5
36120 sed 's/^/| /' conftest.$ac_ext >&5
36121
36122 eval "$as_ac_var=no"
36123 fi
36124 rm -f conftest.err conftest.$ac_objext \
36125 conftest$ac_exeext conftest.$ac_ext
36126 fi
36127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36129 if test `eval echo '${'$as_ac_var'}'` = yes; then
36130 cat >>confdefs.h <<_ACEOF
36131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36132 _ACEOF
36133 break
36134 fi
36135 done
36136
36137
36138
36139 for ac_func in strtok_r
36140 do
36141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36142 echo "$as_me:$LINENO: checking for $ac_func" >&5
36143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36144 if eval "test \"\${$as_ac_var+set}\" = set"; then
36145 echo $ECHO_N "(cached) $ECHO_C" >&6
36146 else
36147 cat >conftest.$ac_ext <<_ACEOF
36148 /* confdefs.h. */
36149 _ACEOF
36150 cat confdefs.h >>conftest.$ac_ext
36151 cat >>conftest.$ac_ext <<_ACEOF
36152 /* end confdefs.h. */
36153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36155 #define $ac_func innocuous_$ac_func
36156
36157 /* System header to define __stub macros and hopefully few prototypes,
36158 which can conflict with char $ac_func (); below.
36159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36160 <limits.h> exists even on freestanding compilers. */
36161
36162 #ifdef __STDC__
36163 # include <limits.h>
36164 #else
36165 # include <assert.h>
36166 #endif
36167
36168 #undef $ac_func
36169
36170 /* Override any gcc2 internal prototype to avoid an error. */
36171 #ifdef __cplusplus
36172 extern "C"
36173 {
36174 #endif
36175 /* We use char because int might match the return type of a gcc2
36176 builtin and then its argument prototype would still apply. */
36177 char $ac_func ();
36178 /* The GNU C library defines this for functions which it implements
36179 to always fail with ENOSYS. Some functions are actually named
36180 something starting with __ and the normal name is an alias. */
36181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36182 choke me
36183 #else
36184 char (*f) () = $ac_func;
36185 #endif
36186 #ifdef __cplusplus
36187 }
36188 #endif
36189
36190 int
36191 main ()
36192 {
36193 return f != $ac_func;
36194 ;
36195 return 0;
36196 }
36197 _ACEOF
36198 rm -f conftest.$ac_objext conftest$ac_exeext
36199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36200 (eval $ac_link) 2>conftest.er1
36201 ac_status=$?
36202 grep -v '^ *+' conftest.er1 >conftest.err
36203 rm -f conftest.er1
36204 cat conftest.err >&5
36205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206 (exit $ac_status); } &&
36207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36209 (eval $ac_try) 2>&5
36210 ac_status=$?
36211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212 (exit $ac_status); }; } &&
36213 { ac_try='test -s conftest$ac_exeext'
36214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36215 (eval $ac_try) 2>&5
36216 ac_status=$?
36217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218 (exit $ac_status); }; }; then
36219 eval "$as_ac_var=yes"
36220 else
36221 echo "$as_me: failed program was:" >&5
36222 sed 's/^/| /' conftest.$ac_ext >&5
36223
36224 eval "$as_ac_var=no"
36225 fi
36226 rm -f conftest.err conftest.$ac_objext \
36227 conftest$ac_exeext conftest.$ac_ext
36228 fi
36229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36231 if test `eval echo '${'$as_ac_var'}'` = yes; then
36232 cat >>confdefs.h <<_ACEOF
36233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36234 _ACEOF
36235
36236 fi
36237 done
36238
36239
36240 INET_LINK=
36241
36242 for ac_func in inet_addr
36243 do
36244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36245 echo "$as_me:$LINENO: checking for $ac_func" >&5
36246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36247 if eval "test \"\${$as_ac_var+set}\" = set"; then
36248 echo $ECHO_N "(cached) $ECHO_C" >&6
36249 else
36250 cat >conftest.$ac_ext <<_ACEOF
36251 /* confdefs.h. */
36252 _ACEOF
36253 cat confdefs.h >>conftest.$ac_ext
36254 cat >>conftest.$ac_ext <<_ACEOF
36255 /* end confdefs.h. */
36256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36258 #define $ac_func innocuous_$ac_func
36259
36260 /* System header to define __stub macros and hopefully few prototypes,
36261 which can conflict with char $ac_func (); below.
36262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36263 <limits.h> exists even on freestanding compilers. */
36264
36265 #ifdef __STDC__
36266 # include <limits.h>
36267 #else
36268 # include <assert.h>
36269 #endif
36270
36271 #undef $ac_func
36272
36273 /* Override any gcc2 internal prototype to avoid an error. */
36274 #ifdef __cplusplus
36275 extern "C"
36276 {
36277 #endif
36278 /* We use char because int might match the return type of a gcc2
36279 builtin and then its argument prototype would still apply. */
36280 char $ac_func ();
36281 /* The GNU C library defines this for functions which it implements
36282 to always fail with ENOSYS. Some functions are actually named
36283 something starting with __ and the normal name is an alias. */
36284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36285 choke me
36286 #else
36287 char (*f) () = $ac_func;
36288 #endif
36289 #ifdef __cplusplus
36290 }
36291 #endif
36292
36293 int
36294 main ()
36295 {
36296 return f != $ac_func;
36297 ;
36298 return 0;
36299 }
36300 _ACEOF
36301 rm -f conftest.$ac_objext conftest$ac_exeext
36302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36303 (eval $ac_link) 2>conftest.er1
36304 ac_status=$?
36305 grep -v '^ *+' conftest.er1 >conftest.err
36306 rm -f conftest.er1
36307 cat conftest.err >&5
36308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36309 (exit $ac_status); } &&
36310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36312 (eval $ac_try) 2>&5
36313 ac_status=$?
36314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); }; } &&
36316 { ac_try='test -s conftest$ac_exeext'
36317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36318 (eval $ac_try) 2>&5
36319 ac_status=$?
36320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36321 (exit $ac_status); }; }; then
36322 eval "$as_ac_var=yes"
36323 else
36324 echo "$as_me: failed program was:" >&5
36325 sed 's/^/| /' conftest.$ac_ext >&5
36326
36327 eval "$as_ac_var=no"
36328 fi
36329 rm -f conftest.err conftest.$ac_objext \
36330 conftest$ac_exeext conftest.$ac_ext
36331 fi
36332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36334 if test `eval echo '${'$as_ac_var'}'` = yes; then
36335 cat >>confdefs.h <<_ACEOF
36336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36337 _ACEOF
36338 cat >>confdefs.h <<\_ACEOF
36339 #define HAVE_INET_ADDR 1
36340 _ACEOF
36341
36342 else
36343
36344 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36345 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36346 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36347 echo $ECHO_N "(cached) $ECHO_C" >&6
36348 else
36349 ac_check_lib_save_LIBS=$LIBS
36350 LIBS="-lnsl $LIBS"
36351 cat >conftest.$ac_ext <<_ACEOF
36352 /* confdefs.h. */
36353 _ACEOF
36354 cat confdefs.h >>conftest.$ac_ext
36355 cat >>conftest.$ac_ext <<_ACEOF
36356 /* end confdefs.h. */
36357
36358 /* Override any gcc2 internal prototype to avoid an error. */
36359 #ifdef __cplusplus
36360 extern "C"
36361 #endif
36362 /* We use char because int might match the return type of a gcc2
36363 builtin and then its argument prototype would still apply. */
36364 char inet_addr ();
36365 int
36366 main ()
36367 {
36368 inet_addr ();
36369 ;
36370 return 0;
36371 }
36372 _ACEOF
36373 rm -f conftest.$ac_objext conftest$ac_exeext
36374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36375 (eval $ac_link) 2>conftest.er1
36376 ac_status=$?
36377 grep -v '^ *+' conftest.er1 >conftest.err
36378 rm -f conftest.er1
36379 cat conftest.err >&5
36380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381 (exit $ac_status); } &&
36382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36384 (eval $ac_try) 2>&5
36385 ac_status=$?
36386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387 (exit $ac_status); }; } &&
36388 { ac_try='test -s conftest$ac_exeext'
36389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36390 (eval $ac_try) 2>&5
36391 ac_status=$?
36392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393 (exit $ac_status); }; }; then
36394 ac_cv_lib_nsl_inet_addr=yes
36395 else
36396 echo "$as_me: failed program was:" >&5
36397 sed 's/^/| /' conftest.$ac_ext >&5
36398
36399 ac_cv_lib_nsl_inet_addr=no
36400 fi
36401 rm -f conftest.err conftest.$ac_objext \
36402 conftest$ac_exeext conftest.$ac_ext
36403 LIBS=$ac_check_lib_save_LIBS
36404 fi
36405 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36406 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36407 if test $ac_cv_lib_nsl_inet_addr = yes; then
36408 INET_LINK="nsl"
36409 else
36410
36411 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36412 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36413 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36414 echo $ECHO_N "(cached) $ECHO_C" >&6
36415 else
36416 ac_check_lib_save_LIBS=$LIBS
36417 LIBS="-lresolv $LIBS"
36418 cat >conftest.$ac_ext <<_ACEOF
36419 /* confdefs.h. */
36420 _ACEOF
36421 cat confdefs.h >>conftest.$ac_ext
36422 cat >>conftest.$ac_ext <<_ACEOF
36423 /* end confdefs.h. */
36424
36425 /* Override any gcc2 internal prototype to avoid an error. */
36426 #ifdef __cplusplus
36427 extern "C"
36428 #endif
36429 /* We use char because int might match the return type of a gcc2
36430 builtin and then its argument prototype would still apply. */
36431 char inet_addr ();
36432 int
36433 main ()
36434 {
36435 inet_addr ();
36436 ;
36437 return 0;
36438 }
36439 _ACEOF
36440 rm -f conftest.$ac_objext conftest$ac_exeext
36441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36442 (eval $ac_link) 2>conftest.er1
36443 ac_status=$?
36444 grep -v '^ *+' conftest.er1 >conftest.err
36445 rm -f conftest.er1
36446 cat conftest.err >&5
36447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36448 (exit $ac_status); } &&
36449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36451 (eval $ac_try) 2>&5
36452 ac_status=$?
36453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36454 (exit $ac_status); }; } &&
36455 { ac_try='test -s conftest$ac_exeext'
36456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36457 (eval $ac_try) 2>&5
36458 ac_status=$?
36459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460 (exit $ac_status); }; }; then
36461 ac_cv_lib_resolv_inet_addr=yes
36462 else
36463 echo "$as_me: failed program was:" >&5
36464 sed 's/^/| /' conftest.$ac_ext >&5
36465
36466 ac_cv_lib_resolv_inet_addr=no
36467 fi
36468 rm -f conftest.err conftest.$ac_objext \
36469 conftest$ac_exeext conftest.$ac_ext
36470 LIBS=$ac_check_lib_save_LIBS
36471 fi
36472 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36473 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36474 if test $ac_cv_lib_resolv_inet_addr = yes; then
36475 INET_LINK="resolv"
36476 else
36477
36478 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36479 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36480 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36481 echo $ECHO_N "(cached) $ECHO_C" >&6
36482 else
36483 ac_check_lib_save_LIBS=$LIBS
36484 LIBS="-lsocket $LIBS"
36485 cat >conftest.$ac_ext <<_ACEOF
36486 /* confdefs.h. */
36487 _ACEOF
36488 cat confdefs.h >>conftest.$ac_ext
36489 cat >>conftest.$ac_ext <<_ACEOF
36490 /* end confdefs.h. */
36491
36492 /* Override any gcc2 internal prototype to avoid an error. */
36493 #ifdef __cplusplus
36494 extern "C"
36495 #endif
36496 /* We use char because int might match the return type of a gcc2
36497 builtin and then its argument prototype would still apply. */
36498 char inet_addr ();
36499 int
36500 main ()
36501 {
36502 inet_addr ();
36503 ;
36504 return 0;
36505 }
36506 _ACEOF
36507 rm -f conftest.$ac_objext conftest$ac_exeext
36508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36509 (eval $ac_link) 2>conftest.er1
36510 ac_status=$?
36511 grep -v '^ *+' conftest.er1 >conftest.err
36512 rm -f conftest.er1
36513 cat conftest.err >&5
36514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36515 (exit $ac_status); } &&
36516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36518 (eval $ac_try) 2>&5
36519 ac_status=$?
36520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36521 (exit $ac_status); }; } &&
36522 { ac_try='test -s conftest$ac_exeext'
36523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36524 (eval $ac_try) 2>&5
36525 ac_status=$?
36526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527 (exit $ac_status); }; }; then
36528 ac_cv_lib_socket_inet_addr=yes
36529 else
36530 echo "$as_me: failed program was:" >&5
36531 sed 's/^/| /' conftest.$ac_ext >&5
36532
36533 ac_cv_lib_socket_inet_addr=no
36534 fi
36535 rm -f conftest.err conftest.$ac_objext \
36536 conftest$ac_exeext conftest.$ac_ext
36537 LIBS=$ac_check_lib_save_LIBS
36538 fi
36539 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36540 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36541 if test $ac_cv_lib_socket_inet_addr = yes; then
36542 INET_LINK="socket"
36543
36544 fi
36545
36546
36547
36548 fi
36549
36550
36551
36552 fi
36553
36554
36555
36556 fi
36557 done
36558
36559
36560
36561 for ac_func in inet_aton
36562 do
36563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36564 echo "$as_me:$LINENO: checking for $ac_func" >&5
36565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36566 if eval "test \"\${$as_ac_var+set}\" = set"; then
36567 echo $ECHO_N "(cached) $ECHO_C" >&6
36568 else
36569 cat >conftest.$ac_ext <<_ACEOF
36570 /* confdefs.h. */
36571 _ACEOF
36572 cat confdefs.h >>conftest.$ac_ext
36573 cat >>conftest.$ac_ext <<_ACEOF
36574 /* end confdefs.h. */
36575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36577 #define $ac_func innocuous_$ac_func
36578
36579 /* System header to define __stub macros and hopefully few prototypes,
36580 which can conflict with char $ac_func (); below.
36581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36582 <limits.h> exists even on freestanding compilers. */
36583
36584 #ifdef __STDC__
36585 # include <limits.h>
36586 #else
36587 # include <assert.h>
36588 #endif
36589
36590 #undef $ac_func
36591
36592 /* Override any gcc2 internal prototype to avoid an error. */
36593 #ifdef __cplusplus
36594 extern "C"
36595 {
36596 #endif
36597 /* We use char because int might match the return type of a gcc2
36598 builtin and then its argument prototype would still apply. */
36599 char $ac_func ();
36600 /* The GNU C library defines this for functions which it implements
36601 to always fail with ENOSYS. Some functions are actually named
36602 something starting with __ and the normal name is an alias. */
36603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36604 choke me
36605 #else
36606 char (*f) () = $ac_func;
36607 #endif
36608 #ifdef __cplusplus
36609 }
36610 #endif
36611
36612 int
36613 main ()
36614 {
36615 return f != $ac_func;
36616 ;
36617 return 0;
36618 }
36619 _ACEOF
36620 rm -f conftest.$ac_objext conftest$ac_exeext
36621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36622 (eval $ac_link) 2>conftest.er1
36623 ac_status=$?
36624 grep -v '^ *+' conftest.er1 >conftest.err
36625 rm -f conftest.er1
36626 cat conftest.err >&5
36627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628 (exit $ac_status); } &&
36629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36631 (eval $ac_try) 2>&5
36632 ac_status=$?
36633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634 (exit $ac_status); }; } &&
36635 { ac_try='test -s conftest$ac_exeext'
36636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36637 (eval $ac_try) 2>&5
36638 ac_status=$?
36639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640 (exit $ac_status); }; }; then
36641 eval "$as_ac_var=yes"
36642 else
36643 echo "$as_me: failed program was:" >&5
36644 sed 's/^/| /' conftest.$ac_ext >&5
36645
36646 eval "$as_ac_var=no"
36647 fi
36648 rm -f conftest.err conftest.$ac_objext \
36649 conftest$ac_exeext conftest.$ac_ext
36650 fi
36651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36653 if test `eval echo '${'$as_ac_var'}'` = yes; then
36654 cat >>confdefs.h <<_ACEOF
36655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36656 _ACEOF
36657 cat >>confdefs.h <<\_ACEOF
36658 #define HAVE_INET_ATON 1
36659 _ACEOF
36660
36661 else
36662
36663 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36664 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36665 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36666 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36667 echo $ECHO_N "(cached) $ECHO_C" >&6
36668 else
36669 ac_check_lib_save_LIBS=$LIBS
36670 LIBS="-l$INET_LINK $LIBS"
36671 cat >conftest.$ac_ext <<_ACEOF
36672 /* confdefs.h. */
36673 _ACEOF
36674 cat confdefs.h >>conftest.$ac_ext
36675 cat >>conftest.$ac_ext <<_ACEOF
36676 /* end confdefs.h. */
36677
36678 /* Override any gcc2 internal prototype to avoid an error. */
36679 #ifdef __cplusplus
36680 extern "C"
36681 #endif
36682 /* We use char because int might match the return type of a gcc2
36683 builtin and then its argument prototype would still apply. */
36684 char inet_aton ();
36685 int
36686 main ()
36687 {
36688 inet_aton ();
36689 ;
36690 return 0;
36691 }
36692 _ACEOF
36693 rm -f conftest.$ac_objext conftest$ac_exeext
36694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36695 (eval $ac_link) 2>conftest.er1
36696 ac_status=$?
36697 grep -v '^ *+' conftest.er1 >conftest.err
36698 rm -f conftest.er1
36699 cat conftest.err >&5
36700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701 (exit $ac_status); } &&
36702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36704 (eval $ac_try) 2>&5
36705 ac_status=$?
36706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); }; } &&
36708 { ac_try='test -s conftest$ac_exeext'
36709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36710 (eval $ac_try) 2>&5
36711 ac_status=$?
36712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713 (exit $ac_status); }; }; then
36714 eval "$as_ac_Lib=yes"
36715 else
36716 echo "$as_me: failed program was:" >&5
36717 sed 's/^/| /' conftest.$ac_ext >&5
36718
36719 eval "$as_ac_Lib=no"
36720 fi
36721 rm -f conftest.err conftest.$ac_objext \
36722 conftest$ac_exeext conftest.$ac_ext
36723 LIBS=$ac_check_lib_save_LIBS
36724 fi
36725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36726 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36727 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36728 cat >>confdefs.h <<\_ACEOF
36729 #define HAVE_INET_ATON 1
36730 _ACEOF
36731
36732 fi
36733
36734
36735 fi
36736 done
36737
36738
36739 if test "x$INET_LINK" != "x"; then
36740 cat >>confdefs.h <<\_ACEOF
36741 #define HAVE_INET_ADDR 1
36742 _ACEOF
36743
36744 INET_LINK=" -l$INET_LINK"
36745 fi
36746
36747 fi
36748
36749
36750
36751 EXTRALIBS_ESD=
36752 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36753 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36754 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36755 echo $ECHO_N "(cached) $ECHO_C" >&6
36756 else
36757 ac_check_lib_save_LIBS=$LIBS
36758 LIBS="-lesd $LIBS"
36759 cat >conftest.$ac_ext <<_ACEOF
36760 /* confdefs.h. */
36761 _ACEOF
36762 cat confdefs.h >>conftest.$ac_ext
36763 cat >>conftest.$ac_ext <<_ACEOF
36764 /* end confdefs.h. */
36765
36766 /* Override any gcc2 internal prototype to avoid an error. */
36767 #ifdef __cplusplus
36768 extern "C"
36769 #endif
36770 /* We use char because int might match the return type of a gcc2
36771 builtin and then its argument prototype would still apply. */
36772 char esd_close ();
36773 int
36774 main ()
36775 {
36776 esd_close ();
36777 ;
36778 return 0;
36779 }
36780 _ACEOF
36781 rm -f conftest.$ac_objext conftest$ac_exeext
36782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36783 (eval $ac_link) 2>conftest.er1
36784 ac_status=$?
36785 grep -v '^ *+' conftest.er1 >conftest.err
36786 rm -f conftest.er1
36787 cat conftest.err >&5
36788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789 (exit $ac_status); } &&
36790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36792 (eval $ac_try) 2>&5
36793 ac_status=$?
36794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36795 (exit $ac_status); }; } &&
36796 { ac_try='test -s conftest$ac_exeext'
36797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36798 (eval $ac_try) 2>&5
36799 ac_status=$?
36800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36801 (exit $ac_status); }; }; then
36802 ac_cv_lib_esd_esd_close=yes
36803 else
36804 echo "$as_me: failed program was:" >&5
36805 sed 's/^/| /' conftest.$ac_ext >&5
36806
36807 ac_cv_lib_esd_esd_close=no
36808 fi
36809 rm -f conftest.err conftest.$ac_objext \
36810 conftest$ac_exeext conftest.$ac_ext
36811 LIBS=$ac_check_lib_save_LIBS
36812 fi
36813 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36814 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36815 if test $ac_cv_lib_esd_esd_close = yes; then
36816
36817
36818 for ac_header in esd.h
36819 do
36820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36822 echo "$as_me:$LINENO: checking for $ac_header" >&5
36823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36825 echo $ECHO_N "(cached) $ECHO_C" >&6
36826 fi
36827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36829 else
36830 # Is the header compilable?
36831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36833 cat >conftest.$ac_ext <<_ACEOF
36834 /* confdefs.h. */
36835 _ACEOF
36836 cat confdefs.h >>conftest.$ac_ext
36837 cat >>conftest.$ac_ext <<_ACEOF
36838 /* end confdefs.h. */
36839 $ac_includes_default
36840 #include <$ac_header>
36841 _ACEOF
36842 rm -f conftest.$ac_objext
36843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36844 (eval $ac_compile) 2>conftest.er1
36845 ac_status=$?
36846 grep -v '^ *+' conftest.er1 >conftest.err
36847 rm -f conftest.er1
36848 cat conftest.err >&5
36849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850 (exit $ac_status); } &&
36851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36853 (eval $ac_try) 2>&5
36854 ac_status=$?
36855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36856 (exit $ac_status); }; } &&
36857 { ac_try='test -s conftest.$ac_objext'
36858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36859 (eval $ac_try) 2>&5
36860 ac_status=$?
36861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862 (exit $ac_status); }; }; then
36863 ac_header_compiler=yes
36864 else
36865 echo "$as_me: failed program was:" >&5
36866 sed 's/^/| /' conftest.$ac_ext >&5
36867
36868 ac_header_compiler=no
36869 fi
36870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36872 echo "${ECHO_T}$ac_header_compiler" >&6
36873
36874 # Is the header present?
36875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36877 cat >conftest.$ac_ext <<_ACEOF
36878 /* confdefs.h. */
36879 _ACEOF
36880 cat confdefs.h >>conftest.$ac_ext
36881 cat >>conftest.$ac_ext <<_ACEOF
36882 /* end confdefs.h. */
36883 #include <$ac_header>
36884 _ACEOF
36885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36887 ac_status=$?
36888 grep -v '^ *+' conftest.er1 >conftest.err
36889 rm -f conftest.er1
36890 cat conftest.err >&5
36891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36892 (exit $ac_status); } >/dev/null; then
36893 if test -s conftest.err; then
36894 ac_cpp_err=$ac_cxx_preproc_warn_flag
36895 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
36896 else
36897 ac_cpp_err=
36898 fi
36899 else
36900 ac_cpp_err=yes
36901 fi
36902 if test -z "$ac_cpp_err"; then
36903 ac_header_preproc=yes
36904 else
36905 echo "$as_me: failed program was:" >&5
36906 sed 's/^/| /' conftest.$ac_ext >&5
36907
36908 ac_header_preproc=no
36909 fi
36910 rm -f conftest.err conftest.$ac_ext
36911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36912 echo "${ECHO_T}$ac_header_preproc" >&6
36913
36914 # So? What about this header?
36915 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
36916 yes:no: )
36917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36921 ac_header_preproc=yes
36922 ;;
36923 no:yes:* )
36924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36936 (
36937 cat <<\_ASBOX
36938 ## ----------------------------------------- ##
36939 ## Report this to wx-dev@lists.wxwidgets.org ##
36940 ## ----------------------------------------- ##
36941 _ASBOX
36942 ) |
36943 sed "s/^/$as_me: WARNING: /" >&2
36944 ;;
36945 esac
36946 echo "$as_me:$LINENO: checking for $ac_header" >&5
36947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36949 echo $ECHO_N "(cached) $ECHO_C" >&6
36950 else
36951 eval "$as_ac_Header=\$ac_header_preproc"
36952 fi
36953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36955
36956 fi
36957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36958 cat >>confdefs.h <<_ACEOF
36959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36960 _ACEOF
36961
36962 EXTRALIBS_ESD="-lesd"
36963
36964 fi
36965
36966 done
36967
36968
36969 fi
36970
36971
36972
36973 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36974 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36975 cat >conftest.$ac_ext <<_ACEOF
36976 /* confdefs.h. */
36977 _ACEOF
36978 cat confdefs.h >>conftest.$ac_ext
36979 cat >>conftest.$ac_ext <<_ACEOF
36980 /* end confdefs.h. */
36981 #ifdef __linux__
36982 #include <linux/cdrom.h>
36983 #else
36984 /* For Solaris */
36985 #include <sys/cdio.h>
36986 #endif
36987
36988 int
36989 main ()
36990 {
36991 struct cdrom_tocentry entry, old_entry;
36992 ;
36993 return 0;
36994 }
36995 _ACEOF
36996 rm -f conftest.$ac_objext
36997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36998 (eval $ac_compile) 2>conftest.er1
36999 ac_status=$?
37000 grep -v '^ *+' conftest.er1 >conftest.err
37001 rm -f conftest.er1
37002 cat conftest.err >&5
37003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37004 (exit $ac_status); } &&
37005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37007 (eval $ac_try) 2>&5
37008 ac_status=$?
37009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010 (exit $ac_status); }; } &&
37011 { ac_try='test -s conftest.$ac_objext'
37012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37013 (eval $ac_try) 2>&5
37014 ac_status=$?
37015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37016 (exit $ac_status); }; }; then
37017 echo "$as_me:$LINENO: result: yes" >&5
37018 echo "${ECHO_T}yes" >&6
37019 cat >>confdefs.h <<\_ACEOF
37020 #define HAVE_KNOWN_CDROM_INTERFACE 1
37021 _ACEOF
37022
37023 else
37024 echo "$as_me: failed program was:" >&5
37025 sed 's/^/| /' conftest.$ac_ext >&5
37026
37027 echo "$as_me:$LINENO: result: no" >&5
37028 echo "${ECHO_T}no" >&6
37029 fi
37030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37031
37032
37033 cat >confcache <<\_ACEOF
37034 # This file is a shell script that caches the results of configure
37035 # tests run on this system so they can be shared between configure
37036 # scripts and configure runs, see configure's option --config-cache.
37037 # It is not useful on other systems. If it contains results you don't
37038 # want to keep, you may remove or edit it.
37039 #
37040 # config.status only pays attention to the cache file if you give it
37041 # the --recheck option to rerun configure.
37042 #
37043 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37044 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37045 # following values.
37046
37047 _ACEOF
37048
37049 # The following way of writing the cache mishandles newlines in values,
37050 # but we know of no workaround that is simple, portable, and efficient.
37051 # So, don't put newlines in cache variables' values.
37052 # Ultrix sh set writes to stderr and can't be redirected directly,
37053 # and sets the high bit in the cache file unless we assign to the vars.
37054 {
37055 (set) 2>&1 |
37056 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37057 *ac_space=\ *)
37058 # `set' does not quote correctly, so add quotes (double-quote
37059 # substitution turns \\\\ into \\, and sed turns \\ into \).
37060 sed -n \
37061 "s/'/'\\\\''/g;
37062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37063 ;;
37064 *)
37065 # `set' quotes correctly as required by POSIX, so do not add quotes.
37066 sed -n \
37067 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
37068 ;;
37069 esac;
37070 } |
37071 sed '
37072 t clear
37073 : clear
37074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37075 t end
37076 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37077 : end' >>confcache
37078 if diff $cache_file confcache >/dev/null 2>&1; then :; else
37079 if test -w $cache_file; then
37080 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37081 cat confcache >$cache_file
37082 else
37083 echo "not updating unwritable cache $cache_file"
37084 fi
37085 fi
37086 rm -f confcache
37087
37088
37089 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37090
37091
37092 THREADS_LINK=
37093 THREADS_CXXFLAGS=
37094
37095 if test "$wxUSE_THREADS" = "yes" ; then
37096 if test "$USE_BEOS" = 1; then
37097 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37098 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37099 wxUSE_THREADS="no"
37100 fi
37101 fi
37102
37103 if test "$wxUSE_THREADS" = "yes" ; then
37104
37105
37106 THREAD_OPTS="-pthread"
37107 case "${host}" in
37108 *-*-solaris2* | *-*-sunos4* )
37109 if test "x$GCC" = "xyes"; then
37110 THREAD_OPTS="-pthreads $THREAD_OPTS"
37111 else
37112 THREAD_OPTS="-mt $THREAD_OPTS"
37113 fi
37114 ;;
37115 *-*-freebsd*)
37116 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37117 ;;
37118 *-*-darwin* | *-*-cygwin* )
37119 THREAD_OPTS=""
37120 ;;
37121 *-*-aix*)
37122 THREAD_OPTS="pthreads"
37123 ;;
37124 *-hp-hpux* )
37125 if test "x$GCC" = "xyes"; then
37126 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37127 THREAD_OPTS=""
37128 else
37129 THREAD_OPTS="-mt"
37130 fi
37131 ;;
37132
37133 *-*-irix* )
37134 if test "x$GCC" = "xyes"; then
37135 THREAD_OPTS=""
37136 fi
37137 ;;
37138
37139 *-*-*UnixWare*)
37140 if test "x$GCC" != "xyes"; then
37141 THREAD_OPTS="-Ethread"
37142 fi
37143 ;;
37144 esac
37145
37146 THREAD_OPTS="$THREAD_OPTS pthread none"
37147
37148 THREADS_OK=no
37149 for flag in $THREAD_OPTS; do
37150 case $flag in
37151 none)
37152 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37153 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37154 ;;
37155
37156 -*)
37157 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37158 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
37159 THREADS_CXXFLAGS="$flag"
37160 ;;
37161
37162 *)
37163 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37164 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37165 THREADS_LINK="-l$flag"
37166 ;;
37167 esac
37168
37169 save_LIBS="$LIBS"
37170 save_CXXFLAGS="$CXXFLAGS"
37171 LIBS="$THREADS_LINK $LIBS"
37172 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
37173
37174 cat >conftest.$ac_ext <<_ACEOF
37175 /* confdefs.h. */
37176 _ACEOF
37177 cat confdefs.h >>conftest.$ac_ext
37178 cat >>conftest.$ac_ext <<_ACEOF
37179 /* end confdefs.h. */
37180 #include <pthread.h>
37181 int
37182 main ()
37183 {
37184 pthread_create(0,0,0,0);
37185 ;
37186 return 0;
37187 }
37188 _ACEOF
37189 rm -f conftest.$ac_objext conftest$ac_exeext
37190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37191 (eval $ac_link) 2>conftest.er1
37192 ac_status=$?
37193 grep -v '^ *+' conftest.er1 >conftest.err
37194 rm -f conftest.er1
37195 cat conftest.err >&5
37196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37197 (exit $ac_status); } &&
37198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37200 (eval $ac_try) 2>&5
37201 ac_status=$?
37202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37203 (exit $ac_status); }; } &&
37204 { ac_try='test -s conftest$ac_exeext'
37205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37206 (eval $ac_try) 2>&5
37207 ac_status=$?
37208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37209 (exit $ac_status); }; }; then
37210 THREADS_OK=yes
37211 else
37212 echo "$as_me: failed program was:" >&5
37213 sed 's/^/| /' conftest.$ac_ext >&5
37214
37215 fi
37216 rm -f conftest.err conftest.$ac_objext \
37217 conftest$ac_exeext conftest.$ac_ext
37218
37219 LIBS="$save_LIBS"
37220 CXXFLAGS="$save_CXXFLAGS"
37221
37222 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37223 echo "${ECHO_T}$THREADS_OK" >&6
37224 if test "x$THREADS_OK" = "xyes"; then
37225 break;
37226 fi
37227
37228 THREADS_LINK=""
37229 THREADS_CXXFLAGS=""
37230 done
37231
37232 if test "x$THREADS_OK" != "xyes"; then
37233 wxUSE_THREADS=no
37234 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37235 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37236 else
37237 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
37238 LIBS="$THREADS_LINK $LIBS"
37239
37240 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37241 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37242 flag=no
37243 case "${host}" in
37244 *-aix*)
37245 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37246 flag="-D_THREAD_SAFE"
37247 ;;
37248 *-freebsd*)
37249 flag="-D_THREAD_SAFE"
37250 ;;
37251 *-hp-hpux* )
37252 flag="-D_REENTRANT"
37253 if test "x$GCC" != "xyes"; then
37254 flag="$flag -D_RWSTD_MULTI_THREAD"
37255 fi
37256 ;;
37257 *solaris* | alpha*-osf*)
37258 flag="-D_REENTRANT"
37259 ;;
37260 esac
37261 echo "$as_me:$LINENO: result: ${flag}" >&5
37262 echo "${ECHO_T}${flag}" >&6
37263 if test "x$flag" != xno; then
37264 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
37265 fi
37266
37267 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
37268 fi
37269 fi
37270
37271 if test "$wxUSE_THREADS" = "yes" ; then
37272
37273 for ac_func in thr_setconcurrency
37274 do
37275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37276 echo "$as_me:$LINENO: checking for $ac_func" >&5
37277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37278 if eval "test \"\${$as_ac_var+set}\" = set"; then
37279 echo $ECHO_N "(cached) $ECHO_C" >&6
37280 else
37281 cat >conftest.$ac_ext <<_ACEOF
37282 /* confdefs.h. */
37283 _ACEOF
37284 cat confdefs.h >>conftest.$ac_ext
37285 cat >>conftest.$ac_ext <<_ACEOF
37286 /* end confdefs.h. */
37287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37289 #define $ac_func innocuous_$ac_func
37290
37291 /* System header to define __stub macros and hopefully few prototypes,
37292 which can conflict with char $ac_func (); below.
37293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37294 <limits.h> exists even on freestanding compilers. */
37295
37296 #ifdef __STDC__
37297 # include <limits.h>
37298 #else
37299 # include <assert.h>
37300 #endif
37301
37302 #undef $ac_func
37303
37304 /* Override any gcc2 internal prototype to avoid an error. */
37305 #ifdef __cplusplus
37306 extern "C"
37307 {
37308 #endif
37309 /* We use char because int might match the return type of a gcc2
37310 builtin and then its argument prototype would still apply. */
37311 char $ac_func ();
37312 /* The GNU C library defines this for functions which it implements
37313 to always fail with ENOSYS. Some functions are actually named
37314 something starting with __ and the normal name is an alias. */
37315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37316 choke me
37317 #else
37318 char (*f) () = $ac_func;
37319 #endif
37320 #ifdef __cplusplus
37321 }
37322 #endif
37323
37324 int
37325 main ()
37326 {
37327 return f != $ac_func;
37328 ;
37329 return 0;
37330 }
37331 _ACEOF
37332 rm -f conftest.$ac_objext conftest$ac_exeext
37333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37334 (eval $ac_link) 2>conftest.er1
37335 ac_status=$?
37336 grep -v '^ *+' conftest.er1 >conftest.err
37337 rm -f conftest.er1
37338 cat conftest.err >&5
37339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340 (exit $ac_status); } &&
37341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37343 (eval $ac_try) 2>&5
37344 ac_status=$?
37345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37346 (exit $ac_status); }; } &&
37347 { ac_try='test -s conftest$ac_exeext'
37348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37349 (eval $ac_try) 2>&5
37350 ac_status=$?
37351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37352 (exit $ac_status); }; }; then
37353 eval "$as_ac_var=yes"
37354 else
37355 echo "$as_me: failed program was:" >&5
37356 sed 's/^/| /' conftest.$ac_ext >&5
37357
37358 eval "$as_ac_var=no"
37359 fi
37360 rm -f conftest.err conftest.$ac_objext \
37361 conftest$ac_exeext conftest.$ac_ext
37362 fi
37363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37365 if test `eval echo '${'$as_ac_var'}'` = yes; then
37366 cat >>confdefs.h <<_ACEOF
37367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37368 _ACEOF
37369
37370 fi
37371 done
37372
37373
37374 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37375 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37376 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37377 echo $ECHO_N "(cached) $ECHO_C" >&6
37378 else
37379
37380 cat >conftest.$ac_ext <<_ACEOF
37381 /* confdefs.h. */
37382 _ACEOF
37383 cat confdefs.h >>conftest.$ac_ext
37384 cat >>conftest.$ac_ext <<_ACEOF
37385 /* end confdefs.h. */
37386 #include <pthread.h>
37387 void ThreadCleanupFunc(void *p);
37388
37389 int
37390 main ()
37391 {
37392
37393 void *p;
37394 pthread_cleanup_push(ThreadCleanupFunc, p);
37395 pthread_cleanup_pop(0);
37396
37397 ;
37398 return 0;
37399 }
37400 _ACEOF
37401 rm -f conftest.$ac_objext
37402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37403 (eval $ac_compile) 2>conftest.er1
37404 ac_status=$?
37405 grep -v '^ *+' conftest.er1 >conftest.err
37406 rm -f conftest.er1
37407 cat conftest.err >&5
37408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37409 (exit $ac_status); } &&
37410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37412 (eval $ac_try) 2>&5
37413 ac_status=$?
37414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37415 (exit $ac_status); }; } &&
37416 { ac_try='test -s conftest.$ac_objext'
37417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37418 (eval $ac_try) 2>&5
37419 ac_status=$?
37420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37421 (exit $ac_status); }; }; then
37422
37423 wx_cv_func_pthread_cleanup=yes
37424
37425 else
37426 echo "$as_me: failed program was:" >&5
37427 sed 's/^/| /' conftest.$ac_ext >&5
37428
37429
37430 wx_cv_func_pthread_cleanup=no
37431
37432
37433 fi
37434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37435
37436 fi
37437 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37438 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37439 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37440 cat >>confdefs.h <<\_ACEOF
37441 #define wxHAVE_PTHREAD_CLEANUP 1
37442 _ACEOF
37443
37444 fi
37445
37446
37447 for ac_header in sched.h
37448 do
37449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37451 echo "$as_me:$LINENO: checking for $ac_header" >&5
37452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37454 echo $ECHO_N "(cached) $ECHO_C" >&6
37455 fi
37456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37458 else
37459 # Is the header compilable?
37460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37462 cat >conftest.$ac_ext <<_ACEOF
37463 /* confdefs.h. */
37464 _ACEOF
37465 cat confdefs.h >>conftest.$ac_ext
37466 cat >>conftest.$ac_ext <<_ACEOF
37467 /* end confdefs.h. */
37468 $ac_includes_default
37469 #include <$ac_header>
37470 _ACEOF
37471 rm -f conftest.$ac_objext
37472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37473 (eval $ac_compile) 2>conftest.er1
37474 ac_status=$?
37475 grep -v '^ *+' conftest.er1 >conftest.err
37476 rm -f conftest.er1
37477 cat conftest.err >&5
37478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37479 (exit $ac_status); } &&
37480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37482 (eval $ac_try) 2>&5
37483 ac_status=$?
37484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485 (exit $ac_status); }; } &&
37486 { ac_try='test -s conftest.$ac_objext'
37487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37488 (eval $ac_try) 2>&5
37489 ac_status=$?
37490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37491 (exit $ac_status); }; }; then
37492 ac_header_compiler=yes
37493 else
37494 echo "$as_me: failed program was:" >&5
37495 sed 's/^/| /' conftest.$ac_ext >&5
37496
37497 ac_header_compiler=no
37498 fi
37499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37500 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37501 echo "${ECHO_T}$ac_header_compiler" >&6
37502
37503 # Is the header present?
37504 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37506 cat >conftest.$ac_ext <<_ACEOF
37507 /* confdefs.h. */
37508 _ACEOF
37509 cat confdefs.h >>conftest.$ac_ext
37510 cat >>conftest.$ac_ext <<_ACEOF
37511 /* end confdefs.h. */
37512 #include <$ac_header>
37513 _ACEOF
37514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37516 ac_status=$?
37517 grep -v '^ *+' conftest.er1 >conftest.err
37518 rm -f conftest.er1
37519 cat conftest.err >&5
37520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37521 (exit $ac_status); } >/dev/null; then
37522 if test -s conftest.err; then
37523 ac_cpp_err=$ac_cxx_preproc_warn_flag
37524 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37525 else
37526 ac_cpp_err=
37527 fi
37528 else
37529 ac_cpp_err=yes
37530 fi
37531 if test -z "$ac_cpp_err"; then
37532 ac_header_preproc=yes
37533 else
37534 echo "$as_me: failed program was:" >&5
37535 sed 's/^/| /' conftest.$ac_ext >&5
37536
37537 ac_header_preproc=no
37538 fi
37539 rm -f conftest.err conftest.$ac_ext
37540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37541 echo "${ECHO_T}$ac_header_preproc" >&6
37542
37543 # So? What about this header?
37544 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37545 yes:no: )
37546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37550 ac_header_preproc=yes
37551 ;;
37552 no:yes:* )
37553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37565 (
37566 cat <<\_ASBOX
37567 ## ----------------------------------------- ##
37568 ## Report this to wx-dev@lists.wxwidgets.org ##
37569 ## ----------------------------------------- ##
37570 _ASBOX
37571 ) |
37572 sed "s/^/$as_me: WARNING: /" >&2
37573 ;;
37574 esac
37575 echo "$as_me:$LINENO: checking for $ac_header" >&5
37576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37578 echo $ECHO_N "(cached) $ECHO_C" >&6
37579 else
37580 eval "$as_ac_Header=\$ac_header_preproc"
37581 fi
37582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37584
37585 fi
37586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37587 cat >>confdefs.h <<_ACEOF
37588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37589 _ACEOF
37590
37591 fi
37592
37593 done
37594
37595 if test "$ac_cv_header_sched_h" = "yes"; then
37596 echo "$as_me:$LINENO: checking for sched_yield" >&5
37597 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37598 if test "${ac_cv_func_sched_yield+set}" = set; then
37599 echo $ECHO_N "(cached) $ECHO_C" >&6
37600 else
37601 cat >conftest.$ac_ext <<_ACEOF
37602 /* confdefs.h. */
37603 _ACEOF
37604 cat confdefs.h >>conftest.$ac_ext
37605 cat >>conftest.$ac_ext <<_ACEOF
37606 /* end confdefs.h. */
37607 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37609 #define sched_yield innocuous_sched_yield
37610
37611 /* System header to define __stub macros and hopefully few prototypes,
37612 which can conflict with char sched_yield (); below.
37613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37614 <limits.h> exists even on freestanding compilers. */
37615
37616 #ifdef __STDC__
37617 # include <limits.h>
37618 #else
37619 # include <assert.h>
37620 #endif
37621
37622 #undef sched_yield
37623
37624 /* Override any gcc2 internal prototype to avoid an error. */
37625 #ifdef __cplusplus
37626 extern "C"
37627 {
37628 #endif
37629 /* We use char because int might match the return type of a gcc2
37630 builtin and then its argument prototype would still apply. */
37631 char sched_yield ();
37632 /* The GNU C library defines this for functions which it implements
37633 to always fail with ENOSYS. Some functions are actually named
37634 something starting with __ and the normal name is an alias. */
37635 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37636 choke me
37637 #else
37638 char (*f) () = sched_yield;
37639 #endif
37640 #ifdef __cplusplus
37641 }
37642 #endif
37643
37644 int
37645 main ()
37646 {
37647 return f != sched_yield;
37648 ;
37649 return 0;
37650 }
37651 _ACEOF
37652 rm -f conftest.$ac_objext conftest$ac_exeext
37653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37654 (eval $ac_link) 2>conftest.er1
37655 ac_status=$?
37656 grep -v '^ *+' conftest.er1 >conftest.err
37657 rm -f conftest.er1
37658 cat conftest.err >&5
37659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37660 (exit $ac_status); } &&
37661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37663 (eval $ac_try) 2>&5
37664 ac_status=$?
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); }; } &&
37667 { ac_try='test -s conftest$ac_exeext'
37668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37669 (eval $ac_try) 2>&5
37670 ac_status=$?
37671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37672 (exit $ac_status); }; }; then
37673 ac_cv_func_sched_yield=yes
37674 else
37675 echo "$as_me: failed program was:" >&5
37676 sed 's/^/| /' conftest.$ac_ext >&5
37677
37678 ac_cv_func_sched_yield=no
37679 fi
37680 rm -f conftest.err conftest.$ac_objext \
37681 conftest$ac_exeext conftest.$ac_ext
37682 fi
37683 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37684 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37685 if test $ac_cv_func_sched_yield = yes; then
37686 cat >>confdefs.h <<\_ACEOF
37687 #define HAVE_SCHED_YIELD 1
37688 _ACEOF
37689
37690 else
37691
37692 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37693 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37694 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37695 echo $ECHO_N "(cached) $ECHO_C" >&6
37696 else
37697 ac_check_lib_save_LIBS=$LIBS
37698 LIBS="-lposix4 $LIBS"
37699 cat >conftest.$ac_ext <<_ACEOF
37700 /* confdefs.h. */
37701 _ACEOF
37702 cat confdefs.h >>conftest.$ac_ext
37703 cat >>conftest.$ac_ext <<_ACEOF
37704 /* end confdefs.h. */
37705
37706 /* Override any gcc2 internal prototype to avoid an error. */
37707 #ifdef __cplusplus
37708 extern "C"
37709 #endif
37710 /* We use char because int might match the return type of a gcc2
37711 builtin and then its argument prototype would still apply. */
37712 char sched_yield ();
37713 int
37714 main ()
37715 {
37716 sched_yield ();
37717 ;
37718 return 0;
37719 }
37720 _ACEOF
37721 rm -f conftest.$ac_objext conftest$ac_exeext
37722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37723 (eval $ac_link) 2>conftest.er1
37724 ac_status=$?
37725 grep -v '^ *+' conftest.er1 >conftest.err
37726 rm -f conftest.er1
37727 cat conftest.err >&5
37728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37729 (exit $ac_status); } &&
37730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37732 (eval $ac_try) 2>&5
37733 ac_status=$?
37734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37735 (exit $ac_status); }; } &&
37736 { ac_try='test -s conftest$ac_exeext'
37737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37738 (eval $ac_try) 2>&5
37739 ac_status=$?
37740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741 (exit $ac_status); }; }; then
37742 ac_cv_lib_posix4_sched_yield=yes
37743 else
37744 echo "$as_me: failed program was:" >&5
37745 sed 's/^/| /' conftest.$ac_ext >&5
37746
37747 ac_cv_lib_posix4_sched_yield=no
37748 fi
37749 rm -f conftest.err conftest.$ac_objext \
37750 conftest$ac_exeext conftest.$ac_ext
37751 LIBS=$ac_check_lib_save_LIBS
37752 fi
37753 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37754 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37755 if test $ac_cv_lib_posix4_sched_yield = yes; then
37756 cat >>confdefs.h <<\_ACEOF
37757 #define HAVE_SCHED_YIELD 1
37758 _ACEOF
37759 POSIX4_LINK=" -lposix4"
37760 else
37761 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37762 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37763
37764 fi
37765
37766
37767
37768 fi
37769
37770 fi
37771
37772 HAVE_PRIOR_FUNCS=0
37773 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37774 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37775 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37776 echo $ECHO_N "(cached) $ECHO_C" >&6
37777 else
37778 cat >conftest.$ac_ext <<_ACEOF
37779 /* confdefs.h. */
37780 _ACEOF
37781 cat confdefs.h >>conftest.$ac_ext
37782 cat >>conftest.$ac_ext <<_ACEOF
37783 /* end confdefs.h. */
37784 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37786 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37787
37788 /* System header to define __stub macros and hopefully few prototypes,
37789 which can conflict with char pthread_attr_getschedpolicy (); below.
37790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37791 <limits.h> exists even on freestanding compilers. */
37792
37793 #ifdef __STDC__
37794 # include <limits.h>
37795 #else
37796 # include <assert.h>
37797 #endif
37798
37799 #undef pthread_attr_getschedpolicy
37800
37801 /* Override any gcc2 internal prototype to avoid an error. */
37802 #ifdef __cplusplus
37803 extern "C"
37804 {
37805 #endif
37806 /* We use char because int might match the return type of a gcc2
37807 builtin and then its argument prototype would still apply. */
37808 char pthread_attr_getschedpolicy ();
37809 /* The GNU C library defines this for functions which it implements
37810 to always fail with ENOSYS. Some functions are actually named
37811 something starting with __ and the normal name is an alias. */
37812 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37813 choke me
37814 #else
37815 char (*f) () = pthread_attr_getschedpolicy;
37816 #endif
37817 #ifdef __cplusplus
37818 }
37819 #endif
37820
37821 int
37822 main ()
37823 {
37824 return f != pthread_attr_getschedpolicy;
37825 ;
37826 return 0;
37827 }
37828 _ACEOF
37829 rm -f conftest.$ac_objext conftest$ac_exeext
37830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37831 (eval $ac_link) 2>conftest.er1
37832 ac_status=$?
37833 grep -v '^ *+' conftest.er1 >conftest.err
37834 rm -f conftest.er1
37835 cat conftest.err >&5
37836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37837 (exit $ac_status); } &&
37838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37840 (eval $ac_try) 2>&5
37841 ac_status=$?
37842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37843 (exit $ac_status); }; } &&
37844 { ac_try='test -s conftest$ac_exeext'
37845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37846 (eval $ac_try) 2>&5
37847 ac_status=$?
37848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849 (exit $ac_status); }; }; then
37850 ac_cv_func_pthread_attr_getschedpolicy=yes
37851 else
37852 echo "$as_me: failed program was:" >&5
37853 sed 's/^/| /' conftest.$ac_ext >&5
37854
37855 ac_cv_func_pthread_attr_getschedpolicy=no
37856 fi
37857 rm -f conftest.err conftest.$ac_objext \
37858 conftest$ac_exeext conftest.$ac_ext
37859 fi
37860 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37861 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37862 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37863 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37864 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37865 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37866 echo $ECHO_N "(cached) $ECHO_C" >&6
37867 else
37868 cat >conftest.$ac_ext <<_ACEOF
37869 /* confdefs.h. */
37870 _ACEOF
37871 cat confdefs.h >>conftest.$ac_ext
37872 cat >>conftest.$ac_ext <<_ACEOF
37873 /* end confdefs.h. */
37874 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37876 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37877
37878 /* System header to define __stub macros and hopefully few prototypes,
37879 which can conflict with char pthread_attr_setschedparam (); below.
37880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37881 <limits.h> exists even on freestanding compilers. */
37882
37883 #ifdef __STDC__
37884 # include <limits.h>
37885 #else
37886 # include <assert.h>
37887 #endif
37888
37889 #undef pthread_attr_setschedparam
37890
37891 /* Override any gcc2 internal prototype to avoid an error. */
37892 #ifdef __cplusplus
37893 extern "C"
37894 {
37895 #endif
37896 /* We use char because int might match the return type of a gcc2
37897 builtin and then its argument prototype would still apply. */
37898 char pthread_attr_setschedparam ();
37899 /* The GNU C library defines this for functions which it implements
37900 to always fail with ENOSYS. Some functions are actually named
37901 something starting with __ and the normal name is an alias. */
37902 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37903 choke me
37904 #else
37905 char (*f) () = pthread_attr_setschedparam;
37906 #endif
37907 #ifdef __cplusplus
37908 }
37909 #endif
37910
37911 int
37912 main ()
37913 {
37914 return f != pthread_attr_setschedparam;
37915 ;
37916 return 0;
37917 }
37918 _ACEOF
37919 rm -f conftest.$ac_objext conftest$ac_exeext
37920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37921 (eval $ac_link) 2>conftest.er1
37922 ac_status=$?
37923 grep -v '^ *+' conftest.er1 >conftest.err
37924 rm -f conftest.er1
37925 cat conftest.err >&5
37926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927 (exit $ac_status); } &&
37928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37930 (eval $ac_try) 2>&5
37931 ac_status=$?
37932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37933 (exit $ac_status); }; } &&
37934 { ac_try='test -s conftest$ac_exeext'
37935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37936 (eval $ac_try) 2>&5
37937 ac_status=$?
37938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37939 (exit $ac_status); }; }; then
37940 ac_cv_func_pthread_attr_setschedparam=yes
37941 else
37942 echo "$as_me: failed program was:" >&5
37943 sed 's/^/| /' conftest.$ac_ext >&5
37944
37945 ac_cv_func_pthread_attr_setschedparam=no
37946 fi
37947 rm -f conftest.err conftest.$ac_objext \
37948 conftest$ac_exeext conftest.$ac_ext
37949 fi
37950 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37951 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37952 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37953 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37954 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37955 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37956 echo $ECHO_N "(cached) $ECHO_C" >&6
37957 else
37958 cat >conftest.$ac_ext <<_ACEOF
37959 /* confdefs.h. */
37960 _ACEOF
37961 cat confdefs.h >>conftest.$ac_ext
37962 cat >>conftest.$ac_ext <<_ACEOF
37963 /* end confdefs.h. */
37964 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37966 #define sched_get_priority_max innocuous_sched_get_priority_max
37967
37968 /* System header to define __stub macros and hopefully few prototypes,
37969 which can conflict with char sched_get_priority_max (); below.
37970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37971 <limits.h> exists even on freestanding compilers. */
37972
37973 #ifdef __STDC__
37974 # include <limits.h>
37975 #else
37976 # include <assert.h>
37977 #endif
37978
37979 #undef sched_get_priority_max
37980
37981 /* Override any gcc2 internal prototype to avoid an error. */
37982 #ifdef __cplusplus
37983 extern "C"
37984 {
37985 #endif
37986 /* We use char because int might match the return type of a gcc2
37987 builtin and then its argument prototype would still apply. */
37988 char sched_get_priority_max ();
37989 /* The GNU C library defines this for functions which it implements
37990 to always fail with ENOSYS. Some functions are actually named
37991 something starting with __ and the normal name is an alias. */
37992 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37993 choke me
37994 #else
37995 char (*f) () = sched_get_priority_max;
37996 #endif
37997 #ifdef __cplusplus
37998 }
37999 #endif
38000
38001 int
38002 main ()
38003 {
38004 return f != sched_get_priority_max;
38005 ;
38006 return 0;
38007 }
38008 _ACEOF
38009 rm -f conftest.$ac_objext conftest$ac_exeext
38010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38011 (eval $ac_link) 2>conftest.er1
38012 ac_status=$?
38013 grep -v '^ *+' conftest.er1 >conftest.err
38014 rm -f conftest.er1
38015 cat conftest.err >&5
38016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38017 (exit $ac_status); } &&
38018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38020 (eval $ac_try) 2>&5
38021 ac_status=$?
38022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023 (exit $ac_status); }; } &&
38024 { ac_try='test -s conftest$ac_exeext'
38025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38026 (eval $ac_try) 2>&5
38027 ac_status=$?
38028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38029 (exit $ac_status); }; }; then
38030 ac_cv_func_sched_get_priority_max=yes
38031 else
38032 echo "$as_me: failed program was:" >&5
38033 sed 's/^/| /' conftest.$ac_ext >&5
38034
38035 ac_cv_func_sched_get_priority_max=no
38036 fi
38037 rm -f conftest.err conftest.$ac_objext \
38038 conftest$ac_exeext conftest.$ac_ext
38039 fi
38040 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38041 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38042 if test $ac_cv_func_sched_get_priority_max = yes; then
38043 HAVE_PRIOR_FUNCS=1
38044 else
38045 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38046 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38047 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38048 echo $ECHO_N "(cached) $ECHO_C" >&6
38049 else
38050 ac_check_lib_save_LIBS=$LIBS
38051 LIBS="-lposix4 $LIBS"
38052 cat >conftest.$ac_ext <<_ACEOF
38053 /* confdefs.h. */
38054 _ACEOF
38055 cat confdefs.h >>conftest.$ac_ext
38056 cat >>conftest.$ac_ext <<_ACEOF
38057 /* end confdefs.h. */
38058
38059 /* Override any gcc2 internal prototype to avoid an error. */
38060 #ifdef __cplusplus
38061 extern "C"
38062 #endif
38063 /* We use char because int might match the return type of a gcc2
38064 builtin and then its argument prototype would still apply. */
38065 char sched_get_priority_max ();
38066 int
38067 main ()
38068 {
38069 sched_get_priority_max ();
38070 ;
38071 return 0;
38072 }
38073 _ACEOF
38074 rm -f conftest.$ac_objext conftest$ac_exeext
38075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38076 (eval $ac_link) 2>conftest.er1
38077 ac_status=$?
38078 grep -v '^ *+' conftest.er1 >conftest.err
38079 rm -f conftest.er1
38080 cat conftest.err >&5
38081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38082 (exit $ac_status); } &&
38083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38085 (eval $ac_try) 2>&5
38086 ac_status=$?
38087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38088 (exit $ac_status); }; } &&
38089 { ac_try='test -s conftest$ac_exeext'
38090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38091 (eval $ac_try) 2>&5
38092 ac_status=$?
38093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094 (exit $ac_status); }; }; then
38095 ac_cv_lib_posix4_sched_get_priority_max=yes
38096 else
38097 echo "$as_me: failed program was:" >&5
38098 sed 's/^/| /' conftest.$ac_ext >&5
38099
38100 ac_cv_lib_posix4_sched_get_priority_max=no
38101 fi
38102 rm -f conftest.err conftest.$ac_objext \
38103 conftest$ac_exeext conftest.$ac_ext
38104 LIBS=$ac_check_lib_save_LIBS
38105 fi
38106 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38107 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38108 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38109
38110 HAVE_PRIOR_FUNCS=1
38111 POSIX4_LINK=" -lposix4"
38112
38113 fi
38114
38115
38116 fi
38117
38118
38119 fi
38120
38121
38122 fi
38123
38124
38125 if test "$HAVE_PRIOR_FUNCS" = 1; then
38126 cat >>confdefs.h <<\_ACEOF
38127 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38128 _ACEOF
38129
38130 else
38131 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38132 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38133 fi
38134
38135 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38136 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38137 if test "${ac_cv_func_pthread_cancel+set}" = set; then
38138 echo $ECHO_N "(cached) $ECHO_C" >&6
38139 else
38140 cat >conftest.$ac_ext <<_ACEOF
38141 /* confdefs.h. */
38142 _ACEOF
38143 cat confdefs.h >>conftest.$ac_ext
38144 cat >>conftest.$ac_ext <<_ACEOF
38145 /* end confdefs.h. */
38146 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38148 #define pthread_cancel innocuous_pthread_cancel
38149
38150 /* System header to define __stub macros and hopefully few prototypes,
38151 which can conflict with char pthread_cancel (); below.
38152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38153 <limits.h> exists even on freestanding compilers. */
38154
38155 #ifdef __STDC__
38156 # include <limits.h>
38157 #else
38158 # include <assert.h>
38159 #endif
38160
38161 #undef pthread_cancel
38162
38163 /* Override any gcc2 internal prototype to avoid an error. */
38164 #ifdef __cplusplus
38165 extern "C"
38166 {
38167 #endif
38168 /* We use char because int might match the return type of a gcc2
38169 builtin and then its argument prototype would still apply. */
38170 char pthread_cancel ();
38171 /* The GNU C library defines this for functions which it implements
38172 to always fail with ENOSYS. Some functions are actually named
38173 something starting with __ and the normal name is an alias. */
38174 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38175 choke me
38176 #else
38177 char (*f) () = pthread_cancel;
38178 #endif
38179 #ifdef __cplusplus
38180 }
38181 #endif
38182
38183 int
38184 main ()
38185 {
38186 return f != pthread_cancel;
38187 ;
38188 return 0;
38189 }
38190 _ACEOF
38191 rm -f conftest.$ac_objext conftest$ac_exeext
38192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38193 (eval $ac_link) 2>conftest.er1
38194 ac_status=$?
38195 grep -v '^ *+' conftest.er1 >conftest.err
38196 rm -f conftest.er1
38197 cat conftest.err >&5
38198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199 (exit $ac_status); } &&
38200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38202 (eval $ac_try) 2>&5
38203 ac_status=$?
38204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38205 (exit $ac_status); }; } &&
38206 { ac_try='test -s conftest$ac_exeext'
38207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38208 (eval $ac_try) 2>&5
38209 ac_status=$?
38210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211 (exit $ac_status); }; }; then
38212 ac_cv_func_pthread_cancel=yes
38213 else
38214 echo "$as_me: failed program was:" >&5
38215 sed 's/^/| /' conftest.$ac_ext >&5
38216
38217 ac_cv_func_pthread_cancel=no
38218 fi
38219 rm -f conftest.err conftest.$ac_objext \
38220 conftest$ac_exeext conftest.$ac_ext
38221 fi
38222 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38223 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38224 if test $ac_cv_func_pthread_cancel = yes; then
38225 cat >>confdefs.h <<\_ACEOF
38226 #define HAVE_PTHREAD_CANCEL 1
38227 _ACEOF
38228
38229 else
38230 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38231 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38232 fi
38233
38234
38235 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38236 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38237 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38238 echo $ECHO_N "(cached) $ECHO_C" >&6
38239 else
38240 cat >conftest.$ac_ext <<_ACEOF
38241 /* confdefs.h. */
38242 _ACEOF
38243 cat confdefs.h >>conftest.$ac_ext
38244 cat >>conftest.$ac_ext <<_ACEOF
38245 /* end confdefs.h. */
38246 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38248 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38249
38250 /* System header to define __stub macros and hopefully few prototypes,
38251 which can conflict with char pthread_attr_setstacksize (); below.
38252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38253 <limits.h> exists even on freestanding compilers. */
38254
38255 #ifdef __STDC__
38256 # include <limits.h>
38257 #else
38258 # include <assert.h>
38259 #endif
38260
38261 #undef pthread_attr_setstacksize
38262
38263 /* Override any gcc2 internal prototype to avoid an error. */
38264 #ifdef __cplusplus
38265 extern "C"
38266 {
38267 #endif
38268 /* We use char because int might match the return type of a gcc2
38269 builtin and then its argument prototype would still apply. */
38270 char pthread_attr_setstacksize ();
38271 /* The GNU C library defines this for functions which it implements
38272 to always fail with ENOSYS. Some functions are actually named
38273 something starting with __ and the normal name is an alias. */
38274 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38275 choke me
38276 #else
38277 char (*f) () = pthread_attr_setstacksize;
38278 #endif
38279 #ifdef __cplusplus
38280 }
38281 #endif
38282
38283 int
38284 main ()
38285 {
38286 return f != pthread_attr_setstacksize;
38287 ;
38288 return 0;
38289 }
38290 _ACEOF
38291 rm -f conftest.$ac_objext conftest$ac_exeext
38292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38293 (eval $ac_link) 2>conftest.er1
38294 ac_status=$?
38295 grep -v '^ *+' conftest.er1 >conftest.err
38296 rm -f conftest.er1
38297 cat conftest.err >&5
38298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299 (exit $ac_status); } &&
38300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38302 (eval $ac_try) 2>&5
38303 ac_status=$?
38304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305 (exit $ac_status); }; } &&
38306 { ac_try='test -s conftest$ac_exeext'
38307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38308 (eval $ac_try) 2>&5
38309 ac_status=$?
38310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311 (exit $ac_status); }; }; then
38312 ac_cv_func_pthread_attr_setstacksize=yes
38313 else
38314 echo "$as_me: failed program was:" >&5
38315 sed 's/^/| /' conftest.$ac_ext >&5
38316
38317 ac_cv_func_pthread_attr_setstacksize=no
38318 fi
38319 rm -f conftest.err conftest.$ac_objext \
38320 conftest$ac_exeext conftest.$ac_ext
38321 fi
38322 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38323 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38324 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38325 cat >>confdefs.h <<\_ACEOF
38326 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38327 _ACEOF
38328
38329 fi
38330
38331
38332
38333 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38334 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38335 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38336 echo $ECHO_N "(cached) $ECHO_C" >&6
38337 else
38338
38339 cat >conftest.$ac_ext <<_ACEOF
38340 /* confdefs.h. */
38341 _ACEOF
38342 cat confdefs.h >>conftest.$ac_ext
38343 cat >>conftest.$ac_ext <<_ACEOF
38344 /* end confdefs.h. */
38345 #include <pthread.h>
38346 int
38347 main ()
38348 {
38349
38350 pthread_mutexattr_t attr;
38351 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38352
38353 ;
38354 return 0;
38355 }
38356 _ACEOF
38357 rm -f conftest.$ac_objext
38358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38359 (eval $ac_compile) 2>conftest.er1
38360 ac_status=$?
38361 grep -v '^ *+' conftest.er1 >conftest.err
38362 rm -f conftest.er1
38363 cat conftest.err >&5
38364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38365 (exit $ac_status); } &&
38366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38368 (eval $ac_try) 2>&5
38369 ac_status=$?
38370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38371 (exit $ac_status); }; } &&
38372 { ac_try='test -s conftest.$ac_objext'
38373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38374 (eval $ac_try) 2>&5
38375 ac_status=$?
38376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38377 (exit $ac_status); }; }; then
38378 wx_cv_type_pthread_mutexattr_t=yes
38379 else
38380 echo "$as_me: failed program was:" >&5
38381 sed 's/^/| /' conftest.$ac_ext >&5
38382
38383 wx_cv_type_pthread_mutexattr_t=no
38384
38385 fi
38386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38387
38388 fi
38389 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38390 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38391
38392 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38393 cat >>confdefs.h <<\_ACEOF
38394 #define HAVE_PTHREAD_MUTEXATTR_T 1
38395 _ACEOF
38396
38397
38398 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38399 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38400 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38401 echo $ECHO_N "(cached) $ECHO_C" >&6
38402 else
38403
38404 cat >conftest.$ac_ext <<_ACEOF
38405 /* confdefs.h. */
38406 _ACEOF
38407 cat confdefs.h >>conftest.$ac_ext
38408 cat >>conftest.$ac_ext <<_ACEOF
38409 /* end confdefs.h. */
38410 #include <pthread.h>
38411 int
38412 main ()
38413 {
38414
38415 pthread_mutexattr_t attr;
38416 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38417
38418 ;
38419 return 0;
38420 }
38421 _ACEOF
38422 rm -f conftest.$ac_objext
38423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38424 (eval $ac_compile) 2>conftest.er1
38425 ac_status=$?
38426 grep -v '^ *+' conftest.er1 >conftest.err
38427 rm -f conftest.er1
38428 cat conftest.err >&5
38429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38430 (exit $ac_status); } &&
38431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38433 (eval $ac_try) 2>&5
38434 ac_status=$?
38435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38436 (exit $ac_status); }; } &&
38437 { ac_try='test -s conftest.$ac_objext'
38438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38439 (eval $ac_try) 2>&5
38440 ac_status=$?
38441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442 (exit $ac_status); }; }; then
38443 wx_cv_func_pthread_mutexattr_settype_decl=yes
38444 else
38445 echo "$as_me: failed program was:" >&5
38446 sed 's/^/| /' conftest.$ac_ext >&5
38447
38448 wx_cv_func_pthread_mutexattr_settype_decl=no
38449
38450 fi
38451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38452
38453 fi
38454 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38455 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38456 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38457 cat >>confdefs.h <<\_ACEOF
38458 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38459 _ACEOF
38460
38461 fi
38462 else
38463 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38464 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38465 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38466 echo $ECHO_N "(cached) $ECHO_C" >&6
38467 else
38468
38469 cat >conftest.$ac_ext <<_ACEOF
38470 /* confdefs.h. */
38471 _ACEOF
38472 cat confdefs.h >>conftest.$ac_ext
38473 cat >>conftest.$ac_ext <<_ACEOF
38474 /* end confdefs.h. */
38475 #include <pthread.h>
38476 int
38477 main ()
38478 {
38479
38480 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38481
38482 ;
38483 return 0;
38484 }
38485 _ACEOF
38486 rm -f conftest.$ac_objext
38487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38488 (eval $ac_compile) 2>conftest.er1
38489 ac_status=$?
38490 grep -v '^ *+' conftest.er1 >conftest.err
38491 rm -f conftest.er1
38492 cat conftest.err >&5
38493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38494 (exit $ac_status); } &&
38495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38497 (eval $ac_try) 2>&5
38498 ac_status=$?
38499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500 (exit $ac_status); }; } &&
38501 { ac_try='test -s conftest.$ac_objext'
38502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38503 (eval $ac_try) 2>&5
38504 ac_status=$?
38505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506 (exit $ac_status); }; }; then
38507
38508 wx_cv_type_pthread_rec_mutex_init=yes
38509
38510 else
38511 echo "$as_me: failed program was:" >&5
38512 sed 's/^/| /' conftest.$ac_ext >&5
38513
38514
38515 wx_cv_type_pthread_rec_mutex_init=no
38516
38517
38518 fi
38519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38520
38521 fi
38522 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38523 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38524 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38525 cat >>confdefs.h <<\_ACEOF
38526 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38527 _ACEOF
38528
38529 else
38530 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38531 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38532 fi
38533 fi
38534 fi
38535
38536 else
38537 if test "$wxUSE_THREADS" = "yes" ; then
38538 case "${host}" in
38539 *-*-mingw32* )
38540 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38541 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38542 if test "${wx_cv_cflags_mthread+set}" = set; then
38543 echo $ECHO_N "(cached) $ECHO_C" >&6
38544 else
38545
38546 CXXFLAGS_OLD="$CXXFLAGS"
38547 CXXFLAGS="-mthreads $CXXFLAGS"
38548 cat >conftest.$ac_ext <<_ACEOF
38549 /* confdefs.h. */
38550 _ACEOF
38551 cat confdefs.h >>conftest.$ac_ext
38552 cat >>conftest.$ac_ext <<_ACEOF
38553 /* end confdefs.h. */
38554
38555 int
38556 main ()
38557 {
38558
38559 ;
38560 return 0;
38561 }
38562 _ACEOF
38563 rm -f conftest.$ac_objext
38564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38565 (eval $ac_compile) 2>conftest.er1
38566 ac_status=$?
38567 grep -v '^ *+' conftest.er1 >conftest.err
38568 rm -f conftest.er1
38569 cat conftest.err >&5
38570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571 (exit $ac_status); } &&
38572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38574 (eval $ac_try) 2>&5
38575 ac_status=$?
38576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38577 (exit $ac_status); }; } &&
38578 { ac_try='test -s conftest.$ac_objext'
38579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38580 (eval $ac_try) 2>&5
38581 ac_status=$?
38582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583 (exit $ac_status); }; }; then
38584 wx_cv_cflags_mthread=yes
38585 else
38586 echo "$as_me: failed program was:" >&5
38587 sed 's/^/| /' conftest.$ac_ext >&5
38588
38589 wx_cv_cflags_mthread=no
38590
38591 fi
38592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38593
38594
38595 fi
38596 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38597 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38598
38599 if test "$wx_cv_cflags_mthread" = "yes"; then
38600 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
38601 LDFLAGS="$LDFLAGS -mthreads"
38602 else
38603 CXXFLAGS="$CXXFLAGS_OLD"
38604 fi
38605 ;;
38606 *-pc-os2*emx )
38607 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38608 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
38609 LDFLAGS="$LDFLAGS -Zmt"
38610 ;;
38611 esac
38612 fi
38613 fi
38614
38615 echo "$as_me:$LINENO: checking for localtime_r" >&5
38616 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38617 if test "${ac_cv_func_localtime_r+set}" = set; then
38618 echo $ECHO_N "(cached) $ECHO_C" >&6
38619 else
38620 cat >conftest.$ac_ext <<_ACEOF
38621 /* confdefs.h. */
38622 _ACEOF
38623 cat confdefs.h >>conftest.$ac_ext
38624 cat >>conftest.$ac_ext <<_ACEOF
38625 /* end confdefs.h. */
38626 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
38627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38628 #define localtime_r innocuous_localtime_r
38629
38630 /* System header to define __stub macros and hopefully few prototypes,
38631 which can conflict with char localtime_r (); below.
38632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38633 <limits.h> exists even on freestanding compilers. */
38634
38635 #ifdef __STDC__
38636 # include <limits.h>
38637 #else
38638 # include <assert.h>
38639 #endif
38640
38641 #undef localtime_r
38642
38643 /* Override any gcc2 internal prototype to avoid an error. */
38644 #ifdef __cplusplus
38645 extern "C"
38646 {
38647 #endif
38648 /* We use char because int might match the return type of a gcc2
38649 builtin and then its argument prototype would still apply. */
38650 char localtime_r ();
38651 /* The GNU C library defines this for functions which it implements
38652 to always fail with ENOSYS. Some functions are actually named
38653 something starting with __ and the normal name is an alias. */
38654 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
38655 choke me
38656 #else
38657 char (*f) () = localtime_r;
38658 #endif
38659 #ifdef __cplusplus
38660 }
38661 #endif
38662
38663 int
38664 main ()
38665 {
38666 return f != localtime_r;
38667 ;
38668 return 0;
38669 }
38670 _ACEOF
38671 rm -f conftest.$ac_objext conftest$ac_exeext
38672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38673 (eval $ac_link) 2>conftest.er1
38674 ac_status=$?
38675 grep -v '^ *+' conftest.er1 >conftest.err
38676 rm -f conftest.er1
38677 cat conftest.err >&5
38678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38679 (exit $ac_status); } &&
38680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38682 (eval $ac_try) 2>&5
38683 ac_status=$?
38684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38685 (exit $ac_status); }; } &&
38686 { ac_try='test -s conftest$ac_exeext'
38687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38688 (eval $ac_try) 2>&5
38689 ac_status=$?
38690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38691 (exit $ac_status); }; }; then
38692 ac_cv_func_localtime_r=yes
38693 else
38694 echo "$as_me: failed program was:" >&5
38695 sed 's/^/| /' conftest.$ac_ext >&5
38696
38697 ac_cv_func_localtime_r=no
38698 fi
38699 rm -f conftest.err conftest.$ac_objext \
38700 conftest$ac_exeext conftest.$ac_ext
38701 fi
38702 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38703 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38704 if test $ac_cv_func_localtime_r = yes; then
38705 cat >>confdefs.h <<\_ACEOF
38706 #define HAVE_LOCALTIME_R 1
38707 _ACEOF
38708
38709 fi
38710
38711 echo "$as_me:$LINENO: checking for gmtime_r" >&5
38712 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38713 if test "${ac_cv_func_gmtime_r+set}" = set; then
38714 echo $ECHO_N "(cached) $ECHO_C" >&6
38715 else
38716 cat >conftest.$ac_ext <<_ACEOF
38717 /* confdefs.h. */
38718 _ACEOF
38719 cat confdefs.h >>conftest.$ac_ext
38720 cat >>conftest.$ac_ext <<_ACEOF
38721 /* end confdefs.h. */
38722 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38724 #define gmtime_r innocuous_gmtime_r
38725
38726 /* System header to define __stub macros and hopefully few prototypes,
38727 which can conflict with char gmtime_r (); below.
38728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38729 <limits.h> exists even on freestanding compilers. */
38730
38731 #ifdef __STDC__
38732 # include <limits.h>
38733 #else
38734 # include <assert.h>
38735 #endif
38736
38737 #undef gmtime_r
38738
38739 /* Override any gcc2 internal prototype to avoid an error. */
38740 #ifdef __cplusplus
38741 extern "C"
38742 {
38743 #endif
38744 /* We use char because int might match the return type of a gcc2
38745 builtin and then its argument prototype would still apply. */
38746 char gmtime_r ();
38747 /* The GNU C library defines this for functions which it implements
38748 to always fail with ENOSYS. Some functions are actually named
38749 something starting with __ and the normal name is an alias. */
38750 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38751 choke me
38752 #else
38753 char (*f) () = gmtime_r;
38754 #endif
38755 #ifdef __cplusplus
38756 }
38757 #endif
38758
38759 int
38760 main ()
38761 {
38762 return f != gmtime_r;
38763 ;
38764 return 0;
38765 }
38766 _ACEOF
38767 rm -f conftest.$ac_objext conftest$ac_exeext
38768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38769 (eval $ac_link) 2>conftest.er1
38770 ac_status=$?
38771 grep -v '^ *+' conftest.er1 >conftest.err
38772 rm -f conftest.er1
38773 cat conftest.err >&5
38774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38775 (exit $ac_status); } &&
38776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38778 (eval $ac_try) 2>&5
38779 ac_status=$?
38780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38781 (exit $ac_status); }; } &&
38782 { ac_try='test -s conftest$ac_exeext'
38783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38784 (eval $ac_try) 2>&5
38785 ac_status=$?
38786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38787 (exit $ac_status); }; }; then
38788 ac_cv_func_gmtime_r=yes
38789 else
38790 echo "$as_me: failed program was:" >&5
38791 sed 's/^/| /' conftest.$ac_ext >&5
38792
38793 ac_cv_func_gmtime_r=no
38794 fi
38795 rm -f conftest.err conftest.$ac_objext \
38796 conftest$ac_exeext conftest.$ac_ext
38797 fi
38798 echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
38799 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
38800 if test $ac_cv_func_gmtime_r = yes; then
38801 cat >>confdefs.h <<\_ACEOF
38802 #define HAVE_GMTIME_R 1
38803 _ACEOF
38804
38805 fi
38806
38807 echo "$as_me:$LINENO: checking for readdir_r" >&5
38808 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
38809 if test "${ac_cv_func_readdir_r+set}" = set; then
38810 echo $ECHO_N "(cached) $ECHO_C" >&6
38811 else
38812 cat >conftest.$ac_ext <<_ACEOF
38813 /* confdefs.h. */
38814 _ACEOF
38815 cat confdefs.h >>conftest.$ac_ext
38816 cat >>conftest.$ac_ext <<_ACEOF
38817 /* end confdefs.h. */
38818 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
38819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38820 #define readdir_r innocuous_readdir_r
38821
38822 /* System header to define __stub macros and hopefully few prototypes,
38823 which can conflict with char readdir_r (); below.
38824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38825 <limits.h> exists even on freestanding compilers. */
38826
38827 #ifdef __STDC__
38828 # include <limits.h>
38829 #else
38830 # include <assert.h>
38831 #endif
38832
38833 #undef readdir_r
38834
38835 /* Override any gcc2 internal prototype to avoid an error. */
38836 #ifdef __cplusplus
38837 extern "C"
38838 {
38839 #endif
38840 /* We use char because int might match the return type of a gcc2
38841 builtin and then its argument prototype would still apply. */
38842 char readdir_r ();
38843 /* The GNU C library defines this for functions which it implements
38844 to always fail with ENOSYS. Some functions are actually named
38845 something starting with __ and the normal name is an alias. */
38846 #if defined (__stub_readdir_r) || defined (__stub___readdir_r)
38847 choke me
38848 #else
38849 char (*f) () = readdir_r;
38850 #endif
38851 #ifdef __cplusplus
38852 }
38853 #endif
38854
38855 int
38856 main ()
38857 {
38858 return f != readdir_r;
38859 ;
38860 return 0;
38861 }
38862 _ACEOF
38863 rm -f conftest.$ac_objext conftest$ac_exeext
38864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38865 (eval $ac_link) 2>conftest.er1
38866 ac_status=$?
38867 grep -v '^ *+' conftest.er1 >conftest.err
38868 rm -f conftest.er1
38869 cat conftest.err >&5
38870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38871 (exit $ac_status); } &&
38872 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38874 (eval $ac_try) 2>&5
38875 ac_status=$?
38876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38877 (exit $ac_status); }; } &&
38878 { ac_try='test -s conftest$ac_exeext'
38879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38880 (eval $ac_try) 2>&5
38881 ac_status=$?
38882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883 (exit $ac_status); }; }; then
38884 ac_cv_func_readdir_r=yes
38885 else
38886 echo "$as_me: failed program was:" >&5
38887 sed 's/^/| /' conftest.$ac_ext >&5
38888
38889 ac_cv_func_readdir_r=no
38890 fi
38891 rm -f conftest.err conftest.$ac_objext \
38892 conftest$ac_exeext conftest.$ac_ext
38893 fi
38894 echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
38895 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
38896 if test $ac_cv_func_readdir_r = yes; then
38897 cat >>confdefs.h <<\_ACEOF
38898 #define HAVE_READDIR_R 1
38899 _ACEOF
38900
38901 fi
38902
38903
38904
38905
38906 ac_ext=c
38907 ac_cpp='$CPP $CPPFLAGS'
38908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38911
38912 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
38913 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
38914
38915 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
38916 echo $ECHO_N "(cached) $ECHO_C" >&6
38917 else
38918
38919
38920
38921 ac_cv_func_which_gethostbyname_r=unknown
38922
38923 #
38924 # ONE ARGUMENT (sanity check)
38925 #
38926
38927 # This should fail, as there is no variant of gethostbyname_r() that takes
38928 # a single argument. If it actually compiles, then we can assume that
38929 # netdb.h is not declaring the function, and the compiler is thereby
38930 # assuming an implicit prototype. In which case, we're out of luck.
38931 #
38932 cat >conftest.$ac_ext <<_ACEOF
38933 /* confdefs.h. */
38934 _ACEOF
38935 cat confdefs.h >>conftest.$ac_ext
38936 cat >>conftest.$ac_ext <<_ACEOF
38937 /* end confdefs.h. */
38938 #include <netdb.h>
38939 int
38940 main ()
38941 {
38942
38943 char *name = "www.gnu.org";
38944 (void)gethostbyname_r(name) /* ; */
38945
38946 ;
38947 return 0;
38948 }
38949 _ACEOF
38950 rm -f conftest.$ac_objext
38951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38952 (eval $ac_compile) 2>conftest.er1
38953 ac_status=$?
38954 grep -v '^ *+' conftest.er1 >conftest.err
38955 rm -f conftest.er1
38956 cat conftest.err >&5
38957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38958 (exit $ac_status); } &&
38959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38961 (eval $ac_try) 2>&5
38962 ac_status=$?
38963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38964 (exit $ac_status); }; } &&
38965 { ac_try='test -s conftest.$ac_objext'
38966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38967 (eval $ac_try) 2>&5
38968 ac_status=$?
38969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38970 (exit $ac_status); }; }; then
38971 ac_cv_func_which_gethostbyname_r=no
38972 else
38973 echo "$as_me: failed program was:" >&5
38974 sed 's/^/| /' conftest.$ac_ext >&5
38975
38976 fi
38977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38978
38979 #
38980 # SIX ARGUMENTS
38981 # (e.g. Linux)
38982 #
38983
38984 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38985
38986 cat >conftest.$ac_ext <<_ACEOF
38987 /* confdefs.h. */
38988 _ACEOF
38989 cat confdefs.h >>conftest.$ac_ext
38990 cat >>conftest.$ac_ext <<_ACEOF
38991 /* end confdefs.h. */
38992 #include <netdb.h>
38993 int
38994 main ()
38995 {
38996
38997 char *name = "www.gnu.org";
38998 struct hostent ret, *retp;
38999 char buf[1024];
39000 int buflen = 1024;
39001 int my_h_errno;
39002 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39003
39004 ;
39005 return 0;
39006 }
39007 _ACEOF
39008 rm -f conftest.$ac_objext
39009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39010 (eval $ac_compile) 2>conftest.er1
39011 ac_status=$?
39012 grep -v '^ *+' conftest.er1 >conftest.err
39013 rm -f conftest.er1
39014 cat conftest.err >&5
39015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016 (exit $ac_status); } &&
39017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39019 (eval $ac_try) 2>&5
39020 ac_status=$?
39021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39022 (exit $ac_status); }; } &&
39023 { ac_try='test -s conftest.$ac_objext'
39024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39025 (eval $ac_try) 2>&5
39026 ac_status=$?
39027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39028 (exit $ac_status); }; }; then
39029 ac_cv_func_which_gethostbyname_r=six
39030 else
39031 echo "$as_me: failed program was:" >&5
39032 sed 's/^/| /' conftest.$ac_ext >&5
39033
39034 fi
39035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39036
39037 fi
39038
39039 #
39040 # FIVE ARGUMENTS
39041 # (e.g. Solaris)
39042 #
39043
39044 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39045
39046 cat >conftest.$ac_ext <<_ACEOF
39047 /* confdefs.h. */
39048 _ACEOF
39049 cat confdefs.h >>conftest.$ac_ext
39050 cat >>conftest.$ac_ext <<_ACEOF
39051 /* end confdefs.h. */
39052 #include <netdb.h>
39053 int
39054 main ()
39055 {
39056
39057 char *name = "www.gnu.org";
39058 struct hostent ret;
39059 char buf[1024];
39060 int buflen = 1024;
39061 int my_h_errno;
39062 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39063
39064 ;
39065 return 0;
39066 }
39067 _ACEOF
39068 rm -f conftest.$ac_objext
39069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39070 (eval $ac_compile) 2>conftest.er1
39071 ac_status=$?
39072 grep -v '^ *+' conftest.er1 >conftest.err
39073 rm -f conftest.er1
39074 cat conftest.err >&5
39075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39076 (exit $ac_status); } &&
39077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39079 (eval $ac_try) 2>&5
39080 ac_status=$?
39081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39082 (exit $ac_status); }; } &&
39083 { ac_try='test -s conftest.$ac_objext'
39084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39085 (eval $ac_try) 2>&5
39086 ac_status=$?
39087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39088 (exit $ac_status); }; }; then
39089 ac_cv_func_which_gethostbyname_r=five
39090 else
39091 echo "$as_me: failed program was:" >&5
39092 sed 's/^/| /' conftest.$ac_ext >&5
39093
39094 fi
39095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39096
39097 fi
39098
39099 #
39100 # THREE ARGUMENTS
39101 # (e.g. AIX, HP-UX, Tru64)
39102 #
39103
39104 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39105
39106 cat >conftest.$ac_ext <<_ACEOF
39107 /* confdefs.h. */
39108 _ACEOF
39109 cat confdefs.h >>conftest.$ac_ext
39110 cat >>conftest.$ac_ext <<_ACEOF
39111 /* end confdefs.h. */
39112 #include <netdb.h>
39113 int
39114 main ()
39115 {
39116
39117 char *name = "www.gnu.org";
39118 struct hostent ret;
39119 struct hostent_data data;
39120 (void)gethostbyname_r(name, &ret, &data) /* ; */
39121
39122 ;
39123 return 0;
39124 }
39125 _ACEOF
39126 rm -f conftest.$ac_objext
39127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39128 (eval $ac_compile) 2>conftest.er1
39129 ac_status=$?
39130 grep -v '^ *+' conftest.er1 >conftest.err
39131 rm -f conftest.er1
39132 cat conftest.err >&5
39133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39134 (exit $ac_status); } &&
39135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39137 (eval $ac_try) 2>&5
39138 ac_status=$?
39139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39140 (exit $ac_status); }; } &&
39141 { ac_try='test -s conftest.$ac_objext'
39142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39143 (eval $ac_try) 2>&5
39144 ac_status=$?
39145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146 (exit $ac_status); }; }; then
39147 ac_cv_func_which_gethostbyname_r=three
39148 else
39149 echo "$as_me: failed program was:" >&5
39150 sed 's/^/| /' conftest.$ac_ext >&5
39151
39152 fi
39153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39154
39155 fi
39156
39157
39158
39159 fi
39160
39161 case "$ac_cv_func_which_gethostbyname_r" in
39162 three)
39163 echo "$as_me:$LINENO: result: three" >&5
39164 echo "${ECHO_T}three" >&6
39165 cat >>confdefs.h <<\_ACEOF
39166 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39167 _ACEOF
39168
39169 ;;
39170
39171 five)
39172 echo "$as_me:$LINENO: result: five" >&5
39173 echo "${ECHO_T}five" >&6
39174 cat >>confdefs.h <<\_ACEOF
39175 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39176 _ACEOF
39177
39178 ;;
39179
39180 six)
39181 echo "$as_me:$LINENO: result: six" >&5
39182 echo "${ECHO_T}six" >&6
39183 cat >>confdefs.h <<\_ACEOF
39184 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39185 _ACEOF
39186
39187 ;;
39188
39189 no)
39190 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39191 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39192 ;;
39193
39194 unknown)
39195 echo "$as_me:$LINENO: result: can't tell" >&5
39196 echo "${ECHO_T}can't tell" >&6
39197 ;;
39198
39199 *)
39200 { { echo "$as_me:$LINENO: error: internal error" >&5
39201 echo "$as_me: error: internal error" >&2;}
39202 { (exit 1); exit 1; }; }
39203 ;;
39204 esac
39205
39206 ac_ext=cc
39207 ac_cpp='$CXXCPP $CPPFLAGS'
39208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39211
39212
39213
39214 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39215 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39216 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39217 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39218 if test "${ac_cv_func_gethostbyname+set}" = set; then
39219 echo $ECHO_N "(cached) $ECHO_C" >&6
39220 else
39221 cat >conftest.$ac_ext <<_ACEOF
39222 /* confdefs.h. */
39223 _ACEOF
39224 cat confdefs.h >>conftest.$ac_ext
39225 cat >>conftest.$ac_ext <<_ACEOF
39226 /* end confdefs.h. */
39227 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39229 #define gethostbyname innocuous_gethostbyname
39230
39231 /* System header to define __stub macros and hopefully few prototypes,
39232 which can conflict with char gethostbyname (); below.
39233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39234 <limits.h> exists even on freestanding compilers. */
39235
39236 #ifdef __STDC__
39237 # include <limits.h>
39238 #else
39239 # include <assert.h>
39240 #endif
39241
39242 #undef gethostbyname
39243
39244 /* Override any gcc2 internal prototype to avoid an error. */
39245 #ifdef __cplusplus
39246 extern "C"
39247 {
39248 #endif
39249 /* We use char because int might match the return type of a gcc2
39250 builtin and then its argument prototype would still apply. */
39251 char gethostbyname ();
39252 /* The GNU C library defines this for functions which it implements
39253 to always fail with ENOSYS. Some functions are actually named
39254 something starting with __ and the normal name is an alias. */
39255 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39256 choke me
39257 #else
39258 char (*f) () = gethostbyname;
39259 #endif
39260 #ifdef __cplusplus
39261 }
39262 #endif
39263
39264 int
39265 main ()
39266 {
39267 return f != gethostbyname;
39268 ;
39269 return 0;
39270 }
39271 _ACEOF
39272 rm -f conftest.$ac_objext conftest$ac_exeext
39273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39274 (eval $ac_link) 2>conftest.er1
39275 ac_status=$?
39276 grep -v '^ *+' conftest.er1 >conftest.err
39277 rm -f conftest.er1
39278 cat conftest.err >&5
39279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39280 (exit $ac_status); } &&
39281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39283 (eval $ac_try) 2>&5
39284 ac_status=$?
39285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39286 (exit $ac_status); }; } &&
39287 { ac_try='test -s conftest$ac_exeext'
39288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39289 (eval $ac_try) 2>&5
39290 ac_status=$?
39291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39292 (exit $ac_status); }; }; then
39293 ac_cv_func_gethostbyname=yes
39294 else
39295 echo "$as_me: failed program was:" >&5
39296 sed 's/^/| /' conftest.$ac_ext >&5
39297
39298 ac_cv_func_gethostbyname=no
39299 fi
39300 rm -f conftest.err conftest.$ac_objext \
39301 conftest$ac_exeext conftest.$ac_ext
39302 fi
39303 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39304 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39305 if test $ac_cv_func_gethostbyname = yes; then
39306 cat >>confdefs.h <<\_ACEOF
39307 #define HAVE_GETHOSTBYNAME 1
39308 _ACEOF
39309
39310 fi
39311
39312 fi
39313 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39314 echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
39315 if test "${ac_cv_func_getservbyname_r+set}" = set; then
39316 echo $ECHO_N "(cached) $ECHO_C" >&6
39317 else
39318 cat >conftest.$ac_ext <<_ACEOF
39319 /* confdefs.h. */
39320 _ACEOF
39321 cat confdefs.h >>conftest.$ac_ext
39322 cat >>conftest.$ac_ext <<_ACEOF
39323 /* end confdefs.h. */
39324 /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39326 #define getservbyname_r innocuous_getservbyname_r
39327
39328 /* System header to define __stub macros and hopefully few prototypes,
39329 which can conflict with char getservbyname_r (); below.
39330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39331 <limits.h> exists even on freestanding compilers. */
39332
39333 #ifdef __STDC__
39334 # include <limits.h>
39335 #else
39336 # include <assert.h>
39337 #endif
39338
39339 #undef getservbyname_r
39340
39341 /* Override any gcc2 internal prototype to avoid an error. */
39342 #ifdef __cplusplus
39343 extern "C"
39344 {
39345 #endif
39346 /* We use char because int might match the return type of a gcc2
39347 builtin and then its argument prototype would still apply. */
39348 char getservbyname_r ();
39349 /* The GNU C library defines this for functions which it implements
39350 to always fail with ENOSYS. Some functions are actually named
39351 something starting with __ and the normal name is an alias. */
39352 #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39353 choke me
39354 #else
39355 char (*f) () = getservbyname_r;
39356 #endif
39357 #ifdef __cplusplus
39358 }
39359 #endif
39360
39361 int
39362 main ()
39363 {
39364 return f != getservbyname_r;
39365 ;
39366 return 0;
39367 }
39368 _ACEOF
39369 rm -f conftest.$ac_objext conftest$ac_exeext
39370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39371 (eval $ac_link) 2>conftest.er1
39372 ac_status=$?
39373 grep -v '^ *+' conftest.er1 >conftest.err
39374 rm -f conftest.er1
39375 cat conftest.err >&5
39376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39377 (exit $ac_status); } &&
39378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39380 (eval $ac_try) 2>&5
39381 ac_status=$?
39382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39383 (exit $ac_status); }; } &&
39384 { ac_try='test -s conftest$ac_exeext'
39385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39386 (eval $ac_try) 2>&5
39387 ac_status=$?
39388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389 (exit $ac_status); }; }; then
39390 ac_cv_func_getservbyname_r=yes
39391 else
39392 echo "$as_me: failed program was:" >&5
39393 sed 's/^/| /' conftest.$ac_ext >&5
39394
39395 ac_cv_func_getservbyname_r=no
39396 fi
39397 rm -f conftest.err conftest.$ac_objext \
39398 conftest$ac_exeext conftest.$ac_ext
39399 fi
39400 echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39401 echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39402 if test $ac_cv_func_getservbyname_r = yes; then
39403 cat >conftest.$ac_ext <<_ACEOF
39404 /* confdefs.h. */
39405 _ACEOF
39406 cat confdefs.h >>conftest.$ac_ext
39407 cat >>conftest.$ac_ext <<_ACEOF
39408 /* end confdefs.h. */
39409 #include <netdb.h>
39410 int
39411 main ()
39412 {
39413
39414 char *name;
39415 char *proto;
39416 struct servent *se;
39417 struct servent_data data;
39418 (void) getservbyname_r(name, proto, se, &data);
39419
39420 ;
39421 return 0;
39422 }
39423 _ACEOF
39424 rm -f conftest.$ac_objext
39425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39426 (eval $ac_compile) 2>conftest.er1
39427 ac_status=$?
39428 grep -v '^ *+' conftest.er1 >conftest.err
39429 rm -f conftest.er1
39430 cat conftest.err >&5
39431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432 (exit $ac_status); } &&
39433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39435 (eval $ac_try) 2>&5
39436 ac_status=$?
39437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39438 (exit $ac_status); }; } &&
39439 { ac_try='test -s conftest.$ac_objext'
39440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39441 (eval $ac_try) 2>&5
39442 ac_status=$?
39443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39444 (exit $ac_status); }; }; then
39445 ac_cv_func_which_getservbyname_r=four
39446 else
39447 echo "$as_me: failed program was:" >&5
39448 sed 's/^/| /' conftest.$ac_ext >&5
39449
39450 cat >conftest.$ac_ext <<_ACEOF
39451 /* confdefs.h. */
39452 _ACEOF
39453 cat confdefs.h >>conftest.$ac_ext
39454 cat >>conftest.$ac_ext <<_ACEOF
39455 /* end confdefs.h. */
39456 #include <netdb.h>
39457 int
39458 main ()
39459 {
39460
39461 char *name;
39462 char *proto;
39463 struct servent *se, *res;
39464 char buffer[2048];
39465 int buflen = 2048;
39466 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
39467
39468 ;
39469 return 0;
39470 }
39471 _ACEOF
39472 rm -f conftest.$ac_objext
39473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39474 (eval $ac_compile) 2>conftest.er1
39475 ac_status=$?
39476 grep -v '^ *+' conftest.er1 >conftest.err
39477 rm -f conftest.er1
39478 cat conftest.err >&5
39479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39480 (exit $ac_status); } &&
39481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39483 (eval $ac_try) 2>&5
39484 ac_status=$?
39485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486 (exit $ac_status); }; } &&
39487 { ac_try='test -s conftest.$ac_objext'
39488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39489 (eval $ac_try) 2>&5
39490 ac_status=$?
39491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39492 (exit $ac_status); }; }; then
39493 ac_cv_func_which_getservbyname_r=six
39494 else
39495 echo "$as_me: failed program was:" >&5
39496 sed 's/^/| /' conftest.$ac_ext >&5
39497
39498 cat >conftest.$ac_ext <<_ACEOF
39499 /* confdefs.h. */
39500 _ACEOF
39501 cat confdefs.h >>conftest.$ac_ext
39502 cat >>conftest.$ac_ext <<_ACEOF
39503 /* end confdefs.h. */
39504 #include <netdb.h>
39505 int
39506 main ()
39507 {
39508
39509 char *name;
39510 char *proto;
39511 struct servent *se;
39512 char buffer[2048];
39513 int buflen = 2048;
39514 (void) getservbyname_r(name, proto, se, buffer, buflen)
39515
39516 ;
39517 return 0;
39518 }
39519 _ACEOF
39520 rm -f conftest.$ac_objext
39521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39522 (eval $ac_compile) 2>conftest.er1
39523 ac_status=$?
39524 grep -v '^ *+' conftest.er1 >conftest.err
39525 rm -f conftest.er1
39526 cat conftest.err >&5
39527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39528 (exit $ac_status); } &&
39529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39531 (eval $ac_try) 2>&5
39532 ac_status=$?
39533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39534 (exit $ac_status); }; } &&
39535 { ac_try='test -s conftest.$ac_objext'
39536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39537 (eval $ac_try) 2>&5
39538 ac_status=$?
39539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540 (exit $ac_status); }; }; then
39541 ac_cv_func_which_getservbyname_r=five
39542 else
39543 echo "$as_me: failed program was:" >&5
39544 sed 's/^/| /' conftest.$ac_ext >&5
39545
39546 ac_cv_func_which_getservbyname_r=no
39547
39548 fi
39549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39550
39551 fi
39552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39553
39554 fi
39555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39556 else
39557 ac_cv_func_which_getservbyname_r=no
39558 fi
39559
39560
39561 if test $ac_cv_func_which_getservbyname_r = six; then
39562 cat >>confdefs.h <<\_ACEOF
39563 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
39564 _ACEOF
39565
39566 elif test $ac_cv_func_which_getservbyname_r = five; then
39567 cat >>confdefs.h <<\_ACEOF
39568 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
39569 _ACEOF
39570
39571 elif test $ac_cv_func_which_getservbyname_r = four; then
39572 cat >>confdefs.h <<\_ACEOF
39573 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
39574 _ACEOF
39575
39576 fi
39577
39578
39579 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39580 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39581
39582 for ac_func in getservbyname
39583 do
39584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39585 echo "$as_me:$LINENO: checking for $ac_func" >&5
39586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39587 if eval "test \"\${$as_ac_var+set}\" = set"; then
39588 echo $ECHO_N "(cached) $ECHO_C" >&6
39589 else
39590 cat >conftest.$ac_ext <<_ACEOF
39591 /* confdefs.h. */
39592 _ACEOF
39593 cat confdefs.h >>conftest.$ac_ext
39594 cat >>conftest.$ac_ext <<_ACEOF
39595 /* end confdefs.h. */
39596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39598 #define $ac_func innocuous_$ac_func
39599
39600 /* System header to define __stub macros and hopefully few prototypes,
39601 which can conflict with char $ac_func (); below.
39602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39603 <limits.h> exists even on freestanding compilers. */
39604
39605 #ifdef __STDC__
39606 # include <limits.h>
39607 #else
39608 # include <assert.h>
39609 #endif
39610
39611 #undef $ac_func
39612
39613 /* Override any gcc2 internal prototype to avoid an error. */
39614 #ifdef __cplusplus
39615 extern "C"
39616 {
39617 #endif
39618 /* We use char because int might match the return type of a gcc2
39619 builtin and then its argument prototype would still apply. */
39620 char $ac_func ();
39621 /* The GNU C library defines this for functions which it implements
39622 to always fail with ENOSYS. Some functions are actually named
39623 something starting with __ and the normal name is an alias. */
39624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39625 choke me
39626 #else
39627 char (*f) () = $ac_func;
39628 #endif
39629 #ifdef __cplusplus
39630 }
39631 #endif
39632
39633 int
39634 main ()
39635 {
39636 return f != $ac_func;
39637 ;
39638 return 0;
39639 }
39640 _ACEOF
39641 rm -f conftest.$ac_objext conftest$ac_exeext
39642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39643 (eval $ac_link) 2>conftest.er1
39644 ac_status=$?
39645 grep -v '^ *+' conftest.er1 >conftest.err
39646 rm -f conftest.er1
39647 cat conftest.err >&5
39648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649 (exit $ac_status); } &&
39650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39652 (eval $ac_try) 2>&5
39653 ac_status=$?
39654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39655 (exit $ac_status); }; } &&
39656 { ac_try='test -s conftest$ac_exeext'
39657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39658 (eval $ac_try) 2>&5
39659 ac_status=$?
39660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39661 (exit $ac_status); }; }; then
39662 eval "$as_ac_var=yes"
39663 else
39664 echo "$as_me: failed program was:" >&5
39665 sed 's/^/| /' conftest.$ac_ext >&5
39666
39667 eval "$as_ac_var=no"
39668 fi
39669 rm -f conftest.err conftest.$ac_objext \
39670 conftest$ac_exeext conftest.$ac_ext
39671 fi
39672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39674 if test `eval echo '${'$as_ac_var'}'` = yes; then
39675 cat >>confdefs.h <<_ACEOF
39676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39677 _ACEOF
39678 cat >>confdefs.h <<\_ACEOF
39679 #define HAVE_GETSERVBYNAME 1
39680 _ACEOF
39681
39682 fi
39683 done
39684
39685 fi
39686
39687 if test "$wxUSE_THREADS" = "yes"; then
39688 cat >>confdefs.h <<\_ACEOF
39689 #define wxUSE_THREADS 1
39690 _ACEOF
39691
39692
39693 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39694 else
39695 if test "$ac_cv_func_strtok_r" = "yes"; then
39696 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39697 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39698 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39699 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39700 echo "$as_me:$LINENO: result: yes" >&5
39701 echo "${ECHO_T}yes" >&6
39702 else
39703 echo "$as_me:$LINENO: result: no" >&5
39704 echo "${ECHO_T}no" >&6
39705 fi
39706 fi
39707 fi
39708
39709 if test "$WXGTK20" = 1 ; then
39710 cat >>confdefs.h <<_ACEOF
39711 #define __WXGTK20__ $WXGTK20
39712 _ACEOF
39713
39714 WXGTK12=1
39715 fi
39716
39717 if test "$WXGTK12" = 1 ; then
39718 cat >>confdefs.h <<_ACEOF
39719 #define __WXGTK12__ $WXGTK12
39720 _ACEOF
39721
39722 fi
39723
39724 if test "$WXGTK127" = 1 ; then
39725 cat >>confdefs.h <<_ACEOF
39726 #define __WXGTK127__ $WXGTK127
39727 _ACEOF
39728
39729 fi
39730
39731 if test "$WXGPE" = 1 ; then
39732 cat >>confdefs.h <<_ACEOF
39733 #define __WXGPE__ $WXGPE
39734 _ACEOF
39735
39736 fi
39737
39738 DEBUG_CFLAGS=
39739 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39740 DEBUG_CFLAGS="-g"
39741 wxUSE_OPTIMISE=no
39742 fi
39743
39744 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39745 wxUSE_DEBUG_INFO=yes
39746 if test "$GCC" = yes; then
39747 DEBUG_CFLAGS="-ggdb"
39748 fi
39749 fi
39750
39751 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
39752 cat >>confdefs.h <<\_ACEOF
39753 #define WXDEBUG 1
39754 _ACEOF
39755
39756 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
39757 else
39758 if test "$wxUSE_GTK" = 1 ; then
39759 if test "x$wxGTK_VERSION" = "x1" ; then
39760 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
39761 fi
39762 fi
39763 fi
39764
39765 if test "$wxUSE_MEM_TRACING" = "yes" ; then
39766 cat >>confdefs.h <<\_ACEOF
39767 #define wxUSE_MEMORY_TRACING 1
39768 _ACEOF
39769
39770 cat >>confdefs.h <<\_ACEOF
39771 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
39772 _ACEOF
39773
39774 cat >>confdefs.h <<\_ACEOF
39775 #define wxUSE_DEBUG_NEW_ALWAYS 1
39776 _ACEOF
39777
39778 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
39779 fi
39780
39781 if test "$wxUSE_DMALLOC" = "yes" ; then
39782 DMALLOC_LIBS="-ldmallocthcxx"
39783 fi
39784
39785 PROFILE_FLAGS=
39786 if test "$wxUSE_PROFILE" = "yes" ; then
39787 PROFILE_FLAGS=" -pg"
39788 fi
39789
39790 if test "$GCC" = "yes" ; then
39791 if test "$wxUSE_NO_RTTI" = "yes" ; then
39792 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
39793 fi
39794 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39795 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
39796 fi
39797 if test "$wxUSE_PERMISSIVE" = "yes" ; then
39798 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
39799 fi
39800
39801 case "${host}" in
39802 powerpc*-*-aix* )
39803 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
39804 ;;
39805 *-hppa* )
39806 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
39807 ;;
39808 esac
39809 fi
39810
39811 OPTIMISE_CFLAGS=
39812 if test "$wxUSE_OPTIMISE" = "no" ; then
39813 if test "$GCC" = yes ; then
39814 OPTIMISE_CFLAGS="-O0"
39815 fi
39816 else
39817 if test "$GCC" = yes ; then
39818 case "${host}" in
39819 *-pc-os2_emx | *-pc-os2-emx )
39820 OPTIMISE_CFLAGS="-O2"
39821 ;;
39822 *)
39823 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
39824 ;;
39825 esac
39826 else
39827 OPTIMISE_CFLAGS="-O"
39828 fi
39829 fi
39830
39831
39832 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
39833 cat >>confdefs.h <<\_ACEOF
39834 #define WXWIN_COMPATIBILITY_2_4 1
39835 _ACEOF
39836
39837
39838 WXWIN_COMPATIBILITY_2_6="yes"
39839 fi
39840
39841 if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
39842 cat >>confdefs.h <<\_ACEOF
39843 #define WXWIN_COMPATIBILITY_2_6 1
39844 _ACEOF
39845
39846 fi
39847
39848
39849 if test "$wxUSE_GUI" = "yes"; then
39850 cat >>confdefs.h <<\_ACEOF
39851 #define wxUSE_GUI 1
39852 _ACEOF
39853
39854
39855 fi
39856
39857
39858 if test "$wxUSE_UNIX" = "yes"; then
39859 cat >>confdefs.h <<\_ACEOF
39860 #define wxUSE_UNIX 1
39861 _ACEOF
39862
39863 fi
39864
39865
39866 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39867
39868 HAVE_DL_FUNCS=0
39869 HAVE_SHL_FUNCS=0
39870 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39871 if test "$USE_DARWIN" = 1; then
39872 HAVE_DL_FUNCS=1
39873 elif test "$USE_DOS" = 1; then
39874 HAVE_DL_FUNCS=0
39875 else
39876
39877 for ac_func in dlopen
39878 do
39879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39880 echo "$as_me:$LINENO: checking for $ac_func" >&5
39881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39882 if eval "test \"\${$as_ac_var+set}\" = set"; then
39883 echo $ECHO_N "(cached) $ECHO_C" >&6
39884 else
39885 cat >conftest.$ac_ext <<_ACEOF
39886 /* confdefs.h. */
39887 _ACEOF
39888 cat confdefs.h >>conftest.$ac_ext
39889 cat >>conftest.$ac_ext <<_ACEOF
39890 /* end confdefs.h. */
39891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39893 #define $ac_func innocuous_$ac_func
39894
39895 /* System header to define __stub macros and hopefully few prototypes,
39896 which can conflict with char $ac_func (); below.
39897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39898 <limits.h> exists even on freestanding compilers. */
39899
39900 #ifdef __STDC__
39901 # include <limits.h>
39902 #else
39903 # include <assert.h>
39904 #endif
39905
39906 #undef $ac_func
39907
39908 /* Override any gcc2 internal prototype to avoid an error. */
39909 #ifdef __cplusplus
39910 extern "C"
39911 {
39912 #endif
39913 /* We use char because int might match the return type of a gcc2
39914 builtin and then its argument prototype would still apply. */
39915 char $ac_func ();
39916 /* The GNU C library defines this for functions which it implements
39917 to always fail with ENOSYS. Some functions are actually named
39918 something starting with __ and the normal name is an alias. */
39919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39920 choke me
39921 #else
39922 char (*f) () = $ac_func;
39923 #endif
39924 #ifdef __cplusplus
39925 }
39926 #endif
39927
39928 int
39929 main ()
39930 {
39931 return f != $ac_func;
39932 ;
39933 return 0;
39934 }
39935 _ACEOF
39936 rm -f conftest.$ac_objext conftest$ac_exeext
39937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39938 (eval $ac_link) 2>conftest.er1
39939 ac_status=$?
39940 grep -v '^ *+' conftest.er1 >conftest.err
39941 rm -f conftest.er1
39942 cat conftest.err >&5
39943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944 (exit $ac_status); } &&
39945 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39947 (eval $ac_try) 2>&5
39948 ac_status=$?
39949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39950 (exit $ac_status); }; } &&
39951 { ac_try='test -s conftest$ac_exeext'
39952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39953 (eval $ac_try) 2>&5
39954 ac_status=$?
39955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39956 (exit $ac_status); }; }; then
39957 eval "$as_ac_var=yes"
39958 else
39959 echo "$as_me: failed program was:" >&5
39960 sed 's/^/| /' conftest.$ac_ext >&5
39961
39962 eval "$as_ac_var=no"
39963 fi
39964 rm -f conftest.err conftest.$ac_objext \
39965 conftest$ac_exeext conftest.$ac_ext
39966 fi
39967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39969 if test `eval echo '${'$as_ac_var'}'` = yes; then
39970 cat >>confdefs.h <<_ACEOF
39971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39972 _ACEOF
39973
39974 cat >>confdefs.h <<\_ACEOF
39975 #define HAVE_DLOPEN 1
39976 _ACEOF
39977
39978 HAVE_DL_FUNCS=1
39979
39980 else
39981
39982 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39983 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
39984 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39985 echo $ECHO_N "(cached) $ECHO_C" >&6
39986 else
39987 ac_check_lib_save_LIBS=$LIBS
39988 LIBS="-ldl $LIBS"
39989 cat >conftest.$ac_ext <<_ACEOF
39990 /* confdefs.h. */
39991 _ACEOF
39992 cat confdefs.h >>conftest.$ac_ext
39993 cat >>conftest.$ac_ext <<_ACEOF
39994 /* end confdefs.h. */
39995
39996 /* Override any gcc2 internal prototype to avoid an error. */
39997 #ifdef __cplusplus
39998 extern "C"
39999 #endif
40000 /* We use char because int might match the return type of a gcc2
40001 builtin and then its argument prototype would still apply. */
40002 char dlopen ();
40003 int
40004 main ()
40005 {
40006 dlopen ();
40007 ;
40008 return 0;
40009 }
40010 _ACEOF
40011 rm -f conftest.$ac_objext conftest$ac_exeext
40012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40013 (eval $ac_link) 2>conftest.er1
40014 ac_status=$?
40015 grep -v '^ *+' conftest.er1 >conftest.err
40016 rm -f conftest.er1
40017 cat conftest.err >&5
40018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40019 (exit $ac_status); } &&
40020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40022 (eval $ac_try) 2>&5
40023 ac_status=$?
40024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40025 (exit $ac_status); }; } &&
40026 { ac_try='test -s conftest$ac_exeext'
40027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40028 (eval $ac_try) 2>&5
40029 ac_status=$?
40030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40031 (exit $ac_status); }; }; then
40032 ac_cv_lib_dl_dlopen=yes
40033 else
40034 echo "$as_me: failed program was:" >&5
40035 sed 's/^/| /' conftest.$ac_ext >&5
40036
40037 ac_cv_lib_dl_dlopen=no
40038 fi
40039 rm -f conftest.err conftest.$ac_objext \
40040 conftest$ac_exeext conftest.$ac_ext
40041 LIBS=$ac_check_lib_save_LIBS
40042 fi
40043 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40044 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40045 if test $ac_cv_lib_dl_dlopen = yes; then
40046
40047 cat >>confdefs.h <<\_ACEOF
40048 #define HAVE_DLOPEN 1
40049 _ACEOF
40050
40051 HAVE_DL_FUNCS=1
40052 DL_LINK=" -ldl$DL_LINK"
40053
40054 else
40055
40056
40057 for ac_func in shl_load
40058 do
40059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40060 echo "$as_me:$LINENO: checking for $ac_func" >&5
40061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40062 if eval "test \"\${$as_ac_var+set}\" = set"; then
40063 echo $ECHO_N "(cached) $ECHO_C" >&6
40064 else
40065 cat >conftest.$ac_ext <<_ACEOF
40066 /* confdefs.h. */
40067 _ACEOF
40068 cat confdefs.h >>conftest.$ac_ext
40069 cat >>conftest.$ac_ext <<_ACEOF
40070 /* end confdefs.h. */
40071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40073 #define $ac_func innocuous_$ac_func
40074
40075 /* System header to define __stub macros and hopefully few prototypes,
40076 which can conflict with char $ac_func (); below.
40077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40078 <limits.h> exists even on freestanding compilers. */
40079
40080 #ifdef __STDC__
40081 # include <limits.h>
40082 #else
40083 # include <assert.h>
40084 #endif
40085
40086 #undef $ac_func
40087
40088 /* Override any gcc2 internal prototype to avoid an error. */
40089 #ifdef __cplusplus
40090 extern "C"
40091 {
40092 #endif
40093 /* We use char because int might match the return type of a gcc2
40094 builtin and then its argument prototype would still apply. */
40095 char $ac_func ();
40096 /* The GNU C library defines this for functions which it implements
40097 to always fail with ENOSYS. Some functions are actually named
40098 something starting with __ and the normal name is an alias. */
40099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40100 choke me
40101 #else
40102 char (*f) () = $ac_func;
40103 #endif
40104 #ifdef __cplusplus
40105 }
40106 #endif
40107
40108 int
40109 main ()
40110 {
40111 return f != $ac_func;
40112 ;
40113 return 0;
40114 }
40115 _ACEOF
40116 rm -f conftest.$ac_objext conftest$ac_exeext
40117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40118 (eval $ac_link) 2>conftest.er1
40119 ac_status=$?
40120 grep -v '^ *+' conftest.er1 >conftest.err
40121 rm -f conftest.er1
40122 cat conftest.err >&5
40123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40124 (exit $ac_status); } &&
40125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40127 (eval $ac_try) 2>&5
40128 ac_status=$?
40129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40130 (exit $ac_status); }; } &&
40131 { ac_try='test -s conftest$ac_exeext'
40132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40133 (eval $ac_try) 2>&5
40134 ac_status=$?
40135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136 (exit $ac_status); }; }; then
40137 eval "$as_ac_var=yes"
40138 else
40139 echo "$as_me: failed program was:" >&5
40140 sed 's/^/| /' conftest.$ac_ext >&5
40141
40142 eval "$as_ac_var=no"
40143 fi
40144 rm -f conftest.err conftest.$ac_objext \
40145 conftest$ac_exeext conftest.$ac_ext
40146 fi
40147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40149 if test `eval echo '${'$as_ac_var'}'` = yes; then
40150 cat >>confdefs.h <<_ACEOF
40151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40152 _ACEOF
40153
40154 cat >>confdefs.h <<\_ACEOF
40155 #define HAVE_SHL_LOAD 1
40156 _ACEOF
40157
40158 HAVE_SHL_FUNCS=1
40159
40160 else
40161
40162 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40163 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40164 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40165 echo $ECHO_N "(cached) $ECHO_C" >&6
40166 else
40167 ac_check_lib_save_LIBS=$LIBS
40168 LIBS="-lshl_load $LIBS"
40169 cat >conftest.$ac_ext <<_ACEOF
40170 /* confdefs.h. */
40171 _ACEOF
40172 cat confdefs.h >>conftest.$ac_ext
40173 cat >>conftest.$ac_ext <<_ACEOF
40174 /* end confdefs.h. */
40175
40176 /* Override any gcc2 internal prototype to avoid an error. */
40177 #ifdef __cplusplus
40178 extern "C"
40179 #endif
40180 /* We use char because int might match the return type of a gcc2
40181 builtin and then its argument prototype would still apply. */
40182 char dld ();
40183 int
40184 main ()
40185 {
40186 dld ();
40187 ;
40188 return 0;
40189 }
40190 _ACEOF
40191 rm -f conftest.$ac_objext conftest$ac_exeext
40192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40193 (eval $ac_link) 2>conftest.er1
40194 ac_status=$?
40195 grep -v '^ *+' conftest.er1 >conftest.err
40196 rm -f conftest.er1
40197 cat conftest.err >&5
40198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40199 (exit $ac_status); } &&
40200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40202 (eval $ac_try) 2>&5
40203 ac_status=$?
40204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40205 (exit $ac_status); }; } &&
40206 { ac_try='test -s conftest$ac_exeext'
40207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40208 (eval $ac_try) 2>&5
40209 ac_status=$?
40210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40211 (exit $ac_status); }; }; then
40212 ac_cv_lib_shl_load_dld=yes
40213 else
40214 echo "$as_me: failed program was:" >&5
40215 sed 's/^/| /' conftest.$ac_ext >&5
40216
40217 ac_cv_lib_shl_load_dld=no
40218 fi
40219 rm -f conftest.err conftest.$ac_objext \
40220 conftest$ac_exeext conftest.$ac_ext
40221 LIBS=$ac_check_lib_save_LIBS
40222 fi
40223 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40224 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40225 if test $ac_cv_lib_shl_load_dld = yes; then
40226
40227 HAVE_SHL_FUNCS=1
40228 DL_LINK=" -ldld$DL_LINK"
40229
40230 fi
40231
40232
40233 fi
40234 done
40235
40236
40237 fi
40238
40239
40240 fi
40241 done
40242
40243
40244 if test "$HAVE_DL_FUNCS" = 1; then
40245
40246 for ac_func in dlerror
40247 do
40248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40249 echo "$as_me:$LINENO: checking for $ac_func" >&5
40250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40251 if eval "test \"\${$as_ac_var+set}\" = set"; then
40252 echo $ECHO_N "(cached) $ECHO_C" >&6
40253 else
40254 cat >conftest.$ac_ext <<_ACEOF
40255 /* confdefs.h. */
40256 _ACEOF
40257 cat confdefs.h >>conftest.$ac_ext
40258 cat >>conftest.$ac_ext <<_ACEOF
40259 /* end confdefs.h. */
40260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40262 #define $ac_func innocuous_$ac_func
40263
40264 /* System header to define __stub macros and hopefully few prototypes,
40265 which can conflict with char $ac_func (); below.
40266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40267 <limits.h> exists even on freestanding compilers. */
40268
40269 #ifdef __STDC__
40270 # include <limits.h>
40271 #else
40272 # include <assert.h>
40273 #endif
40274
40275 #undef $ac_func
40276
40277 /* Override any gcc2 internal prototype to avoid an error. */
40278 #ifdef __cplusplus
40279 extern "C"
40280 {
40281 #endif
40282 /* We use char because int might match the return type of a gcc2
40283 builtin and then its argument prototype would still apply. */
40284 char $ac_func ();
40285 /* The GNU C library defines this for functions which it implements
40286 to always fail with ENOSYS. Some functions are actually named
40287 something starting with __ and the normal name is an alias. */
40288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40289 choke me
40290 #else
40291 char (*f) () = $ac_func;
40292 #endif
40293 #ifdef __cplusplus
40294 }
40295 #endif
40296
40297 int
40298 main ()
40299 {
40300 return f != $ac_func;
40301 ;
40302 return 0;
40303 }
40304 _ACEOF
40305 rm -f conftest.$ac_objext conftest$ac_exeext
40306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40307 (eval $ac_link) 2>conftest.er1
40308 ac_status=$?
40309 grep -v '^ *+' conftest.er1 >conftest.err
40310 rm -f conftest.er1
40311 cat conftest.err >&5
40312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40313 (exit $ac_status); } &&
40314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40316 (eval $ac_try) 2>&5
40317 ac_status=$?
40318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40319 (exit $ac_status); }; } &&
40320 { ac_try='test -s conftest$ac_exeext'
40321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40322 (eval $ac_try) 2>&5
40323 ac_status=$?
40324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40325 (exit $ac_status); }; }; then
40326 eval "$as_ac_var=yes"
40327 else
40328 echo "$as_me: failed program was:" >&5
40329 sed 's/^/| /' conftest.$ac_ext >&5
40330
40331 eval "$as_ac_var=no"
40332 fi
40333 rm -f conftest.err conftest.$ac_objext \
40334 conftest$ac_exeext conftest.$ac_ext
40335 fi
40336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40338 if test `eval echo '${'$as_ac_var'}'` = yes; then
40339 cat >>confdefs.h <<_ACEOF
40340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40341 _ACEOF
40342 cat >>confdefs.h <<\_ACEOF
40343 #define HAVE_DLERROR 1
40344 _ACEOF
40345
40346 else
40347
40348 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40349 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40350 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40351 echo $ECHO_N "(cached) $ECHO_C" >&6
40352 else
40353 ac_check_lib_save_LIBS=$LIBS
40354 LIBS="-ldl $LIBS"
40355 cat >conftest.$ac_ext <<_ACEOF
40356 /* confdefs.h. */
40357 _ACEOF
40358 cat confdefs.h >>conftest.$ac_ext
40359 cat >>conftest.$ac_ext <<_ACEOF
40360 /* end confdefs.h. */
40361
40362 /* Override any gcc2 internal prototype to avoid an error. */
40363 #ifdef __cplusplus
40364 extern "C"
40365 #endif
40366 /* We use char because int might match the return type of a gcc2
40367 builtin and then its argument prototype would still apply. */
40368 char dlerror ();
40369 int
40370 main ()
40371 {
40372 dlerror ();
40373 ;
40374 return 0;
40375 }
40376 _ACEOF
40377 rm -f conftest.$ac_objext conftest$ac_exeext
40378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40379 (eval $ac_link) 2>conftest.er1
40380 ac_status=$?
40381 grep -v '^ *+' conftest.er1 >conftest.err
40382 rm -f conftest.er1
40383 cat conftest.err >&5
40384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40385 (exit $ac_status); } &&
40386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40388 (eval $ac_try) 2>&5
40389 ac_status=$?
40390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40391 (exit $ac_status); }; } &&
40392 { ac_try='test -s conftest$ac_exeext'
40393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40394 (eval $ac_try) 2>&5
40395 ac_status=$?
40396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40397 (exit $ac_status); }; }; then
40398 ac_cv_lib_dl_dlerror=yes
40399 else
40400 echo "$as_me: failed program was:" >&5
40401 sed 's/^/| /' conftest.$ac_ext >&5
40402
40403 ac_cv_lib_dl_dlerror=no
40404 fi
40405 rm -f conftest.err conftest.$ac_objext \
40406 conftest$ac_exeext conftest.$ac_ext
40407 LIBS=$ac_check_lib_save_LIBS
40408 fi
40409 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40410 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40411 if test $ac_cv_lib_dl_dlerror = yes; then
40412 cat >>confdefs.h <<\_ACEOF
40413 #define HAVE_DLERROR 1
40414 _ACEOF
40415
40416 fi
40417
40418
40419
40420 fi
40421 done
40422
40423 fi
40424 fi
40425
40426 if test "$HAVE_DL_FUNCS" = 0; then
40427 if test "$HAVE_SHL_FUNCS" = 0; then
40428 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
40429 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40430 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40431 wxUSE_DYNAMIC_LOADER=no
40432 wxUSE_DYNLIB_CLASS=no
40433 else
40434 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40435 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40436 fi
40437 fi
40438 fi
40439 fi
40440 fi
40441
40442 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40443 cat >>confdefs.h <<\_ACEOF
40444 #define wxUSE_DYNAMIC_LOADER 1
40445 _ACEOF
40446
40447 fi
40448 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40449 cat >>confdefs.h <<\_ACEOF
40450 #define wxUSE_DYNLIB_CLASS 1
40451 _ACEOF
40452
40453 fi
40454
40455
40456
40457 if test "$wxUSE_PLUGINS" = "yes" ; then
40458 if test "$wxUSE_SHARED" = "no" ; then
40459 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40460 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40461 wxUSE_PLUGINS=no
40462 fi
40463 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40464 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40465 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40466 wxUSE_PLUGINS=no
40467 fi
40468 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40469 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40470 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40471 wxUSE_PLUGINS=no
40472 fi
40473 if test "$wxUSE_PLUGINS" = "yes" ; then
40474 cat >>confdefs.h <<\_ACEOF
40475 #define wxUSE_PLUGINS 1
40476 _ACEOF
40477
40478 fi
40479 fi
40480
40481
40482 if test "$wxUSE_STL" = "yes"; then
40483 cat >>confdefs.h <<\_ACEOF
40484 #define wxUSE_STL 1
40485 _ACEOF
40486
40487 fi
40488
40489 if test "$wxUSE_APPLE_IEEE" = "yes"; then
40490 cat >>confdefs.h <<\_ACEOF
40491 #define wxUSE_APPLE_IEEE 1
40492 _ACEOF
40493
40494 fi
40495
40496 if test "$wxUSE_TIMER" = "yes"; then
40497 cat >>confdefs.h <<\_ACEOF
40498 #define wxUSE_TIMER 1
40499 _ACEOF
40500
40501 fi
40502
40503 if test "$USE_UNIX" = "1" ; then
40504 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40505 echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40506 if test "${ac_cv_header_sys_soundcard+set}" = set; then
40507 echo $ECHO_N "(cached) $ECHO_C" >&6
40508 else
40509
40510 cat >conftest.$ac_ext <<_ACEOF
40511 /* confdefs.h. */
40512 _ACEOF
40513 cat confdefs.h >>conftest.$ac_ext
40514 cat >>conftest.$ac_ext <<_ACEOF
40515 /* end confdefs.h. */
40516
40517 #include <sys/soundcard.h>
40518
40519 int
40520 main ()
40521 {
40522
40523 ioctl(0, SNDCTL_DSP_SYNC, 0);
40524
40525 ;
40526 return 0;
40527 }
40528 _ACEOF
40529 rm -f conftest.$ac_objext conftest$ac_exeext
40530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40531 (eval $ac_link) 2>conftest.er1
40532 ac_status=$?
40533 grep -v '^ *+' conftest.er1 >conftest.err
40534 rm -f conftest.er1
40535 cat conftest.err >&5
40536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40537 (exit $ac_status); } &&
40538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40540 (eval $ac_try) 2>&5
40541 ac_status=$?
40542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40543 (exit $ac_status); }; } &&
40544 { ac_try='test -s conftest$ac_exeext'
40545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40546 (eval $ac_try) 2>&5
40547 ac_status=$?
40548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40549 (exit $ac_status); }; }; then
40550 ac_cv_header_sys_soundcard=yes
40551 else
40552 echo "$as_me: failed program was:" >&5
40553 sed 's/^/| /' conftest.$ac_ext >&5
40554
40555
40556 saveLibs="$LIBS"
40557 LIBS="$saveLibs -lossaudio"
40558 cat >conftest.$ac_ext <<_ACEOF
40559 /* confdefs.h. */
40560 _ACEOF
40561 cat confdefs.h >>conftest.$ac_ext
40562 cat >>conftest.$ac_ext <<_ACEOF
40563 /* end confdefs.h. */
40564
40565 #include <sys/soundcard.h>
40566
40567 int
40568 main ()
40569 {
40570
40571 ioctl(0, SNDCTL_DSP_SYNC, 0);
40572
40573 ;
40574 return 0;
40575 }
40576 _ACEOF
40577 rm -f conftest.$ac_objext conftest$ac_exeext
40578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40579 (eval $ac_link) 2>conftest.er1
40580 ac_status=$?
40581 grep -v '^ *+' conftest.er1 >conftest.err
40582 rm -f conftest.er1
40583 cat conftest.err >&5
40584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40585 (exit $ac_status); } &&
40586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40588 (eval $ac_try) 2>&5
40589 ac_status=$?
40590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40591 (exit $ac_status); }; } &&
40592 { ac_try='test -s conftest$ac_exeext'
40593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40594 (eval $ac_try) 2>&5
40595 ac_status=$?
40596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40597 (exit $ac_status); }; }; then
40598 ac_cv_header_sys_soundcard=yes
40599 else
40600 echo "$as_me: failed program was:" >&5
40601 sed 's/^/| /' conftest.$ac_ext >&5
40602
40603
40604 LIBS="$saveLibs"
40605 ac_cv_header_sys_soundcard=no
40606
40607
40608 fi
40609 rm -f conftest.err conftest.$ac_objext \
40610 conftest$ac_exeext conftest.$ac_ext
40611
40612
40613 fi
40614 rm -f conftest.err conftest.$ac_objext \
40615 conftest$ac_exeext conftest.$ac_ext
40616
40617 fi
40618 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40619 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
40620
40621 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40622 cat >>confdefs.h <<\_ACEOF
40623 #define HAVE_SYS_SOUNDCARD_H 1
40624 _ACEOF
40625
40626 else
40627 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40628 fi
40629 fi
40630 WITH_PLUGIN_SDL=0
40631 if test "$wxUSE_SOUND" = "yes"; then
40632 if test "$USE_UNIX" = "1" ; then
40633 if test "$wxUSE_LIBSDL" != "no"; then
40634
40635 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40636 if test "${with_sdl_prefix+set}" = set; then
40637 withval="$with_sdl_prefix"
40638 sdl_prefix="$withval"
40639 else
40640 sdl_prefix=""
40641 fi;
40642
40643 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40644 if test "${with_sdl_exec_prefix+set}" = set; then
40645 withval="$with_sdl_exec_prefix"
40646 sdl_exec_prefix="$withval"
40647 else
40648 sdl_exec_prefix=""
40649 fi;
40650 # Check whether --enable-sdltest or --disable-sdltest was given.
40651 if test "${enable_sdltest+set}" = set; then
40652 enableval="$enable_sdltest"
40653
40654 else
40655 enable_sdltest=yes
40656 fi;
40657
40658 if test x$sdl_exec_prefix != x ; then
40659 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40660 if test x${SDL_CONFIG+set} != xset ; then
40661 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40662 fi
40663 fi
40664 if test x$sdl_prefix != x ; then
40665 sdl_args="$sdl_args --prefix=$sdl_prefix"
40666 if test x${SDL_CONFIG+set} != xset ; then
40667 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40668 fi
40669 fi
40670
40671
40672 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40673 # Extract the first word of "sdl-config", so it can be a program name with args.
40674 set dummy sdl-config; ac_word=$2
40675 echo "$as_me:$LINENO: checking for $ac_word" >&5
40676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40677 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40678 echo $ECHO_N "(cached) $ECHO_C" >&6
40679 else
40680 case $SDL_CONFIG in
40681 [\\/]* | ?:[\\/]*)
40682 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40683 ;;
40684 *)
40685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40686 for as_dir in $PATH
40687 do
40688 IFS=$as_save_IFS
40689 test -z "$as_dir" && as_dir=.
40690 for ac_exec_ext in '' $ac_executable_extensions; do
40691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40692 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40694 break 2
40695 fi
40696 done
40697 done
40698
40699 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40700 ;;
40701 esac
40702 fi
40703 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40704
40705 if test -n "$SDL_CONFIG"; then
40706 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40707 echo "${ECHO_T}$SDL_CONFIG" >&6
40708 else
40709 echo "$as_me:$LINENO: result: no" >&5
40710 echo "${ECHO_T}no" >&6
40711 fi
40712
40713 min_sdl_version=1.2.0
40714 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40715 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40716 no_sdl=""
40717 if test "$SDL_CONFIG" = "no" ; then
40718 no_sdl=yes
40719 else
40720 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40721 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40722
40723 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40724 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40725 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40726 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40727 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40728 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40729 if test "x$enable_sdltest" = "xyes" ; then
40730 ac_save_CFLAGS="$CFLAGS"
40731 ac_save_CXXFLAGS="$CXXFLAGS"
40732 ac_save_LIBS="$LIBS"
40733 CFLAGS="$CFLAGS $SDL_CFLAGS"
40734 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
40735 LIBS="$LIBS $SDL_LIBS"
40736 rm -f conf.sdltest
40737 if test "$cross_compiling" = yes; then
40738 echo $ac_n "cross compiling; assumed OK... $ac_c"
40739 else
40740 cat >conftest.$ac_ext <<_ACEOF
40741 /* confdefs.h. */
40742 _ACEOF
40743 cat confdefs.h >>conftest.$ac_ext
40744 cat >>conftest.$ac_ext <<_ACEOF
40745 /* end confdefs.h. */
40746
40747 #include <stdio.h>
40748 #include <stdlib.h>
40749 #include <string.h>
40750 #include "SDL.h"
40751
40752 char*
40753 my_strdup (char *str)
40754 {
40755 char *new_str;
40756
40757 if (str)
40758 {
40759 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
40760 strcpy (new_str, str);
40761 }
40762 else
40763 new_str = NULL;
40764
40765 return new_str;
40766 }
40767
40768 int main (int argc, char *argv[])
40769 {
40770 int major, minor, micro;
40771 char *tmp_version;
40772
40773 /* This hangs on some systems (?)
40774 system ("touch conf.sdltest");
40775 */
40776 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
40777
40778 /* HP/UX 9 (%@#!) writes to sscanf strings */
40779 tmp_version = my_strdup("$min_sdl_version");
40780 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
40781 printf("%s, bad version string\n", "$min_sdl_version");
40782 exit(1);
40783 }
40784
40785 if (($sdl_major_version > major) ||
40786 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
40787 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
40788 {
40789 return 0;
40790 }
40791 else
40792 {
40793 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
40794 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
40795 printf("*** best to upgrade to the required version.\n");
40796 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
40797 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
40798 printf("*** config.cache before re-running configure\n");
40799 return 1;
40800 }
40801 }
40802
40803
40804 _ACEOF
40805 rm -f conftest$ac_exeext
40806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40807 (eval $ac_link) 2>&5
40808 ac_status=$?
40809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40812 (eval $ac_try) 2>&5
40813 ac_status=$?
40814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40815 (exit $ac_status); }; }; then
40816 :
40817 else
40818 echo "$as_me: program exited with status $ac_status" >&5
40819 echo "$as_me: failed program was:" >&5
40820 sed 's/^/| /' conftest.$ac_ext >&5
40821
40822 ( exit $ac_status )
40823 no_sdl=yes
40824 fi
40825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40826 fi
40827 CFLAGS="$ac_save_CFLAGS"
40828 CXXFLAGS="$ac_save_CXXFLAGS"
40829 LIBS="$ac_save_LIBS"
40830 fi
40831 fi
40832 if test "x$no_sdl" = x ; then
40833 echo "$as_me:$LINENO: result: yes" >&5
40834 echo "${ECHO_T}yes" >&6
40835
40836 EXTRALIBS_SDL="$SDL_LIBS"
40837 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
40838 cat >>confdefs.h <<\_ACEOF
40839 #define wxUSE_LIBSDL 1
40840 _ACEOF
40841
40842
40843 else
40844 echo "$as_me:$LINENO: result: no" >&5
40845 echo "${ECHO_T}no" >&6
40846 if test "$SDL_CONFIG" = "no" ; then
40847 echo "*** The sdl-config script installed by SDL could not be found"
40848 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
40849 echo "*** your path, or set the SDL_CONFIG environment variable to the"
40850 echo "*** full path to sdl-config."
40851 else
40852 if test -f conf.sdltest ; then
40853 :
40854 else
40855 echo "*** Could not run SDL test program, checking why..."
40856 CFLAGS="$CFLAGS $SDL_CFLAGS"
40857 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
40858 LIBS="$LIBS $SDL_LIBS"
40859 cat >conftest.$ac_ext <<_ACEOF
40860 /* confdefs.h. */
40861 _ACEOF
40862 cat confdefs.h >>conftest.$ac_ext
40863 cat >>conftest.$ac_ext <<_ACEOF
40864 /* end confdefs.h. */
40865
40866 #include <stdio.h>
40867 #include "SDL.h"
40868
40869 int main(int argc, char *argv[])
40870 { return 0; }
40871 #undef main
40872 #define main K_and_R_C_main
40873
40874 int
40875 main ()
40876 {
40877 return 0;
40878 ;
40879 return 0;
40880 }
40881 _ACEOF
40882 rm -f conftest.$ac_objext conftest$ac_exeext
40883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40884 (eval $ac_link) 2>conftest.er1
40885 ac_status=$?
40886 grep -v '^ *+' conftest.er1 >conftest.err
40887 rm -f conftest.er1
40888 cat conftest.err >&5
40889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40890 (exit $ac_status); } &&
40891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40893 (eval $ac_try) 2>&5
40894 ac_status=$?
40895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896 (exit $ac_status); }; } &&
40897 { ac_try='test -s conftest$ac_exeext'
40898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40899 (eval $ac_try) 2>&5
40900 ac_status=$?
40901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40902 (exit $ac_status); }; }; then
40903 echo "*** The test program compiled, but did not run. This usually means"
40904 echo "*** that the run-time linker is not finding SDL or finding the wrong"
40905 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
40906 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
40907 echo "*** to the installed location Also, make sure you have run ldconfig if that"
40908 echo "*** is required on your system"
40909 echo "***"
40910 echo "*** If you have an old version installed, it is best to remove it, although"
40911 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
40912 else
40913 echo "$as_me: failed program was:" >&5
40914 sed 's/^/| /' conftest.$ac_ext >&5
40915
40916 echo "*** The test program failed to compile or link. See the file config.log for the"
40917 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
40918 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
40919 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
40920 fi
40921 rm -f conftest.err conftest.$ac_objext \
40922 conftest$ac_exeext conftest.$ac_ext
40923 CFLAGS="$ac_save_CFLAGS"
40924 CXXFLAGS="$ac_save_CXXFLAGS"
40925 LIBS="$ac_save_LIBS"
40926 fi
40927 fi
40928 SDL_CFLAGS=""
40929 SDL_LIBS=""
40930 wxUSE_LIBSDL="no"
40931 fi
40932
40933
40934 rm -f conf.sdltest
40935
40936 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
40937 WITH_PLUGIN_SDL=1
40938 fi
40939 fi
40940 fi
40941
40942 cat >>confdefs.h <<\_ACEOF
40943 #define wxUSE_SOUND 1
40944 _ACEOF
40945
40946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
40947 fi
40948
40949 if test "$WXGTK20" = 1; then
40950 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40951 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
40952
40953
40954 succeeded=no
40955
40956 if test -z "$PKG_CONFIG"; then
40957 # Extract the first word of "pkg-config", so it can be a program name with args.
40958 set dummy pkg-config; ac_word=$2
40959 echo "$as_me:$LINENO: checking for $ac_word" >&5
40960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40961 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40962 echo $ECHO_N "(cached) $ECHO_C" >&6
40963 else
40964 case $PKG_CONFIG in
40965 [\\/]* | ?:[\\/]*)
40966 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40967 ;;
40968 *)
40969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40970 for as_dir in $PATH
40971 do
40972 IFS=$as_save_IFS
40973 test -z "$as_dir" && as_dir=.
40974 for ac_exec_ext in '' $ac_executable_extensions; do
40975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40976 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40978 break 2
40979 fi
40980 done
40981 done
40982
40983 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40984 ;;
40985 esac
40986 fi
40987 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40988
40989 if test -n "$PKG_CONFIG"; then
40990 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40991 echo "${ECHO_T}$PKG_CONFIG" >&6
40992 else
40993 echo "$as_me:$LINENO: result: no" >&5
40994 echo "${ECHO_T}no" >&6
40995 fi
40996
40997 fi
40998
40999 if test "$PKG_CONFIG" = "no" ; then
41000 echo "*** The pkg-config script could not be found. Make sure it is"
41001 echo "*** in your path, or set the PKG_CONFIG environment variable"
41002 echo "*** to the full path to pkg-config."
41003 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41004 else
41005 PKG_CONFIG_MIN_VERSION=0.9.0
41006 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41007 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
41008 echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
41009
41010 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
41011 echo "$as_me:$LINENO: result: yes" >&5
41012 echo "${ECHO_T}yes" >&6
41013 succeeded=yes
41014
41015 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
41016 echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
41017 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
41018 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
41019 echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
41020
41021 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
41022 echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
41023 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
41024 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
41025 echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
41026 else
41027 LIBGNOMEPRINTUI_CFLAGS=""
41028 LIBGNOMEPRINTUI_LIBS=""
41029 ## If we have a custom action on failure, don't print errors, but
41030 ## do set a variable so people can do so.
41031 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
41032
41033 fi
41034
41035
41036
41037 else
41038 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41039 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41040 fi
41041 fi
41042
41043 if test $succeeded = yes; then
41044
41045 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
41046 cat >>confdefs.h <<\_ACEOF
41047 #define wxUSE_LIBGNOMEPRINT 1
41048 _ACEOF
41049
41050
41051 else
41052
41053 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41054 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41055 wxUSE_LIBGNOMEPRINT="no"
41056
41057
41058 fi
41059
41060 fi
41061 fi
41062 fi
41063
41064 if test "$WXGTK20" = 1; then
41065 if test "$wxUSE_MIMETYPE" = "yes" ; then
41066 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41067
41068
41069 succeeded=no
41070
41071 if test -z "$PKG_CONFIG"; then
41072 # Extract the first word of "pkg-config", so it can be a program name with args.
41073 set dummy pkg-config; ac_word=$2
41074 echo "$as_me:$LINENO: checking for $ac_word" >&5
41075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41076 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41077 echo $ECHO_N "(cached) $ECHO_C" >&6
41078 else
41079 case $PKG_CONFIG in
41080 [\\/]* | ?:[\\/]*)
41081 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41082 ;;
41083 *)
41084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41085 for as_dir in $PATH
41086 do
41087 IFS=$as_save_IFS
41088 test -z "$as_dir" && as_dir=.
41089 for ac_exec_ext in '' $ac_executable_extensions; do
41090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41091 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41093 break 2
41094 fi
41095 done
41096 done
41097
41098 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41099 ;;
41100 esac
41101 fi
41102 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41103
41104 if test -n "$PKG_CONFIG"; then
41105 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41106 echo "${ECHO_T}$PKG_CONFIG" >&6
41107 else
41108 echo "$as_me:$LINENO: result: no" >&5
41109 echo "${ECHO_T}no" >&6
41110 fi
41111
41112 fi
41113
41114 if test "$PKG_CONFIG" = "no" ; then
41115 echo "*** The pkg-config script could not be found. Make sure it is"
41116 echo "*** in your path, or set the PKG_CONFIG environment variable"
41117 echo "*** to the full path to pkg-config."
41118 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41119 else
41120 PKG_CONFIG_MIN_VERSION=0.9.0
41121 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41122 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
41123 echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
41124
41125 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
41126 echo "$as_me:$LINENO: result: yes" >&5
41127 echo "${ECHO_T}yes" >&6
41128 succeeded=yes
41129
41130 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
41131 echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
41132 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
41133 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
41134 echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
41135
41136 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
41137 echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
41138 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
41139 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
41140 echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
41141 else
41142 GNOMEVFS_CFLAGS=""
41143 GNOMEVFS_LIBS=""
41144 ## If we have a custom action on failure, don't print errors, but
41145 ## do set a variable so people can do so.
41146 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41147
41148 fi
41149
41150
41151
41152 else
41153 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41154 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41155 fi
41156 fi
41157
41158 if test $succeeded = yes; then
41159
41160 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41161 cat >>confdefs.h <<\_ACEOF
41162 #define wxUSE_LIBGNOMEVFS 1
41163 _ACEOF
41164
41165
41166 else
41167
41168 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41169 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41170 wxUSE_LIBGNOMEVFS="no"
41171
41172
41173 fi
41174
41175 fi
41176 fi
41177 fi
41178
41179 if test "$WXGTK20" = 1; then
41180 if test "$wxUSE_LIBHILDON" = "yes" ; then
41181
41182 succeeded=no
41183
41184 if test -z "$PKG_CONFIG"; then
41185 # Extract the first word of "pkg-config", so it can be a program name with args.
41186 set dummy pkg-config; ac_word=$2
41187 echo "$as_me:$LINENO: checking for $ac_word" >&5
41188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41189 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41190 echo $ECHO_N "(cached) $ECHO_C" >&6
41191 else
41192 case $PKG_CONFIG in
41193 [\\/]* | ?:[\\/]*)
41194 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41195 ;;
41196 *)
41197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41198 for as_dir in $PATH
41199 do
41200 IFS=$as_save_IFS
41201 test -z "$as_dir" && as_dir=.
41202 for ac_exec_ext in '' $ac_executable_extensions; do
41203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41204 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41206 break 2
41207 fi
41208 done
41209 done
41210
41211 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41212 ;;
41213 esac
41214 fi
41215 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41216
41217 if test -n "$PKG_CONFIG"; then
41218 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41219 echo "${ECHO_T}$PKG_CONFIG" >&6
41220 else
41221 echo "$as_me:$LINENO: result: no" >&5
41222 echo "${ECHO_T}no" >&6
41223 fi
41224
41225 fi
41226
41227 if test "$PKG_CONFIG" = "no" ; then
41228 echo "*** The pkg-config script could not be found. Make sure it is"
41229 echo "*** in your path, or set the PKG_CONFIG environment variable"
41230 echo "*** to the full path to pkg-config."
41231 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41232 else
41233 PKG_CONFIG_MIN_VERSION=0.9.0
41234 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41235 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41236 echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41237
41238 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41239 echo "$as_me:$LINENO: result: yes" >&5
41240 echo "${ECHO_T}yes" >&6
41241 succeeded=yes
41242
41243 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41244 echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41245 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41246 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41247 echo "${ECHO_T}$HILDON_CFLAGS" >&6
41248
41249 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41250 echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41251 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41252 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41253 echo "${ECHO_T}$HILDON_LIBS" >&6
41254 else
41255 HILDON_CFLAGS=""
41256 HILDON_LIBS=""
41257 ## If we have a custom action on failure, don't print errors, but
41258 ## do set a variable so people can do so.
41259 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41260
41261 fi
41262
41263
41264
41265 else
41266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41268 fi
41269 fi
41270
41271 if test $succeeded = yes; then
41272
41273 EXTRALIBS_HILDON="$HILDON_LIBS"
41274 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41275 cat >>confdefs.h <<\_ACEOF
41276 #define wxUSE_LIBHILDON 1
41277 _ACEOF
41278
41279
41280 else
41281
41282 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41283 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41284 wxUSE_LIBHILDON="no"
41285
41286
41287 fi
41288
41289 fi
41290 fi
41291
41292 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41293 cat >>confdefs.h <<\_ACEOF
41294 #define wxUSE_CMDLINE_PARSER 1
41295 _ACEOF
41296
41297 fi
41298
41299 if test "$wxUSE_STOPWATCH" = "yes"; then
41300 cat >>confdefs.h <<\_ACEOF
41301 #define wxUSE_STOPWATCH 1
41302 _ACEOF
41303
41304 fi
41305
41306 if test "$wxUSE_DATETIME" = "yes"; then
41307 cat >>confdefs.h <<\_ACEOF
41308 #define wxUSE_DATETIME 1
41309 _ACEOF
41310
41311 fi
41312
41313 if test "$wxUSE_FILE" = "yes"; then
41314 cat >>confdefs.h <<\_ACEOF
41315 #define wxUSE_FILE 1
41316 _ACEOF
41317
41318 fi
41319
41320 if test "$wxUSE_FFILE" = "yes"; then
41321 cat >>confdefs.h <<\_ACEOF
41322 #define wxUSE_FFILE 1
41323 _ACEOF
41324
41325 fi
41326
41327 if test "$wxUSE_FILESYSTEM" = "yes"; then
41328 cat >>confdefs.h <<\_ACEOF
41329 #define wxUSE_FILESYSTEM 1
41330 _ACEOF
41331
41332 fi
41333
41334 if test "$wxUSE_FS_ZIP" = "yes"; then
41335 cat >>confdefs.h <<\_ACEOF
41336 #define wxUSE_FS_ZIP 1
41337 _ACEOF
41338
41339 fi
41340
41341 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
41342 cat >>confdefs.h <<\_ACEOF
41343 #define wxUSE_ARCHIVE_STREAMS 1
41344 _ACEOF
41345
41346 fi
41347
41348 if test "$wxUSE_ZIPSTREAM" = "yes"; then
41349 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
41350 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41351 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41352 elif test "$wxUSE_ZLIB" = "no"; then
41353 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41354 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41355 else
41356 cat >>confdefs.h <<\_ACEOF
41357 #define wxUSE_ZIPSTREAM 1
41358 _ACEOF
41359
41360 fi
41361 fi
41362
41363 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41364 if test "$USE_UNIX" != 1; then
41365 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41366 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41367 wxUSE_ON_FATAL_EXCEPTION=no
41368 else
41369 cat >>confdefs.h <<\_ACEOF
41370 #define wxUSE_ON_FATAL_EXCEPTION 1
41371 _ACEOF
41372
41373 fi
41374 fi
41375
41376 if test "$wxUSE_STACKWALKER" = "yes"; then
41377 cat >>confdefs.h <<\_ACEOF
41378 #define wxUSE_STACKWALKER 1
41379 _ACEOF
41380
41381 fi
41382
41383 if test "$wxUSE_DEBUGREPORT" = "yes"; then
41384 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41385 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41386 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
41387 wxUSE_DEBUGREPORT=no
41388 else
41389 cat >>confdefs.h <<\_ACEOF
41390 #define wxUSE_DEBUGREPORT 1
41391 _ACEOF
41392
41393 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41394 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41395 fi
41396 fi
41397 fi
41398
41399 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41400 cat >>confdefs.h <<\_ACEOF
41401 #define wxUSE_SNGLINST_CHECKER 1
41402 _ACEOF
41403
41404 fi
41405
41406 if test "$wxUSE_BUSYINFO" = "yes"; then
41407 cat >>confdefs.h <<\_ACEOF
41408 #define wxUSE_BUSYINFO 1
41409 _ACEOF
41410
41411 fi
41412
41413 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41414 cat >>confdefs.h <<\_ACEOF
41415 #define wxUSE_STD_IOSTREAM 1
41416 _ACEOF
41417
41418 fi
41419
41420 if test "$wxUSE_STD_STRING" = "yes"; then
41421 cat >>confdefs.h <<\_ACEOF
41422 #define wxUSE_STD_STRING 1
41423 _ACEOF
41424
41425 fi
41426
41427 if test "$wxUSE_STDPATHS" = "yes"; then
41428 cat >>confdefs.h <<\_ACEOF
41429 #define wxUSE_STDPATHS 1
41430 _ACEOF
41431
41432 fi
41433
41434 if test "$wxUSE_TEXTBUFFER" = "yes"; then
41435 cat >>confdefs.h <<\_ACEOF
41436 #define wxUSE_TEXTBUFFER 1
41437 _ACEOF
41438
41439 fi
41440
41441 if test "$wxUSE_TEXTFILE" = "yes"; then
41442 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41443 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41444 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41445 else
41446 cat >>confdefs.h <<\_ACEOF
41447 #define wxUSE_TEXTFILE 1
41448 _ACEOF
41449
41450 fi
41451 fi
41452
41453 if test "$wxUSE_CONFIG" = "yes" ; then
41454 if test "$wxUSE_TEXTFILE" != "yes"; then
41455 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41456 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41457 else
41458 cat >>confdefs.h <<\_ACEOF
41459 #define wxUSE_CONFIG 1
41460 _ACEOF
41461
41462 cat >>confdefs.h <<\_ACEOF
41463 #define wxUSE_CONFIG_NATIVE 1
41464 _ACEOF
41465
41466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41467 fi
41468 fi
41469
41470 if test "$wxUSE_INTL" = "yes" ; then
41471 if test "$wxUSE_FILE" != "yes"; then
41472 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41473 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41474 else
41475 cat >>confdefs.h <<\_ACEOF
41476 #define wxUSE_INTL 1
41477 _ACEOF
41478
41479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41480 GUIDIST="$GUIDIST INTL_DIST"
41481 fi
41482 fi
41483
41484 if test "$wxUSE_LOG" = "yes"; then
41485 cat >>confdefs.h <<\_ACEOF
41486 #define wxUSE_LOG 1
41487 _ACEOF
41488
41489
41490 if test "$wxUSE_LOGGUI" = "yes"; then
41491 cat >>confdefs.h <<\_ACEOF
41492 #define wxUSE_LOGGUI 1
41493 _ACEOF
41494
41495 fi
41496
41497 if test "$wxUSE_LOGWINDOW" = "yes"; then
41498 cat >>confdefs.h <<\_ACEOF
41499 #define wxUSE_LOGWINDOW 1
41500 _ACEOF
41501
41502 fi
41503
41504 if test "$wxUSE_LOGDIALOG" = "yes"; then
41505 cat >>confdefs.h <<\_ACEOF
41506 #define wxUSE_LOG_DIALOG 1
41507 _ACEOF
41508
41509 fi
41510
41511 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
41512 fi
41513
41514 if test "$wxUSE_LONGLONG" = "yes"; then
41515 cat >>confdefs.h <<\_ACEOF
41516 #define wxUSE_LONGLONG 1
41517 _ACEOF
41518
41519 fi
41520
41521 if test "$wxUSE_GEOMETRY" = "yes"; then
41522 cat >>confdefs.h <<\_ACEOF
41523 #define wxUSE_GEOMETRY 1
41524 _ACEOF
41525
41526 fi
41527
41528 if test "$wxUSE_STREAMS" = "yes" ; then
41529 cat >>confdefs.h <<\_ACEOF
41530 #define wxUSE_STREAMS 1
41531 _ACEOF
41532
41533 fi
41534
41535
41536 if test "$wxUSE_DATETIME" = "yes"; then
41537
41538 for ac_func in strptime
41539 do
41540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41541 echo "$as_me:$LINENO: checking for $ac_func" >&5
41542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41543 if eval "test \"\${$as_ac_var+set}\" = set"; then
41544 echo $ECHO_N "(cached) $ECHO_C" >&6
41545 else
41546 cat >conftest.$ac_ext <<_ACEOF
41547 /* confdefs.h. */
41548 _ACEOF
41549 cat confdefs.h >>conftest.$ac_ext
41550 cat >>conftest.$ac_ext <<_ACEOF
41551 /* end confdefs.h. */
41552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41554 #define $ac_func innocuous_$ac_func
41555
41556 /* System header to define __stub macros and hopefully few prototypes,
41557 which can conflict with char $ac_func (); below.
41558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41559 <limits.h> exists even on freestanding compilers. */
41560
41561 #ifdef __STDC__
41562 # include <limits.h>
41563 #else
41564 # include <assert.h>
41565 #endif
41566
41567 #undef $ac_func
41568
41569 /* Override any gcc2 internal prototype to avoid an error. */
41570 #ifdef __cplusplus
41571 extern "C"
41572 {
41573 #endif
41574 /* We use char because int might match the return type of a gcc2
41575 builtin and then its argument prototype would still apply. */
41576 char $ac_func ();
41577 /* The GNU C library defines this for functions which it implements
41578 to always fail with ENOSYS. Some functions are actually named
41579 something starting with __ and the normal name is an alias. */
41580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41581 choke me
41582 #else
41583 char (*f) () = $ac_func;
41584 #endif
41585 #ifdef __cplusplus
41586 }
41587 #endif
41588
41589 int
41590 main ()
41591 {
41592 return f != $ac_func;
41593 ;
41594 return 0;
41595 }
41596 _ACEOF
41597 rm -f conftest.$ac_objext conftest$ac_exeext
41598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41599 (eval $ac_link) 2>conftest.er1
41600 ac_status=$?
41601 grep -v '^ *+' conftest.er1 >conftest.err
41602 rm -f conftest.er1
41603 cat conftest.err >&5
41604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41605 (exit $ac_status); } &&
41606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41608 (eval $ac_try) 2>&5
41609 ac_status=$?
41610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41611 (exit $ac_status); }; } &&
41612 { ac_try='test -s conftest$ac_exeext'
41613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41614 (eval $ac_try) 2>&5
41615 ac_status=$?
41616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41617 (exit $ac_status); }; }; then
41618 eval "$as_ac_var=yes"
41619 else
41620 echo "$as_me: failed program was:" >&5
41621 sed 's/^/| /' conftest.$ac_ext >&5
41622
41623 eval "$as_ac_var=no"
41624 fi
41625 rm -f conftest.err conftest.$ac_objext \
41626 conftest$ac_exeext conftest.$ac_ext
41627 fi
41628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41630 if test `eval echo '${'$as_ac_var'}'` = yes; then
41631 cat >>confdefs.h <<_ACEOF
41632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41633 _ACEOF
41634
41635 fi
41636 done
41637
41638 if test "$ac_cv_func_strptime" = "yes"; then
41639 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41640 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41641 if test "${wx_cv_func_strptime_decl+set}" = set; then
41642 echo $ECHO_N "(cached) $ECHO_C" >&6
41643 else
41644
41645 cat >conftest.$ac_ext <<_ACEOF
41646 /* confdefs.h. */
41647 _ACEOF
41648 cat confdefs.h >>conftest.$ac_ext
41649 cat >>conftest.$ac_ext <<_ACEOF
41650 /* end confdefs.h. */
41651
41652 #include <time.h>
41653
41654 int
41655 main ()
41656 {
41657
41658 struct tm t;
41659 strptime("foo", "bar", &t);
41660
41661 ;
41662 return 0;
41663 }
41664 _ACEOF
41665 rm -f conftest.$ac_objext
41666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41667 (eval $ac_compile) 2>conftest.er1
41668 ac_status=$?
41669 grep -v '^ *+' conftest.er1 >conftest.err
41670 rm -f conftest.er1
41671 cat conftest.err >&5
41672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41673 (exit $ac_status); } &&
41674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41676 (eval $ac_try) 2>&5
41677 ac_status=$?
41678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41679 (exit $ac_status); }; } &&
41680 { ac_try='test -s conftest.$ac_objext'
41681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41682 (eval $ac_try) 2>&5
41683 ac_status=$?
41684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41685 (exit $ac_status); }; }; then
41686 wx_cv_func_strptime_decl=yes
41687 else
41688 echo "$as_me: failed program was:" >&5
41689 sed 's/^/| /' conftest.$ac_ext >&5
41690
41691 wx_cv_func_strptime_decl=no
41692
41693 fi
41694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41695
41696
41697 fi
41698 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41699 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41700 fi
41701 if test "$wx_cv_func_strptime_decl" = "yes"; then
41702 cat >>confdefs.h <<\_ACEOF
41703 #define HAVE_STRPTIME_DECL 1
41704 _ACEOF
41705
41706 fi
41707
41708 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41709 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41710 if test "${wx_cv_var_timezone+set}" = set; then
41711 echo $ECHO_N "(cached) $ECHO_C" >&6
41712 else
41713
41714 cat >conftest.$ac_ext <<_ACEOF
41715 /* confdefs.h. */
41716 _ACEOF
41717 cat confdefs.h >>conftest.$ac_ext
41718 cat >>conftest.$ac_ext <<_ACEOF
41719 /* end confdefs.h. */
41720
41721 #include <time.h>
41722
41723 int
41724 main ()
41725 {
41726
41727 int tz;
41728 tz = timezone;
41729
41730 ;
41731 return 0;
41732 }
41733 _ACEOF
41734 rm -f conftest.$ac_objext
41735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41736 (eval $ac_compile) 2>conftest.er1
41737 ac_status=$?
41738 grep -v '^ *+' conftest.er1 >conftest.err
41739 rm -f conftest.er1
41740 cat conftest.err >&5
41741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41742 (exit $ac_status); } &&
41743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41745 (eval $ac_try) 2>&5
41746 ac_status=$?
41747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41748 (exit $ac_status); }; } &&
41749 { ac_try='test -s conftest.$ac_objext'
41750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41751 (eval $ac_try) 2>&5
41752 ac_status=$?
41753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41754 (exit $ac_status); }; }; then
41755
41756 wx_cv_var_timezone=timezone
41757
41758 else
41759 echo "$as_me: failed program was:" >&5
41760 sed 's/^/| /' conftest.$ac_ext >&5
41761
41762
41763 cat >conftest.$ac_ext <<_ACEOF
41764 /* confdefs.h. */
41765 _ACEOF
41766 cat confdefs.h >>conftest.$ac_ext
41767 cat >>conftest.$ac_ext <<_ACEOF
41768 /* end confdefs.h. */
41769
41770 #include <time.h>
41771
41772 int
41773 main ()
41774 {
41775
41776 int tz;
41777 tz = _timezone;
41778
41779 ;
41780 return 0;
41781 }
41782 _ACEOF
41783 rm -f conftest.$ac_objext
41784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41785 (eval $ac_compile) 2>conftest.er1
41786 ac_status=$?
41787 grep -v '^ *+' conftest.er1 >conftest.err
41788 rm -f conftest.er1
41789 cat conftest.err >&5
41790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41791 (exit $ac_status); } &&
41792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41794 (eval $ac_try) 2>&5
41795 ac_status=$?
41796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41797 (exit $ac_status); }; } &&
41798 { ac_try='test -s conftest.$ac_objext'
41799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41800 (eval $ac_try) 2>&5
41801 ac_status=$?
41802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41803 (exit $ac_status); }; }; then
41804
41805 wx_cv_var_timezone=_timezone
41806
41807 else
41808 echo "$as_me: failed program was:" >&5
41809 sed 's/^/| /' conftest.$ac_ext >&5
41810
41811
41812 cat >conftest.$ac_ext <<_ACEOF
41813 /* confdefs.h. */
41814 _ACEOF
41815 cat confdefs.h >>conftest.$ac_ext
41816 cat >>conftest.$ac_ext <<_ACEOF
41817 /* end confdefs.h. */
41818
41819 #include <time.h>
41820
41821 int
41822 main ()
41823 {
41824
41825 int tz;
41826 tz = __timezone;
41827
41828 ;
41829 return 0;
41830 }
41831 _ACEOF
41832 rm -f conftest.$ac_objext
41833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41834 (eval $ac_compile) 2>conftest.er1
41835 ac_status=$?
41836 grep -v '^ *+' conftest.er1 >conftest.err
41837 rm -f conftest.er1
41838 cat conftest.err >&5
41839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840 (exit $ac_status); } &&
41841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41843 (eval $ac_try) 2>&5
41844 ac_status=$?
41845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846 (exit $ac_status); }; } &&
41847 { ac_try='test -s conftest.$ac_objext'
41848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41849 (eval $ac_try) 2>&5
41850 ac_status=$?
41851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41852 (exit $ac_status); }; }; then
41853
41854 wx_cv_var_timezone=__timezone
41855
41856 else
41857 echo "$as_me: failed program was:" >&5
41858 sed 's/^/| /' conftest.$ac_ext >&5
41859
41860
41861 if test "$USE_DOS" = 0 ; then
41862 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
41863 echo "$as_me: WARNING: no timezone variable" >&2;}
41864 fi
41865
41866
41867 fi
41868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41869
41870
41871 fi
41872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41873
41874
41875 fi
41876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41877
41878
41879 fi
41880 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
41881 echo "${ECHO_T}$wx_cv_var_timezone" >&6
41882
41883 if test "x$wx_cv_var_timezone" != x ; then
41884 cat >>confdefs.h <<_ACEOF
41885 #define WX_TIMEZONE $wx_cv_var_timezone
41886 _ACEOF
41887
41888 fi
41889
41890
41891 for ac_func in localtime
41892 do
41893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41894 echo "$as_me:$LINENO: checking for $ac_func" >&5
41895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41896 if eval "test \"\${$as_ac_var+set}\" = set"; then
41897 echo $ECHO_N "(cached) $ECHO_C" >&6
41898 else
41899 cat >conftest.$ac_ext <<_ACEOF
41900 /* confdefs.h. */
41901 _ACEOF
41902 cat confdefs.h >>conftest.$ac_ext
41903 cat >>conftest.$ac_ext <<_ACEOF
41904 /* end confdefs.h. */
41905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41907 #define $ac_func innocuous_$ac_func
41908
41909 /* System header to define __stub macros and hopefully few prototypes,
41910 which can conflict with char $ac_func (); below.
41911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41912 <limits.h> exists even on freestanding compilers. */
41913
41914 #ifdef __STDC__
41915 # include <limits.h>
41916 #else
41917 # include <assert.h>
41918 #endif
41919
41920 #undef $ac_func
41921
41922 /* Override any gcc2 internal prototype to avoid an error. */
41923 #ifdef __cplusplus
41924 extern "C"
41925 {
41926 #endif
41927 /* We use char because int might match the return type of a gcc2
41928 builtin and then its argument prototype would still apply. */
41929 char $ac_func ();
41930 /* The GNU C library defines this for functions which it implements
41931 to always fail with ENOSYS. Some functions are actually named
41932 something starting with __ and the normal name is an alias. */
41933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41934 choke me
41935 #else
41936 char (*f) () = $ac_func;
41937 #endif
41938 #ifdef __cplusplus
41939 }
41940 #endif
41941
41942 int
41943 main ()
41944 {
41945 return f != $ac_func;
41946 ;
41947 return 0;
41948 }
41949 _ACEOF
41950 rm -f conftest.$ac_objext conftest$ac_exeext
41951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41952 (eval $ac_link) 2>conftest.er1
41953 ac_status=$?
41954 grep -v '^ *+' conftest.er1 >conftest.err
41955 rm -f conftest.er1
41956 cat conftest.err >&5
41957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41958 (exit $ac_status); } &&
41959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41961 (eval $ac_try) 2>&5
41962 ac_status=$?
41963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41964 (exit $ac_status); }; } &&
41965 { ac_try='test -s conftest$ac_exeext'
41966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41967 (eval $ac_try) 2>&5
41968 ac_status=$?
41969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41970 (exit $ac_status); }; }; then
41971 eval "$as_ac_var=yes"
41972 else
41973 echo "$as_me: failed program was:" >&5
41974 sed 's/^/| /' conftest.$ac_ext >&5
41975
41976 eval "$as_ac_var=no"
41977 fi
41978 rm -f conftest.err conftest.$ac_objext \
41979 conftest$ac_exeext conftest.$ac_ext
41980 fi
41981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41983 if test `eval echo '${'$as_ac_var'}'` = yes; then
41984 cat >>confdefs.h <<_ACEOF
41985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41986 _ACEOF
41987
41988 fi
41989 done
41990
41991
41992 if test "$ac_cv_func_localtime" = "yes"; then
41993 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41994 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
41995 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
41996 echo $ECHO_N "(cached) $ECHO_C" >&6
41997 else
41998
41999 cat >conftest.$ac_ext <<_ACEOF
42000 /* confdefs.h. */
42001 _ACEOF
42002 cat confdefs.h >>conftest.$ac_ext
42003 cat >>conftest.$ac_ext <<_ACEOF
42004 /* end confdefs.h. */
42005
42006 #include <time.h>
42007
42008 int
42009 main ()
42010 {
42011
42012 struct tm tm;
42013 tm.tm_gmtoff++;
42014
42015 ;
42016 return 0;
42017 }
42018 _ACEOF
42019 rm -f conftest.$ac_objext
42020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42021 (eval $ac_compile) 2>conftest.er1
42022 ac_status=$?
42023 grep -v '^ *+' conftest.er1 >conftest.err
42024 rm -f conftest.er1
42025 cat conftest.err >&5
42026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42027 (exit $ac_status); } &&
42028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42030 (eval $ac_try) 2>&5
42031 ac_status=$?
42032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42033 (exit $ac_status); }; } &&
42034 { ac_try='test -s conftest.$ac_objext'
42035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42036 (eval $ac_try) 2>&5
42037 ac_status=$?
42038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42039 (exit $ac_status); }; }; then
42040
42041 wx_cv_struct_tm_has_gmtoff=yes
42042
42043 else
42044 echo "$as_me: failed program was:" >&5
42045 sed 's/^/| /' conftest.$ac_ext >&5
42046
42047 wx_cv_struct_tm_has_gmtoff=no
42048
42049 fi
42050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42051
42052 fi
42053 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42054 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42055 fi
42056
42057 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42058 cat >>confdefs.h <<\_ACEOF
42059 #define WX_GMTOFF_IN_TM 1
42060 _ACEOF
42061
42062 fi
42063
42064
42065
42066 for ac_func in gettimeofday ftime
42067 do
42068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42069 echo "$as_me:$LINENO: checking for $ac_func" >&5
42070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42071 if eval "test \"\${$as_ac_var+set}\" = set"; then
42072 echo $ECHO_N "(cached) $ECHO_C" >&6
42073 else
42074 cat >conftest.$ac_ext <<_ACEOF
42075 /* confdefs.h. */
42076 _ACEOF
42077 cat confdefs.h >>conftest.$ac_ext
42078 cat >>conftest.$ac_ext <<_ACEOF
42079 /* end confdefs.h. */
42080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42082 #define $ac_func innocuous_$ac_func
42083
42084 /* System header to define __stub macros and hopefully few prototypes,
42085 which can conflict with char $ac_func (); below.
42086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42087 <limits.h> exists even on freestanding compilers. */
42088
42089 #ifdef __STDC__
42090 # include <limits.h>
42091 #else
42092 # include <assert.h>
42093 #endif
42094
42095 #undef $ac_func
42096
42097 /* Override any gcc2 internal prototype to avoid an error. */
42098 #ifdef __cplusplus
42099 extern "C"
42100 {
42101 #endif
42102 /* We use char because int might match the return type of a gcc2
42103 builtin and then its argument prototype would still apply. */
42104 char $ac_func ();
42105 /* The GNU C library defines this for functions which it implements
42106 to always fail with ENOSYS. Some functions are actually named
42107 something starting with __ and the normal name is an alias. */
42108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42109 choke me
42110 #else
42111 char (*f) () = $ac_func;
42112 #endif
42113 #ifdef __cplusplus
42114 }
42115 #endif
42116
42117 int
42118 main ()
42119 {
42120 return f != $ac_func;
42121 ;
42122 return 0;
42123 }
42124 _ACEOF
42125 rm -f conftest.$ac_objext conftest$ac_exeext
42126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42127 (eval $ac_link) 2>conftest.er1
42128 ac_status=$?
42129 grep -v '^ *+' conftest.er1 >conftest.err
42130 rm -f conftest.er1
42131 cat conftest.err >&5
42132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42133 (exit $ac_status); } &&
42134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42136 (eval $ac_try) 2>&5
42137 ac_status=$?
42138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42139 (exit $ac_status); }; } &&
42140 { ac_try='test -s conftest$ac_exeext'
42141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42142 (eval $ac_try) 2>&5
42143 ac_status=$?
42144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42145 (exit $ac_status); }; }; then
42146 eval "$as_ac_var=yes"
42147 else
42148 echo "$as_me: failed program was:" >&5
42149 sed 's/^/| /' conftest.$ac_ext >&5
42150
42151 eval "$as_ac_var=no"
42152 fi
42153 rm -f conftest.err conftest.$ac_objext \
42154 conftest$ac_exeext conftest.$ac_ext
42155 fi
42156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42158 if test `eval echo '${'$as_ac_var'}'` = yes; then
42159 cat >>confdefs.h <<_ACEOF
42160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42161 _ACEOF
42162 break
42163 fi
42164 done
42165
42166
42167 if test "$ac_cv_func_gettimeofday" = "yes"; then
42168 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42169 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42170 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42171 echo $ECHO_N "(cached) $ECHO_C" >&6
42172 else
42173
42174 cat >conftest.$ac_ext <<_ACEOF
42175 /* confdefs.h. */
42176 _ACEOF
42177 cat confdefs.h >>conftest.$ac_ext
42178 cat >>conftest.$ac_ext <<_ACEOF
42179 /* end confdefs.h. */
42180
42181 #include <sys/time.h>
42182 #include <unistd.h>
42183
42184 int
42185 main ()
42186 {
42187
42188 struct timeval tv;
42189 gettimeofday(&tv, NULL);
42190
42191 ;
42192 return 0;
42193 }
42194 _ACEOF
42195 rm -f conftest.$ac_objext
42196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42197 (eval $ac_compile) 2>conftest.er1
42198 ac_status=$?
42199 grep -v '^ *+' conftest.er1 >conftest.err
42200 rm -f conftest.er1
42201 cat conftest.err >&5
42202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42203 (exit $ac_status); } &&
42204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42206 (eval $ac_try) 2>&5
42207 ac_status=$?
42208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42209 (exit $ac_status); }; } &&
42210 { ac_try='test -s conftest.$ac_objext'
42211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42212 (eval $ac_try) 2>&5
42213 ac_status=$?
42214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42215 (exit $ac_status); }; }; then
42216 wx_cv_func_gettimeofday_has_2_args=yes
42217 else
42218 echo "$as_me: failed program was:" >&5
42219 sed 's/^/| /' conftest.$ac_ext >&5
42220
42221 cat >conftest.$ac_ext <<_ACEOF
42222 /* confdefs.h. */
42223 _ACEOF
42224 cat confdefs.h >>conftest.$ac_ext
42225 cat >>conftest.$ac_ext <<_ACEOF
42226 /* end confdefs.h. */
42227
42228 #include <sys/time.h>
42229 #include <unistd.h>
42230
42231 int
42232 main ()
42233 {
42234
42235 struct timeval tv;
42236 gettimeofday(&tv);
42237
42238 ;
42239 return 0;
42240 }
42241 _ACEOF
42242 rm -f conftest.$ac_objext
42243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42244 (eval $ac_compile) 2>conftest.er1
42245 ac_status=$?
42246 grep -v '^ *+' conftest.er1 >conftest.err
42247 rm -f conftest.er1
42248 cat conftest.err >&5
42249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42250 (exit $ac_status); } &&
42251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42253 (eval $ac_try) 2>&5
42254 ac_status=$?
42255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42256 (exit $ac_status); }; } &&
42257 { ac_try='test -s conftest.$ac_objext'
42258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42259 (eval $ac_try) 2>&5
42260 ac_status=$?
42261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42262 (exit $ac_status); }; }; then
42263 wx_cv_func_gettimeofday_has_2_args=no
42264 else
42265 echo "$as_me: failed program was:" >&5
42266 sed 's/^/| /' conftest.$ac_ext >&5
42267
42268
42269 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42270 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42271 wx_cv_func_gettimeofday_has_2_args=unknown
42272
42273
42274 fi
42275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42276
42277 fi
42278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42279
42280 fi
42281 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42282 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42283
42284 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42285 cat >>confdefs.h <<\_ACEOF
42286 #define WX_GETTIMEOFDAY_NO_TZ 1
42287 _ACEOF
42288
42289 fi
42290 fi
42291
42292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42293 fi
42294
42295
42296 if test "$wxUSE_SOCKETS" = "yes"; then
42297 if test "$wxUSE_MGL" = "1"; then
42298 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42299 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42300 wxUSE_SOCKETS="no"
42301 fi
42302 fi
42303
42304 if test "$wxUSE_SOCKETS" = "yes"; then
42305 if test "$TOOLKIT" != "MSW"; then
42306 echo "$as_me:$LINENO: checking for socket" >&5
42307 echo $ECHO_N "checking for socket... $ECHO_C" >&6
42308 if test "${ac_cv_func_socket+set}" = set; then
42309 echo $ECHO_N "(cached) $ECHO_C" >&6
42310 else
42311 cat >conftest.$ac_ext <<_ACEOF
42312 /* confdefs.h. */
42313 _ACEOF
42314 cat confdefs.h >>conftest.$ac_ext
42315 cat >>conftest.$ac_ext <<_ACEOF
42316 /* end confdefs.h. */
42317 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
42318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42319 #define socket innocuous_socket
42320
42321 /* System header to define __stub macros and hopefully few prototypes,
42322 which can conflict with char socket (); below.
42323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42324 <limits.h> exists even on freestanding compilers. */
42325
42326 #ifdef __STDC__
42327 # include <limits.h>
42328 #else
42329 # include <assert.h>
42330 #endif
42331
42332 #undef socket
42333
42334 /* Override any gcc2 internal prototype to avoid an error. */
42335 #ifdef __cplusplus
42336 extern "C"
42337 {
42338 #endif
42339 /* We use char because int might match the return type of a gcc2
42340 builtin and then its argument prototype would still apply. */
42341 char socket ();
42342 /* The GNU C library defines this for functions which it implements
42343 to always fail with ENOSYS. Some functions are actually named
42344 something starting with __ and the normal name is an alias. */
42345 #if defined (__stub_socket) || defined (__stub___socket)
42346 choke me
42347 #else
42348 char (*f) () = socket;
42349 #endif
42350 #ifdef __cplusplus
42351 }
42352 #endif
42353
42354 int
42355 main ()
42356 {
42357 return f != socket;
42358 ;
42359 return 0;
42360 }
42361 _ACEOF
42362 rm -f conftest.$ac_objext conftest$ac_exeext
42363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42364 (eval $ac_link) 2>conftest.er1
42365 ac_status=$?
42366 grep -v '^ *+' conftest.er1 >conftest.err
42367 rm -f conftest.er1
42368 cat conftest.err >&5
42369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42370 (exit $ac_status); } &&
42371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42373 (eval $ac_try) 2>&5
42374 ac_status=$?
42375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42376 (exit $ac_status); }; } &&
42377 { ac_try='test -s conftest$ac_exeext'
42378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42379 (eval $ac_try) 2>&5
42380 ac_status=$?
42381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42382 (exit $ac_status); }; }; then
42383 ac_cv_func_socket=yes
42384 else
42385 echo "$as_me: failed program was:" >&5
42386 sed 's/^/| /' conftest.$ac_ext >&5
42387
42388 ac_cv_func_socket=no
42389 fi
42390 rm -f conftest.err conftest.$ac_objext \
42391 conftest$ac_exeext conftest.$ac_ext
42392 fi
42393 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42394 echo "${ECHO_T}$ac_cv_func_socket" >&6
42395 if test $ac_cv_func_socket = yes; then
42396 :
42397 else
42398
42399 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42400 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42401 if test "${ac_cv_lib_socket_socket+set}" = set; then
42402 echo $ECHO_N "(cached) $ECHO_C" >&6
42403 else
42404 ac_check_lib_save_LIBS=$LIBS
42405 LIBS="-lsocket $LIBS"
42406 cat >conftest.$ac_ext <<_ACEOF
42407 /* confdefs.h. */
42408 _ACEOF
42409 cat confdefs.h >>conftest.$ac_ext
42410 cat >>conftest.$ac_ext <<_ACEOF
42411 /* end confdefs.h. */
42412
42413 /* Override any gcc2 internal prototype to avoid an error. */
42414 #ifdef __cplusplus
42415 extern "C"
42416 #endif
42417 /* We use char because int might match the return type of a gcc2
42418 builtin and then its argument prototype would still apply. */
42419 char socket ();
42420 int
42421 main ()
42422 {
42423 socket ();
42424 ;
42425 return 0;
42426 }
42427 _ACEOF
42428 rm -f conftest.$ac_objext conftest$ac_exeext
42429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42430 (eval $ac_link) 2>conftest.er1
42431 ac_status=$?
42432 grep -v '^ *+' conftest.er1 >conftest.err
42433 rm -f conftest.er1
42434 cat conftest.err >&5
42435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42436 (exit $ac_status); } &&
42437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42439 (eval $ac_try) 2>&5
42440 ac_status=$?
42441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42442 (exit $ac_status); }; } &&
42443 { ac_try='test -s conftest$ac_exeext'
42444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42445 (eval $ac_try) 2>&5
42446 ac_status=$?
42447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42448 (exit $ac_status); }; }; then
42449 ac_cv_lib_socket_socket=yes
42450 else
42451 echo "$as_me: failed program was:" >&5
42452 sed 's/^/| /' conftest.$ac_ext >&5
42453
42454 ac_cv_lib_socket_socket=no
42455 fi
42456 rm -f conftest.err conftest.$ac_objext \
42457 conftest$ac_exeext conftest.$ac_ext
42458 LIBS=$ac_check_lib_save_LIBS
42459 fi
42460 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42461 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42462 if test $ac_cv_lib_socket_socket = yes; then
42463 if test "$INET_LINK" != " -lsocket"; then
42464 INET_LINK="$INET_LINK -lsocket"
42465 fi
42466 else
42467
42468 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42469 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42470 wxUSE_SOCKETS=no
42471
42472
42473 fi
42474
42475
42476
42477 fi
42478
42479 fi
42480 fi
42481
42482 if test "$wxUSE_SOCKETS" = "yes" ; then
42483 if test "$TOOLKIT" != "MSW"; then
42484 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
42485 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42486 if test "${wx_cv_type_getsockname3+set}" = set; then
42487 echo $ECHO_N "(cached) $ECHO_C" >&6
42488 else
42489
42490 cat >conftest.$ac_ext <<_ACEOF
42491 /* confdefs.h. */
42492 _ACEOF
42493 cat confdefs.h >>conftest.$ac_ext
42494 cat >>conftest.$ac_ext <<_ACEOF
42495 /* end confdefs.h. */
42496
42497 #include <sys/types.h>
42498 #include <sys/socket.h>
42499
42500 int
42501 main ()
42502 {
42503
42504 socklen_t len;
42505 getsockname(0, 0, &len);
42506
42507 ;
42508 return 0;
42509 }
42510 _ACEOF
42511 rm -f conftest.$ac_objext
42512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42513 (eval $ac_compile) 2>conftest.er1
42514 ac_status=$?
42515 grep -v '^ *+' conftest.er1 >conftest.err
42516 rm -f conftest.er1
42517 cat conftest.err >&5
42518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42519 (exit $ac_status); } &&
42520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42522 (eval $ac_try) 2>&5
42523 ac_status=$?
42524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42525 (exit $ac_status); }; } &&
42526 { ac_try='test -s conftest.$ac_objext'
42527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42528 (eval $ac_try) 2>&5
42529 ac_status=$?
42530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42531 (exit $ac_status); }; }; then
42532 wx_cv_type_getsockname3=socklen_t
42533 else
42534 echo "$as_me: failed program was:" >&5
42535 sed 's/^/| /' conftest.$ac_ext >&5
42536
42537
42538 CXXFLAGS_OLD="$CXXFLAGS"
42539 if test "$GCC" = yes ; then
42540 CXXFLAGS="-Werror $CXXFLAGS"
42541 fi
42542
42543 cat >conftest.$ac_ext <<_ACEOF
42544 /* confdefs.h. */
42545 _ACEOF
42546 cat confdefs.h >>conftest.$ac_ext
42547 cat >>conftest.$ac_ext <<_ACEOF
42548 /* end confdefs.h. */
42549
42550 #include <sys/types.h>
42551 #include <sys/socket.h>
42552
42553 int
42554 main ()
42555 {
42556
42557 size_t len;
42558 getsockname(0, 0, &len);
42559
42560 ;
42561 return 0;
42562 }
42563 _ACEOF
42564 rm -f conftest.$ac_objext
42565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42566 (eval $ac_compile) 2>conftest.er1
42567 ac_status=$?
42568 grep -v '^ *+' conftest.er1 >conftest.err
42569 rm -f conftest.er1
42570 cat conftest.err >&5
42571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42572 (exit $ac_status); } &&
42573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42575 (eval $ac_try) 2>&5
42576 ac_status=$?
42577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42578 (exit $ac_status); }; } &&
42579 { ac_try='test -s conftest.$ac_objext'
42580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42581 (eval $ac_try) 2>&5
42582 ac_status=$?
42583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42584 (exit $ac_status); }; }; then
42585 wx_cv_type_getsockname3=size_t
42586 else
42587 echo "$as_me: failed program was:" >&5
42588 sed 's/^/| /' conftest.$ac_ext >&5
42589
42590 cat >conftest.$ac_ext <<_ACEOF
42591 /* confdefs.h. */
42592 _ACEOF
42593 cat confdefs.h >>conftest.$ac_ext
42594 cat >>conftest.$ac_ext <<_ACEOF
42595 /* end confdefs.h. */
42596
42597 #include <sys/types.h>
42598 #include <sys/socket.h>
42599
42600 int
42601 main ()
42602 {
42603
42604 int len;
42605 getsockname(0, 0, &len);
42606
42607 ;
42608 return 0;
42609 }
42610 _ACEOF
42611 rm -f conftest.$ac_objext
42612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42613 (eval $ac_compile) 2>conftest.er1
42614 ac_status=$?
42615 grep -v '^ *+' conftest.er1 >conftest.err
42616 rm -f conftest.er1
42617 cat conftest.err >&5
42618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42619 (exit $ac_status); } &&
42620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42622 (eval $ac_try) 2>&5
42623 ac_status=$?
42624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42625 (exit $ac_status); }; } &&
42626 { ac_try='test -s conftest.$ac_objext'
42627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42628 (eval $ac_try) 2>&5
42629 ac_status=$?
42630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42631 (exit $ac_status); }; }; then
42632 wx_cv_type_getsockname3=int
42633 else
42634 echo "$as_me: failed program was:" >&5
42635 sed 's/^/| /' conftest.$ac_ext >&5
42636
42637 wx_cv_type_getsockname3=unknown
42638
42639 fi
42640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42641
42642 fi
42643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42644
42645 CXXFLAGS="$CXXFLAGS_OLD"
42646
42647
42648 fi
42649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42650
42651 fi
42652 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42653 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42654
42655 if test "$wx_cv_type_getsockname3" = "unknown"; then
42656 wxUSE_SOCKETS=no
42657 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42658 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42659 else
42660 cat >>confdefs.h <<_ACEOF
42661 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
42662 _ACEOF
42663
42664 fi
42665 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42666 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42667 if test "${wx_cv_type_getsockopt5+set}" = set; then
42668 echo $ECHO_N "(cached) $ECHO_C" >&6
42669 else
42670
42671 cat >conftest.$ac_ext <<_ACEOF
42672 /* confdefs.h. */
42673 _ACEOF
42674 cat confdefs.h >>conftest.$ac_ext
42675 cat >>conftest.$ac_ext <<_ACEOF
42676 /* end confdefs.h. */
42677
42678 #include <sys/types.h>
42679 #include <sys/socket.h>
42680
42681 int
42682 main ()
42683 {
42684
42685 socklen_t len;
42686 getsockopt(0, 0, 0, 0, &len);
42687
42688 ;
42689 return 0;
42690 }
42691 _ACEOF
42692 rm -f conftest.$ac_objext
42693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42694 (eval $ac_compile) 2>conftest.er1
42695 ac_status=$?
42696 grep -v '^ *+' conftest.er1 >conftest.err
42697 rm -f conftest.er1
42698 cat conftest.err >&5
42699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42700 (exit $ac_status); } &&
42701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42703 (eval $ac_try) 2>&5
42704 ac_status=$?
42705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706 (exit $ac_status); }; } &&
42707 { ac_try='test -s conftest.$ac_objext'
42708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42709 (eval $ac_try) 2>&5
42710 ac_status=$?
42711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42712 (exit $ac_status); }; }; then
42713 wx_cv_type_getsockopt5=socklen_t
42714 else
42715 echo "$as_me: failed program was:" >&5
42716 sed 's/^/| /' conftest.$ac_ext >&5
42717
42718
42719 CXXFLAGS_OLD="$CXXFLAGS"
42720 if test "$GCC" = yes ; then
42721 CXXFLAGS="-Werror $CXXFLAGS"
42722 fi
42723
42724 cat >conftest.$ac_ext <<_ACEOF
42725 /* confdefs.h. */
42726 _ACEOF
42727 cat confdefs.h >>conftest.$ac_ext
42728 cat >>conftest.$ac_ext <<_ACEOF
42729 /* end confdefs.h. */
42730
42731 #include <sys/types.h>
42732 #include <sys/socket.h>
42733
42734 int
42735 main ()
42736 {
42737
42738 size_t len;
42739 getsockopt(0, 0, 0, 0, &len);
42740
42741 ;
42742 return 0;
42743 }
42744 _ACEOF
42745 rm -f conftest.$ac_objext
42746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42747 (eval $ac_compile) 2>conftest.er1
42748 ac_status=$?
42749 grep -v '^ *+' conftest.er1 >conftest.err
42750 rm -f conftest.er1
42751 cat conftest.err >&5
42752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753 (exit $ac_status); } &&
42754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42756 (eval $ac_try) 2>&5
42757 ac_status=$?
42758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42759 (exit $ac_status); }; } &&
42760 { ac_try='test -s conftest.$ac_objext'
42761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42762 (eval $ac_try) 2>&5
42763 ac_status=$?
42764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42765 (exit $ac_status); }; }; then
42766 wx_cv_type_getsockopt5=size_t
42767 else
42768 echo "$as_me: failed program was:" >&5
42769 sed 's/^/| /' conftest.$ac_ext >&5
42770
42771 cat >conftest.$ac_ext <<_ACEOF
42772 /* confdefs.h. */
42773 _ACEOF
42774 cat confdefs.h >>conftest.$ac_ext
42775 cat >>conftest.$ac_ext <<_ACEOF
42776 /* end confdefs.h. */
42777
42778 #include <sys/types.h>
42779 #include <sys/socket.h>
42780
42781 int
42782 main ()
42783 {
42784
42785 int len;
42786 getsockopt(0, 0, 0, 0, &len);
42787
42788 ;
42789 return 0;
42790 }
42791 _ACEOF
42792 rm -f conftest.$ac_objext
42793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42794 (eval $ac_compile) 2>conftest.er1
42795 ac_status=$?
42796 grep -v '^ *+' conftest.er1 >conftest.err
42797 rm -f conftest.er1
42798 cat conftest.err >&5
42799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42800 (exit $ac_status); } &&
42801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42803 (eval $ac_try) 2>&5
42804 ac_status=$?
42805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42806 (exit $ac_status); }; } &&
42807 { ac_try='test -s conftest.$ac_objext'
42808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42809 (eval $ac_try) 2>&5
42810 ac_status=$?
42811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42812 (exit $ac_status); }; }; then
42813 wx_cv_type_getsockopt5=int
42814 else
42815 echo "$as_me: failed program was:" >&5
42816 sed 's/^/| /' conftest.$ac_ext >&5
42817
42818 wx_cv_type_getsockopt5=unknown
42819
42820 fi
42821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42822
42823 fi
42824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42825
42826 CXXFLAGS="$CXXFLAGS_OLD"
42827
42828
42829 fi
42830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42831
42832 fi
42833 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
42834 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
42835
42836 if test "$wx_cv_type_getsockopt5" = "unknown"; then
42837 wxUSE_SOCKETS=no
42838 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42839 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42840 else
42841 cat >>confdefs.h <<_ACEOF
42842 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
42843 _ACEOF
42844
42845 fi
42846 fi
42847 fi
42848
42849 if test "$wxUSE_SOCKETS" = "yes" ; then
42850 cat >>confdefs.h <<\_ACEOF
42851 #define wxUSE_SOCKETS 1
42852 _ACEOF
42853
42854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
42855 fi
42856
42857 if test "$wxUSE_PROTOCOL" = "yes"; then
42858 if test "$wxUSE_SOCKETS" != "yes"; then
42859 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
42860 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
42861 wxUSE_PROTOCOL=no
42862 fi
42863 fi
42864
42865 if test "$wxUSE_PROTOCOL" = "yes"; then
42866 cat >>confdefs.h <<\_ACEOF
42867 #define wxUSE_PROTOCOL 1
42868 _ACEOF
42869
42870
42871 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
42872 cat >>confdefs.h <<\_ACEOF
42873 #define wxUSE_PROTOCOL_HTTP 1
42874 _ACEOF
42875
42876 fi
42877 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
42878 cat >>confdefs.h <<\_ACEOF
42879 #define wxUSE_PROTOCOL_FTP 1
42880 _ACEOF
42881
42882 fi
42883 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
42884 cat >>confdefs.h <<\_ACEOF
42885 #define wxUSE_PROTOCOL_FILE 1
42886 _ACEOF
42887
42888 fi
42889 else
42890 if test "$wxUSE_FS_INET" = "yes"; then
42891 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
42892 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
42893 wxUSE_FS_INET="no"
42894 fi
42895 fi
42896
42897 if test "$wxUSE_URL" = "yes"; then
42898 if test "$wxUSE_PROTOCOL" != "yes"; then
42899 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
42900 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
42901 wxUSE_URL=no
42902 fi
42903 if test "$wxUSE_URL" = "yes"; then
42904 cat >>confdefs.h <<\_ACEOF
42905 #define wxUSE_URL 1
42906 _ACEOF
42907
42908 fi
42909 fi
42910
42911 if test "$wxUSE_FS_INET" = "yes"; then
42912 cat >>confdefs.h <<\_ACEOF
42913 #define wxUSE_FS_INET 1
42914 _ACEOF
42915
42916 fi
42917
42918
42919 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
42920 wxUSE_JOYSTICK=no
42921
42922 if test "$TOOLKIT" = "MSW"; then
42923 wxUSE_JOYSTICK=yes
42924
42925 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
42926 if test "$USE_DARWIN" = 1; then
42927 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
42928 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
42929 cat >conftest.$ac_ext <<_ACEOF
42930 /* confdefs.h. */
42931 _ACEOF
42932 cat confdefs.h >>conftest.$ac_ext
42933 cat >>conftest.$ac_ext <<_ACEOF
42934 /* end confdefs.h. */
42935 #include <IOKit/hid/IOHIDLib.h>
42936 int
42937 main ()
42938 {
42939 IOHIDQueueInterface *qi = NULL;
42940 IOHIDCallbackFunction cb = NULL;
42941 qi->setEventCallout(NULL, cb, NULL, NULL);
42942 ;
42943 return 0;
42944 }
42945 _ACEOF
42946 rm -f conftest.$ac_objext
42947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42948 (eval $ac_compile) 2>conftest.er1
42949 ac_status=$?
42950 grep -v '^ *+' conftest.er1 >conftest.err
42951 rm -f conftest.er1
42952 cat conftest.err >&5
42953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42954 (exit $ac_status); } &&
42955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42957 (eval $ac_try) 2>&5
42958 ac_status=$?
42959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42960 (exit $ac_status); }; } &&
42961 { ac_try='test -s conftest.$ac_objext'
42962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42963 (eval $ac_try) 2>&5
42964 ac_status=$?
42965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42966 (exit $ac_status); }; }; then
42967 wxUSE_JOYSTICK=yes
42968
42969 else
42970 echo "$as_me: failed program was:" >&5
42971 sed 's/^/| /' conftest.$ac_ext >&5
42972
42973 fi
42974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42975 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
42976 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
42977 fi
42978
42979 else
42980
42981 for ac_header in linux/joystick.h
42982 do
42983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42985 echo "$as_me:$LINENO: checking for $ac_header" >&5
42986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42988 echo $ECHO_N "(cached) $ECHO_C" >&6
42989 fi
42990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42992 else
42993 # Is the header compilable?
42994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42996 cat >conftest.$ac_ext <<_ACEOF
42997 /* confdefs.h. */
42998 _ACEOF
42999 cat confdefs.h >>conftest.$ac_ext
43000 cat >>conftest.$ac_ext <<_ACEOF
43001 /* end confdefs.h. */
43002 $ac_includes_default
43003 #include <$ac_header>
43004 _ACEOF
43005 rm -f conftest.$ac_objext
43006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43007 (eval $ac_compile) 2>conftest.er1
43008 ac_status=$?
43009 grep -v '^ *+' conftest.er1 >conftest.err
43010 rm -f conftest.er1
43011 cat conftest.err >&5
43012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43013 (exit $ac_status); } &&
43014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
43015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43016 (eval $ac_try) 2>&5
43017 ac_status=$?
43018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43019 (exit $ac_status); }; } &&
43020 { ac_try='test -s conftest.$ac_objext'
43021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43022 (eval $ac_try) 2>&5
43023 ac_status=$?
43024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43025 (exit $ac_status); }; }; then
43026 ac_header_compiler=yes
43027 else
43028 echo "$as_me: failed program was:" >&5
43029 sed 's/^/| /' conftest.$ac_ext >&5
43030
43031 ac_header_compiler=no
43032 fi
43033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43035 echo "${ECHO_T}$ac_header_compiler" >&6
43036
43037 # Is the header present?
43038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43040 cat >conftest.$ac_ext <<_ACEOF
43041 /* confdefs.h. */
43042 _ACEOF
43043 cat confdefs.h >>conftest.$ac_ext
43044 cat >>conftest.$ac_ext <<_ACEOF
43045 /* end confdefs.h. */
43046 #include <$ac_header>
43047 _ACEOF
43048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43050 ac_status=$?
43051 grep -v '^ *+' conftest.er1 >conftest.err
43052 rm -f conftest.er1
43053 cat conftest.err >&5
43054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43055 (exit $ac_status); } >/dev/null; then
43056 if test -s conftest.err; then
43057 ac_cpp_err=$ac_cxx_preproc_warn_flag
43058 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
43059 else
43060 ac_cpp_err=
43061 fi
43062 else
43063 ac_cpp_err=yes
43064 fi
43065 if test -z "$ac_cpp_err"; then
43066 ac_header_preproc=yes
43067 else
43068 echo "$as_me: failed program was:" >&5
43069 sed 's/^/| /' conftest.$ac_ext >&5
43070
43071 ac_header_preproc=no
43072 fi
43073 rm -f conftest.err conftest.$ac_ext
43074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43075 echo "${ECHO_T}$ac_header_preproc" >&6
43076
43077 # So? What about this header?
43078 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43079 yes:no: )
43080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43084 ac_header_preproc=yes
43085 ;;
43086 no:yes:* )
43087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43099 (
43100 cat <<\_ASBOX
43101 ## ----------------------------------------- ##
43102 ## Report this to wx-dev@lists.wxwidgets.org ##
43103 ## ----------------------------------------- ##
43104 _ASBOX
43105 ) |
43106 sed "s/^/$as_me: WARNING: /" >&2
43107 ;;
43108 esac
43109 echo "$as_me:$LINENO: checking for $ac_header" >&5
43110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43112 echo $ECHO_N "(cached) $ECHO_C" >&6
43113 else
43114 eval "$as_ac_Header=\$ac_header_preproc"
43115 fi
43116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43118
43119 fi
43120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43121 cat >>confdefs.h <<_ACEOF
43122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43123 _ACEOF
43124 wxUSE_JOYSTICK=yes
43125 fi
43126
43127 done
43128
43129 fi
43130
43131 if test "$wxUSE_JOYSTICK" = "yes"; then
43132 cat >>confdefs.h <<\_ACEOF
43133 #define wxUSE_JOYSTICK 1
43134 _ACEOF
43135
43136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43137 else
43138 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43139 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
43140 fi
43141 fi
43142
43143
43144
43145 if test "$wxUSE_FONTMAP" = "yes" ; then
43146 cat >>confdefs.h <<\_ACEOF
43147 #define wxUSE_FONTMAP 1
43148 _ACEOF
43149
43150 fi
43151
43152 if test "$wxUSE_UNICODE" = "yes" ; then
43153 cat >>confdefs.h <<\_ACEOF
43154 #define wxUSE_UNICODE 1
43155 _ACEOF
43156
43157
43158 if test "$USE_WIN32" != 1; then
43159 wxUSE_UNICODE_MSLU=no
43160 fi
43161
43162 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43163 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43164 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43165 if test "${ac_cv_lib_unicows_main+set}" = set; then
43166 echo $ECHO_N "(cached) $ECHO_C" >&6
43167 else
43168 ac_check_lib_save_LIBS=$LIBS
43169 LIBS="-lunicows $LIBS"
43170 cat >conftest.$ac_ext <<_ACEOF
43171 /* confdefs.h. */
43172 _ACEOF
43173 cat confdefs.h >>conftest.$ac_ext
43174 cat >>conftest.$ac_ext <<_ACEOF
43175 /* end confdefs.h. */
43176
43177
43178 int
43179 main ()
43180 {
43181 main ();
43182 ;
43183 return 0;
43184 }
43185 _ACEOF
43186 rm -f conftest.$ac_objext conftest$ac_exeext
43187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43188 (eval $ac_link) 2>conftest.er1
43189 ac_status=$?
43190 grep -v '^ *+' conftest.er1 >conftest.err
43191 rm -f conftest.er1
43192 cat conftest.err >&5
43193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43194 (exit $ac_status); } &&
43195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
43196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43197 (eval $ac_try) 2>&5
43198 ac_status=$?
43199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43200 (exit $ac_status); }; } &&
43201 { ac_try='test -s conftest$ac_exeext'
43202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43203 (eval $ac_try) 2>&5
43204 ac_status=$?
43205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43206 (exit $ac_status); }; }; then
43207 ac_cv_lib_unicows_main=yes
43208 else
43209 echo "$as_me: failed program was:" >&5
43210 sed 's/^/| /' conftest.$ac_ext >&5
43211
43212 ac_cv_lib_unicows_main=no
43213 fi
43214 rm -f conftest.err conftest.$ac_objext \
43215 conftest$ac_exeext conftest.$ac_ext
43216 LIBS=$ac_check_lib_save_LIBS
43217 fi
43218 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43219 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43220 if test $ac_cv_lib_unicows_main = yes; then
43221
43222 cat >>confdefs.h <<\_ACEOF
43223 #define wxUSE_UNICODE_MSLU 1
43224 _ACEOF
43225
43226
43227 else
43228
43229 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43230 Applications will only run on Windows NT/2000/XP!" >&5
43231 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43232 Applications will only run on Windows NT/2000/XP!" >&2;}
43233 wxUSE_UNICODE_MSLU=no
43234
43235 fi
43236
43237 fi
43238 fi
43239
43240 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43241 cat >>confdefs.h <<\_ACEOF
43242 #define wxUSE_EXPERIMENTAL_PRINTF 1
43243 _ACEOF
43244
43245 fi
43246
43247
43248 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43249 cat >>confdefs.h <<\_ACEOF
43250 #define wxUSE_POSTSCRIPT 1
43251 _ACEOF
43252
43253 fi
43254
43255 cat >>confdefs.h <<\_ACEOF
43256 #define wxUSE_AFM_FOR_POSTSCRIPT 1
43257 _ACEOF
43258
43259
43260 cat >>confdefs.h <<\_ACEOF
43261 #define wxUSE_NORMALIZED_PS_FONTS 1
43262 _ACEOF
43263
43264
43265
43266 if test "$wxUSE_CONSTRAINTS" = "yes"; then
43267 cat >>confdefs.h <<\_ACEOF
43268 #define wxUSE_CONSTRAINTS 1
43269 _ACEOF
43270
43271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43272 fi
43273
43274 if test "$wxUSE_MDI" = "yes"; then
43275 cat >>confdefs.h <<\_ACEOF
43276 #define wxUSE_MDI 1
43277 _ACEOF
43278
43279
43280 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43281 cat >>confdefs.h <<\_ACEOF
43282 #define wxUSE_MDI_ARCHITECTURE 1
43283 _ACEOF
43284
43285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43286 fi
43287 fi
43288
43289 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43290 cat >>confdefs.h <<\_ACEOF
43291 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
43292 _ACEOF
43293
43294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43295 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43297 fi
43298 fi
43299
43300 if test "$wxUSE_HELP" = "yes"; then
43301 cat >>confdefs.h <<\_ACEOF
43302 #define wxUSE_HELP 1
43303 _ACEOF
43304
43305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43306
43307 if test "$wxUSE_MSW" = 1; then
43308 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43309 cat >>confdefs.h <<\_ACEOF
43310 #define wxUSE_MS_HTML_HELP 1
43311 _ACEOF
43312
43313 fi
43314 fi
43315
43316 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43317 if test "$wxUSE_HTML" = "yes"; then
43318 cat >>confdefs.h <<\_ACEOF
43319 #define wxUSE_WXHTML_HELP 1
43320 _ACEOF
43321
43322 else
43323 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43324 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43325 wxUSE_WXHTML_HELP=no
43326 fi
43327 fi
43328 fi
43329
43330 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43331 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43332 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43333 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43334 else
43335 cat >>confdefs.h <<\_ACEOF
43336 #define wxUSE_PRINTING_ARCHITECTURE 1
43337 _ACEOF
43338
43339 fi
43340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43341 fi
43342
43343 if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43344 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43345 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43346 { (exit 1); exit 1; }; }
43347 fi
43348
43349
43350 if test "$wxUSE_METAFILE" = "yes"; then
43351 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43352 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43353 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43354 wxUSE_METAFILE=no
43355 fi
43356 fi
43357
43358
43359 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43360 -o "$wxUSE_CLIPBOARD" = "yes" \
43361 -o "$wxUSE_OLE" = "yes" \
43362 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43363
43364 for ac_header in ole2.h
43365 do
43366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43368 echo "$as_me:$LINENO: checking for $ac_header" >&5
43369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43371 echo $ECHO_N "(cached) $ECHO_C" >&6
43372 fi
43373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43375 else
43376 # Is the header compilable?
43377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43379 cat >conftest.$ac_ext <<_ACEOF
43380 /* confdefs.h. */
43381 _ACEOF
43382 cat confdefs.h >>conftest.$ac_ext
43383 cat >>conftest.$ac_ext <<_ACEOF
43384 /* end confdefs.h. */
43385 $ac_includes_default
43386 #include <$ac_header>
43387 _ACEOF
43388 rm -f conftest.$ac_objext
43389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43390 (eval $ac_compile) 2>conftest.er1
43391 ac_status=$?
43392 grep -v '^ *+' conftest.er1 >conftest.err
43393 rm -f conftest.er1
43394 cat conftest.err >&5
43395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43396 (exit $ac_status); } &&
43397 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
43398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43399 (eval $ac_try) 2>&5
43400 ac_status=$?
43401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43402 (exit $ac_status); }; } &&
43403 { ac_try='test -s conftest.$ac_objext'
43404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43405 (eval $ac_try) 2>&5
43406 ac_status=$?
43407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43408 (exit $ac_status); }; }; then
43409 ac_header_compiler=yes
43410 else
43411 echo "$as_me: failed program was:" >&5
43412 sed 's/^/| /' conftest.$ac_ext >&5
43413
43414 ac_header_compiler=no
43415 fi
43416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43418 echo "${ECHO_T}$ac_header_compiler" >&6
43419
43420 # Is the header present?
43421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43423 cat >conftest.$ac_ext <<_ACEOF
43424 /* confdefs.h. */
43425 _ACEOF
43426 cat confdefs.h >>conftest.$ac_ext
43427 cat >>conftest.$ac_ext <<_ACEOF
43428 /* end confdefs.h. */
43429 #include <$ac_header>
43430 _ACEOF
43431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43433 ac_status=$?
43434 grep -v '^ *+' conftest.er1 >conftest.err
43435 rm -f conftest.er1
43436 cat conftest.err >&5
43437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43438 (exit $ac_status); } >/dev/null; then
43439 if test -s conftest.err; then
43440 ac_cpp_err=$ac_cxx_preproc_warn_flag
43441 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
43442 else
43443 ac_cpp_err=
43444 fi
43445 else
43446 ac_cpp_err=yes
43447 fi
43448 if test -z "$ac_cpp_err"; then
43449 ac_header_preproc=yes
43450 else
43451 echo "$as_me: failed program was:" >&5
43452 sed 's/^/| /' conftest.$ac_ext >&5
43453
43454 ac_header_preproc=no
43455 fi
43456 rm -f conftest.err conftest.$ac_ext
43457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43458 echo "${ECHO_T}$ac_header_preproc" >&6
43459
43460 # So? What about this header?
43461 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43462 yes:no: )
43463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43467 ac_header_preproc=yes
43468 ;;
43469 no:yes:* )
43470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43482 (
43483 cat <<\_ASBOX
43484 ## ----------------------------------------- ##
43485 ## Report this to wx-dev@lists.wxwidgets.org ##
43486 ## ----------------------------------------- ##
43487 _ASBOX
43488 ) |
43489 sed "s/^/$as_me: WARNING: /" >&2
43490 ;;
43491 esac
43492 echo "$as_me:$LINENO: checking for $ac_header" >&5
43493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43495 echo $ECHO_N "(cached) $ECHO_C" >&6
43496 else
43497 eval "$as_ac_Header=\$ac_header_preproc"
43498 fi
43499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43501
43502 fi
43503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43504 cat >>confdefs.h <<_ACEOF
43505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43506 _ACEOF
43507
43508 fi
43509
43510 done
43511
43512
43513 if test "$ac_cv_header_ole2_h" = "yes" ; then
43514 if test "$GCC" = yes ; then
43515 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43516 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43517 cat >conftest.$ac_ext <<_ACEOF
43518 /* confdefs.h. */
43519 _ACEOF
43520 cat confdefs.h >>conftest.$ac_ext
43521 cat >>conftest.$ac_ext <<_ACEOF
43522 /* end confdefs.h. */
43523 #include <windows.h>
43524 #include <ole2.h>
43525 int
43526 main ()
43527 {
43528
43529 ;
43530 return 0;
43531 }
43532 _ACEOF
43533 rm -f conftest.$ac_objext
43534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43535 (eval $ac_compile) 2>conftest.er1
43536 ac_status=$?
43537 grep -v '^ *+' conftest.er1 >conftest.err
43538 rm -f conftest.er1
43539 cat conftest.err >&5
43540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43541 (exit $ac_status); } &&
43542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
43543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43544 (eval $ac_try) 2>&5
43545 ac_status=$?
43546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43547 (exit $ac_status); }; } &&
43548 { ac_try='test -s conftest.$ac_objext'
43549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43550 (eval $ac_try) 2>&5
43551 ac_status=$?
43552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43553 (exit $ac_status); }; }; then
43554 echo "$as_me:$LINENO: result: no" >&5
43555 echo "${ECHO_T}no" >&6
43556 else
43557 echo "$as_me: failed program was:" >&5
43558 sed 's/^/| /' conftest.$ac_ext >&5
43559
43560 echo "$as_me:$LINENO: result: yes" >&5
43561 echo "${ECHO_T}yes" >&6
43562 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
43563 fi
43564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43565 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43566 if test "$wxUSE_OLE" = "yes" ; then
43567 cat >>confdefs.h <<\_ACEOF
43568 #define wxUSE_OLE 1
43569 _ACEOF
43570
43571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
43572 fi
43573 fi
43574
43575 if test "$wxUSE_DATAOBJ" = "yes" ; then
43576 cat >>confdefs.h <<\_ACEOF
43577 #define wxUSE_DATAOBJ 1
43578 _ACEOF
43579
43580 fi
43581 else
43582 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43583 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43584
43585 wxUSE_CLIPBOARD=no
43586 wxUSE_DRAG_AND_DROP=no
43587 wxUSE_DATAOBJ=no
43588 wxUSE_OLE=no
43589 fi
43590
43591 if test "$wxUSE_METAFILE" = "yes"; then
43592 cat >>confdefs.h <<\_ACEOF
43593 #define wxUSE_METAFILE 1
43594 _ACEOF
43595
43596
43597 cat >>confdefs.h <<\_ACEOF
43598 #define wxUSE_ENH_METAFILE 1
43599 _ACEOF
43600
43601 fi
43602 fi
43603
43604 if test "$wxUSE_IPC" = "yes"; then
43605 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
43606 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43607 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
43608 wxUSE_IPC=no
43609 fi
43610
43611 if test "$wxUSE_IPC" = "yes"; then
43612 cat >>confdefs.h <<\_ACEOF
43613 #define wxUSE_IPC 1
43614 _ACEOF
43615
43616 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43617 fi
43618 fi
43619
43620 if test "$wxUSE_DATAOBJ" = "yes"; then
43621 if test "$wxUSE_MGL" = 1; then
43622 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43623 echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43624 wxUSE_DATAOBJ=no
43625 else
43626 cat >>confdefs.h <<\_ACEOF
43627 #define wxUSE_DATAOBJ 1
43628 _ACEOF
43629
43630 fi
43631 else
43632 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43633 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43634 wxUSE_CLIPBOARD=no
43635 wxUSE_DRAG_AND_DROP=no
43636 fi
43637
43638 if test "$wxUSE_CLIPBOARD" = "yes"; then
43639 if test "$wxUSE_MGL" = 1; then
43640 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43641 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43642 wxUSE_CLIPBOARD=no
43643 fi
43644
43645 if test "$wxUSE_CLIPBOARD" = "yes"; then
43646 cat >>confdefs.h <<\_ACEOF
43647 #define wxUSE_CLIPBOARD 1
43648 _ACEOF
43649
43650 fi
43651 fi
43652
43653 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43654 if test "$wxUSE_GTK" = 1; then
43655 if test "$WXGTK12" != 1; then
43656 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43657 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43658 wxUSE_DRAG_AND_DROP=no
43659 fi
43660 fi
43661
43662 if test "$wxUSE_MOTIF" = 1; then
43663 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43664 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43665 wxUSE_DRAG_AND_DROP=no
43666 fi
43667
43668 if test "$wxUSE_X11" = 1; then
43669 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43670 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43671 wxUSE_DRAG_AND_DROP=no
43672 fi
43673
43674 if test "$wxUSE_MGL" = 1; then
43675 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43676 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43677 wxUSE_DRAG_AND_DROP=no
43678 fi
43679
43680 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43681 cat >>confdefs.h <<\_ACEOF
43682 #define wxUSE_DRAG_AND_DROP 1
43683 _ACEOF
43684
43685 fi
43686
43687 fi
43688
43689 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43691 fi
43692
43693 if test "$wxUSE_SPLINES" = "yes" ; then
43694 cat >>confdefs.h <<\_ACEOF
43695 #define wxUSE_SPLINES 1
43696 _ACEOF
43697
43698 fi
43699
43700 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43701 cat >>confdefs.h <<\_ACEOF
43702 #define wxUSE_MOUSEWHEEL 1
43703 _ACEOF
43704
43705 fi
43706
43707
43708 USES_CONTROLS=0
43709 if test "$wxUSE_CONTROLS" = "yes"; then
43710 USES_CONTROLS=1
43711 fi
43712
43713 if test "$wxUSE_ACCEL" = "yes"; then
43714 cat >>confdefs.h <<\_ACEOF
43715 #define wxUSE_ACCEL 1
43716 _ACEOF
43717
43718 USES_CONTROLS=1
43719 fi
43720
43721 if test "$wxUSE_BUTTON" = "yes"; then
43722 cat >>confdefs.h <<\_ACEOF
43723 #define wxUSE_BUTTON 1
43724 _ACEOF
43725
43726 USES_CONTROLS=1
43727 fi
43728
43729 if test "$wxUSE_BMPBUTTON" = "yes"; then
43730 cat >>confdefs.h <<\_ACEOF
43731 #define wxUSE_BMPBUTTON 1
43732 _ACEOF
43733
43734 USES_CONTROLS=1
43735 fi
43736
43737 if test "$wxUSE_CALCTRL" = "yes"; then
43738 cat >>confdefs.h <<\_ACEOF
43739 #define wxUSE_CALENDARCTRL 1
43740 _ACEOF
43741
43742 USES_CONTROLS=1
43743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
43744 fi
43745
43746 if test "$wxUSE_CARET" = "yes"; then
43747 cat >>confdefs.h <<\_ACEOF
43748 #define wxUSE_CARET 1
43749 _ACEOF
43750
43751 USES_CONTROLS=1
43752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
43753 fi
43754
43755 if test "$wxUSE_COMBOBOX" = "yes"; then
43756 cat >>confdefs.h <<\_ACEOF
43757 #define wxUSE_COMBOBOX 1
43758 _ACEOF
43759
43760 USES_CONTROLS=1
43761 fi
43762
43763 if test "$wxUSE_COMBOCTRL" = "yes"; then
43764 cat >>confdefs.h <<\_ACEOF
43765 #define wxUSE_COMBOCTRL 1
43766 _ACEOF
43767
43768 USES_CONTROLS=1
43769 fi
43770
43771 if test "$wxUSE_CHOICE" = "yes"; then
43772 cat >>confdefs.h <<\_ACEOF
43773 #define wxUSE_CHOICE 1
43774 _ACEOF
43775
43776 USES_CONTROLS=1
43777 fi
43778
43779 if test "$wxUSE_CHOICEBOOK" = "yes"; then
43780 cat >>confdefs.h <<\_ACEOF
43781 #define wxUSE_CHOICEBOOK 1
43782 _ACEOF
43783
43784 USES_CONTROLS=1
43785 fi
43786
43787 if test "$wxUSE_CHECKBOX" = "yes"; then
43788 cat >>confdefs.h <<\_ACEOF
43789 #define wxUSE_CHECKBOX 1
43790 _ACEOF
43791
43792 USES_CONTROLS=1
43793 fi
43794
43795 if test "$wxUSE_CHECKLST" = "yes"; then
43796 cat >>confdefs.h <<\_ACEOF
43797 #define wxUSE_CHECKLISTBOX 1
43798 _ACEOF
43799
43800 USES_CONTROLS=1
43801 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
43802 fi
43803
43804 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
43805 cat >>confdefs.h <<\_ACEOF
43806 #define wxUSE_DATEPICKCTRL 1
43807 _ACEOF
43808
43809 USES_CONTROLS=1
43810 fi
43811
43812 if test "$wxUSE_DISPLAY" = "yes"; then
43813 cat >>confdefs.h <<\_ACEOF
43814 #define wxUSE_DISPLAY 1
43815 _ACEOF
43816
43817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
43818 fi
43819
43820 if test "$wxUSE_GAUGE" = "yes"; then
43821 cat >>confdefs.h <<\_ACEOF
43822 #define wxUSE_GAUGE 1
43823 _ACEOF
43824
43825 USES_CONTROLS=1
43826 fi
43827
43828 if test "$wxUSE_GRID" = "yes"; then
43829 cat >>confdefs.h <<\_ACEOF
43830 #define wxUSE_GRID 1
43831 _ACEOF
43832
43833 USES_CONTROLS=1
43834 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
43835 fi
43836
43837 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
43838 cat >>confdefs.h <<\_ACEOF
43839 #define wxUSE_HYPERLINKCTRL 1
43840 _ACEOF
43841
43842 USES_CONTROLS=1
43843 fi
43844
43845 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
43846 cat >>confdefs.h <<\_ACEOF
43847 #define wxUSE_DATAVIEWCTRL 1
43848 _ACEOF
43849
43850 USES_CONTROLS=1
43851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
43852 fi
43853
43854 if test "$wxUSE_IMAGLIST" = "yes"; then
43855 cat >>confdefs.h <<\_ACEOF
43856 #define wxUSE_IMAGLIST 1
43857 _ACEOF
43858
43859 fi
43860
43861 if test "$wxUSE_LISTBOOK" = "yes"; then
43862 cat >>confdefs.h <<\_ACEOF
43863 #define wxUSE_LISTBOOK 1
43864 _ACEOF
43865
43866 USES_CONTROLS=1
43867 fi
43868
43869 if test "$wxUSE_LISTBOX" = "yes"; then
43870 cat >>confdefs.h <<\_ACEOF
43871 #define wxUSE_LISTBOX 1
43872 _ACEOF
43873
43874 USES_CONTROLS=1
43875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
43876 fi
43877
43878 if test "$wxUSE_LISTCTRL" = "yes"; then
43879 if test "$wxUSE_IMAGLIST" = "yes"; then
43880 cat >>confdefs.h <<\_ACEOF
43881 #define wxUSE_LISTCTRL 1
43882 _ACEOF
43883
43884 USES_CONTROLS=1
43885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
43886 else
43887 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
43888 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
43889 fi
43890 fi
43891
43892 if test "$wxUSE_NOTEBOOK" = "yes"; then
43893 cat >>confdefs.h <<\_ACEOF
43894 #define wxUSE_NOTEBOOK 1
43895 _ACEOF
43896
43897 USES_CONTROLS=1
43898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
43899 fi
43900
43901 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
43902 cat >>confdefs.h <<\_ACEOF
43903 #define wxUSE_ODCOMBOBOX 1
43904 _ACEOF
43905
43906 USES_CONTROLS=1
43907 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
43908 fi
43909
43910
43911 if test "$wxUSE_RADIOBOX" = "yes"; then
43912 cat >>confdefs.h <<\_ACEOF
43913 #define wxUSE_RADIOBOX 1
43914 _ACEOF
43915
43916 USES_CONTROLS=1
43917 fi
43918
43919 if test "$wxUSE_RADIOBTN" = "yes"; then
43920 cat >>confdefs.h <<\_ACEOF
43921 #define wxUSE_RADIOBTN 1
43922 _ACEOF
43923
43924 USES_CONTROLS=1
43925 fi
43926
43927 if test "$wxUSE_SASH" = "yes"; then
43928 cat >>confdefs.h <<\_ACEOF
43929 #define wxUSE_SASH 1
43930 _ACEOF
43931
43932 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
43933 fi
43934
43935 if test "$wxUSE_SCROLLBAR" = "yes"; then
43936 cat >>confdefs.h <<\_ACEOF
43937 #define wxUSE_SCROLLBAR 1
43938 _ACEOF
43939
43940 USES_CONTROLS=1
43941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
43942 fi
43943
43944 if test "$wxUSE_SLIDER" = "yes"; then
43945 cat >>confdefs.h <<\_ACEOF
43946 #define wxUSE_SLIDER 1
43947 _ACEOF
43948
43949 USES_CONTROLS=1
43950 fi
43951
43952 if test "$wxUSE_SPINBTN" = "yes"; then
43953 cat >>confdefs.h <<\_ACEOF
43954 #define wxUSE_SPINBTN 1
43955 _ACEOF
43956
43957 USES_CONTROLS=1
43958 fi
43959
43960 if test "$wxUSE_SPINCTRL" = "yes"; then
43961 cat >>confdefs.h <<\_ACEOF
43962 #define wxUSE_SPINCTRL 1
43963 _ACEOF
43964
43965 USES_CONTROLS=1
43966 fi
43967
43968 if test "$wxUSE_SPLITTER" = "yes"; then
43969 cat >>confdefs.h <<\_ACEOF
43970 #define wxUSE_SPLITTER 1
43971 _ACEOF
43972
43973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
43974 fi
43975
43976 if test "$wxUSE_STATBMP" = "yes"; then
43977 cat >>confdefs.h <<\_ACEOF
43978 #define wxUSE_STATBMP 1
43979 _ACEOF
43980
43981 USES_CONTROLS=1
43982 fi
43983
43984 if test "$wxUSE_STATBOX" = "yes"; then
43985 cat >>confdefs.h <<\_ACEOF
43986 #define wxUSE_STATBOX 1
43987 _ACEOF
43988
43989 USES_CONTROLS=1
43990 fi
43991
43992 if test "$wxUSE_STATTEXT" = "yes"; then
43993 cat >>confdefs.h <<\_ACEOF
43994 #define wxUSE_STATTEXT 1
43995 _ACEOF
43996
43997 USES_CONTROLS=1
43998 fi
43999
44000 if test "$wxUSE_STATLINE" = "yes"; then
44001 cat >>confdefs.h <<\_ACEOF
44002 #define wxUSE_STATLINE 1
44003 _ACEOF
44004
44005 USES_CONTROLS=1
44006 fi
44007
44008 if test "$wxUSE_STATUSBAR" = "yes"; then
44009 cat >>confdefs.h <<\_ACEOF
44010 #define wxUSE_NATIVE_STATUSBAR 1
44011 _ACEOF
44012
44013 cat >>confdefs.h <<\_ACEOF
44014 #define wxUSE_STATUSBAR 1
44015 _ACEOF
44016
44017 USES_CONTROLS=1
44018
44019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44020 fi
44021
44022 if test "$wxUSE_TAB_DIALOG" = "yes"; then
44023 cat >>confdefs.h <<\_ACEOF
44024 #define wxUSE_TAB_DIALOG 1
44025 _ACEOF
44026
44027 fi
44028
44029 if test "$wxUSE_TEXTCTRL" = "yes"; then
44030 cat >>confdefs.h <<\_ACEOF
44031 #define wxUSE_TEXTCTRL 1
44032 _ACEOF
44033
44034 USES_CONTROLS=1
44035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44036 fi
44037
44038 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44039 if test "$wxUSE_COCOA" = 1 ; then
44040 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44041 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44042 wxUSE_TOGGLEBTN=no
44043 fi
44044
44045 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44046 cat >>confdefs.h <<\_ACEOF
44047 #define wxUSE_TOGGLEBTN 1
44048 _ACEOF
44049
44050 USES_CONTROLS=1
44051 fi
44052 fi
44053
44054 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44055 cat >>confdefs.h <<\_ACEOF
44056 #define wxUSE_TOOLBAR_SIMPLE 1
44057 _ACEOF
44058
44059 wxUSE_TOOLBAR="yes"
44060 USES_CONTROLS=1
44061 fi
44062
44063 if test "$wxUSE_TOOLBAR" = "yes"; then
44064 cat >>confdefs.h <<\_ACEOF
44065 #define wxUSE_TOOLBAR 1
44066 _ACEOF
44067
44068 USES_CONTROLS=1
44069
44070 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44071 wxUSE_TOOLBAR_NATIVE="yes"
44072 fi
44073
44074 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44075 cat >>confdefs.h <<\_ACEOF
44076 #define wxUSE_TOOLBAR_NATIVE 1
44077 _ACEOF
44078
44079 USES_CONTROLS=1
44080 fi
44081
44082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44083 fi
44084
44085 if test "$wxUSE_TOOLTIPS" = "yes"; then
44086 if test "$wxUSE_MOTIF" = 1; then
44087 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44088 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44089 else
44090 if test "$wxUSE_UNIVERSAL" = "yes"; then
44091 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44092 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44093 else
44094 cat >>confdefs.h <<\_ACEOF
44095 #define wxUSE_TOOLTIPS 1
44096 _ACEOF
44097
44098 fi
44099 fi
44100 fi
44101
44102 if test "$wxUSE_TREEBOOK" = "yes"; then
44103 cat >>confdefs.h <<\_ACEOF
44104 #define wxUSE_TREEBOOK 1
44105 _ACEOF
44106
44107 USES_CONTROLS=1
44108 fi
44109
44110 if test "$wxUSE_TOOLBOOK" = "yes"; then
44111 cat >>confdefs.h <<\_ACEOF
44112 #define wxUSE_TOOLBOOK 1
44113 _ACEOF
44114
44115 USES_CONTROLS=1
44116 fi
44117
44118 if test "$wxUSE_TREECTRL" = "yes"; then
44119 if test "$wxUSE_IMAGLIST" = "yes"; then
44120 cat >>confdefs.h <<\_ACEOF
44121 #define wxUSE_TREECTRL 1
44122 _ACEOF
44123
44124 USES_CONTROLS=1
44125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44126 else
44127 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44128 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44129 fi
44130 fi
44131
44132 if test "$wxUSE_POPUPWIN" = "yes"; then
44133 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44134 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44135 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44136 else
44137 if test "$wxUSE_PM" = 1; then
44138 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44139 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44140 else
44141 cat >>confdefs.h <<\_ACEOF
44142 #define wxUSE_POPUPWIN 1
44143 _ACEOF
44144
44145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
44146
44147 USES_CONTROLS=1
44148 fi
44149 fi
44150 fi
44151
44152 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
44153 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44154 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44155 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44156 else
44157 cat >>confdefs.h <<\_ACEOF
44158 #define wxUSE_DIALUP_MANAGER 1
44159 _ACEOF
44160
44161 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44162 fi
44163 fi
44164
44165 if test "$wxUSE_TIPWINDOW" = "yes"; then
44166 if test "$wxUSE_PM" = 1; then
44167 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44168 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44169 else
44170 cat >>confdefs.h <<\_ACEOF
44171 #define wxUSE_TIPWINDOW 1
44172 _ACEOF
44173
44174 fi
44175 fi
44176
44177 if test "$USES_CONTROLS" = 1; then
44178 cat >>confdefs.h <<\_ACEOF
44179 #define wxUSE_CONTROLS 1
44180 _ACEOF
44181
44182 fi
44183
44184
44185 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44186 cat >>confdefs.h <<\_ACEOF
44187 #define wxUSE_ACCESSIBILITY 1
44188 _ACEOF
44189
44190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44191 fi
44192
44193 if test "$wxUSE_DC_CACHEING" = "yes"; then
44194 cat >>confdefs.h <<\_ACEOF
44195 #define wxUSE_DC_CACHEING 1
44196 _ACEOF
44197
44198 fi
44199
44200 if test "$wxUSE_DRAGIMAGE" = "yes"; then
44201 cat >>confdefs.h <<\_ACEOF
44202 #define wxUSE_DRAGIMAGE 1
44203 _ACEOF
44204
44205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44206 fi
44207
44208 if test "$wxUSE_EXCEPTIONS" = "yes"; then
44209 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44210 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44211 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44212 else
44213 cat >>confdefs.h <<\_ACEOF
44214 #define wxUSE_EXCEPTIONS 1
44215 _ACEOF
44216
44217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44218 fi
44219 fi
44220
44221 USE_HTML=0
44222 if test "$wxUSE_HTML" = "yes"; then
44223 cat >>confdefs.h <<\_ACEOF
44224 #define wxUSE_HTML 1
44225 _ACEOF
44226
44227 USE_HTML=1
44228 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
44229 if test "$wxUSE_MAC" = 1; then
44230 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44231 fi
44232 fi
44233 if test "$wxUSE_WEBKIT" = "yes"; then
44234 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
44235 old_CPPFLAGS="$CPPFLAGS"
44236 CPPFLAGS="-x objective-c++ $CPPFLAGS"
44237 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44238 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44239 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44240 echo $ECHO_N "(cached) $ECHO_C" >&6
44241 else
44242 cat >conftest.$ac_ext <<_ACEOF
44243 /* confdefs.h. */
44244 _ACEOF
44245 cat confdefs.h >>conftest.$ac_ext
44246 cat >>conftest.$ac_ext <<_ACEOF
44247 /* end confdefs.h. */
44248 #include <Carbon/Carbon.h>
44249
44250 #include <WebKit/HIWebView.h>
44251 _ACEOF
44252 rm -f conftest.$ac_objext
44253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44254 (eval $ac_compile) 2>conftest.er1
44255 ac_status=$?
44256 grep -v '^ *+' conftest.er1 >conftest.err
44257 rm -f conftest.er1
44258 cat conftest.err >&5
44259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44260 (exit $ac_status); } &&
44261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
44262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44263 (eval $ac_try) 2>&5
44264 ac_status=$?
44265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44266 (exit $ac_status); }; } &&
44267 { ac_try='test -s conftest.$ac_objext'
44268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44269 (eval $ac_try) 2>&5
44270 ac_status=$?
44271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44272 (exit $ac_status); }; }; then
44273 ac_cv_header_WebKit_HIWebView_h=yes
44274 else
44275 echo "$as_me: failed program was:" >&5
44276 sed 's/^/| /' conftest.$ac_ext >&5
44277
44278 ac_cv_header_WebKit_HIWebView_h=no
44279 fi
44280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44281 fi
44282 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44283 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44284 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44285
44286 cat >>confdefs.h <<\_ACEOF
44287 #define wxUSE_WEBKIT 1
44288 _ACEOF
44289
44290 WEBKIT_LINK="-framework WebKit"
44291
44292 else
44293
44294 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44295 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44296 wxUSE_WEBKIT=no
44297
44298 fi
44299
44300
44301 CPPFLAGS="$old_CPPFLAGS"
44302 elif test "$wxUSE_COCOA" = 1; then
44303 cat >>confdefs.h <<\_ACEOF
44304 #define wxUSE_WEBKIT 1
44305 _ACEOF
44306
44307 else
44308 wxUSE_WEBKIT=no
44309 fi
44310 fi
44311
44312 USE_XRC=0
44313 if test "$wxUSE_XRC" = "yes"; then
44314 if test "$wxUSE_XML" != "yes"; then
44315 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44316 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44317 wxUSE_XRC=no
44318 else
44319 cat >>confdefs.h <<\_ACEOF
44320 #define wxUSE_XRC 1
44321 _ACEOF
44322
44323 USE_XRC=1
44324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44325 fi
44326 fi
44327
44328 if test "$wxUSE_MENUS" = "yes"; then
44329 cat >>confdefs.h <<\_ACEOF
44330 #define wxUSE_MENUS 1
44331 _ACEOF
44332
44333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44334 fi
44335
44336 if test "$wxUSE_METAFILE" = "yes"; then
44337 cat >>confdefs.h <<\_ACEOF
44338 #define wxUSE_METAFILE 1
44339 _ACEOF
44340
44341 fi
44342
44343 if test "$wxUSE_MIMETYPE" = "yes"; then
44344 cat >>confdefs.h <<\_ACEOF
44345 #define wxUSE_MIMETYPE 1
44346 _ACEOF
44347
44348 fi
44349
44350 if test "$wxUSE_MINIFRAME" = "yes"; then
44351 cat >>confdefs.h <<\_ACEOF
44352 #define wxUSE_MINIFRAME 1
44353 _ACEOF
44354
44355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44356 fi
44357
44358 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44359 cat >>confdefs.h <<\_ACEOF
44360 #define wxUSE_SYSTEM_OPTIONS 1
44361 _ACEOF
44362
44363 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
44364 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
44365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44366 fi
44367 fi
44368
44369
44370 if test "$wxUSE_VALIDATORS" = "yes"; then
44371 cat >>confdefs.h <<\_ACEOF
44372 #define wxUSE_VALIDATORS 1
44373 _ACEOF
44374
44375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44376 fi
44377
44378 if test "$wxUSE_PALETTE" = "yes" ; then
44379 cat >>confdefs.h <<\_ACEOF
44380 #define wxUSE_PALETTE 1
44381 _ACEOF
44382
44383 fi
44384
44385 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44386 LIBS=" -lunicows $LIBS"
44387 fi
44388
44389 USE_RICHTEXT=0
44390 if test "$wxUSE_RICHTEXT" = "yes"; then
44391 cat >>confdefs.h <<\_ACEOF
44392 #define wxUSE_RICHTEXT 1
44393 _ACEOF
44394
44395 USE_RICHTEXT=1
44396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44397 fi
44398
44399
44400 if test "$wxUSE_IMAGE" = "yes" ; then
44401 cat >>confdefs.h <<\_ACEOF
44402 #define wxUSE_IMAGE 1
44403 _ACEOF
44404
44405
44406 if test "$wxUSE_GIF" = "yes" ; then
44407 cat >>confdefs.h <<\_ACEOF
44408 #define wxUSE_GIF 1
44409 _ACEOF
44410
44411 fi
44412
44413 if test "$wxUSE_PCX" = "yes" ; then
44414 cat >>confdefs.h <<\_ACEOF
44415 #define wxUSE_PCX 1
44416 _ACEOF
44417
44418 fi
44419
44420 if test "$wxUSE_IFF" = "yes" ; then
44421 cat >>confdefs.h <<\_ACEOF
44422 #define wxUSE_IFF 1
44423 _ACEOF
44424
44425 fi
44426
44427 if test "$wxUSE_PNM" = "yes" ; then
44428 cat >>confdefs.h <<\_ACEOF
44429 #define wxUSE_PNM 1
44430 _ACEOF
44431
44432 fi
44433
44434 if test "$wxUSE_XPM" = "yes" ; then
44435 cat >>confdefs.h <<\_ACEOF
44436 #define wxUSE_XPM 1
44437 _ACEOF
44438
44439 fi
44440
44441 if test "$wxUSE_ICO_CUR" = "yes" ; then
44442 cat >>confdefs.h <<\_ACEOF
44443 #define wxUSE_ICO_CUR 1
44444 _ACEOF
44445
44446 fi
44447 fi
44448
44449
44450 if test "$wxUSE_CHOICEDLG" = "yes"; then
44451 cat >>confdefs.h <<\_ACEOF
44452 #define wxUSE_CHOICEDLG 1
44453 _ACEOF
44454
44455 fi
44456
44457 if test "$wxUSE_COLOURDLG" = "yes"; then
44458 cat >>confdefs.h <<\_ACEOF
44459 #define wxUSE_COLOURDLG 1
44460 _ACEOF
44461
44462 fi
44463
44464 if test "$wxUSE_FILEDLG" = "yes"; then
44465 cat >>confdefs.h <<\_ACEOF
44466 #define wxUSE_FILEDLG 1
44467 _ACEOF
44468
44469 fi
44470
44471 if test "$wxUSE_FINDREPLDLG" = "yes"; then
44472 cat >>confdefs.h <<\_ACEOF
44473 #define wxUSE_FINDREPLDLG 1
44474 _ACEOF
44475
44476 fi
44477
44478 if test "$wxUSE_FONTDLG" = "yes"; then
44479 cat >>confdefs.h <<\_ACEOF
44480 #define wxUSE_FONTDLG 1
44481 _ACEOF
44482
44483 fi
44484
44485 if test "$wxUSE_DIRDLG" = "yes"; then
44486 if test "$wxUSE_TREECTRL" != "yes"; then
44487 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44488 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44489 else
44490 cat >>confdefs.h <<\_ACEOF
44491 #define wxUSE_DIRDLG 1
44492 _ACEOF
44493
44494 fi
44495 fi
44496
44497 if test "$wxUSE_MSGDLG" = "yes"; then
44498 cat >>confdefs.h <<\_ACEOF
44499 #define wxUSE_MSGDLG 1
44500 _ACEOF
44501
44502 fi
44503
44504 if test "$wxUSE_NUMBERDLG" = "yes"; then
44505 cat >>confdefs.h <<\_ACEOF
44506 #define wxUSE_NUMBERDLG 1
44507 _ACEOF
44508
44509 fi
44510
44511 if test "$wxUSE_PROGRESSDLG" = "yes"; then
44512 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44513 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44514 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44515 else
44516 cat >>confdefs.h <<\_ACEOF
44517 #define wxUSE_PROGRESSDLG 1
44518 _ACEOF
44519
44520 fi
44521 fi
44522
44523 if test "$wxUSE_SPLASH" = "yes"; then
44524 cat >>confdefs.h <<\_ACEOF
44525 #define wxUSE_SPLASH 1
44526 _ACEOF
44527
44528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
44529 fi
44530
44531 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44532 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44533 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44534 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44535 else
44536 cat >>confdefs.h <<\_ACEOF
44537 #define wxUSE_STARTUP_TIPS 1
44538 _ACEOF
44539
44540 fi
44541 fi
44542
44543 if test "$wxUSE_TEXTDLG" = "yes"; then
44544 cat >>confdefs.h <<\_ACEOF
44545 #define wxUSE_TEXTDLG 1
44546 _ACEOF
44547
44548 fi
44549
44550 if test "$wxUSE_WIZARDDLG" = "yes"; then
44551 cat >>confdefs.h <<\_ACEOF
44552 #define wxUSE_WIZARDDLG 1
44553 _ACEOF
44554
44555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44556 fi
44557
44558
44559 USE_MEDIA=0
44560
44561 if test "$wxUSE_MEDIACTRL" = "yes"; then
44562 if test "$wxUSE_GTK" = 1; then
44563 wxUSE_GSTREAMER="yes"
44564
44565 GST_VERSION_MAJOR=0
44566 GST_VERSION_MINOR=10
44567 GST_VERSION_RELEASE=0
44568 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44569 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
44570
44571 if test "$wxUSE_GSTREAMER8" = "no"; then
44572
44573 succeeded=no
44574
44575 if test -z "$PKG_CONFIG"; then
44576 # Extract the first word of "pkg-config", so it can be a program name with args.
44577 set dummy pkg-config; ac_word=$2
44578 echo "$as_me:$LINENO: checking for $ac_word" >&5
44579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44580 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44581 echo $ECHO_N "(cached) $ECHO_C" >&6
44582 else
44583 case $PKG_CONFIG in
44584 [\\/]* | ?:[\\/]*)
44585 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44586 ;;
44587 *)
44588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44589 for as_dir in $PATH
44590 do
44591 IFS=$as_save_IFS
44592 test -z "$as_dir" && as_dir=.
44593 for ac_exec_ext in '' $ac_executable_extensions; do
44594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44595 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44597 break 2
44598 fi
44599 done
44600 done
44601
44602 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44603 ;;
44604 esac
44605 fi
44606 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44607
44608 if test -n "$PKG_CONFIG"; then
44609 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44610 echo "${ECHO_T}$PKG_CONFIG" >&6
44611 else
44612 echo "$as_me:$LINENO: result: no" >&5
44613 echo "${ECHO_T}no" >&6
44614 fi
44615
44616 fi
44617
44618 if test "$PKG_CONFIG" = "no" ; then
44619 echo "*** The pkg-config script could not be found. Make sure it is"
44620 echo "*** in your path, or set the PKG_CONFIG environment variable"
44621 echo "*** to the full path to pkg-config."
44622 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44623 else
44624 PKG_CONFIG_MIN_VERSION=0.9.0
44625 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44626 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44627 gstreamer-plugins-base-$GST_MAJORMINOR
44628 gconf-2.0" >&5
44629 echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44630 gstreamer-plugins-base-$GST_MAJORMINOR
44631 gconf-2.0... $ECHO_C" >&6
44632
44633 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44634 gstreamer-plugins-base-$GST_MAJORMINOR
44635 gconf-2.0" ; then
44636 echo "$as_me:$LINENO: result: yes" >&5
44637 echo "${ECHO_T}yes" >&6
44638 succeeded=yes
44639
44640 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44641 echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44642 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44643 gstreamer-plugins-base-$GST_MAJORMINOR
44644 gconf-2.0"`
44645 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44646 echo "${ECHO_T}$GST_CFLAGS" >&6
44647
44648 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44649 echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44650 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44651 gstreamer-plugins-base-$GST_MAJORMINOR
44652 gconf-2.0"`
44653 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44654 echo "${ECHO_T}$GST_LIBS" >&6
44655 else
44656 GST_CFLAGS=""
44657 GST_LIBS=""
44658 ## If we have a custom action on failure, don't print errors, but
44659 ## do set a variable so people can do so.
44660 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44661 gstreamer-plugins-base-$GST_MAJORMINOR
44662 gconf-2.0"`
44663
44664 fi
44665
44666
44667
44668 else
44669 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44670 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44671 fi
44672 fi
44673
44674 if test $succeeded = yes; then
44675
44676 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44677 LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
44678
44679 else
44680
44681 GST_VERSION_MINOR=8
44682
44683 fi
44684
44685 else
44686 GST_VERSION_MINOR=8
44687 fi
44688
44689 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44690 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
44691
44692 if test x$GST_VERSION_MINOR = x8; then
44693
44694 succeeded=no
44695
44696 if test -z "$PKG_CONFIG"; then
44697 # Extract the first word of "pkg-config", so it can be a program name with args.
44698 set dummy pkg-config; ac_word=$2
44699 echo "$as_me:$LINENO: checking for $ac_word" >&5
44700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44701 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44702 echo $ECHO_N "(cached) $ECHO_C" >&6
44703 else
44704 case $PKG_CONFIG in
44705 [\\/]* | ?:[\\/]*)
44706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44707 ;;
44708 *)
44709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44710 for as_dir in $PATH
44711 do
44712 IFS=$as_save_IFS
44713 test -z "$as_dir" && as_dir=.
44714 for ac_exec_ext in '' $ac_executable_extensions; do
44715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44716 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44718 break 2
44719 fi
44720 done
44721 done
44722
44723 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44724 ;;
44725 esac
44726 fi
44727 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44728
44729 if test -n "$PKG_CONFIG"; then
44730 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44731 echo "${ECHO_T}$PKG_CONFIG" >&6
44732 else
44733 echo "$as_me:$LINENO: result: no" >&5
44734 echo "${ECHO_T}no" >&6
44735 fi
44736
44737 fi
44738
44739 if test "$PKG_CONFIG" = "no" ; then
44740 echo "*** The pkg-config script could not be found. Make sure it is"
44741 echo "*** in your path, or set the PKG_CONFIG environment variable"
44742 echo "*** to the full path to pkg-config."
44743 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44744 else
44745 PKG_CONFIG_MIN_VERSION=0.9.0
44746 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44747 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44748 gstreamer-interfaces-$GST_MAJORMINOR
44749 gstreamer-gconf-$GST_MAJORMINOR" >&5
44750 echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44751 gstreamer-interfaces-$GST_MAJORMINOR
44752 gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6
44753
44754 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44755 gstreamer-interfaces-$GST_MAJORMINOR
44756 gstreamer-gconf-$GST_MAJORMINOR" ; then
44757 echo "$as_me:$LINENO: result: yes" >&5
44758 echo "${ECHO_T}yes" >&6
44759 succeeded=yes
44760
44761 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44762 echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44763 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44764 gstreamer-interfaces-$GST_MAJORMINOR
44765 gstreamer-gconf-$GST_MAJORMINOR"`
44766 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44767 echo "${ECHO_T}$GST_CFLAGS" >&6
44768
44769 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44770 echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44771 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44772 gstreamer-interfaces-$GST_MAJORMINOR
44773 gstreamer-gconf-$GST_MAJORMINOR"`
44774 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44775 echo "${ECHO_T}$GST_LIBS" >&6
44776 else
44777 GST_CFLAGS=""
44778 GST_LIBS=""
44779 ## If we have a custom action on failure, don't print errors, but
44780 ## do set a variable so people can do so.
44781 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44782 gstreamer-interfaces-$GST_MAJORMINOR
44783 gstreamer-gconf-$GST_MAJORMINOR"`
44784
44785 fi
44786
44787
44788
44789 else
44790 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44791 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44792 fi
44793 fi
44794
44795 if test $succeeded = yes; then
44796
44797 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44798 LIBS="$LIBS $GST_LIBS"
44799
44800 else
44801
44802 { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5
44803 echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
44804 wxUSE_GSTREAMER="no"
44805
44806 fi
44807
44808 fi
44809
44810
44811 if test "$wxUSE_GSTREAMER" = "yes"; then
44812 cat >>confdefs.h <<\_ACEOF
44813 #define wxUSE_GSTREAMER 1
44814 _ACEOF
44815
44816 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
44817 echo "${ECHO_T}GStreamer detection successful" >&6
44818 fi
44819 fi
44820 USE_MEDIA=1
44821 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
44822 cat >>confdefs.h <<\_ACEOF
44823 #define wxUSE_MEDIACTRL 1
44824 _ACEOF
44825
44826 fi
44827
44828
44829 if test "$cross_compiling" = "yes"; then
44830 OSINFO="\"$host\""
44831 else
44832 OSINFO=`uname -s -r -m`
44833 OSINFO="\"$OSINFO\""
44834 fi
44835
44836 cat >>confdefs.h <<_ACEOF
44837 #define WXWIN_OS_DESCRIPTION $OSINFO
44838 _ACEOF
44839
44840
44841
44842 if test "x$prefix" != "xNONE"; then
44843 wxPREFIX=$prefix
44844 else
44845 wxPREFIX=$ac_default_prefix
44846 fi
44847
44848 cat >>confdefs.h <<_ACEOF
44849 #define wxINSTALL_PREFIX "$wxPREFIX"
44850 _ACEOF
44851
44852
44853
44854
44855 CORE_BASE_LIBS="net base"
44856 CORE_GUI_LIBS="adv core"
44857
44858 if test "$wxUSE_XML" = "yes" ; then
44859 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
44860 fi
44861 if test "$wxUSE_ODBC" != "no" ; then
44862 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
44863 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
44864 fi
44865 if test "$wxUSE_HTML" = "yes" ; then
44866 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
44867 fi
44868 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44869 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
44870 fi
44871 if test "$wxUSE_XRC" = "yes" ; then
44872 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
44873 fi
44874
44875 if test "$wxUSE_GUI" != "yes"; then
44876 CORE_GUI_LIBS=""
44877 fi
44878
44879
44880
44881
44882
44883 ac_ext=c
44884 ac_cpp='$CPP $CPPFLAGS'
44885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44888
44889
44890
44891 if test "$wxUSE_MAC" = 1 ; then
44892 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
44893 if test "$USE_DARWIN" = 1; then
44894 LDFLAGS="$LDFLAGS -framework QuickTime"
44895 else
44896 LDFLAGS="$LDFLAGS -lQuickTimeLib"
44897 fi
44898 fi
44899 if test "$USE_DARWIN" = 1; then
44900 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
44901 else
44902 LDFLAGS="$LDFLAGS -lCarbonLib"
44903 fi
44904 fi
44905 if test "$wxUSE_COCOA" = 1 ; then
44906 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
44907 if test "$wxUSE_MEDIACTRL" = "yes"; then
44908 LDFLAGS="$LDFLAGS -framework QuickTime"
44909 fi
44910 fi
44911 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
44912 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
44913 fi
44914
44915 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
44916
44917 if test "$wxUSE_GUI" = "yes"; then
44918
44919
44920 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
44921 dynamic erase event exec font image minimal mobile \
44922 mobile/wxedit mobile/styles propsize render \
44923 rotate shaped vscroll widgets"
44924
44925 if test "$wxUSE_MONOLITHIC" != "yes"; then
44926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
44927 fi
44928 if test "$TOOLKIT" = "MSW"; then
44929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
44930 if test "$wxUSE_UNIVERSAL" != "yes"; then
44931 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
44932 fi
44933 fi
44934 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
44935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
44936 fi
44937 else
44938 SAMPLES_SUBDIRS="console"
44939 fi
44940
44941
44942 if test "x$INTELCC" = "xyes" ; then
44943 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
44944 elif test "$GCC" = yes ; then
44945 CWARNINGS="-Wall -Wundef"
44946 fi
44947
44948 if test "x$INTELCXX" = "xyes" ; then
44949 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
44950 elif test "$GXX" = yes ; then
44951 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
44952 fi
44953
44954
44955 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
44956 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
44957
44958
44959 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
44960 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
44961 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
44962 $CPPFLAGS `
44963
44964 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
44965 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
44966 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
44967
44968 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
44969
44970
44971 if test "x$MWCC" = "xyes"; then
44972
44973 CC="$CC -cwd source -I-"
44974 CXX="$CXX -cwd source -I-"
44975 fi
44976
44977
44978 LIBS=`echo $LIBS`
44979 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
44980 EXTRALIBS_XML="$EXPAT_LINK"
44981 EXTRALIBS_HTML="$MSPACK_LINK"
44982 EXTRALIBS_ODBC="$ODBC_LINK"
44983 if test "$wxUSE_GUI" = "yes"; then
44984 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
44985 fi
44986 if test "$wxUSE_OPENGL" = "yes"; then
44987 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
44988 fi
44989
44990 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
44991
44992 WXCONFIG_LIBS="$LIBS"
44993
44994 if test "$wxUSE_REGEX" = "builtin" ; then
44995 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
44996 fi
44997 if test "$wxUSE_EXPAT" = "builtin" ; then
44998 wxconfig_3rdparty="expat $wxconfig_3rdparty"
44999 fi
45000 if test "$wxUSE_ODBC" = "builtin" ; then
45001 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
45002 fi
45003 if test "$wxUSE_LIBTIFF" = "builtin" ; then
45004 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
45005 fi
45006 if test "$wxUSE_LIBJPEG" = "builtin" ; then
45007 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
45008 fi
45009 if test "$wxUSE_LIBPNG" = "builtin" ; then
45010 wxconfig_3rdparty="png $wxconfig_3rdparty"
45011 fi
45012 if test "$wxUSE_ZLIB" = "builtin" ; then
45013 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
45014 fi
45015
45016 for i in $wxconfig_3rdparty ; do
45017 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
45018 done
45019
45020
45021 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45022 WXUNIV=1
45023 else
45024 WXUNIV=0
45025 fi
45026
45027
45028
45029
45030
45031
45032
45033
45034
45035 if test $wxUSE_MONOLITHIC = "yes" ; then
45036 MONOLITHIC=1
45037 else
45038 MONOLITHIC=0
45039 fi
45040
45041 if test $wxUSE_PLUGINS = "yes" ; then
45042 USE_PLUGINS=1
45043 else
45044 USE_PLUGINS=0
45045 fi
45046
45047 if test $wxUSE_ODBC != "no" ; then
45048 USE_ODBC=1
45049 else
45050 USE_ODBC=0
45051 fi
45052
45053 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45054 USE_QA=1
45055 else
45056 USE_QA=0
45057 fi
45058
45059 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45060 OFFICIAL_BUILD=1
45061 else
45062 OFFICIAL_BUILD=0
45063 fi
45064
45065
45066
45067
45068
45069
45070
45071
45072
45073
45074
45075
45076
45077
45078
45079
45080
45081
45082
45083
45084
45085
45086
45087
45088
45089 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45090
45091
45092
45093
45094
45095
45096
45097
45098 case "$TOOLKIT" in
45099 GTK)
45100 TOOLKIT_USER="GTK+"
45101 if test "$WXGTK20" = 1; then
45102 TOOLKIT_USER="$TOOLKIT_USER 2"
45103 fi
45104 ;;
45105
45106 *)
45107 TOOLKIT_USER=$TOOLKIT_LOWERCASE
45108 ;;
45109 esac
45110
45111 if test "$wxUSE_WINE" = "yes"; then
45112 BAKEFILE_FORCE_PLATFORM=win32
45113 fi
45114
45115 if test "$wxUSE_MAC" = 1 ; then
45116 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45117 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45118 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45119 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45120 bk_use_pch=no
45121 fi
45122 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45123 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45124 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45125 fi
45126
45127
45128
45129
45130 if test "x$BAKEFILE_HOST" = "x"; then
45131 if test "x${host}" = "x" ; then
45132 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45133 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45134 { (exit 1); exit 1; }; }
45135 fi
45136
45137 BAKEFILE_HOST="${host}"
45138 fi
45139
45140 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45141
45142 if test -n "$ac_tool_prefix"; then
45143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45144 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45145 echo "$as_me:$LINENO: checking for $ac_word" >&5
45146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45147 if test "${ac_cv_prog_RANLIB+set}" = set; then
45148 echo $ECHO_N "(cached) $ECHO_C" >&6
45149 else
45150 if test -n "$RANLIB"; then
45151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45152 else
45153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45154 for as_dir in $PATH
45155 do
45156 IFS=$as_save_IFS
45157 test -z "$as_dir" && as_dir=.
45158 for ac_exec_ext in '' $ac_executable_extensions; do
45159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45162 break 2
45163 fi
45164 done
45165 done
45166
45167 fi
45168 fi
45169 RANLIB=$ac_cv_prog_RANLIB
45170 if test -n "$RANLIB"; then
45171 echo "$as_me:$LINENO: result: $RANLIB" >&5
45172 echo "${ECHO_T}$RANLIB" >&6
45173 else
45174 echo "$as_me:$LINENO: result: no" >&5
45175 echo "${ECHO_T}no" >&6
45176 fi
45177
45178 fi
45179 if test -z "$ac_cv_prog_RANLIB"; then
45180 ac_ct_RANLIB=$RANLIB
45181 # Extract the first word of "ranlib", so it can be a program name with args.
45182 set dummy ranlib; ac_word=$2
45183 echo "$as_me:$LINENO: checking for $ac_word" >&5
45184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45185 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45186 echo $ECHO_N "(cached) $ECHO_C" >&6
45187 else
45188 if test -n "$ac_ct_RANLIB"; then
45189 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45190 else
45191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45192 for as_dir in $PATH
45193 do
45194 IFS=$as_save_IFS
45195 test -z "$as_dir" && as_dir=.
45196 for ac_exec_ext in '' $ac_executable_extensions; do
45197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45198 ac_cv_prog_ac_ct_RANLIB="ranlib"
45199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45200 break 2
45201 fi
45202 done
45203 done
45204
45205 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45206 fi
45207 fi
45208 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45209 if test -n "$ac_ct_RANLIB"; then
45210 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45211 echo "${ECHO_T}$ac_ct_RANLIB" >&6
45212 else
45213 echo "$as_me:$LINENO: result: no" >&5
45214 echo "${ECHO_T}no" >&6
45215 fi
45216
45217 RANLIB=$ac_ct_RANLIB
45218 else
45219 RANLIB="$ac_cv_prog_RANLIB"
45220 fi
45221
45222 # Find a good install program. We prefer a C program (faster),
45223 # so one script is as good as another. But avoid the broken or
45224 # incompatible versions:
45225 # SysV /etc/install, /usr/sbin/install
45226 # SunOS /usr/etc/install
45227 # IRIX /sbin/install
45228 # AIX /bin/install
45229 # AmigaOS /C/install, which installs bootblocks on floppy discs
45230 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
45232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
45233 # OS/2's system install, which has a completely different semantic
45234 # ./install, which can be erroneously created by make from ./install.sh.
45235 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45236 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45237 if test -z "$INSTALL"; then
45238 if test "${ac_cv_path_install+set}" = set; then
45239 echo $ECHO_N "(cached) $ECHO_C" >&6
45240 else
45241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45242 for as_dir in $PATH
45243 do
45244 IFS=$as_save_IFS
45245 test -z "$as_dir" && as_dir=.
45246 # Account for people who put trailing slashes in PATH elements.
45247 case $as_dir/ in
45248 ./ | .// | /cC/* | \
45249 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
45250 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
45251 /usr/ucb/* ) ;;
45252 *)
45253 # OSF1 and SCO ODT 3.0 have their own names for install.
45254 # Don't use installbsd from OSF since it installs stuff as root
45255 # by default.
45256 for ac_prog in ginstall scoinst install; do
45257 for ac_exec_ext in '' $ac_executable_extensions; do
45258 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45259 if test $ac_prog = install &&
45260 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45261 # AIX install. It has an incompatible calling convention.
45262 :
45263 elif test $ac_prog = install &&
45264 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45265 # program-specific install script used by HP pwplus--don't use.
45266 :
45267 else
45268 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45269 break 3
45270 fi
45271 fi
45272 done
45273 done
45274 ;;
45275 esac
45276 done
45277
45278
45279 fi
45280 if test "${ac_cv_path_install+set}" = set; then
45281 INSTALL=$ac_cv_path_install
45282 else
45283 # As a last resort, use the slow shell script. We don't cache a
45284 # path for INSTALL within a source directory, because that will
45285 # break other packages using the cache if that directory is
45286 # removed, or if the path is relative.
45287 INSTALL=$ac_install_sh
45288 fi
45289 fi
45290 echo "$as_me:$LINENO: result: $INSTALL" >&5
45291 echo "${ECHO_T}$INSTALL" >&6
45292
45293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45294 # It thinks the first close brace ends the variable substitution.
45295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45296
45297 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45298
45299 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45300
45301 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45302 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45303 LN_S=$as_ln_s
45304 if test "$LN_S" = "ln -s"; then
45305 echo "$as_me:$LINENO: result: yes" >&5
45306 echo "${ECHO_T}yes" >&6
45307 else
45308 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45309 echo "${ECHO_T}no, using $LN_S" >&6
45310 fi
45311
45312
45313 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45314 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
45315 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
45316 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45317 echo $ECHO_N "(cached) $ECHO_C" >&6
45318 else
45319 cat >conftest.make <<\_ACEOF
45320 all:
45321 @echo 'ac_maketemp="$(MAKE)"'
45322 _ACEOF
45323 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45324 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45325 if test -n "$ac_maketemp"; then
45326 eval ac_cv_prog_make_${ac_make}_set=yes
45327 else
45328 eval ac_cv_prog_make_${ac_make}_set=no
45329 fi
45330 rm -f conftest.make
45331 fi
45332 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45333 echo "$as_me:$LINENO: result: yes" >&5
45334 echo "${ECHO_T}yes" >&6
45335 SET_MAKE=
45336 else
45337 echo "$as_me:$LINENO: result: no" >&5
45338 echo "${ECHO_T}no" >&6
45339 SET_MAKE="MAKE=${MAKE-make}"
45340 fi
45341
45342
45343
45344 if test -n "$ac_tool_prefix"; then
45345 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45346 set dummy ${ac_tool_prefix}ar; ac_word=$2
45347 echo "$as_me:$LINENO: checking for $ac_word" >&5
45348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45349 if test "${ac_cv_prog_AR+set}" = set; then
45350 echo $ECHO_N "(cached) $ECHO_C" >&6
45351 else
45352 if test -n "$AR"; then
45353 ac_cv_prog_AR="$AR" # Let the user override the test.
45354 else
45355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45356 for as_dir in $PATH
45357 do
45358 IFS=$as_save_IFS
45359 test -z "$as_dir" && as_dir=.
45360 for ac_exec_ext in '' $ac_executable_extensions; do
45361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45362 ac_cv_prog_AR="${ac_tool_prefix}ar"
45363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45364 break 2
45365 fi
45366 done
45367 done
45368
45369 fi
45370 fi
45371 AR=$ac_cv_prog_AR
45372 if test -n "$AR"; then
45373 echo "$as_me:$LINENO: result: $AR" >&5
45374 echo "${ECHO_T}$AR" >&6
45375 else
45376 echo "$as_me:$LINENO: result: no" >&5
45377 echo "${ECHO_T}no" >&6
45378 fi
45379
45380 fi
45381 if test -z "$ac_cv_prog_AR"; then
45382 ac_ct_AR=$AR
45383 # Extract the first word of "ar", so it can be a program name with args.
45384 set dummy ar; ac_word=$2
45385 echo "$as_me:$LINENO: checking for $ac_word" >&5
45386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45387 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45388 echo $ECHO_N "(cached) $ECHO_C" >&6
45389 else
45390 if test -n "$ac_ct_AR"; then
45391 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45392 else
45393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45394 for as_dir in $PATH
45395 do
45396 IFS=$as_save_IFS
45397 test -z "$as_dir" && as_dir=.
45398 for ac_exec_ext in '' $ac_executable_extensions; do
45399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45400 ac_cv_prog_ac_ct_AR="ar"
45401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45402 break 2
45403 fi
45404 done
45405 done
45406
45407 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45408 fi
45409 fi
45410 ac_ct_AR=$ac_cv_prog_ac_ct_AR
45411 if test -n "$ac_ct_AR"; then
45412 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45413 echo "${ECHO_T}$ac_ct_AR" >&6
45414 else
45415 echo "$as_me:$LINENO: result: no" >&5
45416 echo "${ECHO_T}no" >&6
45417 fi
45418
45419 AR=$ac_ct_AR
45420 else
45421 AR="$ac_cv_prog_AR"
45422 fi
45423
45424 if test -n "$ac_tool_prefix"; then
45425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45426 set dummy ${ac_tool_prefix}strip; ac_word=$2
45427 echo "$as_me:$LINENO: checking for $ac_word" >&5
45428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45429 if test "${ac_cv_prog_STRIP+set}" = set; then
45430 echo $ECHO_N "(cached) $ECHO_C" >&6
45431 else
45432 if test -n "$STRIP"; then
45433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45434 else
45435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45436 for as_dir in $PATH
45437 do
45438 IFS=$as_save_IFS
45439 test -z "$as_dir" && as_dir=.
45440 for ac_exec_ext in '' $ac_executable_extensions; do
45441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45444 break 2
45445 fi
45446 done
45447 done
45448
45449 fi
45450 fi
45451 STRIP=$ac_cv_prog_STRIP
45452 if test -n "$STRIP"; then
45453 echo "$as_me:$LINENO: result: $STRIP" >&5
45454 echo "${ECHO_T}$STRIP" >&6
45455 else
45456 echo "$as_me:$LINENO: result: no" >&5
45457 echo "${ECHO_T}no" >&6
45458 fi
45459
45460 fi
45461 if test -z "$ac_cv_prog_STRIP"; then
45462 ac_ct_STRIP=$STRIP
45463 # Extract the first word of "strip", so it can be a program name with args.
45464 set dummy strip; ac_word=$2
45465 echo "$as_me:$LINENO: checking for $ac_word" >&5
45466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45467 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45468 echo $ECHO_N "(cached) $ECHO_C" >&6
45469 else
45470 if test -n "$ac_ct_STRIP"; then
45471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45472 else
45473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45474 for as_dir in $PATH
45475 do
45476 IFS=$as_save_IFS
45477 test -z "$as_dir" && as_dir=.
45478 for ac_exec_ext in '' $ac_executable_extensions; do
45479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45480 ac_cv_prog_ac_ct_STRIP="strip"
45481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45482 break 2
45483 fi
45484 done
45485 done
45486
45487 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45488 fi
45489 fi
45490 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45491 if test -n "$ac_ct_STRIP"; then
45492 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45493 echo "${ECHO_T}$ac_ct_STRIP" >&6
45494 else
45495 echo "$as_me:$LINENO: result: no" >&5
45496 echo "${ECHO_T}no" >&6
45497 fi
45498
45499 STRIP=$ac_ct_STRIP
45500 else
45501 STRIP="$ac_cv_prog_STRIP"
45502 fi
45503
45504 if test -n "$ac_tool_prefix"; then
45505 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45506 set dummy ${ac_tool_prefix}nm; ac_word=$2
45507 echo "$as_me:$LINENO: checking for $ac_word" >&5
45508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45509 if test "${ac_cv_prog_NM+set}" = set; then
45510 echo $ECHO_N "(cached) $ECHO_C" >&6
45511 else
45512 if test -n "$NM"; then
45513 ac_cv_prog_NM="$NM" # Let the user override the test.
45514 else
45515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45516 for as_dir in $PATH
45517 do
45518 IFS=$as_save_IFS
45519 test -z "$as_dir" && as_dir=.
45520 for ac_exec_ext in '' $ac_executable_extensions; do
45521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45522 ac_cv_prog_NM="${ac_tool_prefix}nm"
45523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45524 break 2
45525 fi
45526 done
45527 done
45528
45529 fi
45530 fi
45531 NM=$ac_cv_prog_NM
45532 if test -n "$NM"; then
45533 echo "$as_me:$LINENO: result: $NM" >&5
45534 echo "${ECHO_T}$NM" >&6
45535 else
45536 echo "$as_me:$LINENO: result: no" >&5
45537 echo "${ECHO_T}no" >&6
45538 fi
45539
45540 fi
45541 if test -z "$ac_cv_prog_NM"; then
45542 ac_ct_NM=$NM
45543 # Extract the first word of "nm", so it can be a program name with args.
45544 set dummy nm; ac_word=$2
45545 echo "$as_me:$LINENO: checking for $ac_word" >&5
45546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45547 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45548 echo $ECHO_N "(cached) $ECHO_C" >&6
45549 else
45550 if test -n "$ac_ct_NM"; then
45551 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45552 else
45553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45554 for as_dir in $PATH
45555 do
45556 IFS=$as_save_IFS
45557 test -z "$as_dir" && as_dir=.
45558 for ac_exec_ext in '' $ac_executable_extensions; do
45559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45560 ac_cv_prog_ac_ct_NM="nm"
45561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45562 break 2
45563 fi
45564 done
45565 done
45566
45567 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45568 fi
45569 fi
45570 ac_ct_NM=$ac_cv_prog_ac_ct_NM
45571 if test -n "$ac_ct_NM"; then
45572 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45573 echo "${ECHO_T}$ac_ct_NM" >&6
45574 else
45575 echo "$as_me:$LINENO: result: no" >&5
45576 echo "${ECHO_T}no" >&6
45577 fi
45578
45579 NM=$ac_ct_NM
45580 else
45581 NM="$ac_cv_prog_NM"
45582 fi
45583
45584
45585 case ${BAKEFILE_HOST} in
45586 *-hp-hpux* )
45587 INSTALL_DIR="mkdir -p"
45588 ;;
45589 *) INSTALL_DIR="$INSTALL -d"
45590 ;;
45591 esac
45592
45593
45594 LDFLAGS_GUI=
45595 case ${BAKEFILE_HOST} in
45596 *-*-cygwin* | *-*-mingw32* )
45597 LDFLAGS_GUI="-mwindows"
45598 esac
45599
45600
45601 fi
45602
45603 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45604 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45605 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45606 echo $ECHO_N "(cached) $ECHO_C" >&6
45607 else
45608
45609 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45610 egrep -s GNU > /dev/null); then
45611 bakefile_cv_prog_makeisgnu="yes"
45612 else
45613 bakefile_cv_prog_makeisgnu="no"
45614 fi
45615
45616 fi
45617 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45618 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45619
45620 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45621 IF_GNU_MAKE=""
45622 else
45623 IF_GNU_MAKE="#"
45624 fi
45625
45626
45627
45628 PLATFORM_UNIX=0
45629 PLATFORM_WIN32=0
45630 PLATFORM_MSDOS=0
45631 PLATFORM_MAC=0
45632 PLATFORM_MACOS=0
45633 PLATFORM_MACOSX=0
45634 PLATFORM_OS2=0
45635 PLATFORM_BEOS=0
45636
45637 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45638 case "${BAKEFILE_HOST}" in
45639 *-*-mingw32* )
45640 PLATFORM_WIN32=1
45641 ;;
45642 *-pc-msdosdjgpp )
45643 PLATFORM_MSDOS=1
45644 ;;
45645 *-pc-os2_emx | *-pc-os2-emx )
45646 PLATFORM_OS2=1
45647 ;;
45648 *-*-darwin* )
45649 PLATFORM_MAC=1
45650 PLATFORM_MACOSX=1
45651 ;;
45652 *-*-beos* )
45653 PLATFORM_BEOS=1
45654 ;;
45655 powerpc-apple-macos* )
45656 PLATFORM_MAC=1
45657 PLATFORM_MACOS=1
45658 ;;
45659 * )
45660 PLATFORM_UNIX=1
45661 ;;
45662 esac
45663 else
45664 case "$BAKEFILE_FORCE_PLATFORM" in
45665 win32 )
45666 PLATFORM_WIN32=1
45667 ;;
45668 msdos )
45669 PLATFORM_MSDOS=1
45670 ;;
45671 os2 )
45672 PLATFORM_OS2=1
45673 ;;
45674 darwin )
45675 PLATFORM_MAC=1
45676 PLATFORM_MACOSX=1
45677 ;;
45678 unix )
45679 PLATFORM_UNIX=1
45680 ;;
45681 beos )
45682 PLATFORM_BEOS=1
45683 ;;
45684 * )
45685 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45686 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45687 { (exit 1); exit 1; }; }
45688 ;;
45689 esac
45690 fi
45691
45692
45693
45694
45695
45696
45697
45698
45699
45700
45701
45702 # Check whether --enable-omf or --disable-omf was given.
45703 if test "${enable_omf+set}" = set; then
45704 enableval="$enable_omf"
45705 bk_os2_use_omf="$enableval"
45706 fi;
45707
45708 case "${BAKEFILE_HOST}" in
45709 *-*-darwin* )
45710 if test "x$GCC" = "xyes"; then
45711 CFLAGS="$CFLAGS -fno-common"
45712 CXXFLAGS="$CXXFLAGS -fno-common"
45713 fi
45714 if test "x$XLCC" = "xyes"; then
45715 CFLAGS="$CFLAGS -qnocommon"
45716 CXXFLAGS="$CXXFLAGS -qnocommon"
45717 fi
45718 ;;
45719
45720 *-pc-os2_emx | *-pc-os2-emx )
45721 if test "x$bk_os2_use_omf" = "xyes" ; then
45722 AR=emxomfar
45723 RANLIB=:
45724 LDFLAGS="-Zomf $LDFLAGS"
45725 CFLAGS="-Zomf $CFLAGS"
45726 CXXFLAGS="-Zomf $CXXFLAGS"
45727 OS2_LIBEXT="lib"
45728 else
45729 OS2_LIBEXT="a"
45730 fi
45731 ;;
45732
45733 i*86-*-beos* )
45734 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
45735 ;;
45736 esac
45737
45738
45739 SO_SUFFIX="so"
45740 SO_SUFFIX_MODULE="so"
45741 EXEEXT=""
45742 LIBPREFIX="lib"
45743 LIBEXT=".a"
45744 DLLPREFIX="lib"
45745 DLLPREFIX_MODULE=""
45746 DLLIMP_SUFFIX=""
45747 dlldir="$libdir"
45748
45749 case "${BAKEFILE_HOST}" in
45750 *-hp-hpux* )
45751 SO_SUFFIX="sl"
45752 SO_SUFFIX_MODULE="sl"
45753 ;;
45754 *-*-aix* )
45755 SO_SUFFIX="a"
45756 SO_SUFFIX_MODULE="a"
45757 ;;
45758 *-*-cygwin* )
45759 SO_SUFFIX="dll"
45760 SO_SUFFIX_MODULE="dll"
45761 DLLIMP_SUFFIX="dll.a"
45762 EXEEXT=".exe"
45763 DLLPREFIX="cyg"
45764 dlldir="$bindir"
45765 ;;
45766 *-*-mingw32* )
45767 SO_SUFFIX="dll"
45768 SO_SUFFIX_MODULE="dll"
45769 DLLIMP_SUFFIX="dll.a"
45770 EXEEXT=".exe"
45771 DLLPREFIX=""
45772 dlldir="$bindir"
45773 ;;
45774 *-pc-msdosdjgpp )
45775 EXEEXT=".exe"
45776 DLLPREFIX=""
45777 dlldir="$bindir"
45778 ;;
45779 *-pc-os2_emx | *-pc-os2-emx )
45780 SO_SUFFIX="dll"
45781 SO_SUFFIX_MODULE="dll"
45782 DLLIMP_SUFFIX=$OS2_LIBEXT
45783 EXEEXT=".exe"
45784 DLLPREFIX=""
45785 LIBPREFIX=""
45786 LIBEXT=".$OS2_LIBEXT"
45787 dlldir="$bindir"
45788 ;;
45789 *-*-darwin* )
45790 SO_SUFFIX="dylib"
45791 SO_SUFFIX_MODULE="bundle"
45792 ;;
45793 esac
45794
45795 if test "x$DLLIMP_SUFFIX" = "x" ; then
45796 DLLIMP_SUFFIX="$SO_SUFFIX"
45797 fi
45798
45799
45800
45801
45802
45803
45804
45805
45806
45807
45808
45809
45810 PIC_FLAG=""
45811 if test "x$GCC" = "xyes"; then
45812 PIC_FLAG="-fPIC"
45813 fi
45814
45815 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
45816 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
45817 WINDOWS_IMPLIB=0
45818
45819 case "${BAKEFILE_HOST}" in
45820 *-hp-hpux* )
45821 if test "x$GCC" != "xyes"; then
45822 LDFLAGS="$LDFLAGS -L/usr/lib"
45823
45824 SHARED_LD_CC="${CC} -b -o"
45825 SHARED_LD_CXX="${CXX} -b -o"
45826 PIC_FLAG="+Z"
45827 fi
45828 ;;
45829
45830 *-*-linux* )
45831 if test "x$GCC" != "xyes"; then
45832 echo "$as_me:$LINENO: checking for Intel compiler" >&5
45833 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
45834 if test "${bakefile_cv_prog_icc+set}" = set; then
45835 echo $ECHO_N "(cached) $ECHO_C" >&6
45836 else
45837
45838 cat >conftest.$ac_ext <<_ACEOF
45839 /* confdefs.h. */
45840 _ACEOF
45841 cat confdefs.h >>conftest.$ac_ext
45842 cat >>conftest.$ac_ext <<_ACEOF
45843 /* end confdefs.h. */
45844
45845 int
45846 main ()
45847 {
45848
45849 #ifndef __INTEL_COMPILER
45850 This is not ICC
45851 #endif
45852
45853 ;
45854 return 0;
45855 }
45856 _ACEOF
45857 rm -f conftest.$ac_objext
45858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45859 (eval $ac_compile) 2>conftest.er1
45860 ac_status=$?
45861 grep -v '^ *+' conftest.er1 >conftest.err
45862 rm -f conftest.er1
45863 cat conftest.err >&5
45864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45865 (exit $ac_status); } &&
45866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45868 (eval $ac_try) 2>&5
45869 ac_status=$?
45870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45871 (exit $ac_status); }; } &&
45872 { ac_try='test -s conftest.$ac_objext'
45873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45874 (eval $ac_try) 2>&5
45875 ac_status=$?
45876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45877 (exit $ac_status); }; }; then
45878 bakefile_cv_prog_icc=yes
45879 else
45880 echo "$as_me: failed program was:" >&5
45881 sed 's/^/| /' conftest.$ac_ext >&5
45882
45883 bakefile_cv_prog_icc=no
45884
45885 fi
45886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45887
45888 fi
45889 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
45890 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
45891 if test "$bakefile_cv_prog_icc" = "yes"; then
45892 PIC_FLAG="-KPIC"
45893 fi
45894 fi
45895 ;;
45896
45897 *-*-solaris2* )
45898 if test "x$GCC" != xyes ; then
45899 SHARED_LD_CC="${CC} -G -o"
45900 SHARED_LD_CXX="${CXX} -G -o"
45901 PIC_FLAG="-KPIC"
45902 fi
45903 ;;
45904
45905 *-*-darwin* )
45906
45907 D='$'
45908 cat <<EOF >shared-ld-sh
45909 #!/bin/sh
45910 #-----------------------------------------------------------------------------
45911 #-- Name: distrib/mac/shared-ld-sh
45912 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
45913 #-- Author: Gilles Depeyrot
45914 #-- Copyright: (c) 2002 Gilles Depeyrot
45915 #-- Licence: any use permitted
45916 #-----------------------------------------------------------------------------
45917
45918 verbose=0
45919 args=""
45920 objects=""
45921 linking_flag="-dynamiclib"
45922 ldargs="-r -keep_private_externs -nostdlib"
45923
45924 while test ${D}# -gt 0; do
45925 case ${D}1 in
45926
45927 -v)
45928 verbose=1
45929 ;;
45930
45931 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
45932 # collect these options and values
45933 args="${D}{args} ${D}1 ${D}2"
45934 shift
45935 ;;
45936
45937 -s|-Wl,*)
45938 # collect these load args
45939 ldargs="${D}{ldargs} ${D}1"
45940 ;;
45941
45942 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
45943 # collect these options
45944 args="${D}{args} ${D}1"
45945 ;;
45946
45947 -dynamiclib|-bundle)
45948 linking_flag="${D}1"
45949 ;;
45950
45951 -*)
45952 echo "shared-ld: unhandled option '${D}1'"
45953 exit 1
45954 ;;
45955
45956 *.o | *.a | *.dylib)
45957 # collect object files
45958 objects="${D}{objects} ${D}1"
45959 ;;
45960
45961 *)
45962 echo "shared-ld: unhandled argument '${D}1'"
45963 exit 1
45964 ;;
45965
45966 esac
45967 shift
45968 done
45969
45970 status=0
45971
45972 #
45973 # Link one module containing all the others
45974 #
45975 if test ${D}{verbose} = 1; then
45976 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
45977 fi
45978 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
45979 status=${D}?
45980
45981 #
45982 # Link the shared library from the single module created, but only if the
45983 # previous command didn't fail:
45984 #
45985 if test ${D}{status} = 0; then
45986 if test ${D}{verbose} = 1; then
45987 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
45988 fi
45989 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
45990 status=${D}?
45991 fi
45992
45993 #
45994 # Remove intermediate module
45995 #
45996 rm -f master.${D}${D}.o
45997
45998 exit ${D}status
45999 EOF
46000
46001 chmod +x shared-ld-sh
46002
46003 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46004 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46005
46006
46007 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46008 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46009 if test "${bakefile_cv_gcc31+set}" = set; then
46010 echo $ECHO_N "(cached) $ECHO_C" >&6
46011 else
46012
46013 cat >conftest.$ac_ext <<_ACEOF
46014 /* confdefs.h. */
46015 _ACEOF
46016 cat confdefs.h >>conftest.$ac_ext
46017 cat >>conftest.$ac_ext <<_ACEOF
46018 /* end confdefs.h. */
46019
46020 int
46021 main ()
46022 {
46023
46024 #if (__GNUC__ < 3) || \
46025 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
46026 This is old gcc
46027 #endif
46028
46029 ;
46030 return 0;
46031 }
46032 _ACEOF
46033 rm -f conftest.$ac_objext
46034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46035 (eval $ac_compile) 2>conftest.er1
46036 ac_status=$?
46037 grep -v '^ *+' conftest.er1 >conftest.err
46038 rm -f conftest.er1
46039 cat conftest.err >&5
46040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46041 (exit $ac_status); } &&
46042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46044 (eval $ac_try) 2>&5
46045 ac_status=$?
46046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46047 (exit $ac_status); }; } &&
46048 { ac_try='test -s conftest.$ac_objext'
46049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46050 (eval $ac_try) 2>&5
46051 ac_status=$?
46052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46053 (exit $ac_status); }; }; then
46054
46055 bakefile_cv_gcc31=yes
46056
46057 else
46058 echo "$as_me: failed program was:" >&5
46059 sed 's/^/| /' conftest.$ac_ext >&5
46060
46061
46062 bakefile_cv_gcc31=no
46063
46064
46065 fi
46066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46067
46068 fi
46069 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46070 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46071 if test "$bakefile_cv_gcc31" = "no"; then
46072 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
46073 SHARED_LD_CXX="$SHARED_LD_CC"
46074 else
46075 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
46076 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
46077 fi
46078
46079 if test "x$GCC" == "xyes"; then
46080 PIC_FLAG="-dynamic -fPIC"
46081 fi
46082 if test "x$XLCC" = "xyes"; then
46083 PIC_FLAG="-dynamic -DPIC"
46084 fi
46085 ;;
46086
46087 *-*-aix* )
46088 if test "x$GCC" = "xyes"; then
46089 PIC_FLAG=""
46090
46091 case "${BAKEFILE_HOST}" in
46092 *-*-aix5* )
46093 LD_EXPFULL="-Wl,-bexpfull"
46094 ;;
46095 esac
46096
46097 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46098 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46099 else
46100 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
46101 set dummy makeC++SharedLib; ac_word=$2
46102 echo "$as_me:$LINENO: checking for $ac_word" >&5
46103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46104 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46105 echo $ECHO_N "(cached) $ECHO_C" >&6
46106 else
46107 if test -n "$AIX_CXX_LD"; then
46108 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46109 else
46110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46111 for as_dir in $PATH
46112 do
46113 IFS=$as_save_IFS
46114 test -z "$as_dir" && as_dir=.
46115 for ac_exec_ext in '' $ac_executable_extensions; do
46116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46117 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46119 break 2
46120 fi
46121 done
46122 done
46123
46124 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46125 fi
46126 fi
46127 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46128 if test -n "$AIX_CXX_LD"; then
46129 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46130 echo "${ECHO_T}$AIX_CXX_LD" >&6
46131 else
46132 echo "$as_me:$LINENO: result: no" >&5
46133 echo "${ECHO_T}no" >&6
46134 fi
46135
46136 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
46137 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46138 fi
46139 ;;
46140
46141 *-*-beos* )
46142 SHARED_LD_CC="${LD} -nostart -o"
46143 SHARED_LD_CXX="${LD} -nostart -o"
46144 ;;
46145
46146 *-*-irix* )
46147 if test "x$GCC" != "xyes"; then
46148 PIC_FLAG="-KPIC"
46149 fi
46150 ;;
46151
46152 *-*-cygwin* | *-*-mingw32* )
46153 PIC_FLAG=""
46154 SHARED_LD_CC="\$(CC) -shared -o"
46155 SHARED_LD_CXX="\$(CXX) -shared -o"
46156 WINDOWS_IMPLIB=1
46157 ;;
46158
46159 *-pc-os2_emx | *-pc-os2-emx )
46160 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46161 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46162 PIC_FLAG=""
46163
46164 D='$'
46165 cat <<EOF >dllar.sh
46166 #!/bin/sh
46167 #
46168 # dllar - a tool to build both a .dll and an .a file
46169 # from a set of object (.o) files for EMX/OS2.
46170 #
46171 # Written by Andrew Zabolotny, bit@freya.etu.ru
46172 # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46173 #
46174 # This script will accept a set of files on the command line.
46175 # All the public symbols from the .o files will be exported into
46176 # a .DEF file, then linker will be run (through gcc) against them to
46177 # build a shared library consisting of all given .o files. All libraries
46178 # (.a) will be first decompressed into component .o files then act as
46179 # described above. You can optionally give a description (-d "description")
46180 # which will be put into .DLL. To see the list of accepted options (as well
46181 # as command-line format) simply run this program without options. The .DLL
46182 # is built to be imported by name (there is no guarantee that new versions
46183 # of the library you build will have same ordinals for same symbols).
46184 #
46185 # dllar is free software; you can redistribute it and/or modify
46186 # it under the terms of the GNU General Public License as published by
46187 # the Free Software Foundation; either version 2, or (at your option)
46188 # any later version.
46189 #
46190 # dllar is distributed in the hope that it will be useful,
46191 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46192 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46193 # GNU General Public License for more details.
46194 #
46195 # You should have received a copy of the GNU General Public License
46196 # along with dllar; see the file COPYING. If not, write to the Free
46197 # Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46198 # 02111-1307, USA.
46199
46200 # To successfuly run this program you will need:
46201 # - Current drive should have LFN support (HPFS, ext2, network, etc)
46202 # (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46203 # - gcc
46204 # (used to build the .dll)
46205 # - emxexp
46206 # (used to create .def file from .o files)
46207 # - emximp
46208 # (used to create .a file from .def file)
46209 # - GNU text utilites (cat, sort, uniq)
46210 # used to process emxexp output
46211 # - GNU file utilities (mv, rm)
46212 # - GNU sed
46213 # - lxlite (optional, see flag below)
46214 # (used for general .dll cleanup)
46215 #
46216
46217 flag_USE_LXLITE=1;
46218
46219 #
46220 # helper functions
46221 # basnam, variant of basename, which does _not_ remove the path, _iff_
46222 # second argument (suffix to remove) is given
46223 basnam(){
46224 case ${D}# in
46225 1)
46226 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
46227 ;;
46228 2)
46229 echo ${D}1 | sed 's/'${D}2'${D}//'
46230 ;;
46231 *)
46232 echo "error in basnam ${D}*"
46233 exit 8
46234 ;;
46235 esac
46236 }
46237
46238 # Cleanup temporary files and output
46239 CleanUp() {
46240 cd ${D}curDir
46241 for i in ${D}inputFiles ; do
46242 case ${D}i in
46243 *!)
46244 rm -rf \`basnam ${D}i !\`
46245 ;;
46246 *)
46247 ;;
46248 esac
46249 done
46250
46251 # Kill result in case of failure as there is just to many stupid make/nmake
46252 # things out there which doesn't do this.
46253 if [ ${D}# -eq 0 ]; then
46254 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46255 fi
46256 }
46257
46258 # Print usage and exit script with rc=1.
46259 PrintHelp() {
46260 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46261 echo ' [-name-mangler-script script.sh]'
46262 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46263 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46264 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
46265 echo ' [*.o] [*.a]'
46266 echo '*> "output_file" should have no extension.'
46267 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46268 echo ' The import library name is derived from this and is set to "name".a,'
46269 echo ' unless overridden by -import'
46270 echo '*> "importlib_name" should have no extension.'
46271 echo ' If it has the .o, or .a extension, it is automatically removed.'
46272 echo ' This name is used as the import library name and may be longer and'
46273 echo ' more descriptive than the DLL name which has to follow the old '
46274 echo ' 8.3 convention of FAT.'
46275 echo '*> "script.sh may be given to override the output_file name by a'
46276 echo ' different name. It is mainly useful if the regular make process'
46277 echo ' of some package does not take into account OS/2 restriction of'
46278 echo ' DLL name lengths. It takes the importlib name as input and is'
46279 echo ' supposed to procude a shorter name as output. The script should'
46280 echo ' expect to get importlib_name without extension and should produce'
46281 echo ' a (max.) 8 letter name without extension.'
46282 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46283 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46284 echo ' These flags will be put at the start of GCC command line.'
46285 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46286 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
46287 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46288 echo ' If the last character of a symbol is "*", all symbols beginning'
46289 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
46290 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
46291 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
46292 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
46293 echo ' C runtime DLLs.'
46294 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
46295 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46296 echo ' unchanged to GCC at the end of command line.'
46297 echo '*> If you create a DLL from a library and you do not specify -o,'
46298 echo ' the basename for DLL and import library will be set to library name,'
46299 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46300 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46301 echo ' library will be renamed into gcc_s.a.'
46302 echo '--------'
46303 echo 'Example:'
46304 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46305 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46306 CleanUp
46307 exit 1
46308 }
46309
46310 # Execute a command.
46311 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46312 # @Uses Whatever CleanUp() uses.
46313 doCommand() {
46314 echo "${D}*"
46315 eval ${D}*
46316 rcCmd=${D}?
46317
46318 if [ ${D}rcCmd -ne 0 ]; then
46319 echo "command failed, exit code="${D}rcCmd
46320 CleanUp
46321 exit ${D}rcCmd
46322 fi
46323 }
46324
46325 # main routine
46326 # setup globals
46327 cmdLine=${D}*
46328 outFile=""
46329 outimpFile=""
46330 inputFiles=""
46331 renameScript=""
46332 description=""
46333 CC=gcc.exe
46334 CFLAGS="-s -Zcrtdll"
46335 EXTRA_CFLAGS=""
46336 EXPORT_BY_ORDINALS=0
46337 exclude_symbols=""
46338 library_flags=""
46339 curDir=\`pwd\`
46340 curDirS=curDir
46341 case ${D}curDirS in
46342 */)
46343 ;;
46344 *)
46345 curDirS=${D}{curDirS}"/"
46346 ;;
46347 esac
46348 # Parse commandline
46349 libsToLink=0
46350 omfLinking=0
46351 while [ ${D}1 ]; do
46352 case ${D}1 in
46353 -ord*)
46354 EXPORT_BY_ORDINALS=1;
46355 ;;
46356 -o*)
46357 shift
46358 outFile=${D}1
46359 ;;
46360 -i*)
46361 shift
46362 outimpFile=${D}1
46363 ;;
46364 -name-mangler-script)
46365 shift
46366 renameScript=${D}1
46367 ;;
46368 -d*)
46369 shift
46370 description=${D}1
46371 ;;
46372 -f*)
46373 shift
46374 CFLAGS=${D}1
46375 ;;
46376 -c*)
46377 shift
46378 CC=${D}1
46379 ;;
46380 -h*)
46381 PrintHelp
46382 ;;
46383 -ex*)
46384 shift
46385 exclude_symbols=${D}{exclude_symbols}${D}1" "
46386 ;;
46387 -libf*)
46388 shift
46389 library_flags=${D}{library_flags}${D}1" "
46390 ;;
46391 -nocrt*)
46392 CFLAGS="-s"
46393 ;;
46394 -nolxl*)
46395 flag_USE_LXLITE=0
46396 ;;
46397 -* | /*)
46398 case ${D}1 in
46399 -L* | -l*)
46400 libsToLink=1
46401 ;;
46402 -Zomf)
46403 omfLinking=1
46404 ;;
46405 *)
46406 ;;
46407 esac
46408 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46409 ;;
46410 *.dll)
46411 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46412 if [ ${D}omfLinking -eq 1 ]; then
46413 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46414 else
46415 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46416 fi
46417 ;;
46418 *)
46419 found=0;
46420 if [ ${D}libsToLink -ne 0 ]; then
46421 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46422 else
46423 for file in ${D}1 ; do
46424 if [ -f ${D}file ]; then
46425 inputFiles="${D}{inputFiles} ${D}file"
46426 found=1
46427 fi
46428 done
46429 if [ ${D}found -eq 0 ]; then
46430 echo "ERROR: No file(s) found: "${D}1
46431 exit 8
46432 fi
46433 fi
46434 ;;
46435 esac
46436 shift
46437 done # iterate cmdline words
46438
46439 #
46440 if [ -z "${D}inputFiles" ]; then
46441 echo "dllar: no input files"
46442 PrintHelp
46443 fi
46444
46445 # Now extract all .o files from .a files
46446 newInputFiles=""
46447 for file in ${D}inputFiles ; do
46448 case ${D}file in
46449 *.a | *.lib)
46450 case ${D}file in
46451 *.a)
46452 suffix=".a"
46453 AR="ar"
46454 ;;
46455 *.lib)
46456 suffix=".lib"
46457 AR="emxomfar"
46458 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46459 ;;
46460 *)
46461 ;;
46462 esac
46463 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46464 mkdir ${D}dirname
46465 if [ ${D}? -ne 0 ]; then
46466 echo "Failed to create subdirectory ./${D}dirname"
46467 CleanUp
46468 exit 8;
46469 fi
46470 # Append '!' to indicate archive
46471 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46472 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46473 cd ${D}curDir
46474 found=0;
46475 for subfile in ${D}dirname/*.o* ; do
46476 if [ -f ${D}subfile ]; then
46477 found=1
46478 if [ -s ${D}subfile ]; then
46479 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46480 newInputFiles="${D}newInputFiles ${D}subfile"
46481 fi
46482 fi
46483 done
46484 if [ ${D}found -eq 0 ]; then
46485 echo "WARNING: there are no files in archive \\'${D}file\\'"
46486 fi
46487 ;;
46488 *)
46489 newInputFiles="${D}{newInputFiles} ${D}file"
46490 ;;
46491 esac
46492 done
46493 inputFiles="${D}newInputFiles"
46494
46495 # Output filename(s).
46496 do_backup=0;
46497 if [ -z ${D}outFile ]; then
46498 do_backup=1;
46499 set outFile ${D}inputFiles; outFile=${D}2
46500 fi
46501
46502 # If it is an archive, remove the '!' and the '_%' suffixes
46503 case ${D}outFile in
46504 *_%!)
46505 outFile=\`basnam ${D}outFile _%!\`
46506 ;;
46507 *)
46508 ;;
46509 esac
46510 case ${D}outFile in
46511 *.dll)
46512 outFile=\`basnam ${D}outFile .dll\`
46513 ;;
46514 *.DLL)
46515 outFile=\`basnam ${D}outFile .DLL\`
46516 ;;
46517 *.o)
46518 outFile=\`basnam ${D}outFile .o\`
46519 ;;
46520 *.obj)
46521 outFile=\`basnam ${D}outFile .obj\`
46522 ;;
46523 *.a)
46524 outFile=\`basnam ${D}outFile .a\`
46525 ;;
46526 *.lib)
46527 outFile=\`basnam ${D}outFile .lib\`
46528 ;;
46529 *)
46530 ;;
46531 esac
46532 case ${D}outimpFile in
46533 *.a)
46534 outimpFile=\`basnam ${D}outimpFile .a\`
46535 ;;
46536 *.lib)
46537 outimpFile=\`basnam ${D}outimpFile .lib\`
46538 ;;
46539 *)
46540 ;;
46541 esac
46542 if [ -z ${D}outimpFile ]; then
46543 outimpFile=${D}outFile
46544 fi
46545 defFile="${D}{outFile}.def"
46546 arcFile="${D}{outimpFile}.a"
46547 arcFile2="${D}{outimpFile}.lib"
46548
46549 #create ${D}dllFile as something matching 8.3 restrictions,
46550 if [ -z ${D}renameScript ] ; then
46551 dllFile="${D}outFile"
46552 else
46553 dllFile=\`${D}renameScript ${D}outimpFile\`
46554 fi
46555
46556 if [ ${D}do_backup -ne 0 ] ; then
46557 if [ -f ${D}arcFile ] ; then
46558 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46559 fi
46560 if [ -f ${D}arcFile2 ] ; then
46561 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46562 fi
46563 fi
46564
46565 # Extract public symbols from all the object files.
46566 tmpdefFile=${D}{defFile}_%
46567 rm -f ${D}tmpdefFile
46568 for file in ${D}inputFiles ; do
46569 case ${D}file in
46570 *!)
46571 ;;
46572 *)
46573 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46574 ;;
46575 esac
46576 done
46577
46578 # Create the def file.
46579 rm -f ${D}defFile
46580 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
46581 dllFile="${D}{dllFile}.dll"
46582 if [ ! -z ${D}description ]; then
46583 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
46584 fi
46585 echo "EXPORTS" >> ${D}defFile
46586
46587 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46588 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46589
46590 # Checks if the export is ok or not.
46591 for word in ${D}exclude_symbols; do
46592 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46593 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46594 done
46595
46596
46597 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46598 sed "=" < ${D}tmpdefFile | \\
46599 sed '
46600 N
46601 : loop
46602 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
46603 t loop
46604 ' > ${D}{tmpdefFile}%
46605 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46606 else
46607 rm -f ${D}{tmpdefFile}%
46608 fi
46609 cat ${D}tmpdefFile >> ${D}defFile
46610 rm -f ${D}tmpdefFile
46611
46612 # Do linking, create implib, and apply lxlite.
46613 gccCmdl="";
46614 for file in ${D}inputFiles ; do
46615 case ${D}file in
46616 *!)
46617 ;;
46618 *)
46619 gccCmdl="${D}gccCmdl ${D}file"
46620 ;;
46621 esac
46622 done
46623 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46624 touch "${D}{outFile}.dll"
46625
46626 doCommand "emximp -o ${D}arcFile ${D}defFile"
46627 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
46628 add_flags="";
46629 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46630 add_flags="-ynd"
46631 fi
46632 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46633 fi
46634 doCommand "emxomf -s -l ${D}arcFile"
46635
46636 # Successful exit.
46637 CleanUp 1
46638 exit 0
46639 EOF
46640
46641 chmod +x dllar.sh
46642 ;;
46643
46644 powerpc-apple-macos* | \
46645 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
46646 *-*-sunos4* | \
46647 *-*-osf* | \
46648 *-*-dgux5* | \
46649 *-*-sysv5* | \
46650 *-pc-msdosdjgpp )
46651 ;;
46652
46653 *)
46654 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46655 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46656 { (exit 1); exit 1; }; }
46657 esac
46658
46659 if test "x$PIC_FLAG" != "x" ; then
46660 PIC_FLAG="$PIC_FLAG -DPIC"
46661 fi
46662
46663 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46664 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46665 fi
46666 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46667 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46668 fi
46669
46670
46671
46672
46673
46674
46675
46676
46677
46678 USE_SOVERSION=0
46679 USE_SOVERLINUX=0
46680 USE_SOVERSOLARIS=0
46681 USE_SOVERCYGWIN=0
46682 USE_SOSYMLINKS=0
46683 USE_MACVERSION=0
46684 SONAME_FLAG=
46685
46686 case "${BAKEFILE_HOST}" in
46687 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
46688 SONAME_FLAG="-Wl,-soname,"
46689 USE_SOVERSION=1
46690 USE_SOVERLINUX=1
46691 USE_SOSYMLINKS=1
46692 ;;
46693
46694 *-*-solaris2* )
46695 SONAME_FLAG="-h "
46696 USE_SOVERSION=1
46697 USE_SOVERSOLARIS=1
46698 USE_SOSYMLINKS=1
46699 ;;
46700
46701 *-*-darwin* )
46702 USE_MACVERSION=1
46703 USE_SOVERSION=1
46704 USE_SOSYMLINKS=1
46705 ;;
46706
46707 *-*-cygwin* )
46708 USE_SOVERSION=1
46709 USE_SOVERCYGWIN=1
46710 ;;
46711 esac
46712
46713
46714
46715
46716
46717
46718
46719
46720
46721
46722 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
46723 if test "${enable_dependency_tracking+set}" = set; then
46724 enableval="$enable_dependency_tracking"
46725 bk_use_trackdeps="$enableval"
46726 fi;
46727
46728 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
46729 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
46730
46731 if test "x$bk_use_trackdeps" = "xno" ; then
46732 DEPS_TRACKING=0
46733 echo "$as_me:$LINENO: result: disabled" >&5
46734 echo "${ECHO_T}disabled" >&6
46735 else
46736 DEPS_TRACKING=1
46737
46738 if test "x$GCC" = "xyes"; then
46739 DEPSMODE=gcc
46740 case "${BAKEFILE_HOST}" in
46741 *-*-darwin* )
46742 DEPSFLAG="-no-cpp-precomp -MMD"
46743 ;;
46744 * )
46745 DEPSFLAG="-MMD"
46746 ;;
46747 esac
46748 echo "$as_me:$LINENO: result: gcc" >&5
46749 echo "${ECHO_T}gcc" >&6
46750 elif test "x$MWCC" = "xyes"; then
46751 DEPSMODE=mwcc
46752 DEPSFLAG="-MM"
46753 echo "$as_me:$LINENO: result: mwcc" >&5
46754 echo "${ECHO_T}mwcc" >&6
46755 elif test "x$SUNCC" = "xyes"; then
46756 DEPSMODE=unixcc
46757 DEPSFLAG="-xM1"
46758 echo "$as_me:$LINENO: result: Sun cc" >&5
46759 echo "${ECHO_T}Sun cc" >&6
46760 elif test "x$SGICC" = "xyes"; then
46761 DEPSMODE=unixcc
46762 DEPSFLAG="-M"
46763 echo "$as_me:$LINENO: result: SGI cc" >&5
46764 echo "${ECHO_T}SGI cc" >&6
46765 elif test "x$HPCC" = "xyes"; then
46766 DEPSMODE=unixcc
46767 DEPSFLAG="+make"
46768 echo "$as_me:$LINENO: result: HP cc" >&5
46769 echo "${ECHO_T}HP cc" >&6
46770 elif test "x$COMPAQCC" = "xyes"; then
46771 DEPSMODE=gcc
46772 DEPSFLAG="-MD"
46773 echo "$as_me:$LINENO: result: Compaq cc" >&5
46774 echo "${ECHO_T}Compaq cc" >&6
46775 else
46776 DEPS_TRACKING=0
46777 echo "$as_me:$LINENO: result: none" >&5
46778 echo "${ECHO_T}none" >&6
46779 fi
46780
46781 if test $DEPS_TRACKING = 1 ; then
46782
46783 D='$'
46784 cat <<EOF >bk-deps
46785 #!/bin/sh
46786
46787 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
46788 # script. It is used to track C/C++ files dependencies in portable way.
46789 #
46790 # Permission is given to use this file in any way.
46791
46792 DEPSMODE=${DEPSMODE}
46793 DEPSDIR=.deps
46794 DEPSFLAG="${DEPSFLAG}"
46795
46796 mkdir -p ${D}DEPSDIR
46797
46798 if test ${D}DEPSMODE = gcc ; then
46799 ${D}* ${D}{DEPSFLAG}
46800 status=${D}?
46801 if test ${D}{status} != 0 ; then
46802 exit ${D}{status}
46803 fi
46804 # move created file to the location we want it in:
46805 while test ${D}# -gt 0; do
46806 case "${D}1" in
46807 -o )
46808 shift
46809 objfile=${D}1
46810 ;;
46811 -* )
46812 ;;
46813 * )
46814 srcfile=${D}1
46815 ;;
46816 esac
46817 shift
46818 done
46819 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
46820 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
46821 if test -f ${D}depfile ; then
46822 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46823 rm -f ${D}depfile
46824 else
46825 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
46826 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
46827 if test ! -f ${D}depfile ; then
46828 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
46829 depfile="${D}objfile.d"
46830 fi
46831 if test -f ${D}depfile ; then
46832 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46833 rm -f ${D}depfile
46834 fi
46835 fi
46836 exit 0
46837 elif test ${D}DEPSMODE = mwcc ; then
46838 ${D}* || exit ${D}?
46839 # Run mwcc again with -MM and redirect into the dep file we want
46840 # NOTE: We can't use shift here because we need ${D}* to be valid
46841 prevarg=
46842 for arg in ${D}* ; do
46843 if test "${D}prevarg" = "-o"; then
46844 objfile=${D}arg
46845 else
46846 case "${D}arg" in
46847 -* )
46848 ;;
46849 * )
46850 srcfile=${D}arg
46851 ;;
46852 esac
46853 fi
46854 prevarg="${D}arg"
46855 done
46856 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
46857 exit 0
46858 elif test ${D}DEPSMODE = unixcc; then
46859 ${D}* || exit ${D}?
46860 # Run compiler again with deps flag and redirect into the dep file.
46861 # It doesn't work if the '-o FILE' option is used, but without it the
46862 # dependency file will contain the wrong name for the object. So it is
46863 # removed from the command line, and the dep file is fixed with sed.
46864 cmd=""
46865 while test ${D}# -gt 0; do
46866 case "${D}1" in
46867 -o )
46868 shift
46869 objfile=${D}1
46870 ;;
46871 * )
46872 eval arg${D}#=\\${D}1
46873 cmd="${D}cmd \\${D}arg${D}#"
46874 ;;
46875 esac
46876 shift
46877 done
46878 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
46879 exit 0
46880 else
46881 ${D}*
46882 exit ${D}?
46883 fi
46884 EOF
46885
46886 chmod +x bk-deps
46887 fi
46888 fi
46889
46890
46891
46892
46893 case ${BAKEFILE_HOST} in
46894 *-*-cygwin* | *-*-mingw32* )
46895 if test -n "$ac_tool_prefix"; then
46896 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
46897 set dummy ${ac_tool_prefix}windres; ac_word=$2
46898 echo "$as_me:$LINENO: checking for $ac_word" >&5
46899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46900 if test "${ac_cv_prog_WINDRES+set}" = set; then
46901 echo $ECHO_N "(cached) $ECHO_C" >&6
46902 else
46903 if test -n "$WINDRES"; then
46904 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
46905 else
46906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46907 for as_dir in $PATH
46908 do
46909 IFS=$as_save_IFS
46910 test -z "$as_dir" && as_dir=.
46911 for ac_exec_ext in '' $ac_executable_extensions; do
46912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46913 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
46914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46915 break 2
46916 fi
46917 done
46918 done
46919
46920 fi
46921 fi
46922 WINDRES=$ac_cv_prog_WINDRES
46923 if test -n "$WINDRES"; then
46924 echo "$as_me:$LINENO: result: $WINDRES" >&5
46925 echo "${ECHO_T}$WINDRES" >&6
46926 else
46927 echo "$as_me:$LINENO: result: no" >&5
46928 echo "${ECHO_T}no" >&6
46929 fi
46930
46931 fi
46932 if test -z "$ac_cv_prog_WINDRES"; then
46933 ac_ct_WINDRES=$WINDRES
46934 # Extract the first word of "windres", so it can be a program name with args.
46935 set dummy windres; ac_word=$2
46936 echo "$as_me:$LINENO: checking for $ac_word" >&5
46937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46938 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
46939 echo $ECHO_N "(cached) $ECHO_C" >&6
46940 else
46941 if test -n "$ac_ct_WINDRES"; then
46942 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
46943 else
46944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46945 for as_dir in $PATH
46946 do
46947 IFS=$as_save_IFS
46948 test -z "$as_dir" && as_dir=.
46949 for ac_exec_ext in '' $ac_executable_extensions; do
46950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46951 ac_cv_prog_ac_ct_WINDRES="windres"
46952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46953 break 2
46954 fi
46955 done
46956 done
46957
46958 fi
46959 fi
46960 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
46961 if test -n "$ac_ct_WINDRES"; then
46962 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
46963 echo "${ECHO_T}$ac_ct_WINDRES" >&6
46964 else
46965 echo "$as_me:$LINENO: result: no" >&5
46966 echo "${ECHO_T}no" >&6
46967 fi
46968
46969 WINDRES=$ac_ct_WINDRES
46970 else
46971 WINDRES="$ac_cv_prog_WINDRES"
46972 fi
46973
46974 ;;
46975
46976 *-*-darwin* | powerpc-apple-macos* )
46977 # Extract the first word of "Rez", so it can be a program name with args.
46978 set dummy Rez; ac_word=$2
46979 echo "$as_me:$LINENO: checking for $ac_word" >&5
46980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46981 if test "${ac_cv_prog_REZ+set}" = set; then
46982 echo $ECHO_N "(cached) $ECHO_C" >&6
46983 else
46984 if test -n "$REZ"; then
46985 ac_cv_prog_REZ="$REZ" # Let the user override the test.
46986 else
46987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46988 for as_dir in $PATH
46989 do
46990 IFS=$as_save_IFS
46991 test -z "$as_dir" && as_dir=.
46992 for ac_exec_ext in '' $ac_executable_extensions; do
46993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46994 ac_cv_prog_REZ="Rez"
46995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46996 break 2
46997 fi
46998 done
46999 done
47000
47001 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
47002 fi
47003 fi
47004 REZ=$ac_cv_prog_REZ
47005 if test -n "$REZ"; then
47006 echo "$as_me:$LINENO: result: $REZ" >&5
47007 echo "${ECHO_T}$REZ" >&6
47008 else
47009 echo "$as_me:$LINENO: result: no" >&5
47010 echo "${ECHO_T}no" >&6
47011 fi
47012
47013 # Extract the first word of "SetFile", so it can be a program name with args.
47014 set dummy SetFile; ac_word=$2
47015 echo "$as_me:$LINENO: checking for $ac_word" >&5
47016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47017 if test "${ac_cv_prog_SETFILE+set}" = set; then
47018 echo $ECHO_N "(cached) $ECHO_C" >&6
47019 else
47020 if test -n "$SETFILE"; then
47021 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47022 else
47023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47024 for as_dir in $PATH
47025 do
47026 IFS=$as_save_IFS
47027 test -z "$as_dir" && as_dir=.
47028 for ac_exec_ext in '' $ac_executable_extensions; do
47029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47030 ac_cv_prog_SETFILE="SetFile"
47031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47032 break 2
47033 fi
47034 done
47035 done
47036
47037 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47038 fi
47039 fi
47040 SETFILE=$ac_cv_prog_SETFILE
47041 if test -n "$SETFILE"; then
47042 echo "$as_me:$LINENO: result: $SETFILE" >&5
47043 echo "${ECHO_T}$SETFILE" >&6
47044 else
47045 echo "$as_me:$LINENO: result: no" >&5
47046 echo "${ECHO_T}no" >&6
47047 fi
47048
47049 ;;
47050 esac
47051
47052
47053
47054
47055
47056
47057 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
47058
47059
47060 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
47061
47062
47063
47064 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47065 if test "${enable_precomp_headers+set}" = set; then
47066 enableval="$enable_precomp_headers"
47067 bk_use_pch="$enableval"
47068 fi;
47069
47070 GCC_PCH=0
47071 ICC_PCH=0
47072 USE_PCH=0
47073
47074 case ${BAKEFILE_HOST} in
47075 *-*-cygwin* )
47076 bk_use_pch="no"
47077 ;;
47078 esac
47079
47080 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47081 if test "x$GCC" = "xyes"; then
47082 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47083 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47084 cat >conftest.$ac_ext <<_ACEOF
47085 /* confdefs.h. */
47086 _ACEOF
47087 cat confdefs.h >>conftest.$ac_ext
47088 cat >>conftest.$ac_ext <<_ACEOF
47089 /* end confdefs.h. */
47090
47091 int
47092 main ()
47093 {
47094
47095 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
47096 There is no PCH support
47097 #endif
47098 #if (__GNUC__ < 3)
47099 There is no PCH support
47100 #endif
47101 #if (__GNUC__ == 3) && \
47102 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
47103 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47104 ( defined(__INTEL_COMPILER) )
47105 There is no PCH support
47106 #endif
47107
47108 ;
47109 return 0;
47110 }
47111 _ACEOF
47112 rm -f conftest.$ac_objext
47113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47114 (eval $ac_compile) 2>conftest.er1
47115 ac_status=$?
47116 grep -v '^ *+' conftest.er1 >conftest.err
47117 rm -f conftest.er1
47118 cat conftest.err >&5
47119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47120 (exit $ac_status); } &&
47121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47123 (eval $ac_try) 2>&5
47124 ac_status=$?
47125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47126 (exit $ac_status); }; } &&
47127 { ac_try='test -s conftest.$ac_objext'
47128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47129 (eval $ac_try) 2>&5
47130 ac_status=$?
47131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47132 (exit $ac_status); }; }; then
47133
47134 echo "$as_me:$LINENO: result: yes" >&5
47135 echo "${ECHO_T}yes" >&6
47136 GCC_PCH=1
47137
47138 else
47139 echo "$as_me: failed program was:" >&5
47140 sed 's/^/| /' conftest.$ac_ext >&5
47141
47142
47143 cat >conftest.$ac_ext <<_ACEOF
47144 /* confdefs.h. */
47145 _ACEOF
47146 cat confdefs.h >>conftest.$ac_ext
47147 cat >>conftest.$ac_ext <<_ACEOF
47148 /* end confdefs.h. */
47149
47150 int
47151 main ()
47152 {
47153
47154 #if !defined(__INTEL_COMPILER) || \
47155 (__INTEL_COMPILER < 800)
47156 There is no PCH support
47157 #endif
47158
47159 ;
47160 return 0;
47161 }
47162 _ACEOF
47163 rm -f conftest.$ac_objext
47164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47165 (eval $ac_compile) 2>conftest.er1
47166 ac_status=$?
47167 grep -v '^ *+' conftest.er1 >conftest.err
47168 rm -f conftest.er1
47169 cat conftest.err >&5
47170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47171 (exit $ac_status); } &&
47172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47174 (eval $ac_try) 2>&5
47175 ac_status=$?
47176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47177 (exit $ac_status); }; } &&
47178 { ac_try='test -s conftest.$ac_objext'
47179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47180 (eval $ac_try) 2>&5
47181 ac_status=$?
47182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47183 (exit $ac_status); }; }; then
47184
47185 echo "$as_me:$LINENO: result: yes" >&5
47186 echo "${ECHO_T}yes" >&6
47187 ICC_PCH=1
47188
47189 else
47190 echo "$as_me: failed program was:" >&5
47191 sed 's/^/| /' conftest.$ac_ext >&5
47192
47193
47194 echo "$as_me:$LINENO: result: no" >&5
47195 echo "${ECHO_T}no" >&6
47196
47197 fi
47198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47199
47200 fi
47201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47202 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47203 USE_PCH=1
47204
47205 D='$'
47206 cat <<EOF >bk-make-pch
47207 #!/bin/sh
47208
47209 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47210 # script. It is used to generated precompiled headers.
47211 #
47212 # Permission is given to use this file in any way.
47213
47214 outfile="${D}{1}"
47215 header="${D}{2}"
47216 shift
47217 shift
47218
47219 compiler=""
47220 headerfile=""
47221
47222 while test ${D}{#} -gt 0; do
47223 add_to_cmdline=1
47224 case "${D}{1}" in
47225 -I* )
47226 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47227 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47228 headerfile="${D}{incdir}/${D}{header}"
47229 fi
47230 ;;
47231 -use-pch|-use_pch )
47232 shift
47233 add_to_cmdline=0
47234 ;;
47235 esac
47236 if test ${D}add_to_cmdline = 1 ; then
47237 compiler="${D}{compiler} ${D}{1}"
47238 fi
47239 shift
47240 done
47241
47242 if test "x${D}{headerfile}" = "x" ; then
47243 echo "error: can't find header ${D}{header} in include paths" >&2
47244 else
47245 if test -f ${D}{outfile} ; then
47246 rm -f ${D}{outfile}
47247 else
47248 mkdir -p \`dirname ${D}{outfile}\`
47249 fi
47250 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
47251 mkdir -p .deps
47252 if test "x${GCC_PCH}" = "x1" ; then
47253 # can do this because gcc is >= 3.4:
47254 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47255 elif test "x${ICC_PCH}" = "x1" ; then
47256 filename=pch_gen-${D}${D}
47257 file=${D}{filename}.c
47258 dfile=${D}{filename}.d
47259 cat > ${D}file <<EOT
47260 #include "${D}header"
47261 EOT
47262 # using -MF icc complains about differing command lines in creation/use
47263 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47264 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47265 rm -f ${D}file ${D}dfile ${D}{filename}.o
47266 fi
47267 exit ${D}{?}
47268 fi
47269 EOF
47270
47271 chmod +x bk-make-pch
47272 fi
47273 fi
47274 fi
47275
47276
47277
47278
47279 COND_BUILD_DEBUG="#"
47280 if test "x$BUILD" = "xdebug" ; then
47281 COND_BUILD_DEBUG=""
47282 fi
47283
47284 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47285 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47286 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47287 fi
47288
47289 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47290 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47291 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47292 fi
47293
47294 COND_BUILD_DEBUG_UNICODE_0="#"
47295 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47296 COND_BUILD_DEBUG_UNICODE_0=""
47297 fi
47298
47299 COND_BUILD_DEBUG_UNICODE_1="#"
47300 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47301 COND_BUILD_DEBUG_UNICODE_1=""
47302 fi
47303
47304 COND_BUILD_RELEASE="#"
47305 if test "x$BUILD" = "xrelease" ; then
47306 COND_BUILD_RELEASE=""
47307 fi
47308
47309 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47310 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47311 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47312 fi
47313
47314 COND_BUILD_RELEASE_UNICODE_0="#"
47315 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47316 COND_BUILD_RELEASE_UNICODE_0=""
47317 fi
47318
47319 COND_BUILD_RELEASE_UNICODE_1="#"
47320 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47321 COND_BUILD_RELEASE_UNICODE_1=""
47322 fi
47323
47324 COND_DEBUG_FLAG_1="#"
47325 if test "x$DEBUG_FLAG" = "x1" ; then
47326 COND_DEBUG_FLAG_1=""
47327 fi
47328
47329 COND_DEBUG_INFO_0="#"
47330 if test "x$DEBUG_INFO" = "x0" ; then
47331 COND_DEBUG_INFO_0=""
47332 fi
47333
47334 COND_DEBUG_INFO_1="#"
47335 if test "x$DEBUG_INFO" = "x1" ; then
47336 COND_DEBUG_INFO_1=""
47337 fi
47338
47339 COND_DEPS_TRACKING_0="#"
47340 if test "x$DEPS_TRACKING" = "x0" ; then
47341 COND_DEPS_TRACKING_0=""
47342 fi
47343
47344 COND_DEPS_TRACKING_1="#"
47345 if test "x$DEPS_TRACKING" = "x1" ; then
47346 COND_DEPS_TRACKING_1=""
47347 fi
47348
47349 COND_GCC_PCH_1="#"
47350 if test "x$GCC_PCH" = "x1" ; then
47351 COND_GCC_PCH_1=""
47352 fi
47353
47354 COND_ICC_PCH_1="#"
47355 if test "x$ICC_PCH" = "x1" ; then
47356 COND_ICC_PCH_1=""
47357 fi
47358
47359 COND_MONOLITHIC_0="#"
47360 if test "x$MONOLITHIC" = "x0" ; then
47361 COND_MONOLITHIC_0=""
47362 fi
47363
47364 COND_MONOLITHIC_0_SHARED_0="#"
47365 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47366 COND_MONOLITHIC_0_SHARED_0=""
47367 fi
47368
47369 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47370 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47371 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47372 fi
47373
47374 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47375 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47376 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47377 fi
47378
47379 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47380 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47381 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47382 fi
47383
47384 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47385 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47386 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47387 fi
47388
47389 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47390 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47391 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47392 fi
47393
47394 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47395 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47396 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47397 fi
47398
47399 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47400 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47401 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47402 fi
47403
47404 COND_MONOLITHIC_0_SHARED_1="#"
47405 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47406 COND_MONOLITHIC_0_SHARED_1=""
47407 fi
47408
47409 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47410 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47411 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47412 fi
47413
47414 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47415 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47416 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47417 fi
47418
47419 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
47420 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47421 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
47422 fi
47423
47424 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47425 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47426 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47427 fi
47428
47429 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47430 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47431 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47432 fi
47433
47434 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47435 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47436 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47437 fi
47438
47439 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47440 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47441 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47442 fi
47443
47444 COND_MONOLITHIC_0_USE_MEDIA_1="#"
47445 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
47446 COND_MONOLITHIC_0_USE_MEDIA_1=""
47447 fi
47448
47449 COND_MONOLITHIC_0_USE_ODBC_1="#"
47450 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47451 COND_MONOLITHIC_0_USE_ODBC_1=""
47452 fi
47453
47454 COND_MONOLITHIC_1="#"
47455 if test "x$MONOLITHIC" = "x1" ; then
47456 COND_MONOLITHIC_1=""
47457 fi
47458
47459 COND_MONOLITHIC_1_SHARED_0="#"
47460 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47461 COND_MONOLITHIC_1_SHARED_0=""
47462 fi
47463
47464 COND_MONOLITHIC_1_SHARED_1="#"
47465 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47466 COND_MONOLITHIC_1_SHARED_1=""
47467 fi
47468
47469 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47470 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47471 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47472 fi
47473
47474 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47475 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47476 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47477 fi
47478
47479 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47480 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47481 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47482 fi
47483
47484 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47485 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47486 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47487 fi
47488
47489 COND_PLATFORM_MACOSX_1="#"
47490 if test "x$PLATFORM_MACOSX" = "x1" ; then
47491 COND_PLATFORM_MACOSX_1=""
47492 fi
47493
47494 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47495 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47496 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47497 fi
47498
47499 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47500 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47501 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47502 fi
47503
47504 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47505 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47506 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47507 fi
47508
47509 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47510 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47511 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47512 fi
47513
47514 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47515 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47516 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47517 fi
47518
47519 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47520 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47521 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47522 fi
47523
47524 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47525 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47526 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47527 fi
47528
47529 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47530 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47531 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47532 fi
47533
47534 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47535 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47536 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47537 fi
47538
47539 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47540 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47541 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47542 fi
47543
47544 COND_PLATFORM_MACOS_1="#"
47545 if test "x$PLATFORM_MACOS" = "x1" ; then
47546 COND_PLATFORM_MACOS_1=""
47547 fi
47548
47549 COND_PLATFORM_MAC_1="#"
47550 if test "x$PLATFORM_MAC" = "x1" ; then
47551 COND_PLATFORM_MAC_1=""
47552 fi
47553
47554 COND_PLATFORM_MSDOS_0="#"
47555 if test "x$PLATFORM_MSDOS" = "x0" ; then
47556 COND_PLATFORM_MSDOS_0=""
47557 fi
47558
47559 COND_PLATFORM_MSDOS_1="#"
47560 if test "x$PLATFORM_MSDOS" = "x1" ; then
47561 COND_PLATFORM_MSDOS_1=""
47562 fi
47563
47564 COND_PLATFORM_OS2_1="#"
47565 if test "x$PLATFORM_OS2" = "x1" ; then
47566 COND_PLATFORM_OS2_1=""
47567 fi
47568
47569 COND_PLATFORM_UNIX_0="#"
47570 if test "x$PLATFORM_UNIX" = "x0" ; then
47571 COND_PLATFORM_UNIX_0=""
47572 fi
47573
47574 COND_PLATFORM_UNIX_1="#"
47575 if test "x$PLATFORM_UNIX" = "x1" ; then
47576 COND_PLATFORM_UNIX_1=""
47577 fi
47578
47579 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47580 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47581 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47582 fi
47583
47584 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47585 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47586 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47587 fi
47588
47589 COND_PLATFORM_WIN32_0="#"
47590 if test "x$PLATFORM_WIN32" = "x0" ; then
47591 COND_PLATFORM_WIN32_0=""
47592 fi
47593
47594 COND_PLATFORM_WIN32_1="#"
47595 if test "x$PLATFORM_WIN32" = "x1" ; then
47596 COND_PLATFORM_WIN32_1=""
47597 fi
47598
47599 COND_SHARED_0="#"
47600 if test "x$SHARED" = "x0" ; then
47601 COND_SHARED_0=""
47602 fi
47603
47604 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47605 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47606 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47607 fi
47608
47609 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47610 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47611 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47612 fi
47613
47614 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47615 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47616 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47617 fi
47618
47619 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47620 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47621 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47622 fi
47623
47624 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47625 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47626 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47627 fi
47628
47629 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47630 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47631 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47632 fi
47633
47634 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47635 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47636 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47637 fi
47638
47639 COND_SHARED_0_USE_XRC_1="#"
47640 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47641 COND_SHARED_0_USE_XRC_1=""
47642 fi
47643
47644 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47645 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47646 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47647 fi
47648
47649 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47650 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47651 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47652 fi
47653
47654 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47655 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47656 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47657 fi
47658
47659 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47660 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47661 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47662 fi
47663
47664 COND_SHARED_1="#"
47665 if test "x$SHARED" = "x1" ; then
47666 COND_SHARED_1=""
47667 fi
47668
47669 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47670 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47671 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47672 fi
47673
47674 COND_SHARED_1_USE_XRC_1="#"
47675 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47676 COND_SHARED_1_USE_XRC_1=""
47677 fi
47678
47679 COND_TOOLKIT_="#"
47680 if test "x$TOOLKIT" = "x" ; then
47681 COND_TOOLKIT_=""
47682 fi
47683
47684 COND_TOOLKIT_COCOA="#"
47685 if test "x$TOOLKIT" = "xCOCOA" ; then
47686 COND_TOOLKIT_COCOA=""
47687 fi
47688
47689 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47690 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47691 COND_TOOLKIT_COCOA_USE_GUI_1=""
47692 fi
47693
47694 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47695 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47696 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47697 fi
47698
47699 COND_TOOLKIT_GTK="#"
47700 if test "x$TOOLKIT" = "xGTK" ; then
47701 COND_TOOLKIT_GTK=""
47702 fi
47703
47704 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
47705 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
47706 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
47707 fi
47708
47709 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
47710 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
47711 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
47712 fi
47713
47714 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
47715 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
47716 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
47717 fi
47718
47719 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
47720 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47721 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
47722 fi
47723
47724 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
47725 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
47726 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
47727 fi
47728
47729 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
47730 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47731 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
47732 fi
47733
47734 COND_TOOLKIT_GTK_USE_GUI_1="#"
47735 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
47736 COND_TOOLKIT_GTK_USE_GUI_1=""
47737 fi
47738
47739 COND_TOOLKIT_MAC="#"
47740 if test "x$TOOLKIT" = "xMAC" ; then
47741 COND_TOOLKIT_MAC=""
47742 fi
47743
47744 COND_TOOLKIT_MAC_USE_GUI_1="#"
47745 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47746 COND_TOOLKIT_MAC_USE_GUI_1=""
47747 fi
47748
47749 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47750 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47751 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47752 fi
47753
47754 COND_TOOLKIT_MGL="#"
47755 if test "x$TOOLKIT" = "xMGL" ; then
47756 COND_TOOLKIT_MGL=""
47757 fi
47758
47759 COND_TOOLKIT_MGL_USE_GUI_1="#"
47760 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
47761 COND_TOOLKIT_MGL_USE_GUI_1=""
47762 fi
47763
47764 COND_TOOLKIT_MOTIF="#"
47765 if test "x$TOOLKIT" = "xMOTIF" ; then
47766 COND_TOOLKIT_MOTIF=""
47767 fi
47768
47769 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
47770 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
47771 COND_TOOLKIT_MOTIF_USE_GUI_1=""
47772 fi
47773
47774 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
47775 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47776 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
47777 fi
47778
47779 COND_TOOLKIT_MSW="#"
47780 if test "x$TOOLKIT" = "xMSW" ; then
47781 COND_TOOLKIT_MSW=""
47782 fi
47783
47784 COND_TOOLKIT_MSW_USE_GUI_1="#"
47785 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
47786 COND_TOOLKIT_MSW_USE_GUI_1=""
47787 fi
47788
47789 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
47790 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47791 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
47792 fi
47793
47794 COND_TOOLKIT_MSW_WXUNIV_0="#"
47795 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47796 COND_TOOLKIT_MSW_WXUNIV_0=""
47797 fi
47798
47799 COND_TOOLKIT_PM="#"
47800 if test "x$TOOLKIT" = "xPM" ; then
47801 COND_TOOLKIT_PM=""
47802 fi
47803
47804 COND_TOOLKIT_PM_USE_GUI_1="#"
47805 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
47806 COND_TOOLKIT_PM_USE_GUI_1=""
47807 fi
47808
47809 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
47810 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47811 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
47812 fi
47813
47814 COND_TOOLKIT_WINCE="#"
47815 if test "x$TOOLKIT" = "xWINCE" ; then
47816 COND_TOOLKIT_WINCE=""
47817 fi
47818
47819 COND_TOOLKIT_WINCE_USE_GUI_1="#"
47820 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
47821 COND_TOOLKIT_WINCE_USE_GUI_1=""
47822 fi
47823
47824 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
47825 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47826 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
47827 fi
47828
47829 COND_TOOLKIT_WINCE_WXUNIV_0="#"
47830 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
47831 COND_TOOLKIT_WINCE_WXUNIV_0=""
47832 fi
47833
47834 COND_TOOLKIT_X11="#"
47835 if test "x$TOOLKIT" = "xX11" ; then
47836 COND_TOOLKIT_X11=""
47837 fi
47838
47839 COND_TOOLKIT_X11_USE_GUI_1="#"
47840 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
47841 COND_TOOLKIT_X11_USE_GUI_1=""
47842 fi
47843
47844 COND_UNICODE_1="#"
47845 if test "x$UNICODE" = "x1" ; then
47846 COND_UNICODE_1=""
47847 fi
47848
47849 COND_USE_EXCEPTIONS_0="#"
47850 if test "x$USE_EXCEPTIONS" = "x0" ; then
47851 COND_USE_EXCEPTIONS_0=""
47852 fi
47853
47854 COND_USE_EXCEPTIONS_1="#"
47855 if test "x$USE_EXCEPTIONS" = "x1" ; then
47856 COND_USE_EXCEPTIONS_1=""
47857 fi
47858
47859 COND_USE_GUI_0="#"
47860 if test "x$USE_GUI" = "x0" ; then
47861 COND_USE_GUI_0=""
47862 fi
47863
47864 COND_USE_GUI_1="#"
47865 if test "x$USE_GUI" = "x1" ; then
47866 COND_USE_GUI_1=""
47867 fi
47868
47869 COND_USE_GUI_1_WXUNIV_0="#"
47870 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47871 COND_USE_GUI_1_WXUNIV_0=""
47872 fi
47873
47874 COND_USE_GUI_1_WXUNIV_1="#"
47875 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
47876 COND_USE_GUI_1_WXUNIV_1=""
47877 fi
47878
47879 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47880 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47881 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47882 fi
47883
47884 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47885 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47886 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47887 fi
47888
47889 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47890 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47891 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47892 fi
47893
47894 COND_USE_ODBC_1="#"
47895 if test "x$USE_ODBC" = "x1" ; then
47896 COND_USE_ODBC_1=""
47897 fi
47898
47899 COND_USE_OPENGL_1="#"
47900 if test "x$USE_OPENGL" = "x1" ; then
47901 COND_USE_OPENGL_1=""
47902 fi
47903
47904 COND_USE_PCH_1="#"
47905 if test "x$USE_PCH" = "x1" ; then
47906 COND_USE_PCH_1=""
47907 fi
47908
47909 COND_USE_PLUGINS_0="#"
47910 if test "x$USE_PLUGINS" = "x0" ; then
47911 COND_USE_PLUGINS_0=""
47912 fi
47913
47914 COND_USE_RTTI_0="#"
47915 if test "x$USE_RTTI" = "x0" ; then
47916 COND_USE_RTTI_0=""
47917 fi
47918
47919 COND_USE_RTTI_1="#"
47920 if test "x$USE_RTTI" = "x1" ; then
47921 COND_USE_RTTI_1=""
47922 fi
47923
47924 COND_USE_SOSYMLINKS_1="#"
47925 if test "x$USE_SOSYMLINKS" = "x1" ; then
47926 COND_USE_SOSYMLINKS_1=""
47927 fi
47928
47929 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
47930 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47931 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
47932 fi
47933
47934 COND_USE_SOVERLINUX_1="#"
47935 if test "x$USE_SOVERLINUX" = "x1" ; then
47936 COND_USE_SOVERLINUX_1=""
47937 fi
47938
47939 COND_USE_SOVERSION_0="#"
47940 if test "x$USE_SOVERSION" = "x0" ; then
47941 COND_USE_SOVERSION_0=""
47942 fi
47943
47944 COND_USE_SOVERSOLARIS_1="#"
47945 if test "x$USE_SOVERSOLARIS" = "x1" ; then
47946 COND_USE_SOVERSOLARIS_1=""
47947 fi
47948
47949 COND_USE_THREADS_0="#"
47950 if test "x$USE_THREADS" = "x0" ; then
47951 COND_USE_THREADS_0=""
47952 fi
47953
47954 COND_USE_THREADS_1="#"
47955 if test "x$USE_THREADS" = "x1" ; then
47956 COND_USE_THREADS_1=""
47957 fi
47958
47959 COND_USE_XRC_1="#"
47960 if test "x$USE_XRC" = "x1" ; then
47961 COND_USE_XRC_1=""
47962 fi
47963
47964 COND_WINDOWS_IMPLIB_1="#"
47965 if test "x$WINDOWS_IMPLIB" = "x1" ; then
47966 COND_WINDOWS_IMPLIB_1=""
47967 fi
47968
47969 COND_WITH_PLUGIN_SDL_1="#"
47970 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
47971 COND_WITH_PLUGIN_SDL_1=""
47972 fi
47973
47974 COND_WXUNIV_0="#"
47975 if test "x$WXUNIV" = "x0" ; then
47976 COND_WXUNIV_0=""
47977 fi
47978
47979 COND_WXUNIV_1="#"
47980 if test "x$WXUNIV" = "x1" ; then
47981 COND_WXUNIV_1=""
47982 fi
47983
47984 COND_WXUSE_EXPAT_BUILTIN="#"
47985 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
47986 COND_WXUSE_EXPAT_BUILTIN=""
47987 fi
47988
47989 COND_WXUSE_LIBJPEG_BUILTIN="#"
47990 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47991 COND_WXUSE_LIBJPEG_BUILTIN=""
47992 fi
47993
47994 COND_WXUSE_LIBPNG_BUILTIN="#"
47995 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47996 COND_WXUSE_LIBPNG_BUILTIN=""
47997 fi
47998
47999 COND_WXUSE_LIBTIFF_BUILTIN="#"
48000 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48001 COND_WXUSE_LIBTIFF_BUILTIN=""
48002 fi
48003
48004 COND_WXUSE_ODBC_BUILTIN="#"
48005 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48006 COND_WXUSE_ODBC_BUILTIN=""
48007 fi
48008
48009 COND_WXUSE_REGEX_BUILTIN="#"
48010 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48011 COND_WXUSE_REGEX_BUILTIN=""
48012 fi
48013
48014 COND_WXUSE_ZLIB_BUILTIN="#"
48015 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48016 COND_WXUSE_ZLIB_BUILTIN=""
48017 fi
48018
48019
48020
48021 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48022 { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
48023 echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
48024 { (exit 1); exit 1; }; }
48025 fi
48026
48027 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48028 { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5
48029 echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;}
48030 { (exit 1); exit 1; }; }
48031 fi
48032
48033
48034
48035 if test "$wxUSE_MAC" = 1 ; then
48036 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
48037 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48038 mv temp bk-deps
48039 chmod +x bk-deps
48040 fi
48041 fi
48042
48043 if test "$wxUSE_SHARED" = "yes"; then
48044
48045 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48046 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48047
48048 case "${host}" in
48049 *-pc-os2_emx | *-pc-os2-emx )
48050 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48051 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48052 cp -p ${srcdir}/src/os2/dllnames.sh .
48053 cp -p ${srcdir}/src/os2/dllar.sh .
48054 ;;
48055 esac
48056 else
48057
48058 EXE_LINKER="$CXX -o"
48059
48060 fi
48061 if test "$wxUSE_OMF" = "yes"; then
48062 case "${host}" in
48063 *-pc-os2_emx | *-pc-os2-emx )
48064 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48065 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48066 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48067 ;;
48068 esac
48069 fi
48070
48071 if test $GCC_PCH = 1 ; then
48072 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
48073 fi
48074
48075 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
48076
48077 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48078
48079
48080
48081
48082
48083
48084
48085
48086
48087
48088
48089
48090
48091
48092
48093
48094
48095
48096
48097
48098
48099
48100
48101
48102
48103
48104
48105
48106
48107
48108
48109
48110
48111
48112
48113
48114
48115
48116
48117
48118
48119
48120
48121
48122
48123
48124
48125
48126
48127
48128
48129
48130
48131
48132
48133
48134
48135
48136
48137
48138
48139 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48140 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
48141 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
48142 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48143 echo $ECHO_N "(cached) $ECHO_C" >&6
48144 else
48145 cat >conftest.make <<\_ACEOF
48146 all:
48147 @echo 'ac_maketemp="$(MAKE)"'
48148 _ACEOF
48149 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48150 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48151 if test -n "$ac_maketemp"; then
48152 eval ac_cv_prog_make_${ac_make}_set=yes
48153 else
48154 eval ac_cv_prog_make_${ac_make}_set=no
48155 fi
48156 rm -f conftest.make
48157 fi
48158 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48159 echo "$as_me:$LINENO: result: yes" >&5
48160 echo "${ECHO_T}yes" >&6
48161 SET_MAKE=
48162 else
48163 echo "$as_me:$LINENO: result: no" >&5
48164 echo "${ECHO_T}no" >&6
48165 SET_MAKE="MAKE=${MAKE-make}"
48166 fi
48167
48168
48169
48170 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48171
48172
48173 if test "$USE_WIN32" = 1; then
48174 ac_config_commands="$ac_config_commands
48175 rcdefs.h
48176 "
48177
48178 fi
48179
48180 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
48181
48182
48183 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
48184
48185
48186 ac_config_files="$ac_config_files version-script Makefile"
48187
48188
48189 ac_config_commands="$ac_config_commands wx-config"
48190
48191
48192
48193 if test "$wxWITH_SUBDIRS" != "no"; then
48194 if test "$wxUSE_GUI" = "yes"; then
48195 SUBDIRS="samples demos utils contrib"
48196 else SUBDIRS="samples utils"
48197 fi
48198
48199
48200
48201 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48202 if test "${with_cppunit_prefix+set}" = set; then
48203 withval="$with_cppunit_prefix"
48204 cppunit_config_prefix="$withval"
48205 else
48206 cppunit_config_prefix=""
48207 fi;
48208
48209 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48210 if test "${with_cppunit_exec_prefix+set}" = set; then
48211 withval="$with_cppunit_exec_prefix"
48212 cppunit_config_exec_prefix="$withval"
48213 else
48214 cppunit_config_exec_prefix=""
48215 fi;
48216
48217 if test x$cppunit_config_exec_prefix != x ; then
48218 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48219 if test x${CPPUNIT_CONFIG+set} != xset ; then
48220 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48221 fi
48222 fi
48223 if test x$cppunit_config_prefix != x ; then
48224 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48225 if test x${CPPUNIT_CONFIG+set} != xset ; then
48226 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48227 fi
48228 fi
48229
48230 # Extract the first word of "cppunit-config", so it can be a program name with args.
48231 set dummy cppunit-config; ac_word=$2
48232 echo "$as_me:$LINENO: checking for $ac_word" >&5
48233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48234 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48235 echo $ECHO_N "(cached) $ECHO_C" >&6
48236 else
48237 case $CPPUNIT_CONFIG in
48238 [\\/]* | ?:[\\/]*)
48239 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48240 ;;
48241 *)
48242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48243 for as_dir in $PATH
48244 do
48245 IFS=$as_save_IFS
48246 test -z "$as_dir" && as_dir=.
48247 for ac_exec_ext in '' $ac_executable_extensions; do
48248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48249 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48251 break 2
48252 fi
48253 done
48254 done
48255
48256 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48257 ;;
48258 esac
48259 fi
48260 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48261
48262 if test -n "$CPPUNIT_CONFIG"; then
48263 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48264 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48265 else
48266 echo "$as_me:$LINENO: result: no" >&5
48267 echo "${ECHO_T}no" >&6
48268 fi
48269
48270 cppunit_version_min=1.8.0
48271
48272 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48273 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48274 no_cppunit=""
48275 if test "$CPPUNIT_CONFIG" = "no" ; then
48276 no_cppunit=yes
48277 else
48278 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48279 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48280 cppunit_version=`$CPPUNIT_CONFIG --version`
48281
48282 cppunit_major_version=`echo $cppunit_version | \
48283 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48284 cppunit_minor_version=`echo $cppunit_version | \
48285 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48286 cppunit_micro_version=`echo $cppunit_version | \
48287 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48288
48289 cppunit_major_min=`echo $cppunit_version_min | \
48290 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48291 cppunit_minor_min=`echo $cppunit_version_min | \
48292 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48293 cppunit_micro_min=`echo $cppunit_version_min | \
48294 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48295
48296 cppunit_version_proper=`expr \
48297 $cppunit_major_version \> $cppunit_major_min \| \
48298 $cppunit_major_version \= $cppunit_major_min \& \
48299 $cppunit_minor_version \> $cppunit_minor_min \| \
48300 $cppunit_major_version \= $cppunit_major_min \& \
48301 $cppunit_minor_version \= $cppunit_minor_min \& \
48302 $cppunit_micro_version \>= $cppunit_micro_min `
48303
48304 if test "$cppunit_version_proper" = "1" ; then
48305 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48306 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48307 else
48308 echo "$as_me:$LINENO: result: no" >&5
48309 echo "${ECHO_T}no" >&6
48310 no_cppunit=yes
48311 fi
48312 fi
48313
48314 if test "x$no_cppunit" = x ; then
48315 SUBDIRS="$SUBDIRS tests"
48316 else
48317 CPPUNIT_CFLAGS=""
48318 CPPUNIT_LIBS=""
48319 :
48320 fi
48321
48322
48323
48324
48325
48326 for subdir in `echo $SUBDIRS`; do
48327 if test -d ${srcdir}/${subdir} ; then
48328 if test "$wxUSE_GUI" = "yes"; then
48329 if test ${subdir} = "samples"; then
48330 makefiles="samples/Makefile.in $makefiles"
48331 for sample in `echo $SAMPLES_SUBDIRS`; do
48332 if test -d $srcdir/samples/$sample; then
48333 makefiles="samples/$sample/Makefile.in $makefiles"
48334 fi
48335 done
48336 else
48337 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48338 eval "disabled=\$$disabled_var"
48339 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48340 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
48341 fi
48342 else if test ${subdir} = "samples"; then
48343 makefiles="samples/Makefile.in samples/console/Makefile.in"
48344 elif test ${subdir} = "utils"; then
48345 makefiles=""
48346 for util in HelpGen tex2rtf ; do
48347 if test -d $srcdir/utils/$util ; then
48348 makefiles="utils/$util/Makefile.in \
48349 utils/$util/src/Makefile.in \
48350 $makefiles"
48351 fi
48352 done
48353 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48354 fi
48355 fi
48356
48357 for mkin in $makefiles ; do
48358 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48359 ac_config_files="$ac_config_files $mk"
48360
48361 done
48362 fi
48363 done
48364 fi
48365 cat >confcache <<\_ACEOF
48366 # This file is a shell script that caches the results of configure
48367 # tests run on this system so they can be shared between configure
48368 # scripts and configure runs, see configure's option --config-cache.
48369 # It is not useful on other systems. If it contains results you don't
48370 # want to keep, you may remove or edit it.
48371 #
48372 # config.status only pays attention to the cache file if you give it
48373 # the --recheck option to rerun configure.
48374 #
48375 # `ac_cv_env_foo' variables (set or unset) will be overridden when
48376 # loading this file, other *unset* `ac_cv_foo' will be assigned the
48377 # following values.
48378
48379 _ACEOF
48380
48381 # The following way of writing the cache mishandles newlines in values,
48382 # but we know of no workaround that is simple, portable, and efficient.
48383 # So, don't put newlines in cache variables' values.
48384 # Ultrix sh set writes to stderr and can't be redirected directly,
48385 # and sets the high bit in the cache file unless we assign to the vars.
48386 {
48387 (set) 2>&1 |
48388 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48389 *ac_space=\ *)
48390 # `set' does not quote correctly, so add quotes (double-quote
48391 # substitution turns \\\\ into \\, and sed turns \\ into \).
48392 sed -n \
48393 "s/'/'\\\\''/g;
48394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
48395 ;;
48396 *)
48397 # `set' quotes correctly as required by POSIX, so do not add quotes.
48398 sed -n \
48399 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
48400 ;;
48401 esac;
48402 } |
48403 sed '
48404 t clear
48405 : clear
48406 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48407 t end
48408 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48409 : end' >>confcache
48410 if diff $cache_file confcache >/dev/null 2>&1; then :; else
48411 if test -w $cache_file; then
48412 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48413 cat confcache >$cache_file
48414 else
48415 echo "not updating unwritable cache $cache_file"
48416 fi
48417 fi
48418 rm -f confcache
48419
48420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
48421 # Let make expand exec_prefix.
48422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48423
48424 # VPATH may cause trouble with some makes, so we remove $(srcdir),
48425 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48426 # trailing colons and then remove the whole line if VPATH becomes empty
48427 # (actually we leave an empty line to preserve line numbers).
48428 if test "x$srcdir" = x.; then
48429 ac_vpsub='/^[ ]*VPATH[ ]*=/{
48430 s/:*\$(srcdir):*/:/;
48431 s/:*\${srcdir}:*/:/;
48432 s/:*@srcdir@:*/:/;
48433 s/^\([^=]*=[ ]*\):*/\1/;
48434 s/:*$//;
48435 s/^[^=]*=[ ]*$//;
48436 }'
48437 fi
48438
48439 DEFS=-DHAVE_CONFIG_H
48440
48441 ac_libobjs=
48442 ac_ltlibobjs=
48443 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48444 # 1. Remove the extension, and $U if already installed.
48445 ac_i=`echo "$ac_i" |
48446 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
48447 # 2. Add them.
48448 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48449 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48450 done
48451 LIBOBJS=$ac_libobjs
48452
48453 LTLIBOBJS=$ac_ltlibobjs
48454
48455
48456
48457 : ${CONFIG_STATUS=./config.status}
48458 ac_clean_files_save=$ac_clean_files
48459 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48460 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48461 echo "$as_me: creating $CONFIG_STATUS" >&6;}
48462 cat >$CONFIG_STATUS <<_ACEOF
48463 #! $SHELL
48464 # Generated by $as_me.
48465 # Run this file to recreate the current configuration.
48466 # Compiler output produced by configure, useful for debugging
48467 # configure, is in config.log if it exists.
48468
48469 debug=false
48470 ac_cs_recheck=false
48471 ac_cs_silent=false
48472 SHELL=\${CONFIG_SHELL-$SHELL}
48473 _ACEOF
48474
48475 cat >>$CONFIG_STATUS <<\_ACEOF
48476 ## --------------------- ##
48477 ## M4sh Initialization. ##
48478 ## --------------------- ##
48479
48480 # Be Bourne compatible
48481 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48482 emulate sh
48483 NULLCMD=:
48484 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48485 # is contrary to our usage. Disable this feature.
48486 alias -g '${1+"$@"}'='"$@"'
48487 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48488 set -o posix
48489 fi
48490 DUALCASE=1; export DUALCASE # for MKS sh
48491
48492 # Support unset when possible.
48493 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
48494 as_unset=unset
48495 else
48496 as_unset=false
48497 fi
48498
48499
48500 # Work around bugs in pre-3.0 UWIN ksh.
48501 $as_unset ENV MAIL MAILPATH
48502 PS1='$ '
48503 PS2='> '
48504 PS4='+ '
48505
48506 # NLS nuisances.
48507 for as_var in \
48508 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48509 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48510 LC_TELEPHONE LC_TIME
48511 do
48512 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48513 eval $as_var=C; export $as_var
48514 else
48515 $as_unset $as_var
48516 fi
48517 done
48518
48519 # Required to use basename.
48520 if expr a : '\(a\)' >/dev/null 2>&1; then
48521 as_expr=expr
48522 else
48523 as_expr=false
48524 fi
48525
48526 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48527 as_basename=basename
48528 else
48529 as_basename=false
48530 fi
48531
48532
48533 # Name of the executable.
48534 as_me=`$as_basename "$0" ||
48535 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48536 X"$0" : 'X\(//\)$' \| \
48537 X"$0" : 'X\(/\)$' \| \
48538 . : '\(.\)' 2>/dev/null ||
48539 echo X/"$0" |
48540 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48541 /^X\/\(\/\/\)$/{ s//\1/; q; }
48542 /^X\/\(\/\).*/{ s//\1/; q; }
48543 s/.*/./; q'`
48544
48545
48546 # PATH needs CR, and LINENO needs CR and PATH.
48547 # Avoid depending upon Character Ranges.
48548 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48549 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48550 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48551 as_cr_digits='0123456789'
48552 as_cr_alnum=$as_cr_Letters$as_cr_digits
48553
48554 # The user is always right.
48555 if test "${PATH_SEPARATOR+set}" != set; then
48556 echo "#! /bin/sh" >conf$$.sh
48557 echo "exit 0" >>conf$$.sh
48558 chmod +x conf$$.sh
48559 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48560 PATH_SEPARATOR=';'
48561 else
48562 PATH_SEPARATOR=:
48563 fi
48564 rm -f conf$$.sh
48565 fi
48566
48567
48568 as_lineno_1=$LINENO
48569 as_lineno_2=$LINENO
48570 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48571 test "x$as_lineno_1" != "x$as_lineno_2" &&
48572 test "x$as_lineno_3" = "x$as_lineno_2" || {
48573 # Find who we are. Look in the path if we contain no path at all
48574 # relative or not.
48575 case $0 in
48576 *[\\/]* ) as_myself=$0 ;;
48577 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48578 for as_dir in $PATH
48579 do
48580 IFS=$as_save_IFS
48581 test -z "$as_dir" && as_dir=.
48582 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48583 done
48584
48585 ;;
48586 esac
48587 # We did not find ourselves, most probably we were run as `sh COMMAND'
48588 # in which case we are not to be found in the path.
48589 if test "x$as_myself" = x; then
48590 as_myself=$0
48591 fi
48592 if test ! -f "$as_myself"; then
48593 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48594 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48595 { (exit 1); exit 1; }; }
48596 fi
48597 case $CONFIG_SHELL in
48598 '')
48599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48600 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48601 do
48602 IFS=$as_save_IFS
48603 test -z "$as_dir" && as_dir=.
48604 for as_base in sh bash ksh sh5; do
48605 case $as_dir in
48606 /*)
48607 if ("$as_dir/$as_base" -c '
48608 as_lineno_1=$LINENO
48609 as_lineno_2=$LINENO
48610 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48611 test "x$as_lineno_1" != "x$as_lineno_2" &&
48612 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48613 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48614 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48615 CONFIG_SHELL=$as_dir/$as_base
48616 export CONFIG_SHELL
48617 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48618 fi;;
48619 esac
48620 done
48621 done
48622 ;;
48623 esac
48624
48625 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48626 # uniformly replaced by the line number. The first 'sed' inserts a
48627 # line-number line before each line; the second 'sed' does the real
48628 # work. The second script uses 'N' to pair each line-number line
48629 # with the numbered line, and appends trailing '-' during
48630 # substitution so that $LINENO is not a special case at line end.
48631 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48632 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48633 sed '=' <$as_myself |
48634 sed '
48635 N
48636 s,$,-,
48637 : loop
48638 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48639 t loop
48640 s,-$,,
48641 s,^['$as_cr_digits']*\n,,
48642 ' >$as_me.lineno &&
48643 chmod +x $as_me.lineno ||
48644 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48645 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48646 { (exit 1); exit 1; }; }
48647
48648 # Don't try to exec as it changes $[0], causing all sort of problems
48649 # (the dirname of $[0] is not the place where we might find the
48650 # original and so on. Autoconf is especially sensible to this).
48651 . ./$as_me.lineno
48652 # Exit status is that of the last command.
48653 exit
48654 }
48655
48656
48657 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48658 *c*,-n*) ECHO_N= ECHO_C='
48659 ' ECHO_T=' ' ;;
48660 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48661 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48662 esac
48663
48664 if expr a : '\(a\)' >/dev/null 2>&1; then
48665 as_expr=expr
48666 else
48667 as_expr=false
48668 fi
48669
48670 rm -f conf$$ conf$$.exe conf$$.file
48671 echo >conf$$.file
48672 if ln -s conf$$.file conf$$ 2>/dev/null; then
48673 # We could just check for DJGPP; but this test a) works b) is more generic
48674 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48675 if test -f conf$$.exe; then
48676 # Don't use ln at all; we don't have any links
48677 as_ln_s='cp -p'
48678 else
48679 as_ln_s='ln -s'
48680 fi
48681 elif ln conf$$.file conf$$ 2>/dev/null; then
48682 as_ln_s=ln
48683 else
48684 as_ln_s='cp -p'
48685 fi
48686 rm -f conf$$ conf$$.exe conf$$.file
48687
48688 if mkdir -p . 2>/dev/null; then
48689 as_mkdir_p=:
48690 else
48691 test -d ./-p && rmdir ./-p
48692 as_mkdir_p=false
48693 fi
48694
48695 as_executable_p="test -f"
48696
48697 # Sed expression to map a string onto a valid CPP name.
48698 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
48699
48700 # Sed expression to map a string onto a valid variable name.
48701 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
48702
48703
48704 # IFS
48705 # We need space, tab and new line, in precisely that order.
48706 as_nl='
48707 '
48708 IFS=" $as_nl"
48709
48710 # CDPATH.
48711 $as_unset CDPATH
48712
48713 exec 6>&1
48714
48715 # Open the log real soon, to keep \$[0] and so on meaningful, and to
48716 # report actual input values of CONFIG_FILES etc. instead of their
48717 # values after options handling. Logging --version etc. is OK.
48718 exec 5>>config.log
48719 {
48720 echo
48721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48722 ## Running $as_me. ##
48723 _ASBOX
48724 } >&5
48725 cat >&5 <<_CSEOF
48726
48727 This file was extended by wxWidgets $as_me 2.7.0, which was
48728 generated by GNU Autoconf 2.59. Invocation command line was
48729
48730 CONFIG_FILES = $CONFIG_FILES
48731 CONFIG_HEADERS = $CONFIG_HEADERS
48732 CONFIG_LINKS = $CONFIG_LINKS
48733 CONFIG_COMMANDS = $CONFIG_COMMANDS
48734 $ $0 $@
48735
48736 _CSEOF
48737 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
48738 echo >&5
48739 _ACEOF
48740
48741 # Files that config.status was made for.
48742 if test -n "$ac_config_files"; then
48743 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
48744 fi
48745
48746 if test -n "$ac_config_headers"; then
48747 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
48748 fi
48749
48750 if test -n "$ac_config_links"; then
48751 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
48752 fi
48753
48754 if test -n "$ac_config_commands"; then
48755 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
48756 fi
48757
48758 cat >>$CONFIG_STATUS <<\_ACEOF
48759
48760 ac_cs_usage="\
48761 \`$as_me' instantiates files from templates according to the
48762 current configuration.
48763
48764 Usage: $0 [OPTIONS] [FILE]...
48765
48766 -h, --help print this help, then exit
48767 -V, --version print version number, then exit
48768 -q, --quiet do not print progress messages
48769 -d, --debug don't remove temporary files
48770 --recheck update $as_me by reconfiguring in the same conditions
48771 --file=FILE[:TEMPLATE]
48772 instantiate the configuration file FILE
48773 --header=FILE[:TEMPLATE]
48774 instantiate the configuration header FILE
48775
48776 Configuration files:
48777 $config_files
48778
48779 Configuration headers:
48780 $config_headers
48781
48782 Configuration commands:
48783 $config_commands
48784
48785 Report bugs to <bug-autoconf@gnu.org>."
48786 _ACEOF
48787
48788 cat >>$CONFIG_STATUS <<_ACEOF
48789 ac_cs_version="\\
48790 wxWidgets config.status 2.7.0
48791 configured by $0, generated by GNU Autoconf 2.59,
48792 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
48793
48794 Copyright (C) 2003 Free Software Foundation, Inc.
48795 This config.status script is free software; the Free Software Foundation
48796 gives unlimited permission to copy, distribute and modify it."
48797 srcdir=$srcdir
48798 INSTALL="$INSTALL"
48799 _ACEOF
48800
48801 cat >>$CONFIG_STATUS <<\_ACEOF
48802 # If no file are specified by the user, then we need to provide default
48803 # value. By we need to know if files were specified by the user.
48804 ac_need_defaults=:
48805 while test $# != 0
48806 do
48807 case $1 in
48808 --*=*)
48809 ac_option=`expr "x$1" : 'x\([^=]*\)='`
48810 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
48811 ac_shift=:
48812 ;;
48813 -*)
48814 ac_option=$1
48815 ac_optarg=$2
48816 ac_shift=shift
48817 ;;
48818 *) # This is not an option, so the user has probably given explicit
48819 # arguments.
48820 ac_option=$1
48821 ac_need_defaults=false;;
48822 esac
48823
48824 case $ac_option in
48825 # Handling of the options.
48826 _ACEOF
48827 cat >>$CONFIG_STATUS <<\_ACEOF
48828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48829 ac_cs_recheck=: ;;
48830 --version | --vers* | -V )
48831 echo "$ac_cs_version"; exit 0 ;;
48832 --he | --h)
48833 # Conflict between --help and --header
48834 { { echo "$as_me:$LINENO: error: ambiguous option: $1
48835 Try \`$0 --help' for more information." >&5
48836 echo "$as_me: error: ambiguous option: $1
48837 Try \`$0 --help' for more information." >&2;}
48838 { (exit 1); exit 1; }; };;
48839 --help | --hel | -h )
48840 echo "$ac_cs_usage"; exit 0 ;;
48841 --debug | --d* | -d )
48842 debug=: ;;
48843 --file | --fil | --fi | --f )
48844 $ac_shift
48845 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
48846 ac_need_defaults=false;;
48847 --header | --heade | --head | --hea )
48848 $ac_shift
48849 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
48850 ac_need_defaults=false;;
48851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48852 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48853 ac_cs_silent=: ;;
48854
48855 # This is an error.
48856 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
48857 Try \`$0 --help' for more information." >&5
48858 echo "$as_me: error: unrecognized option: $1
48859 Try \`$0 --help' for more information." >&2;}
48860 { (exit 1); exit 1; }; } ;;
48861
48862 *) ac_config_targets="$ac_config_targets $1" ;;
48863
48864 esac
48865 shift
48866 done
48867
48868 ac_configure_extra_args=
48869
48870 if $ac_cs_silent; then
48871 exec 6>/dev/null
48872 ac_configure_extra_args="$ac_configure_extra_args --silent"
48873 fi
48874
48875 _ACEOF
48876 cat >>$CONFIG_STATUS <<_ACEOF
48877 if \$ac_cs_recheck; then
48878 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
48879 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48880 fi
48881
48882 _ACEOF
48883
48884 cat >>$CONFIG_STATUS <<_ACEOF
48885 #
48886 # INIT-COMMANDS section.
48887 #
48888
48889
48890 CPP="$CPP"
48891 infile="$srcdir/include/wx/msw/genrcdefs.h"
48892 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
48893
48894
48895 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48896 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48897 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48898 LN_S="${LN_S}"
48899
48900
48901 _ACEOF
48902
48903
48904
48905 cat >>$CONFIG_STATUS <<\_ACEOF
48906 for ac_config_target in $ac_config_targets
48907 do
48908 case "$ac_config_target" in
48909 # Handling of arguments.
48910 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
48911 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
48912 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
48913 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48914 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
48915 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
48916 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
48917 "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
48918 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48919 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48920 { (exit 1); exit 1; }; };;
48921 esac
48922 done
48923
48924 # If the user did not use the arguments to specify the items to instantiate,
48925 # then the envvar interface is used. Set only those that are not.
48926 # We use the long form for the default assignment because of an extremely
48927 # bizarre bug on SunOS 4.1.3.
48928 if $ac_need_defaults; then
48929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48930 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48931 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48932 fi
48933
48934 # Have a temporary directory for convenience. Make it in the build tree
48935 # simply because there is no reason to put it here, and in addition,
48936 # creating and moving files from /tmp can sometimes cause problems.
48937 # Create a temporary directory, and hook for its removal unless debugging.
48938 $debug ||
48939 {
48940 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
48941 trap '{ (exit 1); exit 1; }' 1 2 13 15
48942 }
48943
48944 # Create a (secure) tmp directory for tmp files.
48945
48946 {
48947 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
48948 test -n "$tmp" && test -d "$tmp"
48949 } ||
48950 {
48951 tmp=./confstat$$-$RANDOM
48952 (umask 077 && mkdir $tmp)
48953 } ||
48954 {
48955 echo "$me: cannot create a temporary directory in ." >&2
48956 { (exit 1); exit 1; }
48957 }
48958
48959 _ACEOF
48960
48961 cat >>$CONFIG_STATUS <<_ACEOF
48962
48963 #
48964 # CONFIG_FILES section.
48965 #
48966
48967 # No need to generate the scripts if there are no CONFIG_FILES.
48968 # This happens for instance when ./config.status config.h
48969 if test -n "\$CONFIG_FILES"; then
48970 # Protect against being on the right side of a sed subst in config.status.
48971 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
48972 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
48973 s,@SHELL@,$SHELL,;t t
48974 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
48975 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
48976 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
48977 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
48978 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
48979 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
48980 s,@exec_prefix@,$exec_prefix,;t t
48981 s,@prefix@,$prefix,;t t
48982 s,@program_transform_name@,$program_transform_name,;t t
48983 s,@bindir@,$bindir,;t t
48984 s,@sbindir@,$sbindir,;t t
48985 s,@libexecdir@,$libexecdir,;t t
48986 s,@datadir@,$datadir,;t t
48987 s,@sysconfdir@,$sysconfdir,;t t
48988 s,@sharedstatedir@,$sharedstatedir,;t t
48989 s,@localstatedir@,$localstatedir,;t t
48990 s,@libdir@,$libdir,;t t
48991 s,@includedir@,$includedir,;t t
48992 s,@oldincludedir@,$oldincludedir,;t t
48993 s,@infodir@,$infodir,;t t
48994 s,@mandir@,$mandir,;t t
48995 s,@build_alias@,$build_alias,;t t
48996 s,@host_alias@,$host_alias,;t t
48997 s,@target_alias@,$target_alias,;t t
48998 s,@DEFS@,$DEFS,;t t
48999 s,@ECHO_C@,$ECHO_C,;t t
49000 s,@ECHO_N@,$ECHO_N,;t t
49001 s,@ECHO_T@,$ECHO_T,;t t
49002 s,@LIBS@,$LIBS,;t t
49003 s,@build@,$build,;t t
49004 s,@build_cpu@,$build_cpu,;t t
49005 s,@build_vendor@,$build_vendor,;t t
49006 s,@build_os@,$build_os,;t t
49007 s,@host@,$host,;t t
49008 s,@host_cpu@,$host_cpu,;t t
49009 s,@host_vendor@,$host_vendor,;t t
49010 s,@host_os@,$host_os,;t t
49011 s,@target@,$target,;t t
49012 s,@target_cpu@,$target_cpu,;t t
49013 s,@target_vendor@,$target_vendor,;t t
49014 s,@target_os@,$target_os,;t t
49015 s,@CC@,$CC,;t t
49016 s,@CFLAGS@,$CFLAGS,;t t
49017 s,@LDFLAGS@,$LDFLAGS,;t t
49018 s,@CPPFLAGS@,$CPPFLAGS,;t t
49019 s,@ac_ct_CC@,$ac_ct_CC,;t t
49020 s,@EXEEXT@,$EXEEXT,;t t
49021 s,@OBJEXT@,$OBJEXT,;t t
49022 s,@CPP@,$CPP,;t t
49023 s,@EGREP@,$EGREP,;t t
49024 s,@CXX@,$CXX,;t t
49025 s,@CXXFLAGS@,$CXXFLAGS,;t t
49026 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49027 s,@RANLIB@,$RANLIB,;t t
49028 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49029 s,@AR@,$AR,;t t
49030 s,@ac_ct_AR@,$ac_ct_AR,;t t
49031 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49032 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49033 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49034 s,@STRIP@,$STRIP,;t t
49035 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
49036 s,@WINDRES@,$WINDRES,;t t
49037 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
49038 s,@DLLTOOL@,$DLLTOOL,;t t
49039 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
49040 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49041 s,@LN_S@,$LN_S,;t t
49042 s,@CXXCPP@,$CXXCPP,;t t
49043 s,@subdirs@,$subdirs,;t t
49044 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49045 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49046 s,@GTK_LIBS@,$GTK_LIBS,;t t
49047 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
49048 s,@X_CFLAGS@,$X_CFLAGS,;t t
49049 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49050 s,@X_LIBS@,$X_LIBS,;t t
49051 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49052 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49053 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
49054 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49055 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
49056 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49057 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
49058 s,@REZ@,$REZ,;t t
49059 s,@DEREZ@,$DEREZ,;t t
49060 s,@SETFILE@,$SETFILE,;t t
49061 s,@LIBICONV@,$LIBICONV,;t t
49062 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49063 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49064 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49065 s,@SDL_LIBS@,$SDL_LIBS,;t t
49066 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49067 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
49068 s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49069 s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
49070 s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49071 s,@HILDON_LIBS@,$HILDON_LIBS,;t t
49072 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49073 s,@GST_LIBS@,$GST_LIBS,;t t
49074 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49075 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49076 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49077 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49078 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49079 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49080 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49081 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49082 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49083 s,@VENDOR@,$VENDOR,;t t
49084 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
49085 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49086 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
49087 s,@WXUNIV@,$WXUNIV,;t t
49088 s,@MONOLITHIC@,$MONOLITHIC,;t t
49089 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49090 s,@EXTRALIBS@,$EXTRALIBS,;t t
49091 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49092 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49093 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49094 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49095 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49096 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49097 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
49098 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
49099 s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
49100 s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
49101 s,@UNICODE@,$UNICODE,;t t
49102 s,@BUILD@,$BUILD,;t t
49103 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49104 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
49105 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49106 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49107 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49108 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49109 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49110 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49111 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49112 s,@SET_MAKE@,$SET_MAKE,;t t
49113 s,@MAKE_SET@,$MAKE_SET,;t t
49114 s,@NM@,$NM,;t t
49115 s,@ac_ct_NM@,$ac_ct_NM,;t t
49116 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49117 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49118 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49119 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49120 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49121 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
49122 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
49123 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49124 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
49125 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
49126 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49127 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49128 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49129 s,@LIBPREFIX@,$LIBPREFIX,;t t
49130 s,@LIBEXT@,$LIBEXT,;t t
49131 s,@DLLPREFIX@,$DLLPREFIX,;t t
49132 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
49133 s,@dlldir@,$dlldir,;t t
49134 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49135 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49136 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49137 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49138 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49139 s,@PIC_FLAG@,$PIC_FLAG,;t t
49140 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
49141 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49142 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49143 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
49144 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
49145 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49146 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49147 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49148 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49149 s,@GCC_PCH@,$GCC_PCH,;t t
49150 s,@ICC_PCH@,$ICC_PCH,;t t
49151 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49152 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49153 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49154 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49155 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49156 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49157 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49158 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49159 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49160 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49161 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49162 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49163 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49164 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49165 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
49166 s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
49167 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49168 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49169 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
49170 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
49171 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t
49172 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
49173 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
49174 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
49175 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
49176 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49177 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
49178 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
49179 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t
49180 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
49181 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
49182 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
49183 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
49184 s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
49185 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49186 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49187 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49188 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49189 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49190 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
49191 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
49192 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49193 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
49194 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
49195 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49196 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49197 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
49198 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
49199 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49200 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49201 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
49202 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49203 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
49204 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
49205 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
49206 s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
49207 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
49208 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49209 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49210 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49211 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49212 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49213 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49214 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49215 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
49216 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49217 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49218 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
49219 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49220 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49221 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49222 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
49223 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
49224 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49225 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49226 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49227 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49228 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49229 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
49230 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
49231 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
49232 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
49233 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
49234 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49235 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
49236 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49237 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49238 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49239 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49240 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49241 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
49242 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
49243 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49244 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49245 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49246 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49247 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49248 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49249 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49250 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49251 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49252 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49253 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
49254 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
49255 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49256 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49257 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
49258 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49259 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49260 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
49261 s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
49262 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49263 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49264 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49265 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49266 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49267 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49268 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49269 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49270 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49271 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49272 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49273 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
49274 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49275 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
49276 s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
49277 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
49278 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49279 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
49280 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
49281 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
49282 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49283 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49284 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
49285 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49286 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
49287 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
49288 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
49289 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
49290 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
49291 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49292 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49293 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49294 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49295 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49296 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49297 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49298 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
49299 s,@SHARED@,$SHARED,;t t
49300 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49301 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
49302 s,@USE_GUI@,$USE_GUI,;t t
49303 s,@AFMINSTALL@,$AFMINSTALL,;t t
49304 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49305 s,@TOOLKIT@,$TOOLKIT,;t t
49306 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
49307 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
49308 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
49309 s,@cross_compiling@,$cross_compiling,;t t
49310 s,@WIDGET_SET@,$WIDGET_SET,;t t
49311 s,@WX_RELEASE@,$WX_RELEASE,;t t
49312 s,@WX_VERSION@,$WX_VERSION,;t t
49313 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49314 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49315 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
49316 s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49317 s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49318 s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49319 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
49320 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49321 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
49322 s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
49323 s,@EXE_LINKER@,$EXE_LINKER,;t t
49324 s,@GUIDIST@,$GUIDIST,;t t
49325 s,@DISTDIR@,$DISTDIR,;t t
49326 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49327 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
49328 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49329 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49330 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
49331 s,@RESCOMP@,$RESCOMP,;t t
49332 s,@RESFLAGS@,$RESFLAGS,;t t
49333 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49334 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49335 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49336 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
49337 s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
49338 s,@MACSETFILE@,$MACSETFILE,;t t
49339 s,@GCC@,$GCC,;t t
49340 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49341 s,@LIBOBJS@,$LIBOBJS,;t t
49342 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49343 CEOF
49344
49345 _ACEOF
49346
49347 cat >>$CONFIG_STATUS <<\_ACEOF
49348 # Split the substitutions into bite-sized pieces for seds with
49349 # small command number limits, like on Digital OSF/1 and HP-UX.
49350 ac_max_sed_lines=48
49351 ac_sed_frag=1 # Number of current file.
49352 ac_beg=1 # First line for current file.
49353 ac_end=$ac_max_sed_lines # Line after last line for current file.
49354 ac_more_lines=:
49355 ac_sed_cmds=
49356 while $ac_more_lines; do
49357 if test $ac_beg -gt 1; then
49358 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49359 else
49360 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49361 fi
49362 if test ! -s $tmp/subs.frag; then
49363 ac_more_lines=false
49364 else
49365 # The purpose of the label and of the branching condition is to
49366 # speed up the sed processing (if there are no `@' at all, there
49367 # is no need to browse any of the substitutions).
49368 # These are the two extra sed commands mentioned above.
49369 (echo ':t
49370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49371 if test -z "$ac_sed_cmds"; then
49372 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
49373 else
49374 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
49375 fi
49376 ac_sed_frag=`expr $ac_sed_frag + 1`
49377 ac_beg=$ac_end
49378 ac_end=`expr $ac_end + $ac_max_sed_lines`
49379 fi
49380 done
49381 if test -z "$ac_sed_cmds"; then
49382 ac_sed_cmds=cat
49383 fi
49384 fi # test -n "$CONFIG_FILES"
49385
49386 _ACEOF
49387 cat >>$CONFIG_STATUS <<\_ACEOF
49388 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49389 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49390 case $ac_file in
49391 - | *:- | *:-:* ) # input from stdin
49392 cat >$tmp/stdin
49393 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49394 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
49395 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49396 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
49397 * ) ac_file_in=$ac_file.in ;;
49398 esac
49399
49400 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49401 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49403 X"$ac_file" : 'X\(//\)[^/]' \| \
49404 X"$ac_file" : 'X\(//\)$' \| \
49405 X"$ac_file" : 'X\(/\)' \| \
49406 . : '\(.\)' 2>/dev/null ||
49407 echo X"$ac_file" |
49408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49410 /^X\(\/\/\)$/{ s//\1/; q; }
49411 /^X\(\/\).*/{ s//\1/; q; }
49412 s/.*/./; q'`
49413 { if $as_mkdir_p; then
49414 mkdir -p "$ac_dir"
49415 else
49416 as_dir="$ac_dir"
49417 as_dirs=
49418 while test ! -d "$as_dir"; do
49419 as_dirs="$as_dir $as_dirs"
49420 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49421 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49422 X"$as_dir" : 'X\(//\)[^/]' \| \
49423 X"$as_dir" : 'X\(//\)$' \| \
49424 X"$as_dir" : 'X\(/\)' \| \
49425 . : '\(.\)' 2>/dev/null ||
49426 echo X"$as_dir" |
49427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49429 /^X\(\/\/\)$/{ s//\1/; q; }
49430 /^X\(\/\).*/{ s//\1/; q; }
49431 s/.*/./; q'`
49432 done
49433 test ! -n "$as_dirs" || mkdir $as_dirs
49434 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49435 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49436 { (exit 1); exit 1; }; }; }
49437
49438 ac_builddir=.
49439
49440 if test "$ac_dir" != .; then
49441 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49442 # A "../" for each directory in $ac_dir_suffix.
49443 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49444 else
49445 ac_dir_suffix= ac_top_builddir=
49446 fi
49447
49448 case $srcdir in
49449 .) # No --srcdir option. We are building in place.
49450 ac_srcdir=.
49451 if test -z "$ac_top_builddir"; then
49452 ac_top_srcdir=.
49453 else
49454 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49455 fi ;;
49456 [\\/]* | ?:[\\/]* ) # Absolute path.
49457 ac_srcdir=$srcdir$ac_dir_suffix;
49458 ac_top_srcdir=$srcdir ;;
49459 *) # Relative path.
49460 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49461 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49462 esac
49463
49464 # Do not use `cd foo && pwd` to compute absolute paths, because
49465 # the directories may not exist.
49466 case `pwd` in
49467 .) ac_abs_builddir="$ac_dir";;
49468 *)
49469 case "$ac_dir" in
49470 .) ac_abs_builddir=`pwd`;;
49471 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49472 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49473 esac;;
49474 esac
49475 case $ac_abs_builddir in
49476 .) ac_abs_top_builddir=${ac_top_builddir}.;;
49477 *)
49478 case ${ac_top_builddir}. in
49479 .) ac_abs_top_builddir=$ac_abs_builddir;;
49480 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49481 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49482 esac;;
49483 esac
49484 case $ac_abs_builddir in
49485 .) ac_abs_srcdir=$ac_srcdir;;
49486 *)
49487 case $ac_srcdir in
49488 .) ac_abs_srcdir=$ac_abs_builddir;;
49489 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49490 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49491 esac;;
49492 esac
49493 case $ac_abs_builddir in
49494 .) ac_abs_top_srcdir=$ac_top_srcdir;;
49495 *)
49496 case $ac_top_srcdir in
49497 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49498 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49499 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49500 esac;;
49501 esac
49502
49503
49504 case $INSTALL in
49505 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49506 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49507 esac
49508
49509 # Let's still pretend it is `configure' which instantiates (i.e., don't
49510 # use $as_me), people would be surprised to read:
49511 # /* config.h. Generated by config.status. */
49512 if test x"$ac_file" = x-; then
49513 configure_input=
49514 else
49515 configure_input="$ac_file. "
49516 fi
49517 configure_input=$configure_input"Generated from `echo $ac_file_in |
49518 sed 's,.*/,,'` by configure."
49519
49520 # First look for the input files in the build tree, otherwise in the
49521 # src tree.
49522 ac_file_inputs=`IFS=:
49523 for f in $ac_file_in; do
49524 case $f in
49525 -) echo $tmp/stdin ;;
49526 [\\/$]*)
49527 # Absolute (can't be DOS-style, as IFS=:)
49528 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
49529 echo "$as_me: error: cannot find input file: $f" >&2;}
49530 { (exit 1); exit 1; }; }
49531 echo "$f";;
49532 *) # Relative
49533 if test -f "$f"; then
49534 # Build tree
49535 echo "$f"
49536 elif test -f "$srcdir/$f"; then
49537 # Source tree
49538 echo "$srcdir/$f"
49539 else
49540 # /dev/null tree
49541 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
49542 echo "$as_me: error: cannot find input file: $f" >&2;}
49543 { (exit 1); exit 1; }; }
49544 fi;;
49545 esac
49546 done` || { (exit 1); exit 1; }
49547
49548 if test x"$ac_file" != x-; then
49549 { echo "$as_me:$LINENO: creating $ac_file" >&5
49550 echo "$as_me: creating $ac_file" >&6;}
49551 rm -f "$ac_file"
49552 fi
49553 _ACEOF
49554 cat >>$CONFIG_STATUS <<_ACEOF
49555 sed "$ac_vpsub
49556 $extrasub
49557 _ACEOF
49558 cat >>$CONFIG_STATUS <<\_ACEOF
49559 :t
49560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49561 s,@configure_input@,$configure_input,;t t
49562 s,@srcdir@,$ac_srcdir,;t t
49563 s,@abs_srcdir@,$ac_abs_srcdir,;t t
49564 s,@top_srcdir@,$ac_top_srcdir,;t t
49565 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49566 s,@builddir@,$ac_builddir,;t t
49567 s,@abs_builddir@,$ac_abs_builddir,;t t
49568 s,@top_builddir@,$ac_top_builddir,;t t
49569 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49570 s,@INSTALL@,$ac_INSTALL,;t t
49571 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49572 rm -f $tmp/stdin
49573 if test x"$ac_file" != x-; then
49574 mv $tmp/out $ac_file
49575 else
49576 cat $tmp/out
49577 rm -f $tmp/out
49578 fi
49579
49580 # Run the commands associated with the file.
49581 case $ac_file in
49582 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49583 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49584 esac
49585 done
49586 _ACEOF
49587 cat >>$CONFIG_STATUS <<\_ACEOF
49588
49589 #
49590 # CONFIG_HEADER section.
49591 #
49592
49593 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49594 # NAME is the cpp macro being defined and VALUE is the value it is being given.
49595 #
49596 # ac_d sets the value in "#define NAME VALUE" lines.
49597 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49598 ac_dB='[ ].*$,\1#\2'
49599 ac_dC=' '
49600 ac_dD=',;t'
49601 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
49602 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
49603 ac_uB='$,\1#\2define\3'
49604 ac_uC=' '
49605 ac_uD=',;t'
49606
49607 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49608 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49609 case $ac_file in
49610 - | *:- | *:-:* ) # input from stdin
49611 cat >$tmp/stdin
49612 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49613 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
49614 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49615 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
49616 * ) ac_file_in=$ac_file.in ;;
49617 esac
49618
49619 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49620 echo "$as_me: creating $ac_file" >&6;}
49621
49622 # First look for the input files in the build tree, otherwise in the
49623 # src tree.
49624 ac_file_inputs=`IFS=:
49625 for f in $ac_file_in; do
49626 case $f in
49627 -) echo $tmp/stdin ;;
49628 [\\/$]*)
49629 # Absolute (can't be DOS-style, as IFS=:)
49630 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
49631 echo "$as_me: error: cannot find input file: $f" >&2;}
49632 { (exit 1); exit 1; }; }
49633 # Do quote $f, to prevent DOS paths from being IFS'd.
49634 echo "$f";;
49635 *) # Relative
49636 if test -f "$f"; then
49637 # Build tree
49638 echo "$f"
49639 elif test -f "$srcdir/$f"; then
49640 # Source tree
49641 echo "$srcdir/$f"
49642 else
49643 # /dev/null tree
49644 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
49645 echo "$as_me: error: cannot find input file: $f" >&2;}
49646 { (exit 1); exit 1; }; }
49647 fi;;
49648 esac
49649 done` || { (exit 1); exit 1; }
49650 # Remove the trailing spaces.
49651 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
49652
49653 _ACEOF
49654
49655 # Transform confdefs.h into two sed scripts, `conftest.defines' and
49656 # `conftest.undefs', that substitutes the proper values into
49657 # config.h.in to produce config.h. The first handles `#define'
49658 # templates, and the second `#undef' templates.
49659 # And first: Protect against being on the right side of a sed subst in
49660 # config.status. Protect against being in an unquoted here document
49661 # in config.status.
49662 rm -f conftest.defines conftest.undefs
49663 # Using a here document instead of a string reduces the quoting nightmare.
49664 # Putting comments in sed scripts is not portable.
49665 #
49666 # `end' is used to avoid that the second main sed command (meant for
49667 # 0-ary CPP macros) applies to n-ary macro definitions.
49668 # See the Autoconf documentation for `clear'.
49669 cat >confdef2sed.sed <<\_ACEOF
49670 s/[\\&,]/\\&/g
49671 s,[\\$`],\\&,g
49672 t clear
49673 : clear
49674 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
49675 t end
49676 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
49677 : end
49678 _ACEOF
49679 # If some macros were called several times there might be several times
49680 # the same #defines, which is useless. Nevertheless, we may not want to
49681 # sort them, since we want the *last* AC-DEFINE to be honored.
49682 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49683 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49684 rm -f confdef2sed.sed
49685
49686 # This sed command replaces #undef with comments. This is necessary, for
49687 # example, in the case of _POSIX_SOURCE, which is predefined and required
49688 # on some systems where configure will not decide to define it.
49689 cat >>conftest.undefs <<\_ACEOF
49690 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
49691 _ACEOF
49692
49693 # Break up conftest.defines because some shells have a limit on the size
49694 # of here documents, and old seds have small limits too (100 cmds).
49695 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
49696 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
49697 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49698 echo ' :' >>$CONFIG_STATUS
49699 rm -f conftest.tail
49700 while grep . conftest.defines >/dev/null
49701 do
49702 # Write a limited-size here document to $tmp/defines.sed.
49703 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49704 # Speed up: don't consider the non `#define' lines.
49705 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
49706 # Work around the forget-to-reset-the-flag bug.
49707 echo 't clr' >>$CONFIG_STATUS
49708 echo ': clr' >>$CONFIG_STATUS
49709 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
49710 echo 'CEOF
49711 sed -f $tmp/defines.sed $tmp/in >$tmp/out
49712 rm -f $tmp/in
49713 mv $tmp/out $tmp/in
49714 ' >>$CONFIG_STATUS
49715 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
49716 rm -f conftest.defines
49717 mv conftest.tail conftest.defines
49718 done
49719 rm -f conftest.defines
49720 echo ' fi # grep' >>$CONFIG_STATUS
49721 echo >>$CONFIG_STATUS
49722
49723 # Break up conftest.undefs because some shells have a limit on the size
49724 # of here documents, and old seds have small limits too (100 cmds).
49725 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
49726 rm -f conftest.tail
49727 while grep . conftest.undefs >/dev/null
49728 do
49729 # Write a limited-size here document to $tmp/undefs.sed.
49730 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
49731 # Speed up: don't consider the non `#undef'
49732 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
49733 # Work around the forget-to-reset-the-flag bug.
49734 echo 't clr' >>$CONFIG_STATUS
49735 echo ': clr' >>$CONFIG_STATUS
49736 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
49737 echo 'CEOF
49738 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
49739 rm -f $tmp/in
49740 mv $tmp/out $tmp/in
49741 ' >>$CONFIG_STATUS
49742 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
49743 rm -f conftest.undefs
49744 mv conftest.tail conftest.undefs
49745 done
49746 rm -f conftest.undefs
49747
49748 cat >>$CONFIG_STATUS <<\_ACEOF
49749 # Let's still pretend it is `configure' which instantiates (i.e., don't
49750 # use $as_me), people would be surprised to read:
49751 # /* config.h. Generated by config.status. */
49752 if test x"$ac_file" = x-; then
49753 echo "/* Generated by configure. */" >$tmp/config.h
49754 else
49755 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
49756 fi
49757 cat $tmp/in >>$tmp/config.h
49758 rm -f $tmp/in
49759 if test x"$ac_file" != x-; then
49760 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
49761 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49762 echo "$as_me: $ac_file is unchanged" >&6;}
49763 else
49764 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49765 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49766 X"$ac_file" : 'X\(//\)[^/]' \| \
49767 X"$ac_file" : 'X\(//\)$' \| \
49768 X"$ac_file" : 'X\(/\)' \| \
49769 . : '\(.\)' 2>/dev/null ||
49770 echo X"$ac_file" |
49771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49773 /^X\(\/\/\)$/{ s//\1/; q; }
49774 /^X\(\/\).*/{ s//\1/; q; }
49775 s/.*/./; q'`
49776 { if $as_mkdir_p; then
49777 mkdir -p "$ac_dir"
49778 else
49779 as_dir="$ac_dir"
49780 as_dirs=
49781 while test ! -d "$as_dir"; do
49782 as_dirs="$as_dir $as_dirs"
49783 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49785 X"$as_dir" : 'X\(//\)[^/]' \| \
49786 X"$as_dir" : 'X\(//\)$' \| \
49787 X"$as_dir" : 'X\(/\)' \| \
49788 . : '\(.\)' 2>/dev/null ||
49789 echo X"$as_dir" |
49790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49792 /^X\(\/\/\)$/{ s//\1/; q; }
49793 /^X\(\/\).*/{ s//\1/; q; }
49794 s/.*/./; q'`
49795 done
49796 test ! -n "$as_dirs" || mkdir $as_dirs
49797 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49798 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49799 { (exit 1); exit 1; }; }; }
49800
49801 rm -f $ac_file
49802 mv $tmp/config.h $ac_file
49803 fi
49804 else
49805 cat $tmp/config.h
49806 rm -f $tmp/config.h
49807 fi
49808 done
49809 _ACEOF
49810 cat >>$CONFIG_STATUS <<\_ACEOF
49811
49812 #
49813 # CONFIG_COMMANDS section.
49814 #
49815 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
49816 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
49817 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
49818 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
49819 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49820 X"$ac_dest" : 'X\(//\)[^/]' \| \
49821 X"$ac_dest" : 'X\(//\)$' \| \
49822 X"$ac_dest" : 'X\(/\)' \| \
49823 . : '\(.\)' 2>/dev/null ||
49824 echo X"$ac_dest" |
49825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49827 /^X\(\/\/\)$/{ s//\1/; q; }
49828 /^X\(\/\).*/{ s//\1/; q; }
49829 s/.*/./; q'`
49830 { if $as_mkdir_p; then
49831 mkdir -p "$ac_dir"
49832 else
49833 as_dir="$ac_dir"
49834 as_dirs=
49835 while test ! -d "$as_dir"; do
49836 as_dirs="$as_dir $as_dirs"
49837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49839 X"$as_dir" : 'X\(//\)[^/]' \| \
49840 X"$as_dir" : 'X\(//\)$' \| \
49841 X"$as_dir" : 'X\(/\)' \| \
49842 . : '\(.\)' 2>/dev/null ||
49843 echo X"$as_dir" |
49844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49846 /^X\(\/\/\)$/{ s//\1/; q; }
49847 /^X\(\/\).*/{ s//\1/; q; }
49848 s/.*/./; q'`
49849 done
49850 test ! -n "$as_dirs" || mkdir $as_dirs
49851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49853 { (exit 1); exit 1; }; }; }
49854
49855 ac_builddir=.
49856
49857 if test "$ac_dir" != .; then
49858 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49859 # A "../" for each directory in $ac_dir_suffix.
49860 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49861 else
49862 ac_dir_suffix= ac_top_builddir=
49863 fi
49864
49865 case $srcdir in
49866 .) # No --srcdir option. We are building in place.
49867 ac_srcdir=.
49868 if test -z "$ac_top_builddir"; then
49869 ac_top_srcdir=.
49870 else
49871 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49872 fi ;;
49873 [\\/]* | ?:[\\/]* ) # Absolute path.
49874 ac_srcdir=$srcdir$ac_dir_suffix;
49875 ac_top_srcdir=$srcdir ;;
49876 *) # Relative path.
49877 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49878 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49879 esac
49880
49881 # Do not use `cd foo && pwd` to compute absolute paths, because
49882 # the directories may not exist.
49883 case `pwd` in
49884 .) ac_abs_builddir="$ac_dir";;
49885 *)
49886 case "$ac_dir" in
49887 .) ac_abs_builddir=`pwd`;;
49888 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49889 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49890 esac;;
49891 esac
49892 case $ac_abs_builddir in
49893 .) ac_abs_top_builddir=${ac_top_builddir}.;;
49894 *)
49895 case ${ac_top_builddir}. in
49896 .) ac_abs_top_builddir=$ac_abs_builddir;;
49897 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49898 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49899 esac;;
49900 esac
49901 case $ac_abs_builddir in
49902 .) ac_abs_srcdir=$ac_srcdir;;
49903 *)
49904 case $ac_srcdir in
49905 .) ac_abs_srcdir=$ac_abs_builddir;;
49906 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49907 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49908 esac;;
49909 esac
49910 case $ac_abs_builddir in
49911 .) ac_abs_top_srcdir=$ac_top_srcdir;;
49912 *)
49913 case $ac_top_srcdir in
49914 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49915 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49916 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49917 esac;;
49918 esac
49919
49920
49921 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
49922 echo "$as_me: executing $ac_dest commands" >&6;}
49923 case $ac_dest in
49924 rcdefs.h )
49925 mkdir -p $outdir &&
49926 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
49927 ;;
49928 wx-config ) rm -f wx-config
49929 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
49930 ;;
49931 esac
49932 done
49933 _ACEOF
49934
49935 cat >>$CONFIG_STATUS <<\_ACEOF
49936
49937 { (exit 0); exit 0; }
49938 _ACEOF
49939 chmod +x $CONFIG_STATUS
49940 ac_clean_files=$ac_clean_files_save
49941
49942
49943 # configure is writing to config.log, and then calls config.status.
49944 # config.status does its own redirection, appending to config.log.
49945 # Unfortunately, on DOS this fails, as config.log is still kept open
49946 # by configure, so config.status won't be able to write to it; its
49947 # output is simply discarded. So we exec the FD to /dev/null,
49948 # effectively closing config.log, so it can be properly (re)opened and
49949 # appended to by config.status. When coming back to configure, we
49950 # need to make the FD available again.
49951 if test "$no_create" != yes; then
49952 ac_cs_success=:
49953 ac_config_status_args=
49954 test "$silent" = yes &&
49955 ac_config_status_args="$ac_config_status_args --quiet"
49956 exec 5>/dev/null
49957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49958 exec 5>>config.log
49959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49960 # would make configure fail if this is the last instruction.
49961 $ac_cs_success || { (exit 1); exit 1; }
49962 fi
49963
49964 #
49965 # CONFIG_SUBDIRS section.
49966 #
49967 if test "$no_recursion" != yes; then
49968
49969 # Remove --cache-file and --srcdir arguments so they do not pile up.
49970 ac_sub_configure_args=
49971 ac_prev=
49972 for ac_arg in $ac_configure_args; do
49973 if test -n "$ac_prev"; then
49974 ac_prev=
49975 continue
49976 fi
49977 case $ac_arg in
49978 -cache-file | --cache-file | --cache-fil | --cache-fi \
49979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
49980 ac_prev=cache_file ;;
49981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
49982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
49983 | --c=*)
49984 ;;
49985 --config-cache | -C)
49986 ;;
49987 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
49988 ac_prev=srcdir ;;
49989 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
49990 ;;
49991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
49992 ac_prev=prefix ;;
49993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
49994 ;;
49995 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
49996 esac
49997 done
49998
49999 # Always prepend --prefix to ensure using the same prefix
50000 # in subdir configurations.
50001 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50002
50003 ac_popdir=`pwd`
50004 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50005
50006 # Do not complain, so a configure script can configure whichever
50007 # parts of a large source tree are present.
50008 test -d $srcdir/$ac_dir || continue
50009
50010 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50011 echo "$as_me: configuring in $ac_dir" >&6;}
50012 { if $as_mkdir_p; then
50013 mkdir -p "$ac_dir"
50014 else
50015 as_dir="$ac_dir"
50016 as_dirs=
50017 while test ! -d "$as_dir"; do
50018 as_dirs="$as_dir $as_dirs"
50019 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50021 X"$as_dir" : 'X\(//\)[^/]' \| \
50022 X"$as_dir" : 'X\(//\)$' \| \
50023 X"$as_dir" : 'X\(/\)' \| \
50024 . : '\(.\)' 2>/dev/null ||
50025 echo X"$as_dir" |
50026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50028 /^X\(\/\/\)$/{ s//\1/; q; }
50029 /^X\(\/\).*/{ s//\1/; q; }
50030 s/.*/./; q'`
50031 done
50032 test ! -n "$as_dirs" || mkdir $as_dirs
50033 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50034 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50035 { (exit 1); exit 1; }; }; }
50036
50037 ac_builddir=.
50038
50039 if test "$ac_dir" != .; then
50040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50041 # A "../" for each directory in $ac_dir_suffix.
50042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50043 else
50044 ac_dir_suffix= ac_top_builddir=
50045 fi
50046
50047 case $srcdir in
50048 .) # No --srcdir option. We are building in place.
50049 ac_srcdir=.
50050 if test -z "$ac_top_builddir"; then
50051 ac_top_srcdir=.
50052 else
50053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50054 fi ;;
50055 [\\/]* | ?:[\\/]* ) # Absolute path.
50056 ac_srcdir=$srcdir$ac_dir_suffix;
50057 ac_top_srcdir=$srcdir ;;
50058 *) # Relative path.
50059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50061 esac
50062
50063 # Do not use `cd foo && pwd` to compute absolute paths, because
50064 # the directories may not exist.
50065 case `pwd` in
50066 .) ac_abs_builddir="$ac_dir";;
50067 *)
50068 case "$ac_dir" in
50069 .) ac_abs_builddir=`pwd`;;
50070 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50071 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50072 esac;;
50073 esac
50074 case $ac_abs_builddir in
50075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50076 *)
50077 case ${ac_top_builddir}. in
50078 .) ac_abs_top_builddir=$ac_abs_builddir;;
50079 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50080 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50081 esac;;
50082 esac
50083 case $ac_abs_builddir in
50084 .) ac_abs_srcdir=$ac_srcdir;;
50085 *)
50086 case $ac_srcdir in
50087 .) ac_abs_srcdir=$ac_abs_builddir;;
50088 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50089 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50090 esac;;
50091 esac
50092 case $ac_abs_builddir in
50093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
50094 *)
50095 case $ac_top_srcdir in
50096 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50097 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50098 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50099 esac;;
50100 esac
50101
50102
50103 cd $ac_dir
50104
50105 # Check for guested configure; otherwise get Cygnus style configure.
50106 if test -f $ac_srcdir/configure.gnu; then
50107 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50108 elif test -f $ac_srcdir/configure; then
50109 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50110 elif test -f $ac_srcdir/configure.in; then
50111 ac_sub_configure=$ac_configure
50112 else
50113 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50114 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50115 ac_sub_configure=
50116 fi
50117
50118 # The recursion is here.
50119 if test -n "$ac_sub_configure"; then
50120 # Make the cache file name correct relative to the subdirectory.
50121 case $cache_file in
50122 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50123 *) # Relative path.
50124 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
50125 esac
50126
50127 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50128 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50129 # The eval makes quoting arguments work.
50130 eval $ac_sub_configure $ac_sub_configure_args \
50131 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50132 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
50133 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50134 { (exit 1); exit 1; }; }
50135 fi
50136
50137 cd "$ac_popdir"
50138 done
50139 fi
50140
50141
50142 echo
50143 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
50144 echo ""
50145 echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
50146 echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
50147
50148 echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50149 echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50150 echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
50151
50152 echo " What level of wxWidgets compatibility should be enabled?"
50153 echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50154 echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
50155
50156 echo " Which libraries should wxWidgets use?"
50157 echo " jpeg ${wxUSE_LIBJPEG-none}"
50158 echo " png ${wxUSE_LIBPNG-none}"
50159 echo " regex ${wxUSE_REGEX}"
50160 echo " tiff ${wxUSE_LIBTIFF-none}"
50161 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50162 echo " xpm ${wxUSE_LIBXPM-none}"
50163 fi
50164 echo " zlib ${wxUSE_ZLIB}"
50165 echo " odbc ${wxUSE_ODBC}"
50166 echo " expat ${wxUSE_EXPAT}"
50167 echo " libmspack ${wxUSE_LIBMSPACK}"
50168 echo " sdl ${wxUSE_LIBSDL}"
50169 echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
50170 echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}"
50171 echo " hildon ${wxUSE_LIBHILDON-none}"
50172
50173 echo ""
50174