]> git.saurik.com Git - wxWidgets.git/blob - configure
API adaptions to MSW EnhMetafile
[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 wxWindows 2.5.1.
5 #
6 # Report bugs to <wx-dev@lists.wxwindows.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
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='wxWindows'
272 PACKAGE_TARNAME='wxwindows'
273 PACKAGE_VERSION='2.5.1'
274 PACKAGE_STRING='wxWindows 2.5.1'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY 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 wxWindows 2.5.1 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 wxWindows 2.5.1:";;
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 wxWindows as single library
872 --enable-plugins build parts of wxWindows as loadable components
873 --enable-universal use wxWindows GUI controls instead of native ones
874 --enable-nanox use NanoX
875 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
882 --enable-debug_info create code with debugging information
883 --enable-debug_gdb create code with extra GDB debugging information
884 --enable-debug_cntxt use wxDebugContext
885 --enable-mem_tracing create code with memory tracing
886 --enable-profile create code with profiling information
887 --enable-no_rtti create code without RTTI information
888 --enable-no_exceptions create code without C++ exceptions handling
889 --enable-permissive compile code disregarding strict ANSI
890 --enable-no_deps create code without dependency information
891 --enable-compat22 enable wxWindows 2.2 compatibility
892 --disable-compat24 disable wxWindows 2.4 compatibility
893 --enable-rpath=DIR output the rpath flag from wx-config
894 --enable-intl use internationalization system
895 --enable-config use wxConfig (and derived) classes
896 --enable-protocols use wxProtocol and derived classes
897 --enable-ftp use wxFTP (requires wxProtocol
898 --enable-http use wxHTTP (requires wxProtocol
899 --enable-fileproto use wxFileProto class (requires wxProtocol
900 --enable-sockets use socket/network classes
901 --enable-ole use OLE classes (Win32 only)
902 --enable-dataobj use data object classes
903 --enable-ipc use interprocess communication (wxSocket etc.)
904 --enable-apple_ieee use the Apple IEEE codec
905 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
906 --enable-cmdline use wxCmdLineParser class
907 --enable-datetime use wxDateTime class
908 --enable-dialupman use dialup network classes
909 --enable-dynlib use wxLibrary class for DLL loading
910 --enable-dynamicloader use (new) wxDynamicLibrary class
911 --enable-exceptions build exception-safe library
912 --enable-ffile use wxFFile class
913 --enable-file use wxFile class
914 --enable-filesystem use virtual file systems classes
915 --enable-fontmap use font encodings conversion classes
916 --enable-fs_inet use virtual HTTP/FTP filesystems
917 --enable-fs_zip use virtual ZIP filesystems
918 --enable-geometry use geometry class
919 --enable-log use logging system
920 --enable-longlong use wxLongLong class
921 --enable-mimetype use wxMimeTypesManager
922 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
923 --enable-snglinst use wxSingleInstanceChecker class
924 --enable-streams use wxStream etc classes
925 --enable-std_iostreams use standard C++ stream classes
926 --enable-stopwatch use wxStopWatch class
927 --enable-sysoptions use wxSystemOptions
928 --enable-textbuf use wxTextBuffer class
929 --enable-textfile use wxTextFile class
930 --enable-timer use wxTimer class
931 --enable-unicode compile wxString with Unicode support
932 --enable-sound use wxSound class
933 --enable-wxprintfv use wxWindows implementation of vprintf()
934 --enable-zipstream use wxZipInputStream
935 --enable-gzstream use wxGzipInputStream
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
947 --enable-constraints use layout-constraints system
948 --enable-printarch use printing architecture
949 --enable-mdi use multiple document interface architecture
950 --enable-loggui use standard GUI logger
951 --enable-logwin use wxLogWindow
952 --enable-logdialog use wxLogDialog
953 --enable-postscript use wxPostscriptDC device context (default for gtk+)
954 --enable-prologio not available; see contrib
955 --enable-resources not available; see contrib
956 --enable-clipboard use wxClipboard class
957 --enable-dnd use Drag'n'Drop classes
958 --enable-metafile use win32 metafiles
959 --enable-controls use all usual controls
960 --enable-accel use accelerators
961 --enable-button use wxButton class
962 --enable-bmpbutton use wxBitmapButton class
963 --enable-calendar use wxCalendarCtrl class
964 --enable-caret use wxCaret class
965 --enable-checkbox use wxCheckBox class
966 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
967 --enable-choice use wxChoice class
968 --enable-combobox use wxComboBox class
969 --enable-display use wxDisplay class
970 --enable-gauge use wxGauge class
971 --enable-grid use wxGrid class
972 --enable-imaglist use wxImageList class
973 --enable-listbook use wxListbook class
974 --enable-listbox use wxListBox class
975 --enable-listctrl use wxListCtrl class
976 --enable-notebook use wxNotebook class
977 --enable-radiobox use wxRadioBox class
978 --enable-radiobtn use wxRadioButton class
979 --enable-sash use wxSashWindow class
980 --enable-scrollbar use wxScrollBar class and scrollable windows
981 --enable-slider use wxSlider class
982 --enable-spinbtn use wxSpinButton class
983 --enable-spinctrl use wxSpinCtrl class
984 --enable-splitter use wxSplitterWindow class
985 --enable-statbmp use wxStaticBitmap class
986 --enable-statbox use wxStaticBox class
987 --enable-statline use wxStaticLine class
988 --enable-stattext use wxStaticText class
989 --enable-statusbar use wxStatusBar class
990 --enable-tabdialog use wxTabControl class
991 --enable-textctrl use wxTextCtrl class
992 --enable-togglebtn use wxToggleButton class
993 --enable-toolbar use wxToolBar class
994 --enable-tbarnative use native wxToolBar class
995 --enable-tbarsmpl use wxToolBarSimple class
996 --enable-treectrl use wxTreeCtrl class
997 --enable-tipwindow use wxTipWindow class
998 --enable-popupwin use wxPopUpWindow class
999 --enable-commondlg use all common dialogs
1000 --enable-choicedlg use wxChoiceDialog
1001 --enable-coldlg use wxColourDialog
1002 --enable-filedlg use wxFileDialog
1003 --enable-finddlg use wxFindReplaceDialog
1004 --enable-fontdlg use wxFontDialog
1005 --enable-dirdlg use wxDirDialog
1006 --enable-msgdlg use wxMessageDialog
1007 --enable-numberdlg use wxNumberEntryDialog
1008 --enable-splash use wxSplashScreen
1009 --enable-textdlg use wxTextDialog
1010 --enable-tipdlg use startup tips
1011 --enable-progressdlg use wxProgressDialog
1012 --enable-wizarddlg use wxWizard
1013 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1014 --enable-miniframe use wxMiniFrame class
1015 --enable-tooltips use wxToolTip class
1016 --enable-splines use spline drawing code
1017 --enable-validators use wxValidator and derived classes
1018 --enable-busyinfo use wxBusyInfo
1019 --enable-joystick use wxJoystick (Linux only)
1020 --enable-metafiles use wxMetaFile (Windows only)
1021 --enable-dragimage use wxDragImage
1022 --enable-accessibility enable accessibility support
1023 --enable-palette use wxPalette class
1024 --enable-image use wxImage class
1025 --enable-gif use gif images (GIF file format)
1026 --enable-pcx use pcx images (PCX file format)
1027 --enable-iff use iff images (IFF file format)
1028 --enable-pnm use pnm images (PNM file format)
1029 --enable-xpm use xpm images (XPM file format)
1030 --enable-icocur use Windows ICO and CUR formats
1031 --enable-official_build official build of wxWindows (win32 DLL only)
1032 --enable-vendor=VENDOR vendor name (win32 DLL only)
1033 --disable-largefile omit support for large files
1034 --disable-gtktest do not try to compile and run a test GTK+ program
1035 --disable-gtktest Do not try to compile and run a test GTK program
1036 --disable-sdltest Do not try to compile and run a test SDL program
1037 --disable-precomp-headers don't use precompiled headers even if compiler can
1038
1039 Optional Packages:
1040 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1041 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1042 --with-gtk use GTK+
1043 --with-motif use Motif/Lesstif
1044 --with-mac use Mac OS X
1045 --with-cocoa use Cocoa
1046 --with-wine use Wine
1047 --with-msw use MS-Windows
1048 --with-pm use OS/2 Presentation Manager
1049 --with-mgl use SciTech MGL
1050 --with-microwin use MicroWindows
1051 --with-x11 use X11
1052 --with-libpng use libpng (PNG image format)
1053 --with-libjpeg use libjpeg (JPEG file format)
1054 --with-libtiff use libtiff (TIFF file format)
1055 --with-libxpm use libxpm (XPM file format)
1056 --with-libmspack use libmspack (CHM help files loading)
1057 --with-sdl use SDL for audio on Unix
1058 --with-opengl use OpenGL (or Mesa)
1059 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1060 --with-regex enable support for wxRegEx class
1061 --with-zlib use zlib for LZW compression
1062 --with-odbc use the IODBC and wxODBC classes
1063 --with-expat enable XML support using expat parser
1064 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1065 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1066 --with-x use the X Window System
1067 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1068 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1069 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1070
1071 Some influential environment variables:
1072 CC C compiler command
1073 CFLAGS C compiler flags
1074 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1075 nonstandard directory <lib dir>
1076 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1077 headers in a nonstandard directory <include dir>
1078 CPP C preprocessor
1079 CXX C++ compiler command
1080 CXXFLAGS C++ compiler flags
1081 CXXCPP C++ preprocessor
1082
1083 Use these variables to override the choices made by `configure' or to help
1084 it to find libraries and programs with nonstandard names/locations.
1085
1086 Report bugs to <wx-dev@lists.wxwindows.org>.
1087 _ACEOF
1088 fi
1089
1090 if test "$ac_init_help" = "recursive"; then
1091 # If there are subdirs, report their specific --help.
1092 ac_popdir=`pwd`
1093 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1094 test -d $ac_dir || continue
1095 ac_builddir=.
1096
1097 if test "$ac_dir" != .; then
1098 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1099 # A "../" for each directory in $ac_dir_suffix.
1100 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1101 else
1102 ac_dir_suffix= ac_top_builddir=
1103 fi
1104
1105 case $srcdir in
1106 .) # No --srcdir option. We are building in place.
1107 ac_srcdir=.
1108 if test -z "$ac_top_builddir"; then
1109 ac_top_srcdir=.
1110 else
1111 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1112 fi ;;
1113 [\\/]* | ?:[\\/]* ) # Absolute path.
1114 ac_srcdir=$srcdir$ac_dir_suffix;
1115 ac_top_srcdir=$srcdir ;;
1116 *) # Relative path.
1117 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1118 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1119 esac
1120
1121 # Do not use `cd foo && pwd` to compute absolute paths, because
1122 # the directories may not exist.
1123 case `pwd` in
1124 .) ac_abs_builddir="$ac_dir";;
1125 *)
1126 case "$ac_dir" in
1127 .) ac_abs_builddir=`pwd`;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1129 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1130 esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 *)
1135 case ${ac_top_builddir}. in
1136 .) ac_abs_top_builddir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1138 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1139 esac;;
1140 esac
1141 case $ac_abs_builddir in
1142 .) ac_abs_srcdir=$ac_srcdir;;
1143 *)
1144 case $ac_srcdir in
1145 .) ac_abs_srcdir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1147 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1148 esac;;
1149 esac
1150 case $ac_abs_builddir in
1151 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 *)
1153 case $ac_top_srcdir in
1154 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1156 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1157 esac;;
1158 esac
1159
1160 cd $ac_dir
1161 # Check for guested configure; otherwise get Cygnus style configure.
1162 if test -f $ac_srcdir/configure.gnu; then
1163 echo
1164 $SHELL $ac_srcdir/configure.gnu --help=recursive
1165 elif test -f $ac_srcdir/configure; then
1166 echo
1167 $SHELL $ac_srcdir/configure --help=recursive
1168 elif test -f $ac_srcdir/configure.ac ||
1169 test -f $ac_srcdir/configure.in; then
1170 echo
1171 $ac_configure --help
1172 else
1173 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1174 fi
1175 cd "$ac_popdir"
1176 done
1177 fi
1178
1179 test -n "$ac_init_help" && exit 0
1180 if $ac_init_version; then
1181 cat <<\_ACEOF
1182 wxWindows configure 2.5.1
1183 generated by GNU Autoconf 2.59
1184
1185 Copyright (C) 2003 Free Software Foundation, Inc.
1186 This configure script is free software; the Free Software Foundation
1187 gives unlimited permission to copy, distribute and modify it.
1188 _ACEOF
1189 exit 0
1190 fi
1191 exec 5>config.log
1192 cat >&5 <<_ACEOF
1193 This file contains any messages produced by compilers while
1194 running configure, to aid debugging if configure makes a mistake.
1195
1196 It was created by wxWindows $as_me 2.5.1, which was
1197 generated by GNU Autoconf 2.59. Invocation command line was
1198
1199 $ $0 $@
1200
1201 _ACEOF
1202 {
1203 cat <<_ASUNAME
1204 ## --------- ##
1205 ## Platform. ##
1206 ## --------- ##
1207
1208 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1209 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1210 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1211 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1212 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1213
1214 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1215 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1216
1217 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1218 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1219 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1220 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1221 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1222 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1223 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1224
1225 _ASUNAME
1226
1227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1228 for as_dir in $PATH
1229 do
1230 IFS=$as_save_IFS
1231 test -z "$as_dir" && as_dir=.
1232 echo "PATH: $as_dir"
1233 done
1234
1235 } >&5
1236
1237 cat >&5 <<_ACEOF
1238
1239
1240 ## ----------- ##
1241 ## Core tests. ##
1242 ## ----------- ##
1243
1244 _ACEOF
1245
1246
1247 # Keep a trace of the command line.
1248 # Strip out --no-create and --no-recursion so they do not pile up.
1249 # Strip out --silent because we don't want to record it for future runs.
1250 # Also quote any args containing shell meta-characters.
1251 # Make two passes to allow for proper duplicate-argument suppression.
1252 ac_configure_args=
1253 ac_configure_args0=
1254 ac_configure_args1=
1255 ac_sep=
1256 ac_must_keep_next=false
1257 for ac_pass in 1 2
1258 do
1259 for ac_arg
1260 do
1261 case $ac_arg in
1262 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264 | -silent | --silent | --silen | --sile | --sil)
1265 continue ;;
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 esac
1269 case $ac_pass in
1270 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1271 2)
1272 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1273 if test $ac_must_keep_next = true; then
1274 ac_must_keep_next=false # Got value, back to normal.
1275 else
1276 case $ac_arg in
1277 *=* | --config-cache | -C | -disable-* | --disable-* \
1278 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1279 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1280 | -with-* | --with-* | -without-* | --without-* | --x)
1281 case "$ac_configure_args0 " in
1282 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1283 esac
1284 ;;
1285 -* ) ac_must_keep_next=true ;;
1286 esac
1287 fi
1288 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1289 # Get rid of the leading space.
1290 ac_sep=" "
1291 ;;
1292 esac
1293 done
1294 done
1295 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1296 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1297
1298 # When interrupted or exit'd, cleanup temporary files, and complete
1299 # config.log. We remove comments because anyway the quotes in there
1300 # would cause problems or look ugly.
1301 # WARNING: Be sure not to use single quotes in there, as some shells,
1302 # such as our DU 5.0 friend, will then `close' the trap.
1303 trap 'exit_status=$?
1304 # Save into config.log some information that might help in debugging.
1305 {
1306 echo
1307
1308 cat <<\_ASBOX
1309 ## ---------------- ##
1310 ## Cache variables. ##
1311 ## ---------------- ##
1312 _ASBOX
1313 echo
1314 # The following way of writing the cache mishandles newlines in values,
1315 {
1316 (set) 2>&1 |
1317 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1318 *ac_space=\ *)
1319 sed -n \
1320 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1322 ;;
1323 *)
1324 sed -n \
1325 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1326 ;;
1327 esac;
1328 }
1329 echo
1330
1331 cat <<\_ASBOX
1332 ## ----------------- ##
1333 ## Output variables. ##
1334 ## ----------------- ##
1335 _ASBOX
1336 echo
1337 for ac_var in $ac_subst_vars
1338 do
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1341 done | sort
1342 echo
1343
1344 if test -n "$ac_subst_files"; then
1345 cat <<\_ASBOX
1346 ## ------------- ##
1347 ## Output files. ##
1348 ## ------------- ##
1349 _ASBOX
1350 echo
1351 for ac_var in $ac_subst_files
1352 do
1353 eval ac_val=$`echo $ac_var`
1354 echo "$ac_var='"'"'$ac_val'"'"'"
1355 done | sort
1356 echo
1357 fi
1358
1359 if test -s confdefs.h; then
1360 cat <<\_ASBOX
1361 ## ----------- ##
1362 ## confdefs.h. ##
1363 ## ----------- ##
1364 _ASBOX
1365 echo
1366 sed "/^$/d" confdefs.h | sort
1367 echo
1368 fi
1369 test "$ac_signal" != 0 &&
1370 echo "$as_me: caught signal $ac_signal"
1371 echo "$as_me: exit $exit_status"
1372 } >&5
1373 rm -f core *.core &&
1374 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1375 exit $exit_status
1376 ' 0
1377 for ac_signal in 1 2 13 15; do
1378 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1379 done
1380 ac_signal=0
1381
1382 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1383 rm -rf conftest* confdefs.h
1384 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1385 echo >confdefs.h
1386
1387 # Predefined preprocessor variables.
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_NAME "$PACKAGE_NAME"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1396 _ACEOF
1397
1398
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1401 _ACEOF
1402
1403
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_STRING "$PACKAGE_STRING"
1406 _ACEOF
1407
1408
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1411 _ACEOF
1412
1413
1414 # Let the site file select an alternate cache file if it wants to.
1415 # Prefer explicitly selected file to automatically selected ones.
1416 if test -z "$CONFIG_SITE"; then
1417 if test "x$prefix" != xNONE; then
1418 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1419 else
1420 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1421 fi
1422 fi
1423 for ac_site_file in $CONFIG_SITE; do
1424 if test -r "$ac_site_file"; then
1425 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1426 echo "$as_me: loading site script $ac_site_file" >&6;}
1427 sed 's/^/| /' "$ac_site_file" >&5
1428 . "$ac_site_file"
1429 fi
1430 done
1431
1432 if test -r "$cache_file"; then
1433 # Some versions of bash will fail to source /dev/null (special
1434 # files actually), so we avoid doing that.
1435 if test -f "$cache_file"; then
1436 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1437 echo "$as_me: loading cache $cache_file" >&6;}
1438 case $cache_file in
1439 [\\/]* | ?:[\\/]* ) . $cache_file;;
1440 *) . ./$cache_file;;
1441 esac
1442 fi
1443 else
1444 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1445 echo "$as_me: creating cache $cache_file" >&6;}
1446 >$cache_file
1447 fi
1448
1449 # Check that the precious variables saved in the cache have kept the same
1450 # value.
1451 ac_cache_corrupted=false
1452 for ac_var in `(set) 2>&1 |
1453 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1454 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1455 eval ac_new_set=\$ac_env_${ac_var}_set
1456 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1457 eval ac_new_val="\$ac_env_${ac_var}_value"
1458 case $ac_old_set,$ac_new_set in
1459 set,)
1460 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1461 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1462 ac_cache_corrupted=: ;;
1463 ,set)
1464 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1465 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1466 ac_cache_corrupted=: ;;
1467 ,);;
1468 *)
1469 if test "x$ac_old_val" != "x$ac_new_val"; then
1470 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1471 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1472 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1473 echo "$as_me: former value: $ac_old_val" >&2;}
1474 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1475 echo "$as_me: current value: $ac_new_val" >&2;}
1476 ac_cache_corrupted=:
1477 fi;;
1478 esac
1479 # Pass precious variables to config.status.
1480 if test "$ac_new_set" = set; then
1481 case $ac_new_val in
1482 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1483 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1484 *) ac_arg=$ac_var=$ac_new_val ;;
1485 esac
1486 case " $ac_configure_args " in
1487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1488 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1489 esac
1490 fi
1491 done
1492 if $ac_cache_corrupted; then
1493 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1494 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1495 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1496 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1497 { (exit 1); exit 1; }; }
1498 fi
1499
1500 ac_ext=c
1501 ac_cpp='$CPP $CPPFLAGS'
1502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535 ac_aux_dir=
1536 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1537 if test -f $ac_dir/install-sh; then
1538 ac_aux_dir=$ac_dir
1539 ac_install_sh="$ac_aux_dir/install-sh -c"
1540 break
1541 elif test -f $ac_dir/install.sh; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install.sh -c"
1544 break
1545 elif test -f $ac_dir/shtool; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 break
1549 fi
1550 done
1551 if test -z "$ac_aux_dir"; then
1552 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1553 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1554 { (exit 1); exit 1; }; }
1555 fi
1556 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
1560 # Make sure we can run config.sub.
1561 $ac_config_sub sun4 >/dev/null 2>&1 ||
1562 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1563 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1564 { (exit 1); exit 1; }; }
1565
1566 echo "$as_me:$LINENO: checking build system type" >&5
1567 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1568 if test "${ac_cv_build+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571 ac_cv_build_alias=$build_alias
1572 test -z "$ac_cv_build_alias" &&
1573 ac_cv_build_alias=`$ac_config_guess`
1574 test -z "$ac_cv_build_alias" &&
1575 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1576 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1577 { (exit 1); exit 1; }; }
1578 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1579 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1580 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1581 { (exit 1); exit 1; }; }
1582
1583 fi
1584 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1585 echo "${ECHO_T}$ac_cv_build" >&6
1586 build=$ac_cv_build
1587 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590
1591
1592 echo "$as_me:$LINENO: checking host system type" >&5
1593 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1594 if test "${ac_cv_host+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 else
1597 ac_cv_host_alias=$host_alias
1598 test -z "$ac_cv_host_alias" &&
1599 ac_cv_host_alias=$ac_cv_build_alias
1600 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1601 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1602 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1603 { (exit 1); exit 1; }; }
1604
1605 fi
1606 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1607 echo "${ECHO_T}$ac_cv_host" >&6
1608 host=$ac_cv_host
1609 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1610 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1611 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1612
1613
1614 echo "$as_me:$LINENO: checking target system type" >&5
1615 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1616 if test "${ac_cv_target+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619 ac_cv_target_alias=$target_alias
1620 test "x$ac_cv_target_alias" = "x" &&
1621 ac_cv_target_alias=$ac_cv_host_alias
1622 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1623 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1624 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1625 { (exit 1); exit 1; }; }
1626
1627 fi
1628 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1629 echo "${ECHO_T}$ac_cv_target" >&6
1630 target=$ac_cv_target
1631 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1632 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1633 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1634
1635
1636 # The aliases save the names the user supplied, while $host etc.
1637 # will get canonicalized.
1638 test -n "$target_alias" &&
1639 test "$program_prefix$program_suffix$program_transform_name" = \
1640 NONENONEs,x,x, &&
1641 program_prefix=${target_alias}-
1642
1643
1644
1645 WX_MAJOR_VERSION_NUMBER=2
1646 WX_MINOR_VERSION_NUMBER=5
1647 WX_RELEASE_NUMBER=1
1648
1649 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1650 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1651
1652 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1653
1654 WX_CURRENT=1
1655 WX_REVISION=0
1656 WX_AGE=0
1657
1658
1659
1660 USE_UNIX=1
1661 USE_OS2=0
1662 USE_WIN32=0
1663 USE_DOS=0
1664 USE_BEOS=0
1665 USE_MAC=0
1666
1667 USE_AIX=
1668 USE_BSD= USE_DARWIN= USE_FREEBSD=
1669 USE_GNU= USE_HPUX=
1670 USE_LINUX=
1671 USE_NETBSD=
1672 USE_OPENBSD=
1673 USE_OSF= USE_SGI=
1674 USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1675 USE_ULTRIX=
1676 USE_UNIXWARE=
1677
1678 USE_ALPHA=
1679
1680 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1681
1682 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1683
1684 DEFAULT_wxUSE_COCOA=0
1685 DEFAULT_wxUSE_GTK=0
1686 DEFAULT_wxUSE_MAC=0
1687 DEFAULT_wxUSE_MGL=0
1688 DEFAULT_wxUSE_MICROWIN=0
1689 DEFAULT_wxUSE_MOTIF=0
1690 DEFAULT_wxUSE_MSW=0
1691 DEFAULT_wxUSE_PM=0
1692 DEFAULT_wxUSE_X11=0
1693
1694 DEFAULT_DEFAULT_wxUSE_COCOA=0
1695 DEFAULT_DEFAULT_wxUSE_GTK=0
1696 DEFAULT_DEFAULT_wxUSE_MAC=0
1697 DEFAULT_DEFAULT_wxUSE_MGL=0
1698 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1699 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1700 DEFAULT_DEFAULT_wxUSE_MSW=0
1701 DEFAULT_DEFAULT_wxUSE_PM=0
1702 DEFAULT_DEFAULT_wxUSE_X11=0
1703
1704 PROGRAM_EXT=
1705 SO_SUFFIX=so
1706 SAMPLES_RPATH_FLAG=
1707 SAMPLES_RPATH_POSTLINK=
1708
1709 case "${host}" in
1710 *-hp-hpux* )
1711 USE_HPUX=1
1712 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1713 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1714 SO_SUFFIX=sl
1715 cat >>confdefs.h <<\_ACEOF
1716 #define __HPUX__ 1
1717 _ACEOF
1718
1719 ;;
1720 *-*-linux* )
1721 USE_LINUX=1
1722 cat >>confdefs.h <<\_ACEOF
1723 #define __LINUX__ 1
1724 _ACEOF
1725
1726 TMP=`uname -m`
1727 if test "x$TMP" = "xalpha"; then
1728 USE_ALPHA=1
1729 cat >>confdefs.h <<\_ACEOF
1730 #define __ALPHA__ 1
1731 _ACEOF
1732
1733 fi
1734 DEFAULT_DEFAULT_wxUSE_GTK=1
1735 ;;
1736 *-*-gnu* | *-*-k*bsd*-gnu )
1737 USE_GNU=1
1738 TMP=`uname -m`
1739 if test "x$TMP" = "xalpha"; then
1740 USE_ALPHA=1
1741 cat >>confdefs.h <<\_ACEOF
1742 #define __ALPHA__ 1
1743 _ACEOF
1744
1745 fi
1746 DEFAULT_DEFAULT_wxUSE_GTK=1
1747 ;;
1748 *-*-irix5* | *-*-irix6* )
1749 USE_SGI=1
1750 USE_SVR4=1
1751 cat >>confdefs.h <<\_ACEOF
1752 #define __SGI__ 1
1753 _ACEOF
1754
1755 cat >>confdefs.h <<\_ACEOF
1756 #define __SVR4__ 1
1757 _ACEOF
1758
1759 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1760 ;;
1761 *-*-solaris2* )
1762 USE_SUN=1
1763 USE_SOLARIS=1
1764 USE_SVR4=1
1765 cat >>confdefs.h <<\_ACEOF
1766 #define __SUN__ 1
1767 _ACEOF
1768
1769 cat >>confdefs.h <<\_ACEOF
1770 #define __SOLARIS__ 1
1771 _ACEOF
1772
1773 cat >>confdefs.h <<\_ACEOF
1774 #define __SVR4__ 1
1775 _ACEOF
1776
1777 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1778 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1779 ;;
1780 *-*-sunos4* )
1781 USE_SUN=1
1782 USE_SUNOS=1
1783 USE_BSD=1
1784 cat >>confdefs.h <<\_ACEOF
1785 #define __SUN__ 1
1786 _ACEOF
1787
1788 cat >>confdefs.h <<\_ACEOF
1789 #define __SUNOS__ 1
1790 _ACEOF
1791
1792 cat >>confdefs.h <<\_ACEOF
1793 #define __BSD__ 1
1794 _ACEOF
1795
1796 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1797 ;;
1798 *-*-freebsd*)
1799 USE_BSD=1
1800 USE_FREEBSD=1
1801 cat >>confdefs.h <<\_ACEOF
1802 #define __FREEBSD__ 1
1803 _ACEOF
1804
1805 cat >>confdefs.h <<\_ACEOF
1806 #define __BSD__ 1
1807 _ACEOF
1808
1809 DEFAULT_DEFAULT_wxUSE_GTK=1
1810 ;;
1811 *-*-openbsd*)
1812 USE_BSD=1
1813 USE_OPENBSD=1
1814 cat >>confdefs.h <<\_ACEOF
1815 #define __OPENBSD__ 1
1816 _ACEOF
1817
1818 cat >>confdefs.h <<\_ACEOF
1819 #define __BSD__ 1
1820 _ACEOF
1821
1822 DEFAULT_DEFAULT_wxUSE_GTK=1
1823 ;;
1824 *-*-netbsd*)
1825 USE_BSD=1
1826 USE_NETBSD=1
1827 cat >>confdefs.h <<\_ACEOF
1828 #define __NETBSD__ 1
1829 _ACEOF
1830
1831 cat >>confdefs.h <<\_ACEOF
1832 #define __BSD__ 1
1833 _ACEOF
1834
1835 DEFAULT_DEFAULT_wxUSE_GTK=1
1836 ;;
1837 *-*-osf* )
1838 USE_ALPHA=1
1839 USE_OSF=1
1840 cat >>confdefs.h <<\_ACEOF
1841 #define __ALPHA__ 1
1842 _ACEOF
1843
1844 cat >>confdefs.h <<\_ACEOF
1845 #define __OSF__ 1
1846 _ACEOF
1847
1848 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1849 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1850 ;;
1851 *-*-dgux5* )
1852 USE_ALPHA=1
1853 USE_SVR4=1
1854 cat >>confdefs.h <<\_ACEOF
1855 #define __ALPHA__ 1
1856 _ACEOF
1857
1858 cat >>confdefs.h <<\_ACEOF
1859 #define __SVR4__ 1
1860 _ACEOF
1861
1862 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1863 ;;
1864 *-*-sysv5* )
1865 USE_SYSV=1
1866 USE_SVR4=1
1867 cat >>confdefs.h <<\_ACEOF
1868 #define __SYSV__ 1
1869 _ACEOF
1870
1871 cat >>confdefs.h <<\_ACEOF
1872 #define __SVR4__ 1
1873 _ACEOF
1874
1875 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1876 ;;
1877 *-*-aix* )
1878 USE_AIX=1
1879 USE_SYSV=1
1880 USE_SVR4=1
1881 SO_SUFFIX=a
1882 cat >>confdefs.h <<\_ACEOF
1883 #define __AIX__ 1
1884 _ACEOF
1885
1886 cat >>confdefs.h <<\_ACEOF
1887 #define __SYSV__ 1
1888 _ACEOF
1889
1890 cat >>confdefs.h <<\_ACEOF
1891 #define __SVR4__ 1
1892 _ACEOF
1893
1894 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1895 ;;
1896
1897 *-*-*UnixWare*)
1898 USE_SYSV=1
1899 USE_SVR4=1
1900 USE_UNIXWARE=1
1901 cat >>confdefs.h <<\_ACEOF
1902 #define __UNIXWARE__ 1
1903 _ACEOF
1904
1905 ;;
1906
1907 *-*-cygwin* | *-*-mingw32* )
1908 SO_SUFFIX=dll
1909 PROGRAM_EXT=".exe"
1910 RESCOMP=windres
1911 DEFAULT_DEFAULT_wxUSE_MSW=1
1912 ;;
1913
1914 *-pc-msdosdjgpp )
1915 USE_UNIX=0
1916 USE_DOS=1
1917 cat >>confdefs.h <<\_ACEOF
1918 #define __DOS__ 1
1919 _ACEOF
1920
1921 PROGRAM_EXT=".exe"
1922 DEFAULT_DEFAULT_wxUSE_MGL=1
1923 LIBS="$LIBS -lstdc++"
1924 ;;
1925
1926 *-pc-os2_emx | *-pc-os2-emx )
1927 cat >>confdefs.h <<\_ACEOF
1928 #define __EMX__ 1
1929 _ACEOF
1930
1931 USE_OS2=1
1932 cat >>confdefs.h <<\_ACEOF
1933 #define __OS2__ 1
1934 _ACEOF
1935
1936 PROGRAM_EXT=".exe"
1937 DEFAULT_DEFAULT_wxUSE_PM=1
1938 CXX=gcc
1939 LDFLAGS="$LDFLAGS -Zcrtdll"
1940 ac_executable_extensions=".exe"
1941 export ac_executable_extensions
1942 ac_save_IFS="$IFS"
1943 IFS='\\'
1944 ac_TEMP_PATH=
1945 for ac_dir in $PATH; do
1946 IFS=$ac_save_IFS
1947 if test -z "$ac_TEMP_PATH"; then
1948 ac_TEMP_PATH="$ac_dir"
1949 else
1950 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1951 fi
1952 done
1953 export PATH="$ac_TEMP_PATH"
1954 unset ac_TEMP_PATH
1955 ;;
1956
1957 powerpc-*-darwin* )
1958 USE_BSD=1
1959 USE_DARWIN=1
1960 SO_SUFFIX=dylib
1961 cat >>confdefs.h <<\_ACEOF
1962 #define __BSD__ 1
1963 _ACEOF
1964
1965 cat >>confdefs.h <<\_ACEOF
1966 #define __DARWIN__ 1
1967 _ACEOF
1968
1969 cat >>confdefs.h <<\_ACEOF
1970 #define __POWERPC__ 1
1971 _ACEOF
1972
1973 cat >>confdefs.h <<\_ACEOF
1974 #define TARGET_CARBON 1
1975 _ACEOF
1976
1977 DEFAULT_DEFAULT_wxUSE_MAC=1
1978 ;;
1979
1980 *-*-beos* )
1981 USE_BEOS=1
1982 cat >>confdefs.h <<\_ACEOF
1983 #define __BEOS__ 1
1984 _ACEOF
1985
1986 ;;
1987
1988 *)
1989 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1990 echo "$as_me: error: unknown system type ${host}." >&2;}
1991 { (exit 1); exit 1; }; }
1992 esac
1993
1994
1995
1996
1997 wx_arg_cache_file="configarg.cache"
1998 echo "loading argument cache $wx_arg_cache_file"
1999 rm -f ${wx_arg_cache_file}.tmp
2000 touch ${wx_arg_cache_file}.tmp
2001 touch ${wx_arg_cache_file}
2002
2003
2004 DEBUG_CONFIGURE=0
2005 if test $DEBUG_CONFIGURE = 1; then
2006 DEFAULT_wxUSE_UNIVERSAL=no
2007 DEFAULT_wxUSE_STL=no
2008
2009 DEFAULT_wxUSE_NANOX=no
2010
2011 DEFAULT_wxUSE_THREADS=yes
2012
2013 DEFAULT_wxUSE_SHARED=yes
2014 DEFAULT_wxUSE_OPTIMISE=no
2015 DEFAULT_wxUSE_PROFILE=no
2016 DEFAULT_wxUSE_NO_DEPS=no
2017 DEFAULT_wxUSE_NO_RTTI=no
2018 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2019 DEFAULT_wxUSE_PERMISSIVE=no
2020 DEFAULT_wxUSE_DEBUG_FLAG=yes
2021 DEFAULT_wxUSE_DEBUG_INFO=yes
2022 DEFAULT_wxUSE_DEBUG_GDB=yes
2023 DEFAULT_wxUSE_MEM_TRACING=no
2024 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2025 DEFAULT_wxUSE_DMALLOC=no
2026 DEFAULT_wxUSE_APPLE_IEEE=no
2027
2028 DEFAULT_wxUSE_EXCEPTIONS=no
2029 DEFAULT_wxUSE_LOG=yes
2030 DEFAULT_wxUSE_LOGWINDOW=no
2031 DEFAULT_wxUSE_LOGGUI=no
2032 DEFAULT_wxUSE_LOGDIALOG=no
2033
2034 DEFAULT_wxUSE_GUI=yes
2035 DEFAULT_wxUSE_CONTROLS=no
2036
2037 DEFAULT_wxUSE_REGEX=no
2038 DEFAULT_wxUSE_XML=no
2039 DEFAULT_wxUSE_EXPAT=no
2040 DEFAULT_wxUSE_ZLIB=no
2041 DEFAULT_wxUSE_LIBPNG=no
2042 DEFAULT_wxUSE_LIBJPEG=no
2043 DEFAULT_wxUSE_LIBTIFF=no
2044 DEFAULT_wxUSE_LIBXPM=no
2045 DEFAULT_wxUSE_LIBMSPACK=no
2046 DEFAULT_wxUSE_LIBSDL=no
2047 DEFAULT_wxUSE_ODBC=no
2048 DEFAULT_wxUSE_OPENGL=no
2049
2050 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2051 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2052 DEFAULT_wxUSE_STD_IOSTREAM=no
2053 DEFAULT_wxUSE_CMDLINE_PARSER=no
2054 DEFAULT_wxUSE_DATETIME=no
2055 DEFAULT_wxUSE_TIMER=no
2056 DEFAULT_wxUSE_STOPWATCH=no
2057 DEFAULT_wxUSE_FILE=no
2058 DEFAULT_wxUSE_FFILE=no
2059 DEFAULT_wxUSE_TEXTBUFFER=no
2060 DEFAULT_wxUSE_TEXTFILE=no
2061 DEFAULT_wxUSE_SOUND=no
2062 DEFAULT_wxUSE_INTL=no
2063 DEFAULT_wxUSE_CONFIG=no
2064 DEFAULT_wxUSE_FONTMAP=no
2065 DEFAULT_wxUSE_STREAMS=no
2066 DEFAULT_wxUSE_SOCKETS=no
2067 DEFAULT_wxUSE_OLE=no
2068 DEFAULT_wxUSE_DATAOBJ=no
2069 DEFAULT_wxUSE_DIALUP_MANAGER=no
2070 DEFAULT_wxUSE_JOYSTICK=no
2071 DEFAULT_wxUSE_DYNLIB_CLASS=no
2072 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2073 DEFAULT_wxUSE_LONGLONG=no
2074 DEFAULT_wxUSE_GEOMETRY=no
2075
2076 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2077 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2078 DEFAULT_wxUSE_POSTSCRIPT=no
2079
2080 DEFAULT_wxUSE_CLIPBOARD=no
2081 DEFAULT_wxUSE_TOOLTIPS=no
2082 DEFAULT_wxUSE_DRAG_AND_DROP=no
2083 DEFAULT_wxUSE_DRAGIMAGE=no
2084 DEFAULT_wxUSE_SPLINES=no
2085
2086 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2087 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2088 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2089
2090 DEFAULT_wxUSE_RESOURCES=no
2091 DEFAULT_wxUSE_CONSTRAINTS=no
2092 DEFAULT_wxUSE_IPC=no
2093 DEFAULT_wxUSE_HELP=no
2094 DEFAULT_wxUSE_MS_HTML_HELP=no
2095 DEFAULT_wxUSE_WXHTML_HELP=no
2096 DEFAULT_wxUSE_TREELAYOUT=no
2097 DEFAULT_wxUSE_METAFILE=no
2098 DEFAULT_wxUSE_MIMETYPE=no
2099 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2100 DEFAULT_wxUSE_PROTOCOL=no
2101 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2102 DEFAULT_wxUSE_PROTOCOL_FTP=no
2103 DEFAULT_wxUSE_PROTOCOL_FILE=no
2104 DEFAULT_wxUSE_URL=no
2105
2106 DEFAULT_wxUSE_COMMONDLGS=no
2107 DEFAULT_wxUSE_CHOICEDLG=no
2108 DEFAULT_wxUSE_COLOURDLG=no
2109 DEFAULT_wxUSE_DIRDLG=no
2110 DEFAULT_wxUSE_FILEDLG=no
2111 DEFAULT_wxUSE_FINDREPLDLG=no
2112 DEFAULT_wxUSE_FONTDLG=no
2113 DEFAULT_wxUSE_MSGDLG=no
2114 DEFAULT_wxUSE_NUMBERDLG=no
2115 DEFAULT_wxUSE_TEXTDLG=no
2116 DEFAULT_wxUSE_SPLASH=no
2117 DEFAULT_wxUSE_STARTUP_TIPS=no
2118 DEFAULT_wxUSE_PROGRESSDLG=no
2119 DEFAULT_wxUSE_WIZARDDLG=no
2120
2121 DEFAULT_wxUSE_MENUS=no
2122 DEFAULT_wxUSE_MINIFRAME=no
2123 DEFAULT_wxUSE_HTML=no
2124 DEFAULT_wxUSE_FILESYSTEM=no
2125 DEFAULT_wxUSE_FS_INET=no
2126 DEFAULT_wxUSE_FS_ZIP=no
2127 DEFAULT_wxUSE_BUSYINFO=no
2128 DEFAULT_wxUSE_ZIPSTREAM=no
2129 DEFAULT_wxUSE_GZSTREAM=no
2130 DEFAULT_wxUSE_VALIDATORS=no
2131
2132 DEFAULT_wxUSE_ACCEL=no
2133 DEFAULT_wxUSE_BUTTON=no
2134 DEFAULT_wxUSE_BMPBUTTON=no
2135 DEFAULT_wxUSE_CALCTRL=no
2136 DEFAULT_wxUSE_CARET=no
2137 DEFAULT_wxUSE_CHECKBOX=no
2138 DEFAULT_wxUSE_CHECKLST=no
2139 DEFAULT_wxUSE_CHOICE=no
2140 DEFAULT_wxUSE_COMBOBOX=no
2141 DEFAULT_wxUSE_DISPLAY=no
2142 DEFAULT_wxUSE_GAUGE=no
2143 DEFAULT_wxUSE_GRID=no
2144 DEFAULT_wxUSE_IMAGLIST=no
2145 DEFAULT_wxUSE_LISTBOOK=no
2146 DEFAULT_wxUSE_LISTBOX=no
2147 DEFAULT_wxUSE_LISTCTRL=no
2148 DEFAULT_wxUSE_NOTEBOOK=no
2149 DEFAULT_wxUSE_RADIOBOX=no
2150 DEFAULT_wxUSE_RADIOBTN=no
2151 DEFAULT_wxUSE_SASH=no
2152 DEFAULT_wxUSE_SCROLLBAR=no
2153 DEFAULT_wxUSE_SLIDER=no
2154 DEFAULT_wxUSE_SPINBTN=no
2155 DEFAULT_wxUSE_SPINCTRL=no
2156 DEFAULT_wxUSE_SPLITTER=no
2157 DEFAULT_wxUSE_STATBMP=no
2158 DEFAULT_wxUSE_STATBOX=no
2159 DEFAULT_wxUSE_STATLINE=no
2160 DEFAULT_wxUSE_STATTEXT=no
2161 DEFAULT_wxUSE_STATUSBAR=yes
2162 DEFAULT_wxUSE_TABDIALOG=no
2163 DEFAULT_wxUSE_TEXTCTRL=no
2164 DEFAULT_wxUSE_TOGGLEBTN=no
2165 DEFAULT_wxUSE_TOOLBAR=no
2166 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2167 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2168 DEFAULT_wxUSE_TREECTRL=no
2169 DEFAULT_wxUSE_POPUPWIN=no
2170 DEFAULT_wxUSE_TIPWINDOW=no
2171
2172 DEFAULT_wxUSE_UNICODE=no
2173 DEFAULT_wxUSE_UNICODE_MSLU=no
2174 DEFAULT_wxUSE_WCSRTOMBS=no
2175
2176 DEFAULT_wxUSE_PALETTE=no
2177 DEFAULT_wxUSE_IMAGE=no
2178 DEFAULT_wxUSE_GIF=no
2179 DEFAULT_wxUSE_PCX=no
2180 DEFAULT_wxUSE_PNM=no
2181 DEFAULT_wxUSE_IFF=no
2182 DEFAULT_wxUSE_XPM=no
2183 DEFAULT_wxUSE_ICO_CUR=no
2184 DEFAULT_wxUSE_ACCESSIBILITY=no
2185
2186 DEFAULT_wxUSE_MONOLITHIC=no
2187 DEFAULT_wxUSE_PLUGINS=no
2188 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2189 else
2190 DEFAULT_wxUSE_UNIVERSAL=no
2191 DEFAULT_wxUSE_STL=no
2192
2193 DEFAULT_wxUSE_NANOX=no
2194
2195 DEFAULT_wxUSE_THREADS=yes
2196
2197 DEFAULT_wxUSE_SHARED=yes
2198 DEFAULT_wxUSE_OPTIMISE=yes
2199 DEFAULT_wxUSE_PROFILE=no
2200 DEFAULT_wxUSE_NO_DEPS=no
2201 DEFAULT_wxUSE_NO_RTTI=no
2202 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2203 DEFAULT_wxUSE_PERMISSIVE=no
2204 DEFAULT_wxUSE_DEBUG_FLAG=no
2205 DEFAULT_wxUSE_DEBUG_INFO=no
2206 DEFAULT_wxUSE_DEBUG_GDB=no
2207 DEFAULT_wxUSE_MEM_TRACING=no
2208 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2209 DEFAULT_wxUSE_DMALLOC=no
2210 DEFAULT_wxUSE_APPLE_IEEE=yes
2211
2212 DEFAULT_wxUSE_EXCEPTIONS=yes
2213 DEFAULT_wxUSE_LOG=yes
2214 DEFAULT_wxUSE_LOGWINDOW=yes
2215 DEFAULT_wxUSE_LOGGUI=yes
2216 DEFAULT_wxUSE_LOGDIALOG=yes
2217
2218 DEFAULT_wxUSE_GUI=yes
2219
2220 DEFAULT_wxUSE_REGEX=yes
2221 DEFAULT_wxUSE_XML=yes
2222 DEFAULT_wxUSE_EXPAT=yes
2223 DEFAULT_wxUSE_ZLIB=yes
2224 DEFAULT_wxUSE_LIBPNG=yes
2225 DEFAULT_wxUSE_LIBJPEG=yes
2226 DEFAULT_wxUSE_LIBTIFF=yes
2227 DEFAULT_wxUSE_LIBXPM=yes
2228 DEFAULT_wxUSE_LIBMSPACK=yes
2229 DEFAULT_wxUSE_LIBSDL=no
2230 DEFAULT_wxUSE_ODBC=no
2231 DEFAULT_wxUSE_OPENGL=no
2232
2233 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2234 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2235 DEFAULT_wxUSE_STD_IOSTREAM=no
2236 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2237 DEFAULT_wxUSE_DATETIME=yes
2238 DEFAULT_wxUSE_TIMER=yes
2239 DEFAULT_wxUSE_STOPWATCH=yes
2240 DEFAULT_wxUSE_FILE=yes
2241 DEFAULT_wxUSE_FFILE=yes
2242 DEFAULT_wxUSE_TEXTBUFFER=yes
2243 DEFAULT_wxUSE_TEXTFILE=yes
2244 DEFAULT_wxUSE_SOUND=yes
2245 DEFAULT_wxUSE_INTL=yes
2246 DEFAULT_wxUSE_CONFIG=yes
2247 DEFAULT_wxUSE_FONTMAP=yes
2248 DEFAULT_wxUSE_STREAMS=yes
2249 DEFAULT_wxUSE_SOCKETS=yes
2250 DEFAULT_wxUSE_OLE=yes
2251 DEFAULT_wxUSE_DATAOBJ=yes
2252 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2253 DEFAULT_wxUSE_JOYSTICK=yes
2254 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2255 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2256 DEFAULT_wxUSE_LONGLONG=yes
2257 DEFAULT_wxUSE_GEOMETRY=yes
2258
2259 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2260 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2261 DEFAULT_wxUSE_POSTSCRIPT=yes
2262
2263 DEFAULT_wxUSE_CLIPBOARD=yes
2264 DEFAULT_wxUSE_TOOLTIPS=yes
2265 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2266 DEFAULT_wxUSE_DRAGIMAGE=yes
2267 DEFAULT_wxUSE_SPLINES=yes
2268
2269 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2270 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2271 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2272
2273 DEFAULT_wxUSE_RESOURCES=no
2274 DEFAULT_wxUSE_CONSTRAINTS=yes
2275 DEFAULT_wxUSE_IPC=yes
2276 DEFAULT_wxUSE_HELP=yes
2277 DEFAULT_wxUSE_MS_HTML_HELP=yes
2278 DEFAULT_wxUSE_WXHTML_HELP=yes
2279 DEFAULT_wxUSE_TREELAYOUT=yes
2280 DEFAULT_wxUSE_METAFILE=yes
2281 DEFAULT_wxUSE_MIMETYPE=yes
2282 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2283 DEFAULT_wxUSE_PROTOCOL=yes
2284 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2285 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2286 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2287 DEFAULT_wxUSE_URL=yes
2288
2289 DEFAULT_wxUSE_COMMONDLGS=yes
2290 DEFAULT_wxUSE_CHOICEDLG=yes
2291 DEFAULT_wxUSE_COLOURDLG=yes
2292 DEFAULT_wxUSE_DIRDLG=yes
2293 DEFAULT_wxUSE_FILEDLG=yes
2294 DEFAULT_wxUSE_FINDREPLDLG=yes
2295 DEFAULT_wxUSE_FONTDLG=yes
2296 DEFAULT_wxUSE_MSGDLG=yes
2297 DEFAULT_wxUSE_NUMBERDLG=yes
2298 DEFAULT_wxUSE_TEXTDLG=yes
2299 DEFAULT_wxUSE_SPLASH=yes
2300 DEFAULT_wxUSE_STARTUP_TIPS=yes
2301 DEFAULT_wxUSE_PROGRESSDLG=yes
2302 DEFAULT_wxUSE_WIZARDDLG=yes
2303
2304 DEFAULT_wxUSE_MENUS=yes
2305 DEFAULT_wxUSE_MINIFRAME=yes
2306 DEFAULT_wxUSE_HTML=yes
2307 DEFAULT_wxUSE_FILESYSTEM=yes
2308 DEFAULT_wxUSE_FS_INET=yes
2309 DEFAULT_wxUSE_FS_ZIP=yes
2310 DEFAULT_wxUSE_BUSYINFO=yes
2311 DEFAULT_wxUSE_ZIPSTREAM=yes
2312 DEFAULT_wxUSE_GZSTREAM=yes
2313 DEFAULT_wxUSE_VALIDATORS=yes
2314
2315 DEFAULT_wxUSE_ACCEL=yes
2316 DEFAULT_wxUSE_BUTTON=yes
2317 DEFAULT_wxUSE_BMPBUTTON=yes
2318 DEFAULT_wxUSE_CALCTRL=yes
2319 DEFAULT_wxUSE_CARET=yes
2320 DEFAULT_wxUSE_CHECKBOX=yes
2321 DEFAULT_wxUSE_CHECKLST=yes
2322 DEFAULT_wxUSE_CHOICE=yes
2323 DEFAULT_wxUSE_COMBOBOX=yes
2324 DEFAULT_wxUSE_DISPLAY=no
2325 DEFAULT_wxUSE_GAUGE=yes
2326 DEFAULT_wxUSE_GRID=yes
2327 DEFAULT_wxUSE_IMAGLIST=yes
2328 DEFAULT_wxUSE_LISTBOOK=yes
2329 DEFAULT_wxUSE_LISTBOX=yes
2330 DEFAULT_wxUSE_LISTCTRL=yes
2331 DEFAULT_wxUSE_NOTEBOOK=yes
2332 DEFAULT_wxUSE_RADIOBOX=yes
2333 DEFAULT_wxUSE_RADIOBTN=yes
2334 DEFAULT_wxUSE_SASH=yes
2335 DEFAULT_wxUSE_SCROLLBAR=yes
2336 DEFAULT_wxUSE_SLIDER=yes
2337 DEFAULT_wxUSE_SPINBTN=yes
2338 DEFAULT_wxUSE_SPINCTRL=yes
2339 DEFAULT_wxUSE_SPLITTER=yes
2340 DEFAULT_wxUSE_STATBMP=yes
2341 DEFAULT_wxUSE_STATBOX=yes
2342 DEFAULT_wxUSE_STATLINE=yes
2343 DEFAULT_wxUSE_STATTEXT=yes
2344 DEFAULT_wxUSE_STATUSBAR=yes
2345 DEFAULT_wxUSE_TABDIALOG=no
2346 DEFAULT_wxUSE_TEXTCTRL=yes
2347 DEFAULT_wxUSE_TOGGLEBTN=yes
2348 DEFAULT_wxUSE_TOOLBAR=yes
2349 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2350 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2351 DEFAULT_wxUSE_TREECTRL=yes
2352 DEFAULT_wxUSE_POPUPWIN=yes
2353 DEFAULT_wxUSE_TIPWINDOW=yes
2354
2355 DEFAULT_wxUSE_UNICODE=no
2356 DEFAULT_wxUSE_UNICODE_MSLU=yes
2357 DEFAULT_wxUSE_WCSRTOMBS=no
2358
2359 DEFAULT_wxUSE_PALETTE=yes
2360 DEFAULT_wxUSE_IMAGE=yes
2361 DEFAULT_wxUSE_GIF=yes
2362 DEFAULT_wxUSE_PCX=yes
2363 DEFAULT_wxUSE_IFF=no
2364 DEFAULT_wxUSE_PNM=yes
2365 DEFAULT_wxUSE_XPM=yes
2366 DEFAULT_wxUSE_ICO_CUR=yes
2367 DEFAULT_wxUSE_ACCESSIBILITY=no
2368
2369 DEFAULT_wxUSE_MONOLITHIC=no
2370 DEFAULT_wxUSE_PLUGINS=no
2371 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2372 fi
2373
2374
2375
2376 for toolkit in `echo $ALL_TOOLKITS`; do
2377 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2378 if test "x$LINE" != "x" ; then
2379 has_toolkit_in_cache=1
2380 eval "DEFAULT_$LINE"
2381 eval "CACHE_$toolkit=1"
2382 fi
2383 done
2384
2385
2386
2387 enablestring=
2388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2389 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2390 no_cache=0
2391 # Check whether --enable-gui or --disable-gui was given.
2392 if test "${enable_gui+set}" = set; then
2393 enableval="$enable_gui"
2394
2395 if test "$enableval" = yes; then
2396 ac_cv_use_gui='wxUSE_GUI=yes'
2397 else
2398 ac_cv_use_gui='wxUSE_GUI=no'
2399 fi
2400
2401 else
2402
2403 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2404 if test "x$LINE" != x ; then
2405 eval "DEFAULT_$LINE"
2406 else
2407 no_cache=1
2408 fi
2409
2410 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2411
2412 fi;
2413
2414 eval "$ac_cv_use_gui"
2415 if test "$no_cache" != 1; then
2416 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2417 fi
2418
2419 if test "$wxUSE_GUI" = yes; then
2420 echo "$as_me:$LINENO: result: yes" >&5
2421 echo "${ECHO_T}yes" >&6
2422 else
2423 echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6
2425 fi
2426
2427
2428 enablestring=
2429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2430 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2431 no_cache=0
2432 # Check whether --enable-monolithic or --disable-monolithic was given.
2433 if test "${enable_monolithic+set}" = set; then
2434 enableval="$enable_monolithic"
2435
2436 if test "$enableval" = yes; then
2437 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2438 else
2439 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2440 fi
2441
2442 else
2443
2444 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2445 if test "x$LINE" != x ; then
2446 eval "DEFAULT_$LINE"
2447 else
2448 no_cache=1
2449 fi
2450
2451 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2452
2453 fi;
2454
2455 eval "$ac_cv_use_monolithic"
2456 if test "$no_cache" != 1; then
2457 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2458 fi
2459
2460 if test "$wxUSE_MONOLITHIC" = yes; then
2461 echo "$as_me:$LINENO: result: yes" >&5
2462 echo "${ECHO_T}yes" >&6
2463 else
2464 echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6
2466 fi
2467
2468
2469 enablestring=
2470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2471 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2472 no_cache=0
2473 # Check whether --enable-plugins or --disable-plugins was given.
2474 if test "${enable_plugins+set}" = set; then
2475 enableval="$enable_plugins"
2476
2477 if test "$enableval" = yes; then
2478 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2479 else
2480 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2481 fi
2482
2483 else
2484
2485 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2486 if test "x$LINE" != x ; then
2487 eval "DEFAULT_$LINE"
2488 else
2489 no_cache=1
2490 fi
2491
2492 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2493
2494 fi;
2495
2496 eval "$ac_cv_use_plugins"
2497 if test "$no_cache" != 1; then
2498 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2499 fi
2500
2501 if test "$wxUSE_PLUGINS" = yes; then
2502 echo "$as_me:$LINENO: result: yes" >&5
2503 echo "${ECHO_T}yes" >&6
2504 else
2505 echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6
2507 fi
2508
2509
2510 if test "$wxUSE_GUI" = "yes"; then
2511
2512
2513 enablestring=
2514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2515 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2516 no_cache=0
2517 # Check whether --enable-universal or --disable-universal was given.
2518 if test "${enable_universal+set}" = set; then
2519 enableval="$enable_universal"
2520
2521 if test "$enableval" = yes; then
2522 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2523 else
2524 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2525 fi
2526
2527 else
2528
2529 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2530 if test "x$LINE" != x ; then
2531 eval "DEFAULT_$LINE"
2532 else
2533 no_cache=1
2534 fi
2535
2536 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2537
2538 fi;
2539
2540 eval "$ac_cv_use_universal"
2541 if test "$no_cache" != 1; then
2542 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2543 fi
2544
2545 if test "$wxUSE_UNIVERSAL" = yes; then
2546 echo "$as_me:$LINENO: result: yes" >&5
2547 echo "${ECHO_T}yes" >&6
2548 else
2549 echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6
2551 fi
2552
2553
2554 # Check whether --with-gtk or --without-gtk was given.
2555 if test "${with_gtk+set}" = set; then
2556 withval="$with_gtk"
2557 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2558 fi;
2559
2560 # Check whether --with-motif or --without-motif was given.
2561 if test "${with_motif+set}" = set; then
2562 withval="$with_motif"
2563 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2564 fi;
2565
2566 # Check whether --with-mac or --without-mac was given.
2567 if test "${with_mac+set}" = set; then
2568 withval="$with_mac"
2569 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2570 fi;
2571
2572 # Check whether --with-cocoa or --without-cocoa was given.
2573 if test "${with_cocoa+set}" = set; then
2574 withval="$with_cocoa"
2575 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2576 fi;
2577
2578 # Check whether --with-wine or --without-wine was given.
2579 if test "${with_wine+set}" = set; then
2580 withval="$with_wine"
2581 wxUSE_WINE="$withval" CACHE_WINE=1
2582 fi;
2583
2584 # Check whether --with-msw or --without-msw was given.
2585 if test "${with_msw+set}" = set; then
2586 withval="$with_msw"
2587 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2588 fi;
2589
2590 # Check whether --with-pm or --without-pm was given.
2591 if test "${with_pm+set}" = set; then
2592 withval="$with_pm"
2593 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2594 fi;
2595
2596 # Check whether --with-mgl or --without-mgl was given.
2597 if test "${with_mgl+set}" = set; then
2598 withval="$with_mgl"
2599 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2600 fi;
2601
2602 # Check whether --with-microwin or --without-microwin was given.
2603 if test "${with_microwin+set}" = set; then
2604 withval="$with_microwin"
2605 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2606 fi;
2607
2608 # Check whether --with-x11 or --without-x11 was given.
2609 if test "${with_x11+set}" = set; then
2610 withval="$with_x11"
2611 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2612 fi;
2613
2614 enablestring=
2615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2616 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2617 no_cache=0
2618 # Check whether --enable-nanox or --disable-nanox was given.
2619 if test "${enable_nanox+set}" = set; then
2620 enableval="$enable_nanox"
2621
2622 if test "$enableval" = yes; then
2623 ac_cv_use_nanox='wxUSE_NANOX=yes'
2624 else
2625 ac_cv_use_nanox='wxUSE_NANOX=no'
2626 fi
2627
2628 else
2629
2630 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2631 if test "x$LINE" != x ; then
2632 eval "DEFAULT_$LINE"
2633 else
2634 no_cache=1
2635 fi
2636
2637 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2638
2639 fi;
2640
2641 eval "$ac_cv_use_nanox"
2642 if test "$no_cache" != 1; then
2643 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2644 fi
2645
2646 if test "$wxUSE_NANOX" = yes; then
2647 echo "$as_me:$LINENO: result: yes" >&5
2648 echo "${ECHO_T}yes" >&6
2649 else
2650 echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2652 fi
2653
2654
2655
2656 enablestring=
2657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2658 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2659 no_cache=0
2660 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2661 if test "${enable_gtk2+set}" = set; then
2662 enableval="$enable_gtk2"
2663
2664 if test "$enableval" = yes; then
2665 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2666 else
2667 ac_cv_use_gtk2='wxUSE_GTK2=no'
2668 fi
2669
2670 else
2671
2672 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2673 if test "x$LINE" != x ; then
2674 eval "DEFAULT_$LINE"
2675 else
2676 no_cache=1
2677 fi
2678
2679 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2680
2681 fi;
2682
2683 eval "$ac_cv_use_gtk2"
2684 if test "$no_cache" != 1; then
2685 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2686 fi
2687
2688 if test "$wxUSE_GTK2" = yes; then
2689 echo "$as_me:$LINENO: result: yes" >&5
2690 echo "${ECHO_T}yes" >&6
2691 else
2692 echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6
2694 fi
2695
2696
2697 enablestring=
2698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2699 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2700 no_cache=0
2701 # Check whether --enable-gpe or --disable-gpe was given.
2702 if test "${enable_gpe+set}" = set; then
2703 enableval="$enable_gpe"
2704
2705 if test "$enableval" = yes; then
2706 ac_cv_use_gpe='wxUSE_GPE=yes'
2707 else
2708 ac_cv_use_gpe='wxUSE_GPE=no'
2709 fi
2710
2711 else
2712
2713 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2714 if test "x$LINE" != x ; then
2715 eval "DEFAULT_$LINE"
2716 else
2717 no_cache=1
2718 fi
2719
2720 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2721
2722 fi;
2723
2724 eval "$ac_cv_use_gpe"
2725 if test "$no_cache" != 1; then
2726 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2727 fi
2728
2729 if test "$wxUSE_GPE" = yes; then
2730 echo "$as_me:$LINENO: result: yes" >&5
2731 echo "${ECHO_T}yes" >&6
2732 else
2733 echo "$as_me:$LINENO: result: no" >&5
2734 echo "${ECHO_T}no" >&6
2735 fi
2736
2737
2738
2739 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2740 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2741 no_cache=0
2742
2743 # Check whether --with-libpng or --without-libpng was given.
2744 if test "${with_libpng+set}" = set; then
2745 withval="$with_libpng"
2746
2747 if test "$withval" = yes; then
2748 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2749 elif test "$withval" = no; then
2750 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2751 elif test "$withval" = sys; then
2752 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2753 elif test "$withval" = builtin; then
2754 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2755 else
2756 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2757 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2758 { (exit 1); exit 1; }; }
2759 fi
2760
2761 else
2762
2763 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2764 if test "x$LINE" != x ; then
2765 eval "DEFAULT_$LINE"
2766 else
2767 no_cache=1
2768 fi
2769
2770 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2771
2772 fi;
2773
2774 eval "$ac_cv_use_libpng"
2775 if test "$no_cache" != 1; then
2776 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2777 fi
2778
2779 if test "$wxUSE_LIBPNG" = yes; then
2780 echo "$as_me:$LINENO: result: yes" >&5
2781 echo "${ECHO_T}yes" >&6
2782 elif test "$wxUSE_LIBPNG" = no; then
2783 echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2785 elif test "$wxUSE_LIBPNG" = sys; then
2786 echo "$as_me:$LINENO: result: system version" >&5
2787 echo "${ECHO_T}system version" >&6
2788 elif test "$wxUSE_LIBPNG" = builtin; then
2789 echo "$as_me:$LINENO: result: builtin version" >&5
2790 echo "${ECHO_T}builtin version" >&6
2791 else
2792 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2793 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2794 { (exit 1); exit 1; }; }
2795 fi
2796
2797
2798 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2799 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2800 no_cache=0
2801
2802 # Check whether --with-libjpeg or --without-libjpeg was given.
2803 if test "${with_libjpeg+set}" = set; then
2804 withval="$with_libjpeg"
2805
2806 if test "$withval" = yes; then
2807 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2808 elif test "$withval" = no; then
2809 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2810 elif test "$withval" = sys; then
2811 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2812 elif test "$withval" = builtin; then
2813 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2814 else
2815 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2816 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2817 { (exit 1); exit 1; }; }
2818 fi
2819
2820 else
2821
2822 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2823 if test "x$LINE" != x ; then
2824 eval "DEFAULT_$LINE"
2825 else
2826 no_cache=1
2827 fi
2828
2829 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2830
2831 fi;
2832
2833 eval "$ac_cv_use_libjpeg"
2834 if test "$no_cache" != 1; then
2835 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2836 fi
2837
2838 if test "$wxUSE_LIBJPEG" = yes; then
2839 echo "$as_me:$LINENO: result: yes" >&5
2840 echo "${ECHO_T}yes" >&6
2841 elif test "$wxUSE_LIBJPEG" = no; then
2842 echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6
2844 elif test "$wxUSE_LIBJPEG" = sys; then
2845 echo "$as_me:$LINENO: result: system version" >&5
2846 echo "${ECHO_T}system version" >&6
2847 elif test "$wxUSE_LIBJPEG" = builtin; then
2848 echo "$as_me:$LINENO: result: builtin version" >&5
2849 echo "${ECHO_T}builtin version" >&6
2850 else
2851 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2852 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2853 { (exit 1); exit 1; }; }
2854 fi
2855
2856
2857 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2858 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2859 no_cache=0
2860
2861 # Check whether --with-libtiff or --without-libtiff was given.
2862 if test "${with_libtiff+set}" = set; then
2863 withval="$with_libtiff"
2864
2865 if test "$withval" = yes; then
2866 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2867 elif test "$withval" = no; then
2868 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2869 elif test "$withval" = sys; then
2870 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2871 elif test "$withval" = builtin; then
2872 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2873 else
2874 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2875 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2876 { (exit 1); exit 1; }; }
2877 fi
2878
2879 else
2880
2881 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2882 if test "x$LINE" != x ; then
2883 eval "DEFAULT_$LINE"
2884 else
2885 no_cache=1
2886 fi
2887
2888 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2889
2890 fi;
2891
2892 eval "$ac_cv_use_libtiff"
2893 if test "$no_cache" != 1; then
2894 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2895 fi
2896
2897 if test "$wxUSE_LIBTIFF" = yes; then
2898 echo "$as_me:$LINENO: result: yes" >&5
2899 echo "${ECHO_T}yes" >&6
2900 elif test "$wxUSE_LIBTIFF" = no; then
2901 echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6
2903 elif test "$wxUSE_LIBTIFF" = sys; then
2904 echo "$as_me:$LINENO: result: system version" >&5
2905 echo "${ECHO_T}system version" >&6
2906 elif test "$wxUSE_LIBTIFF" = builtin; then
2907 echo "$as_me:$LINENO: result: builtin version" >&5
2908 echo "${ECHO_T}builtin version" >&6
2909 else
2910 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2911 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2912 { (exit 1); exit 1; }; }
2913 fi
2914
2915
2916 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2917 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2918 no_cache=0
2919
2920 # Check whether --with-libxpm or --without-libxpm was given.
2921 if test "${with_libxpm+set}" = set; then
2922 withval="$with_libxpm"
2923
2924 if test "$withval" = yes; then
2925 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2926 elif test "$withval" = no; then
2927 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2928 elif test "$withval" = sys; then
2929 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2930 elif test "$withval" = builtin; then
2931 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2932 else
2933 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2934 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2935 { (exit 1); exit 1; }; }
2936 fi
2937
2938 else
2939
2940 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2941 if test "x$LINE" != x ; then
2942 eval "DEFAULT_$LINE"
2943 else
2944 no_cache=1
2945 fi
2946
2947 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2948
2949 fi;
2950
2951 eval "$ac_cv_use_libxpm"
2952 if test "$no_cache" != 1; then
2953 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2954 fi
2955
2956 if test "$wxUSE_LIBXPM" = yes; then
2957 echo "$as_me:$LINENO: result: yes" >&5
2958 echo "${ECHO_T}yes" >&6
2959 elif test "$wxUSE_LIBXPM" = no; then
2960 echo "$as_me:$LINENO: result: no" >&5
2961 echo "${ECHO_T}no" >&6
2962 elif test "$wxUSE_LIBXPM" = sys; then
2963 echo "$as_me:$LINENO: result: system version" >&5
2964 echo "${ECHO_T}system version" >&6
2965 elif test "$wxUSE_LIBXPM" = builtin; then
2966 echo "$as_me:$LINENO: result: builtin version" >&5
2967 echo "${ECHO_T}builtin version" >&6
2968 else
2969 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2970 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2971 { (exit 1); exit 1; }; }
2972 fi
2973
2974
2975 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2976 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2977 no_cache=0
2978
2979 # Check whether --with-libmspack or --without-libmspack was given.
2980 if test "${with_libmspack+set}" = set; then
2981 withval="$with_libmspack"
2982
2983 if test "$withval" = yes; then
2984 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2985 else
2986 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2987 fi
2988
2989 else
2990
2991 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2992 if test "x$LINE" != x ; then
2993 eval "DEFAULT_$LINE"
2994 else
2995 no_cache=1
2996 fi
2997
2998 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2999
3000 fi;
3001
3002 eval "$ac_cv_use_libmspack"
3003 if test "$no_cache" != 1; then
3004 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3005 fi
3006
3007 if test "$wxUSE_LIBMSPACK" = yes; then
3008 echo "$as_me:$LINENO: result: yes" >&5
3009 echo "${ECHO_T}yes" >&6
3010 else
3011 echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6
3013 fi
3014
3015
3016 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3017 echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3018 no_cache=0
3019
3020 # Check whether --with-sdl or --without-sdl was given.
3021 if test "${with_sdl+set}" = set; then
3022 withval="$with_sdl"
3023
3024 if test "$withval" = yes; then
3025 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3026 else
3027 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3028 fi
3029
3030 else
3031
3032 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3033 if test "x$LINE" != x ; then
3034 eval "DEFAULT_$LINE"
3035 else
3036 no_cache=1
3037 fi
3038
3039 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3040
3041 fi;
3042
3043 eval "$ac_cv_use_sdl"
3044 if test "$no_cache" != 1; then
3045 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3046 fi
3047
3048 if test "$wxUSE_LIBSDL" = yes; then
3049 echo "$as_me:$LINENO: result: yes" >&5
3050 echo "${ECHO_T}yes" >&6
3051 else
3052 echo "$as_me:$LINENO: result: no" >&5
3053 echo "${ECHO_T}no" >&6
3054 fi
3055
3056
3057 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3058 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3059 no_cache=0
3060
3061 # Check whether --with-opengl or --without-opengl was given.
3062 if test "${with_opengl+set}" = set; then
3063 withval="$with_opengl"
3064
3065 if test "$withval" = yes; then
3066 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3067 else
3068 ac_cv_use_opengl='wxUSE_OPENGL=no'
3069 fi
3070
3071 else
3072
3073 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3074 if test "x$LINE" != x ; then
3075 eval "DEFAULT_$LINE"
3076 else
3077 no_cache=1
3078 fi
3079
3080 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3081
3082 fi;
3083
3084 eval "$ac_cv_use_opengl"
3085 if test "$no_cache" != 1; then
3086 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3087 fi
3088
3089 if test "$wxUSE_OPENGL" = yes; then
3090 echo "$as_me:$LINENO: result: yes" >&5
3091 echo "${ECHO_T}yes" >&6
3092 else
3093 echo "$as_me:$LINENO: result: no" >&5
3094 echo "${ECHO_T}no" >&6
3095 fi
3096
3097
3098 fi
3099
3100
3101 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3102 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3103 no_cache=0
3104
3105 # Check whether --with-dmalloc or --without-dmalloc was given.
3106 if test "${with_dmalloc+set}" = set; then
3107 withval="$with_dmalloc"
3108
3109 if test "$withval" = yes; then
3110 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3111 else
3112 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3113 fi
3114
3115 else
3116
3117 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3118 if test "x$LINE" != x ; then
3119 eval "DEFAULT_$LINE"
3120 else
3121 no_cache=1
3122 fi
3123
3124 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3125
3126 fi;
3127
3128 eval "$ac_cv_use_dmalloc"
3129 if test "$no_cache" != 1; then
3130 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3131 fi
3132
3133 if test "$wxUSE_DMALLOC" = yes; then
3134 echo "$as_me:$LINENO: result: yes" >&5
3135 echo "${ECHO_T}yes" >&6
3136 else
3137 echo "$as_me:$LINENO: result: no" >&5
3138 echo "${ECHO_T}no" >&6
3139 fi
3140
3141
3142 echo "$as_me:$LINENO: checking for --with-regex" >&5
3143 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3144 no_cache=0
3145
3146 # Check whether --with-regex or --without-regex was given.
3147 if test "${with_regex+set}" = set; then
3148 withval="$with_regex"
3149
3150 if test "$withval" = yes; then
3151 ac_cv_use_regex='wxUSE_REGEX=yes'
3152 elif test "$withval" = no; then
3153 ac_cv_use_regex='wxUSE_REGEX=no'
3154 elif test "$withval" = sys; then
3155 ac_cv_use_regex='wxUSE_REGEX=sys'
3156 elif test "$withval" = builtin; then
3157 ac_cv_use_regex='wxUSE_REGEX=builtin'
3158 else
3159 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3160 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3161 { (exit 1); exit 1; }; }
3162 fi
3163
3164 else
3165
3166 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3167 if test "x$LINE" != x ; then
3168 eval "DEFAULT_$LINE"
3169 else
3170 no_cache=1
3171 fi
3172
3173 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3174
3175 fi;
3176
3177 eval "$ac_cv_use_regex"
3178 if test "$no_cache" != 1; then
3179 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3180 fi
3181
3182 if test "$wxUSE_REGEX" = yes; then
3183 echo "$as_me:$LINENO: result: yes" >&5
3184 echo "${ECHO_T}yes" >&6
3185 elif test "$wxUSE_REGEX" = no; then
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3188 elif test "$wxUSE_REGEX" = sys; then
3189 echo "$as_me:$LINENO: result: system version" >&5
3190 echo "${ECHO_T}system version" >&6
3191 elif test "$wxUSE_REGEX" = builtin; then
3192 echo "$as_me:$LINENO: result: builtin version" >&5
3193 echo "${ECHO_T}builtin version" >&6
3194 else
3195 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3196 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3197 { (exit 1); exit 1; }; }
3198 fi
3199
3200
3201 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3202 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3203 no_cache=0
3204
3205 # Check whether --with-zlib or --without-zlib was given.
3206 if test "${with_zlib+set}" = set; then
3207 withval="$with_zlib"
3208
3209 if test "$withval" = yes; then
3210 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3211 elif test "$withval" = no; then
3212 ac_cv_use_zlib='wxUSE_ZLIB=no'
3213 elif test "$withval" = sys; then
3214 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3215 elif test "$withval" = builtin; then
3216 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3217 else
3218 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3219 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3220 { (exit 1); exit 1; }; }
3221 fi
3222
3223 else
3224
3225 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3226 if test "x$LINE" != x ; then
3227 eval "DEFAULT_$LINE"
3228 else
3229 no_cache=1
3230 fi
3231
3232 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3233
3234 fi;
3235
3236 eval "$ac_cv_use_zlib"
3237 if test "$no_cache" != 1; then
3238 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3239 fi
3240
3241 if test "$wxUSE_ZLIB" = yes; then
3242 echo "$as_me:$LINENO: result: yes" >&5
3243 echo "${ECHO_T}yes" >&6
3244 elif test "$wxUSE_ZLIB" = no; then
3245 echo "$as_me:$LINENO: result: no" >&5
3246 echo "${ECHO_T}no" >&6
3247 elif test "$wxUSE_ZLIB" = sys; then
3248 echo "$as_me:$LINENO: result: system version" >&5
3249 echo "${ECHO_T}system version" >&6
3250 elif test "$wxUSE_ZLIB" = builtin; then
3251 echo "$as_me:$LINENO: result: builtin version" >&5
3252 echo "${ECHO_T}builtin version" >&6
3253 else
3254 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3255 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3256 { (exit 1); exit 1; }; }
3257 fi
3258
3259
3260 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3261 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3262 no_cache=0
3263
3264 # Check whether --with-odbc or --without-odbc was given.
3265 if test "${with_odbc+set}" = set; then
3266 withval="$with_odbc"
3267
3268 if test "$withval" = yes; then
3269 ac_cv_use_odbc='wxUSE_ODBC=yes'
3270 elif test "$withval" = no; then
3271 ac_cv_use_odbc='wxUSE_ODBC=no'
3272 elif test "$withval" = sys; then
3273 ac_cv_use_odbc='wxUSE_ODBC=sys'
3274 elif test "$withval" = builtin; then
3275 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3276 else
3277 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3278 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3279 { (exit 1); exit 1; }; }
3280 fi
3281
3282 else
3283
3284 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3285 if test "x$LINE" != x ; then
3286 eval "DEFAULT_$LINE"
3287 else
3288 no_cache=1
3289 fi
3290
3291 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3292
3293 fi;
3294
3295 eval "$ac_cv_use_odbc"
3296 if test "$no_cache" != 1; then
3297 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3298 fi
3299
3300 if test "$wxUSE_ODBC" = yes; then
3301 echo "$as_me:$LINENO: result: yes" >&5
3302 echo "${ECHO_T}yes" >&6
3303 elif test "$wxUSE_ODBC" = no; then
3304 echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3306 elif test "$wxUSE_ODBC" = sys; then
3307 echo "$as_me:$LINENO: result: system version" >&5
3308 echo "${ECHO_T}system version" >&6
3309 elif test "$wxUSE_ODBC" = builtin; then
3310 echo "$as_me:$LINENO: result: builtin version" >&5
3311 echo "${ECHO_T}builtin version" >&6
3312 else
3313 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3314 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3315 { (exit 1); exit 1; }; }
3316 fi
3317
3318
3319 echo "$as_me:$LINENO: checking for --with-expat" >&5
3320 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3321 no_cache=0
3322
3323 # Check whether --with-expat or --without-expat was given.
3324 if test "${with_expat+set}" = set; then
3325 withval="$with_expat"
3326
3327 if test "$withval" = yes; then
3328 ac_cv_use_expat='wxUSE_EXPAT=yes'
3329 elif test "$withval" = no; then
3330 ac_cv_use_expat='wxUSE_EXPAT=no'
3331 elif test "$withval" = sys; then
3332 ac_cv_use_expat='wxUSE_EXPAT=sys'
3333 elif test "$withval" = builtin; then
3334 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3335 else
3336 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3337 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3338 { (exit 1); exit 1; }; }
3339 fi
3340
3341 else
3342
3343 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3344 if test "x$LINE" != x ; then
3345 eval "DEFAULT_$LINE"
3346 else
3347 no_cache=1
3348 fi
3349
3350 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3351
3352 fi;
3353
3354 eval "$ac_cv_use_expat"
3355 if test "$no_cache" != 1; then
3356 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3357 fi
3358
3359 if test "$wxUSE_EXPAT" = yes; then
3360 echo "$as_me:$LINENO: result: yes" >&5
3361 echo "${ECHO_T}yes" >&6
3362 elif test "$wxUSE_EXPAT" = no; then
3363 echo "$as_me:$LINENO: result: no" >&5
3364 echo "${ECHO_T}no" >&6
3365 elif test "$wxUSE_EXPAT" = sys; then
3366 echo "$as_me:$LINENO: result: system version" >&5
3367 echo "${ECHO_T}system version" >&6
3368 elif test "$wxUSE_EXPAT" = builtin; then
3369 echo "$as_me:$LINENO: result: builtin version" >&5
3370 echo "${ECHO_T}builtin version" >&6
3371 else
3372 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3373 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3374 { (exit 1); exit 1; }; }
3375 fi
3376
3377
3378
3379
3380 enablestring=
3381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3382 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3383 no_cache=0
3384 # Check whether --enable-shared or --disable-shared was given.
3385 if test "${enable_shared+set}" = set; then
3386 enableval="$enable_shared"
3387
3388 if test "$enableval" = yes; then
3389 ac_cv_use_shared='wxUSE_SHARED=yes'
3390 else
3391 ac_cv_use_shared='wxUSE_SHARED=no'
3392 fi
3393
3394 else
3395
3396 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3397 if test "x$LINE" != x ; then
3398 eval "DEFAULT_$LINE"
3399 else
3400 no_cache=1
3401 fi
3402
3403 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3404
3405 fi;
3406
3407 eval "$ac_cv_use_shared"
3408 if test "$no_cache" != 1; then
3409 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3410 fi
3411
3412 if test "$wxUSE_SHARED" = yes; then
3413 echo "$as_me:$LINENO: result: yes" >&5
3414 echo "${ECHO_T}yes" >&6
3415 else
3416 echo "$as_me:$LINENO: result: no" >&5
3417 echo "${ECHO_T}no" >&6
3418 fi
3419
3420
3421 enablestring=
3422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3423 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3424 no_cache=0
3425 # Check whether --enable-optimise or --disable-optimise was given.
3426 if test "${enable_optimise+set}" = set; then
3427 enableval="$enable_optimise"
3428
3429 if test "$enableval" = yes; then
3430 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3431 else
3432 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3433 fi
3434
3435 else
3436
3437 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3438 if test "x$LINE" != x ; then
3439 eval "DEFAULT_$LINE"
3440 else
3441 no_cache=1
3442 fi
3443
3444 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3445
3446 fi;
3447
3448 eval "$ac_cv_use_optimise"
3449 if test "$no_cache" != 1; then
3450 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3451 fi
3452
3453 if test "$wxUSE_OPTIMISE" = yes; then
3454 echo "$as_me:$LINENO: result: yes" >&5
3455 echo "${ECHO_T}yes" >&6
3456 else
3457 echo "$as_me:$LINENO: result: no" >&5
3458 echo "${ECHO_T}no" >&6
3459 fi
3460
3461
3462 enablestring=
3463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3464 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3465 no_cache=0
3466 # Check whether --enable-debug or --disable-debug was given.
3467 if test "${enable_debug+set}" = set; then
3468 enableval="$enable_debug"
3469
3470 if test "$enableval" = yes; then
3471 ac_cv_use_debug='wxUSE_DEBUG=yes'
3472 else
3473 ac_cv_use_debug='wxUSE_DEBUG=no'
3474 fi
3475
3476 else
3477
3478 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3486
3487 fi;
3488
3489 eval "$ac_cv_use_debug"
3490 if test "$no_cache" != 1; then
3491 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3492 fi
3493
3494 if test "$wxUSE_DEBUG" = yes; then
3495 echo "$as_me:$LINENO: result: yes" >&5
3496 echo "${ECHO_T}yes" >&6
3497 else
3498 echo "$as_me:$LINENO: result: no" >&5
3499 echo "${ECHO_T}no" >&6
3500 fi
3501
3502
3503 enablestring=
3504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3505 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3506 no_cache=0
3507 # Check whether --enable-stl or --disable-stl was given.
3508 if test "${enable_stl+set}" = set; then
3509 enableval="$enable_stl"
3510
3511 if test "$enableval" = yes; then
3512 ac_cv_use_stl='wxUSE_STL=yes'
3513 else
3514 ac_cv_use_stl='wxUSE_STL=no'
3515 fi
3516
3517 else
3518
3519 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3520 if test "x$LINE" != x ; then
3521 eval "DEFAULT_$LINE"
3522 else
3523 no_cache=1
3524 fi
3525
3526 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3527
3528 fi;
3529
3530 eval "$ac_cv_use_stl"
3531 if test "$no_cache" != 1; then
3532 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3533 fi
3534
3535 if test "$wxUSE_STL" = yes; then
3536 echo "$as_me:$LINENO: result: yes" >&5
3537 echo "${ECHO_T}yes" >&6
3538 else
3539 echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 fi
3542
3543
3544 if test "$wxUSE_DEBUG" = "yes"; then
3545 DEFAULT_wxUSE_DEBUG_FLAG=yes
3546 DEFAULT_wxUSE_DEBUG_INFO=yes
3547 BUILD=debug
3548 elif test "$wxUSE_DEBUG" = "no"; then
3549 DEFAULT_wxUSE_DEBUG_FLAG=no
3550 DEFAULT_wxUSE_DEBUG_INFO=no
3551 BUILD=release
3552 fi
3553
3554
3555 enablestring=
3556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3557 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3558 no_cache=0
3559 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3560 if test "${enable_debug_flag+set}" = set; then
3561 enableval="$enable_debug_flag"
3562
3563 if test "$enableval" = yes; then
3564 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3565 else
3566 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3567 fi
3568
3569 else
3570
3571 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3572 if test "x$LINE" != x ; then
3573 eval "DEFAULT_$LINE"
3574 else
3575 no_cache=1
3576 fi
3577
3578 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3579
3580 fi;
3581
3582 eval "$ac_cv_use_debug_flag"
3583 if test "$no_cache" != 1; then
3584 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3585 fi
3586
3587 if test "$wxUSE_DEBUG_FLAG" = yes; then
3588 echo "$as_me:$LINENO: result: yes" >&5
3589 echo "${ECHO_T}yes" >&6
3590 else
3591 echo "$as_me:$LINENO: result: no" >&5
3592 echo "${ECHO_T}no" >&6
3593 fi
3594
3595
3596 enablestring=
3597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3598 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3599 no_cache=0
3600 # Check whether --enable-debug_info or --disable-debug_info was given.
3601 if test "${enable_debug_info+set}" = set; then
3602 enableval="$enable_debug_info"
3603
3604 if test "$enableval" = yes; then
3605 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3606 else
3607 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3608 fi
3609
3610 else
3611
3612 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3613 if test "x$LINE" != x ; then
3614 eval "DEFAULT_$LINE"
3615 else
3616 no_cache=1
3617 fi
3618
3619 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3620
3621 fi;
3622
3623 eval "$ac_cv_use_debug_info"
3624 if test "$no_cache" != 1; then
3625 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3626 fi
3627
3628 if test "$wxUSE_DEBUG_INFO" = yes; then
3629 echo "$as_me:$LINENO: result: yes" >&5
3630 echo "${ECHO_T}yes" >&6
3631 else
3632 echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6
3634 fi
3635
3636
3637 enablestring=
3638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3639 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3640 no_cache=0
3641 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3642 if test "${enable_debug_gdb+set}" = set; then
3643 enableval="$enable_debug_gdb"
3644
3645 if test "$enableval" = yes; then
3646 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3647 else
3648 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3649 fi
3650
3651 else
3652
3653 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3654 if test "x$LINE" != x ; then
3655 eval "DEFAULT_$LINE"
3656 else
3657 no_cache=1
3658 fi
3659
3660 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3661
3662 fi;
3663
3664 eval "$ac_cv_use_debug_gdb"
3665 if test "$no_cache" != 1; then
3666 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3667 fi
3668
3669 if test "$wxUSE_DEBUG_GDB" = yes; then
3670 echo "$as_me:$LINENO: result: yes" >&5
3671 echo "${ECHO_T}yes" >&6
3672 else
3673 echo "$as_me:$LINENO: result: no" >&5
3674 echo "${ECHO_T}no" >&6
3675 fi
3676
3677
3678 enablestring=
3679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3680 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3681 no_cache=0
3682 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3683 if test "${enable_debug_cntxt+set}" = set; then
3684 enableval="$enable_debug_cntxt"
3685
3686 if test "$enableval" = yes; then
3687 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3688 else
3689 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3690 fi
3691
3692 else
3693
3694 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3695 if test "x$LINE" != x ; then
3696 eval "DEFAULT_$LINE"
3697 else
3698 no_cache=1
3699 fi
3700
3701 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3702
3703 fi;
3704
3705 eval "$ac_cv_use_debug_cntxt"
3706 if test "$no_cache" != 1; then
3707 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3708 fi
3709
3710 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3711 echo "$as_me:$LINENO: result: yes" >&5
3712 echo "${ECHO_T}yes" >&6
3713 else
3714 echo "$as_me:$LINENO: result: no" >&5
3715 echo "${ECHO_T}no" >&6
3716 fi
3717
3718
3719 enablestring=
3720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3721 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3722 no_cache=0
3723 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3724 if test "${enable_mem_tracing+set}" = set; then
3725 enableval="$enable_mem_tracing"
3726
3727 if test "$enableval" = yes; then
3728 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3729 else
3730 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3731 fi
3732
3733 else
3734
3735 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3736 if test "x$LINE" != x ; then
3737 eval "DEFAULT_$LINE"
3738 else
3739 no_cache=1
3740 fi
3741
3742 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3743
3744 fi;
3745
3746 eval "$ac_cv_use_mem_tracing"
3747 if test "$no_cache" != 1; then
3748 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3749 fi
3750
3751 if test "$wxUSE_MEM_TRACING" = yes; then
3752 echo "$as_me:$LINENO: result: yes" >&5
3753 echo "${ECHO_T}yes" >&6
3754 else
3755 echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3757 fi
3758
3759
3760 enablestring=
3761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3762 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3763 no_cache=0
3764 # Check whether --enable-profile or --disable-profile was given.
3765 if test "${enable_profile+set}" = set; then
3766 enableval="$enable_profile"
3767
3768 if test "$enableval" = yes; then
3769 ac_cv_use_profile='wxUSE_PROFILE=yes'
3770 else
3771 ac_cv_use_profile='wxUSE_PROFILE=no'
3772 fi
3773
3774 else
3775
3776 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3777 if test "x$LINE" != x ; then
3778 eval "DEFAULT_$LINE"
3779 else
3780 no_cache=1
3781 fi
3782
3783 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3784
3785 fi;
3786
3787 eval "$ac_cv_use_profile"
3788 if test "$no_cache" != 1; then
3789 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3790 fi
3791
3792 if test "$wxUSE_PROFILE" = yes; then
3793 echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6
3795 else
3796 echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6
3798 fi
3799
3800
3801 enablestring=
3802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3803 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3804 no_cache=0
3805 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3806 if test "${enable_no_rtti+set}" = set; then
3807 enableval="$enable_no_rtti"
3808
3809 if test "$enableval" = yes; then
3810 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3811 else
3812 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3813 fi
3814
3815 else
3816
3817 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3818 if test "x$LINE" != x ; then
3819 eval "DEFAULT_$LINE"
3820 else
3821 no_cache=1
3822 fi
3823
3824 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3825
3826 fi;
3827
3828 eval "$ac_cv_use_no_rtti"
3829 if test "$no_cache" != 1; then
3830 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3831 fi
3832
3833 if test "$wxUSE_NO_RTTI" = yes; then
3834 echo "$as_me:$LINENO: result: yes" >&5
3835 echo "${ECHO_T}yes" >&6
3836 else
3837 echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3839 fi
3840
3841
3842 enablestring=
3843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3844 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3845 no_cache=0
3846 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3847 if test "${enable_no_exceptions+set}" = set; then
3848 enableval="$enable_no_exceptions"
3849
3850 if test "$enableval" = yes; then
3851 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3852 else
3853 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3854 fi
3855
3856 else
3857
3858 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3859 if test "x$LINE" != x ; then
3860 eval "DEFAULT_$LINE"
3861 else
3862 no_cache=1
3863 fi
3864
3865 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3866
3867 fi;
3868
3869 eval "$ac_cv_use_no_exceptions"
3870 if test "$no_cache" != 1; then
3871 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3872 fi
3873
3874 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3875 echo "$as_me:$LINENO: result: yes" >&5
3876 echo "${ECHO_T}yes" >&6
3877 else
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3880 fi
3881
3882
3883 enablestring=
3884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3885 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3886 no_cache=0
3887 # Check whether --enable-permissive or --disable-permissive was given.
3888 if test "${enable_permissive+set}" = set; then
3889 enableval="$enable_permissive"
3890
3891 if test "$enableval" = yes; then
3892 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3893 else
3894 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3895 fi
3896
3897 else
3898
3899 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3900 if test "x$LINE" != x ; then
3901 eval "DEFAULT_$LINE"
3902 else
3903 no_cache=1
3904 fi
3905
3906 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3907
3908 fi;
3909
3910 eval "$ac_cv_use_permissive"
3911 if test "$no_cache" != 1; then
3912 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3913 fi
3914
3915 if test "$wxUSE_PERMISSIVE" = yes; then
3916 echo "$as_me:$LINENO: result: yes" >&5
3917 echo "${ECHO_T}yes" >&6
3918 else
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3921 fi
3922
3923
3924 enablestring=
3925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3926 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3927 no_cache=0
3928 # Check whether --enable-no_deps or --disable-no_deps was given.
3929 if test "${enable_no_deps+set}" = set; then
3930 enableval="$enable_no_deps"
3931
3932 if test "$enableval" = yes; then
3933 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3934 else
3935 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3936 fi
3937
3938 else
3939
3940 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3941 if test "x$LINE" != x ; then
3942 eval "DEFAULT_$LINE"
3943 else
3944 no_cache=1
3945 fi
3946
3947 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3948
3949 fi;
3950
3951 eval "$ac_cv_use_no_deps"
3952 if test "$no_cache" != 1; then
3953 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3954 fi
3955
3956 if test "$wxUSE_NO_DEPS" = yes; then
3957 echo "$as_me:$LINENO: result: yes" >&5
3958 echo "${ECHO_T}yes" >&6
3959 else
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3962 fi
3963
3964
3965
3966 enablestring=
3967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3968 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3969 no_cache=0
3970 # Check whether --enable-compat22 or --disable-compat22 was given.
3971 if test "${enable_compat22+set}" = set; then
3972 enableval="$enable_compat22"
3973
3974 if test "$enableval" = yes; then
3975 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3976 else
3977 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3978 fi
3979
3980 else
3981
3982 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3983 if test "x$LINE" != x ; then
3984 eval "DEFAULT_$LINE"
3985 else
3986 no_cache=1
3987 fi
3988
3989 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3990
3991 fi;
3992
3993 eval "$ac_cv_use_compat22"
3994 if test "$no_cache" != 1; then
3995 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3996 fi
3997
3998 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3999 echo "$as_me:$LINENO: result: yes" >&5
4000 echo "${ECHO_T}yes" >&6
4001 else
4002 echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6
4004 fi
4005
4006
4007 enablestring=disable
4008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4009 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4010 no_cache=0
4011 # Check whether --enable-compat24 or --disable-compat24 was given.
4012 if test "${enable_compat24+set}" = set; then
4013 enableval="$enable_compat24"
4014
4015 if test "$enableval" = yes; then
4016 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4017 else
4018 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4019 fi
4020
4021 else
4022
4023 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4024 if test "x$LINE" != x ; then
4025 eval "DEFAULT_$LINE"
4026 else
4027 no_cache=1
4028 fi
4029
4030 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4031
4032 fi;
4033
4034 eval "$ac_cv_use_compat24"
4035 if test "$no_cache" != 1; then
4036 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4037 fi
4038
4039 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4040 echo "$as_me:$LINENO: result: yes" >&5
4041 echo "${ECHO_T}yes" >&6
4042 else
4043 echo "$as_me:$LINENO: result: no" >&5
4044 echo "${ECHO_T}no" >&6
4045 fi
4046
4047
4048 # Check whether --enable-rpath or --disable-rpath was given.
4049 if test "${enable_rpath+set}" = set; then
4050 enableval="$enable_rpath"
4051 wxRPATH_DIR="$enableval"
4052 fi;
4053
4054 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4055 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4056 fi
4057
4058
4059
4060
4061 enablestring=
4062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4063 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4064 no_cache=0
4065 # Check whether --enable-intl or --disable-intl was given.
4066 if test "${enable_intl+set}" = set; then
4067 enableval="$enable_intl"
4068
4069 if test "$enableval" = yes; then
4070 ac_cv_use_intl='wxUSE_INTL=yes'
4071 else
4072 ac_cv_use_intl='wxUSE_INTL=no'
4073 fi
4074
4075 else
4076
4077 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4078 if test "x$LINE" != x ; then
4079 eval "DEFAULT_$LINE"
4080 else
4081 no_cache=1
4082 fi
4083
4084 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4085
4086 fi;
4087
4088 eval "$ac_cv_use_intl"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_INTL" = yes; then
4094 echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6
4096 else
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4099 fi
4100
4101
4102 enablestring=
4103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4104 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4105 no_cache=0
4106 # Check whether --enable-config or --disable-config was given.
4107 if test "${enable_config+set}" = set; then
4108 enableval="$enable_config"
4109
4110 if test "$enableval" = yes; then
4111 ac_cv_use_config='wxUSE_CONFIG=yes'
4112 else
4113 ac_cv_use_config='wxUSE_CONFIG=no'
4114 fi
4115
4116 else
4117
4118 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4119 if test "x$LINE" != x ; then
4120 eval "DEFAULT_$LINE"
4121 else
4122 no_cache=1
4123 fi
4124
4125 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4126
4127 fi;
4128
4129 eval "$ac_cv_use_config"
4130 if test "$no_cache" != 1; then
4131 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4132 fi
4133
4134 if test "$wxUSE_CONFIG" = yes; then
4135 echo "$as_me:$LINENO: result: yes" >&5
4136 echo "${ECHO_T}yes" >&6
4137 else
4138 echo "$as_me:$LINENO: result: no" >&5
4139 echo "${ECHO_T}no" >&6
4140 fi
4141
4142
4143
4144 enablestring=
4145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4146 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4147 no_cache=0
4148 # Check whether --enable-protocols or --disable-protocols was given.
4149 if test "${enable_protocols+set}" = set; then
4150 enableval="$enable_protocols"
4151
4152 if test "$enableval" = yes; then
4153 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4154 else
4155 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4156 fi
4157
4158 else
4159
4160 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4161 if test "x$LINE" != x ; then
4162 eval "DEFAULT_$LINE"
4163 else
4164 no_cache=1
4165 fi
4166
4167 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4168
4169 fi;
4170
4171 eval "$ac_cv_use_protocols"
4172 if test "$no_cache" != 1; then
4173 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4174 fi
4175
4176 if test "$wxUSE_PROTOCOL" = yes; then
4177 echo "$as_me:$LINENO: result: yes" >&5
4178 echo "${ECHO_T}yes" >&6
4179 else
4180 echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4182 fi
4183
4184
4185 enablestring=
4186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4187 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4188 no_cache=0
4189 # Check whether --enable-ftp or --disable-ftp was given.
4190 if test "${enable_ftp+set}" = set; then
4191 enableval="$enable_ftp"
4192
4193 if test "$enableval" = yes; then
4194 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4195 else
4196 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4197 fi
4198
4199 else
4200
4201 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4202 if test "x$LINE" != x ; then
4203 eval "DEFAULT_$LINE"
4204 else
4205 no_cache=1
4206 fi
4207
4208 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4209
4210 fi;
4211
4212 eval "$ac_cv_use_ftp"
4213 if test "$no_cache" != 1; then
4214 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4215 fi
4216
4217 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4218 echo "$as_me:$LINENO: result: yes" >&5
4219 echo "${ECHO_T}yes" >&6
4220 else
4221 echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4223 fi
4224
4225
4226 enablestring=
4227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4228 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4229 no_cache=0
4230 # Check whether --enable-http or --disable-http was given.
4231 if test "${enable_http+set}" = set; then
4232 enableval="$enable_http"
4233
4234 if test "$enableval" = yes; then
4235 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4236 else
4237 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4238 fi
4239
4240 else
4241
4242 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4243 if test "x$LINE" != x ; then
4244 eval "DEFAULT_$LINE"
4245 else
4246 no_cache=1
4247 fi
4248
4249 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4250
4251 fi;
4252
4253 eval "$ac_cv_use_http"
4254 if test "$no_cache" != 1; then
4255 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4256 fi
4257
4258 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4259 echo "$as_me:$LINENO: result: yes" >&5
4260 echo "${ECHO_T}yes" >&6
4261 else
4262 echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4264 fi
4265
4266
4267 enablestring=
4268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4269 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4270 no_cache=0
4271 # Check whether --enable-fileproto or --disable-fileproto was given.
4272 if test "${enable_fileproto+set}" = set; then
4273 enableval="$enable_fileproto"
4274
4275 if test "$enableval" = yes; then
4276 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4277 else
4278 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4279 fi
4280
4281 else
4282
4283 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4284 if test "x$LINE" != x ; then
4285 eval "DEFAULT_$LINE"
4286 else
4287 no_cache=1
4288 fi
4289
4290 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4291
4292 fi;
4293
4294 eval "$ac_cv_use_fileproto"
4295 if test "$no_cache" != 1; then
4296 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4297 fi
4298
4299 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4300 echo "$as_me:$LINENO: result: yes" >&5
4301 echo "${ECHO_T}yes" >&6
4302 else
4303 echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6
4305 fi
4306
4307
4308 enablestring=
4309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4310 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4311 no_cache=0
4312 # Check whether --enable-sockets or --disable-sockets was given.
4313 if test "${enable_sockets+set}" = set; then
4314 enableval="$enable_sockets"
4315
4316 if test "$enableval" = yes; then
4317 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4318 else
4319 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4320 fi
4321
4322 else
4323
4324 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4325 if test "x$LINE" != x ; then
4326 eval "DEFAULT_$LINE"
4327 else
4328 no_cache=1
4329 fi
4330
4331 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4332
4333 fi;
4334
4335 eval "$ac_cv_use_sockets"
4336 if test "$no_cache" != 1; then
4337 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4338 fi
4339
4340 if test "$wxUSE_SOCKETS" = yes; then
4341 echo "$as_me:$LINENO: result: yes" >&5
4342 echo "${ECHO_T}yes" >&6
4343 else
4344 echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4346 fi
4347
4348
4349 enablestring=
4350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4351 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4352 no_cache=0
4353 # Check whether --enable-ole or --disable-ole was given.
4354 if test "${enable_ole+set}" = set; then
4355 enableval="$enable_ole"
4356
4357 if test "$enableval" = yes; then
4358 ac_cv_use_ole='wxUSE_OLE=yes'
4359 else
4360 ac_cv_use_ole='wxUSE_OLE=no'
4361 fi
4362
4363 else
4364
4365 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4366 if test "x$LINE" != x ; then
4367 eval "DEFAULT_$LINE"
4368 else
4369 no_cache=1
4370 fi
4371
4372 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4373
4374 fi;
4375
4376 eval "$ac_cv_use_ole"
4377 if test "$no_cache" != 1; then
4378 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4379 fi
4380
4381 if test "$wxUSE_OLE" = yes; then
4382 echo "$as_me:$LINENO: result: yes" >&5
4383 echo "${ECHO_T}yes" >&6
4384 else
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4387 fi
4388
4389
4390 enablestring=
4391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4392 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4393 no_cache=0
4394 # Check whether --enable-dataobj or --disable-dataobj was given.
4395 if test "${enable_dataobj+set}" = set; then
4396 enableval="$enable_dataobj"
4397
4398 if test "$enableval" = yes; then
4399 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4400 else
4401 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4402 fi
4403
4404 else
4405
4406 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4407 if test "x$LINE" != x ; then
4408 eval "DEFAULT_$LINE"
4409 else
4410 no_cache=1
4411 fi
4412
4413 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4414
4415 fi;
4416
4417 eval "$ac_cv_use_dataobj"
4418 if test "$no_cache" != 1; then
4419 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4420 fi
4421
4422 if test "$wxUSE_DATAOBJ" = yes; then
4423 echo "$as_me:$LINENO: result: yes" >&5
4424 echo "${ECHO_T}yes" >&6
4425 else
4426 echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6
4428 fi
4429
4430
4431
4432 enablestring=
4433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4434 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4435 no_cache=0
4436 # Check whether --enable-ipc or --disable-ipc was given.
4437 if test "${enable_ipc+set}" = set; then
4438 enableval="$enable_ipc"
4439
4440 if test "$enableval" = yes; then
4441 ac_cv_use_ipc='wxUSE_IPC=yes'
4442 else
4443 ac_cv_use_ipc='wxUSE_IPC=no'
4444 fi
4445
4446 else
4447
4448 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4449 if test "x$LINE" != x ; then
4450 eval "DEFAULT_$LINE"
4451 else
4452 no_cache=1
4453 fi
4454
4455 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4456
4457 fi;
4458
4459 eval "$ac_cv_use_ipc"
4460 if test "$no_cache" != 1; then
4461 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4462 fi
4463
4464 if test "$wxUSE_IPC" = yes; then
4465 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4467 else
4468 echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6
4470 fi
4471
4472
4473
4474 enablestring=
4475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4476 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4477 no_cache=0
4478 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4479 if test "${enable_apple_ieee+set}" = set; then
4480 enableval="$enable_apple_ieee"
4481
4482 if test "$enableval" = yes; then
4483 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4484 else
4485 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4486 fi
4487
4488 else
4489
4490 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4491 if test "x$LINE" != x ; then
4492 eval "DEFAULT_$LINE"
4493 else
4494 no_cache=1
4495 fi
4496
4497 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4498
4499 fi;
4500
4501 eval "$ac_cv_use_apple_ieee"
4502 if test "$no_cache" != 1; then
4503 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4504 fi
4505
4506 if test "$wxUSE_APPLE_IEEE" = yes; then
4507 echo "$as_me:$LINENO: result: yes" >&5
4508 echo "${ECHO_T}yes" >&6
4509 else
4510 echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6
4512 fi
4513
4514
4515 enablestring=
4516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4517 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4518 no_cache=0
4519 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4520 if test "${enable_catch_segvs+set}" = set; then
4521 enableval="$enable_catch_segvs"
4522
4523 if test "$enableval" = yes; then
4524 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4525 else
4526 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4527 fi
4528
4529 else
4530
4531 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4532 if test "x$LINE" != x ; then
4533 eval "DEFAULT_$LINE"
4534 else
4535 no_cache=1
4536 fi
4537
4538 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4539
4540 fi;
4541
4542 eval "$ac_cv_use_catch_segvs"
4543 if test "$no_cache" != 1; then
4544 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4545 fi
4546
4547 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4548 echo "$as_me:$LINENO: result: yes" >&5
4549 echo "${ECHO_T}yes" >&6
4550 else
4551 echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6
4553 fi
4554
4555
4556 enablestring=
4557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4558 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4559 no_cache=0
4560 # Check whether --enable-cmdline or --disable-cmdline was given.
4561 if test "${enable_cmdline+set}" = set; then
4562 enableval="$enable_cmdline"
4563
4564 if test "$enableval" = yes; then
4565 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4566 else
4567 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4568 fi
4569
4570 else
4571
4572 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4573 if test "x$LINE" != x ; then
4574 eval "DEFAULT_$LINE"
4575 else
4576 no_cache=1
4577 fi
4578
4579 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4580
4581 fi;
4582
4583 eval "$ac_cv_use_cmdline"
4584 if test "$no_cache" != 1; then
4585 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4586 fi
4587
4588 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4589 echo "$as_me:$LINENO: result: yes" >&5
4590 echo "${ECHO_T}yes" >&6
4591 else
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4594 fi
4595
4596
4597 enablestring=
4598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4599 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4600 no_cache=0
4601 # Check whether --enable-datetime or --disable-datetime was given.
4602 if test "${enable_datetime+set}" = set; then
4603 enableval="$enable_datetime"
4604
4605 if test "$enableval" = yes; then
4606 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4607 else
4608 ac_cv_use_datetime='wxUSE_DATETIME=no'
4609 fi
4610
4611 else
4612
4613 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4614 if test "x$LINE" != x ; then
4615 eval "DEFAULT_$LINE"
4616 else
4617 no_cache=1
4618 fi
4619
4620 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4621
4622 fi;
4623
4624 eval "$ac_cv_use_datetime"
4625 if test "$no_cache" != 1; then
4626 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4627 fi
4628
4629 if test "$wxUSE_DATETIME" = yes; then
4630 echo "$as_me:$LINENO: result: yes" >&5
4631 echo "${ECHO_T}yes" >&6
4632 else
4633 echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6
4635 fi
4636
4637
4638 enablestring=
4639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4640 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4641 no_cache=0
4642 # Check whether --enable-dialupman or --disable-dialupman was given.
4643 if test "${enable_dialupman+set}" = set; then
4644 enableval="$enable_dialupman"
4645
4646 if test "$enableval" = yes; then
4647 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4648 else
4649 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4650 fi
4651
4652 else
4653
4654 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4655 if test "x$LINE" != x ; then
4656 eval "DEFAULT_$LINE"
4657 else
4658 no_cache=1
4659 fi
4660
4661 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4662
4663 fi;
4664
4665 eval "$ac_cv_use_dialupman"
4666 if test "$no_cache" != 1; then
4667 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4668 fi
4669
4670 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4671 echo "$as_me:$LINENO: result: yes" >&5
4672 echo "${ECHO_T}yes" >&6
4673 else
4674 echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6
4676 fi
4677
4678
4679 enablestring=
4680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4681 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4682 no_cache=0
4683 # Check whether --enable-dynlib or --disable-dynlib was given.
4684 if test "${enable_dynlib+set}" = set; then
4685 enableval="$enable_dynlib"
4686
4687 if test "$enableval" = yes; then
4688 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4689 else
4690 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4691 fi
4692
4693 else
4694
4695 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4696 if test "x$LINE" != x ; then
4697 eval "DEFAULT_$LINE"
4698 else
4699 no_cache=1
4700 fi
4701
4702 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4703
4704 fi;
4705
4706 eval "$ac_cv_use_dynlib"
4707 if test "$no_cache" != 1; then
4708 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4709 fi
4710
4711 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4712 echo "$as_me:$LINENO: result: yes" >&5
4713 echo "${ECHO_T}yes" >&6
4714 else
4715 echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6
4717 fi
4718
4719
4720 enablestring=
4721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4722 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4723 no_cache=0
4724 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4725 if test "${enable_dynamicloader+set}" = set; then
4726 enableval="$enable_dynamicloader"
4727
4728 if test "$enableval" = yes; then
4729 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4730 else
4731 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4732 fi
4733
4734 else
4735
4736 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4737 if test "x$LINE" != x ; then
4738 eval "DEFAULT_$LINE"
4739 else
4740 no_cache=1
4741 fi
4742
4743 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4744
4745 fi;
4746
4747 eval "$ac_cv_use_dynamicloader"
4748 if test "$no_cache" != 1; then
4749 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4750 fi
4751
4752 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4753 echo "$as_me:$LINENO: result: yes" >&5
4754 echo "${ECHO_T}yes" >&6
4755 else
4756 echo "$as_me:$LINENO: result: no" >&5
4757 echo "${ECHO_T}no" >&6
4758 fi
4759
4760
4761 enablestring=
4762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4763 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4764 no_cache=0
4765 # Check whether --enable-exceptions or --disable-exceptions was given.
4766 if test "${enable_exceptions+set}" = set; then
4767 enableval="$enable_exceptions"
4768
4769 if test "$enableval" = yes; then
4770 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4771 else
4772 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4773 fi
4774
4775 else
4776
4777 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4778 if test "x$LINE" != x ; then
4779 eval "DEFAULT_$LINE"
4780 else
4781 no_cache=1
4782 fi
4783
4784 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4785
4786 fi;
4787
4788 eval "$ac_cv_use_exceptions"
4789 if test "$no_cache" != 1; then
4790 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4791 fi
4792
4793 if test "$wxUSE_EXCEPTIONS" = yes; then
4794 echo "$as_me:$LINENO: result: yes" >&5
4795 echo "${ECHO_T}yes" >&6
4796 else
4797 echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6
4799 fi
4800
4801
4802 enablestring=
4803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4804 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4805 no_cache=0
4806 # Check whether --enable-ffile or --disable-ffile was given.
4807 if test "${enable_ffile+set}" = set; then
4808 enableval="$enable_ffile"
4809
4810 if test "$enableval" = yes; then
4811 ac_cv_use_ffile='wxUSE_FFILE=yes'
4812 else
4813 ac_cv_use_ffile='wxUSE_FFILE=no'
4814 fi
4815
4816 else
4817
4818 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4819 if test "x$LINE" != x ; then
4820 eval "DEFAULT_$LINE"
4821 else
4822 no_cache=1
4823 fi
4824
4825 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4826
4827 fi;
4828
4829 eval "$ac_cv_use_ffile"
4830 if test "$no_cache" != 1; then
4831 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4832 fi
4833
4834 if test "$wxUSE_FFILE" = yes; then
4835 echo "$as_me:$LINENO: result: yes" >&5
4836 echo "${ECHO_T}yes" >&6
4837 else
4838 echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6
4840 fi
4841
4842
4843 enablestring=
4844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4845 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4846 no_cache=0
4847 # Check whether --enable-file or --disable-file was given.
4848 if test "${enable_file+set}" = set; then
4849 enableval="$enable_file"
4850
4851 if test "$enableval" = yes; then
4852 ac_cv_use_file='wxUSE_FILE=yes'
4853 else
4854 ac_cv_use_file='wxUSE_FILE=no'
4855 fi
4856
4857 else
4858
4859 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4860 if test "x$LINE" != x ; then
4861 eval "DEFAULT_$LINE"
4862 else
4863 no_cache=1
4864 fi
4865
4866 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4867
4868 fi;
4869
4870 eval "$ac_cv_use_file"
4871 if test "$no_cache" != 1; then
4872 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4873 fi
4874
4875 if test "$wxUSE_FILE" = yes; then
4876 echo "$as_me:$LINENO: result: yes" >&5
4877 echo "${ECHO_T}yes" >&6
4878 else
4879 echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6
4881 fi
4882
4883
4884 enablestring=
4885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4886 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4887 no_cache=0
4888 # Check whether --enable-filesystem or --disable-filesystem was given.
4889 if test "${enable_filesystem+set}" = set; then
4890 enableval="$enable_filesystem"
4891
4892 if test "$enableval" = yes; then
4893 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4894 else
4895 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4896 fi
4897
4898 else
4899
4900 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4901 if test "x$LINE" != x ; then
4902 eval "DEFAULT_$LINE"
4903 else
4904 no_cache=1
4905 fi
4906
4907 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4908
4909 fi;
4910
4911 eval "$ac_cv_use_filesystem"
4912 if test "$no_cache" != 1; then
4913 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4914 fi
4915
4916 if test "$wxUSE_FILESYSTEM" = yes; then
4917 echo "$as_me:$LINENO: result: yes" >&5
4918 echo "${ECHO_T}yes" >&6
4919 else
4920 echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6
4922 fi
4923
4924
4925 enablestring=
4926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4927 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4928 no_cache=0
4929 # Check whether --enable-fontmap or --disable-fontmap was given.
4930 if test "${enable_fontmap+set}" = set; then
4931 enableval="$enable_fontmap"
4932
4933 if test "$enableval" = yes; then
4934 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4935 else
4936 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4937 fi
4938
4939 else
4940
4941 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4942 if test "x$LINE" != x ; then
4943 eval "DEFAULT_$LINE"
4944 else
4945 no_cache=1
4946 fi
4947
4948 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4949
4950 fi;
4951
4952 eval "$ac_cv_use_fontmap"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_FONTMAP" = yes; then
4958 echo "$as_me:$LINENO: result: yes" >&5
4959 echo "${ECHO_T}yes" >&6
4960 else
4961 echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6
4963 fi
4964
4965
4966 enablestring=
4967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4968 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
4969 no_cache=0
4970 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4971 if test "${enable_fs_inet+set}" = set; then
4972 enableval="$enable_fs_inet"
4973
4974 if test "$enableval" = yes; then
4975 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4976 else
4977 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4978 fi
4979
4980 else
4981
4982 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4983 if test "x$LINE" != x ; then
4984 eval "DEFAULT_$LINE"
4985 else
4986 no_cache=1
4987 fi
4988
4989 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4990
4991 fi;
4992
4993 eval "$ac_cv_use_fs_inet"
4994 if test "$no_cache" != 1; then
4995 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4996 fi
4997
4998 if test "$wxUSE_FS_INET" = yes; then
4999 echo "$as_me:$LINENO: result: yes" >&5
5000 echo "${ECHO_T}yes" >&6
5001 else
5002 echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6
5004 fi
5005
5006
5007 enablestring=
5008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5009 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5010 no_cache=0
5011 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5012 if test "${enable_fs_zip+set}" = set; then
5013 enableval="$enable_fs_zip"
5014
5015 if test "$enableval" = yes; then
5016 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5017 else
5018 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5019 fi
5020
5021 else
5022
5023 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5024 if test "x$LINE" != x ; then
5025 eval "DEFAULT_$LINE"
5026 else
5027 no_cache=1
5028 fi
5029
5030 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5031
5032 fi;
5033
5034 eval "$ac_cv_use_fs_zip"
5035 if test "$no_cache" != 1; then
5036 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5037 fi
5038
5039 if test "$wxUSE_FS_ZIP" = yes; then
5040 echo "$as_me:$LINENO: result: yes" >&5
5041 echo "${ECHO_T}yes" >&6
5042 else
5043 echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6
5045 fi
5046
5047
5048 enablestring=
5049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5050 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5051 no_cache=0
5052 # Check whether --enable-geometry or --disable-geometry was given.
5053 if test "${enable_geometry+set}" = set; then
5054 enableval="$enable_geometry"
5055
5056 if test "$enableval" = yes; then
5057 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5058 else
5059 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5060 fi
5061
5062 else
5063
5064 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5065 if test "x$LINE" != x ; then
5066 eval "DEFAULT_$LINE"
5067 else
5068 no_cache=1
5069 fi
5070
5071 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5072
5073 fi;
5074
5075 eval "$ac_cv_use_geometry"
5076 if test "$no_cache" != 1; then
5077 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5078 fi
5079
5080 if test "$wxUSE_GEOMETRY" = yes; then
5081 echo "$as_me:$LINENO: result: yes" >&5
5082 echo "${ECHO_T}yes" >&6
5083 else
5084 echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6
5086 fi
5087
5088
5089 enablestring=
5090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5091 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5092 no_cache=0
5093 # Check whether --enable-log or --disable-log was given.
5094 if test "${enable_log+set}" = set; then
5095 enableval="$enable_log"
5096
5097 if test "$enableval" = yes; then
5098 ac_cv_use_log='wxUSE_LOG=yes'
5099 else
5100 ac_cv_use_log='wxUSE_LOG=no'
5101 fi
5102
5103 else
5104
5105 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5106 if test "x$LINE" != x ; then
5107 eval "DEFAULT_$LINE"
5108 else
5109 no_cache=1
5110 fi
5111
5112 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5113
5114 fi;
5115
5116 eval "$ac_cv_use_log"
5117 if test "$no_cache" != 1; then
5118 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5119 fi
5120
5121 if test "$wxUSE_LOG" = yes; then
5122 echo "$as_me:$LINENO: result: yes" >&5
5123 echo "${ECHO_T}yes" >&6
5124 else
5125 echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6
5127 fi
5128
5129
5130 enablestring=
5131 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5132 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5133 no_cache=0
5134 # Check whether --enable-longlong or --disable-longlong was given.
5135 if test "${enable_longlong+set}" = set; then
5136 enableval="$enable_longlong"
5137
5138 if test "$enableval" = yes; then
5139 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5140 else
5141 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5142 fi
5143
5144 else
5145
5146 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5147 if test "x$LINE" != x ; then
5148 eval "DEFAULT_$LINE"
5149 else
5150 no_cache=1
5151 fi
5152
5153 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5154
5155 fi;
5156
5157 eval "$ac_cv_use_longlong"
5158 if test "$no_cache" != 1; then
5159 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5160 fi
5161
5162 if test "$wxUSE_LONGLONG" = yes; then
5163 echo "$as_me:$LINENO: result: yes" >&5
5164 echo "${ECHO_T}yes" >&6
5165 else
5166 echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6
5168 fi
5169
5170
5171 enablestring=
5172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5173 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5174 no_cache=0
5175 # Check whether --enable-mimetype or --disable-mimetype was given.
5176 if test "${enable_mimetype+set}" = set; then
5177 enableval="$enable_mimetype"
5178
5179 if test "$enableval" = yes; then
5180 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5181 else
5182 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5183 fi
5184
5185 else
5186
5187 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5188 if test "x$LINE" != x ; then
5189 eval "DEFAULT_$LINE"
5190 else
5191 no_cache=1
5192 fi
5193
5194 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5195
5196 fi;
5197
5198 eval "$ac_cv_use_mimetype"
5199 if test "$no_cache" != 1; then
5200 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5201 fi
5202
5203 if test "$wxUSE_MIMETYPE" = yes; then
5204 echo "$as_me:$LINENO: result: yes" >&5
5205 echo "${ECHO_T}yes" >&6
5206 else
5207 echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6
5209 fi
5210
5211
5212 enablestring=
5213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5214 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5215 no_cache=0
5216 # Check whether --enable-mslu or --disable-mslu was given.
5217 if test "${enable_mslu+set}" = set; then
5218 enableval="$enable_mslu"
5219
5220 if test "$enableval" = yes; then
5221 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5222 else
5223 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5224 fi
5225
5226 else
5227
5228 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5229 if test "x$LINE" != x ; then
5230 eval "DEFAULT_$LINE"
5231 else
5232 no_cache=1
5233 fi
5234
5235 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5236
5237 fi;
5238
5239 eval "$ac_cv_use_mslu"
5240 if test "$no_cache" != 1; then
5241 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5242 fi
5243
5244 if test "$wxUSE_UNICODE_MSLU" = yes; then
5245 echo "$as_me:$LINENO: result: yes" >&5
5246 echo "${ECHO_T}yes" >&6
5247 else
5248 echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6
5250 fi
5251
5252
5253 enablestring=
5254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5255 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5256 no_cache=0
5257 # Check whether --enable-snglinst or --disable-snglinst was given.
5258 if test "${enable_snglinst+set}" = set; then
5259 enableval="$enable_snglinst"
5260
5261 if test "$enableval" = yes; then
5262 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5263 else
5264 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5265 fi
5266
5267 else
5268
5269 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5270 if test "x$LINE" != x ; then
5271 eval "DEFAULT_$LINE"
5272 else
5273 no_cache=1
5274 fi
5275
5276 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5277
5278 fi;
5279
5280 eval "$ac_cv_use_snglinst"
5281 if test "$no_cache" != 1; then
5282 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5283 fi
5284
5285 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5286 echo "$as_me:$LINENO: result: yes" >&5
5287 echo "${ECHO_T}yes" >&6
5288 else
5289 echo "$as_me:$LINENO: result: no" >&5
5290 echo "${ECHO_T}no" >&6
5291 fi
5292
5293
5294 enablestring=
5295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5296 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5297 no_cache=0
5298 # Check whether --enable-streams or --disable-streams was given.
5299 if test "${enable_streams+set}" = set; then
5300 enableval="$enable_streams"
5301
5302 if test "$enableval" = yes; then
5303 ac_cv_use_streams='wxUSE_STREAMS=yes'
5304 else
5305 ac_cv_use_streams='wxUSE_STREAMS=no'
5306 fi
5307
5308 else
5309
5310 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5311 if test "x$LINE" != x ; then
5312 eval "DEFAULT_$LINE"
5313 else
5314 no_cache=1
5315 fi
5316
5317 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5318
5319 fi;
5320
5321 eval "$ac_cv_use_streams"
5322 if test "$no_cache" != 1; then
5323 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5324 fi
5325
5326 if test "$wxUSE_STREAMS" = yes; then
5327 echo "$as_me:$LINENO: result: yes" >&5
5328 echo "${ECHO_T}yes" >&6
5329 else
5330 echo "$as_me:$LINENO: result: no" >&5
5331 echo "${ECHO_T}no" >&6
5332 fi
5333
5334
5335 enablestring=
5336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5337 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5338 no_cache=0
5339 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5340 if test "${enable_std_iostreams+set}" = set; then
5341 enableval="$enable_std_iostreams"
5342
5343 if test "$enableval" = yes; then
5344 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5345 else
5346 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5347 fi
5348
5349 else
5350
5351 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5352 if test "x$LINE" != x ; then
5353 eval "DEFAULT_$LINE"
5354 else
5355 no_cache=1
5356 fi
5357
5358 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5359
5360 fi;
5361
5362 eval "$ac_cv_use_std_iostreams"
5363 if test "$no_cache" != 1; then
5364 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5365 fi
5366
5367 if test "$wxUSE_STD_IOSTREAM" = yes; then
5368 echo "$as_me:$LINENO: result: yes" >&5
5369 echo "${ECHO_T}yes" >&6
5370 else
5371 echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6
5373 fi
5374
5375
5376 enablestring=
5377 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5378 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5379 no_cache=0
5380 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5381 if test "${enable_stopwatch+set}" = set; then
5382 enableval="$enable_stopwatch"
5383
5384 if test "$enableval" = yes; then
5385 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5386 else
5387 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5388 fi
5389
5390 else
5391
5392 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5393 if test "x$LINE" != x ; then
5394 eval "DEFAULT_$LINE"
5395 else
5396 no_cache=1
5397 fi
5398
5399 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5400
5401 fi;
5402
5403 eval "$ac_cv_use_stopwatch"
5404 if test "$no_cache" != 1; then
5405 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5406 fi
5407
5408 if test "$wxUSE_STOPWATCH" = yes; then
5409 echo "$as_me:$LINENO: result: yes" >&5
5410 echo "${ECHO_T}yes" >&6
5411 else
5412 echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6
5414 fi
5415
5416
5417 enablestring=
5418 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5419 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5420 no_cache=0
5421 # Check whether --enable-system_options or --disable-system_options was given.
5422 if test "${enable_system_options+set}" = set; then
5423 enableval="$enable_system_options"
5424
5425 if test "$enableval" = yes; then
5426 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5427 else
5428 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5429 fi
5430
5431 else
5432
5433 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5434 if test "x$LINE" != x ; then
5435 eval "DEFAULT_$LINE"
5436 else
5437 no_cache=1
5438 fi
5439
5440 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5441
5442 fi;
5443
5444 eval "$ac_cv_use_system_options"
5445 if test "$no_cache" != 1; then
5446 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5447 fi
5448
5449 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5450 echo "$as_me:$LINENO: result: yes" >&5
5451 echo "${ECHO_T}yes" >&6
5452 else
5453 echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5455 fi
5456
5457
5458 enablestring=
5459 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5460 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5461 no_cache=0
5462 # Check whether --enable-textbuf or --disable-textbuf was given.
5463 if test "${enable_textbuf+set}" = set; then
5464 enableval="$enable_textbuf"
5465
5466 if test "$enableval" = yes; then
5467 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5468 else
5469 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5470 fi
5471
5472 else
5473
5474 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5475 if test "x$LINE" != x ; then
5476 eval "DEFAULT_$LINE"
5477 else
5478 no_cache=1
5479 fi
5480
5481 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5482
5483 fi;
5484
5485 eval "$ac_cv_use_textbuf"
5486 if test "$no_cache" != 1; then
5487 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5488 fi
5489
5490 if test "$wxUSE_TEXTBUFFER" = yes; then
5491 echo "$as_me:$LINENO: result: yes" >&5
5492 echo "${ECHO_T}yes" >&6
5493 else
5494 echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5496 fi
5497
5498
5499 enablestring=
5500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5501 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5502 no_cache=0
5503 # Check whether --enable-textfile or --disable-textfile was given.
5504 if test "${enable_textfile+set}" = set; then
5505 enableval="$enable_textfile"
5506
5507 if test "$enableval" = yes; then
5508 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5509 else
5510 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5511 fi
5512
5513 else
5514
5515 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5516 if test "x$LINE" != x ; then
5517 eval "DEFAULT_$LINE"
5518 else
5519 no_cache=1
5520 fi
5521
5522 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5523
5524 fi;
5525
5526 eval "$ac_cv_use_textfile"
5527 if test "$no_cache" != 1; then
5528 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5529 fi
5530
5531 if test "$wxUSE_TEXTFILE" = yes; then
5532 echo "$as_me:$LINENO: result: yes" >&5
5533 echo "${ECHO_T}yes" >&6
5534 else
5535 echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5537 fi
5538
5539
5540 enablestring=
5541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5542 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5543 no_cache=0
5544 # Check whether --enable-timer or --disable-timer was given.
5545 if test "${enable_timer+set}" = set; then
5546 enableval="$enable_timer"
5547
5548 if test "$enableval" = yes; then
5549 ac_cv_use_timer='wxUSE_TIMER=yes'
5550 else
5551 ac_cv_use_timer='wxUSE_TIMER=no'
5552 fi
5553
5554 else
5555
5556 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5557 if test "x$LINE" != x ; then
5558 eval "DEFAULT_$LINE"
5559 else
5560 no_cache=1
5561 fi
5562
5563 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5564
5565 fi;
5566
5567 eval "$ac_cv_use_timer"
5568 if test "$no_cache" != 1; then
5569 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5570 fi
5571
5572 if test "$wxUSE_TIMER" = yes; then
5573 echo "$as_me:$LINENO: result: yes" >&5
5574 echo "${ECHO_T}yes" >&6
5575 else
5576 echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6
5578 fi
5579
5580
5581 enablestring=
5582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5583 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5584 no_cache=0
5585 # Check whether --enable-unicode or --disable-unicode was given.
5586 if test "${enable_unicode+set}" = set; then
5587 enableval="$enable_unicode"
5588
5589 if test "$enableval" = yes; then
5590 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5591 else
5592 ac_cv_use_unicode='wxUSE_UNICODE=no'
5593 fi
5594
5595 else
5596
5597 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5598 if test "x$LINE" != x ; then
5599 eval "DEFAULT_$LINE"
5600 else
5601 no_cache=1
5602 fi
5603
5604 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5605
5606 fi;
5607
5608 eval "$ac_cv_use_unicode"
5609 if test "$no_cache" != 1; then
5610 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5611 fi
5612
5613 if test "$wxUSE_UNICODE" = yes; then
5614 echo "$as_me:$LINENO: result: yes" >&5
5615 echo "${ECHO_T}yes" >&6
5616 else
5617 echo "$as_me:$LINENO: result: no" >&5
5618 echo "${ECHO_T}no" >&6
5619 fi
5620
5621
5622 enablestring=
5623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5624 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5625 no_cache=0
5626 # Check whether --enable-sound or --disable-sound was given.
5627 if test "${enable_sound+set}" = set; then
5628 enableval="$enable_sound"
5629
5630 if test "$enableval" = yes; then
5631 ac_cv_use_sound='wxUSE_SOUND=yes'
5632 else
5633 ac_cv_use_sound='wxUSE_SOUND=no'
5634 fi
5635
5636 else
5637
5638 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5639 if test "x$LINE" != x ; then
5640 eval "DEFAULT_$LINE"
5641 else
5642 no_cache=1
5643 fi
5644
5645 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5646
5647 fi;
5648
5649 eval "$ac_cv_use_sound"
5650 if test "$no_cache" != 1; then
5651 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5652 fi
5653
5654 if test "$wxUSE_SOUND" = yes; then
5655 echo "$as_me:$LINENO: result: yes" >&5
5656 echo "${ECHO_T}yes" >&6
5657 else
5658 echo "$as_me:$LINENO: result: no" >&5
5659 echo "${ECHO_T}no" >&6
5660 fi
5661
5662
5663 enablestring=
5664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5665 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5666 no_cache=0
5667 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5668 if test "${enable_wxprintfv+set}" = set; then
5669 enableval="$enable_wxprintfv"
5670
5671 if test "$enableval" = yes; then
5672 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5673 else
5674 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5675 fi
5676
5677 else
5678
5679 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5680 if test "x$LINE" != x ; then
5681 eval "DEFAULT_$LINE"
5682 else
5683 no_cache=1
5684 fi
5685
5686 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5687
5688 fi;
5689
5690 eval "$ac_cv_use_wxprintfv"
5691 if test "$no_cache" != 1; then
5692 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5693 fi
5694
5695 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5696 echo "$as_me:$LINENO: result: yes" >&5
5697 echo "${ECHO_T}yes" >&6
5698 else
5699 echo "$as_me:$LINENO: result: no" >&5
5700 echo "${ECHO_T}no" >&6
5701 fi
5702
5703
5704 enablestring=
5705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5706 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5707 no_cache=0
5708 # Check whether --enable-zipstream or --disable-zipstream was given.
5709 if test "${enable_zipstream+set}" = set; then
5710 enableval="$enable_zipstream"
5711
5712 if test "$enableval" = yes; then
5713 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5714 else
5715 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5716 fi
5717
5718 else
5719
5720 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5721 if test "x$LINE" != x ; then
5722 eval "DEFAULT_$LINE"
5723 else
5724 no_cache=1
5725 fi
5726
5727 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5728
5729 fi;
5730
5731 eval "$ac_cv_use_zipstream"
5732 if test "$no_cache" != 1; then
5733 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5734 fi
5735
5736 if test "$wxUSE_ZIPSTREAM" = yes; then
5737 echo "$as_me:$LINENO: result: yes" >&5
5738 echo "${ECHO_T}yes" >&6
5739 else
5740 echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6
5742 fi
5743
5744
5745 enablestring=
5746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5747 echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5748 no_cache=0
5749 # Check whether --enable-gzstream or --disable-gzstream was given.
5750 if test "${enable_gzstream+set}" = set; then
5751 enableval="$enable_gzstream"
5752
5753 if test "$enableval" = yes; then
5754 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5755 else
5756 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5757 fi
5758
5759 else
5760
5761 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5762 if test "x$LINE" != x ; then
5763 eval "DEFAULT_$LINE"
5764 else
5765 no_cache=1
5766 fi
5767
5768 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5769
5770 fi;
5771
5772 eval "$ac_cv_use_gzstream"
5773 if test "$no_cache" != 1; then
5774 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5775 fi
5776
5777 if test "$wxUSE_GZSTREAM" = yes; then
5778 echo "$as_me:$LINENO: result: yes" >&5
5779 echo "${ECHO_T}yes" >&6
5780 else
5781 echo "$as_me:$LINENO: result: no" >&5
5782 echo "${ECHO_T}no" >&6
5783 fi
5784
5785
5786
5787 enablestring=
5788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5789 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5790 no_cache=0
5791 # Check whether --enable-url or --disable-url was given.
5792 if test "${enable_url+set}" = set; then
5793 enableval="$enable_url"
5794
5795 if test "$enableval" = yes; then
5796 ac_cv_use_url='wxUSE_URL=yes'
5797 else
5798 ac_cv_use_url='wxUSE_URL=no'
5799 fi
5800
5801 else
5802
5803 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
5810 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5811
5812 fi;
5813
5814 eval "$ac_cv_use_url"
5815 if test "$no_cache" != 1; then
5816 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5817 fi
5818
5819 if test "$wxUSE_URL" = yes; then
5820 echo "$as_me:$LINENO: result: yes" >&5
5821 echo "${ECHO_T}yes" >&6
5822 else
5823 echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6
5825 fi
5826
5827
5828 enablestring=
5829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5830 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5831 no_cache=0
5832 # Check whether --enable-protocol or --disable-protocol was given.
5833 if test "${enable_protocol+set}" = set; then
5834 enableval="$enable_protocol"
5835
5836 if test "$enableval" = yes; then
5837 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5838 else
5839 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5840 fi
5841
5842 else
5843
5844 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5845 if test "x$LINE" != x ; then
5846 eval "DEFAULT_$LINE"
5847 else
5848 no_cache=1
5849 fi
5850
5851 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5852
5853 fi;
5854
5855 eval "$ac_cv_use_protocol"
5856 if test "$no_cache" != 1; then
5857 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5858 fi
5859
5860 if test "$wxUSE_PROTOCOL" = yes; then
5861 echo "$as_me:$LINENO: result: yes" >&5
5862 echo "${ECHO_T}yes" >&6
5863 else
5864 echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5866 fi
5867
5868
5869 enablestring=
5870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5871 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5872 no_cache=0
5873 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5874 if test "${enable_protocol_http+set}" = set; then
5875 enableval="$enable_protocol_http"
5876
5877 if test "$enableval" = yes; then
5878 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5879 else
5880 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5881 fi
5882
5883 else
5884
5885 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5886 if test "x$LINE" != x ; then
5887 eval "DEFAULT_$LINE"
5888 else
5889 no_cache=1
5890 fi
5891
5892 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5893
5894 fi;
5895
5896 eval "$ac_cv_use_protocol_http"
5897 if test "$no_cache" != 1; then
5898 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5899 fi
5900
5901 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5902 echo "$as_me:$LINENO: result: yes" >&5
5903 echo "${ECHO_T}yes" >&6
5904 else
5905 echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5907 fi
5908
5909
5910 enablestring=
5911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5912 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5913 no_cache=0
5914 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5915 if test "${enable_protocol_ftp+set}" = set; then
5916 enableval="$enable_protocol_ftp"
5917
5918 if test "$enableval" = yes; then
5919 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5920 else
5921 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5922 fi
5923
5924 else
5925
5926 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5927 if test "x$LINE" != x ; then
5928 eval "DEFAULT_$LINE"
5929 else
5930 no_cache=1
5931 fi
5932
5933 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5934
5935 fi;
5936
5937 eval "$ac_cv_use_protocol_ftp"
5938 if test "$no_cache" != 1; then
5939 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5940 fi
5941
5942 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5943 echo "$as_me:$LINENO: result: yes" >&5
5944 echo "${ECHO_T}yes" >&6
5945 else
5946 echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6
5948 fi
5949
5950
5951 enablestring=
5952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5953 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5954 no_cache=0
5955 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5956 if test "${enable_protocol_file+set}" = set; then
5957 enableval="$enable_protocol_file"
5958
5959 if test "$enableval" = yes; then
5960 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5961 else
5962 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5963 fi
5964
5965 else
5966
5967 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5975
5976 fi;
5977
5978 eval "$ac_cv_use_protocol_file"
5979 if test "$no_cache" != 1; then
5980 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5981 fi
5982
5983 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5984 echo "$as_me:$LINENO: result: yes" >&5
5985 echo "${ECHO_T}yes" >&6
5986 else
5987 echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6
5989 fi
5990
5991
5992
5993
5994
5995 enablestring=
5996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5997 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5998 no_cache=0
5999 # Check whether --enable-threads or --disable-threads was given.
6000 if test "${enable_threads+set}" = set; then
6001 enableval="$enable_threads"
6002
6003 if test "$enableval" = yes; then
6004 ac_cv_use_threads='wxUSE_THREADS=yes'
6005 else
6006 ac_cv_use_threads='wxUSE_THREADS=no'
6007 fi
6008
6009 else
6010
6011 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6012 if test "x$LINE" != x ; then
6013 eval "DEFAULT_$LINE"
6014 else
6015 no_cache=1
6016 fi
6017
6018 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6019
6020 fi;
6021
6022 eval "$ac_cv_use_threads"
6023 if test "$no_cache" != 1; then
6024 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6025 fi
6026
6027 if test "$wxUSE_THREADS" = yes; then
6028 echo "$as_me:$LINENO: result: yes" >&5
6029 echo "${ECHO_T}yes" >&6
6030 else
6031 echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6
6033 fi
6034
6035
6036 if test "$wxUSE_GUI" = "yes"; then
6037
6038
6039
6040 enablestring=
6041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6042 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6043 no_cache=0
6044 # Check whether --enable-docview or --disable-docview was given.
6045 if test "${enable_docview+set}" = set; then
6046 enableval="$enable_docview"
6047
6048 if test "$enableval" = yes; then
6049 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6050 else
6051 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6052 fi
6053
6054 else
6055
6056 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6057 if test "x$LINE" != x ; then
6058 eval "DEFAULT_$LINE"
6059 else
6060 no_cache=1
6061 fi
6062
6063 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6064
6065 fi;
6066
6067 eval "$ac_cv_use_docview"
6068 if test "$no_cache" != 1; then
6069 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6070 fi
6071
6072 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6073 echo "$as_me:$LINENO: result: yes" >&5
6074 echo "${ECHO_T}yes" >&6
6075 else
6076 echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6
6078 fi
6079
6080
6081 enablestring=
6082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6083 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6084 no_cache=0
6085 # Check whether --enable-help or --disable-help was given.
6086 if test "${enable_help+set}" = set; then
6087 enableval="$enable_help"
6088
6089 if test "$enableval" = yes; then
6090 ac_cv_use_help='wxUSE_HELP=yes'
6091 else
6092 ac_cv_use_help='wxUSE_HELP=no'
6093 fi
6094
6095 else
6096
6097 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6098 if test "x$LINE" != x ; then
6099 eval "DEFAULT_$LINE"
6100 else
6101 no_cache=1
6102 fi
6103
6104 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6105
6106 fi;
6107
6108 eval "$ac_cv_use_help"
6109 if test "$no_cache" != 1; then
6110 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6111 fi
6112
6113 if test "$wxUSE_HELP" = yes; then
6114 echo "$as_me:$LINENO: result: yes" >&5
6115 echo "${ECHO_T}yes" >&6
6116 else
6117 echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6
6119 fi
6120
6121
6122 enablestring=
6123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6124 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6125 no_cache=0
6126 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6127 if test "${enable_mshtmlhelp+set}" = set; then
6128 enableval="$enable_mshtmlhelp"
6129
6130 if test "$enableval" = yes; then
6131 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6132 else
6133 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6134 fi
6135
6136 else
6137
6138 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6139 if test "x$LINE" != x ; then
6140 eval "DEFAULT_$LINE"
6141 else
6142 no_cache=1
6143 fi
6144
6145 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6146
6147 fi;
6148
6149 eval "$ac_cv_use_mshtmlhelp"
6150 if test "$no_cache" != 1; then
6151 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6152 fi
6153
6154 if test "$wxUSE_MS_HTML_HELP" = yes; then
6155 echo "$as_me:$LINENO: result: yes" >&5
6156 echo "${ECHO_T}yes" >&6
6157 else
6158 echo "$as_me:$LINENO: result: no" >&5
6159 echo "${ECHO_T}no" >&6
6160 fi
6161
6162
6163 enablestring=
6164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6165 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6166 no_cache=0
6167 # Check whether --enable-html or --disable-html was given.
6168 if test "${enable_html+set}" = set; then
6169 enableval="$enable_html"
6170
6171 if test "$enableval" = yes; then
6172 ac_cv_use_html='wxUSE_HTML=yes'
6173 else
6174 ac_cv_use_html='wxUSE_HTML=no'
6175 fi
6176
6177 else
6178
6179 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6180 if test "x$LINE" != x ; then
6181 eval "DEFAULT_$LINE"
6182 else
6183 no_cache=1
6184 fi
6185
6186 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6187
6188 fi;
6189
6190 eval "$ac_cv_use_html"
6191 if test "$no_cache" != 1; then
6192 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6193 fi
6194
6195 if test "$wxUSE_HTML" = yes; then
6196 echo "$as_me:$LINENO: result: yes" >&5
6197 echo "${ECHO_T}yes" >&6
6198 else
6199 echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6
6201 fi
6202
6203
6204 enablestring=
6205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6206 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6207 no_cache=0
6208 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6209 if test "${enable_htmlhelp+set}" = set; then
6210 enableval="$enable_htmlhelp"
6211
6212 if test "$enableval" = yes; then
6213 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6214 else
6215 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6216 fi
6217
6218 else
6219
6220 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6221 if test "x$LINE" != x ; then
6222 eval "DEFAULT_$LINE"
6223 else
6224 no_cache=1
6225 fi
6226
6227 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6228
6229 fi;
6230
6231 eval "$ac_cv_use_htmlhelp"
6232 if test "$no_cache" != 1; then
6233 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6234 fi
6235
6236 if test "$wxUSE_WXHTML_HELP" = yes; then
6237 echo "$as_me:$LINENO: result: yes" >&5
6238 echo "${ECHO_T}yes" >&6
6239 else
6240 echo "$as_me:$LINENO: result: no" >&5
6241 echo "${ECHO_T}no" >&6
6242 fi
6243
6244
6245 enablestring=
6246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6247 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6248 no_cache=0
6249 # Check whether --enable-constraints or --disable-constraints was given.
6250 if test "${enable_constraints+set}" = set; then
6251 enableval="$enable_constraints"
6252
6253 if test "$enableval" = yes; then
6254 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6255 else
6256 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6257 fi
6258
6259 else
6260
6261 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6262 if test "x$LINE" != x ; then
6263 eval "DEFAULT_$LINE"
6264 else
6265 no_cache=1
6266 fi
6267
6268 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6269
6270 fi;
6271
6272 eval "$ac_cv_use_constraints"
6273 if test "$no_cache" != 1; then
6274 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6275 fi
6276
6277 if test "$wxUSE_CONSTRAINTS" = yes; then
6278 echo "$as_me:$LINENO: result: yes" >&5
6279 echo "${ECHO_T}yes" >&6
6280 else
6281 echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6
6283 fi
6284
6285
6286 enablestring=
6287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6288 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6289 no_cache=0
6290 # Check whether --enable-printarch or --disable-printarch was given.
6291 if test "${enable_printarch+set}" = set; then
6292 enableval="$enable_printarch"
6293
6294 if test "$enableval" = yes; then
6295 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6296 else
6297 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6298 fi
6299
6300 else
6301
6302 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6303 if test "x$LINE" != x ; then
6304 eval "DEFAULT_$LINE"
6305 else
6306 no_cache=1
6307 fi
6308
6309 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6310
6311 fi;
6312
6313 eval "$ac_cv_use_printarch"
6314 if test "$no_cache" != 1; then
6315 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6316 fi
6317
6318 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6319 echo "$as_me:$LINENO: result: yes" >&5
6320 echo "${ECHO_T}yes" >&6
6321 else
6322 echo "$as_me:$LINENO: result: no" >&5
6323 echo "${ECHO_T}no" >&6
6324 fi
6325
6326
6327 enablestring=
6328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6329 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6330 no_cache=0
6331 # Check whether --enable-mdi or --disable-mdi was given.
6332 if test "${enable_mdi+set}" = set; then
6333 enableval="$enable_mdi"
6334
6335 if test "$enableval" = yes; then
6336 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6337 else
6338 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6339 fi
6340
6341 else
6342
6343 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6344 if test "x$LINE" != x ; then
6345 eval "DEFAULT_$LINE"
6346 else
6347 no_cache=1
6348 fi
6349
6350 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6351
6352 fi;
6353
6354 eval "$ac_cv_use_mdi"
6355 if test "$no_cache" != 1; then
6356 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6357 fi
6358
6359 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6360 echo "$as_me:$LINENO: result: yes" >&5
6361 echo "${ECHO_T}yes" >&6
6362 else
6363 echo "$as_me:$LINENO: result: no" >&5
6364 echo "${ECHO_T}no" >&6
6365 fi
6366
6367
6368 enablestring=
6369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6370 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6371 no_cache=0
6372 # Check whether --enable-loggui or --disable-loggui was given.
6373 if test "${enable_loggui+set}" = set; then
6374 enableval="$enable_loggui"
6375
6376 if test "$enableval" = yes; then
6377 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6378 else
6379 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6380 fi
6381
6382 else
6383
6384 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6385 if test "x$LINE" != x ; then
6386 eval "DEFAULT_$LINE"
6387 else
6388 no_cache=1
6389 fi
6390
6391 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6392
6393 fi;
6394
6395 eval "$ac_cv_use_loggui"
6396 if test "$no_cache" != 1; then
6397 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6398 fi
6399
6400 if test "$wxUSE_LOGGUI" = yes; then
6401 echo "$as_me:$LINENO: result: yes" >&5
6402 echo "${ECHO_T}yes" >&6
6403 else
6404 echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6
6406 fi
6407
6408
6409 enablestring=
6410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6411 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6412 no_cache=0
6413 # Check whether --enable-logwin or --disable-logwin was given.
6414 if test "${enable_logwin+set}" = set; then
6415 enableval="$enable_logwin"
6416
6417 if test "$enableval" = yes; then
6418 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6419 else
6420 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6421 fi
6422
6423 else
6424
6425 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6426 if test "x$LINE" != x ; then
6427 eval "DEFAULT_$LINE"
6428 else
6429 no_cache=1
6430 fi
6431
6432 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6433
6434 fi;
6435
6436 eval "$ac_cv_use_logwin"
6437 if test "$no_cache" != 1; then
6438 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6439 fi
6440
6441 if test "$wxUSE_LOGWINDOW" = yes; then
6442 echo "$as_me:$LINENO: result: yes" >&5
6443 echo "${ECHO_T}yes" >&6
6444 else
6445 echo "$as_me:$LINENO: result: no" >&5
6446 echo "${ECHO_T}no" >&6
6447 fi
6448
6449
6450 enablestring=
6451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6452 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6453 no_cache=0
6454 # Check whether --enable-logdialog or --disable-logdialog was given.
6455 if test "${enable_logdialog+set}" = set; then
6456 enableval="$enable_logdialog"
6457
6458 if test "$enableval" = yes; then
6459 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6460 else
6461 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6462 fi
6463
6464 else
6465
6466 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6467 if test "x$LINE" != x ; then
6468 eval "DEFAULT_$LINE"
6469 else
6470 no_cache=1
6471 fi
6472
6473 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6474
6475 fi;
6476
6477 eval "$ac_cv_use_logdialog"
6478 if test "$no_cache" != 1; then
6479 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6480 fi
6481
6482 if test "$wxUSE_LOGDIALOG" = yes; then
6483 echo "$as_me:$LINENO: result: yes" >&5
6484 echo "${ECHO_T}yes" >&6
6485 else
6486 echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6
6488 fi
6489
6490
6491
6492 enablestring=
6493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6494 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6495 no_cache=0
6496 # Check whether --enable-postscript or --disable-postscript was given.
6497 if test "${enable_postscript+set}" = set; then
6498 enableval="$enable_postscript"
6499
6500 if test "$enableval" = yes; then
6501 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6502 else
6503 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6504 fi
6505
6506 else
6507
6508 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6509 if test "x$LINE" != x ; then
6510 eval "DEFAULT_$LINE"
6511 else
6512 no_cache=1
6513 fi
6514
6515 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6516
6517 fi;
6518
6519 eval "$ac_cv_use_postscript"
6520 if test "$no_cache" != 1; then
6521 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6522 fi
6523
6524 if test "$wxUSE_POSTSCRIPT" = yes; then
6525 echo "$as_me:$LINENO: result: yes" >&5
6526 echo "${ECHO_T}yes" >&6
6527 else
6528 echo "$as_me:$LINENO: result: no" >&5
6529 echo "${ECHO_T}no" >&6
6530 fi
6531
6532
6533
6534
6535
6536 enablestring=
6537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6538 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6539 no_cache=0
6540 # Check whether --enable-prologio or --disable-prologio was given.
6541 if test "${enable_prologio+set}" = set; then
6542 enableval="$enable_prologio"
6543
6544 if test "$enableval" = yes; then
6545 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6546 else
6547 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6548 fi
6549
6550 else
6551
6552 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6553 if test "x$LINE" != x ; then
6554 eval "DEFAULT_$LINE"
6555 else
6556 no_cache=1
6557 fi
6558
6559 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6560
6561 fi;
6562
6563 eval "$ac_cv_use_prologio"
6564 if test "$no_cache" != 1; then
6565 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6566 fi
6567
6568 if test "$wxUSE_PROLOGIO" = yes; then
6569 echo "$as_me:$LINENO: result: yes" >&5
6570 echo "${ECHO_T}yes" >&6
6571 else
6572 echo "$as_me:$LINENO: result: no" >&5
6573 echo "${ECHO_T}no" >&6
6574 fi
6575
6576
6577 enablestring=
6578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6579 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6580 no_cache=0
6581 # Check whether --enable-resources or --disable-resources was given.
6582 if test "${enable_resources+set}" = set; then
6583 enableval="$enable_resources"
6584
6585 if test "$enableval" = yes; then
6586 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6587 else
6588 ac_cv_use_resources='wxUSE_RESOURCES=no'
6589 fi
6590
6591 else
6592
6593 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6594 if test "x$LINE" != x ; then
6595 eval "DEFAULT_$LINE"
6596 else
6597 no_cache=1
6598 fi
6599
6600 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6601
6602 fi;
6603
6604 eval "$ac_cv_use_resources"
6605 if test "$no_cache" != 1; then
6606 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6607 fi
6608
6609 if test "$wxUSE_RESOURCES" = yes; then
6610 echo "$as_me:$LINENO: result: yes" >&5
6611 echo "${ECHO_T}yes" >&6
6612 else
6613 echo "$as_me:$LINENO: result: no" >&5
6614 echo "${ECHO_T}no" >&6
6615 fi
6616
6617
6618
6619
6620 enablestring=
6621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6622 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6623 no_cache=0
6624 # Check whether --enable-clipboard or --disable-clipboard was given.
6625 if test "${enable_clipboard+set}" = set; then
6626 enableval="$enable_clipboard"
6627
6628 if test "$enableval" = yes; then
6629 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6630 else
6631 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6632 fi
6633
6634 else
6635
6636 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6637 if test "x$LINE" != x ; then
6638 eval "DEFAULT_$LINE"
6639 else
6640 no_cache=1
6641 fi
6642
6643 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6644
6645 fi;
6646
6647 eval "$ac_cv_use_clipboard"
6648 if test "$no_cache" != 1; then
6649 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6650 fi
6651
6652 if test "$wxUSE_CLIPBOARD" = yes; then
6653 echo "$as_me:$LINENO: result: yes" >&5
6654 echo "${ECHO_T}yes" >&6
6655 else
6656 echo "$as_me:$LINENO: result: no" >&5
6657 echo "${ECHO_T}no" >&6
6658 fi
6659
6660
6661 enablestring=
6662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6663 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6664 no_cache=0
6665 # Check whether --enable-dnd or --disable-dnd was given.
6666 if test "${enable_dnd+set}" = set; then
6667 enableval="$enable_dnd"
6668
6669 if test "$enableval" = yes; then
6670 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6671 else
6672 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6673 fi
6674
6675 else
6676
6677 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6678 if test "x$LINE" != x ; then
6679 eval "DEFAULT_$LINE"
6680 else
6681 no_cache=1
6682 fi
6683
6684 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6685
6686 fi;
6687
6688 eval "$ac_cv_use_dnd"
6689 if test "$no_cache" != 1; then
6690 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6691 fi
6692
6693 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6694 echo "$as_me:$LINENO: result: yes" >&5
6695 echo "${ECHO_T}yes" >&6
6696 else
6697 echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6
6699 fi
6700
6701
6702 enablestring=
6703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6704 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6705 no_cache=0
6706 # Check whether --enable-metafile or --disable-metafile was given.
6707 if test "${enable_metafile+set}" = set; then
6708 enableval="$enable_metafile"
6709
6710 if test "$enableval" = yes; then
6711 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6712 else
6713 ac_cv_use_metafile='wxUSE_METAFILE=no'
6714 fi
6715
6716 else
6717
6718 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6719 if test "x$LINE" != x ; then
6720 eval "DEFAULT_$LINE"
6721 else
6722 no_cache=1
6723 fi
6724
6725 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6726
6727 fi;
6728
6729 eval "$ac_cv_use_metafile"
6730 if test "$no_cache" != 1; then
6731 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6732 fi
6733
6734 if test "$wxUSE_METAFILE" = yes; then
6735 echo "$as_me:$LINENO: result: yes" >&5
6736 echo "${ECHO_T}yes" >&6
6737 else
6738 echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6
6740 fi
6741
6742
6743
6744
6745
6746 enablestring=
6747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6748 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6749 no_cache=0
6750 # Check whether --enable-controls or --disable-controls was given.
6751 if test "${enable_controls+set}" = set; then
6752 enableval="$enable_controls"
6753
6754 if test "$enableval" = yes; then
6755 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6756 else
6757 ac_cv_use_controls='wxUSE_CONTROLS=no'
6758 fi
6759
6760 else
6761
6762 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6763 if test "x$LINE" != x ; then
6764 eval "DEFAULT_$LINE"
6765 else
6766 no_cache=1
6767 fi
6768
6769 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6770
6771 fi;
6772
6773 eval "$ac_cv_use_controls"
6774 if test "$no_cache" != 1; then
6775 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6776 fi
6777
6778 if test "$wxUSE_CONTROLS" = yes; then
6779 echo "$as_me:$LINENO: result: yes" >&5
6780 echo "${ECHO_T}yes" >&6
6781 else
6782 echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6
6784 fi
6785
6786
6787 if test "$wxUSE_CONTROLS" = "yes"; then
6788 DEFAULT_wxUSE_ACCEL=yes
6789 DEFAULT_wxUSE_BMPBUTTON=yes
6790 DEFAULT_wxUSE_BUTTON=yes
6791 DEFAULT_wxUSE_CALCTRL=no
6792 DEFAULT_wxUSE_CARET=yes
6793 DEFAULT_wxUSE_COMBOBOX=yes
6794 DEFAULT_wxUSE_CHECKBOX=yes
6795 DEFAULT_wxUSE_CHECKLISTBOX=yes
6796 DEFAULT_wxUSE_CHOICE=yes
6797 DEFAULT_wxUSE_GAUGE=yes
6798 DEFAULT_wxUSE_GRID=yes
6799 DEFAULT_wxUSE_IMAGLIST=yes
6800 DEFAULT_wxUSE_LISTBOOK=yes
6801 DEFAULT_wxUSE_LISTBOX=yes
6802 DEFAULT_wxUSE_LISTCTRL=yes
6803 DEFAULT_wxUSE_NOTEBOOK=yes
6804 DEFAULT_wxUSE_RADIOBOX=yes
6805 DEFAULT_wxUSE_RADIOBTN=yes
6806 DEFAULT_wxUSE_SASH=yes
6807 DEFAULT_wxUSE_SCROLLBAR=yes
6808 DEFAULT_wxUSE_SLIDER=yes
6809 DEFAULT_wxUSE_SPINBTN=yes
6810 DEFAULT_wxUSE_SPINCTRL=yes
6811 DEFAULT_wxUSE_SPLITTER=yes
6812 DEFAULT_wxUSE_STATBMP=yes
6813 DEFAULT_wxUSE_STATBOX=yes
6814 DEFAULT_wxUSE_STATLINE=yes
6815 DEFAULT_wxUSE_STATUSBAR=yes
6816 DEFAULT_wxUSE_TAB_DIALOG=yes
6817 DEFAULT_wxUSE_TOGGLEBTN=yes
6818 DEFAULT_wxUSE_TOOLBAR=yes
6819 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6820 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6821 DEFAULT_wxUSE_TOOLTIPS=yes
6822 DEFAULT_wxUSE_TREECTRL=yes
6823 DEFAULT_wxUSE_POPUPWIN=yes
6824 DEFAULT_wxUSE_TIPWINDOW=yes
6825 elif test "$wxUSE_CONTROLS" = "no"; then
6826 DEFAULT_wxUSE_ACCEL=no
6827 DEFAULT_wxUSE_BMPBUTTON=no
6828 DEFAULT_wxUSE_BUTTON=no
6829 DEFAULT_wxUSE_CALCTRL=no
6830 DEFAULT_wxUSE_CARET=no
6831 DEFAULT_wxUSE_COMBOBOX=no
6832 DEFAULT_wxUSE_CHECKBOX=no
6833 DEFAULT_wxUSE_CHECKLISTBOX=no
6834 DEFAULT_wxUSE_CHOICE=no
6835 DEFAULT_wxUSE_GAUGE=no
6836 DEFAULT_wxUSE_GRID=no
6837 DEFAULT_wxUSE_IMAGLIST=no
6838 DEFAULT_wxUSE_LISTBOOK=no
6839 DEFAULT_wxUSE_LISTBOX=no
6840 DEFAULT_wxUSE_LISTCTRL=no
6841 DEFAULT_wxUSE_NOTEBOOK=no
6842 DEFAULT_wxUSE_RADIOBOX=no
6843 DEFAULT_wxUSE_RADIOBTN=no
6844 DEFAULT_wxUSE_SASH=no
6845 DEFAULT_wxUSE_SCROLLBAR=no
6846 DEFAULT_wxUSE_SLIDER=no
6847 DEFAULT_wxUSE_SPINBTN=no
6848 DEFAULT_wxUSE_SPINCTRL=no
6849 DEFAULT_wxUSE_SPLITTER=no
6850 DEFAULT_wxUSE_STATBMP=no
6851 DEFAULT_wxUSE_STATBOX=no
6852 DEFAULT_wxUSE_STATLINE=no
6853 DEFAULT_wxUSE_STATUSBAR=no
6854 DEFAULT_wxUSE_TAB_DIALOG=no
6855 DEFAULT_wxUSE_TOGGLEBTN=no
6856 DEFAULT_wxUSE_TOOLBAR=no
6857 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6858 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6859 DEFAULT_wxUSE_TOOLTIPS=no
6860 DEFAULT_wxUSE_TREECTRL=no
6861 DEFAULT_wxUSE_POPUPWIN=no
6862 DEFAULT_wxUSE_TIPWINDOW=no
6863 fi
6864
6865 ## FIXME: This is a blatant hack
6866 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6867 wxUSE_PRINTING_ARCHITECTURE=no
6868 wxUSE_DRAG_AND_DROP=no
6869 # Generic notebook requires tab dialog
6870 DEFAULT_wxUSE_TABDIALOG=yes
6871 DEFAULT_wxUSE_SCROLLBAR=no
6872 DEFAULT_wxUSE_TOOLTIPS=no
6873 DEFAULT_wxUSE_DRAGIMAGE=no
6874 fi
6875
6876
6877 enablestring=
6878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6879 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6880 no_cache=0
6881 # Check whether --enable-accel or --disable-accel was given.
6882 if test "${enable_accel+set}" = set; then
6883 enableval="$enable_accel"
6884
6885 if test "$enableval" = yes; then
6886 ac_cv_use_accel='wxUSE_ACCEL=yes'
6887 else
6888 ac_cv_use_accel='wxUSE_ACCEL=no'
6889 fi
6890
6891 else
6892
6893 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6894 if test "x$LINE" != x ; then
6895 eval "DEFAULT_$LINE"
6896 else
6897 no_cache=1
6898 fi
6899
6900 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6901
6902 fi;
6903
6904 eval "$ac_cv_use_accel"
6905 if test "$no_cache" != 1; then
6906 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6907 fi
6908
6909 if test "$wxUSE_ACCEL" = yes; then
6910 echo "$as_me:$LINENO: result: yes" >&5
6911 echo "${ECHO_T}yes" >&6
6912 else
6913 echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6
6915 fi
6916
6917
6918 enablestring=
6919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6920 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6921 no_cache=0
6922 # Check whether --enable-button or --disable-button was given.
6923 if test "${enable_button+set}" = set; then
6924 enableval="$enable_button"
6925
6926 if test "$enableval" = yes; then
6927 ac_cv_use_button='wxUSE_BUTTON=yes'
6928 else
6929 ac_cv_use_button='wxUSE_BUTTON=no'
6930 fi
6931
6932 else
6933
6934 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
6941 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6942
6943 fi;
6944
6945 eval "$ac_cv_use_button"
6946 if test "$no_cache" != 1; then
6947 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6948 fi
6949
6950 if test "$wxUSE_BUTTON" = yes; then
6951 echo "$as_me:$LINENO: result: yes" >&5
6952 echo "${ECHO_T}yes" >&6
6953 else
6954 echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6
6956 fi
6957
6958
6959 enablestring=
6960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6961 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6962 no_cache=0
6963 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6964 if test "${enable_bmpbutton+set}" = set; then
6965 enableval="$enable_bmpbutton"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6969 else
6970 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6971 fi
6972
6973 else
6974
6975 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6983
6984 fi;
6985
6986 eval "$ac_cv_use_bmpbutton"
6987 if test "$no_cache" != 1; then
6988 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6989 fi
6990
6991 if test "$wxUSE_BMPBUTTON" = yes; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993 echo "${ECHO_T}yes" >&6
6994 else
6995 echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6
6997 fi
6998
6999
7000 enablestring=
7001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7002 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7003 no_cache=0
7004 # Check whether --enable-calendar or --disable-calendar was given.
7005 if test "${enable_calendar+set}" = set; then
7006 enableval="$enable_calendar"
7007
7008 if test "$enableval" = yes; then
7009 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7010 else
7011 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7012 fi
7013
7014 else
7015
7016 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7024
7025 fi;
7026
7027 eval "$ac_cv_use_calendar"
7028 if test "$no_cache" != 1; then
7029 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7030 fi
7031
7032 if test "$wxUSE_CALCTRL" = yes; then
7033 echo "$as_me:$LINENO: result: yes" >&5
7034 echo "${ECHO_T}yes" >&6
7035 else
7036 echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6
7038 fi
7039
7040
7041 enablestring=
7042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7043 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7044 no_cache=0
7045 # Check whether --enable-caret or --disable-caret was given.
7046 if test "${enable_caret+set}" = set; then
7047 enableval="$enable_caret"
7048
7049 if test "$enableval" = yes; then
7050 ac_cv_use_caret='wxUSE_CARET=yes'
7051 else
7052 ac_cv_use_caret='wxUSE_CARET=no'
7053 fi
7054
7055 else
7056
7057 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7058 if test "x$LINE" != x ; then
7059 eval "DEFAULT_$LINE"
7060 else
7061 no_cache=1
7062 fi
7063
7064 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7065
7066 fi;
7067
7068 eval "$ac_cv_use_caret"
7069 if test "$no_cache" != 1; then
7070 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7071 fi
7072
7073 if test "$wxUSE_CARET" = yes; then
7074 echo "$as_me:$LINENO: result: yes" >&5
7075 echo "${ECHO_T}yes" >&6
7076 else
7077 echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6
7079 fi
7080
7081
7082 enablestring=
7083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7084 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7085 no_cache=0
7086 # Check whether --enable-checkbox or --disable-checkbox was given.
7087 if test "${enable_checkbox+set}" = set; then
7088 enableval="$enable_checkbox"
7089
7090 if test "$enableval" = yes; then
7091 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7092 else
7093 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7094 fi
7095
7096 else
7097
7098 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7099 if test "x$LINE" != x ; then
7100 eval "DEFAULT_$LINE"
7101 else
7102 no_cache=1
7103 fi
7104
7105 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7106
7107 fi;
7108
7109 eval "$ac_cv_use_checkbox"
7110 if test "$no_cache" != 1; then
7111 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7112 fi
7113
7114 if test "$wxUSE_CHECKBOX" = yes; then
7115 echo "$as_me:$LINENO: result: yes" >&5
7116 echo "${ECHO_T}yes" >&6
7117 else
7118 echo "$as_me:$LINENO: result: no" >&5
7119 echo "${ECHO_T}no" >&6
7120 fi
7121
7122
7123 enablestring=
7124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7125 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7126 no_cache=0
7127 # Check whether --enable-checklst or --disable-checklst was given.
7128 if test "${enable_checklst+set}" = set; then
7129 enableval="$enable_checklst"
7130
7131 if test "$enableval" = yes; then
7132 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7133 else
7134 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7135 fi
7136
7137 else
7138
7139 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7140 if test "x$LINE" != x ; then
7141 eval "DEFAULT_$LINE"
7142 else
7143 no_cache=1
7144 fi
7145
7146 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7147
7148 fi;
7149
7150 eval "$ac_cv_use_checklst"
7151 if test "$no_cache" != 1; then
7152 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7153 fi
7154
7155 if test "$wxUSE_CHECKLST" = yes; then
7156 echo "$as_me:$LINENO: result: yes" >&5
7157 echo "${ECHO_T}yes" >&6
7158 else
7159 echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6
7161 fi
7162
7163
7164 enablestring=
7165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7166 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7167 no_cache=0
7168 # Check whether --enable-choice or --disable-choice was given.
7169 if test "${enable_choice+set}" = set; then
7170 enableval="$enable_choice"
7171
7172 if test "$enableval" = yes; then
7173 ac_cv_use_choice='wxUSE_CHOICE=yes'
7174 else
7175 ac_cv_use_choice='wxUSE_CHOICE=no'
7176 fi
7177
7178 else
7179
7180 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7181 if test "x$LINE" != x ; then
7182 eval "DEFAULT_$LINE"
7183 else
7184 no_cache=1
7185 fi
7186
7187 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7188
7189 fi;
7190
7191 eval "$ac_cv_use_choice"
7192 if test "$no_cache" != 1; then
7193 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7194 fi
7195
7196 if test "$wxUSE_CHOICE" = yes; then
7197 echo "$as_me:$LINENO: result: yes" >&5
7198 echo "${ECHO_T}yes" >&6
7199 else
7200 echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6
7202 fi
7203
7204
7205 enablestring=
7206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7207 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7208 no_cache=0
7209 # Check whether --enable-combobox or --disable-combobox was given.
7210 if test "${enable_combobox+set}" = set; then
7211 enableval="$enable_combobox"
7212
7213 if test "$enableval" = yes; then
7214 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7215 else
7216 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7217 fi
7218
7219 else
7220
7221 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7222 if test "x$LINE" != x ; then
7223 eval "DEFAULT_$LINE"
7224 else
7225 no_cache=1
7226 fi
7227
7228 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7229
7230 fi;
7231
7232 eval "$ac_cv_use_combobox"
7233 if test "$no_cache" != 1; then
7234 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7235 fi
7236
7237 if test "$wxUSE_COMBOBOX" = yes; then
7238 echo "$as_me:$LINENO: result: yes" >&5
7239 echo "${ECHO_T}yes" >&6
7240 else
7241 echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6
7243 fi
7244
7245
7246 enablestring=
7247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7248 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7249 no_cache=0
7250 # Check whether --enable-display or --disable-display was given.
7251 if test "${enable_display+set}" = set; then
7252 enableval="$enable_display"
7253
7254 if test "$enableval" = yes; then
7255 ac_cv_use_display='wxUSE_DISPLAY=yes'
7256 else
7257 ac_cv_use_display='wxUSE_DISPLAY=no'
7258 fi
7259
7260 else
7261
7262 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7263 if test "x$LINE" != x ; then
7264 eval "DEFAULT_$LINE"
7265 else
7266 no_cache=1
7267 fi
7268
7269 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7270
7271 fi;
7272
7273 eval "$ac_cv_use_display"
7274 if test "$no_cache" != 1; then
7275 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7276 fi
7277
7278 if test "$wxUSE_DISPLAY" = yes; then
7279 echo "$as_me:$LINENO: result: yes" >&5
7280 echo "${ECHO_T}yes" >&6
7281 else
7282 echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7284 fi
7285
7286
7287 enablestring=
7288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7289 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7290 no_cache=0
7291 # Check whether --enable-gauge or --disable-gauge was given.
7292 if test "${enable_gauge+set}" = set; then
7293 enableval="$enable_gauge"
7294
7295 if test "$enableval" = yes; then
7296 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7297 else
7298 ac_cv_use_gauge='wxUSE_GAUGE=no'
7299 fi
7300
7301 else
7302
7303 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7304 if test "x$LINE" != x ; then
7305 eval "DEFAULT_$LINE"
7306 else
7307 no_cache=1
7308 fi
7309
7310 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7311
7312 fi;
7313
7314 eval "$ac_cv_use_gauge"
7315 if test "$no_cache" != 1; then
7316 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7317 fi
7318
7319 if test "$wxUSE_GAUGE" = yes; then
7320 echo "$as_me:$LINENO: result: yes" >&5
7321 echo "${ECHO_T}yes" >&6
7322 else
7323 echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6
7325 fi
7326
7327
7328 enablestring=
7329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7330 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7331 no_cache=0
7332 # Check whether --enable-grid or --disable-grid was given.
7333 if test "${enable_grid+set}" = set; then
7334 enableval="$enable_grid"
7335
7336 if test "$enableval" = yes; then
7337 ac_cv_use_grid='wxUSE_GRID=yes'
7338 else
7339 ac_cv_use_grid='wxUSE_GRID=no'
7340 fi
7341
7342 else
7343
7344 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7352
7353 fi;
7354
7355 eval "$ac_cv_use_grid"
7356 if test "$no_cache" != 1; then
7357 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7358 fi
7359
7360 if test "$wxUSE_GRID" = yes; then
7361 echo "$as_me:$LINENO: result: yes" >&5
7362 echo "${ECHO_T}yes" >&6
7363 else
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366 fi
7367
7368
7369 enablestring=
7370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7371 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7372 no_cache=0
7373 # Check whether --enable-imaglist or --disable-imaglist was given.
7374 if test "${enable_imaglist+set}" = set; then
7375 enableval="$enable_imaglist"
7376
7377 if test "$enableval" = yes; then
7378 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7379 else
7380 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7381 fi
7382
7383 else
7384
7385 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7386 if test "x$LINE" != x ; then
7387 eval "DEFAULT_$LINE"
7388 else
7389 no_cache=1
7390 fi
7391
7392 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7393
7394 fi;
7395
7396 eval "$ac_cv_use_imaglist"
7397 if test "$no_cache" != 1; then
7398 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7399 fi
7400
7401 if test "$wxUSE_IMAGLIST" = yes; then
7402 echo "$as_me:$LINENO: result: yes" >&5
7403 echo "${ECHO_T}yes" >&6
7404 else
7405 echo "$as_me:$LINENO: result: no" >&5
7406 echo "${ECHO_T}no" >&6
7407 fi
7408
7409
7410 enablestring=
7411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7412 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7413 no_cache=0
7414 # Check whether --enable-listbook or --disable-listbook was given.
7415 if test "${enable_listbook+set}" = set; then
7416 enableval="$enable_listbook"
7417
7418 if test "$enableval" = yes; then
7419 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7420 else
7421 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7422 fi
7423
7424 else
7425
7426 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7427 if test "x$LINE" != x ; then
7428 eval "DEFAULT_$LINE"
7429 else
7430 no_cache=1
7431 fi
7432
7433 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7434
7435 fi;
7436
7437 eval "$ac_cv_use_listbook"
7438 if test "$no_cache" != 1; then
7439 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7440 fi
7441
7442 if test "$wxUSE_LISTBOOK" = yes; then
7443 echo "$as_me:$LINENO: result: yes" >&5
7444 echo "${ECHO_T}yes" >&6
7445 else
7446 echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6
7448 fi
7449
7450
7451 enablestring=
7452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7453 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7454 no_cache=0
7455 # Check whether --enable-listbox or --disable-listbox was given.
7456 if test "${enable_listbox+set}" = set; then
7457 enableval="$enable_listbox"
7458
7459 if test "$enableval" = yes; then
7460 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7461 else
7462 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7463 fi
7464
7465 else
7466
7467 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7468 if test "x$LINE" != x ; then
7469 eval "DEFAULT_$LINE"
7470 else
7471 no_cache=1
7472 fi
7473
7474 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7475
7476 fi;
7477
7478 eval "$ac_cv_use_listbox"
7479 if test "$no_cache" != 1; then
7480 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7481 fi
7482
7483 if test "$wxUSE_LISTBOX" = yes; then
7484 echo "$as_me:$LINENO: result: yes" >&5
7485 echo "${ECHO_T}yes" >&6
7486 else
7487 echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6
7489 fi
7490
7491
7492 enablestring=
7493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7494 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7495 no_cache=0
7496 # Check whether --enable-listctrl or --disable-listctrl was given.
7497 if test "${enable_listctrl+set}" = set; then
7498 enableval="$enable_listctrl"
7499
7500 if test "$enableval" = yes; then
7501 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7502 else
7503 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7504 fi
7505
7506 else
7507
7508 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7509 if test "x$LINE" != x ; then
7510 eval "DEFAULT_$LINE"
7511 else
7512 no_cache=1
7513 fi
7514
7515 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7516
7517 fi;
7518
7519 eval "$ac_cv_use_listctrl"
7520 if test "$no_cache" != 1; then
7521 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7522 fi
7523
7524 if test "$wxUSE_LISTCTRL" = yes; then
7525 echo "$as_me:$LINENO: result: yes" >&5
7526 echo "${ECHO_T}yes" >&6
7527 else
7528 echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7530 fi
7531
7532
7533 enablestring=
7534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7535 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7536 no_cache=0
7537 # Check whether --enable-notebook or --disable-notebook was given.
7538 if test "${enable_notebook+set}" = set; then
7539 enableval="$enable_notebook"
7540
7541 if test "$enableval" = yes; then
7542 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7543 else
7544 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7545 fi
7546
7547 else
7548
7549 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7550 if test "x$LINE" != x ; then
7551 eval "DEFAULT_$LINE"
7552 else
7553 no_cache=1
7554 fi
7555
7556 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7557
7558 fi;
7559
7560 eval "$ac_cv_use_notebook"
7561 if test "$no_cache" != 1; then
7562 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7563 fi
7564
7565 if test "$wxUSE_NOTEBOOK" = yes; then
7566 echo "$as_me:$LINENO: result: yes" >&5
7567 echo "${ECHO_T}yes" >&6
7568 else
7569 echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6
7571 fi
7572
7573
7574 enablestring=
7575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7576 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7577 no_cache=0
7578 # Check whether --enable-radiobox or --disable-radiobox was given.
7579 if test "${enable_radiobox+set}" = set; then
7580 enableval="$enable_radiobox"
7581
7582 if test "$enableval" = yes; then
7583 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7584 else
7585 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7586 fi
7587
7588 else
7589
7590 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7591 if test "x$LINE" != x ; then
7592 eval "DEFAULT_$LINE"
7593 else
7594 no_cache=1
7595 fi
7596
7597 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7598
7599 fi;
7600
7601 eval "$ac_cv_use_radiobox"
7602 if test "$no_cache" != 1; then
7603 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7604 fi
7605
7606 if test "$wxUSE_RADIOBOX" = yes; then
7607 echo "$as_me:$LINENO: result: yes" >&5
7608 echo "${ECHO_T}yes" >&6
7609 else
7610 echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6
7612 fi
7613
7614
7615 enablestring=
7616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7617 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7618 no_cache=0
7619 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7620 if test "${enable_radiobtn+set}" = set; then
7621 enableval="$enable_radiobtn"
7622
7623 if test "$enableval" = yes; then
7624 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7625 else
7626 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7627 fi
7628
7629 else
7630
7631 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7632 if test "x$LINE" != x ; then
7633 eval "DEFAULT_$LINE"
7634 else
7635 no_cache=1
7636 fi
7637
7638 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7639
7640 fi;
7641
7642 eval "$ac_cv_use_radiobtn"
7643 if test "$no_cache" != 1; then
7644 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7645 fi
7646
7647 if test "$wxUSE_RADIOBTN" = yes; then
7648 echo "$as_me:$LINENO: result: yes" >&5
7649 echo "${ECHO_T}yes" >&6
7650 else
7651 echo "$as_me:$LINENO: result: no" >&5
7652 echo "${ECHO_T}no" >&6
7653 fi
7654
7655
7656 enablestring=
7657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7658 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7659 no_cache=0
7660 # Check whether --enable-sash or --disable-sash was given.
7661 if test "${enable_sash+set}" = set; then
7662 enableval="$enable_sash"
7663
7664 if test "$enableval" = yes; then
7665 ac_cv_use_sash='wxUSE_SASH=yes'
7666 else
7667 ac_cv_use_sash='wxUSE_SASH=no'
7668 fi
7669
7670 else
7671
7672 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7673 if test "x$LINE" != x ; then
7674 eval "DEFAULT_$LINE"
7675 else
7676 no_cache=1
7677 fi
7678
7679 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7680
7681 fi;
7682
7683 eval "$ac_cv_use_sash"
7684 if test "$no_cache" != 1; then
7685 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7686 fi
7687
7688 if test "$wxUSE_SASH" = yes; then
7689 echo "$as_me:$LINENO: result: yes" >&5
7690 echo "${ECHO_T}yes" >&6
7691 else
7692 echo "$as_me:$LINENO: result: no" >&5
7693 echo "${ECHO_T}no" >&6
7694 fi
7695
7696
7697 enablestring=
7698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7699 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7700 no_cache=0
7701 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7702 if test "${enable_scrollbar+set}" = set; then
7703 enableval="$enable_scrollbar"
7704
7705 if test "$enableval" = yes; then
7706 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7707 else
7708 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7709 fi
7710
7711 else
7712
7713 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7714 if test "x$LINE" != x ; then
7715 eval "DEFAULT_$LINE"
7716 else
7717 no_cache=1
7718 fi
7719
7720 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7721
7722 fi;
7723
7724 eval "$ac_cv_use_scrollbar"
7725 if test "$no_cache" != 1; then
7726 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7727 fi
7728
7729 if test "$wxUSE_SCROLLBAR" = yes; then
7730 echo "$as_me:$LINENO: result: yes" >&5
7731 echo "${ECHO_T}yes" >&6
7732 else
7733 echo "$as_me:$LINENO: result: no" >&5
7734 echo "${ECHO_T}no" >&6
7735 fi
7736
7737
7738 enablestring=
7739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7740 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7741 no_cache=0
7742 # Check whether --enable-slider or --disable-slider was given.
7743 if test "${enable_slider+set}" = set; then
7744 enableval="$enable_slider"
7745
7746 if test "$enableval" = yes; then
7747 ac_cv_use_slider='wxUSE_SLIDER=yes'
7748 else
7749 ac_cv_use_slider='wxUSE_SLIDER=no'
7750 fi
7751
7752 else
7753
7754 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7755 if test "x$LINE" != x ; then
7756 eval "DEFAULT_$LINE"
7757 else
7758 no_cache=1
7759 fi
7760
7761 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7762
7763 fi;
7764
7765 eval "$ac_cv_use_slider"
7766 if test "$no_cache" != 1; then
7767 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7768 fi
7769
7770 if test "$wxUSE_SLIDER" = yes; then
7771 echo "$as_me:$LINENO: result: yes" >&5
7772 echo "${ECHO_T}yes" >&6
7773 else
7774 echo "$as_me:$LINENO: result: no" >&5
7775 echo "${ECHO_T}no" >&6
7776 fi
7777
7778
7779 enablestring=
7780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7781 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7782 no_cache=0
7783 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7784 if test "${enable_spinbtn+set}" = set; then
7785 enableval="$enable_spinbtn"
7786
7787 if test "$enableval" = yes; then
7788 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7789 else
7790 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7791 fi
7792
7793 else
7794
7795 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7796 if test "x$LINE" != x ; then
7797 eval "DEFAULT_$LINE"
7798 else
7799 no_cache=1
7800 fi
7801
7802 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7803
7804 fi;
7805
7806 eval "$ac_cv_use_spinbtn"
7807 if test "$no_cache" != 1; then
7808 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7809 fi
7810
7811 if test "$wxUSE_SPINBTN" = yes; then
7812 echo "$as_me:$LINENO: result: yes" >&5
7813 echo "${ECHO_T}yes" >&6
7814 else
7815 echo "$as_me:$LINENO: result: no" >&5
7816 echo "${ECHO_T}no" >&6
7817 fi
7818
7819
7820 enablestring=
7821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7822 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7823 no_cache=0
7824 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7825 if test "${enable_spinctrl+set}" = set; then
7826 enableval="$enable_spinctrl"
7827
7828 if test "$enableval" = yes; then
7829 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7830 else
7831 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7832 fi
7833
7834 else
7835
7836 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7837 if test "x$LINE" != x ; then
7838 eval "DEFAULT_$LINE"
7839 else
7840 no_cache=1
7841 fi
7842
7843 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7844
7845 fi;
7846
7847 eval "$ac_cv_use_spinctrl"
7848 if test "$no_cache" != 1; then
7849 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7850 fi
7851
7852 if test "$wxUSE_SPINCTRL" = yes; then
7853 echo "$as_me:$LINENO: result: yes" >&5
7854 echo "${ECHO_T}yes" >&6
7855 else
7856 echo "$as_me:$LINENO: result: no" >&5
7857 echo "${ECHO_T}no" >&6
7858 fi
7859
7860
7861 enablestring=
7862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7863 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7864 no_cache=0
7865 # Check whether --enable-splitter or --disable-splitter was given.
7866 if test "${enable_splitter+set}" = set; then
7867 enableval="$enable_splitter"
7868
7869 if test "$enableval" = yes; then
7870 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7871 else
7872 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7873 fi
7874
7875 else
7876
7877 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7878 if test "x$LINE" != x ; then
7879 eval "DEFAULT_$LINE"
7880 else
7881 no_cache=1
7882 fi
7883
7884 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7885
7886 fi;
7887
7888 eval "$ac_cv_use_splitter"
7889 if test "$no_cache" != 1; then
7890 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7891 fi
7892
7893 if test "$wxUSE_SPLITTER" = yes; then
7894 echo "$as_me:$LINENO: result: yes" >&5
7895 echo "${ECHO_T}yes" >&6
7896 else
7897 echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6
7899 fi
7900
7901
7902 enablestring=
7903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7904 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7905 no_cache=0
7906 # Check whether --enable-statbmp or --disable-statbmp was given.
7907 if test "${enable_statbmp+set}" = set; then
7908 enableval="$enable_statbmp"
7909
7910 if test "$enableval" = yes; then
7911 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7912 else
7913 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7914 fi
7915
7916 else
7917
7918 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7919 if test "x$LINE" != x ; then
7920 eval "DEFAULT_$LINE"
7921 else
7922 no_cache=1
7923 fi
7924
7925 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7926
7927 fi;
7928
7929 eval "$ac_cv_use_statbmp"
7930 if test "$no_cache" != 1; then
7931 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7932 fi
7933
7934 if test "$wxUSE_STATBMP" = yes; then
7935 echo "$as_me:$LINENO: result: yes" >&5
7936 echo "${ECHO_T}yes" >&6
7937 else
7938 echo "$as_me:$LINENO: result: no" >&5
7939 echo "${ECHO_T}no" >&6
7940 fi
7941
7942
7943 enablestring=
7944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7945 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7946 no_cache=0
7947 # Check whether --enable-statbox or --disable-statbox was given.
7948 if test "${enable_statbox+set}" = set; then
7949 enableval="$enable_statbox"
7950
7951 if test "$enableval" = yes; then
7952 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7953 else
7954 ac_cv_use_statbox='wxUSE_STATBOX=no'
7955 fi
7956
7957 else
7958
7959 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7960 if test "x$LINE" != x ; then
7961 eval "DEFAULT_$LINE"
7962 else
7963 no_cache=1
7964 fi
7965
7966 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7967
7968 fi;
7969
7970 eval "$ac_cv_use_statbox"
7971 if test "$no_cache" != 1; then
7972 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7973 fi
7974
7975 if test "$wxUSE_STATBOX" = yes; then
7976 echo "$as_me:$LINENO: result: yes" >&5
7977 echo "${ECHO_T}yes" >&6
7978 else
7979 echo "$as_me:$LINENO: result: no" >&5
7980 echo "${ECHO_T}no" >&6
7981 fi
7982
7983
7984 enablestring=
7985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7986 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7987 no_cache=0
7988 # Check whether --enable-statline or --disable-statline was given.
7989 if test "${enable_statline+set}" = set; then
7990 enableval="$enable_statline"
7991
7992 if test "$enableval" = yes; then
7993 ac_cv_use_statline='wxUSE_STATLINE=yes'
7994 else
7995 ac_cv_use_statline='wxUSE_STATLINE=no'
7996 fi
7997
7998 else
7999
8000 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8001 if test "x$LINE" != x ; then
8002 eval "DEFAULT_$LINE"
8003 else
8004 no_cache=1
8005 fi
8006
8007 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8008
8009 fi;
8010
8011 eval "$ac_cv_use_statline"
8012 if test "$no_cache" != 1; then
8013 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8014 fi
8015
8016 if test "$wxUSE_STATLINE" = yes; then
8017 echo "$as_me:$LINENO: result: yes" >&5
8018 echo "${ECHO_T}yes" >&6
8019 else
8020 echo "$as_me:$LINENO: result: no" >&5
8021 echo "${ECHO_T}no" >&6
8022 fi
8023
8024
8025 enablestring=
8026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8027 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8028 no_cache=0
8029 # Check whether --enable-stattext or --disable-stattext was given.
8030 if test "${enable_stattext+set}" = set; then
8031 enableval="$enable_stattext"
8032
8033 if test "$enableval" = yes; then
8034 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8035 else
8036 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8037 fi
8038
8039 else
8040
8041 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8042 if test "x$LINE" != x ; then
8043 eval "DEFAULT_$LINE"
8044 else
8045 no_cache=1
8046 fi
8047
8048 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8049
8050 fi;
8051
8052 eval "$ac_cv_use_stattext"
8053 if test "$no_cache" != 1; then
8054 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8055 fi
8056
8057 if test "$wxUSE_STATTEXT" = yes; then
8058 echo "$as_me:$LINENO: result: yes" >&5
8059 echo "${ECHO_T}yes" >&6
8060 else
8061 echo "$as_me:$LINENO: result: no" >&5
8062 echo "${ECHO_T}no" >&6
8063 fi
8064
8065
8066 enablestring=
8067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8068 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8069 no_cache=0
8070 # Check whether --enable-statusbar or --disable-statusbar was given.
8071 if test "${enable_statusbar+set}" = set; then
8072 enableval="$enable_statusbar"
8073
8074 if test "$enableval" = yes; then
8075 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8076 else
8077 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8078 fi
8079
8080 else
8081
8082 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8083 if test "x$LINE" != x ; then
8084 eval "DEFAULT_$LINE"
8085 else
8086 no_cache=1
8087 fi
8088
8089 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8090
8091 fi;
8092
8093 eval "$ac_cv_use_statusbar"
8094 if test "$no_cache" != 1; then
8095 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8096 fi
8097
8098 if test "$wxUSE_STATUSBAR" = yes; then
8099 echo "$as_me:$LINENO: result: yes" >&5
8100 echo "${ECHO_T}yes" >&6
8101 else
8102 echo "$as_me:$LINENO: result: no" >&5
8103 echo "${ECHO_T}no" >&6
8104 fi
8105
8106
8107 enablestring=
8108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8109 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8110 no_cache=0
8111 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8112 if test "${enable_tabdialog+set}" = set; then
8113 enableval="$enable_tabdialog"
8114
8115 if test "$enableval" = yes; then
8116 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8117 else
8118 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8119 fi
8120
8121 else
8122
8123 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8124 if test "x$LINE" != x ; then
8125 eval "DEFAULT_$LINE"
8126 else
8127 no_cache=1
8128 fi
8129
8130 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8131
8132 fi;
8133
8134 eval "$ac_cv_use_tabdialog"
8135 if test "$no_cache" != 1; then
8136 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8137 fi
8138
8139 if test "$wxUSE_TABDIALOG" = yes; then
8140 echo "$as_me:$LINENO: result: yes" >&5
8141 echo "${ECHO_T}yes" >&6
8142 else
8143 echo "$as_me:$LINENO: result: no" >&5
8144 echo "${ECHO_T}no" >&6
8145 fi
8146
8147
8148 enablestring=
8149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8150 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8151 no_cache=0
8152 # Check whether --enable-textctrl or --disable-textctrl was given.
8153 if test "${enable_textctrl+set}" = set; then
8154 enableval="$enable_textctrl"
8155
8156 if test "$enableval" = yes; then
8157 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8158 else
8159 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8160 fi
8161
8162 else
8163
8164 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8165 if test "x$LINE" != x ; then
8166 eval "DEFAULT_$LINE"
8167 else
8168 no_cache=1
8169 fi
8170
8171 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8172
8173 fi;
8174
8175 eval "$ac_cv_use_textctrl"
8176 if test "$no_cache" != 1; then
8177 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8178 fi
8179
8180 if test "$wxUSE_TEXTCTRL" = yes; then
8181 echo "$as_me:$LINENO: result: yes" >&5
8182 echo "${ECHO_T}yes" >&6
8183 else
8184 echo "$as_me:$LINENO: result: no" >&5
8185 echo "${ECHO_T}no" >&6
8186 fi
8187
8188
8189 enablestring=
8190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8191 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8192 no_cache=0
8193 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8194 if test "${enable_togglebtn+set}" = set; then
8195 enableval="$enable_togglebtn"
8196
8197 if test "$enableval" = yes; then
8198 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8199 else
8200 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8201 fi
8202
8203 else
8204
8205 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8206 if test "x$LINE" != x ; then
8207 eval "DEFAULT_$LINE"
8208 else
8209 no_cache=1
8210 fi
8211
8212 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8213
8214 fi;
8215
8216 eval "$ac_cv_use_togglebtn"
8217 if test "$no_cache" != 1; then
8218 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8219 fi
8220
8221 if test "$wxUSE_TOGGLEBTN" = yes; then
8222 echo "$as_me:$LINENO: result: yes" >&5
8223 echo "${ECHO_T}yes" >&6
8224 else
8225 echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6
8227 fi
8228
8229
8230 enablestring=
8231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8232 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8233 no_cache=0
8234 # Check whether --enable-toolbar or --disable-toolbar was given.
8235 if test "${enable_toolbar+set}" = set; then
8236 enableval="$enable_toolbar"
8237
8238 if test "$enableval" = yes; then
8239 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8240 else
8241 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8242 fi
8243
8244 else
8245
8246 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8247 if test "x$LINE" != x ; then
8248 eval "DEFAULT_$LINE"
8249 else
8250 no_cache=1
8251 fi
8252
8253 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8254
8255 fi;
8256
8257 eval "$ac_cv_use_toolbar"
8258 if test "$no_cache" != 1; then
8259 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8260 fi
8261
8262 if test "$wxUSE_TOOLBAR" = yes; then
8263 echo "$as_me:$LINENO: result: yes" >&5
8264 echo "${ECHO_T}yes" >&6
8265 else
8266 echo "$as_me:$LINENO: result: no" >&5
8267 echo "${ECHO_T}no" >&6
8268 fi
8269
8270
8271 enablestring=
8272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8273 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8274 no_cache=0
8275 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8276 if test "${enable_tbarnative+set}" = set; then
8277 enableval="$enable_tbarnative"
8278
8279 if test "$enableval" = yes; then
8280 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8281 else
8282 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8283 fi
8284
8285 else
8286
8287 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8288 if test "x$LINE" != x ; then
8289 eval "DEFAULT_$LINE"
8290 else
8291 no_cache=1
8292 fi
8293
8294 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8295
8296 fi;
8297
8298 eval "$ac_cv_use_tbarnative"
8299 if test "$no_cache" != 1; then
8300 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8301 fi
8302
8303 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8304 echo "$as_me:$LINENO: result: yes" >&5
8305 echo "${ECHO_T}yes" >&6
8306 else
8307 echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8309 fi
8310
8311
8312 enablestring=
8313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8314 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8315 no_cache=0
8316 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8317 if test "${enable_tbarsmpl+set}" = set; then
8318 enableval="$enable_tbarsmpl"
8319
8320 if test "$enableval" = yes; then
8321 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8322 else
8323 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8324 fi
8325
8326 else
8327
8328 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8329 if test "x$LINE" != x ; then
8330 eval "DEFAULT_$LINE"
8331 else
8332 no_cache=1
8333 fi
8334
8335 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8336
8337 fi;
8338
8339 eval "$ac_cv_use_tbarsmpl"
8340 if test "$no_cache" != 1; then
8341 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8342 fi
8343
8344 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8345 echo "$as_me:$LINENO: result: yes" >&5
8346 echo "${ECHO_T}yes" >&6
8347 else
8348 echo "$as_me:$LINENO: result: no" >&5
8349 echo "${ECHO_T}no" >&6
8350 fi
8351
8352
8353 enablestring=
8354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8355 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8356 no_cache=0
8357 # Check whether --enable-treectrl or --disable-treectrl was given.
8358 if test "${enable_treectrl+set}" = set; then
8359 enableval="$enable_treectrl"
8360
8361 if test "$enableval" = yes; then
8362 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8363 else
8364 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8365 fi
8366
8367 else
8368
8369 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8370 if test "x$LINE" != x ; then
8371 eval "DEFAULT_$LINE"
8372 else
8373 no_cache=1
8374 fi
8375
8376 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8377
8378 fi;
8379
8380 eval "$ac_cv_use_treectrl"
8381 if test "$no_cache" != 1; then
8382 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8383 fi
8384
8385 if test "$wxUSE_TREECTRL" = yes; then
8386 echo "$as_me:$LINENO: result: yes" >&5
8387 echo "${ECHO_T}yes" >&6
8388 else
8389 echo "$as_me:$LINENO: result: no" >&5
8390 echo "${ECHO_T}no" >&6
8391 fi
8392
8393
8394 enablestring=
8395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8396 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8397 no_cache=0
8398 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8399 if test "${enable_tipwindow+set}" = set; then
8400 enableval="$enable_tipwindow"
8401
8402 if test "$enableval" = yes; then
8403 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8404 else
8405 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8406 fi
8407
8408 else
8409
8410 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8411 if test "x$LINE" != x ; then
8412 eval "DEFAULT_$LINE"
8413 else
8414 no_cache=1
8415 fi
8416
8417 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8418
8419 fi;
8420
8421 eval "$ac_cv_use_tipwindow"
8422 if test "$no_cache" != 1; then
8423 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8424 fi
8425
8426 if test "$wxUSE_TIPWINDOW" = yes; then
8427 echo "$as_me:$LINENO: result: yes" >&5
8428 echo "${ECHO_T}yes" >&6
8429 else
8430 echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6
8432 fi
8433
8434
8435 enablestring=
8436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8437 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8438 no_cache=0
8439 # Check whether --enable-popupwin or --disable-popupwin was given.
8440 if test "${enable_popupwin+set}" = set; then
8441 enableval="$enable_popupwin"
8442
8443 if test "$enableval" = yes; then
8444 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8445 else
8446 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8447 fi
8448
8449 else
8450
8451 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8452 if test "x$LINE" != x ; then
8453 eval "DEFAULT_$LINE"
8454 else
8455 no_cache=1
8456 fi
8457
8458 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8459
8460 fi;
8461
8462 eval "$ac_cv_use_popupwin"
8463 if test "$no_cache" != 1; then
8464 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8465 fi
8466
8467 if test "$wxUSE_POPUPWIN" = yes; then
8468 echo "$as_me:$LINENO: result: yes" >&5
8469 echo "${ECHO_T}yes" >&6
8470 else
8471 echo "$as_me:$LINENO: result: no" >&5
8472 echo "${ECHO_T}no" >&6
8473 fi
8474
8475
8476
8477
8478 enablestring=
8479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8480 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8481 no_cache=0
8482 # Check whether --enable-commondlg or --disable-commondlg was given.
8483 if test "${enable_commondlg+set}" = set; then
8484 enableval="$enable_commondlg"
8485
8486 if test "$enableval" = yes; then
8487 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8488 else
8489 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8490 fi
8491
8492 else
8493
8494 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8495 if test "x$LINE" != x ; then
8496 eval "DEFAULT_$LINE"
8497 else
8498 no_cache=1
8499 fi
8500
8501 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8502
8503 fi;
8504
8505 eval "$ac_cv_use_commondlg"
8506 if test "$no_cache" != 1; then
8507 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8508 fi
8509
8510 if test "$wxUSE_COMMONDLGS" = yes; then
8511 echo "$as_me:$LINENO: result: yes" >&5
8512 echo "${ECHO_T}yes" >&6
8513 else
8514 echo "$as_me:$LINENO: result: no" >&5
8515 echo "${ECHO_T}no" >&6
8516 fi
8517
8518
8519 enablestring=
8520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8521 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8522 no_cache=0
8523 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8524 if test "${enable_choicedlg+set}" = set; then
8525 enableval="$enable_choicedlg"
8526
8527 if test "$enableval" = yes; then
8528 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8529 else
8530 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8531 fi
8532
8533 else
8534
8535 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8536 if test "x$LINE" != x ; then
8537 eval "DEFAULT_$LINE"
8538 else
8539 no_cache=1
8540 fi
8541
8542 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8543
8544 fi;
8545
8546 eval "$ac_cv_use_choicedlg"
8547 if test "$no_cache" != 1; then
8548 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8549 fi
8550
8551 if test "$wxUSE_CHOICEDLG" = yes; then
8552 echo "$as_me:$LINENO: result: yes" >&5
8553 echo "${ECHO_T}yes" >&6
8554 else
8555 echo "$as_me:$LINENO: result: no" >&5
8556 echo "${ECHO_T}no" >&6
8557 fi
8558
8559
8560 enablestring=
8561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8562 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8563 no_cache=0
8564 # Check whether --enable-coldlg or --disable-coldlg was given.
8565 if test "${enable_coldlg+set}" = set; then
8566 enableval="$enable_coldlg"
8567
8568 if test "$enableval" = yes; then
8569 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8570 else
8571 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8572 fi
8573
8574 else
8575
8576 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8577 if test "x$LINE" != x ; then
8578 eval "DEFAULT_$LINE"
8579 else
8580 no_cache=1
8581 fi
8582
8583 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8584
8585 fi;
8586
8587 eval "$ac_cv_use_coldlg"
8588 if test "$no_cache" != 1; then
8589 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8590 fi
8591
8592 if test "$wxUSE_COLOURDLG" = yes; then
8593 echo "$as_me:$LINENO: result: yes" >&5
8594 echo "${ECHO_T}yes" >&6
8595 else
8596 echo "$as_me:$LINENO: result: no" >&5
8597 echo "${ECHO_T}no" >&6
8598 fi
8599
8600
8601 enablestring=
8602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8603 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8604 no_cache=0
8605 # Check whether --enable-filedlg or --disable-filedlg was given.
8606 if test "${enable_filedlg+set}" = set; then
8607 enableval="$enable_filedlg"
8608
8609 if test "$enableval" = yes; then
8610 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8611 else
8612 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8613 fi
8614
8615 else
8616
8617 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8618 if test "x$LINE" != x ; then
8619 eval "DEFAULT_$LINE"
8620 else
8621 no_cache=1
8622 fi
8623
8624 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8625
8626 fi;
8627
8628 eval "$ac_cv_use_filedlg"
8629 if test "$no_cache" != 1; then
8630 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8631 fi
8632
8633 if test "$wxUSE_FILEDLG" = yes; then
8634 echo "$as_me:$LINENO: result: yes" >&5
8635 echo "${ECHO_T}yes" >&6
8636 else
8637 echo "$as_me:$LINENO: result: no" >&5
8638 echo "${ECHO_T}no" >&6
8639 fi
8640
8641
8642 enablestring=
8643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8644 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8645 no_cache=0
8646 # Check whether --enable-finddlg or --disable-finddlg was given.
8647 if test "${enable_finddlg+set}" = set; then
8648 enableval="$enable_finddlg"
8649
8650 if test "$enableval" = yes; then
8651 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8652 else
8653 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8654 fi
8655
8656 else
8657
8658 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8659 if test "x$LINE" != x ; then
8660 eval "DEFAULT_$LINE"
8661 else
8662 no_cache=1
8663 fi
8664
8665 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8666
8667 fi;
8668
8669 eval "$ac_cv_use_finddlg"
8670 if test "$no_cache" != 1; then
8671 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8672 fi
8673
8674 if test "$wxUSE_FINDREPLDLG" = yes; then
8675 echo "$as_me:$LINENO: result: yes" >&5
8676 echo "${ECHO_T}yes" >&6
8677 else
8678 echo "$as_me:$LINENO: result: no" >&5
8679 echo "${ECHO_T}no" >&6
8680 fi
8681
8682
8683 enablestring=
8684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8685 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8686 no_cache=0
8687 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8688 if test "${enable_fontdlg+set}" = set; then
8689 enableval="$enable_fontdlg"
8690
8691 if test "$enableval" = yes; then
8692 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8693 else
8694 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8695 fi
8696
8697 else
8698
8699 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8700 if test "x$LINE" != x ; then
8701 eval "DEFAULT_$LINE"
8702 else
8703 no_cache=1
8704 fi
8705
8706 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8707
8708 fi;
8709
8710 eval "$ac_cv_use_fontdlg"
8711 if test "$no_cache" != 1; then
8712 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8713 fi
8714
8715 if test "$wxUSE_FONTDLG" = yes; then
8716 echo "$as_me:$LINENO: result: yes" >&5
8717 echo "${ECHO_T}yes" >&6
8718 else
8719 echo "$as_me:$LINENO: result: no" >&5
8720 echo "${ECHO_T}no" >&6
8721 fi
8722
8723
8724 enablestring=
8725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8726 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8727 no_cache=0
8728 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8729 if test "${enable_dirdlg+set}" = set; then
8730 enableval="$enable_dirdlg"
8731
8732 if test "$enableval" = yes; then
8733 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8734 else
8735 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8736 fi
8737
8738 else
8739
8740 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8741 if test "x$LINE" != x ; then
8742 eval "DEFAULT_$LINE"
8743 else
8744 no_cache=1
8745 fi
8746
8747 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8748
8749 fi;
8750
8751 eval "$ac_cv_use_dirdlg"
8752 if test "$no_cache" != 1; then
8753 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8754 fi
8755
8756 if test "$wxUSE_DIRDLG" = yes; then
8757 echo "$as_me:$LINENO: result: yes" >&5
8758 echo "${ECHO_T}yes" >&6
8759 else
8760 echo "$as_me:$LINENO: result: no" >&5
8761 echo "${ECHO_T}no" >&6
8762 fi
8763
8764
8765 enablestring=
8766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8767 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8768 no_cache=0
8769 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8770 if test "${enable_msgdlg+set}" = set; then
8771 enableval="$enable_msgdlg"
8772
8773 if test "$enableval" = yes; then
8774 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8775 else
8776 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8777 fi
8778
8779 else
8780
8781 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8782 if test "x$LINE" != x ; then
8783 eval "DEFAULT_$LINE"
8784 else
8785 no_cache=1
8786 fi
8787
8788 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8789
8790 fi;
8791
8792 eval "$ac_cv_use_msgdlg"
8793 if test "$no_cache" != 1; then
8794 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8795 fi
8796
8797 if test "$wxUSE_MSGDLG" = yes; then
8798 echo "$as_me:$LINENO: result: yes" >&5
8799 echo "${ECHO_T}yes" >&6
8800 else
8801 echo "$as_me:$LINENO: result: no" >&5
8802 echo "${ECHO_T}no" >&6
8803 fi
8804
8805
8806 enablestring=
8807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8808 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8809 no_cache=0
8810 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8811 if test "${enable_numberdlg+set}" = set; then
8812 enableval="$enable_numberdlg"
8813
8814 if test "$enableval" = yes; then
8815 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8816 else
8817 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8818 fi
8819
8820 else
8821
8822 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8823 if test "x$LINE" != x ; then
8824 eval "DEFAULT_$LINE"
8825 else
8826 no_cache=1
8827 fi
8828
8829 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8830
8831 fi;
8832
8833 eval "$ac_cv_use_numberdlg"
8834 if test "$no_cache" != 1; then
8835 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8836 fi
8837
8838 if test "$wxUSE_NUMBERDLG" = yes; then
8839 echo "$as_me:$LINENO: result: yes" >&5
8840 echo "${ECHO_T}yes" >&6
8841 else
8842 echo "$as_me:$LINENO: result: no" >&5
8843 echo "${ECHO_T}no" >&6
8844 fi
8845
8846
8847 enablestring=
8848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8849 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8850 no_cache=0
8851 # Check whether --enable-splash or --disable-splash was given.
8852 if test "${enable_splash+set}" = set; then
8853 enableval="$enable_splash"
8854
8855 if test "$enableval" = yes; then
8856 ac_cv_use_splash='wxUSE_SPLASH=yes'
8857 else
8858 ac_cv_use_splash='wxUSE_SPLASH=no'
8859 fi
8860
8861 else
8862
8863 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8864 if test "x$LINE" != x ; then
8865 eval "DEFAULT_$LINE"
8866 else
8867 no_cache=1
8868 fi
8869
8870 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8871
8872 fi;
8873
8874 eval "$ac_cv_use_splash"
8875 if test "$no_cache" != 1; then
8876 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8877 fi
8878
8879 if test "$wxUSE_SPLASH" = yes; then
8880 echo "$as_me:$LINENO: result: yes" >&5
8881 echo "${ECHO_T}yes" >&6
8882 else
8883 echo "$as_me:$LINENO: result: no" >&5
8884 echo "${ECHO_T}no" >&6
8885 fi
8886
8887
8888 enablestring=
8889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8890 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8891 no_cache=0
8892 # Check whether --enable-textdlg or --disable-textdlg was given.
8893 if test "${enable_textdlg+set}" = set; then
8894 enableval="$enable_textdlg"
8895
8896 if test "$enableval" = yes; then
8897 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8898 else
8899 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8900 fi
8901
8902 else
8903
8904 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8905 if test "x$LINE" != x ; then
8906 eval "DEFAULT_$LINE"
8907 else
8908 no_cache=1
8909 fi
8910
8911 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8912
8913 fi;
8914
8915 eval "$ac_cv_use_textdlg"
8916 if test "$no_cache" != 1; then
8917 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8918 fi
8919
8920 if test "$wxUSE_TEXTDLG" = yes; then
8921 echo "$as_me:$LINENO: result: yes" >&5
8922 echo "${ECHO_T}yes" >&6
8923 else
8924 echo "$as_me:$LINENO: result: no" >&5
8925 echo "${ECHO_T}no" >&6
8926 fi
8927
8928
8929 enablestring=
8930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8931 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8932 no_cache=0
8933 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8934 if test "${enable_tipdlg+set}" = set; then
8935 enableval="$enable_tipdlg"
8936
8937 if test "$enableval" = yes; then
8938 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8939 else
8940 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8941 fi
8942
8943 else
8944
8945 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8946 if test "x$LINE" != x ; then
8947 eval "DEFAULT_$LINE"
8948 else
8949 no_cache=1
8950 fi
8951
8952 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8953
8954 fi;
8955
8956 eval "$ac_cv_use_tipdlg"
8957 if test "$no_cache" != 1; then
8958 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8959 fi
8960
8961 if test "$wxUSE_STARTUP_TIPS" = yes; then
8962 echo "$as_me:$LINENO: result: yes" >&5
8963 echo "${ECHO_T}yes" >&6
8964 else
8965 echo "$as_me:$LINENO: result: no" >&5
8966 echo "${ECHO_T}no" >&6
8967 fi
8968
8969
8970 enablestring=
8971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8972 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8973 no_cache=0
8974 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8975 if test "${enable_progressdlg+set}" = set; then
8976 enableval="$enable_progressdlg"
8977
8978 if test "$enableval" = yes; then
8979 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8980 else
8981 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8982 fi
8983
8984 else
8985
8986 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8987 if test "x$LINE" != x ; then
8988 eval "DEFAULT_$LINE"
8989 else
8990 no_cache=1
8991 fi
8992
8993 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8994
8995 fi;
8996
8997 eval "$ac_cv_use_progressdlg"
8998 if test "$no_cache" != 1; then
8999 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9000 fi
9001
9002 if test "$wxUSE_PROGRESSDLG" = yes; then
9003 echo "$as_me:$LINENO: result: yes" >&5
9004 echo "${ECHO_T}yes" >&6
9005 else
9006 echo "$as_me:$LINENO: result: no" >&5
9007 echo "${ECHO_T}no" >&6
9008 fi
9009
9010
9011 enablestring=
9012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9013 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9014 no_cache=0
9015 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9016 if test "${enable_wizarddlg+set}" = set; then
9017 enableval="$enable_wizarddlg"
9018
9019 if test "$enableval" = yes; then
9020 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9021 else
9022 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9023 fi
9024
9025 else
9026
9027 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9028 if test "x$LINE" != x ; then
9029 eval "DEFAULT_$LINE"
9030 else
9031 no_cache=1
9032 fi
9033
9034 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9035
9036 fi;
9037
9038 eval "$ac_cv_use_wizarddlg"
9039 if test "$no_cache" != 1; then
9040 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9041 fi
9042
9043 if test "$wxUSE_WIZARDDLG" = yes; then
9044 echo "$as_me:$LINENO: result: yes" >&5
9045 echo "${ECHO_T}yes" >&6
9046 else
9047 echo "$as_me:$LINENO: result: no" >&5
9048 echo "${ECHO_T}no" >&6
9049 fi
9050
9051
9052
9053
9054 enablestring=
9055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9056 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9057 no_cache=0
9058 # Check whether --enable-menus or --disable-menus was given.
9059 if test "${enable_menus+set}" = set; then
9060 enableval="$enable_menus"
9061
9062 if test "$enableval" = yes; then
9063 ac_cv_use_menus='wxUSE_MENUS=yes'
9064 else
9065 ac_cv_use_menus='wxUSE_MENUS=no'
9066 fi
9067
9068 else
9069
9070 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9071 if test "x$LINE" != x ; then
9072 eval "DEFAULT_$LINE"
9073 else
9074 no_cache=1
9075 fi
9076
9077 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9078
9079 fi;
9080
9081 eval "$ac_cv_use_menus"
9082 if test "$no_cache" != 1; then
9083 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9084 fi
9085
9086 if test "$wxUSE_MENUS" = yes; then
9087 echo "$as_me:$LINENO: result: yes" >&5
9088 echo "${ECHO_T}yes" >&6
9089 else
9090 echo "$as_me:$LINENO: result: no" >&5
9091 echo "${ECHO_T}no" >&6
9092 fi
9093
9094
9095 enablestring=
9096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9097 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9098 no_cache=0
9099 # Check whether --enable-miniframe or --disable-miniframe was given.
9100 if test "${enable_miniframe+set}" = set; then
9101 enableval="$enable_miniframe"
9102
9103 if test "$enableval" = yes; then
9104 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9105 else
9106 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9107 fi
9108
9109 else
9110
9111 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9112 if test "x$LINE" != x ; then
9113 eval "DEFAULT_$LINE"
9114 else
9115 no_cache=1
9116 fi
9117
9118 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9119
9120 fi;
9121
9122 eval "$ac_cv_use_miniframe"
9123 if test "$no_cache" != 1; then
9124 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9125 fi
9126
9127 if test "$wxUSE_MINIFRAME" = yes; then
9128 echo "$as_me:$LINENO: result: yes" >&5
9129 echo "${ECHO_T}yes" >&6
9130 else
9131 echo "$as_me:$LINENO: result: no" >&5
9132 echo "${ECHO_T}no" >&6
9133 fi
9134
9135
9136 enablestring=
9137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9138 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9139 no_cache=0
9140 # Check whether --enable-tooltips or --disable-tooltips was given.
9141 if test "${enable_tooltips+set}" = set; then
9142 enableval="$enable_tooltips"
9143
9144 if test "$enableval" = yes; then
9145 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9146 else
9147 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9148 fi
9149
9150 else
9151
9152 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9153 if test "x$LINE" != x ; then
9154 eval "DEFAULT_$LINE"
9155 else
9156 no_cache=1
9157 fi
9158
9159 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9160
9161 fi;
9162
9163 eval "$ac_cv_use_tooltips"
9164 if test "$no_cache" != 1; then
9165 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9166 fi
9167
9168 if test "$wxUSE_TOOLTIPS" = yes; then
9169 echo "$as_me:$LINENO: result: yes" >&5
9170 echo "${ECHO_T}yes" >&6
9171 else
9172 echo "$as_me:$LINENO: result: no" >&5
9173 echo "${ECHO_T}no" >&6
9174 fi
9175
9176
9177 enablestring=
9178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9179 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9180 no_cache=0
9181 # Check whether --enable-splines or --disable-splines was given.
9182 if test "${enable_splines+set}" = set; then
9183 enableval="$enable_splines"
9184
9185 if test "$enableval" = yes; then
9186 ac_cv_use_splines='wxUSE_SPLINES=yes'
9187 else
9188 ac_cv_use_splines='wxUSE_SPLINES=no'
9189 fi
9190
9191 else
9192
9193 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9194 if test "x$LINE" != x ; then
9195 eval "DEFAULT_$LINE"
9196 else
9197 no_cache=1
9198 fi
9199
9200 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9201
9202 fi;
9203
9204 eval "$ac_cv_use_splines"
9205 if test "$no_cache" != 1; then
9206 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9207 fi
9208
9209 if test "$wxUSE_SPLINES" = yes; then
9210 echo "$as_me:$LINENO: result: yes" >&5
9211 echo "${ECHO_T}yes" >&6
9212 else
9213 echo "$as_me:$LINENO: result: no" >&5
9214 echo "${ECHO_T}no" >&6
9215 fi
9216
9217
9218 enablestring=
9219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9220 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9221 no_cache=0
9222 # Check whether --enable-validators or --disable-validators was given.
9223 if test "${enable_validators+set}" = set; then
9224 enableval="$enable_validators"
9225
9226 if test "$enableval" = yes; then
9227 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9228 else
9229 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9230 fi
9231
9232 else
9233
9234 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9235 if test "x$LINE" != x ; then
9236 eval "DEFAULT_$LINE"
9237 else
9238 no_cache=1
9239 fi
9240
9241 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9242
9243 fi;
9244
9245 eval "$ac_cv_use_validators"
9246 if test "$no_cache" != 1; then
9247 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9248 fi
9249
9250 if test "$wxUSE_VALIDATORS" = yes; then
9251 echo "$as_me:$LINENO: result: yes" >&5
9252 echo "${ECHO_T}yes" >&6
9253 else
9254 echo "$as_me:$LINENO: result: no" >&5
9255 echo "${ECHO_T}no" >&6
9256 fi
9257
9258
9259 enablestring=
9260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9261 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9262 no_cache=0
9263 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9264 if test "${enable_busyinfo+set}" = set; then
9265 enableval="$enable_busyinfo"
9266
9267 if test "$enableval" = yes; then
9268 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9269 else
9270 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9271 fi
9272
9273 else
9274
9275 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9276 if test "x$LINE" != x ; then
9277 eval "DEFAULT_$LINE"
9278 else
9279 no_cache=1
9280 fi
9281
9282 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9283
9284 fi;
9285
9286 eval "$ac_cv_use_busyinfo"
9287 if test "$no_cache" != 1; then
9288 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9289 fi
9290
9291 if test "$wxUSE_BUSYINFO" = yes; then
9292 echo "$as_me:$LINENO: result: yes" >&5
9293 echo "${ECHO_T}yes" >&6
9294 else
9295 echo "$as_me:$LINENO: result: no" >&5
9296 echo "${ECHO_T}no" >&6
9297 fi
9298
9299
9300 enablestring=
9301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9302 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9303 no_cache=0
9304 # Check whether --enable-joystick or --disable-joystick was given.
9305 if test "${enable_joystick+set}" = set; then
9306 enableval="$enable_joystick"
9307
9308 if test "$enableval" = yes; then
9309 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9310 else
9311 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9312 fi
9313
9314 else
9315
9316 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9317 if test "x$LINE" != x ; then
9318 eval "DEFAULT_$LINE"
9319 else
9320 no_cache=1
9321 fi
9322
9323 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9324
9325 fi;
9326
9327 eval "$ac_cv_use_joystick"
9328 if test "$no_cache" != 1; then
9329 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9330 fi
9331
9332 if test "$wxUSE_JOYSTICK" = yes; then
9333 echo "$as_me:$LINENO: result: yes" >&5
9334 echo "${ECHO_T}yes" >&6
9335 else
9336 echo "$as_me:$LINENO: result: no" >&5
9337 echo "${ECHO_T}no" >&6
9338 fi
9339
9340
9341 enablestring=
9342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9343 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9344 no_cache=0
9345 # Check whether --enable-metafile or --disable-metafile was given.
9346 if test "${enable_metafile+set}" = set; then
9347 enableval="$enable_metafile"
9348
9349 if test "$enableval" = yes; then
9350 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9351 else
9352 ac_cv_use_metafile='wxUSE_METAFILE=no'
9353 fi
9354
9355 else
9356
9357 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9358 if test "x$LINE" != x ; then
9359 eval "DEFAULT_$LINE"
9360 else
9361 no_cache=1
9362 fi
9363
9364 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9365
9366 fi;
9367
9368 eval "$ac_cv_use_metafile"
9369 if test "$no_cache" != 1; then
9370 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9371 fi
9372
9373 if test "$wxUSE_METAFILE" = yes; then
9374 echo "$as_me:$LINENO: result: yes" >&5
9375 echo "${ECHO_T}yes" >&6
9376 else
9377 echo "$as_me:$LINENO: result: no" >&5
9378 echo "${ECHO_T}no" >&6
9379 fi
9380
9381
9382 enablestring=
9383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9384 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9385 no_cache=0
9386 # Check whether --enable-dragimage or --disable-dragimage was given.
9387 if test "${enable_dragimage+set}" = set; then
9388 enableval="$enable_dragimage"
9389
9390 if test "$enableval" = yes; then
9391 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9392 else
9393 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9394 fi
9395
9396 else
9397
9398 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9399 if test "x$LINE" != x ; then
9400 eval "DEFAULT_$LINE"
9401 else
9402 no_cache=1
9403 fi
9404
9405 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9406
9407 fi;
9408
9409 eval "$ac_cv_use_dragimage"
9410 if test "$no_cache" != 1; then
9411 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9412 fi
9413
9414 if test "$wxUSE_DRAGIMAGE" = yes; then
9415 echo "$as_me:$LINENO: result: yes" >&5
9416 echo "${ECHO_T}yes" >&6
9417 else
9418 echo "$as_me:$LINENO: result: no" >&5
9419 echo "${ECHO_T}no" >&6
9420 fi
9421
9422
9423 enablestring=
9424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9425 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9426 no_cache=0
9427 # Check whether --enable-accessibility or --disable-accessibility was given.
9428 if test "${enable_accessibility+set}" = set; then
9429 enableval="$enable_accessibility"
9430
9431 if test "$enableval" = yes; then
9432 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9433 else
9434 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9435 fi
9436
9437 else
9438
9439 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9440 if test "x$LINE" != x ; then
9441 eval "DEFAULT_$LINE"
9442 else
9443 no_cache=1
9444 fi
9445
9446 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9447
9448 fi;
9449
9450 eval "$ac_cv_use_accessibility"
9451 if test "$no_cache" != 1; then
9452 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9453 fi
9454
9455 if test "$wxUSE_ACCESSIBILITY" = yes; then
9456 echo "$as_me:$LINENO: result: yes" >&5
9457 echo "${ECHO_T}yes" >&6
9458 else
9459 echo "$as_me:$LINENO: result: no" >&5
9460 echo "${ECHO_T}no" >&6
9461 fi
9462
9463
9464
9465
9466 enablestring=
9467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9468 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9469 no_cache=0
9470 # Check whether --enable-palette or --disable-palette was given.
9471 if test "${enable_palette+set}" = set; then
9472 enableval="$enable_palette"
9473
9474 if test "$enableval" = yes; then
9475 ac_cv_use_palette='wxUSE_PALETTE=yes'
9476 else
9477 ac_cv_use_palette='wxUSE_PALETTE=no'
9478 fi
9479
9480 else
9481
9482 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9483 if test "x$LINE" != x ; then
9484 eval "DEFAULT_$LINE"
9485 else
9486 no_cache=1
9487 fi
9488
9489 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9490
9491 fi;
9492
9493 eval "$ac_cv_use_palette"
9494 if test "$no_cache" != 1; then
9495 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9496 fi
9497
9498 if test "$wxUSE_PALETTE" = yes; then
9499 echo "$as_me:$LINENO: result: yes" >&5
9500 echo "${ECHO_T}yes" >&6
9501 else
9502 echo "$as_me:$LINENO: result: no" >&5
9503 echo "${ECHO_T}no" >&6
9504 fi
9505
9506
9507 enablestring=
9508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9509 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9510 no_cache=0
9511 # Check whether --enable-image or --disable-image was given.
9512 if test "${enable_image+set}" = set; then
9513 enableval="$enable_image"
9514
9515 if test "$enableval" = yes; then
9516 ac_cv_use_image='wxUSE_IMAGE=yes'
9517 else
9518 ac_cv_use_image='wxUSE_IMAGE=no'
9519 fi
9520
9521 else
9522
9523 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9524 if test "x$LINE" != x ; then
9525 eval "DEFAULT_$LINE"
9526 else
9527 no_cache=1
9528 fi
9529
9530 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9531
9532 fi;
9533
9534 eval "$ac_cv_use_image"
9535 if test "$no_cache" != 1; then
9536 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9537 fi
9538
9539 if test "$wxUSE_IMAGE" = yes; then
9540 echo "$as_me:$LINENO: result: yes" >&5
9541 echo "${ECHO_T}yes" >&6
9542 else
9543 echo "$as_me:$LINENO: result: no" >&5
9544 echo "${ECHO_T}no" >&6
9545 fi
9546
9547
9548 enablestring=
9549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9550 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9551 no_cache=0
9552 # Check whether --enable-gif or --disable-gif was given.
9553 if test "${enable_gif+set}" = set; then
9554 enableval="$enable_gif"
9555
9556 if test "$enableval" = yes; then
9557 ac_cv_use_gif='wxUSE_GIF=yes'
9558 else
9559 ac_cv_use_gif='wxUSE_GIF=no'
9560 fi
9561
9562 else
9563
9564 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9565 if test "x$LINE" != x ; then
9566 eval "DEFAULT_$LINE"
9567 else
9568 no_cache=1
9569 fi
9570
9571 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9572
9573 fi;
9574
9575 eval "$ac_cv_use_gif"
9576 if test "$no_cache" != 1; then
9577 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9578 fi
9579
9580 if test "$wxUSE_GIF" = yes; then
9581 echo "$as_me:$LINENO: result: yes" >&5
9582 echo "${ECHO_T}yes" >&6
9583 else
9584 echo "$as_me:$LINENO: result: no" >&5
9585 echo "${ECHO_T}no" >&6
9586 fi
9587
9588
9589 enablestring=
9590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9591 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9592 no_cache=0
9593 # Check whether --enable-pcx or --disable-pcx was given.
9594 if test "${enable_pcx+set}" = set; then
9595 enableval="$enable_pcx"
9596
9597 if test "$enableval" = yes; then
9598 ac_cv_use_pcx='wxUSE_PCX=yes'
9599 else
9600 ac_cv_use_pcx='wxUSE_PCX=no'
9601 fi
9602
9603 else
9604
9605 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9606 if test "x$LINE" != x ; then
9607 eval "DEFAULT_$LINE"
9608 else
9609 no_cache=1
9610 fi
9611
9612 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9613
9614 fi;
9615
9616 eval "$ac_cv_use_pcx"
9617 if test "$no_cache" != 1; then
9618 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9619 fi
9620
9621 if test "$wxUSE_PCX" = yes; then
9622 echo "$as_me:$LINENO: result: yes" >&5
9623 echo "${ECHO_T}yes" >&6
9624 else
9625 echo "$as_me:$LINENO: result: no" >&5
9626 echo "${ECHO_T}no" >&6
9627 fi
9628
9629
9630 enablestring=
9631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9632 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9633 no_cache=0
9634 # Check whether --enable-iff or --disable-iff was given.
9635 if test "${enable_iff+set}" = set; then
9636 enableval="$enable_iff"
9637
9638 if test "$enableval" = yes; then
9639 ac_cv_use_iff='wxUSE_IFF=yes'
9640 else
9641 ac_cv_use_iff='wxUSE_IFF=no'
9642 fi
9643
9644 else
9645
9646 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9647 if test "x$LINE" != x ; then
9648 eval "DEFAULT_$LINE"
9649 else
9650 no_cache=1
9651 fi
9652
9653 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9654
9655 fi;
9656
9657 eval "$ac_cv_use_iff"
9658 if test "$no_cache" != 1; then
9659 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9660 fi
9661
9662 if test "$wxUSE_IFF" = yes; then
9663 echo "$as_me:$LINENO: result: yes" >&5
9664 echo "${ECHO_T}yes" >&6
9665 else
9666 echo "$as_me:$LINENO: result: no" >&5
9667 echo "${ECHO_T}no" >&6
9668 fi
9669
9670
9671 enablestring=
9672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9673 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9674 no_cache=0
9675 # Check whether --enable-pnm or --disable-pnm was given.
9676 if test "${enable_pnm+set}" = set; then
9677 enableval="$enable_pnm"
9678
9679 if test "$enableval" = yes; then
9680 ac_cv_use_pnm='wxUSE_PNM=yes'
9681 else
9682 ac_cv_use_pnm='wxUSE_PNM=no'
9683 fi
9684
9685 else
9686
9687 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9688 if test "x$LINE" != x ; then
9689 eval "DEFAULT_$LINE"
9690 else
9691 no_cache=1
9692 fi
9693
9694 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9695
9696 fi;
9697
9698 eval "$ac_cv_use_pnm"
9699 if test "$no_cache" != 1; then
9700 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9701 fi
9702
9703 if test "$wxUSE_PNM" = yes; then
9704 echo "$as_me:$LINENO: result: yes" >&5
9705 echo "${ECHO_T}yes" >&6
9706 else
9707 echo "$as_me:$LINENO: result: no" >&5
9708 echo "${ECHO_T}no" >&6
9709 fi
9710
9711
9712 enablestring=
9713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9714 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9715 no_cache=0
9716 # Check whether --enable-xpm or --disable-xpm was given.
9717 if test "${enable_xpm+set}" = set; then
9718 enableval="$enable_xpm"
9719
9720 if test "$enableval" = yes; then
9721 ac_cv_use_xpm='wxUSE_XPM=yes'
9722 else
9723 ac_cv_use_xpm='wxUSE_XPM=no'
9724 fi
9725
9726 else
9727
9728 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9729 if test "x$LINE" != x ; then
9730 eval "DEFAULT_$LINE"
9731 else
9732 no_cache=1
9733 fi
9734
9735 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9736
9737 fi;
9738
9739 eval "$ac_cv_use_xpm"
9740 if test "$no_cache" != 1; then
9741 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9742 fi
9743
9744 if test "$wxUSE_XPM" = yes; then
9745 echo "$as_me:$LINENO: result: yes" >&5
9746 echo "${ECHO_T}yes" >&6
9747 else
9748 echo "$as_me:$LINENO: result: no" >&5
9749 echo "${ECHO_T}no" >&6
9750 fi
9751
9752
9753 enablestring=
9754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9755 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9756 no_cache=0
9757 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9758 if test "${enable_ico_cur+set}" = set; then
9759 enableval="$enable_ico_cur"
9760
9761 if test "$enableval" = yes; then
9762 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9763 else
9764 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9765 fi
9766
9767 else
9768
9769 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9770 if test "x$LINE" != x ; then
9771 eval "DEFAULT_$LINE"
9772 else
9773 no_cache=1
9774 fi
9775
9776 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9777
9778 fi;
9779
9780 eval "$ac_cv_use_ico_cur"
9781 if test "$no_cache" != 1; then
9782 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9783 fi
9784
9785 if test "$wxUSE_ICO_CUR" = yes; then
9786 echo "$as_me:$LINENO: result: yes" >&5
9787 echo "${ECHO_T}yes" >&6
9788 else
9789 echo "$as_me:$LINENO: result: no" >&5
9790 echo "${ECHO_T}no" >&6
9791 fi
9792
9793
9794 fi
9795
9796
9797
9798 enablestring=
9799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9800 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9801 no_cache=0
9802 # Check whether --enable-official_build or --disable-official_build was given.
9803 if test "${enable_official_build+set}" = set; then
9804 enableval="$enable_official_build"
9805
9806 if test "$enableval" = yes; then
9807 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9808 else
9809 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9810 fi
9811
9812 else
9813
9814 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9815 if test "x$LINE" != x ; then
9816 eval "DEFAULT_$LINE"
9817 else
9818 no_cache=1
9819 fi
9820
9821 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9822
9823 fi;
9824
9825 eval "$ac_cv_use_official_build"
9826 if test "$no_cache" != 1; then
9827 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9828 fi
9829
9830 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9831 echo "$as_me:$LINENO: result: yes" >&5
9832 echo "${ECHO_T}yes" >&6
9833 else
9834 echo "$as_me:$LINENO: result: no" >&5
9835 echo "${ECHO_T}no" >&6
9836 fi
9837
9838 # Check whether --enable-vendor or --disable-vendor was given.
9839 if test "${enable_vendor+set}" = set; then
9840 enableval="$enable_vendor"
9841 VENDOR="$enableval"
9842 fi;
9843 if test "x$VENDOR" = "x"; then
9844 VENDOR="custom"
9845 fi
9846
9847 case "${host}" in
9848 *-pc-os2_emx | *-pc-os2-emx )
9849 PATH_IFS=';'
9850 ;;
9851 *)
9852 PATH_IFS=':'
9853 ;;
9854 esac
9855
9856
9857
9858 echo "saving argument cache $wx_arg_cache_file"
9859 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9860
9861
9862
9863 echo "$as_me:$LINENO: checking for toolkit" >&5
9864 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9865
9866 # In Wine, we need to default to MSW, not GTK or MOTIF
9867 if test "$wxUSE_WINE" = "yes"; then
9868 DEFAULT_DEFAULT_wxUSE_GTK=0
9869 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9870 DEFAULT_DEFAULT_wxUSE_MSW=1
9871 wxUSE_SHARED=no
9872 fi
9873
9874 if test "$wxUSE_GUI" = "yes"; then
9875
9876 if test "$USE_BEOS" = 1; then
9877 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9878 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9879 { (exit 1); exit 1; }; }
9880 fi
9881
9882 if test "$TOOLKIT_GIVEN" = 1; then
9883 for toolkit in `echo $ALL_TOOLKITS`; do
9884 var=wxUSE_$toolkit
9885 eval "value=\$${var}"
9886 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9887 done
9888 else
9889 for toolkit in `echo $ALL_TOOLKITS`; do
9890 if test "$has_toolkit_in_cache" != 1; then
9891 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9892 else
9893 var=DEFAULT_wxUSE_$toolkit
9894 fi
9895 eval "wxUSE_$toolkit=\$${var}"
9896 done
9897 fi
9898
9899 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9900 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9901 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9902
9903 case "${host}" in
9904 *-pc-os2_emx | *-pc-os2-emx )
9905 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9906 esac
9907
9908 case "$NUM_TOOLKITS" in
9909 1)
9910 ;;
9911 0)
9912 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9913 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9914 { (exit 1); exit 1; }; }
9915 ;;
9916 *)
9917 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9918 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9919 { (exit 1); exit 1; }; }
9920 esac
9921
9922 for toolkit in `echo $ALL_TOOLKITS`; do
9923 var=wxUSE_$toolkit
9924 eval "value=\$${var}"
9925 if test "x$value" != x; then
9926 cache_var=CACHE_$toolkit
9927 eval "cache=\$${cache_var}"
9928 if test "$cache" = 1; then
9929 echo "$var=$value" >> ${wx_arg_cache_file}
9930 fi
9931 if test "$value" = 1; then
9932 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9933 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9934 echo "${ECHO_T}$toolkit_echo" >&6
9935 fi
9936 fi
9937 done
9938 else
9939 if test "x$host_alias" != "x"; then
9940 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9941 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9942 else
9943 echo "$as_me:$LINENO: result: base only" >&5
9944 echo "${ECHO_T}base only" >&6
9945 fi
9946 fi
9947
9948 wants_win32=0
9949 doesnt_want_win32=0
9950 case "${host}" in
9951 *-*-cygwin*)
9952 if test "$wxUSE_MSW" = 1 ; then
9953 wants_win32=1
9954 else
9955 doesnt_want_win32=1
9956 fi
9957 ;;
9958 *-*-mingw*)
9959 wants_win32=1
9960 ;;
9961 esac
9962
9963 if test "$wxUSE_WINE" = "yes"; then
9964 wants_win32=1
9965 CC=winegcc
9966 CXX=wineg++
9967 RESCOMP=wrc
9968 LDFLAGS_GUI="-mwindows"
9969 fi
9970
9971 if test "$wants_win32" = 1 ; then
9972 USE_UNIX=0
9973 USE_WIN32=1
9974 cat >>confdefs.h <<\_ACEOF
9975 #define __WIN32__ 1
9976 _ACEOF
9977
9978 cat >>confdefs.h <<\_ACEOF
9979 #define __WIN95__ 1
9980 _ACEOF
9981
9982 cat >>confdefs.h <<\_ACEOF
9983 #define __WINDOWS__ 1
9984 _ACEOF
9985
9986 cat >>confdefs.h <<\_ACEOF
9987 #define __GNUWIN32__ 1
9988 _ACEOF
9989
9990 cat >>confdefs.h <<\_ACEOF
9991 #define STRICT 1
9992 _ACEOF
9993
9994 cat >>confdefs.h <<\_ACEOF
9995 #define WINVER 0x0400
9996 _ACEOF
9997
9998 fi
9999 if test "$doesnt_want_win32" = 1 ; then
10000 USE_UNIX=1
10001 USE_WIN32=0
10002 fi
10003
10004 if test "$USE_UNIX" = 1 ; then
10005 wxUSE_UNIX=yes
10006 cat >>confdefs.h <<\_ACEOF
10007 #define __UNIX__ 1
10008 _ACEOF
10009
10010 fi
10011
10012
10013 cat >confcache <<\_ACEOF
10014 # This file is a shell script that caches the results of configure
10015 # tests run on this system so they can be shared between configure
10016 # scripts and configure runs, see configure's option --config-cache.
10017 # It is not useful on other systems. If it contains results you don't
10018 # want to keep, you may remove or edit it.
10019 #
10020 # config.status only pays attention to the cache file if you give it
10021 # the --recheck option to rerun configure.
10022 #
10023 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10024 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10025 # following values.
10026
10027 _ACEOF
10028
10029 # The following way of writing the cache mishandles newlines in values,
10030 # but we know of no workaround that is simple, portable, and efficient.
10031 # So, don't put newlines in cache variables' values.
10032 # Ultrix sh set writes to stderr and can't be redirected directly,
10033 # and sets the high bit in the cache file unless we assign to the vars.
10034 {
10035 (set) 2>&1 |
10036 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10037 *ac_space=\ *)
10038 # `set' does not quote correctly, so add quotes (double-quote
10039 # substitution turns \\\\ into \\, and sed turns \\ into \).
10040 sed -n \
10041 "s/'/'\\\\''/g;
10042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10043 ;;
10044 *)
10045 # `set' quotes correctly as required by POSIX, so do not add quotes.
10046 sed -n \
10047 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10048 ;;
10049 esac;
10050 } |
10051 sed '
10052 t clear
10053 : clear
10054 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10055 t end
10056 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10057 : end' >>confcache
10058 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10059 if test -w $cache_file; then
10060 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10061 cat confcache >$cache_file
10062 else
10063 echo "not updating unwritable cache $cache_file"
10064 fi
10065 fi
10066 rm -f confcache
10067
10068 if test "$build" != "$host" ; then
10069 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10070 CC=$host_alias-gcc
10071 CXX=$host_alias-c++
10072 AR=$host_alias-ar
10073 RANLIB=$host_alias-ranlib
10074 DLLTOOL=$host_alias-dlltool
10075 RESCOMP=$host_alias-windres
10076 LD=$host_alias-ld
10077 NM=$host_alias-nm
10078 STRIP=$host_alias-strip
10079 else
10080 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10081 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10082 { (exit 1); exit 1; }; }
10083 fi
10084 fi
10085
10086 CFLAGS=${CFLAGS:=}
10087 ac_ext=c
10088 ac_cpp='$CPP $CPPFLAGS'
10089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10092 if test -n "$ac_tool_prefix"; then
10093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10095 echo "$as_me:$LINENO: checking for $ac_word" >&5
10096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10097 if test "${ac_cv_prog_CC+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 else
10100 if test -n "$CC"; then
10101 ac_cv_prog_CC="$CC" # Let the user override the test.
10102 else
10103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10105 do
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10113 fi
10114 done
10115 done
10116
10117 fi
10118 fi
10119 CC=$ac_cv_prog_CC
10120 if test -n "$CC"; then
10121 echo "$as_me:$LINENO: result: $CC" >&5
10122 echo "${ECHO_T}$CC" >&6
10123 else
10124 echo "$as_me:$LINENO: result: no" >&5
10125 echo "${ECHO_T}no" >&6
10126 fi
10127
10128 fi
10129 if test -z "$ac_cv_prog_CC"; then
10130 ac_ct_CC=$CC
10131 # Extract the first word of "gcc", so it can be a program name with args.
10132 set dummy gcc; ac_word=$2
10133 echo "$as_me:$LINENO: checking for $ac_word" >&5
10134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138 if test -n "$ac_ct_CC"; then
10139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10140 else
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10143 do
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10148 ac_cv_prog_ac_ct_CC="gcc"
10149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 break 2
10151 fi
10152 done
10153 done
10154
10155 fi
10156 fi
10157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10158 if test -n "$ac_ct_CC"; then
10159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10160 echo "${ECHO_T}$ac_ct_CC" >&6
10161 else
10162 echo "$as_me:$LINENO: result: no" >&5
10163 echo "${ECHO_T}no" >&6
10164 fi
10165
10166 CC=$ac_ct_CC
10167 else
10168 CC="$ac_cv_prog_CC"
10169 fi
10170
10171 if test -z "$CC"; then
10172 if test -n "$ac_tool_prefix"; then
10173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10174 set dummy ${ac_tool_prefix}cc; ac_word=$2
10175 echo "$as_me:$LINENO: checking for $ac_word" >&5
10176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10177 if test "${ac_cv_prog_CC+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180 if test -n "$CC"; then
10181 ac_cv_prog_CC="$CC" # Let the user override the test.
10182 else
10183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184 for as_dir in $PATH
10185 do
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190 ac_cv_prog_CC="${ac_tool_prefix}cc"
10191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10193 fi
10194 done
10195 done
10196
10197 fi
10198 fi
10199 CC=$ac_cv_prog_CC
10200 if test -n "$CC"; then
10201 echo "$as_me:$LINENO: result: $CC" >&5
10202 echo "${ECHO_T}$CC" >&6
10203 else
10204 echo "$as_me:$LINENO: result: no" >&5
10205 echo "${ECHO_T}no" >&6
10206 fi
10207
10208 fi
10209 if test -z "$ac_cv_prog_CC"; then
10210 ac_ct_CC=$CC
10211 # Extract the first word of "cc", so it can be a program name with args.
10212 set dummy cc; ac_word=$2
10213 echo "$as_me:$LINENO: checking for $ac_word" >&5
10214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 else
10218 if test -n "$ac_ct_CC"; then
10219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10220 else
10221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222 for as_dir in $PATH
10223 do
10224 IFS=$as_save_IFS
10225 test -z "$as_dir" && as_dir=.
10226 for ac_exec_ext in '' $ac_executable_extensions; do
10227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10228 ac_cv_prog_ac_ct_CC="cc"
10229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10230 break 2
10231 fi
10232 done
10233 done
10234
10235 fi
10236 fi
10237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10238 if test -n "$ac_ct_CC"; then
10239 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10240 echo "${ECHO_T}$ac_ct_CC" >&6
10241 else
10242 echo "$as_me:$LINENO: result: no" >&5
10243 echo "${ECHO_T}no" >&6
10244 fi
10245
10246 CC=$ac_ct_CC
10247 else
10248 CC="$ac_cv_prog_CC"
10249 fi
10250
10251 fi
10252 if test -z "$CC"; then
10253 # Extract the first word of "cc", so it can be a program name with args.
10254 set dummy cc; ac_word=$2
10255 echo "$as_me:$LINENO: checking for $ac_word" >&5
10256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10257 if test "${ac_cv_prog_CC+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260 if test -n "$CC"; then
10261 ac_cv_prog_CC="$CC" # Let the user override the test.
10262 else
10263 ac_prog_rejected=no
10264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10265 for as_dir in $PATH
10266 do
10267 IFS=$as_save_IFS
10268 test -z "$as_dir" && as_dir=.
10269 for ac_exec_ext in '' $ac_executable_extensions; do
10270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10271 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10272 ac_prog_rejected=yes
10273 continue
10274 fi
10275 ac_cv_prog_CC="cc"
10276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10278 fi
10279 done
10280 done
10281
10282 if test $ac_prog_rejected = yes; then
10283 # We found a bogon in the path, so make sure we never use it.
10284 set dummy $ac_cv_prog_CC
10285 shift
10286 if test $# != 0; then
10287 # We chose a different compiler from the bogus one.
10288 # However, it has the same basename, so the bogon will be chosen
10289 # first if we set CC to just the basename; use the full file name.
10290 shift
10291 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10292 fi
10293 fi
10294 fi
10295 fi
10296 CC=$ac_cv_prog_CC
10297 if test -n "$CC"; then
10298 echo "$as_me:$LINENO: result: $CC" >&5
10299 echo "${ECHO_T}$CC" >&6
10300 else
10301 echo "$as_me:$LINENO: result: no" >&5
10302 echo "${ECHO_T}no" >&6
10303 fi
10304
10305 fi
10306 if test -z "$CC"; then
10307 if test -n "$ac_tool_prefix"; then
10308 for ac_prog in cl
10309 do
10310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10312 echo "$as_me:$LINENO: checking for $ac_word" >&5
10313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10314 if test "${ac_cv_prog_CC+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 else
10317 if test -n "$CC"; then
10318 ac_cv_prog_CC="$CC" # Let the user override the test.
10319 else
10320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321 for as_dir in $PATH
10322 do
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
10325 for ac_exec_ext in '' $ac_executable_extensions; do
10326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10327 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 break 2
10330 fi
10331 done
10332 done
10333
10334 fi
10335 fi
10336 CC=$ac_cv_prog_CC
10337 if test -n "$CC"; then
10338 echo "$as_me:$LINENO: result: $CC" >&5
10339 echo "${ECHO_T}$CC" >&6
10340 else
10341 echo "$as_me:$LINENO: result: no" >&5
10342 echo "${ECHO_T}no" >&6
10343 fi
10344
10345 test -n "$CC" && break
10346 done
10347 fi
10348 if test -z "$CC"; then
10349 ac_ct_CC=$CC
10350 for ac_prog in cl
10351 do
10352 # Extract the first word of "$ac_prog", so it can be a program name with args.
10353 set dummy $ac_prog; ac_word=$2
10354 echo "$as_me:$LINENO: checking for $ac_word" >&5
10355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10356 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359 if test -n "$ac_ct_CC"; then
10360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10361 else
10362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363 for as_dir in $PATH
10364 do
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10369 ac_cv_prog_ac_ct_CC="$ac_prog"
10370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10372 fi
10373 done
10374 done
10375
10376 fi
10377 fi
10378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10379 if test -n "$ac_ct_CC"; then
10380 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10381 echo "${ECHO_T}$ac_ct_CC" >&6
10382 else
10383 echo "$as_me:$LINENO: result: no" >&5
10384 echo "${ECHO_T}no" >&6
10385 fi
10386
10387 test -n "$ac_ct_CC" && break
10388 done
10389
10390 CC=$ac_ct_CC
10391 fi
10392
10393 fi
10394
10395
10396 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10397 See \`config.log' for more details." >&5
10398 echo "$as_me: error: no acceptable C compiler found in \$PATH
10399 See \`config.log' for more details." >&2;}
10400 { (exit 1); exit 1; }; }
10401
10402 # Provide some information about the compiler.
10403 echo "$as_me:$LINENO:" \
10404 "checking for C compiler version" >&5
10405 ac_compiler=`set X $ac_compile; echo $2`
10406 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10407 (eval $ac_compiler --version </dev/null >&5) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }
10411 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10412 (eval $ac_compiler -v </dev/null >&5) 2>&5
10413 ac_status=$?
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }
10416 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10417 (eval $ac_compiler -V </dev/null >&5) 2>&5
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }
10421
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428
10429 int
10430 main ()
10431 {
10432
10433 ;
10434 return 0;
10435 }
10436 _ACEOF
10437 ac_clean_files_save=$ac_clean_files
10438 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10439 # Try to create an executable without -o first, disregard a.out.
10440 # It will help us diagnose broken compilers, and finding out an intuition
10441 # of exeext.
10442 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10443 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
10444 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10445 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10446 (eval $ac_link_default) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; then
10450 # Find the output, starting from the most likely. This scheme is
10451 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10452 # resort.
10453
10454 # Be careful to initialize this variable, since it used to be cached.
10455 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10456 ac_cv_exeext=
10457 # b.out is created by i960 compilers.
10458 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10459 do
10460 test -f "$ac_file" || continue
10461 case $ac_file in
10462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10463 ;;
10464 conftest.$ac_ext )
10465 # This is the source file.
10466 ;;
10467 [ab].out )
10468 # We found the default executable, but exeext='' is most
10469 # certainly right.
10470 break;;
10471 *.* )
10472 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10473 # FIXME: I believe we export ac_cv_exeext for Libtool,
10474 # but it would be cool to find out if it's true. Does anybody
10475 # maintain Libtool? --akim.
10476 export ac_cv_exeext
10477 break;;
10478 * )
10479 break;;
10480 esac
10481 done
10482 else
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10485
10486 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10487 See \`config.log' for more details." >&5
10488 echo "$as_me: error: C compiler cannot create executables
10489 See \`config.log' for more details." >&2;}
10490 { (exit 77); exit 77; }; }
10491 fi
10492
10493 ac_exeext=$ac_cv_exeext
10494 echo "$as_me:$LINENO: result: $ac_file" >&5
10495 echo "${ECHO_T}$ac_file" >&6
10496
10497 # Check the compiler produces executables we can run. If not, either
10498 # the compiler is broken, or we cross compile.
10499 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10500 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10501 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10502 # If not cross compiling, check that we can run a simple program.
10503 if test "$cross_compiling" != yes; then
10504 if { ac_try='./$ac_file'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; }; then
10510 cross_compiling=no
10511 else
10512 if test "$cross_compiling" = maybe; then
10513 cross_compiling=yes
10514 else
10515 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10516 If you meant to cross compile, use \`--host'.
10517 See \`config.log' for more details." >&5
10518 echo "$as_me: error: cannot run C compiled programs.
10519 If you meant to cross compile, use \`--host'.
10520 See \`config.log' for more details." >&2;}
10521 { (exit 1); exit 1; }; }
10522 fi
10523 fi
10524 fi
10525 echo "$as_me:$LINENO: result: yes" >&5
10526 echo "${ECHO_T}yes" >&6
10527
10528 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10529 ac_clean_files=$ac_clean_files_save
10530 # Check the compiler produces executables we can run. If not, either
10531 # the compiler is broken, or we cross compile.
10532 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10533 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10534 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10535 echo "${ECHO_T}$cross_compiling" >&6
10536
10537 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10538 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10540 (eval $ac_link) 2>&5
10541 ac_status=$?
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; then
10544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10545 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10546 # work properly (i.e., refer to `conftest.exe'), while it won't with
10547 # `rm'.
10548 for ac_file in conftest.exe conftest conftest.*; do
10549 test -f "$ac_file" || continue
10550 case $ac_file in
10551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10553 export ac_cv_exeext
10554 break;;
10555 * ) break;;
10556 esac
10557 done
10558 else
10559 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10560 See \`config.log' for more details." >&5
10561 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10562 See \`config.log' for more details." >&2;}
10563 { (exit 1); exit 1; }; }
10564 fi
10565
10566 rm -f conftest$ac_cv_exeext
10567 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10568 echo "${ECHO_T}$ac_cv_exeext" >&6
10569
10570 rm -f conftest.$ac_ext
10571 EXEEXT=$ac_cv_exeext
10572 ac_exeext=$EXEEXT
10573 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10574 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10575 if test "${ac_cv_objext+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578 cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h. */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10584
10585 int
10586 main ()
10587 {
10588
10589 ;
10590 return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.o conftest.obj
10594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10595 (eval $ac_compile) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; then
10599 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10600 case $ac_file in
10601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10603 break;;
10604 esac
10605 done
10606 else
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10609
10610 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10611 See \`config.log' for more details." >&5
10612 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10613 See \`config.log' for more details." >&2;}
10614 { (exit 1); exit 1; }; }
10615 fi
10616
10617 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10618 fi
10619 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10620 echo "${ECHO_T}$ac_cv_objext" >&6
10621 OBJEXT=$ac_cv_objext
10622 ac_objext=$OBJEXT
10623 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10624 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10625 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628 cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h. */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634
10635 int
10636 main ()
10637 {
10638 #ifndef __GNUC__
10639 choke me
10640 #endif
10641
10642 ;
10643 return 0;
10644 }
10645 _ACEOF
10646 rm -f conftest.$ac_objext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10648 (eval $ac_compile) 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try='test -s conftest.$ac_objext'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_compiler_gnu=yes
10668 else
10669 echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10671
10672 ac_compiler_gnu=no
10673 fi
10674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10676
10677 fi
10678 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10679 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10680 GCC=`test $ac_compiler_gnu = yes && echo yes`
10681 ac_test_CFLAGS=${CFLAGS+set}
10682 ac_save_CFLAGS=$CFLAGS
10683 CFLAGS="-g"
10684 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10685 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10686 if test "${ac_cv_prog_cc_g+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h. */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695
10696 int
10697 main ()
10698 {
10699
10700 ;
10701 return 0;
10702 }
10703 _ACEOF
10704 rm -f conftest.$ac_objext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10706 (eval $ac_compile) 2>conftest.er1
10707 ac_status=$?
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
10713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_cv_prog_cc_g=yes
10726 else
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730 ac_cv_prog_cc_g=no
10731 fi
10732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10733 fi
10734 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10735 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10736 if test "$ac_test_CFLAGS" = set; then
10737 CFLAGS=$ac_save_CFLAGS
10738 elif test $ac_cv_prog_cc_g = yes; then
10739 if test "$GCC" = yes; then
10740 CFLAGS="-g -O2"
10741 else
10742 CFLAGS="-g"
10743 fi
10744 else
10745 if test "$GCC" = yes; then
10746 CFLAGS="-O2"
10747 else
10748 CFLAGS=
10749 fi
10750 fi
10751 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10752 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10753 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756 ac_cv_prog_cc_stdc=no
10757 ac_save_CC=$CC
10758 cat >conftest.$ac_ext <<_ACEOF
10759 /* confdefs.h. */
10760 _ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 #include <stdarg.h>
10765 #include <stdio.h>
10766 #include <sys/types.h>
10767 #include <sys/stat.h>
10768 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10769 struct buf { int x; };
10770 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10771 static char *e (p, i)
10772 char **p;
10773 int i;
10774 {
10775 return p[i];
10776 }
10777 static char *f (char * (*g) (char **, int), char **p, ...)
10778 {
10779 char *s;
10780 va_list v;
10781 va_start (v,p);
10782 s = g (p, va_arg (v,int));
10783 va_end (v);
10784 return s;
10785 }
10786
10787 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10788 function prototypes and stuff, but not '\xHH' hex character constants.
10789 These don't provoke an error unfortunately, instead are silently treated
10790 as 'x'. The following induces an error, until -std1 is added to get
10791 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10792 array size at least. It's necessary to write '\x00'==0 to get something
10793 that's true only with -std1. */
10794 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10795
10796 int test (int i, double x);
10797 struct s1 {int (*f) (int a);};
10798 struct s2 {int (*f) (double a);};
10799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10800 int argc;
10801 char **argv;
10802 int
10803 main ()
10804 {
10805 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10806 ;
10807 return 0;
10808 }
10809 _ACEOF
10810 # Don't try gcc -ansi; that turns off useful extensions and
10811 # breaks some systems' header files.
10812 # AIX -qlanglvl=ansi
10813 # Ultrix and OSF/1 -std1
10814 # HP-UX 10.20 and later -Ae
10815 # HP-UX older versions -Aa -D_HPUX_SOURCE
10816 # SVR4 -Xc -D__EXTENSIONS__
10817 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10818 do
10819 CC="$ac_save_CC $ac_arg"
10820 rm -f conftest.$ac_objext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10822 (eval $ac_compile) 2>conftest.er1
10823 ac_status=$?
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10832 ac_status=$?
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; } &&
10835 { ac_try='test -s conftest.$ac_objext'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 ac_cv_prog_cc_stdc=$ac_arg
10842 break
10843 else
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 fi
10848 rm -f conftest.err conftest.$ac_objext
10849 done
10850 rm -f conftest.$ac_ext conftest.$ac_objext
10851 CC=$ac_save_CC
10852
10853 fi
10854
10855 case "x$ac_cv_prog_cc_stdc" in
10856 x|xno)
10857 echo "$as_me:$LINENO: result: none needed" >&5
10858 echo "${ECHO_T}none needed" >&6 ;;
10859 *)
10860 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10861 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10862 CC="$CC $ac_cv_prog_cc_stdc" ;;
10863 esac
10864
10865 # Some people use a C++ compiler to compile C. Since we use `exit',
10866 # in C++ we need to declare it. In case someone uses the same compiler
10867 # for both compiling C and C++ we need to have the C++ compiler decide
10868 # the declaration of exit, since it's the most demanding environment.
10869 cat >conftest.$ac_ext <<_ACEOF
10870 #ifndef __cplusplus
10871 choke me
10872 #endif
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 (eval $ac_compile) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; } &&
10889 { ac_try='test -s conftest.$ac_objext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 for ac_declaration in \
10896 '' \
10897 'extern "C" void std::exit (int) throw (); using std::exit;' \
10898 'extern "C" void std::exit (int); using std::exit;' \
10899 'extern "C" void exit (int) throw ();' \
10900 'extern "C" void exit (int);' \
10901 'void exit (int);'
10902 do
10903 cat >conftest.$ac_ext <<_ACEOF
10904 /* confdefs.h. */
10905 _ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h. */
10909 $ac_declaration
10910 #include <stdlib.h>
10911 int
10912 main ()
10913 {
10914 exit (42);
10915 ;
10916 return 0;
10917 }
10918 _ACEOF
10919 rm -f conftest.$ac_objext
10920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10921 (eval $ac_compile) 2>conftest.er1
10922 ac_status=$?
10923 grep -v '^ *+' conftest.er1 >conftest.err
10924 rm -f conftest.er1
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } &&
10928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; } &&
10934 { ac_try='test -s conftest.$ac_objext'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 :
10941 else
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10944
10945 continue
10946 fi
10947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10948 cat >conftest.$ac_ext <<_ACEOF
10949 /* confdefs.h. */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10954 $ac_declaration
10955 int
10956 main ()
10957 {
10958 exit (42);
10959 ;
10960 return 0;
10961 }
10962 _ACEOF
10963 rm -f conftest.$ac_objext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10965 (eval $ac_compile) 2>conftest.er1
10966 ac_status=$?
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
10972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; } &&
10978 { ac_try='test -s conftest.$ac_objext'
10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; }; then
10984 break
10985 else
10986 echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10988
10989 fi
10990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10991 done
10992 rm -f conftest*
10993 if test -n "$ac_declaration"; then
10994 echo '#ifdef __cplusplus' >>confdefs.h
10995 echo $ac_declaration >>confdefs.h
10996 echo '#endif' >>confdefs.h
10997 fi
10998
10999 else
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 fi
11004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11005 ac_ext=c
11006 ac_cpp='$CPP $CPPFLAGS'
11007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11010
11011
11012
11013 ac_ext=c
11014 ac_cpp='$CPP $CPPFLAGS'
11015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11018 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11019 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11020 # On Suns, sometimes $CPP names a directory.
11021 if test -n "$CPP" && test -d "$CPP"; then
11022 CPP=
11023 fi
11024 if test -z "$CPP"; then
11025 if test "${ac_cv_prog_CPP+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028 # Double quotes because CPP needs to be expanded
11029 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11030 do
11031 ac_preproc_ok=false
11032 for ac_c_preproc_warn_flag in '' yes
11033 do
11034 # Use a header file that comes with gcc, so configuring glibc
11035 # with a fresh cross-compiler works.
11036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11037 # <limits.h> exists even on freestanding compilers.
11038 # On the NeXT, cc -E runs the code through the compiler's parser,
11039 # not just through cpp. "Syntax error" is here to catch this case.
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h. */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 #ifdef __STDC__
11047 # include <limits.h>
11048 #else
11049 # include <assert.h>
11050 #endif
11051 Syntax error
11052 _ACEOF
11053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } >/dev/null; then
11061 if test -s conftest.err; then
11062 ac_cpp_err=$ac_c_preproc_warn_flag
11063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11064 else
11065 ac_cpp_err=
11066 fi
11067 else
11068 ac_cpp_err=yes
11069 fi
11070 if test -z "$ac_cpp_err"; then
11071 :
11072 else
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11075
11076 # Broken: fails on valid input.
11077 continue
11078 fi
11079 rm -f conftest.err conftest.$ac_ext
11080
11081 # OK, works on sane cases. Now check whether non-existent headers
11082 # can be detected and how.
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 #include <ac_nonexistent.h>
11090 _ACEOF
11091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } >/dev/null; then
11099 if test -s conftest.err; then
11100 ac_cpp_err=$ac_c_preproc_warn_flag
11101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11102 else
11103 ac_cpp_err=
11104 fi
11105 else
11106 ac_cpp_err=yes
11107 fi
11108 if test -z "$ac_cpp_err"; then
11109 # Broken: success on invalid input.
11110 continue
11111 else
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11114
11115 # Passes both tests.
11116 ac_preproc_ok=:
11117 break
11118 fi
11119 rm -f conftest.err conftest.$ac_ext
11120
11121 done
11122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11123 rm -f conftest.err conftest.$ac_ext
11124 if $ac_preproc_ok; then
11125 break
11126 fi
11127
11128 done
11129 ac_cv_prog_CPP=$CPP
11130
11131 fi
11132 CPP=$ac_cv_prog_CPP
11133 else
11134 ac_cv_prog_CPP=$CPP
11135 fi
11136 echo "$as_me:$LINENO: result: $CPP" >&5
11137 echo "${ECHO_T}$CPP" >&6
11138 ac_preproc_ok=false
11139 for ac_c_preproc_warn_flag in '' yes
11140 do
11141 # Use a header file that comes with gcc, so configuring glibc
11142 # with a fresh cross-compiler works.
11143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11144 # <limits.h> exists even on freestanding compilers.
11145 # On the NeXT, cc -E runs the code through the compiler's parser,
11146 # not just through cpp. "Syntax error" is here to catch this case.
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h. */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 #ifdef __STDC__
11154 # include <limits.h>
11155 #else
11156 # include <assert.h>
11157 #endif
11158 Syntax error
11159 _ACEOF
11160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11162 ac_status=$?
11163 grep -v '^ *+' conftest.er1 >conftest.err
11164 rm -f conftest.er1
11165 cat conftest.err >&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } >/dev/null; then
11168 if test -s conftest.err; then
11169 ac_cpp_err=$ac_c_preproc_warn_flag
11170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11171 else
11172 ac_cpp_err=
11173 fi
11174 else
11175 ac_cpp_err=yes
11176 fi
11177 if test -z "$ac_cpp_err"; then
11178 :
11179 else
11180 echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11182
11183 # Broken: fails on valid input.
11184 continue
11185 fi
11186 rm -f conftest.err conftest.$ac_ext
11187
11188 # OK, works on sane cases. Now check whether non-existent headers
11189 # can be detected and how.
11190 cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h. */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 #include <ac_nonexistent.h>
11197 _ACEOF
11198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } >/dev/null; then
11206 if test -s conftest.err; then
11207 ac_cpp_err=$ac_c_preproc_warn_flag
11208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11209 else
11210 ac_cpp_err=
11211 fi
11212 else
11213 ac_cpp_err=yes
11214 fi
11215 if test -z "$ac_cpp_err"; then
11216 # Broken: success on invalid input.
11217 continue
11218 else
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11221
11222 # Passes both tests.
11223 ac_preproc_ok=:
11224 break
11225 fi
11226 rm -f conftest.err conftest.$ac_ext
11227
11228 done
11229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11230 rm -f conftest.err conftest.$ac_ext
11231 if $ac_preproc_ok; then
11232 :
11233 else
11234 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11235 See \`config.log' for more details." >&5
11236 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11237 See \`config.log' for more details." >&2;}
11238 { (exit 1); exit 1; }; }
11239 fi
11240
11241 ac_ext=c
11242 ac_cpp='$CPP $CPPFLAGS'
11243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11246
11247
11248 echo "$as_me:$LINENO: checking for egrep" >&5
11249 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11250 if test "${ac_cv_prog_egrep+set}" = set; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11252 else
11253 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11254 then ac_cv_prog_egrep='grep -E'
11255 else ac_cv_prog_egrep='egrep'
11256 fi
11257 fi
11258 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11259 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11260 EGREP=$ac_cv_prog_egrep
11261
11262
11263 if test $ac_cv_c_compiler_gnu = yes; then
11264 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11265 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11266 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269 ac_pattern="Autoconf.*'x'"
11270 cat >conftest.$ac_ext <<_ACEOF
11271 /* confdefs.h. */
11272 _ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11276 #include <sgtty.h>
11277 Autoconf TIOCGETP
11278 _ACEOF
11279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11280 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11281 ac_cv_prog_gcc_traditional=yes
11282 else
11283 ac_cv_prog_gcc_traditional=no
11284 fi
11285 rm -f conftest*
11286
11287
11288 if test $ac_cv_prog_gcc_traditional = no; then
11289 cat >conftest.$ac_ext <<_ACEOF
11290 /* confdefs.h. */
11291 _ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 #include <termio.h>
11296 Autoconf TCGETA
11297 _ACEOF
11298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11299 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11300 ac_cv_prog_gcc_traditional=yes
11301 fi
11302 rm -f conftest*
11303
11304 fi
11305 fi
11306 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11307 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11308 if test $ac_cv_prog_gcc_traditional = yes; then
11309 CC="$CC -traditional"
11310 fi
11311 fi
11312
11313
11314
11315
11316 ac_ext=cc
11317 ac_cpp='$CXXCPP $CPPFLAGS'
11318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11321
11322
11323 CXXFLAGS=${CXXFLAGS:=}
11324 ac_ext=cc
11325 ac_cpp='$CXXCPP $CPPFLAGS'
11326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11329 if test -n "$ac_tool_prefix"; then
11330 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11331 do
11332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11334 echo "$as_me:$LINENO: checking for $ac_word" >&5
11335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11336 if test "${ac_cv_prog_CXX+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339 if test -n "$CXX"; then
11340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11341 else
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11344 do
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11349 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11351 break 2
11352 fi
11353 done
11354 done
11355
11356 fi
11357 fi
11358 CXX=$ac_cv_prog_CXX
11359 if test -n "$CXX"; then
11360 echo "$as_me:$LINENO: result: $CXX" >&5
11361 echo "${ECHO_T}$CXX" >&6
11362 else
11363 echo "$as_me:$LINENO: result: no" >&5
11364 echo "${ECHO_T}no" >&6
11365 fi
11366
11367 test -n "$CXX" && break
11368 done
11369 fi
11370 if test -z "$CXX"; then
11371 ac_ct_CXX=$CXX
11372 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11373 do
11374 # Extract the first word of "$ac_prog", so it can be a program name with args.
11375 set dummy $ac_prog; ac_word=$2
11376 echo "$as_me:$LINENO: checking for $ac_word" >&5
11377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11378 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381 if test -n "$ac_ct_CXX"; then
11382 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11383 else
11384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385 for as_dir in $PATH
11386 do
11387 IFS=$as_save_IFS
11388 test -z "$as_dir" && as_dir=.
11389 for ac_exec_ext in '' $ac_executable_extensions; do
11390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11391 ac_cv_prog_ac_ct_CXX="$ac_prog"
11392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11393 break 2
11394 fi
11395 done
11396 done
11397
11398 fi
11399 fi
11400 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11401 if test -n "$ac_ct_CXX"; then
11402 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11403 echo "${ECHO_T}$ac_ct_CXX" >&6
11404 else
11405 echo "$as_me:$LINENO: result: no" >&5
11406 echo "${ECHO_T}no" >&6
11407 fi
11408
11409 test -n "$ac_ct_CXX" && break
11410 done
11411 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11412
11413 CXX=$ac_ct_CXX
11414 fi
11415
11416
11417 # Provide some information about the compiler.
11418 echo "$as_me:$LINENO:" \
11419 "checking for C++ compiler version" >&5
11420 ac_compiler=`set X $ac_compile; echo $2`
11421 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11422 (eval $ac_compiler --version </dev/null >&5) 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }
11426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11427 (eval $ac_compiler -v </dev/null >&5) 2>&5
11428 ac_status=$?
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }
11431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11432 (eval $ac_compiler -V </dev/null >&5) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }
11436
11437 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11438 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11439 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442 cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h. */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448
11449 int
11450 main ()
11451 {
11452 #ifndef __GNUC__
11453 choke me
11454 #endif
11455
11456 ;
11457 return 0;
11458 }
11459 _ACEOF
11460 rm -f conftest.$ac_objext
11461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11462 (eval $ac_compile) 2>conftest.er1
11463 ac_status=$?
11464 grep -v '^ *+' conftest.er1 >conftest.err
11465 rm -f conftest.er1
11466 cat conftest.err >&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } &&
11469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest.$ac_objext'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
11481 ac_compiler_gnu=yes
11482 else
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11485
11486 ac_compiler_gnu=no
11487 fi
11488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11489 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11490
11491 fi
11492 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11493 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11494 GXX=`test $ac_compiler_gnu = yes && echo yes`
11495 ac_test_CXXFLAGS=${CXXFLAGS+set}
11496 ac_save_CXXFLAGS=$CXXFLAGS
11497 CXXFLAGS="-g"
11498 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11499 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11500 if test "${ac_cv_prog_cxx_g+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503 cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h. */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509
11510 int
11511 main ()
11512 {
11513
11514 ;
11515 return 0;
11516 }
11517 _ACEOF
11518 rm -f conftest.$ac_objext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11520 (eval $ac_compile) 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest.$ac_objext'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 ac_cv_prog_cxx_g=yes
11540 else
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11543
11544 ac_cv_prog_cxx_g=no
11545 fi
11546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11547 fi
11548 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11549 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11550 if test "$ac_test_CXXFLAGS" = set; then
11551 CXXFLAGS=$ac_save_CXXFLAGS
11552 elif test $ac_cv_prog_cxx_g = yes; then
11553 if test "$GXX" = yes; then
11554 CXXFLAGS="-g -O2"
11555 else
11556 CXXFLAGS="-g"
11557 fi
11558 else
11559 if test "$GXX" = yes; then
11560 CXXFLAGS="-O2"
11561 else
11562 CXXFLAGS=
11563 fi
11564 fi
11565 for ac_declaration in \
11566 '' \
11567 'extern "C" void std::exit (int) throw (); using std::exit;' \
11568 'extern "C" void std::exit (int); using std::exit;' \
11569 'extern "C" void exit (int) throw ();' \
11570 'extern "C" void exit (int);' \
11571 'void exit (int);'
11572 do
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 $ac_declaration
11580 #include <stdlib.h>
11581 int
11582 main ()
11583 {
11584 exit (42);
11585 ;
11586 return 0;
11587 }
11588 _ACEOF
11589 rm -f conftest.$ac_objext
11590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11591 (eval $ac_compile) 2>conftest.er1
11592 ac_status=$?
11593 grep -v '^ *+' conftest.er1 >conftest.err
11594 rm -f conftest.er1
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; } &&
11604 { ac_try='test -s conftest.$ac_objext'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 :
11611 else
11612 echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11614
11615 continue
11616 fi
11617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11618 cat >conftest.$ac_ext <<_ACEOF
11619 /* confdefs.h. */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11624 $ac_declaration
11625 int
11626 main ()
11627 {
11628 exit (42);
11629 ;
11630 return 0;
11631 }
11632 _ACEOF
11633 rm -f conftest.$ac_objext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11635 (eval $ac_compile) 2>conftest.er1
11636 ac_status=$?
11637 grep -v '^ *+' conftest.er1 >conftest.err
11638 rm -f conftest.er1
11639 cat conftest.err >&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try='test -s conftest.$ac_objext'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 break
11655 else
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11658
11659 fi
11660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11661 done
11662 rm -f conftest*
11663 if test -n "$ac_declaration"; then
11664 echo '#ifdef __cplusplus' >>confdefs.h
11665 echo $ac_declaration >>confdefs.h
11666 echo '#endif' >>confdefs.h
11667 fi
11668
11669 ac_ext=cc
11670 ac_cpp='$CXXCPP $CPPFLAGS'
11671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11674
11675
11676 ac_ext=c
11677 ac_cpp='$CPP $CPPFLAGS'
11678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11681
11682
11683 echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11684 echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11685 GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11686 if test "$GCC" = "yes" ; then
11687 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11688 sed -n '1,/End of search list\./p' | \
11689 grep '^ */usr/local/include$' 2>&1 /dev/null \
11690 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11691 fi
11692 echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11693 echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11694
11695 if test -n "$ac_tool_prefix"; then
11696 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11697 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11698 echo "$as_me:$LINENO: checking for $ac_word" >&5
11699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11700 if test "${ac_cv_prog_RANLIB+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703 if test -n "$RANLIB"; then
11704 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11705 else
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11708 do
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 break 2
11716 fi
11717 done
11718 done
11719
11720 fi
11721 fi
11722 RANLIB=$ac_cv_prog_RANLIB
11723 if test -n "$RANLIB"; then
11724 echo "$as_me:$LINENO: result: $RANLIB" >&5
11725 echo "${ECHO_T}$RANLIB" >&6
11726 else
11727 echo "$as_me:$LINENO: result: no" >&5
11728 echo "${ECHO_T}no" >&6
11729 fi
11730
11731 fi
11732 if test -z "$ac_cv_prog_RANLIB"; then
11733 ac_ct_RANLIB=$RANLIB
11734 # Extract the first word of "ranlib", so it can be a program name with args.
11735 set dummy ranlib; ac_word=$2
11736 echo "$as_me:$LINENO: checking for $ac_word" >&5
11737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11738 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 else
11741 if test -n "$ac_ct_RANLIB"; then
11742 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11743 else
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 for as_dir in $PATH
11746 do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11751 ac_cv_prog_ac_ct_RANLIB="ranlib"
11752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11754 fi
11755 done
11756 done
11757
11758 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11759 fi
11760 fi
11761 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11762 if test -n "$ac_ct_RANLIB"; then
11763 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11764 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11765 else
11766 echo "$as_me:$LINENO: result: no" >&5
11767 echo "${ECHO_T}no" >&6
11768 fi
11769
11770 RANLIB=$ac_ct_RANLIB
11771 else
11772 RANLIB="$ac_cv_prog_RANLIB"
11773 fi
11774
11775
11776 # Extract the first word of "ar", so it can be a program name with args.
11777 set dummy ar; ac_word=$2
11778 echo "$as_me:$LINENO: checking for $ac_word" >&5
11779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11780 if test "${ac_cv_prog_AR+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 else
11783 if test -n "$AR"; then
11784 ac_cv_prog_AR="$AR" # Let the user override the test.
11785 else
11786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787 for as_dir in $PATH
11788 do
11789 IFS=$as_save_IFS
11790 test -z "$as_dir" && as_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
11792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11793 ac_cv_prog_AR="ar"
11794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11795 break 2
11796 fi
11797 done
11798 done
11799
11800 fi
11801 fi
11802 AR=$ac_cv_prog_AR
11803 if test -n "$AR"; then
11804 echo "$as_me:$LINENO: result: $AR" >&5
11805 echo "${ECHO_T}$AR" >&6
11806 else
11807 echo "$as_me:$LINENO: result: no" >&5
11808 echo "${ECHO_T}no" >&6
11809 fi
11810
11811 if test "x$AR" = "x" ; then
11812 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11813 echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11814 { (exit 1); exit 1; }; }
11815 fi
11816
11817 # Find a good install program. We prefer a C program (faster),
11818 # so one script is as good as another. But avoid the broken or
11819 # incompatible versions:
11820 # SysV /etc/install, /usr/sbin/install
11821 # SunOS /usr/etc/install
11822 # IRIX /sbin/install
11823 # AIX /bin/install
11824 # AmigaOS /C/install, which installs bootblocks on floppy discs
11825 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11826 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11827 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11828 # OS/2's system install, which has a completely different semantic
11829 # ./install, which can be erroneously created by make from ./install.sh.
11830 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11831 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11832 if test -z "$INSTALL"; then
11833 if test "${ac_cv_path_install+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837 for as_dir in $PATH
11838 do
11839 IFS=$as_save_IFS
11840 test -z "$as_dir" && as_dir=.
11841 # Account for people who put trailing slashes in PATH elements.
11842 case $as_dir/ in
11843 ./ | .// | /cC/* | \
11844 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11845 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11846 /usr/ucb/* ) ;;
11847 *)
11848 # OSF1 and SCO ODT 3.0 have their own names for install.
11849 # Don't use installbsd from OSF since it installs stuff as root
11850 # by default.
11851 for ac_prog in ginstall scoinst install; do
11852 for ac_exec_ext in '' $ac_executable_extensions; do
11853 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11854 if test $ac_prog = install &&
11855 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11856 # AIX install. It has an incompatible calling convention.
11857 :
11858 elif test $ac_prog = install &&
11859 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11860 # program-specific install script used by HP pwplus--don't use.
11861 :
11862 else
11863 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11864 break 3
11865 fi
11866 fi
11867 done
11868 done
11869 ;;
11870 esac
11871 done
11872
11873
11874 fi
11875 if test "${ac_cv_path_install+set}" = set; then
11876 INSTALL=$ac_cv_path_install
11877 else
11878 # As a last resort, use the slow shell script. We don't cache a
11879 # path for INSTALL within a source directory, because that will
11880 # break other packages using the cache if that directory is
11881 # removed, or if the path is relative.
11882 INSTALL=$ac_install_sh
11883 fi
11884 fi
11885 echo "$as_me:$LINENO: result: $INSTALL" >&5
11886 echo "${ECHO_T}$INSTALL" >&6
11887
11888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11889 # It thinks the first close brace ends the variable substitution.
11890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11891
11892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11893
11894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11895
11896
11897 case ${INSTALL} in
11898 /* ) # Absolute
11899 ;;
11900 ?:* ) # Drive letter, considered as absolute.
11901 ;;
11902 *)
11903 INSTALL=`pwd`/${INSTALL} ;;
11904 esac
11905
11906 case ${host} in
11907 *-hp-hpux* )
11908 INSTALL_DIR="mkdir"
11909 ;;
11910
11911 *) INSTALL_DIR="$INSTALL -d"
11912 ;;
11913 esac
11914
11915
11916 case "${host}" in
11917
11918 powerpc-*-darwin* )
11919 INSTALL_PROGRAM="cp -fp"
11920 INSTALL_DATA="cp -fp"
11921 ;;
11922 *)
11923 ;;
11924 esac
11925
11926 # Extract the first word of "strip", so it can be a program name with args.
11927 set dummy strip; ac_word=$2
11928 echo "$as_me:$LINENO: checking for $ac_word" >&5
11929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11930 if test "${ac_cv_prog_STRIP+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11933 if test -n "$STRIP"; then
11934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11935 else
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11938 do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943 ac_cv_prog_STRIP="strip"
11944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 break 2
11946 fi
11947 done
11948 done
11949
11950 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11951 fi
11952 fi
11953 STRIP=$ac_cv_prog_STRIP
11954 if test -n "$STRIP"; then
11955 echo "$as_me:$LINENO: result: $STRIP" >&5
11956 echo "${ECHO_T}$STRIP" >&6
11957 else
11958 echo "$as_me:$LINENO: result: no" >&5
11959 echo "${ECHO_T}no" >&6
11960 fi
11961
11962
11963 echo "$as_me:$LINENO: checking if make is GNU make" >&5
11964 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11965 if test "${wx_cv_prog_makeisgnu+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968
11969 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11970 egrep -s GNU > /dev/null); then
11971 wx_cv_prog_makeisgnu="yes"
11972 else
11973 wx_cv_prog_makeisgnu="no"
11974 fi
11975
11976 fi
11977 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11978 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11979
11980 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11981 IF_GNU_MAKE=""
11982 else
11983 IF_GNU_MAKE="#"
11984 fi
11985
11986
11987
11988 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11989 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11990 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11991 if test "${wx_cv_prog_makevpath+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994
11995 cat - << EOF > confMake
11996 check : file
11997 cp \$? \$@
11998 cp \$? final_file
11999 EOF
12000
12001 if test ! -d sub ; then
12002 mkdir sub
12003 fi
12004 echo dummy > sub/file
12005 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12006 RESULT=$?
12007 rm -f sub/file check final_file confMake
12008 rmdir sub
12009 if test "$RESULT" = 0; then
12010 wx_cv_prog_makevpath="yes"
12011 else
12012 wx_cv_prog_makevpath="no"
12013 fi
12014
12015 fi
12016 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12017 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12018
12019 if test "x$wx_cv_prog_makevpath" != "xyes"; then
12020 { { echo "$as_me:$LINENO: error:
12021 You need a make-utility that is able to use the variable
12022 VPATH correctly.
12023 If your version of make does not support VPATH correctly,
12024 please install GNU-make (possibly as gmake), and start
12025 configure with the following command:
12026 export MAKE=gmake; ./configure for sh-type shells
12027 setenv MAKE gmake; ./configure for csh-type shells
12028 Also please do remember to use gmake in this case every time
12029 you are trying to compile.
12030 " >&5
12031 echo "$as_me: error:
12032 You need a make-utility that is able to use the variable
12033 VPATH correctly.
12034 If your version of make does not support VPATH correctly,
12035 please install GNU-make (possibly as gmake), and start
12036 configure with the following command:
12037 export MAKE=gmake; ./configure for sh-type shells
12038 setenv MAKE gmake; ./configure for csh-type shells
12039 Also please do remember to use gmake in this case every time
12040 you are trying to compile.
12041 " >&2;}
12042 { (exit 1); exit 1; }; }
12043 fi fi
12044 echo "$as_me:$LINENO: checking whether ln -s works" >&5
12045 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12046 LN_S=$as_ln_s
12047 if test "$LN_S" = "ln -s"; then
12048 echo "$as_me:$LINENO: result: yes" >&5
12049 echo "${ECHO_T}yes" >&6
12050 else
12051 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12052 echo "${ECHO_T}no, using $LN_S" >&6
12053 fi
12054
12055
12056
12057 case "${host}" in
12058 *-pc-os2_emx | *-pc-os2-emx )
12059 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12060 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12061 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12062 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065 ac_check_lib_save_LIBS=$LIBS
12066 LIBS="-lcExt $LIBS"
12067 cat >conftest.$ac_ext <<_ACEOF
12068 /* confdefs.h. */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073
12074 /* Override any gcc2 internal prototype to avoid an error. */
12075 #ifdef __cplusplus
12076 extern "C"
12077 #endif
12078 /* We use char because int might match the return type of a gcc2
12079 builtin and then its argument prototype would still apply. */
12080 char drand48 ();
12081 int
12082 main ()
12083 {
12084 drand48 ();
12085 ;
12086 return 0;
12087 }
12088 _ACEOF
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091 (eval $ac_link) 2>conftest.er1
12092 ac_status=$?
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try='test -s conftest$ac_exeext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 ac_cv_lib_cExt_drand48=yes
12111 else
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12114
12115 ac_cv_lib_cExt_drand48=no
12116 fi
12117 rm -f conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119 LIBS=$ac_check_lib_save_LIBS
12120 fi
12121 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12122 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12123 if test $ac_cv_lib_cExt_drand48 = yes; then
12124 LIBS="$LIBS -lcExt"
12125 fi
12126
12127 else
12128 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12129 fi
12130 echo "$as_me:$LINENO: checking for gcc version" >&5
12131 echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12132 if test "${wx_cv_gccversion+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142
12143 int
12144 main ()
12145 {
12146
12147 #if (__GNUC__ < 3)
12148 #error old gcc
12149 #endif
12150
12151 ;
12152 return 0;
12153 }
12154 _ACEOF
12155 rm -f conftest.$ac_objext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12157 (eval $ac_compile) 2>conftest.er1
12158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
12164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12167 ac_status=$?
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; } &&
12170 { ac_try='test -s conftest.$ac_objext'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12173 ac_status=$?
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183
12184 int
12185 main ()
12186 {
12187
12188 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12189 #error intermediate gcc
12190 #endif
12191
12192 ;
12193 return 0;
12194 }
12195 _ACEOF
12196 rm -f conftest.$ac_objext
12197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12198 (eval $ac_compile) 2>conftest.er1
12199 ac_status=$?
12200 grep -v '^ *+' conftest.er1 >conftest.err
12201 rm -f conftest.er1
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } &&
12205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; } &&
12211 { ac_try='test -s conftest.$ac_objext'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217
12218 wx_cv_gccversion=Innotek
12219
12220 else
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224
12225 wx_cv_gccversion=3
12226
12227
12228 fi
12229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12230
12231 else
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235
12236 wx_cv_gccversion=2
12237
12238
12239 fi
12240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12241
12242 fi
12243 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12244 echo "${ECHO_T}$wx_cv_gccversion" >&6
12245 if test "$wx_cv_gccversion" = "2"; then
12246 LIBS="$LIBS -lstdcpp"
12247 LDFLAGS="$LDFLAGS -Zsysv-signals"
12248 else
12249 if test "$wx_cv_gccversion" = "3"; then
12250 LIBS="$LIBS -lstdcxx"
12251 LDFLAGS="$LDFLAGS -Zsysv-signals"
12252 else
12253 LIBS="$LIBS -lstdc++"
12254 fi
12255 fi
12256 ;;
12257 *)
12258
12259
12260
12261 ac_ext=cc
12262 ac_cpp='$CXXCPP $CPPFLAGS'
12263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12266
12267
12268
12269 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12270 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12271 if test "${ac_cv_string_strcasecmp+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274
12275 cat >conftest.$ac_ext <<_ACEOF
12276 /* confdefs.h. */
12277 _ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281
12282 #include <string.h>
12283
12284 int
12285 main ()
12286 {
12287
12288 strcasecmp("foo", "bar");
12289
12290 ;
12291 return 0;
12292 }
12293 _ACEOF
12294 rm -f conftest.$ac_objext conftest$ac_exeext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12296 (eval $ac_link) 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; } &&
12309 { ac_try='test -s conftest$ac_exeext'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 ac_cv_string_strcasecmp=yes
12316 else
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320 ac_cv_string_strcasecmp=no
12321
12322 fi
12323 rm -f conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12325
12326 fi
12327 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12328 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12329
12330 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12331 cat >>confdefs.h <<\_ACEOF
12332 #define HAVE_STRCASECMP_IN_STRING_H 1
12333 _ACEOF
12334
12335 else
12336 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12337 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12338 if test "${ac_cv_strings_strcasecmp+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348
12349 #include <strings.h>
12350
12351 int
12352 main ()
12353 {
12354
12355 strcasecmp("foo", "bar");
12356
12357 ;
12358 return 0;
12359 }
12360 _ACEOF
12361 rm -f conftest.$ac_objext conftest$ac_exeext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12363 (eval $ac_link) 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest$ac_exeext'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12379 ac_status=$?
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_cv_strings_strcasecmp=yes
12383 else
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12386
12387 ac_cv_strings_strcasecmp=no
12388
12389 fi
12390 rm -f conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12392
12393 fi
12394 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12395 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12396
12397 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12398 cat >>confdefs.h <<\_ACEOF
12399 #define HAVE_STRCASECMP_IN_STRINGS_H 1
12400 _ACEOF
12401
12402 else
12403 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12404 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12405 { (exit 1); exit 1; }; }
12406 fi
12407 fi
12408
12409 ac_ext=c
12410 ac_cpp='$CPP $CPPFLAGS'
12411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12414
12415 ;;
12416 esac
12417
12418
12419 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12420 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12421 if test "${ac_cv_header_stdc+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h. */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 #include <stdlib.h>
12431 #include <stdarg.h>
12432 #include <string.h>
12433 #include <float.h>
12434
12435 int
12436 main ()
12437 {
12438
12439 ;
12440 return 0;
12441 }
12442 _ACEOF
12443 rm -f conftest.$ac_objext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445 (eval $ac_compile) 2>conftest.er1
12446 ac_status=$?
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest.$ac_objext'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_cv_header_stdc=yes
12465 else
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12468
12469 ac_cv_header_stdc=no
12470 fi
12471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12472
12473 if test $ac_cv_header_stdc = yes; then
12474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12475 cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h. */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12481 #include <string.h>
12482
12483 _ACEOF
12484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12485 $EGREP "memchr" >/dev/null 2>&1; then
12486 :
12487 else
12488 ac_cv_header_stdc=no
12489 fi
12490 rm -f conftest*
12491
12492 fi
12493
12494 if test $ac_cv_header_stdc = yes; then
12495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h. */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12502 #include <stdlib.h>
12503
12504 _ACEOF
12505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12506 $EGREP "free" >/dev/null 2>&1; then
12507 :
12508 else
12509 ac_cv_header_stdc=no
12510 fi
12511 rm -f conftest*
12512
12513 fi
12514
12515 if test $ac_cv_header_stdc = yes; then
12516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12517 if test "$cross_compiling" = yes; then
12518 :
12519 else
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h. */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 #include <ctype.h>
12527 #if ((' ' & 0x0FF) == 0x020)
12528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12530 #else
12531 # define ISLOWER(c) \
12532 (('a' <= (c) && (c) <= 'i') \
12533 || ('j' <= (c) && (c) <= 'r') \
12534 || ('s' <= (c) && (c) <= 'z'))
12535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12536 #endif
12537
12538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12539 int
12540 main ()
12541 {
12542 int i;
12543 for (i = 0; i < 256; i++)
12544 if (XOR (islower (i), ISLOWER (i))
12545 || toupper (i) != TOUPPER (i))
12546 exit(2);
12547 exit (0);
12548 }
12549 _ACEOF
12550 rm -f conftest$ac_exeext
12551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12552 (eval $ac_link) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 :
12562 else
12563 echo "$as_me: program exited with status $ac_status" >&5
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ( exit $ac_status )
12568 ac_cv_header_stdc=no
12569 fi
12570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12571 fi
12572 fi
12573 fi
12574 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12575 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12576 if test $ac_cv_header_stdc = yes; then
12577
12578 cat >>confdefs.h <<\_ACEOF
12579 #define STDC_HEADERS 1
12580 _ACEOF
12581
12582 fi
12583
12584 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12595 inttypes.h stdint.h unistd.h
12596 do
12597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12598 echo "$as_me:$LINENO: checking for $ac_header" >&5
12599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
12603 cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h. */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609 $ac_includes_default
12610
12611 #include <$ac_header>
12612 _ACEOF
12613 rm -f conftest.$ac_objext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12615 (eval $ac_compile) 2>conftest.er1
12616 ac_status=$?
12617 grep -v '^ *+' conftest.er1 >conftest.err
12618 rm -f conftest.er1
12619 cat conftest.err >&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
12622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; } &&
12628 { ac_try='test -s conftest.$ac_objext'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; }; then
12634 eval "$as_ac_Header=yes"
12635 else
12636 echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12638
12639 eval "$as_ac_Header=no"
12640 fi
12641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12642 fi
12643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12646 cat >>confdefs.h <<_ACEOF
12647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12648 _ACEOF
12649
12650 fi
12651
12652 done
12653
12654
12655
12656 for ac_header in stdlib.h
12657 do
12658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12660 echo "$as_me:$LINENO: checking for $ac_header" >&5
12661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 fi
12665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12667 else
12668 # Is the header compilable?
12669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12671 cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h. */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 $ac_includes_default
12678 #include <$ac_header>
12679 _ACEOF
12680 rm -f conftest.$ac_objext
12681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12682 (eval $ac_compile) 2>conftest.er1
12683 ac_status=$?
12684 grep -v '^ *+' conftest.er1 >conftest.err
12685 rm -f conftest.er1
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } &&
12689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest.$ac_objext'
12696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 ac_header_compiler=yes
12702 else
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706 ac_header_compiler=no
12707 fi
12708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12710 echo "${ECHO_T}$ac_header_compiler" >&6
12711
12712 # Is the header present?
12713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12715 cat >conftest.$ac_ext <<_ACEOF
12716 /* confdefs.h. */
12717 _ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12721 #include <$ac_header>
12722 _ACEOF
12723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12725 ac_status=$?
12726 grep -v '^ *+' conftest.er1 >conftest.err
12727 rm -f conftest.er1
12728 cat conftest.err >&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } >/dev/null; then
12731 if test -s conftest.err; then
12732 ac_cpp_err=$ac_c_preproc_warn_flag
12733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12734 else
12735 ac_cpp_err=
12736 fi
12737 else
12738 ac_cpp_err=yes
12739 fi
12740 if test -z "$ac_cpp_err"; then
12741 ac_header_preproc=yes
12742 else
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12745
12746 ac_header_preproc=no
12747 fi
12748 rm -f conftest.err conftest.$ac_ext
12749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12750 echo "${ECHO_T}$ac_header_preproc" >&6
12751
12752 # So? What about this header?
12753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12754 yes:no: )
12755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12759 ac_header_preproc=yes
12760 ;;
12761 no:yes:* )
12762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12774 (
12775 cat <<\_ASBOX
12776 ## ----------------------------------------- ##
12777 ## Report this to wx-dev@lists.wxwindows.org ##
12778 ## ----------------------------------------- ##
12779 _ASBOX
12780 ) |
12781 sed "s/^/$as_me: WARNING: /" >&2
12782 ;;
12783 esac
12784 echo "$as_me:$LINENO: checking for $ac_header" >&5
12785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 else
12789 eval "$as_ac_Header=\$ac_header_preproc"
12790 fi
12791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12793
12794 fi
12795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12796 cat >>confdefs.h <<_ACEOF
12797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12798 _ACEOF
12799
12800 fi
12801
12802 done
12803
12804
12805 for ac_header in malloc.h
12806 do
12807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12809 echo "$as_me:$LINENO: checking for $ac_header" >&5
12810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 fi
12814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12816 else
12817 # Is the header compilable?
12818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12820 cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h. */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12826 $ac_includes_default
12827 #include <$ac_header>
12828 _ACEOF
12829 rm -f conftest.$ac_objext
12830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12831 (eval $ac_compile) 2>conftest.er1
12832 ac_status=$?
12833 grep -v '^ *+' conftest.er1 >conftest.err
12834 rm -f conftest.er1
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } &&
12838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12850 ac_header_compiler=yes
12851 else
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12854
12855 ac_header_compiler=no
12856 fi
12857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12859 echo "${ECHO_T}$ac_header_compiler" >&6
12860
12861 # Is the header present?
12862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12864 cat >conftest.$ac_ext <<_ACEOF
12865 /* confdefs.h. */
12866 _ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12870 #include <$ac_header>
12871 _ACEOF
12872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12874 ac_status=$?
12875 grep -v '^ *+' conftest.er1 >conftest.err
12876 rm -f conftest.er1
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } >/dev/null; then
12880 if test -s conftest.err; then
12881 ac_cpp_err=$ac_c_preproc_warn_flag
12882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12883 else
12884 ac_cpp_err=
12885 fi
12886 else
12887 ac_cpp_err=yes
12888 fi
12889 if test -z "$ac_cpp_err"; then
12890 ac_header_preproc=yes
12891 else
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 ac_header_preproc=no
12896 fi
12897 rm -f conftest.err conftest.$ac_ext
12898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12899 echo "${ECHO_T}$ac_header_preproc" >&6
12900
12901 # So? What about this header?
12902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12903 yes:no: )
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12908 ac_header_preproc=yes
12909 ;;
12910 no:yes:* )
12911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12923 (
12924 cat <<\_ASBOX
12925 ## ----------------------------------------- ##
12926 ## Report this to wx-dev@lists.wxwindows.org ##
12927 ## ----------------------------------------- ##
12928 _ASBOX
12929 ) |
12930 sed "s/^/$as_me: WARNING: /" >&2
12931 ;;
12932 esac
12933 echo "$as_me:$LINENO: checking for $ac_header" >&5
12934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938 eval "$as_ac_Header=\$ac_header_preproc"
12939 fi
12940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12942
12943 fi
12944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12945 cat >>confdefs.h <<_ACEOF
12946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12947 _ACEOF
12948
12949 fi
12950
12951 done
12952
12953
12954 for ac_header in unistd.h
12955 do
12956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12958 echo "$as_me:$LINENO: checking for $ac_header" >&5
12959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 fi
12963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12965 else
12966 # Is the header compilable?
12967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12969 cat >conftest.$ac_ext <<_ACEOF
12970 /* confdefs.h. */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12975 $ac_includes_default
12976 #include <$ac_header>
12977 _ACEOF
12978 rm -f conftest.$ac_objext
12979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12980 (eval $ac_compile) 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
12987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; } &&
12993 { ac_try='test -s conftest.$ac_objext'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
12999 ac_header_compiler=yes
13000 else
13001 echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13003
13004 ac_header_compiler=no
13005 fi
13006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13008 echo "${ECHO_T}$ac_header_compiler" >&6
13009
13010 # Is the header present?
13011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13013 cat >conftest.$ac_ext <<_ACEOF
13014 /* confdefs.h. */
13015 _ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13019 #include <$ac_header>
13020 _ACEOF
13021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13023 ac_status=$?
13024 grep -v '^ *+' conftest.er1 >conftest.err
13025 rm -f conftest.er1
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } >/dev/null; then
13029 if test -s conftest.err; then
13030 ac_cpp_err=$ac_c_preproc_warn_flag
13031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13032 else
13033 ac_cpp_err=
13034 fi
13035 else
13036 ac_cpp_err=yes
13037 fi
13038 if test -z "$ac_cpp_err"; then
13039 ac_header_preproc=yes
13040 else
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13043
13044 ac_header_preproc=no
13045 fi
13046 rm -f conftest.err conftest.$ac_ext
13047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13048 echo "${ECHO_T}$ac_header_preproc" >&6
13049
13050 # So? What about this header?
13051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13052 yes:no: )
13053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13057 ac_header_preproc=yes
13058 ;;
13059 no:yes:* )
13060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13072 (
13073 cat <<\_ASBOX
13074 ## ----------------------------------------- ##
13075 ## Report this to wx-dev@lists.wxwindows.org ##
13076 ## ----------------------------------------- ##
13077 _ASBOX
13078 ) |
13079 sed "s/^/$as_me: WARNING: /" >&2
13080 ;;
13081 esac
13082 echo "$as_me:$LINENO: checking for $ac_header" >&5
13083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087 eval "$as_ac_Header=\$ac_header_preproc"
13088 fi
13089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13091
13092 fi
13093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13094 cat >>confdefs.h <<_ACEOF
13095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13096 _ACEOF
13097
13098 fi
13099
13100 done
13101
13102
13103 for ac_header in wchar.h
13104 do
13105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13107 echo "$as_me:$LINENO: checking for $ac_header" >&5
13108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 fi
13112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13114 else
13115 # Is the header compilable?
13116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13118 cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h. */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 $ac_includes_default
13125 #include <$ac_header>
13126 _ACEOF
13127 rm -f conftest.$ac_objext
13128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13129 (eval $ac_compile) 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try='test -s conftest.$ac_objext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_header_compiler=yes
13149 else
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13152
13153 ac_header_compiler=no
13154 fi
13155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13157 echo "${ECHO_T}$ac_header_compiler" >&6
13158
13159 # Is the header present?
13160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13162 cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h. */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 #include <$ac_header>
13169 _ACEOF
13170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } >/dev/null; then
13178 if test -s conftest.err; then
13179 ac_cpp_err=$ac_c_preproc_warn_flag
13180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13181 else
13182 ac_cpp_err=
13183 fi
13184 else
13185 ac_cpp_err=yes
13186 fi
13187 if test -z "$ac_cpp_err"; then
13188 ac_header_preproc=yes
13189 else
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13192
13193 ac_header_preproc=no
13194 fi
13195 rm -f conftest.err conftest.$ac_ext
13196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13197 echo "${ECHO_T}$ac_header_preproc" >&6
13198
13199 # So? What about this header?
13200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13201 yes:no: )
13202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13206 ac_header_preproc=yes
13207 ;;
13208 no:yes:* )
13209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13221 (
13222 cat <<\_ASBOX
13223 ## ----------------------------------------- ##
13224 ## Report this to wx-dev@lists.wxwindows.org ##
13225 ## ----------------------------------------- ##
13226 _ASBOX
13227 ) |
13228 sed "s/^/$as_me: WARNING: /" >&2
13229 ;;
13230 esac
13231 echo "$as_me:$LINENO: checking for $ac_header" >&5
13232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236 eval "$as_ac_Header=\$ac_header_preproc"
13237 fi
13238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13240
13241 fi
13242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13243 cat >>confdefs.h <<_ACEOF
13244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13245 _ACEOF
13246
13247 fi
13248
13249 done
13250
13251
13252 if test "$ac_cv_header_wchar_h" != "yes"; then
13253
13254 for ac_header in wcstr.h
13255 do
13256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13258 echo "$as_me:$LINENO: checking for $ac_header" >&5
13259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 fi
13263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13265 else
13266 # Is the header compilable?
13267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13269 cat >conftest.$ac_ext <<_ACEOF
13270 /* confdefs.h. */
13271 _ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h. */
13275 $ac_includes_default
13276 #include <$ac_header>
13277 _ACEOF
13278 rm -f conftest.$ac_objext
13279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13280 (eval $ac_compile) 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; } &&
13293 { ac_try='test -s conftest.$ac_objext'
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; }; then
13299 ac_header_compiler=yes
13300 else
13301 echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13303
13304 ac_header_compiler=no
13305 fi
13306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13308 echo "${ECHO_T}$ac_header_compiler" >&6
13309
13310 # Is the header present?
13311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13313 cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h. */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 #include <$ac_header>
13320 _ACEOF
13321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13323 ac_status=$?
13324 grep -v '^ *+' conftest.er1 >conftest.err
13325 rm -f conftest.er1
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } >/dev/null; then
13329 if test -s conftest.err; then
13330 ac_cpp_err=$ac_c_preproc_warn_flag
13331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13332 else
13333 ac_cpp_err=
13334 fi
13335 else
13336 ac_cpp_err=yes
13337 fi
13338 if test -z "$ac_cpp_err"; then
13339 ac_header_preproc=yes
13340 else
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13343
13344 ac_header_preproc=no
13345 fi
13346 rm -f conftest.err conftest.$ac_ext
13347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13348 echo "${ECHO_T}$ac_header_preproc" >&6
13349
13350 # So? What about this header?
13351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13352 yes:no: )
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13357 ac_header_preproc=yes
13358 ;;
13359 no:yes:* )
13360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13372 (
13373 cat <<\_ASBOX
13374 ## ----------------------------------------- ##
13375 ## Report this to wx-dev@lists.wxwindows.org ##
13376 ## ----------------------------------------- ##
13377 _ASBOX
13378 ) |
13379 sed "s/^/$as_me: WARNING: /" >&2
13380 ;;
13381 esac
13382 echo "$as_me:$LINENO: checking for $ac_header" >&5
13383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13386 else
13387 eval "$as_ac_Header=\$ac_header_preproc"
13388 fi
13389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13391
13392 fi
13393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13394 cat >>confdefs.h <<_ACEOF
13395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13396 _ACEOF
13397
13398 fi
13399
13400 done
13401
13402 fi
13403
13404
13405 for ac_header in fnmatch.h
13406 do
13407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13409 echo "$as_me:$LINENO: checking for $ac_header" >&5
13410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 fi
13414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13416 else
13417 # Is the header compilable?
13418 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13420 cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h. */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 $ac_includes_default
13427 #include <$ac_header>
13428 _ACEOF
13429 rm -f conftest.$ac_objext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13431 (eval $ac_compile) 2>conftest.er1
13432 ac_status=$?
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } &&
13438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest.$ac_objext'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 ac_header_compiler=yes
13451 else
13452 echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13454
13455 ac_header_compiler=no
13456 fi
13457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13459 echo "${ECHO_T}$ac_header_compiler" >&6
13460
13461 # Is the header present?
13462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13464 cat >conftest.$ac_ext <<_ACEOF
13465 /* confdefs.h. */
13466 _ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h. */
13470 #include <$ac_header>
13471 _ACEOF
13472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } >/dev/null; then
13480 if test -s conftest.err; then
13481 ac_cpp_err=$ac_c_preproc_warn_flag
13482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13483 else
13484 ac_cpp_err=
13485 fi
13486 else
13487 ac_cpp_err=yes
13488 fi
13489 if test -z "$ac_cpp_err"; then
13490 ac_header_preproc=yes
13491 else
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 ac_header_preproc=no
13496 fi
13497 rm -f conftest.err conftest.$ac_ext
13498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13499 echo "${ECHO_T}$ac_header_preproc" >&6
13500
13501 # So? What about this header?
13502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13503 yes:no: )
13504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13508 ac_header_preproc=yes
13509 ;;
13510 no:yes:* )
13511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13523 (
13524 cat <<\_ASBOX
13525 ## ----------------------------------------- ##
13526 ## Report this to wx-dev@lists.wxwindows.org ##
13527 ## ----------------------------------------- ##
13528 _ASBOX
13529 ) |
13530 sed "s/^/$as_me: WARNING: /" >&2
13531 ;;
13532 esac
13533 echo "$as_me:$LINENO: checking for $ac_header" >&5
13534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538 eval "$as_ac_Header=\$ac_header_preproc"
13539 fi
13540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13542
13543 fi
13544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13545 cat >>confdefs.h <<_ACEOF
13546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13547 _ACEOF
13548
13549 fi
13550
13551 done
13552
13553
13554 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13555
13556 for ac_func in fnmatch
13557 do
13558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13559 echo "$as_me:$LINENO: checking for $ac_func" >&5
13560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13561 if eval "test \"\${$as_ac_var+set}\" = set"; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564 cat >conftest.$ac_ext <<_ACEOF
13565 /* confdefs.h. */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13572 #define $ac_func innocuous_$ac_func
13573
13574 /* System header to define __stub macros and hopefully few prototypes,
13575 which can conflict with char $ac_func (); below.
13576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13577 <limits.h> exists even on freestanding compilers. */
13578
13579 #ifdef __STDC__
13580 # include <limits.h>
13581 #else
13582 # include <assert.h>
13583 #endif
13584
13585 #undef $ac_func
13586
13587 /* Override any gcc2 internal prototype to avoid an error. */
13588 #ifdef __cplusplus
13589 extern "C"
13590 {
13591 #endif
13592 /* We use char because int might match the return type of a gcc2
13593 builtin and then its argument prototype would still apply. */
13594 char $ac_func ();
13595 /* The GNU C library defines this for functions which it implements
13596 to always fail with ENOSYS. Some functions are actually named
13597 something starting with __ and the normal name is an alias. */
13598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13599 choke me
13600 #else
13601 char (*f) () = $ac_func;
13602 #endif
13603 #ifdef __cplusplus
13604 }
13605 #endif
13606
13607 int
13608 main ()
13609 {
13610 return f != $ac_func;
13611 ;
13612 return 0;
13613 }
13614 _ACEOF
13615 rm -f conftest.$ac_objext conftest$ac_exeext
13616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13617 (eval $ac_link) 2>conftest.er1
13618 ac_status=$?
13619 grep -v '^ *+' conftest.er1 >conftest.err
13620 rm -f conftest.er1
13621 cat conftest.err >&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } &&
13624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try='test -s conftest$ac_exeext'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13636 eval "$as_ac_var=yes"
13637 else
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641 eval "$as_ac_var=no"
13642 fi
13643 rm -f conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13645 fi
13646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13648 if test `eval echo '${'$as_ac_var'}'` = yes; then
13649 cat >>confdefs.h <<_ACEOF
13650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13651 _ACEOF
13652
13653 fi
13654 done
13655
13656 fi
13657
13658
13659 for ac_header in langinfo.h
13660 do
13661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13663 echo "$as_me:$LINENO: checking for $ac_header" >&5
13664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 fi
13668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13670 else
13671 # Is the header compilable?
13672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13674 cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h. */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 $ac_includes_default
13681 #include <$ac_header>
13682 _ACEOF
13683 rm -f conftest.$ac_objext
13684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13685 (eval $ac_compile) 2>conftest.er1
13686 ac_status=$?
13687 grep -v '^ *+' conftest.er1 >conftest.err
13688 rm -f conftest.er1
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } &&
13692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; } &&
13698 { ac_try='test -s conftest.$ac_objext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_header_compiler=yes
13705 else
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13708
13709 ac_header_compiler=no
13710 fi
13711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13713 echo "${ECHO_T}$ac_header_compiler" >&6
13714
13715 # Is the header present?
13716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13718 cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h. */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13724 #include <$ac_header>
13725 _ACEOF
13726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13728 ac_status=$?
13729 grep -v '^ *+' conftest.er1 >conftest.err
13730 rm -f conftest.er1
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } >/dev/null; then
13734 if test -s conftest.err; then
13735 ac_cpp_err=$ac_c_preproc_warn_flag
13736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13737 else
13738 ac_cpp_err=
13739 fi
13740 else
13741 ac_cpp_err=yes
13742 fi
13743 if test -z "$ac_cpp_err"; then
13744 ac_header_preproc=yes
13745 else
13746 echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13748
13749 ac_header_preproc=no
13750 fi
13751 rm -f conftest.err conftest.$ac_ext
13752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13753 echo "${ECHO_T}$ac_header_preproc" >&6
13754
13755 # So? What about this header?
13756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13757 yes:no: )
13758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13762 ac_header_preproc=yes
13763 ;;
13764 no:yes:* )
13765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13777 (
13778 cat <<\_ASBOX
13779 ## ----------------------------------------- ##
13780 ## Report this to wx-dev@lists.wxwindows.org ##
13781 ## ----------------------------------------- ##
13782 _ASBOX
13783 ) |
13784 sed "s/^/$as_me: WARNING: /" >&2
13785 ;;
13786 esac
13787 echo "$as_me:$LINENO: checking for $ac_header" >&5
13788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13790 echo $ECHO_N "(cached) $ECHO_C" >&6
13791 else
13792 eval "$as_ac_Header=\$ac_header_preproc"
13793 fi
13794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13796
13797 fi
13798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13799 cat >>confdefs.h <<_ACEOF
13800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13801 _ACEOF
13802
13803 fi
13804
13805 done
13806
13807
13808 case "${host}" in
13809 *-pc-os2_emx | *-pc-os2-emx )
13810 if test $ac_cv_header_langinfo_h = "yes"; then
13811 LIBS="$LIBS -lintl"
13812 fi
13813 ;;
13814 esac
13815
13816 if test "$wxUSE_GUI" = "yes"; then
13817 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13818
13819 for ac_header in X11/Xlib.h
13820 do
13821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13823 echo "$as_me:$LINENO: checking for $ac_header" >&5
13824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 fi
13828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13830 else
13831 # Is the header compilable?
13832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13834 cat >conftest.$ac_ext <<_ACEOF
13835 /* confdefs.h. */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13840 $ac_includes_default
13841 #include <$ac_header>
13842 _ACEOF
13843 rm -f conftest.$ac_objext
13844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13845 (eval $ac_compile) 2>conftest.er1
13846 ac_status=$?
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; } &&
13858 { ac_try='test -s conftest.$ac_objext'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864 ac_header_compiler=yes
13865 else
13866 echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869 ac_header_compiler=no
13870 fi
13871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13873 echo "${ECHO_T}$ac_header_compiler" >&6
13874
13875 # Is the header present?
13876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13878 cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h. */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13884 #include <$ac_header>
13885 _ACEOF
13886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13888 ac_status=$?
13889 grep -v '^ *+' conftest.er1 >conftest.err
13890 rm -f conftest.er1
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } >/dev/null; then
13894 if test -s conftest.err; then
13895 ac_cpp_err=$ac_c_preproc_warn_flag
13896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13897 else
13898 ac_cpp_err=
13899 fi
13900 else
13901 ac_cpp_err=yes
13902 fi
13903 if test -z "$ac_cpp_err"; then
13904 ac_header_preproc=yes
13905 else
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909 ac_header_preproc=no
13910 fi
13911 rm -f conftest.err conftest.$ac_ext
13912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13913 echo "${ECHO_T}$ac_header_preproc" >&6
13914
13915 # So? What about this header?
13916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13917 yes:no: )
13918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13922 ac_header_preproc=yes
13923 ;;
13924 no:yes:* )
13925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13937 (
13938 cat <<\_ASBOX
13939 ## ----------------------------------------- ##
13940 ## Report this to wx-dev@lists.wxwindows.org ##
13941 ## ----------------------------------------- ##
13942 _ASBOX
13943 ) |
13944 sed "s/^/$as_me: WARNING: /" >&2
13945 ;;
13946 esac
13947 echo "$as_me:$LINENO: checking for $ac_header" >&5
13948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952 eval "$as_ac_Header=\$ac_header_preproc"
13953 fi
13954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13956
13957 fi
13958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13959 cat >>confdefs.h <<_ACEOF
13960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13961 _ACEOF
13962
13963 fi
13964
13965 done
13966
13967
13968 for ac_header in X11/XKBlib.h
13969 do
13970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13971 echo "$as_me:$LINENO: checking for $ac_header" >&5
13972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976 cat >conftest.$ac_ext <<_ACEOF
13977 /* confdefs.h. */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982
13983 #if HAVE_X11_XLIB_H
13984 #include <X11/Xlib.h>
13985 #endif
13986
13987
13988 #include <$ac_header>
13989 _ACEOF
13990 rm -f conftest.$ac_objext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13992 (eval $ac_compile) 2>conftest.er1
13993 ac_status=$?
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } &&
13999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; } &&
14005 { ac_try='test -s conftest.$ac_objext'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }; then
14011 eval "$as_ac_Header=yes"
14012 else
14013 echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14015
14016 eval "$as_ac_Header=no"
14017 fi
14018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14019 fi
14020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14023 cat >>confdefs.h <<_ACEOF
14024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14025 _ACEOF
14026
14027 fi
14028
14029 done
14030
14031 fi
14032 fi
14033
14034
14035 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14036 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14037 if test "${ac_cv_c_const+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 else
14040 cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h. */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14046
14047 int
14048 main ()
14049 {
14050 /* FIXME: Include the comments suggested by Paul. */
14051 #ifndef __cplusplus
14052 /* Ultrix mips cc rejects this. */
14053 typedef int charset[2];
14054 const charset x;
14055 /* SunOS 4.1.1 cc rejects this. */
14056 char const *const *ccp;
14057 char **p;
14058 /* NEC SVR4.0.2 mips cc rejects this. */
14059 struct point {int x, y;};
14060 static struct point const zero = {0,0};
14061 /* AIX XL C 1.02.0.0 rejects this.
14062 It does not let you subtract one const X* pointer from another in
14063 an arm of an if-expression whose if-part is not a constant
14064 expression */
14065 const char *g = "string";
14066 ccp = &g + (g ? g-g : 0);
14067 /* HPUX 7.0 cc rejects these. */
14068 ++ccp;
14069 p = (char**) ccp;
14070 ccp = (char const *const *) p;
14071 { /* SCO 3.2v4 cc rejects this. */
14072 char *t;
14073 char const *s = 0 ? (char *) 0 : (char const *) 0;
14074
14075 *t++ = 0;
14076 }
14077 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14078 int x[] = {25, 17};
14079 const int *foo = &x[0];
14080 ++foo;
14081 }
14082 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14083 typedef const int *iptr;
14084 iptr p = 0;
14085 ++p;
14086 }
14087 { /* AIX XL C 1.02.0.0 rejects this saying
14088 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14089 struct s { int j; const int *ap[3]; };
14090 struct s *b; b->j = 5;
14091 }
14092 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14093 const int foo = 10;
14094 }
14095 #endif
14096
14097 ;
14098 return 0;
14099 }
14100 _ACEOF
14101 rm -f conftest.$ac_objext
14102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14103 (eval $ac_compile) 2>conftest.er1
14104 ac_status=$?
14105 grep -v '^ *+' conftest.er1 >conftest.err
14106 rm -f conftest.er1
14107 cat conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
14110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest.$ac_objext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_c_const=yes
14123 else
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14126
14127 ac_cv_c_const=no
14128 fi
14129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14130 fi
14131 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14132 echo "${ECHO_T}$ac_cv_c_const" >&6
14133 if test $ac_cv_c_const = no; then
14134
14135 cat >>confdefs.h <<\_ACEOF
14136 #define const
14137 _ACEOF
14138
14139 fi
14140
14141 echo "$as_me:$LINENO: checking for inline" >&5
14142 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14143 if test "${ac_cv_c_inline+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 else
14146 ac_cv_c_inline=no
14147 for ac_kw in inline __inline__ __inline; do
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h. */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 #ifndef __cplusplus
14155 typedef int foo_t;
14156 static $ac_kw foo_t static_foo () {return 0; }
14157 $ac_kw foo_t foo () {return 0; }
14158 #endif
14159
14160 _ACEOF
14161 rm -f conftest.$ac_objext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14163 (eval $ac_compile) 2>conftest.er1
14164 ac_status=$?
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest.$ac_objext'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_cv_c_inline=$ac_kw; break
14183 else
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14186
14187 fi
14188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14189 done
14190
14191 fi
14192 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14193 echo "${ECHO_T}$ac_cv_c_inline" >&6
14194
14195
14196 case $ac_cv_c_inline in
14197 inline | yes) ;;
14198 *)
14199 case $ac_cv_c_inline in
14200 no) ac_val=;;
14201 *) ac_val=$ac_cv_c_inline;;
14202 esac
14203 cat >>confdefs.h <<_ACEOF
14204 #ifndef __cplusplus
14205 #define inline $ac_val
14206 #endif
14207 _ACEOF
14208 ;;
14209 esac
14210
14211
14212 echo "$as_me:$LINENO: checking for char" >&5
14213 echo $ECHO_N "checking for char... $ECHO_C" >&6
14214 if test "${ac_cv_type_char+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 cat >conftest.$ac_ext <<_ACEOF
14218 /* confdefs.h. */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 $ac_includes_default
14224 int
14225 main ()
14226 {
14227 if ((char *) 0)
14228 return 0;
14229 if (sizeof (char))
14230 return 0;
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237 (eval $ac_compile) 2>conftest.er1
14238 ac_status=$?
14239 grep -v '^ *+' conftest.er1 >conftest.err
14240 rm -f conftest.er1
14241 cat conftest.err >&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
14244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; } &&
14250 { ac_try='test -s conftest.$ac_objext'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14256 ac_cv_type_char=yes
14257 else
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14260
14261 ac_cv_type_char=no
14262 fi
14263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14264 fi
14265 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14266 echo "${ECHO_T}$ac_cv_type_char" >&6
14267
14268 echo "$as_me:$LINENO: checking size of char" >&5
14269 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14270 if test "${ac_cv_sizeof_char+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 else
14273 if test "$ac_cv_type_char" = yes; then
14274 # The cast to unsigned long works around a bug in the HP C Compiler
14275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14277 # This bug is HP SR number 8606223364.
14278 if test "$cross_compiling" = yes; then
14279 # Depending upon the size, compute the lo and hi bounds.
14280 cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h. */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 $ac_includes_default
14287 int
14288 main ()
14289 {
14290 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14291 test_array [0] = 0
14292
14293 ;
14294 return 0;
14295 }
14296 _ACEOF
14297 rm -f conftest.$ac_objext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299 (eval $ac_compile) 2>conftest.er1
14300 ac_status=$?
14301 grep -v '^ *+' conftest.er1 >conftest.err
14302 rm -f conftest.er1
14303 cat conftest.err >&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
14306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; } &&
14312 { ac_try='test -s conftest.$ac_objext'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14318 ac_lo=0 ac_mid=0
14319 while :; do
14320 cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h. */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14326 $ac_includes_default
14327 int
14328 main ()
14329 {
14330 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14331 test_array [0] = 0
14332
14333 ;
14334 return 0;
14335 }
14336 _ACEOF
14337 rm -f conftest.$ac_objext
14338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14339 (eval $ac_compile) 2>conftest.er1
14340 ac_status=$?
14341 grep -v '^ *+' conftest.er1 >conftest.err
14342 rm -f conftest.er1
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14349 ac_status=$?
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; } &&
14352 { ac_try='test -s conftest.$ac_objext'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; }; then
14358 ac_hi=$ac_mid; break
14359 else
14360 echo "$as_me: failed program was:" >&5
14361 sed 's/^/| /' conftest.$ac_ext >&5
14362
14363 ac_lo=`expr $ac_mid + 1`
14364 if test $ac_lo -le $ac_mid; then
14365 ac_lo= ac_hi=
14366 break
14367 fi
14368 ac_mid=`expr 2 '*' $ac_mid + 1`
14369 fi
14370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14371 done
14372 else
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14375
14376 cat >conftest.$ac_ext <<_ACEOF
14377 /* confdefs.h. */
14378 _ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14382 $ac_includes_default
14383 int
14384 main ()
14385 {
14386 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14387 test_array [0] = 0
14388
14389 ;
14390 return 0;
14391 }
14392 _ACEOF
14393 rm -f conftest.$ac_objext
14394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14395 (eval $ac_compile) 2>conftest.er1
14396 ac_status=$?
14397 grep -v '^ *+' conftest.er1 >conftest.err
14398 rm -f conftest.er1
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; } &&
14408 { ac_try='test -s conftest.$ac_objext'
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 ac_hi=-1 ac_mid=-1
14415 while :; do
14416 cat >conftest.$ac_ext <<_ACEOF
14417 /* confdefs.h. */
14418 _ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14422 $ac_includes_default
14423 int
14424 main ()
14425 {
14426 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14427 test_array [0] = 0
14428
14429 ;
14430 return 0;
14431 }
14432 _ACEOF
14433 rm -f conftest.$ac_objext
14434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14435 (eval $ac_compile) 2>conftest.er1
14436 ac_status=$?
14437 grep -v '^ *+' conftest.er1 >conftest.err
14438 rm -f conftest.er1
14439 cat conftest.err >&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } &&
14442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_lo=$ac_mid; break
14455 else
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14458
14459 ac_hi=`expr '(' $ac_mid ')' - 1`
14460 if test $ac_mid -le $ac_hi; then
14461 ac_lo= ac_hi=
14462 break
14463 fi
14464 ac_mid=`expr 2 '*' $ac_mid`
14465 fi
14466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14467 done
14468 else
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14471
14472 ac_lo= ac_hi=
14473 fi
14474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14475 fi
14476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14477 # Binary search between lo and hi bounds.
14478 while test "x$ac_lo" != "x$ac_hi"; do
14479 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14480 cat >conftest.$ac_ext <<_ACEOF
14481 /* confdefs.h. */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h. */
14486 $ac_includes_default
14487 int
14488 main ()
14489 {
14490 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14491 test_array [0] = 0
14492
14493 ;
14494 return 0;
14495 }
14496 _ACEOF
14497 rm -f conftest.$ac_objext
14498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14499 (eval $ac_compile) 2>conftest.er1
14500 ac_status=$?
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; } &&
14512 { ac_try='test -s conftest.$ac_objext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14518 ac_hi=$ac_mid
14519 else
14520 echo "$as_me: failed program was:" >&5
14521 sed 's/^/| /' conftest.$ac_ext >&5
14522
14523 ac_lo=`expr '(' $ac_mid ')' + 1`
14524 fi
14525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14526 done
14527 case $ac_lo in
14528 ?*) ac_cv_sizeof_char=$ac_lo;;
14529 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14530 See \`config.log' for more details." >&5
14531 echo "$as_me: error: cannot compute sizeof (char), 77
14532 See \`config.log' for more details." >&2;}
14533 { (exit 1); exit 1; }; } ;;
14534 esac
14535 else
14536 if test "$cross_compiling" = yes; then
14537 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14538 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
14539 { (exit 1); exit 1; }; }
14540 else
14541 cat >conftest.$ac_ext <<_ACEOF
14542 /* confdefs.h. */
14543 _ACEOF
14544 cat confdefs.h >>conftest.$ac_ext
14545 cat >>conftest.$ac_ext <<_ACEOF
14546 /* end confdefs.h. */
14547 $ac_includes_default
14548 long longval () { return (long) (sizeof (char)); }
14549 unsigned long ulongval () { return (long) (sizeof (char)); }
14550 #include <stdio.h>
14551 #include <stdlib.h>
14552 int
14553 main ()
14554 {
14555
14556 FILE *f = fopen ("conftest.val", "w");
14557 if (! f)
14558 exit (1);
14559 if (((long) (sizeof (char))) < 0)
14560 {
14561 long i = longval ();
14562 if (i != ((long) (sizeof (char))))
14563 exit (1);
14564 fprintf (f, "%ld\n", i);
14565 }
14566 else
14567 {
14568 unsigned long i = ulongval ();
14569 if (i != ((long) (sizeof (char))))
14570 exit (1);
14571 fprintf (f, "%lu\n", i);
14572 }
14573 exit (ferror (f) || fclose (f) != 0);
14574
14575 ;
14576 return 0;
14577 }
14578 _ACEOF
14579 rm -f conftest$ac_exeext
14580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14581 (eval $ac_link) 2>&5
14582 ac_status=$?
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586 (eval $ac_try) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 ac_cv_sizeof_char=`cat conftest.val`
14591 else
14592 echo "$as_me: program exited with status $ac_status" >&5
14593 echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14595
14596 ( exit $ac_status )
14597 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14598 See \`config.log' for more details." >&5
14599 echo "$as_me: error: cannot compute sizeof (char), 77
14600 See \`config.log' for more details." >&2;}
14601 { (exit 1); exit 1; }; }
14602 fi
14603 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14604 fi
14605 fi
14606 rm -f conftest.val
14607 else
14608 ac_cv_sizeof_char=0
14609 fi
14610 fi
14611 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14612 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14613 cat >>confdefs.h <<_ACEOF
14614 #define SIZEOF_CHAR $ac_cv_sizeof_char
14615 _ACEOF
14616
14617
14618 echo "$as_me:$LINENO: checking for short" >&5
14619 echo $ECHO_N "checking for short... $ECHO_C" >&6
14620 if test "${ac_cv_type_short+set}" = set; then
14621 echo $ECHO_N "(cached) $ECHO_C" >&6
14622 else
14623 cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h. */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14629 $ac_includes_default
14630 int
14631 main ()
14632 {
14633 if ((short *) 0)
14634 return 0;
14635 if (sizeof (short))
14636 return 0;
14637 ;
14638 return 0;
14639 }
14640 _ACEOF
14641 rm -f conftest.$ac_objext
14642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14643 (eval $ac_compile) 2>conftest.er1
14644 ac_status=$?
14645 grep -v '^ *+' conftest.er1 >conftest.err
14646 rm -f conftest.er1
14647 cat conftest.err >&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } &&
14650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14653 ac_status=$?
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; } &&
14656 { ac_try='test -s conftest.$ac_objext'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; }; then
14662 ac_cv_type_short=yes
14663 else
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667 ac_cv_type_short=no
14668 fi
14669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14670 fi
14671 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14672 echo "${ECHO_T}$ac_cv_type_short" >&6
14673
14674 echo "$as_me:$LINENO: checking size of short" >&5
14675 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14676 if test "${ac_cv_sizeof_short+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679 if test "$ac_cv_type_short" = yes; then
14680 # The cast to unsigned long works around a bug in the HP C Compiler
14681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14683 # This bug is HP SR number 8606223364.
14684 if test "$cross_compiling" = yes; then
14685 # Depending upon the size, compute the lo and hi bounds.
14686 cat >conftest.$ac_ext <<_ACEOF
14687 /* confdefs.h. */
14688 _ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h. */
14692 $ac_includes_default
14693 int
14694 main ()
14695 {
14696 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14697 test_array [0] = 0
14698
14699 ;
14700 return 0;
14701 }
14702 _ACEOF
14703 rm -f conftest.$ac_objext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14705 (eval $ac_compile) 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } &&
14712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; } &&
14718 { ac_try='test -s conftest.$ac_objext'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_lo=0 ac_mid=0
14725 while :; do
14726 cat >conftest.$ac_ext <<_ACEOF
14727 /* confdefs.h. */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14732 $ac_includes_default
14733 int
14734 main ()
14735 {
14736 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14737 test_array [0] = 0
14738
14739 ;
14740 return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745 (eval $ac_compile) 2>conftest.er1
14746 ac_status=$?
14747 grep -v '^ *+' conftest.er1 >conftest.err
14748 rm -f conftest.er1
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_hi=$ac_mid; break
14765 else
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769 ac_lo=`expr $ac_mid + 1`
14770 if test $ac_lo -le $ac_mid; then
14771 ac_lo= ac_hi=
14772 break
14773 fi
14774 ac_mid=`expr 2 '*' $ac_mid + 1`
14775 fi
14776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14777 done
14778 else
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14781
14782 cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h. */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 $ac_includes_default
14789 int
14790 main ()
14791 {
14792 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14793 test_array [0] = 0
14794
14795 ;
14796 return 0;
14797 }
14798 _ACEOF
14799 rm -f conftest.$ac_objext
14800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14801 (eval $ac_compile) 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } &&
14808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest.$ac_objext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 ac_hi=-1 ac_mid=-1
14821 while :; do
14822 cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h. */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828 $ac_includes_default
14829 int
14830 main ()
14831 {
14832 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14833 test_array [0] = 0
14834
14835 ;
14836 return 0;
14837 }
14838 _ACEOF
14839 rm -f conftest.$ac_objext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14841 (eval $ac_compile) 2>conftest.er1
14842 ac_status=$?
14843 grep -v '^ *+' conftest.er1 >conftest.err
14844 rm -f conftest.er1
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; } &&
14854 { ac_try='test -s conftest.$ac_objext'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 ac_lo=$ac_mid; break
14861 else
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14864
14865 ac_hi=`expr '(' $ac_mid ')' - 1`
14866 if test $ac_mid -le $ac_hi; then
14867 ac_lo= ac_hi=
14868 break
14869 fi
14870 ac_mid=`expr 2 '*' $ac_mid`
14871 fi
14872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14873 done
14874 else
14875 echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14877
14878 ac_lo= ac_hi=
14879 fi
14880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14881 fi
14882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14883 # Binary search between lo and hi bounds.
14884 while test "x$ac_lo" != "x$ac_hi"; do
14885 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14886 cat >conftest.$ac_ext <<_ACEOF
14887 /* confdefs.h. */
14888 _ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h. */
14892 $ac_includes_default
14893 int
14894 main ()
14895 {
14896 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14897 test_array [0] = 0
14898
14899 ;
14900 return 0;
14901 }
14902 _ACEOF
14903 rm -f conftest.$ac_objext
14904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14905 (eval $ac_compile) 2>conftest.er1
14906 ac_status=$?
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
14912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14915 ac_status=$?
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; } &&
14918 { ac_try='test -s conftest.$ac_objext'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_hi=$ac_mid
14925 else
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14928
14929 ac_lo=`expr '(' $ac_mid ')' + 1`
14930 fi
14931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14932 done
14933 case $ac_lo in
14934 ?*) ac_cv_sizeof_short=$ac_lo;;
14935 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14936 See \`config.log' for more details." >&5
14937 echo "$as_me: error: cannot compute sizeof (short), 77
14938 See \`config.log' for more details." >&2;}
14939 { (exit 1); exit 1; }; } ;;
14940 esac
14941 else
14942 if test "$cross_compiling" = yes; then
14943 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14944 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
14945 { (exit 1); exit 1; }; }
14946 else
14947 cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h. */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14953 $ac_includes_default
14954 long longval () { return (long) (sizeof (short)); }
14955 unsigned long ulongval () { return (long) (sizeof (short)); }
14956 #include <stdio.h>
14957 #include <stdlib.h>
14958 int
14959 main ()
14960 {
14961
14962 FILE *f = fopen ("conftest.val", "w");
14963 if (! f)
14964 exit (1);
14965 if (((long) (sizeof (short))) < 0)
14966 {
14967 long i = longval ();
14968 if (i != ((long) (sizeof (short))))
14969 exit (1);
14970 fprintf (f, "%ld\n", i);
14971 }
14972 else
14973 {
14974 unsigned long i = ulongval ();
14975 if (i != ((long) (sizeof (short))))
14976 exit (1);
14977 fprintf (f, "%lu\n", i);
14978 }
14979 exit (ferror (f) || fclose (f) != 0);
14980
14981 ;
14982 return 0;
14983 }
14984 _ACEOF
14985 rm -f conftest$ac_exeext
14986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14987 (eval $ac_link) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 ac_cv_sizeof_short=`cat conftest.val`
14997 else
14998 echo "$as_me: program exited with status $ac_status" >&5
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002 ( exit $ac_status )
15003 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15004 See \`config.log' for more details." >&5
15005 echo "$as_me: error: cannot compute sizeof (short), 77
15006 See \`config.log' for more details." >&2;}
15007 { (exit 1); exit 1; }; }
15008 fi
15009 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15010 fi
15011 fi
15012 rm -f conftest.val
15013 else
15014 ac_cv_sizeof_short=0
15015 fi
15016 fi
15017 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15018 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15019 cat >>confdefs.h <<_ACEOF
15020 #define SIZEOF_SHORT $ac_cv_sizeof_short
15021 _ACEOF
15022
15023
15024 echo "$as_me:$LINENO: checking for void *" >&5
15025 echo $ECHO_N "checking for void *... $ECHO_C" >&6
15026 if test "${ac_cv_type_void_p+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029 cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h. */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 $ac_includes_default
15036 int
15037 main ()
15038 {
15039 if ((void * *) 0)
15040 return 0;
15041 if (sizeof (void *))
15042 return 0;
15043 ;
15044 return 0;
15045 }
15046 _ACEOF
15047 rm -f conftest.$ac_objext
15048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15049 (eval $ac_compile) 2>conftest.er1
15050 ac_status=$?
15051 grep -v '^ *+' conftest.er1 >conftest.err
15052 rm -f conftest.er1
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } &&
15056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; } &&
15062 { ac_try='test -s conftest.$ac_objext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 ac_cv_type_void_p=yes
15069 else
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
15073 ac_cv_type_void_p=no
15074 fi
15075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15076 fi
15077 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15078 echo "${ECHO_T}$ac_cv_type_void_p" >&6
15079
15080 echo "$as_me:$LINENO: checking size of void *" >&5
15081 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15082 if test "${ac_cv_sizeof_void_p+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085 if test "$ac_cv_type_void_p" = yes; then
15086 # The cast to unsigned long works around a bug in the HP C Compiler
15087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15089 # This bug is HP SR number 8606223364.
15090 if test "$cross_compiling" = yes; then
15091 # Depending upon the size, compute the lo and hi bounds.
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h. */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 $ac_includes_default
15099 int
15100 main ()
15101 {
15102 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15103 test_array [0] = 0
15104
15105 ;
15106 return 0;
15107 }
15108 _ACEOF
15109 rm -f conftest.$ac_objext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111 (eval $ac_compile) 2>conftest.er1
15112 ac_status=$?
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } &&
15118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; } &&
15124 { ac_try='test -s conftest.$ac_objext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 ac_lo=0 ac_mid=0
15131 while :; do
15132 cat >conftest.$ac_ext <<_ACEOF
15133 /* confdefs.h. */
15134 _ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15138 $ac_includes_default
15139 int
15140 main ()
15141 {
15142 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15143 test_array [0] = 0
15144
15145 ;
15146 return 0;
15147 }
15148 _ACEOF
15149 rm -f conftest.$ac_objext
15150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15151 (eval $ac_compile) 2>conftest.er1
15152 ac_status=$?
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; } &&
15164 { ac_try='test -s conftest.$ac_objext'
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 ac_hi=$ac_mid; break
15171 else
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15174
15175 ac_lo=`expr $ac_mid + 1`
15176 if test $ac_lo -le $ac_mid; then
15177 ac_lo= ac_hi=
15178 break
15179 fi
15180 ac_mid=`expr 2 '*' $ac_mid + 1`
15181 fi
15182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15183 done
15184 else
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15187
15188 cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h. */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194 $ac_includes_default
15195 int
15196 main ()
15197 {
15198 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15199 test_array [0] = 0
15200
15201 ;
15202 return 0;
15203 }
15204 _ACEOF
15205 rm -f conftest.$ac_objext
15206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15207 (eval $ac_compile) 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; } &&
15220 { ac_try='test -s conftest.$ac_objext'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_hi=-1 ac_mid=-1
15227 while :; do
15228 cat >conftest.$ac_ext <<_ACEOF
15229 /* confdefs.h. */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15234 $ac_includes_default
15235 int
15236 main ()
15237 {
15238 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15239 test_array [0] = 0
15240
15241 ;
15242 return 0;
15243 }
15244 _ACEOF
15245 rm -f conftest.$ac_objext
15246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15247 (eval $ac_compile) 2>conftest.er1
15248 ac_status=$?
15249 grep -v '^ *+' conftest.er1 >conftest.err
15250 rm -f conftest.er1
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15257 ac_status=$?
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; } &&
15260 { ac_try='test -s conftest.$ac_objext'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15266 ac_lo=$ac_mid; break
15267 else
15268 echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15270
15271 ac_hi=`expr '(' $ac_mid ')' - 1`
15272 if test $ac_mid -le $ac_hi; then
15273 ac_lo= ac_hi=
15274 break
15275 fi
15276 ac_mid=`expr 2 '*' $ac_mid`
15277 fi
15278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15279 done
15280 else
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283
15284 ac_lo= ac_hi=
15285 fi
15286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15287 fi
15288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15289 # Binary search between lo and hi bounds.
15290 while test "x$ac_lo" != "x$ac_hi"; do
15291 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 $ac_includes_default
15299 int
15300 main ()
15301 {
15302 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15303 test_array [0] = 0
15304
15305 ;
15306 return 0;
15307 }
15308 _ACEOF
15309 rm -f conftest.$ac_objext
15310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15311 (eval $ac_compile) 2>conftest.er1
15312 ac_status=$?
15313 grep -v '^ *+' conftest.er1 >conftest.err
15314 rm -f conftest.er1
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
15318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest.$ac_objext'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 ac_hi=$ac_mid
15331 else
15332 echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335 ac_lo=`expr '(' $ac_mid ')' + 1`
15336 fi
15337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15338 done
15339 case $ac_lo in
15340 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15341 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15342 See \`config.log' for more details." >&5
15343 echo "$as_me: error: cannot compute sizeof (void *), 77
15344 See \`config.log' for more details." >&2;}
15345 { (exit 1); exit 1; }; } ;;
15346 esac
15347 else
15348 if test "$cross_compiling" = yes; then
15349 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15350 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15351 { (exit 1); exit 1; }; }
15352 else
15353 cat >conftest.$ac_ext <<_ACEOF
15354 /* confdefs.h. */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 $ac_includes_default
15360 long longval () { return (long) (sizeof (void *)); }
15361 unsigned long ulongval () { return (long) (sizeof (void *)); }
15362 #include <stdio.h>
15363 #include <stdlib.h>
15364 int
15365 main ()
15366 {
15367
15368 FILE *f = fopen ("conftest.val", "w");
15369 if (! f)
15370 exit (1);
15371 if (((long) (sizeof (void *))) < 0)
15372 {
15373 long i = longval ();
15374 if (i != ((long) (sizeof (void *))))
15375 exit (1);
15376 fprintf (f, "%ld\n", i);
15377 }
15378 else
15379 {
15380 unsigned long i = ulongval ();
15381 if (i != ((long) (sizeof (void *))))
15382 exit (1);
15383 fprintf (f, "%lu\n", i);
15384 }
15385 exit (ferror (f) || fclose (f) != 0);
15386
15387 ;
15388 return 0;
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 ac_cv_sizeof_void_p=`cat conftest.val`
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 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15410 See \`config.log' for more details." >&5
15411 echo "$as_me: error: cannot compute sizeof (void *), 77
15412 See \`config.log' for more details." >&2;}
15413 { (exit 1); exit 1; }; }
15414 fi
15415 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15416 fi
15417 fi
15418 rm -f conftest.val
15419 else
15420 ac_cv_sizeof_void_p=0
15421 fi
15422 fi
15423 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15424 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15425 cat >>confdefs.h <<_ACEOF
15426 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15427 _ACEOF
15428
15429
15430 echo "$as_me:$LINENO: checking for int" >&5
15431 echo $ECHO_N "checking for int... $ECHO_C" >&6
15432 if test "${ac_cv_type_int+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 else
15435 cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h. */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 $ac_includes_default
15442 int
15443 main ()
15444 {
15445 if ((int *) 0)
15446 return 0;
15447 if (sizeof (int))
15448 return 0;
15449 ;
15450 return 0;
15451 }
15452 _ACEOF
15453 rm -f conftest.$ac_objext
15454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15455 (eval $ac_compile) 2>conftest.er1
15456 ac_status=$?
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } &&
15462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; } &&
15468 { ac_try='test -s conftest.$ac_objext'
15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
15474 ac_cv_type_int=yes
15475 else
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15478
15479 ac_cv_type_int=no
15480 fi
15481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15482 fi
15483 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15484 echo "${ECHO_T}$ac_cv_type_int" >&6
15485
15486 echo "$as_me:$LINENO: checking size of int" >&5
15487 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15488 if test "${ac_cv_sizeof_int+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 else
15491 if test "$ac_cv_type_int" = yes; then
15492 # The cast to unsigned long works around a bug in the HP C Compiler
15493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15495 # This bug is HP SR number 8606223364.
15496 if test "$cross_compiling" = yes; then
15497 # Depending upon the size, compute the lo and hi bounds.
15498 cat >conftest.$ac_ext <<_ACEOF
15499 /* confdefs.h. */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15504 $ac_includes_default
15505 int
15506 main ()
15507 {
15508 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15509 test_array [0] = 0
15510
15511 ;
15512 return 0;
15513 }
15514 _ACEOF
15515 rm -f conftest.$ac_objext
15516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15517 (eval $ac_compile) 2>conftest.er1
15518 ac_status=$?
15519 grep -v '^ *+' conftest.er1 >conftest.err
15520 rm -f conftest.er1
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } &&
15524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; } &&
15530 { ac_try='test -s conftest.$ac_objext'
15531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532 (eval $ac_try) 2>&5
15533 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then
15536 ac_lo=0 ac_mid=0
15537 while :; do
15538 cat >conftest.$ac_ext <<_ACEOF
15539 /* confdefs.h. */
15540 _ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15544 $ac_includes_default
15545 int
15546 main ()
15547 {
15548 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15549 test_array [0] = 0
15550
15551 ;
15552 return 0;
15553 }
15554 _ACEOF
15555 rm -f conftest.$ac_objext
15556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15557 (eval $ac_compile) 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; } &&
15570 { ac_try='test -s conftest.$ac_objext'
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_hi=$ac_mid; break
15577 else
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15580
15581 ac_lo=`expr $ac_mid + 1`
15582 if test $ac_lo -le $ac_mid; then
15583 ac_lo= ac_hi=
15584 break
15585 fi
15586 ac_mid=`expr 2 '*' $ac_mid + 1`
15587 fi
15588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15589 done
15590 else
15591 echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15593
15594 cat >conftest.$ac_ext <<_ACEOF
15595 /* confdefs.h. */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 $ac_includes_default
15601 int
15602 main ()
15603 {
15604 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15605 test_array [0] = 0
15606
15607 ;
15608 return 0;
15609 }
15610 _ACEOF
15611 rm -f conftest.$ac_objext
15612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15613 (eval $ac_compile) 2>conftest.er1
15614 ac_status=$?
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; } &&
15626 { ac_try='test -s conftest.$ac_objext'
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; }; then
15632 ac_hi=-1 ac_mid=-1
15633 while :; do
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h. */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 $ac_includes_default
15641 int
15642 main ()
15643 {
15644 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15645 test_array [0] = 0
15646
15647 ;
15648 return 0;
15649 }
15650 _ACEOF
15651 rm -f conftest.$ac_objext
15652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15653 (eval $ac_compile) 2>conftest.er1
15654 ac_status=$?
15655 grep -v '^ *+' conftest.er1 >conftest.err
15656 rm -f conftest.er1
15657 cat conftest.err >&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
15660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; } &&
15666 { ac_try='test -s conftest.$ac_objext'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_lo=$ac_mid; break
15673 else
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677 ac_hi=`expr '(' $ac_mid ')' - 1`
15678 if test $ac_mid -le $ac_hi; then
15679 ac_lo= ac_hi=
15680 break
15681 fi
15682 ac_mid=`expr 2 '*' $ac_mid`
15683 fi
15684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15685 done
15686 else
15687 echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15689
15690 ac_lo= ac_hi=
15691 fi
15692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15693 fi
15694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15695 # Binary search between lo and hi bounds.
15696 while test "x$ac_lo" != "x$ac_hi"; do
15697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15698 cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h. */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 $ac_includes_default
15705 int
15706 main ()
15707 {
15708 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15709 test_array [0] = 0
15710
15711 ;
15712 return 0;
15713 }
15714 _ACEOF
15715 rm -f conftest.$ac_objext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717 (eval $ac_compile) 2>conftest.er1
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest.$ac_objext'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_hi=$ac_mid
15737 else
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741 ac_lo=`expr '(' $ac_mid ')' + 1`
15742 fi
15743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15744 done
15745 case $ac_lo in
15746 ?*) ac_cv_sizeof_int=$ac_lo;;
15747 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15748 See \`config.log' for more details." >&5
15749 echo "$as_me: error: cannot compute sizeof (int), 77
15750 See \`config.log' for more details." >&2;}
15751 { (exit 1); exit 1; }; } ;;
15752 esac
15753 else
15754 if test "$cross_compiling" = yes; then
15755 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15756 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15757 { (exit 1); exit 1; }; }
15758 else
15759 cat >conftest.$ac_ext <<_ACEOF
15760 /* confdefs.h. */
15761 _ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15765 $ac_includes_default
15766 long longval () { return (long) (sizeof (int)); }
15767 unsigned long ulongval () { return (long) (sizeof (int)); }
15768 #include <stdio.h>
15769 #include <stdlib.h>
15770 int
15771 main ()
15772 {
15773
15774 FILE *f = fopen ("conftest.val", "w");
15775 if (! f)
15776 exit (1);
15777 if (((long) (sizeof (int))) < 0)
15778 {
15779 long i = longval ();
15780 if (i != ((long) (sizeof (int))))
15781 exit (1);
15782 fprintf (f, "%ld\n", i);
15783 }
15784 else
15785 {
15786 unsigned long i = ulongval ();
15787 if (i != ((long) (sizeof (int))))
15788 exit (1);
15789 fprintf (f, "%lu\n", i);
15790 }
15791 exit (ferror (f) || fclose (f) != 0);
15792
15793 ;
15794 return 0;
15795 }
15796 _ACEOF
15797 rm -f conftest$ac_exeext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15799 (eval $ac_link) 2>&5
15800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_cv_sizeof_int=`cat conftest.val`
15809 else
15810 echo "$as_me: program exited with status $ac_status" >&5
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814 ( exit $ac_status )
15815 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15816 See \`config.log' for more details." >&5
15817 echo "$as_me: error: cannot compute sizeof (int), 77
15818 See \`config.log' for more details." >&2;}
15819 { (exit 1); exit 1; }; }
15820 fi
15821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15822 fi
15823 fi
15824 rm -f conftest.val
15825 else
15826 ac_cv_sizeof_int=0
15827 fi
15828 fi
15829 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15830 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15831 cat >>confdefs.h <<_ACEOF
15832 #define SIZEOF_INT $ac_cv_sizeof_int
15833 _ACEOF
15834
15835
15836 echo "$as_me:$LINENO: checking for long" >&5
15837 echo $ECHO_N "checking for long... $ECHO_C" >&6
15838 if test "${ac_cv_type_long+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15840 else
15841 cat >conftest.$ac_ext <<_ACEOF
15842 /* confdefs.h. */
15843 _ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h. */
15847 $ac_includes_default
15848 int
15849 main ()
15850 {
15851 if ((long *) 0)
15852 return 0;
15853 if (sizeof (long))
15854 return 0;
15855 ;
15856 return 0;
15857 }
15858 _ACEOF
15859 rm -f conftest.$ac_objext
15860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15861 (eval $ac_compile) 2>conftest.er1
15862 ac_status=$?
15863 grep -v '^ *+' conftest.er1 >conftest.err
15864 rm -f conftest.er1
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } &&
15868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15871 ac_status=$?
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; } &&
15874 { ac_try='test -s conftest.$ac_objext'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; }; then
15880 ac_cv_type_long=yes
15881 else
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15884
15885 ac_cv_type_long=no
15886 fi
15887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15888 fi
15889 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15890 echo "${ECHO_T}$ac_cv_type_long" >&6
15891
15892 echo "$as_me:$LINENO: checking size of long" >&5
15893 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15894 if test "${ac_cv_sizeof_long+set}" = set; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15896 else
15897 if test "$ac_cv_type_long" = yes; then
15898 # The cast to unsigned long works around a bug in the HP C Compiler
15899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15901 # This bug is HP SR number 8606223364.
15902 if test "$cross_compiling" = yes; then
15903 # Depending upon the size, compute the lo and hi bounds.
15904 cat >conftest.$ac_ext <<_ACEOF
15905 /* confdefs.h. */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15910 $ac_includes_default
15911 int
15912 main ()
15913 {
15914 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15915 test_array [0] = 0
15916
15917 ;
15918 return 0;
15919 }
15920 _ACEOF
15921 rm -f conftest.$ac_objext
15922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15923 (eval $ac_compile) 2>conftest.er1
15924 ac_status=$?
15925 grep -v '^ *+' conftest.er1 >conftest.err
15926 rm -f conftest.er1
15927 cat conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; } &&
15936 { ac_try='test -s conftest.$ac_objext'
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15939 ac_status=$?
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; }; then
15942 ac_lo=0 ac_mid=0
15943 while :; do
15944 cat >conftest.$ac_ext <<_ACEOF
15945 /* confdefs.h. */
15946 _ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h. */
15950 $ac_includes_default
15951 int
15952 main ()
15953 {
15954 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15955 test_array [0] = 0
15956
15957 ;
15958 return 0;
15959 }
15960 _ACEOF
15961 rm -f conftest.$ac_objext
15962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15963 (eval $ac_compile) 2>conftest.er1
15964 ac_status=$?
15965 grep -v '^ *+' conftest.er1 >conftest.err
15966 rm -f conftest.er1
15967 cat conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } &&
15970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15973 ac_status=$?
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; } &&
15976 { ac_try='test -s conftest.$ac_objext'
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_hi=$ac_mid; break
15983 else
15984 echo "$as_me: failed program was:" >&5
15985 sed 's/^/| /' conftest.$ac_ext >&5
15986
15987 ac_lo=`expr $ac_mid + 1`
15988 if test $ac_lo -le $ac_mid; then
15989 ac_lo= ac_hi=
15990 break
15991 fi
15992 ac_mid=`expr 2 '*' $ac_mid + 1`
15993 fi
15994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15995 done
15996 else
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
15999
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h. */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 $ac_includes_default
16007 int
16008 main ()
16009 {
16010 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16011 test_array [0] = 0
16012
16013 ;
16014 return 0;
16015 }
16016 _ACEOF
16017 rm -f conftest.$ac_objext
16018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16019 (eval $ac_compile) 2>conftest.er1
16020 ac_status=$?
16021 grep -v '^ *+' conftest.er1 >conftest.err
16022 rm -f conftest.er1
16023 cat conftest.err >&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } &&
16026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; } &&
16032 { ac_try='test -s conftest.$ac_objext'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_hi=-1 ac_mid=-1
16039 while :; do
16040 cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h. */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 $ac_includes_default
16047 int
16048 main ()
16049 {
16050 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16051 test_array [0] = 0
16052
16053 ;
16054 return 0;
16055 }
16056 _ACEOF
16057 rm -f conftest.$ac_objext
16058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16059 (eval $ac_compile) 2>conftest.er1
16060 ac_status=$?
16061 grep -v '^ *+' conftest.er1 >conftest.err
16062 rm -f conftest.er1
16063 cat conftest.err >&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
16066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16069 ac_status=$?
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; } &&
16072 { ac_try='test -s conftest.$ac_objext'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16075 ac_status=$?
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16078 ac_lo=$ac_mid; break
16079 else
16080 echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16082
16083 ac_hi=`expr '(' $ac_mid ')' - 1`
16084 if test $ac_mid -le $ac_hi; then
16085 ac_lo= ac_hi=
16086 break
16087 fi
16088 ac_mid=`expr 2 '*' $ac_mid`
16089 fi
16090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16091 done
16092 else
16093 echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16095
16096 ac_lo= ac_hi=
16097 fi
16098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16099 fi
16100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16101 # Binary search between lo and hi bounds.
16102 while test "x$ac_lo" != "x$ac_hi"; do
16103 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16104 cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h. */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16110 $ac_includes_default
16111 int
16112 main ()
16113 {
16114 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16115 test_array [0] = 0
16116
16117 ;
16118 return 0;
16119 }
16120 _ACEOF
16121 rm -f conftest.$ac_objext
16122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16123 (eval $ac_compile) 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); } &&
16130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; } &&
16136 { ac_try='test -s conftest.$ac_objext'
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; }; then
16142 ac_hi=$ac_mid
16143 else
16144 echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16146
16147 ac_lo=`expr '(' $ac_mid ')' + 1`
16148 fi
16149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16150 done
16151 case $ac_lo in
16152 ?*) ac_cv_sizeof_long=$ac_lo;;
16153 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16154 See \`config.log' for more details." >&5
16155 echo "$as_me: error: cannot compute sizeof (long), 77
16156 See \`config.log' for more details." >&2;}
16157 { (exit 1); exit 1; }; } ;;
16158 esac
16159 else
16160 if test "$cross_compiling" = yes; then
16161 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16162 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16163 { (exit 1); exit 1; }; }
16164 else
16165 cat >conftest.$ac_ext <<_ACEOF
16166 /* confdefs.h. */
16167 _ACEOF
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h. */
16171 $ac_includes_default
16172 long longval () { return (long) (sizeof (long)); }
16173 unsigned long ulongval () { return (long) (sizeof (long)); }
16174 #include <stdio.h>
16175 #include <stdlib.h>
16176 int
16177 main ()
16178 {
16179
16180 FILE *f = fopen ("conftest.val", "w");
16181 if (! f)
16182 exit (1);
16183 if (((long) (sizeof (long))) < 0)
16184 {
16185 long i = longval ();
16186 if (i != ((long) (sizeof (long))))
16187 exit (1);
16188 fprintf (f, "%ld\n", i);
16189 }
16190 else
16191 {
16192 unsigned long i = ulongval ();
16193 if (i != ((long) (sizeof (long))))
16194 exit (1);
16195 fprintf (f, "%lu\n", i);
16196 }
16197 exit (ferror (f) || fclose (f) != 0);
16198
16199 ;
16200 return 0;
16201 }
16202 _ACEOF
16203 rm -f conftest$ac_exeext
16204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16205 (eval $ac_link) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_cv_sizeof_long=`cat conftest.val`
16215 else
16216 echo "$as_me: program exited with status $ac_status" >&5
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220 ( exit $ac_status )
16221 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16222 See \`config.log' for more details." >&5
16223 echo "$as_me: error: cannot compute sizeof (long), 77
16224 See \`config.log' for more details." >&2;}
16225 { (exit 1); exit 1; }; }
16226 fi
16227 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16228 fi
16229 fi
16230 rm -f conftest.val
16231 else
16232 ac_cv_sizeof_long=0
16233 fi
16234 fi
16235 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16236 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16237 cat >>confdefs.h <<_ACEOF
16238 #define SIZEOF_LONG $ac_cv_sizeof_long
16239 _ACEOF
16240
16241
16242 echo "$as_me:$LINENO: checking for size_t" >&5
16243 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16244 if test "${ac_cv_type_size_t+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 else
16247 cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h. */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 $ac_includes_default
16254 int
16255 main ()
16256 {
16257 if ((size_t *) 0)
16258 return 0;
16259 if (sizeof (size_t))
16260 return 0;
16261 ;
16262 return 0;
16263 }
16264 _ACEOF
16265 rm -f conftest.$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267 (eval $ac_compile) 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest.$ac_objext'
16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282 (eval $ac_try) 2>&5
16283 ac_status=$?
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16286 ac_cv_type_size_t=yes
16287 else
16288 echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16290
16291 ac_cv_type_size_t=no
16292 fi
16293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16294 fi
16295 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16296 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16297
16298 echo "$as_me:$LINENO: checking size of size_t" >&5
16299 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16300 if test "${ac_cv_sizeof_size_t+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 else
16303 if test "$ac_cv_type_size_t" = yes; then
16304 # The cast to unsigned long works around a bug in the HP C Compiler
16305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16307 # This bug is HP SR number 8606223364.
16308 if test "$cross_compiling" = yes; then
16309 # Depending upon the size, compute the lo and hi bounds.
16310 cat >conftest.$ac_ext <<_ACEOF
16311 /* confdefs.h. */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16316 $ac_includes_default
16317 int
16318 main ()
16319 {
16320 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16321 test_array [0] = 0
16322
16323 ;
16324 return 0;
16325 }
16326 _ACEOF
16327 rm -f conftest.$ac_objext
16328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16329 (eval $ac_compile) 2>conftest.er1
16330 ac_status=$?
16331 grep -v '^ *+' conftest.er1 >conftest.err
16332 rm -f conftest.er1
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try='test -s conftest.$ac_objext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_lo=0 ac_mid=0
16349 while :; do
16350 cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h. */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h. */
16356 $ac_includes_default
16357 int
16358 main ()
16359 {
16360 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16361 test_array [0] = 0
16362
16363 ;
16364 return 0;
16365 }
16366 _ACEOF
16367 rm -f conftest.$ac_objext
16368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16369 (eval $ac_compile) 2>conftest.er1
16370 ac_status=$?
16371 grep -v '^ *+' conftest.er1 >conftest.err
16372 rm -f conftest.er1
16373 cat conftest.err >&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
16376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; } &&
16382 { ac_try='test -s conftest.$ac_objext'
16383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16384 (eval $ac_try) 2>&5
16385 ac_status=$?
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; }; then
16388 ac_hi=$ac_mid; break
16389 else
16390 echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16392
16393 ac_lo=`expr $ac_mid + 1`
16394 if test $ac_lo -le $ac_mid; then
16395 ac_lo= ac_hi=
16396 break
16397 fi
16398 ac_mid=`expr 2 '*' $ac_mid + 1`
16399 fi
16400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16401 done
16402 else
16403 echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16405
16406 cat >conftest.$ac_ext <<_ACEOF
16407 /* confdefs.h. */
16408 _ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16412 $ac_includes_default
16413 int
16414 main ()
16415 {
16416 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16417 test_array [0] = 0
16418
16419 ;
16420 return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest.$ac_objext
16424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16425 (eval $ac_compile) 2>conftest.er1
16426 ac_status=$?
16427 grep -v '^ *+' conftest.er1 >conftest.err
16428 rm -f conftest.er1
16429 cat conftest.err >&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } &&
16432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; } &&
16438 { ac_try='test -s conftest.$ac_objext'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; }; then
16444 ac_hi=-1 ac_mid=-1
16445 while :; do
16446 cat >conftest.$ac_ext <<_ACEOF
16447 /* confdefs.h. */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452 $ac_includes_default
16453 int
16454 main ()
16455 {
16456 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16457 test_array [0] = 0
16458
16459 ;
16460 return 0;
16461 }
16462 _ACEOF
16463 rm -f conftest.$ac_objext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16465 (eval $ac_compile) 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16481 ac_status=$?
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_lo=$ac_mid; break
16485 else
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489 ac_hi=`expr '(' $ac_mid ')' - 1`
16490 if test $ac_mid -le $ac_hi; then
16491 ac_lo= ac_hi=
16492 break
16493 fi
16494 ac_mid=`expr 2 '*' $ac_mid`
16495 fi
16496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16497 done
16498 else
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16501
16502 ac_lo= ac_hi=
16503 fi
16504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16505 fi
16506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16507 # Binary search between lo and hi bounds.
16508 while test "x$ac_lo" != "x$ac_hi"; do
16509 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h. */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16516 $ac_includes_default
16517 int
16518 main ()
16519 {
16520 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16521 test_array [0] = 0
16522
16523 ;
16524 return 0;
16525 }
16526 _ACEOF
16527 rm -f conftest.$ac_objext
16528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16529 (eval $ac_compile) 2>conftest.er1
16530 ac_status=$?
16531 grep -v '^ *+' conftest.er1 >conftest.err
16532 rm -f conftest.er1
16533 cat conftest.err >&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try='test -s conftest.$ac_objext'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_hi=$ac_mid
16549 else
16550 echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16552
16553 ac_lo=`expr '(' $ac_mid ')' + 1`
16554 fi
16555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16556 done
16557 case $ac_lo in
16558 ?*) ac_cv_sizeof_size_t=$ac_lo;;
16559 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16560 See \`config.log' for more details." >&5
16561 echo "$as_me: error: cannot compute sizeof (size_t), 77
16562 See \`config.log' for more details." >&2;}
16563 { (exit 1); exit 1; }; } ;;
16564 esac
16565 else
16566 if test "$cross_compiling" = yes; then
16567 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16568 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16569 { (exit 1); exit 1; }; }
16570 else
16571 cat >conftest.$ac_ext <<_ACEOF
16572 /* confdefs.h. */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16577 $ac_includes_default
16578 long longval () { return (long) (sizeof (size_t)); }
16579 unsigned long ulongval () { return (long) (sizeof (size_t)); }
16580 #include <stdio.h>
16581 #include <stdlib.h>
16582 int
16583 main ()
16584 {
16585
16586 FILE *f = fopen ("conftest.val", "w");
16587 if (! f)
16588 exit (1);
16589 if (((long) (sizeof (size_t))) < 0)
16590 {
16591 long i = longval ();
16592 if (i != ((long) (sizeof (size_t))))
16593 exit (1);
16594 fprintf (f, "%ld\n", i);
16595 }
16596 else
16597 {
16598 unsigned long i = ulongval ();
16599 if (i != ((long) (sizeof (size_t))))
16600 exit (1);
16601 fprintf (f, "%lu\n", i);
16602 }
16603 exit (ferror (f) || fclose (f) != 0);
16604
16605 ;
16606 return 0;
16607 }
16608 _ACEOF
16609 rm -f conftest$ac_exeext
16610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16611 (eval $ac_link) 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; }; then
16620 ac_cv_sizeof_size_t=`cat conftest.val`
16621 else
16622 echo "$as_me: program exited with status $ac_status" >&5
16623 echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16625
16626 ( exit $ac_status )
16627 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16628 See \`config.log' for more details." >&5
16629 echo "$as_me: error: cannot compute sizeof (size_t), 77
16630 See \`config.log' for more details." >&2;}
16631 { (exit 1); exit 1; }; }
16632 fi
16633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16634 fi
16635 fi
16636 rm -f conftest.val
16637 else
16638 ac_cv_sizeof_size_t=0
16639 fi
16640 fi
16641 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16642 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16643 cat >>confdefs.h <<_ACEOF
16644 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16645 _ACEOF
16646
16647
16648
16649 case "${host}" in
16650 arm-*-linux* )
16651 echo "$as_me:$LINENO: checking for long long" >&5
16652 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16653 if test "${ac_cv_type_long_long+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16655 else
16656 cat >conftest.$ac_ext <<_ACEOF
16657 /* confdefs.h. */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 $ac_includes_default
16663 int
16664 main ()
16665 {
16666 if ((long long *) 0)
16667 return 0;
16668 if (sizeof (long long))
16669 return 0;
16670 ;
16671 return 0;
16672 }
16673 _ACEOF
16674 rm -f conftest.$ac_objext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676 (eval $ac_compile) 2>conftest.er1
16677 ac_status=$?
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
16683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685 (eval $ac_try) 2>&5
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; } &&
16689 { ac_try='test -s conftest.$ac_objext'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 ac_cv_type_long_long=yes
16696 else
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16699
16700 ac_cv_type_long_long=no
16701 fi
16702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16703 fi
16704 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16705 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16706
16707 echo "$as_me:$LINENO: checking size of long long" >&5
16708 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16709 if test "${ac_cv_sizeof_long_long+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712 if test "$ac_cv_type_long_long" = yes; then
16713 # The cast to unsigned long works around a bug in the HP C Compiler
16714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16716 # This bug is HP SR number 8606223364.
16717 if test "$cross_compiling" = yes; then
16718 # Depending upon the size, compute the lo and hi bounds.
16719 cat >conftest.$ac_ext <<_ACEOF
16720 /* confdefs.h. */
16721 _ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16725 $ac_includes_default
16726 int
16727 main ()
16728 {
16729 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16730 test_array [0] = 0
16731
16732 ;
16733 return 0;
16734 }
16735 _ACEOF
16736 rm -f conftest.$ac_objext
16737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16738 (eval $ac_compile) 2>conftest.er1
16739 ac_status=$?
16740 grep -v '^ *+' conftest.er1 >conftest.err
16741 rm -f conftest.er1
16742 cat conftest.err >&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } &&
16745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; } &&
16751 { ac_try='test -s conftest.$ac_objext'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16754 ac_status=$?
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 ac_lo=0 ac_mid=0
16758 while :; do
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h. */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 $ac_includes_default
16766 int
16767 main ()
16768 {
16769 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16770 test_array [0] = 0
16771
16772 ;
16773 return 0;
16774 }
16775 _ACEOF
16776 rm -f conftest.$ac_objext
16777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>conftest.er1
16779 ac_status=$?
16780 grep -v '^ *+' conftest.er1 >conftest.err
16781 rm -f conftest.er1
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; } &&
16791 { ac_try='test -s conftest.$ac_objext'
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; }; then
16797 ac_hi=$ac_mid; break
16798 else
16799 echo "$as_me: failed program was:" >&5
16800 sed 's/^/| /' conftest.$ac_ext >&5
16801
16802 ac_lo=`expr $ac_mid + 1`
16803 if test $ac_lo -le $ac_mid; then
16804 ac_lo= ac_hi=
16805 break
16806 fi
16807 ac_mid=`expr 2 '*' $ac_mid + 1`
16808 fi
16809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16810 done
16811 else
16812 echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815 cat >conftest.$ac_ext <<_ACEOF
16816 /* confdefs.h. */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 $ac_includes_default
16822 int
16823 main ()
16824 {
16825 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16826 test_array [0] = 0
16827
16828 ;
16829 return 0;
16830 }
16831 _ACEOF
16832 rm -f conftest.$ac_objext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16834 (eval $ac_compile) 2>conftest.er1
16835 ac_status=$?
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } &&
16847 { ac_try='test -s conftest.$ac_objext'
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 ac_hi=-1 ac_mid=-1
16854 while :; do
16855 cat >conftest.$ac_ext <<_ACEOF
16856 /* confdefs.h. */
16857 _ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16861 $ac_includes_default
16862 int
16863 main ()
16864 {
16865 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16866 test_array [0] = 0
16867
16868 ;
16869 return 0;
16870 }
16871 _ACEOF
16872 rm -f conftest.$ac_objext
16873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16874 (eval $ac_compile) 2>conftest.er1
16875 ac_status=$?
16876 grep -v '^ *+' conftest.er1 >conftest.err
16877 rm -f conftest.er1
16878 cat conftest.err >&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } &&
16881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; } &&
16887 { ac_try='test -s conftest.$ac_objext'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_lo=$ac_mid; break
16894 else
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16897
16898 ac_hi=`expr '(' $ac_mid ')' - 1`
16899 if test $ac_mid -le $ac_hi; then
16900 ac_lo= ac_hi=
16901 break
16902 fi
16903 ac_mid=`expr 2 '*' $ac_mid`
16904 fi
16905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16906 done
16907 else
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16910
16911 ac_lo= ac_hi=
16912 fi
16913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16914 fi
16915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16916 # Binary search between lo and hi bounds.
16917 while test "x$ac_lo" != "x$ac_hi"; do
16918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16919 cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h. */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 $ac_includes_default
16926 int
16927 main ()
16928 {
16929 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16930 test_array [0] = 0
16931
16932 ;
16933 return 0;
16934 }
16935 _ACEOF
16936 rm -f conftest.$ac_objext
16937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16938 (eval $ac_compile) 2>conftest.er1
16939 ac_status=$?
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; } &&
16951 { ac_try='test -s conftest.$ac_objext'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
16957 ac_hi=$ac_mid
16958 else
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16961
16962 ac_lo=`expr '(' $ac_mid ')' + 1`
16963 fi
16964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16965 done
16966 case $ac_lo in
16967 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16968 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16969 See \`config.log' for more details." >&5
16970 echo "$as_me: error: cannot compute sizeof (long long), 77
16971 See \`config.log' for more details." >&2;}
16972 { (exit 1); exit 1; }; } ;;
16973 esac
16974 else
16975 if test "$cross_compiling" = yes; then
16976 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16977 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16978 { (exit 1); exit 1; }; }
16979 else
16980 cat >conftest.$ac_ext <<_ACEOF
16981 /* confdefs.h. */
16982 _ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16986 $ac_includes_default
16987 long longval () { return (long) (sizeof (long long)); }
16988 unsigned long ulongval () { return (long) (sizeof (long long)); }
16989 #include <stdio.h>
16990 #include <stdlib.h>
16991 int
16992 main ()
16993 {
16994
16995 FILE *f = fopen ("conftest.val", "w");
16996 if (! f)
16997 exit (1);
16998 if (((long) (sizeof (long long))) < 0)
16999 {
17000 long i = longval ();
17001 if (i != ((long) (sizeof (long long))))
17002 exit (1);
17003 fprintf (f, "%ld\n", i);
17004 }
17005 else
17006 {
17007 unsigned long i = ulongval ();
17008 if (i != ((long) (sizeof (long long))))
17009 exit (1);
17010 fprintf (f, "%lu\n", i);
17011 }
17012 exit (ferror (f) || fclose (f) != 0);
17013
17014 ;
17015 return 0;
17016 }
17017 _ACEOF
17018 rm -f conftest$ac_exeext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17020 (eval $ac_link) 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 ac_cv_sizeof_long_long=`cat conftest.val`
17030 else
17031 echo "$as_me: program exited with status $ac_status" >&5
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035 ( exit $ac_status )
17036 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17037 See \`config.log' for more details." >&5
17038 echo "$as_me: error: cannot compute sizeof (long long), 77
17039 See \`config.log' for more details." >&2;}
17040 { (exit 1); exit 1; }; }
17041 fi
17042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17043 fi
17044 fi
17045 rm -f conftest.val
17046 else
17047 ac_cv_sizeof_long_long=0
17048 fi
17049 fi
17050 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17051 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17052 cat >>confdefs.h <<_ACEOF
17053 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17054 _ACEOF
17055
17056
17057 ;;
17058 *-hp-hpux* )
17059 echo "$as_me:$LINENO: checking for long long" >&5
17060 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17061 if test "${ac_cv_type_long_long+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064 cat >conftest.$ac_ext <<_ACEOF
17065 /* confdefs.h. */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17070 $ac_includes_default
17071 int
17072 main ()
17073 {
17074 if ((long long *) 0)
17075 return 0;
17076 if (sizeof (long long))
17077 return 0;
17078 ;
17079 return 0;
17080 }
17081 _ACEOF
17082 rm -f conftest.$ac_objext
17083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17084 (eval $ac_compile) 2>conftest.er1
17085 ac_status=$?
17086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; } &&
17097 { ac_try='test -s conftest.$ac_objext'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; }; then
17103 ac_cv_type_long_long=yes
17104 else
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17107
17108 ac_cv_type_long_long=no
17109 fi
17110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17111 fi
17112 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17113 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17114
17115 echo "$as_me:$LINENO: checking size of long long" >&5
17116 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17117 if test "${ac_cv_sizeof_long_long+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120 if test "$ac_cv_type_long_long" = yes; then
17121 # The cast to unsigned long works around a bug in the HP C Compiler
17122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17124 # This bug is HP SR number 8606223364.
17125 if test "$cross_compiling" = yes; then
17126 # Depending upon the size, compute the lo and hi bounds.
17127 cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h. */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17133 $ac_includes_default
17134 int
17135 main ()
17136 {
17137 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17138 test_array [0] = 0
17139
17140 ;
17141 return 0;
17142 }
17143 _ACEOF
17144 rm -f conftest.$ac_objext
17145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17146 (eval $ac_compile) 2>conftest.er1
17147 ac_status=$?
17148 grep -v '^ *+' conftest.er1 >conftest.err
17149 rm -f conftest.er1
17150 cat conftest.err >&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); } &&
17153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest.$ac_objext'
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17165 ac_lo=0 ac_mid=0
17166 while :; do
17167 cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h. */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173 $ac_includes_default
17174 int
17175 main ()
17176 {
17177 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17178 test_array [0] = 0
17179
17180 ;
17181 return 0;
17182 }
17183 _ACEOF
17184 rm -f conftest.$ac_objext
17185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17186 (eval $ac_compile) 2>conftest.er1
17187 ac_status=$?
17188 grep -v '^ *+' conftest.er1 >conftest.err
17189 rm -f conftest.er1
17190 cat conftest.err >&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } &&
17193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest.$ac_objext'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
17205 ac_hi=$ac_mid; break
17206 else
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17209
17210 ac_lo=`expr $ac_mid + 1`
17211 if test $ac_lo -le $ac_mid; then
17212 ac_lo= ac_hi=
17213 break
17214 fi
17215 ac_mid=`expr 2 '*' $ac_mid + 1`
17216 fi
17217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17218 done
17219 else
17220 echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17222
17223 cat >conftest.$ac_ext <<_ACEOF
17224 /* confdefs.h. */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17229 $ac_includes_default
17230 int
17231 main ()
17232 {
17233 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17234 test_array [0] = 0
17235
17236 ;
17237 return 0;
17238 }
17239 _ACEOF
17240 rm -f conftest.$ac_objext
17241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17242 (eval $ac_compile) 2>conftest.er1
17243 ac_status=$?
17244 grep -v '^ *+' conftest.er1 >conftest.err
17245 rm -f conftest.er1
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } &&
17249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; } &&
17255 { ac_try='test -s conftest.$ac_objext'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 ac_hi=-1 ac_mid=-1
17262 while :; do
17263 cat >conftest.$ac_ext <<_ACEOF
17264 /* confdefs.h. */
17265 _ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h. */
17269 $ac_includes_default
17270 int
17271 main ()
17272 {
17273 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17274 test_array [0] = 0
17275
17276 ;
17277 return 0;
17278 }
17279 _ACEOF
17280 rm -f conftest.$ac_objext
17281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17282 (eval $ac_compile) 2>conftest.er1
17283 ac_status=$?
17284 grep -v '^ *+' conftest.er1 >conftest.err
17285 rm -f conftest.er1
17286 cat conftest.err >&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
17289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest.$ac_objext'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_lo=$ac_mid; break
17302 else
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17305
17306 ac_hi=`expr '(' $ac_mid ')' - 1`
17307 if test $ac_mid -le $ac_hi; then
17308 ac_lo= ac_hi=
17309 break
17310 fi
17311 ac_mid=`expr 2 '*' $ac_mid`
17312 fi
17313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17314 done
17315 else
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17318
17319 ac_lo= ac_hi=
17320 fi
17321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17322 fi
17323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17324 # Binary search between lo and hi bounds.
17325 while test "x$ac_lo" != "x$ac_hi"; do
17326 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17327 cat >conftest.$ac_ext <<_ACEOF
17328 /* confdefs.h. */
17329 _ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333 $ac_includes_default
17334 int
17335 main ()
17336 {
17337 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17338 test_array [0] = 0
17339
17340 ;
17341 return 0;
17342 }
17343 _ACEOF
17344 rm -f conftest.$ac_objext
17345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17346 (eval $ac_compile) 2>conftest.er1
17347 ac_status=$?
17348 grep -v '^ *+' conftest.er1 >conftest.err
17349 rm -f conftest.er1
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
17353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17356 ac_status=$?
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; } &&
17359 { ac_try='test -s conftest.$ac_objext'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17362 ac_status=$?
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; }; then
17365 ac_hi=$ac_mid
17366 else
17367 echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17369
17370 ac_lo=`expr '(' $ac_mid ')' + 1`
17371 fi
17372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17373 done
17374 case $ac_lo in
17375 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17376 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17377 See \`config.log' for more details." >&5
17378 echo "$as_me: error: cannot compute sizeof (long long), 77
17379 See \`config.log' for more details." >&2;}
17380 { (exit 1); exit 1; }; } ;;
17381 esac
17382 else
17383 if test "$cross_compiling" = yes; then
17384 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17385 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17386 { (exit 1); exit 1; }; }
17387 else
17388 cat >conftest.$ac_ext <<_ACEOF
17389 /* confdefs.h. */
17390 _ACEOF
17391 cat confdefs.h >>conftest.$ac_ext
17392 cat >>conftest.$ac_ext <<_ACEOF
17393 /* end confdefs.h. */
17394 $ac_includes_default
17395 long longval () { return (long) (sizeof (long long)); }
17396 unsigned long ulongval () { return (long) (sizeof (long long)); }
17397 #include <stdio.h>
17398 #include <stdlib.h>
17399 int
17400 main ()
17401 {
17402
17403 FILE *f = fopen ("conftest.val", "w");
17404 if (! f)
17405 exit (1);
17406 if (((long) (sizeof (long long))) < 0)
17407 {
17408 long i = longval ();
17409 if (i != ((long) (sizeof (long long))))
17410 exit (1);
17411 fprintf (f, "%ld\n", i);
17412 }
17413 else
17414 {
17415 unsigned long i = ulongval ();
17416 if (i != ((long) (sizeof (long long))))
17417 exit (1);
17418 fprintf (f, "%lu\n", i);
17419 }
17420 exit (ferror (f) || fclose (f) != 0);
17421
17422 ;
17423 return 0;
17424 }
17425 _ACEOF
17426 rm -f conftest$ac_exeext
17427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17428 (eval $ac_link) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_sizeof_long_long=`cat conftest.val`
17438 else
17439 echo "$as_me: program exited with status $ac_status" >&5
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443 ( exit $ac_status )
17444 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17445 See \`config.log' for more details." >&5
17446 echo "$as_me: error: cannot compute sizeof (long long), 77
17447 See \`config.log' for more details." >&2;}
17448 { (exit 1); exit 1; }; }
17449 fi
17450 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17451 fi
17452 fi
17453 rm -f conftest.val
17454 else
17455 ac_cv_sizeof_long_long=0
17456 fi
17457 fi
17458 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17459 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17460 cat >>confdefs.h <<_ACEOF
17461 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17462 _ACEOF
17463
17464
17465 if test "$ac_cv_sizeof_long_long" != "0"; then
17466 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17467 fi
17468 ;;
17469 * )
17470 echo "$as_me:$LINENO: checking for long long" >&5
17471 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17472 if test "${ac_cv_type_long_long+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475 cat >conftest.$ac_ext <<_ACEOF
17476 /* confdefs.h. */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17481 $ac_includes_default
17482 int
17483 main ()
17484 {
17485 if ((long long *) 0)
17486 return 0;
17487 if (sizeof (long long))
17488 return 0;
17489 ;
17490 return 0;
17491 }
17492 _ACEOF
17493 rm -f conftest.$ac_objext
17494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17495 (eval $ac_compile) 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
17502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; } &&
17508 { ac_try='test -s conftest.$ac_objext'
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 ac_cv_type_long_long=yes
17515 else
17516 echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17518
17519 ac_cv_type_long_long=no
17520 fi
17521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17522 fi
17523 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17524 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17525
17526 echo "$as_me:$LINENO: checking size of long long" >&5
17527 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17528 if test "${ac_cv_sizeof_long_long+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17530 else
17531 if test "$ac_cv_type_long_long" = yes; then
17532 # The cast to unsigned long works around a bug in the HP C Compiler
17533 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17534 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17535 # This bug is HP SR number 8606223364.
17536 if test "$cross_compiling" = yes; then
17537 # Depending upon the size, compute the lo and hi bounds.
17538 cat >conftest.$ac_ext <<_ACEOF
17539 /* confdefs.h. */
17540 _ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17544 $ac_includes_default
17545 int
17546 main ()
17547 {
17548 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17549 test_array [0] = 0
17550
17551 ;
17552 return 0;
17553 }
17554 _ACEOF
17555 rm -f conftest.$ac_objext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17557 (eval $ac_compile) 2>conftest.er1
17558 ac_status=$?
17559 grep -v '^ *+' conftest.er1 >conftest.err
17560 rm -f conftest.er1
17561 cat conftest.err >&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } &&
17564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest.$ac_objext'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576 ac_lo=0 ac_mid=0
17577 while :; do
17578 cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h. */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17584 $ac_includes_default
17585 int
17586 main ()
17587 {
17588 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17589 test_array [0] = 0
17590
17591 ;
17592 return 0;
17593 }
17594 _ACEOF
17595 rm -f conftest.$ac_objext
17596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17597 (eval $ac_compile) 2>conftest.er1
17598 ac_status=$?
17599 grep -v '^ *+' conftest.er1 >conftest.err
17600 rm -f conftest.er1
17601 cat conftest.err >&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); } &&
17604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; } &&
17610 { ac_try='test -s conftest.$ac_objext'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 ac_hi=$ac_mid; break
17617 else
17618 echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621 ac_lo=`expr $ac_mid + 1`
17622 if test $ac_lo -le $ac_mid; then
17623 ac_lo= ac_hi=
17624 break
17625 fi
17626 ac_mid=`expr 2 '*' $ac_mid + 1`
17627 fi
17628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17629 done
17630 else
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17633
17634 cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h. */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 $ac_includes_default
17641 int
17642 main ()
17643 {
17644 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17645 test_array [0] = 0
17646
17647 ;
17648 return 0;
17649 }
17650 _ACEOF
17651 rm -f conftest.$ac_objext
17652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17653 (eval $ac_compile) 2>conftest.er1
17654 ac_status=$?
17655 grep -v '^ *+' conftest.er1 >conftest.err
17656 rm -f conftest.er1
17657 cat conftest.err >&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } &&
17660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest.$ac_objext'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 ac_hi=-1 ac_mid=-1
17673 while :; do
17674 cat >conftest.$ac_ext <<_ACEOF
17675 /* confdefs.h. */
17676 _ACEOF
17677 cat confdefs.h >>conftest.$ac_ext
17678 cat >>conftest.$ac_ext <<_ACEOF
17679 /* end confdefs.h. */
17680 $ac_includes_default
17681 int
17682 main ()
17683 {
17684 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17685 test_array [0] = 0
17686
17687 ;
17688 return 0;
17689 }
17690 _ACEOF
17691 rm -f conftest.$ac_objext
17692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17693 (eval $ac_compile) 2>conftest.er1
17694 ac_status=$?
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
17700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest.$ac_objext'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 ac_lo=$ac_mid; break
17713 else
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17716
17717 ac_hi=`expr '(' $ac_mid ')' - 1`
17718 if test $ac_mid -le $ac_hi; then
17719 ac_lo= ac_hi=
17720 break
17721 fi
17722 ac_mid=`expr 2 '*' $ac_mid`
17723 fi
17724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17725 done
17726 else
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730 ac_lo= ac_hi=
17731 fi
17732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17733 fi
17734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17735 # Binary search between lo and hi bounds.
17736 while test "x$ac_lo" != "x$ac_hi"; do
17737 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17738 cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h. */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17744 $ac_includes_default
17745 int
17746 main ()
17747 {
17748 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17749 test_array [0] = 0
17750
17751 ;
17752 return 0;
17753 }
17754 _ACEOF
17755 rm -f conftest.$ac_objext
17756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17757 (eval $ac_compile) 2>conftest.er1
17758 ac_status=$?
17759 grep -v '^ *+' conftest.er1 >conftest.err
17760 rm -f conftest.er1
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
17764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest.$ac_objext'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_hi=$ac_mid
17777 else
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17780
17781 ac_lo=`expr '(' $ac_mid ')' + 1`
17782 fi
17783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17784 done
17785 case $ac_lo in
17786 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17787 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17788 See \`config.log' for more details." >&5
17789 echo "$as_me: error: cannot compute sizeof (long long), 77
17790 See \`config.log' for more details." >&2;}
17791 { (exit 1); exit 1; }; } ;;
17792 esac
17793 else
17794 if test "$cross_compiling" = yes; then
17795 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17796 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17797 { (exit 1); exit 1; }; }
17798 else
17799 cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h. */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17805 $ac_includes_default
17806 long longval () { return (long) (sizeof (long long)); }
17807 unsigned long ulongval () { return (long) (sizeof (long long)); }
17808 #include <stdio.h>
17809 #include <stdlib.h>
17810 int
17811 main ()
17812 {
17813
17814 FILE *f = fopen ("conftest.val", "w");
17815 if (! f)
17816 exit (1);
17817 if (((long) (sizeof (long long))) < 0)
17818 {
17819 long i = longval ();
17820 if (i != ((long) (sizeof (long long))))
17821 exit (1);
17822 fprintf (f, "%ld\n", i);
17823 }
17824 else
17825 {
17826 unsigned long i = ulongval ();
17827 if (i != ((long) (sizeof (long long))))
17828 exit (1);
17829 fprintf (f, "%lu\n", i);
17830 }
17831 exit (ferror (f) || fclose (f) != 0);
17832
17833 ;
17834 return 0;
17835 }
17836 _ACEOF
17837 rm -f conftest$ac_exeext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17839 (eval $ac_link) 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_cv_sizeof_long_long=`cat conftest.val`
17849 else
17850 echo "$as_me: program exited with status $ac_status" >&5
17851 echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17853
17854 ( exit $ac_status )
17855 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17856 See \`config.log' for more details." >&5
17857 echo "$as_me: error: cannot compute sizeof (long long), 77
17858 See \`config.log' for more details." >&2;}
17859 { (exit 1); exit 1; }; }
17860 fi
17861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17862 fi
17863 fi
17864 rm -f conftest.val
17865 else
17866 ac_cv_sizeof_long_long=0
17867 fi
17868 fi
17869 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17870 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17871 cat >>confdefs.h <<_ACEOF
17872 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17873 _ACEOF
17874
17875
17876 esac
17877
17878 echo "$as_me:$LINENO: checking size of wchar_t" >&5
17879 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17880 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17882 else
17883
17884 if test "$cross_compiling" = yes; then
17885
17886 case "${host}" in
17887 *-pc-msdosdjgpp )
17888 wx_cv_sizeof_wchar_t=0
17889 ;;
17890 * )
17891 wx_cv_sizeof_wchar_t=4
17892 ;;
17893 esac
17894
17895
17896 else
17897 cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h. */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h. */
17903
17904 /* DJGPP only has fake wchar_t: */
17905 #ifdef __DJGPP__
17906 # error "fake wchar_t"
17907 #endif
17908 #ifdef HAVE_WCHAR_H
17909 # ifdef __CYGWIN__
17910 # include <stddef.h>
17911 # endif
17912 # include <wchar.h>
17913 #endif
17914 #ifdef HAVE_STDLIB_H
17915 # include <stdlib.h>
17916 #endif
17917 #include <stdio.h>
17918 int main()
17919 {
17920 FILE *f=fopen("conftestval", "w");
17921 if (!f) exit(1);
17922 fprintf(f, "%i", sizeof(wchar_t));
17923 exit(0);
17924 }
17925
17926 _ACEOF
17927 rm -f conftest$ac_exeext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17929 (eval $ac_link) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; }; then
17938 wx_cv_sizeof_wchar_t=`cat conftestval`
17939 else
17940 echo "$as_me: program exited with status $ac_status" >&5
17941 echo "$as_me: failed program was:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17943
17944 ( exit $ac_status )
17945 wx_cv_sizeof_wchar_t=0
17946 fi
17947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17948 fi
17949
17950 fi
17951 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17952 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
17953
17954 cat >>confdefs.h <<_ACEOF
17955 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
17956 _ACEOF
17957
17958
17959 # Check whether --enable-largefile or --disable-largefile was given.
17960 if test "${enable_largefile+set}" = set; then
17961 enableval="$enable_largefile"
17962
17963 fi;
17964 if test "$enable_largefile" != no; then
17965 wx_largefile=no
17966
17967 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17968 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17969 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 else
17972
17973 cat >conftest.$ac_ext <<_ACEOF
17974 /* confdefs.h. */
17975 _ACEOF
17976 cat confdefs.h >>conftest.$ac_ext
17977 cat >>conftest.$ac_ext <<_ACEOF
17978 /* end confdefs.h. */
17979 #define _FILE_OFFSET_BITS 64
17980 #include <sys/types.h>
17981 int
17982 main ()
17983 {
17984 typedef struct {
17985 unsigned int field: sizeof(off_t) == 8;
17986 } wxlf;
17987
17988 ;
17989 return 0;
17990 }
17991 _ACEOF
17992 rm -f conftest.$ac_objext
17993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17994 (eval $ac_compile) 2>conftest.er1
17995 ac_status=$?
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
18007 { ac_try='test -s conftest.$ac_objext'
18008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009 (eval $ac_try) 2>&5
18010 ac_status=$?
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
18013 ac_cv_sys_file_offset_bits=64
18014 else
18015 echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18017
18018 ac_cv_sys_file_offset_bits=no
18019 fi
18020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18021
18022
18023 fi
18024 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18025 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18026
18027 if test "$ac_cv_sys_file_offset_bits" != no; then
18028 wx_largefile=yes
18029 cat >>confdefs.h <<_ACEOF
18030 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18031 _ACEOF
18032
18033 fi
18034
18035 if test "x$wx_largefile" != "xyes"; then
18036
18037 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18038 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18039 if test "${ac_cv_sys_large_files+set}" = set; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 else
18042
18043 cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h. */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18049 #define _LARGE_FILES 1
18050 #include <sys/types.h>
18051 int
18052 main ()
18053 {
18054 typedef struct {
18055 unsigned int field: sizeof(off_t) == 8;
18056 } wxlf;
18057
18058 ;
18059 return 0;
18060 }
18061 _ACEOF
18062 rm -f conftest.$ac_objext
18063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18064 (eval $ac_compile) 2>conftest.er1
18065 ac_status=$?
18066 grep -v '^ *+' conftest.er1 >conftest.err
18067 rm -f conftest.er1
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
18071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; } &&
18077 { ac_try='test -s conftest.$ac_objext'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; }; then
18083 ac_cv_sys_large_files=1
18084 else
18085 echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18087
18088 ac_cv_sys_large_files=no
18089 fi
18090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18091
18092
18093 fi
18094 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18095 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18096
18097 if test "$ac_cv_sys_large_files" != no; then
18098 wx_largefile=yes
18099 cat >>confdefs.h <<_ACEOF
18100 #define _LARGE_FILES $ac_cv_sys_large_files
18101 _ACEOF
18102
18103 fi
18104
18105 fi
18106
18107 echo "$as_me:$LINENO: checking if large file support is available" >&5
18108 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18109 if test "x$wx_largefile" = "xyes"; then
18110 cat >>confdefs.h <<\_ACEOF
18111 #define HAVE_LARGEFILE_SUPPORT 1
18112 _ACEOF
18113
18114 fi
18115 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18116 echo "${ECHO_T}$wx_largefile" >&6
18117 fi
18118
18119
18120 if test "x$wx_largefile" = "xyes"; then
18121 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18122 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18123 else
18124 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18125 fi
18126 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18127 fi
18128
18129 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18130 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18131 if test "${ac_cv_c_bigendian+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18133 else
18134 ac_cv_c_bigendian=unknown
18135 # See if sys/param.h defines the BYTE_ORDER macro.
18136 cat >conftest.$ac_ext <<_ACEOF
18137 /* confdefs.h. */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18142 #include <sys/types.h>
18143 #include <sys/param.h>
18144 int
18145 main ()
18146 {
18147
18148 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18149 bogus endian macros
18150 #endif
18151 ;
18152 return 0;
18153 }
18154 _ACEOF
18155 rm -f conftest.$ac_objext
18156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18157 (eval $ac_compile) 2>conftest.er1
18158 ac_status=$?
18159 grep -v '^ *+' conftest.er1 >conftest.err
18160 rm -f conftest.er1
18161 cat conftest.err >&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
18164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try='test -s conftest.$ac_objext'
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; }; then
18176 # It does; now see whether it defined to BIG_ENDIAN or not.
18177 cat >conftest.$ac_ext <<_ACEOF
18178 /* confdefs.h. */
18179 _ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h. */
18183 #include <sys/types.h>
18184 #include <sys/param.h>
18185 int
18186 main ()
18187 {
18188
18189 #if BYTE_ORDER != BIG_ENDIAN
18190 not big endian
18191 #endif
18192 ;
18193 return 0;
18194 }
18195 _ACEOF
18196 rm -f conftest.$ac_objext
18197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18198 (eval $ac_compile) 2>conftest.er1
18199 ac_status=$?
18200 grep -v '^ *+' conftest.er1 >conftest.err
18201 rm -f conftest.er1
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } &&
18205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest.$ac_objext'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; }; then
18217 ac_cv_c_bigendian=yes
18218 else
18219 echo "$as_me: failed program was:" >&5
18220 sed 's/^/| /' conftest.$ac_ext >&5
18221
18222 ac_cv_c_bigendian=no
18223 fi
18224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18225 else
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229 fi
18230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18231 if test $ac_cv_c_bigendian = unknown; then
18232 if test "$cross_compiling" = yes; then
18233 ac_cv_c_bigendian=unknown
18234 else
18235 cat >conftest.$ac_ext <<_ACEOF
18236 /* confdefs.h. */
18237 _ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h. */
18241 main () {
18242 /* Are we little or big endian? From Harbison&Steele. */
18243 union
18244 {
18245 long l;
18246 char c[sizeof (long)];
18247 } u;
18248 u.l = 1;
18249 exit (u.c[sizeof (long) - 1] == 1);
18250 }
18251 _ACEOF
18252 rm -f conftest$ac_exeext
18253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18254 (eval $ac_link) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259 (eval $ac_try) 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; }; then
18263 ac_cv_c_bigendian=no
18264 else
18265 echo "$as_me: program exited with status $ac_status" >&5
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18268
18269 ( exit $ac_status )
18270 ac_cv_c_bigendian=yes
18271 fi
18272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18273 fi
18274 fi
18275 fi
18276 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18277 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18278 if test $ac_cv_c_bigendian = unknown; then
18279 { 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
18280 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;}
18281 fi
18282 if test $ac_cv_c_bigendian = yes; then
18283 cat >>confdefs.h <<\_ACEOF
18284 #define WORDS_BIGENDIAN 1
18285 _ACEOF
18286
18287 fi
18288
18289
18290 ac_ext=cc
18291 ac_cpp='$CXXCPP $CPPFLAGS'
18292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18295 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18296 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18297 if test -z "$CXXCPP"; then
18298 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301 # Double quotes because CXXCPP needs to be expanded
18302 for CXXCPP in "$CXX -E" "/lib/cpp"
18303 do
18304 ac_preproc_ok=false
18305 for ac_cxx_preproc_warn_flag in '' yes
18306 do
18307 # Use a header file that comes with gcc, so configuring glibc
18308 # with a fresh cross-compiler works.
18309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18310 # <limits.h> exists even on freestanding compilers.
18311 # On the NeXT, cc -E runs the code through the compiler's parser,
18312 # not just through cpp. "Syntax error" is here to catch this case.
18313 cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h. */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18319 #ifdef __STDC__
18320 # include <limits.h>
18321 #else
18322 # include <assert.h>
18323 #endif
18324 Syntax error
18325 _ACEOF
18326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18327 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
18334 if test -s conftest.err; then
18335 ac_cpp_err=$ac_cxx_preproc_warn_flag
18336 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18337 else
18338 ac_cpp_err=
18339 fi
18340 else
18341 ac_cpp_err=yes
18342 fi
18343 if test -z "$ac_cpp_err"; then
18344 :
18345 else
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18348
18349 # Broken: fails on valid input.
18350 continue
18351 fi
18352 rm -f conftest.err conftest.$ac_ext
18353
18354 # OK, works on sane cases. Now check whether non-existent headers
18355 # can be detected and how.
18356 cat >conftest.$ac_ext <<_ACEOF
18357 /* confdefs.h. */
18358 _ACEOF
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h. */
18362 #include <ac_nonexistent.h>
18363 _ACEOF
18364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18366 ac_status=$?
18367 grep -v '^ *+' conftest.er1 >conftest.err
18368 rm -f conftest.er1
18369 cat conftest.err >&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); } >/dev/null; then
18372 if test -s conftest.err; then
18373 ac_cpp_err=$ac_cxx_preproc_warn_flag
18374 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18375 else
18376 ac_cpp_err=
18377 fi
18378 else
18379 ac_cpp_err=yes
18380 fi
18381 if test -z "$ac_cpp_err"; then
18382 # Broken: success on invalid input.
18383 continue
18384 else
18385 echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18387
18388 # Passes both tests.
18389 ac_preproc_ok=:
18390 break
18391 fi
18392 rm -f conftest.err conftest.$ac_ext
18393
18394 done
18395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18396 rm -f conftest.err conftest.$ac_ext
18397 if $ac_preproc_ok; then
18398 break
18399 fi
18400
18401 done
18402 ac_cv_prog_CXXCPP=$CXXCPP
18403
18404 fi
18405 CXXCPP=$ac_cv_prog_CXXCPP
18406 else
18407 ac_cv_prog_CXXCPP=$CXXCPP
18408 fi
18409 echo "$as_me:$LINENO: result: $CXXCPP" >&5
18410 echo "${ECHO_T}$CXXCPP" >&6
18411 ac_preproc_ok=false
18412 for ac_cxx_preproc_warn_flag in '' yes
18413 do
18414 # Use a header file that comes with gcc, so configuring glibc
18415 # with a fresh cross-compiler works.
18416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18417 # <limits.h> exists even on freestanding compilers.
18418 # On the NeXT, cc -E runs the code through the compiler's parser,
18419 # not just through cpp. "Syntax error" is here to catch this case.
18420 cat >conftest.$ac_ext <<_ACEOF
18421 /* confdefs.h. */
18422 _ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18426 #ifdef __STDC__
18427 # include <limits.h>
18428 #else
18429 # include <assert.h>
18430 #endif
18431 Syntax error
18432 _ACEOF
18433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18435 ac_status=$?
18436 grep -v '^ *+' conftest.er1 >conftest.err
18437 rm -f conftest.er1
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } >/dev/null; then
18441 if test -s conftest.err; then
18442 ac_cpp_err=$ac_cxx_preproc_warn_flag
18443 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18444 else
18445 ac_cpp_err=
18446 fi
18447 else
18448 ac_cpp_err=yes
18449 fi
18450 if test -z "$ac_cpp_err"; then
18451 :
18452 else
18453 echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18455
18456 # Broken: fails on valid input.
18457 continue
18458 fi
18459 rm -f conftest.err conftest.$ac_ext
18460
18461 # OK, works on sane cases. Now check whether non-existent headers
18462 # can be detected and how.
18463 cat >conftest.$ac_ext <<_ACEOF
18464 /* confdefs.h. */
18465 _ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 #include <ac_nonexistent.h>
18470 _ACEOF
18471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } >/dev/null; then
18479 if test -s conftest.err; then
18480 ac_cpp_err=$ac_cxx_preproc_warn_flag
18481 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18482 else
18483 ac_cpp_err=
18484 fi
18485 else
18486 ac_cpp_err=yes
18487 fi
18488 if test -z "$ac_cpp_err"; then
18489 # Broken: success on invalid input.
18490 continue
18491 else
18492 echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18494
18495 # Passes both tests.
18496 ac_preproc_ok=:
18497 break
18498 fi
18499 rm -f conftest.err conftest.$ac_ext
18500
18501 done
18502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18503 rm -f conftest.err conftest.$ac_ext
18504 if $ac_preproc_ok; then
18505 :
18506 else
18507 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18508 See \`config.log' for more details." >&5
18509 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18510 See \`config.log' for more details." >&2;}
18511 { (exit 1); exit 1; }; }
18512 fi
18513
18514 ac_ext=cc
18515 ac_cpp='$CXXCPP $CPPFLAGS'
18516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18519
18520
18521
18522 if test "$cross_compiling" = "yes"; then
18523 cat >>confdefs.h <<\_ACEOF
18524 #define wxUSE_IOSTREAMH 1
18525 _ACEOF
18526
18527 else
18528
18529
18530 ac_ext=cc
18531 ac_cpp='$CXXCPP $CPPFLAGS'
18532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18535
18536
18537
18538 for ac_header in iostream
18539 do
18540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18542 echo "$as_me:$LINENO: checking for $ac_header" >&5
18543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18546 fi
18547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18549 else
18550 # Is the header compilable?
18551 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18553 cat >conftest.$ac_ext <<_ACEOF
18554 /* confdefs.h. */
18555 _ACEOF
18556 cat confdefs.h >>conftest.$ac_ext
18557 cat >>conftest.$ac_ext <<_ACEOF
18558 /* end confdefs.h. */
18559 $ac_includes_default
18560 #include <$ac_header>
18561 _ACEOF
18562 rm -f conftest.$ac_objext
18563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18564 (eval $ac_compile) 2>conftest.er1
18565 ac_status=$?
18566 grep -v '^ *+' conftest.er1 >conftest.err
18567 rm -f conftest.er1
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } &&
18571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest.$ac_objext'
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_header_compiler=yes
18584 else
18585 echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18587
18588 ac_header_compiler=no
18589 fi
18590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18592 echo "${ECHO_T}$ac_header_compiler" >&6
18593
18594 # Is the header present?
18595 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18597 cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h. */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18603 #include <$ac_header>
18604 _ACEOF
18605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18607 ac_status=$?
18608 grep -v '^ *+' conftest.er1 >conftest.err
18609 rm -f conftest.er1
18610 cat conftest.err >&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } >/dev/null; then
18613 if test -s conftest.err; then
18614 ac_cpp_err=$ac_cxx_preproc_warn_flag
18615 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18616 else
18617 ac_cpp_err=
18618 fi
18619 else
18620 ac_cpp_err=yes
18621 fi
18622 if test -z "$ac_cpp_err"; then
18623 ac_header_preproc=yes
18624 else
18625 echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18627
18628 ac_header_preproc=no
18629 fi
18630 rm -f conftest.err conftest.$ac_ext
18631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18632 echo "${ECHO_T}$ac_header_preproc" >&6
18633
18634 # So? What about this header?
18635 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18636 yes:no: )
18637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18641 ac_header_preproc=yes
18642 ;;
18643 no:yes:* )
18644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18656 (
18657 cat <<\_ASBOX
18658 ## ----------------------------------------- ##
18659 ## Report this to wx-dev@lists.wxwindows.org ##
18660 ## ----------------------------------------- ##
18661 _ASBOX
18662 ) |
18663 sed "s/^/$as_me: WARNING: /" >&2
18664 ;;
18665 esac
18666 echo "$as_me:$LINENO: checking for $ac_header" >&5
18667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18670 else
18671 eval "$as_ac_Header=\$ac_header_preproc"
18672 fi
18673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18675
18676 fi
18677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18678 cat >>confdefs.h <<_ACEOF
18679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18680 _ACEOF
18681
18682 fi
18683
18684 done
18685
18686
18687 if test "$ac_cv_header_iostream" = "yes" ; then
18688 :
18689 else
18690 cat >>confdefs.h <<\_ACEOF
18691 #define wxUSE_IOSTREAMH 1
18692 _ACEOF
18693
18694 fi
18695
18696 ac_ext=c
18697 ac_cpp='$CPP $CPPFLAGS'
18698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18701
18702 fi
18703
18704
18705
18706 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18707 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18708 if test "${wx_cv_cpp_bool+set}" = set; then
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18710 else
18711
18712
18713
18714 ac_ext=cc
18715 ac_cpp='$CXXCPP $CPPFLAGS'
18716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18719
18720
18721 cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h. */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727
18728
18729 int
18730 main ()
18731 {
18732
18733 bool b = true;
18734
18735 return 0;
18736
18737 ;
18738 return 0;
18739 }
18740 _ACEOF
18741 rm -f conftest.$ac_objext
18742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18743 (eval $ac_compile) 2>conftest.er1
18744 ac_status=$?
18745 grep -v '^ *+' conftest.er1 >conftest.err
18746 rm -f conftest.er1
18747 cat conftest.err >&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
18750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18753 ac_status=$?
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } &&
18756 { ac_try='test -s conftest.$ac_objext'
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; }; then
18762
18763 wx_cv_cpp_bool=yes
18764
18765 else
18766 echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18768
18769
18770 wx_cv_cpp_bool=no
18771
18772
18773 fi
18774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18775
18776 ac_ext=c
18777 ac_cpp='$CPP $CPPFLAGS'
18778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18781
18782
18783 fi
18784 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18785 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18786
18787 if test "$wx_cv_cpp_bool" = "yes"; then
18788 cat >>confdefs.h <<\_ACEOF
18789 #define HAVE_BOOL 1
18790 _ACEOF
18791
18792 fi
18793
18794
18795
18796 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18797 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18798 if test "${wx_cv_explicit+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 else
18801
18802
18803
18804 ac_ext=cc
18805 ac_cpp='$CXXCPP $CPPFLAGS'
18806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18809
18810
18811 cat >conftest.$ac_ext <<_ACEOF
18812 /* confdefs.h. */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18817
18818 class Foo { public: explicit Foo(int) {} };
18819
18820 int
18821 main ()
18822 {
18823
18824 return 0;
18825
18826 ;
18827 return 0;
18828 }
18829 _ACEOF
18830 rm -f conftest.$ac_objext
18831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18832 (eval $ac_compile) 2>conftest.er1
18833 ac_status=$?
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } &&
18839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest.$ac_objext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851
18852 cat >conftest.$ac_ext <<_ACEOF
18853 /* confdefs.h. */
18854 _ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18858
18859 class Foo { public: explicit Foo(int) {} };
18860 static void TakeFoo(const Foo& foo) { }
18861
18862 int
18863 main ()
18864 {
18865
18866 TakeFoo(17);
18867 return 0;
18868
18869 ;
18870 return 0;
18871 }
18872 _ACEOF
18873 rm -f conftest.$ac_objext
18874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18875 (eval $ac_compile) 2>conftest.er1
18876 ac_status=$?
18877 grep -v '^ *+' conftest.er1 >conftest.err
18878 rm -f conftest.er1
18879 cat conftest.err >&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
18882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
18888 { ac_try='test -s conftest.$ac_objext'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 wx_cv_explicit=no
18895 else
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899 wx_cv_explicit=yes
18900
18901 fi
18902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18903
18904 else
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18907
18908 wx_cv_explicit=no
18909
18910 fi
18911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18912
18913 ac_ext=c
18914 ac_cpp='$CPP $CPPFLAGS'
18915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18918
18919
18920 fi
18921 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18922 echo "${ECHO_T}$wx_cv_explicit" >&6
18923
18924 if test "$wx_cv_explicit" = "yes"; then
18925 cat >>confdefs.h <<\_ACEOF
18926 #define HAVE_EXPLICIT 1
18927 _ACEOF
18928
18929 fi
18930
18931
18932 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18933 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18934 if test "${ac_cv_cxx_const_cast+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937
18938
18939 ac_ext=cc
18940 ac_cpp='$CXXCPP $CPPFLAGS'
18941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18944
18945 cat >conftest.$ac_ext <<_ACEOF
18946 /* confdefs.h. */
18947 _ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18951
18952 int
18953 main ()
18954 {
18955 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
18956 ;
18957 return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18962 (eval $ac_compile) 2>conftest.er1
18963 ac_status=$?
18964 grep -v '^ *+' conftest.er1 >conftest.err
18965 rm -f conftest.er1
18966 cat conftest.err >&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } &&
18969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18972 ac_status=$?
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; } &&
18975 { ac_try='test -s conftest.$ac_objext'
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18978 ac_status=$?
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; }; then
18981 ac_cv_cxx_const_cast=yes
18982 else
18983 echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.$ac_ext >&5
18985
18986 ac_cv_cxx_const_cast=no
18987 fi
18988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18989 ac_ext=c
18990 ac_cpp='$CPP $CPPFLAGS'
18991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18994
18995
18996 fi
18997 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18998 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
18999 if test "$ac_cv_cxx_const_cast" = yes; then
19000
19001 cat >>confdefs.h <<\_ACEOF
19002 #define HAVE_CONST_CAST
19003 _ACEOF
19004
19005 fi
19006
19007 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19008 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19009 if test "${ac_cv_cxx_static_cast+set}" = set; then
19010 echo $ECHO_N "(cached) $ECHO_C" >&6
19011 else
19012
19013
19014 ac_ext=cc
19015 ac_cpp='$CXXCPP $CPPFLAGS'
19016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19019
19020 cat >conftest.$ac_ext <<_ACEOF
19021 /* confdefs.h. */
19022 _ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19026 #include <typeinfo>
19027 class Base { public : Base () {} virtual void f () = 0; };
19028 class Derived : public Base { public : Derived () {} virtual void f () {} };
19029 int g (Derived&) { return 0; }
19030 int
19031 main ()
19032 {
19033
19034 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19035 ;
19036 return 0;
19037 }
19038 _ACEOF
19039 rm -f conftest.$ac_objext
19040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19041 (eval $ac_compile) 2>conftest.er1
19042 ac_status=$?
19043 grep -v '^ *+' conftest.er1 >conftest.err
19044 rm -f conftest.er1
19045 cat conftest.err >&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } &&
19048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; } &&
19054 { ac_try='test -s conftest.$ac_objext'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 ac_cv_cxx_static_cast=yes
19061 else
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19064
19065 ac_cv_cxx_static_cast=no
19066 fi
19067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19068 ac_ext=c
19069 ac_cpp='$CPP $CPPFLAGS'
19070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19073
19074
19075 fi
19076 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19077 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19078 if test "$ac_cv_cxx_static_cast" = yes; then
19079
19080 cat >>confdefs.h <<\_ACEOF
19081 #define HAVE_STATIC_CAST
19082 _ACEOF
19083
19084 fi
19085
19086
19087 if test "$wxUSE_STL" = "yes"; then
19088 ac_ext=cc
19089 ac_cpp='$CXXCPP $CPPFLAGS'
19090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19093
19094
19095 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19096 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19097 cat >conftest.$ac_ext <<_ACEOF
19098 /* confdefs.h. */
19099 _ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h. */
19103 #include <string>
19104 #include <functional>
19105 #include <algorithm>
19106 #include <vector>
19107 #include <list>
19108 int
19109 main ()
19110 {
19111 std::vector<int> moo;
19112 std::list<int> foo;
19113 std::vector<int>::iterator it =
19114 std::find_if(moo.begin(), moo.end(),
19115 std::bind2nd(std::less<int>(), 3));
19116 ;
19117 return 0;
19118 }
19119 _ACEOF
19120 rm -f conftest.$ac_objext
19121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19122 (eval $ac_compile) 2>conftest.er1
19123 ac_status=$?
19124 grep -v '^ *+' conftest.er1 >conftest.err
19125 rm -f conftest.er1
19126 cat conftest.err >&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); } &&
19129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try='test -s conftest.$ac_objext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 echo "$as_me:$LINENO: result: yes" >&5
19142 echo "${ECHO_T}yes" >&6
19143 else
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19146
19147 echo "$as_me:$LINENO: result: no" >&5
19148 echo "${ECHO_T}no" >&6
19149 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19150 echo "$as_me: error: Basic STL functionality missing" >&2;}
19151 { (exit 1); exit 1; }; }
19152 fi
19153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19154
19155 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19156 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19157 cat >conftest.$ac_ext <<_ACEOF
19158 /* confdefs.h. */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h. */
19163 #include <string>
19164 int
19165 main ()
19166 {
19167 std::wstring foo;
19168 ;
19169 return 0;
19170 }
19171 _ACEOF
19172 rm -f conftest.$ac_objext
19173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19174 (eval $ac_compile) 2>conftest.er1
19175 ac_status=$?
19176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
19181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest.$ac_objext'
19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; }; then
19193 echo "$as_me:$LINENO: result: yes" >&5
19194 echo "${ECHO_T}yes" >&6
19195 cat >>confdefs.h <<\_ACEOF
19196 #define HAVE_STD_WSTRING 1
19197 _ACEOF
19198
19199 else
19200 echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19202
19203 echo "$as_me:$LINENO: result: no" >&5
19204 echo "${ECHO_T}no" >&6
19205 fi
19206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19207
19208 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19209 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19210 cat >conftest.$ac_ext <<_ACEOF
19211 /* confdefs.h. */
19212 _ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h. */
19216 #include <string>
19217 int
19218 main ()
19219 {
19220 std::string foo, bar;
19221 foo.compare(bar);
19222 foo.compare(1, 1, bar);
19223 foo.compare(1, 1, bar, 1, 1);
19224 foo.compare("");
19225 foo.compare(1, 1, "");
19226 foo.compare(1, 1, "", 2);
19227 ;
19228 return 0;
19229 }
19230 _ACEOF
19231 rm -f conftest.$ac_objext
19232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19233 (eval $ac_compile) 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
19240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; } &&
19246 { ac_try='test -s conftest.$ac_objext'
19247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19249 ac_status=$?
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); }; }; then
19252 echo "$as_me:$LINENO: result: yes" >&5
19253 echo "${ECHO_T}yes" >&6
19254 cat >>confdefs.h <<\_ACEOF
19255 #define HAVE_STD_STRING_COMPARE 1
19256 _ACEOF
19257
19258 else
19259 echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19261
19262 echo "$as_me:$LINENO: result: no" >&5
19263 echo "${ECHO_T}no" >&6
19264 fi
19265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19266
19267 ac_ext=c
19268 ac_cpp='$CPP $CPPFLAGS'
19269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19272
19273 fi
19274
19275
19276 SEARCH_INCLUDE="\
19277 /usr/local/include \
19278 \
19279 /usr/Motif-2.1/include \
19280 /usr/Motif-1.2/include \
19281 /usr/include/Motif1.2 \
19282 /opt/xpm/include/X11 \
19283 /opt/GBxpm/include/ \
19284 /opt/GBxpm/X11/include/ \
19285 \
19286 /usr/dt/include \
19287 /usr/openwin/include \
19288 \
19289 /usr/include/Xm \
19290 \
19291 /usr/X11R6/include \
19292 /usr/X11R6.4/include \
19293 /usr/X11R5/include \
19294 /usr/X11R4/include \
19295 \
19296 /usr/include/X11R6 \
19297 /usr/include/X11R5 \
19298 /usr/include/X11R4 \
19299 \
19300 /usr/local/X11R6/include \
19301 /usr/local/X11R5/include \
19302 /usr/local/X11R4/include \
19303 \
19304 /usr/local/include/X11R6 \
19305 /usr/local/include/X11R5 \
19306 /usr/local/include/X11R4 \
19307 \
19308 /usr/X11/include \
19309 /usr/include/X11 \
19310 /usr/local/X11/include \
19311 /usr/local/include/X11 \
19312 \
19313 /usr/X386/include \
19314 /usr/x386/include \
19315 /usr/XFree86/include/X11 \
19316 \
19317 X:/XFree86/include \
19318 X:/XFree86/include/X11 \
19319 \
19320 /usr/include/gtk \
19321 /usr/local/include/gtk \
19322 /usr/include/glib \
19323 /usr/local/include/glib \
19324 \
19325 /usr/include/qt \
19326 /usr/local/include/qt \
19327 \
19328 /usr/local/arm/3.3.2/include \
19329 \
19330 /usr/include/windows \
19331 /usr/include/wine \
19332 /usr/local/include/wine \
19333 \
19334 /usr/unsupported/include \
19335 /usr/athena/include \
19336 /usr/local/x11r5/include \
19337 /usr/lpp/Xamples/include \
19338 \
19339 /usr/openwin/share/include"
19340
19341 SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19342
19343
19344 cat >confcache <<\_ACEOF
19345 # This file is a shell script that caches the results of configure
19346 # tests run on this system so they can be shared between configure
19347 # scripts and configure runs, see configure's option --config-cache.
19348 # It is not useful on other systems. If it contains results you don't
19349 # want to keep, you may remove or edit it.
19350 #
19351 # config.status only pays attention to the cache file if you give it
19352 # the --recheck option to rerun configure.
19353 #
19354 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19355 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19356 # following values.
19357
19358 _ACEOF
19359
19360 # The following way of writing the cache mishandles newlines in values,
19361 # but we know of no workaround that is simple, portable, and efficient.
19362 # So, don't put newlines in cache variables' values.
19363 # Ultrix sh set writes to stderr and can't be redirected directly,
19364 # and sets the high bit in the cache file unless we assign to the vars.
19365 {
19366 (set) 2>&1 |
19367 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19368 *ac_space=\ *)
19369 # `set' does not quote correctly, so add quotes (double-quote
19370 # substitution turns \\\\ into \\, and sed turns \\ into \).
19371 sed -n \
19372 "s/'/'\\\\''/g;
19373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19374 ;;
19375 *)
19376 # `set' quotes correctly as required by POSIX, so do not add quotes.
19377 sed -n \
19378 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19379 ;;
19380 esac;
19381 } |
19382 sed '
19383 t clear
19384 : clear
19385 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19386 t end
19387 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19388 : end' >>confcache
19389 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19390 if test -w $cache_file; then
19391 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19392 cat confcache >$cache_file
19393 else
19394 echo "not updating unwritable cache $cache_file"
19395 fi
19396 fi
19397 rm -f confcache
19398
19399 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19400 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19401 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19402 if test "${wx_cv_lib_glibc21+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405
19406 cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h. */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 #include <features.h>
19413 int
19414 main ()
19415 {
19416
19417 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19418 #error not glibc2.1
19419 #endif
19420
19421 ;
19422 return 0;
19423 }
19424 _ACEOF
19425 rm -f conftest.$ac_objext
19426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19427 (eval $ac_compile) 2>conftest.er1
19428 ac_status=$?
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } &&
19434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; } &&
19440 { ac_try='test -s conftest.$ac_objext'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446
19447 wx_cv_lib_glibc21=yes
19448
19449 else
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19452
19453
19454 wx_cv_lib_glibc21=no
19455
19456
19457 fi
19458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19459
19460 fi
19461 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19462 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
19463 if test "$wx_cv_lib_glibc21" = "yes"; then
19464 cat >>confdefs.h <<\_ACEOF
19465 #define wxHAVE_GLIBC2 1
19466 _ACEOF
19467
19468 fi
19469 fi
19470
19471 if test "x$wx_cv_lib_glibc21" = "xyes"; then
19472 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
19473 cat >>confdefs.h <<\_ACEOF
19474 #define _GNU_SOURCE 1
19475 _ACEOF
19476
19477 fi
19478 fi
19479
19480
19481
19482 if test "$wxUSE_REGEX" != "no"; then
19483 cat >>confdefs.h <<\_ACEOF
19484 #define wxUSE_REGEX 1
19485 _ACEOF
19486
19487
19488 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
19489 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19490 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
19491 wxUSE_REGEX=builtin
19492 fi
19493
19494 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
19495 if test "${ac_cv_header_regex_h+set}" = set; then
19496 echo "$as_me:$LINENO: checking for regex.h" >&5
19497 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19498 if test "${ac_cv_header_regex_h+set}" = set; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 fi
19501 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19502 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19503 else
19504 # Is the header compilable?
19505 echo "$as_me:$LINENO: checking regex.h usability" >&5
19506 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19507 cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h. */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h. */
19513 $ac_includes_default
19514 #include <regex.h>
19515 _ACEOF
19516 rm -f conftest.$ac_objext
19517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19518 (eval $ac_compile) 2>conftest.er1
19519 ac_status=$?
19520 grep -v '^ *+' conftest.er1 >conftest.err
19521 rm -f conftest.er1
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
19525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; } &&
19531 { ac_try='test -s conftest.$ac_objext'
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; }; then
19537 ac_header_compiler=yes
19538 else
19539 echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19541
19542 ac_header_compiler=no
19543 fi
19544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19546 echo "${ECHO_T}$ac_header_compiler" >&6
19547
19548 # Is the header present?
19549 echo "$as_me:$LINENO: checking regex.h presence" >&5
19550 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19551 cat >conftest.$ac_ext <<_ACEOF
19552 /* confdefs.h. */
19553 _ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19557 #include <regex.h>
19558 _ACEOF
19559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } >/dev/null; then
19567 if test -s conftest.err; then
19568 ac_cpp_err=$ac_c_preproc_warn_flag
19569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19570 else
19571 ac_cpp_err=
19572 fi
19573 else
19574 ac_cpp_err=yes
19575 fi
19576 if test -z "$ac_cpp_err"; then
19577 ac_header_preproc=yes
19578 else
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582 ac_header_preproc=no
19583 fi
19584 rm -f conftest.err conftest.$ac_ext
19585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19586 echo "${ECHO_T}$ac_header_preproc" >&6
19587
19588 # So? What about this header?
19589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19590 yes:no: )
19591 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19592 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19593 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19594 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19595 ac_header_preproc=yes
19596 ;;
19597 no:yes:* )
19598 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19599 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
19600 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19601 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19602 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19603 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19604 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19605 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
19606 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19607 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
19608 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19609 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
19610 (
19611 cat <<\_ASBOX
19612 ## ----------------------------------------- ##
19613 ## Report this to wx-dev@lists.wxwindows.org ##
19614 ## ----------------------------------------- ##
19615 _ASBOX
19616 ) |
19617 sed "s/^/$as_me: WARNING: /" >&2
19618 ;;
19619 esac
19620 echo "$as_me:$LINENO: checking for regex.h" >&5
19621 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19622 if test "${ac_cv_header_regex_h+set}" = set; then
19623 echo $ECHO_N "(cached) $ECHO_C" >&6
19624 else
19625 ac_cv_header_regex_h=$ac_header_preproc
19626 fi
19627 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19628 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19629
19630 fi
19631 if test $ac_cv_header_regex_h = yes; then
19632
19633 for ac_func in regcomp
19634 do
19635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19636 echo "$as_me:$LINENO: checking for $ac_func" >&5
19637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19638 if eval "test \"\${$as_ac_var+set}\" = set"; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19640 else
19641 cat >conftest.$ac_ext <<_ACEOF
19642 /* confdefs.h. */
19643 _ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h. */
19647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19649 #define $ac_func innocuous_$ac_func
19650
19651 /* System header to define __stub macros and hopefully few prototypes,
19652 which can conflict with char $ac_func (); below.
19653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19654 <limits.h> exists even on freestanding compilers. */
19655
19656 #ifdef __STDC__
19657 # include <limits.h>
19658 #else
19659 # include <assert.h>
19660 #endif
19661
19662 #undef $ac_func
19663
19664 /* Override any gcc2 internal prototype to avoid an error. */
19665 #ifdef __cplusplus
19666 extern "C"
19667 {
19668 #endif
19669 /* We use char because int might match the return type of a gcc2
19670 builtin and then its argument prototype would still apply. */
19671 char $ac_func ();
19672 /* The GNU C library defines this for functions which it implements
19673 to always fail with ENOSYS. Some functions are actually named
19674 something starting with __ and the normal name is an alias. */
19675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19676 choke me
19677 #else
19678 char (*f) () = $ac_func;
19679 #endif
19680 #ifdef __cplusplus
19681 }
19682 #endif
19683
19684 int
19685 main ()
19686 {
19687 return f != $ac_func;
19688 ;
19689 return 0;
19690 }
19691 _ACEOF
19692 rm -f conftest.$ac_objext conftest$ac_exeext
19693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19694 (eval $ac_link) 2>conftest.er1
19695 ac_status=$?
19696 grep -v '^ *+' conftest.er1 >conftest.err
19697 rm -f conftest.er1
19698 cat conftest.err >&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
19701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19704 ac_status=$?
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; } &&
19707 { ac_try='test -s conftest$ac_exeext'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
19713 eval "$as_ac_var=yes"
19714 else
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19717
19718 eval "$as_ac_var=no"
19719 fi
19720 rm -f conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext conftest.$ac_ext
19722 fi
19723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19725 if test `eval echo '${'$as_ac_var'}'` = yes; then
19726 cat >>confdefs.h <<_ACEOF
19727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19728 _ACEOF
19729
19730 fi
19731 done
19732
19733 fi
19734
19735
19736
19737 if test "x$ac_cv_func_regcomp" != "xyes"; then
19738 if test "$wxUSE_REGEX" = "sys" ; then
19739 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19740 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19741 { (exit 1); exit 1; }; }
19742 else
19743 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19744 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
19745 wxUSE_REGEX=builtin
19746 fi
19747 else
19748 wxUSE_REGEX=sys
19749 cat >>confdefs.h <<\_ACEOF
19750 #define WX_NO_REGEX_ADVANCED 1
19751 _ACEOF
19752
19753 fi
19754 fi
19755 fi
19756
19757
19758 ZLIB_LINK=
19759 if test "$wxUSE_ZLIB" != "no" ; then
19760 cat >>confdefs.h <<\_ACEOF
19761 #define wxUSE_ZLIB 1
19762 _ACEOF
19763
19764
19765 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
19766 if test "$USE_DARWIN" = 1; then
19767 system_zlib_h_ok="yes"
19768 else
19769 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19770 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19771 if test "${ac_cv_header_zlib_h+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774 if test "$cross_compiling" = yes; then
19775 unset ac_cv_header_zlib_h
19776
19777 else
19778 cat >conftest.$ac_ext <<_ACEOF
19779 /* confdefs.h. */
19780 _ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h. */
19784
19785 #include <zlib.h>
19786 #include <stdio.h>
19787
19788 int main()
19789 {
19790 FILE *f=fopen("conftestval", "w");
19791 if (!f) exit(1);
19792 fprintf(f, "%s",
19793 ZLIB_VERSION[0] == '1' &&
19794 (ZLIB_VERSION[2] > '1' ||
19795 (ZLIB_VERSION[2] == '1' &&
19796 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19797 exit(0);
19798 }
19799
19800 _ACEOF
19801 rm -f conftest$ac_exeext
19802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19803 (eval $ac_link) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808 (eval $ac_try) 2>&5
19809 ac_status=$?
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; }; then
19812 ac_cv_header_zlib_h=`cat conftestval`
19813 else
19814 echo "$as_me: program exited with status $ac_status" >&5
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818 ( exit $ac_status )
19819 ac_cv_header_zlib_h=no
19820 fi
19821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19822 fi
19823
19824 fi
19825 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19826 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19827 if test "${ac_cv_header_zlib_h+set}" = set; then
19828 echo "$as_me:$LINENO: checking for zlib.h" >&5
19829 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19830 if test "${ac_cv_header_zlib_h+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19832 fi
19833 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19834 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19835 else
19836 # Is the header compilable?
19837 echo "$as_me:$LINENO: checking zlib.h usability" >&5
19838 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
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 #include <zlib.h>
19847 _ACEOF
19848 rm -f conftest.$ac_objext
19849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19850 (eval $ac_compile) 2>conftest.er1
19851 ac_status=$?
19852 grep -v '^ *+' conftest.er1 >conftest.err
19853 rm -f conftest.er1
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } &&
19857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; } &&
19863 { ac_try='test -s conftest.$ac_objext'
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
19869 ac_header_compiler=yes
19870 else
19871 echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19873
19874 ac_header_compiler=no
19875 fi
19876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19878 echo "${ECHO_T}$ac_header_compiler" >&6
19879
19880 # Is the header present?
19881 echo "$as_me:$LINENO: checking zlib.h presence" >&5
19882 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19883 cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h. */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19889 #include <zlib.h>
19890 _ACEOF
19891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19893 ac_status=$?
19894 grep -v '^ *+' conftest.er1 >conftest.err
19895 rm -f conftest.er1
19896 cat conftest.err >&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); } >/dev/null; then
19899 if test -s conftest.err; then
19900 ac_cpp_err=$ac_c_preproc_warn_flag
19901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19902 else
19903 ac_cpp_err=
19904 fi
19905 else
19906 ac_cpp_err=yes
19907 fi
19908 if test -z "$ac_cpp_err"; then
19909 ac_header_preproc=yes
19910 else
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 ac_header_preproc=no
19915 fi
19916 rm -f conftest.err conftest.$ac_ext
19917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19918 echo "${ECHO_T}$ac_header_preproc" >&6
19919
19920 # So? What about this header?
19921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19922 yes:no: )
19923 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19924 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19925 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19926 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19927 ac_header_preproc=yes
19928 ;;
19929 no:yes:* )
19930 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19931 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19933 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19935 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19936 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19937 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19939 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19940 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19941 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
19942 (
19943 cat <<\_ASBOX
19944 ## ----------------------------------------- ##
19945 ## Report this to wx-dev@lists.wxwindows.org ##
19946 ## ----------------------------------------- ##
19947 _ASBOX
19948 ) |
19949 sed "s/^/$as_me: WARNING: /" >&2
19950 ;;
19951 esac
19952 echo "$as_me:$LINENO: checking for zlib.h" >&5
19953 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19954 if test "${ac_cv_header_zlib_h+set}" = set; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
19956 else
19957 ac_cv_header_zlib_h=$ac_header_preproc
19958 fi
19959 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19960 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19961
19962 fi
19963
19964
19965
19966 system_zlib_h_ok=$ac_cv_header_zlib_h
19967 fi
19968
19969 if test "$system_zlib_h_ok" = "yes"; then
19970 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19971 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19972 if test "${ac_cv_lib_z_deflate+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975 ac_check_lib_save_LIBS=$LIBS
19976 LIBS="-lz $LIBS"
19977 cat >conftest.$ac_ext <<_ACEOF
19978 /* confdefs.h. */
19979 _ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983
19984 /* Override any gcc2 internal prototype to avoid an error. */
19985 #ifdef __cplusplus
19986 extern "C"
19987 #endif
19988 /* We use char because int might match the return type of a gcc2
19989 builtin and then its argument prototype would still apply. */
19990 char deflate ();
19991 int
19992 main ()
19993 {
19994 deflate ();
19995 ;
19996 return 0;
19997 }
19998 _ACEOF
19999 rm -f conftest.$ac_objext conftest$ac_exeext
20000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20001 (eval $ac_link) 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
20008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest$ac_exeext'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_cv_lib_z_deflate=yes
20021 else
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025 ac_cv_lib_z_deflate=no
20026 fi
20027 rm -f conftest.err conftest.$ac_objext \
20028 conftest$ac_exeext conftest.$ac_ext
20029 LIBS=$ac_check_lib_save_LIBS
20030 fi
20031 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20032 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20033 if test $ac_cv_lib_z_deflate = yes; then
20034 ZLIB_LINK=" -lz"
20035 fi
20036
20037 fi
20038
20039 if test "x$ZLIB_LINK" = "x" ; then
20040 if test "$wxUSE_ZLIB" = "sys" ; then
20041 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20042 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20043 { (exit 1); exit 1; }; }
20044 else
20045 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20046 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20047 wxUSE_ZLIB=builtin
20048 fi
20049 else
20050 wxUSE_ZLIB=sys
20051 fi
20052 fi
20053 fi
20054
20055
20056 PNG_LINK=
20057 if test "$wxUSE_LIBPNG" != "no" ; then
20058 cat >>confdefs.h <<\_ACEOF
20059 #define wxUSE_LIBPNG 1
20060 _ACEOF
20061
20062
20063 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20064 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20065 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20066 wxUSE_LIBPNG=sys
20067 fi
20068
20069 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20070 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20071 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20072 wxUSE_LIBPNG=builtin
20073 fi
20074
20075 if test "$wxUSE_MGL" != 1 ; then
20076 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20077 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20078 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20079 if test "${ac_cv_header_png_h+set}" = set; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082 if test "$cross_compiling" = yes; then
20083 unset ac_cv_header_png_h
20084
20085 else
20086 cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h. */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h. */
20092
20093 #include <png.h>
20094 #include <stdio.h>
20095
20096 int main()
20097 {
20098 FILE *f=fopen("conftestval", "w");
20099 if (!f) exit(1);
20100 fprintf(f, "%s",
20101 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20102 exit(0);
20103 }
20104
20105 _ACEOF
20106 rm -f conftest$ac_exeext
20107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20108 (eval $ac_link) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
20117 ac_cv_header_png_h=`cat conftestval`
20118 else
20119 echo "$as_me: program exited with status $ac_status" >&5
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20122
20123 ( exit $ac_status )
20124 ac_cv_header_png_h=no
20125 fi
20126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20127 fi
20128
20129 fi
20130 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20131 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20132 if test "${ac_cv_header_png_h+set}" = set; then
20133 echo "$as_me:$LINENO: checking for png.h" >&5
20134 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20135 if test "${ac_cv_header_png_h+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 fi
20138 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20139 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20140 else
20141 # Is the header compilable?
20142 echo "$as_me:$LINENO: checking png.h usability" >&5
20143 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
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 #include <png.h>
20152 _ACEOF
20153 rm -f conftest.$ac_objext
20154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20155 (eval $ac_compile) 2>conftest.er1
20156 ac_status=$?
20157 grep -v '^ *+' conftest.er1 >conftest.err
20158 rm -f conftest.er1
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
20162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; } &&
20168 { ac_try='test -s conftest.$ac_objext'
20169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 ac_header_compiler=yes
20175 else
20176 echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20178
20179 ac_header_compiler=no
20180 fi
20181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20183 echo "${ECHO_T}$ac_header_compiler" >&6
20184
20185 # Is the header present?
20186 echo "$as_me:$LINENO: checking png.h presence" >&5
20187 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20188 cat >conftest.$ac_ext <<_ACEOF
20189 /* confdefs.h. */
20190 _ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h. */
20194 #include <png.h>
20195 _ACEOF
20196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20198 ac_status=$?
20199 grep -v '^ *+' conftest.er1 >conftest.err
20200 rm -f conftest.er1
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } >/dev/null; then
20204 if test -s conftest.err; then
20205 ac_cpp_err=$ac_c_preproc_warn_flag
20206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20207 else
20208 ac_cpp_err=
20209 fi
20210 else
20211 ac_cpp_err=yes
20212 fi
20213 if test -z "$ac_cpp_err"; then
20214 ac_header_preproc=yes
20215 else
20216 echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219 ac_header_preproc=no
20220 fi
20221 rm -f conftest.err conftest.$ac_ext
20222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20223 echo "${ECHO_T}$ac_header_preproc" >&6
20224
20225 # So? What about this header?
20226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20227 yes:no: )
20228 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20229 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20230 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20231 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20232 ac_header_preproc=yes
20233 ;;
20234 no:yes:* )
20235 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20236 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
20237 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20238 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20240 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20242 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
20243 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20244 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
20245 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20246 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
20247 (
20248 cat <<\_ASBOX
20249 ## ----------------------------------------- ##
20250 ## Report this to wx-dev@lists.wxwindows.org ##
20251 ## ----------------------------------------- ##
20252 _ASBOX
20253 ) |
20254 sed "s/^/$as_me: WARNING: /" >&2
20255 ;;
20256 esac
20257 echo "$as_me:$LINENO: checking for png.h" >&5
20258 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20259 if test "${ac_cv_header_png_h+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 else
20262 ac_cv_header_png_h=$ac_header_preproc
20263 fi
20264 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20265 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20266
20267 fi
20268
20269
20270
20271 if test "$ac_cv_header_png_h" = "yes"; then
20272 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20273 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20274 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277 ac_check_lib_save_LIBS=$LIBS
20278 LIBS="-lpng -lz -lm $LIBS"
20279 cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h. */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285
20286 /* Override any gcc2 internal prototype to avoid an error. */
20287 #ifdef __cplusplus
20288 extern "C"
20289 #endif
20290 /* We use char because int might match the return type of a gcc2
20291 builtin and then its argument prototype would still apply. */
20292 char png_check_sig ();
20293 int
20294 main ()
20295 {
20296 png_check_sig ();
20297 ;
20298 return 0;
20299 }
20300 _ACEOF
20301 rm -f conftest.$ac_objext conftest$ac_exeext
20302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20303 (eval $ac_link) 2>conftest.er1
20304 ac_status=$?
20305 grep -v '^ *+' conftest.er1 >conftest.err
20306 rm -f conftest.er1
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } &&
20310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20313 ac_status=$?
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; } &&
20316 { ac_try='test -s conftest$ac_exeext'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20319 ac_status=$?
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322 ac_cv_lib_png_png_check_sig=yes
20323 else
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20326
20327 ac_cv_lib_png_png_check_sig=no
20328 fi
20329 rm -f conftest.err conftest.$ac_objext \
20330 conftest$ac_exeext conftest.$ac_ext
20331 LIBS=$ac_check_lib_save_LIBS
20332 fi
20333 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20334 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20335 if test $ac_cv_lib_png_png_check_sig = yes; then
20336 PNG_LINK=" -lpng"
20337 fi
20338
20339 fi
20340
20341 if test "x$PNG_LINK" = "x" ; then
20342 if test "$wxUSE_LIBPNG" = "sys" ; then
20343 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20344 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20345 { (exit 1); exit 1; }; }
20346 else
20347 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20348 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20349 wxUSE_LIBPNG=builtin
20350 fi
20351 else
20352 wxUSE_LIBPNG=sys
20353 fi
20354 fi
20355 fi
20356
20357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20358 fi
20359
20360
20361 JPEG_LINK=
20362 if test "$wxUSE_LIBJPEG" != "no" ; then
20363 cat >>confdefs.h <<\_ACEOF
20364 #define wxUSE_LIBJPEG 1
20365 _ACEOF
20366
20367
20368 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20369 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20370 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20371 wxUSE_LIBJPEG=sys
20372 fi
20373
20374 if test "$wxUSE_MGL" != 1 ; then
20375 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20376 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20377 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20378 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20381 cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h. */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387
20388 #undef HAVE_STDLIB_H
20389 #include <stdio.h>
20390 #include <jpeglib.h>
20391
20392 int
20393 main ()
20394 {
20395
20396
20397 ;
20398 return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403 (eval $ac_compile) 2>conftest.er1
20404 ac_status=$?
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; } &&
20416 { ac_try='test -s conftest.$ac_objext'
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }; then
20422 ac_cv_header_jpeglib_h=yes
20423 else
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427 ac_cv_header_jpeglib_h=no
20428
20429 fi
20430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20431
20432 fi
20433
20434 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20435 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
20436
20437 if test "$ac_cv_header_jpeglib_h" = "yes"; then
20438 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20439 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20440 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443 ac_check_lib_save_LIBS=$LIBS
20444 LIBS="-ljpeg $LIBS"
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h. */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451
20452 /* Override any gcc2 internal prototype to avoid an error. */
20453 #ifdef __cplusplus
20454 extern "C"
20455 #endif
20456 /* We use char because int might match the return type of a gcc2
20457 builtin and then its argument prototype would still apply. */
20458 char jpeg_read_header ();
20459 int
20460 main ()
20461 {
20462 jpeg_read_header ();
20463 ;
20464 return 0;
20465 }
20466 _ACEOF
20467 rm -f conftest.$ac_objext conftest$ac_exeext
20468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20469 (eval $ac_link) 2>conftest.er1
20470 ac_status=$?
20471 grep -v '^ *+' conftest.er1 >conftest.err
20472 rm -f conftest.er1
20473 cat conftest.err >&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } &&
20476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478 (eval $ac_try) 2>&5
20479 ac_status=$?
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; } &&
20482 { ac_try='test -s conftest$ac_exeext'
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; }; then
20488 ac_cv_lib_jpeg_jpeg_read_header=yes
20489 else
20490 echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20492
20493 ac_cv_lib_jpeg_jpeg_read_header=no
20494 fi
20495 rm -f conftest.err conftest.$ac_objext \
20496 conftest$ac_exeext conftest.$ac_ext
20497 LIBS=$ac_check_lib_save_LIBS
20498 fi
20499 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20500 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20501 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
20502 JPEG_LINK=" -ljpeg"
20503 fi
20504
20505 fi
20506
20507 if test "x$JPEG_LINK" = "x" ; then
20508 if test "$wxUSE_LIBJPEG" = "sys" ; then
20509 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20510 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20511 { (exit 1); exit 1; }; }
20512 else
20513 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20514 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
20515 wxUSE_LIBJPEG=builtin
20516 fi
20517 else
20518 wxUSE_LIBJPEG=sys
20519 fi
20520 fi
20521 fi
20522 fi
20523
20524
20525 TIFF_LINK=
20526 TIFF_PREREQ_LINKS=-lm
20527 if test "$wxUSE_LIBTIFF" != "no" ; then
20528 cat >>confdefs.h <<\_ACEOF
20529 #define wxUSE_LIBTIFF 1
20530 _ACEOF
20531
20532
20533 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
20534 if test "$wxUSE_LIBJPEG" = "sys"; then
20535 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20536 fi
20537 if test "$wxUSE_ZLIB" = "sys"; then
20538 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20539 fi
20540 if test "${ac_cv_header_tiffio_h+set}" = set; then
20541 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20542 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20543 if test "${ac_cv_header_tiffio_h+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20545 fi
20546 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20547 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20548 else
20549 # Is the header compilable?
20550 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20551 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20552 cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h. */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 $ac_includes_default
20559 #include <tiffio.h>
20560 _ACEOF
20561 rm -f conftest.$ac_objext
20562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20563 (eval $ac_compile) 2>conftest.er1
20564 ac_status=$?
20565 grep -v '^ *+' conftest.er1 >conftest.err
20566 rm -f conftest.er1
20567 cat conftest.err >&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } &&
20570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572 (eval $ac_try) 2>&5
20573 ac_status=$?
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; } &&
20576 { ac_try='test -s conftest.$ac_objext'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20579 ac_status=$?
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; }; then
20582 ac_header_compiler=yes
20583 else
20584 echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.$ac_ext >&5
20586
20587 ac_header_compiler=no
20588 fi
20589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20591 echo "${ECHO_T}$ac_header_compiler" >&6
20592
20593 # Is the header present?
20594 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20595 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20596 cat >conftest.$ac_ext <<_ACEOF
20597 /* confdefs.h. */
20598 _ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h. */
20602 #include <tiffio.h>
20603 _ACEOF
20604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20606 ac_status=$?
20607 grep -v '^ *+' conftest.er1 >conftest.err
20608 rm -f conftest.er1
20609 cat conftest.err >&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } >/dev/null; then
20612 if test -s conftest.err; then
20613 ac_cpp_err=$ac_c_preproc_warn_flag
20614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20615 else
20616 ac_cpp_err=
20617 fi
20618 else
20619 ac_cpp_err=yes
20620 fi
20621 if test -z "$ac_cpp_err"; then
20622 ac_header_preproc=yes
20623 else
20624 echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20626
20627 ac_header_preproc=no
20628 fi
20629 rm -f conftest.err conftest.$ac_ext
20630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20631 echo "${ECHO_T}$ac_header_preproc" >&6
20632
20633 # So? What about this header?
20634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20635 yes:no: )
20636 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20637 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20638 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20639 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20640 ac_header_preproc=yes
20641 ;;
20642 no:yes:* )
20643 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20644 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
20645 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20646 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20647 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20648 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20650 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20652 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20654 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
20655 (
20656 cat <<\_ASBOX
20657 ## ----------------------------------------- ##
20658 ## Report this to wx-dev@lists.wxwindows.org ##
20659 ## ----------------------------------------- ##
20660 _ASBOX
20661 ) |
20662 sed "s/^/$as_me: WARNING: /" >&2
20663 ;;
20664 esac
20665 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20666 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20667 if test "${ac_cv_header_tiffio_h+set}" = set; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 else
20670 ac_cv_header_tiffio_h=$ac_header_preproc
20671 fi
20672 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20673 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20674
20675 fi
20676 if test $ac_cv_header_tiffio_h = yes; then
20677
20678 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
20679 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20680 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 else
20683 ac_check_lib_save_LIBS=$LIBS
20684 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
20685 cat >conftest.$ac_ext <<_ACEOF
20686 /* confdefs.h. */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691
20692 /* Override any gcc2 internal prototype to avoid an error. */
20693 #ifdef __cplusplus
20694 extern "C"
20695 #endif
20696 /* We use char because int might match the return type of a gcc2
20697 builtin and then its argument prototype would still apply. */
20698 char TIFFError ();
20699 int
20700 main ()
20701 {
20702 TIFFError ();
20703 ;
20704 return 0;
20705 }
20706 _ACEOF
20707 rm -f conftest.$ac_objext conftest$ac_exeext
20708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20709 (eval $ac_link) 2>conftest.er1
20710 ac_status=$?
20711 grep -v '^ *+' conftest.er1 >conftest.err
20712 rm -f conftest.er1
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } &&
20716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; } &&
20722 { ac_try='test -s conftest$ac_exeext'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20725 ac_status=$?
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20728 ac_cv_lib_tiff_TIFFError=yes
20729 else
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733 ac_cv_lib_tiff_TIFFError=no
20734 fi
20735 rm -f conftest.err conftest.$ac_objext \
20736 conftest$ac_exeext conftest.$ac_ext
20737 LIBS=$ac_check_lib_save_LIBS
20738 fi
20739 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20740 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20741 if test $ac_cv_lib_tiff_TIFFError = yes; then
20742 TIFF_LINK=" -ltiff"
20743 fi
20744
20745
20746
20747 fi
20748
20749
20750
20751 if test "x$TIFF_LINK" = "x" ; then
20752 if test "$wxUSE_LIBTIFF" = "sys" ; then
20753 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20754 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20755 { (exit 1); exit 1; }; }
20756 else
20757 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20758 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
20759 wxUSE_LIBTIFF=builtin
20760 fi
20761 else
20762 wxUSE_LIBTIFF=sys
20763 fi
20764 fi
20765 fi
20766
20767
20768 if test "$wxUSE_EXPAT" != "no"; then
20769 wxUSE_XML=yes
20770 cat >>confdefs.h <<\_ACEOF
20771 #define wxUSE_EXPAT 1
20772 _ACEOF
20773
20774 cat >>confdefs.h <<\_ACEOF
20775 #define wxUSE_XML 1
20776 _ACEOF
20777
20778
20779 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20780 if test "${ac_cv_header_expat_h+set}" = set; then
20781 echo "$as_me:$LINENO: checking for expat.h" >&5
20782 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20783 if test "${ac_cv_header_expat_h+set}" = set; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
20785 fi
20786 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20787 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20788 else
20789 # Is the header compilable?
20790 echo "$as_me:$LINENO: checking expat.h usability" >&5
20791 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20792 cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h. */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20798 $ac_includes_default
20799 #include <expat.h>
20800 _ACEOF
20801 rm -f conftest.$ac_objext
20802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20803 (eval $ac_compile) 2>conftest.er1
20804 ac_status=$?
20805 grep -v '^ *+' conftest.er1 >conftest.err
20806 rm -f conftest.er1
20807 cat conftest.err >&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } &&
20810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812 (eval $ac_try) 2>&5
20813 ac_status=$?
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; } &&
20816 { ac_try='test -s conftest.$ac_objext'
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20822 ac_header_compiler=yes
20823 else
20824 echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20826
20827 ac_header_compiler=no
20828 fi
20829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20831 echo "${ECHO_T}$ac_header_compiler" >&6
20832
20833 # Is the header present?
20834 echo "$as_me:$LINENO: checking expat.h presence" >&5
20835 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20836 cat >conftest.$ac_ext <<_ACEOF
20837 /* confdefs.h. */
20838 _ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h. */
20842 #include <expat.h>
20843 _ACEOF
20844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20846 ac_status=$?
20847 grep -v '^ *+' conftest.er1 >conftest.err
20848 rm -f conftest.er1
20849 cat conftest.err >&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } >/dev/null; then
20852 if test -s conftest.err; then
20853 ac_cpp_err=$ac_c_preproc_warn_flag
20854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20855 else
20856 ac_cpp_err=
20857 fi
20858 else
20859 ac_cpp_err=yes
20860 fi
20861 if test -z "$ac_cpp_err"; then
20862 ac_header_preproc=yes
20863 else
20864 echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20866
20867 ac_header_preproc=no
20868 fi
20869 rm -f conftest.err conftest.$ac_ext
20870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20871 echo "${ECHO_T}$ac_header_preproc" >&6
20872
20873 # So? What about this header?
20874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20875 yes:no: )
20876 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20877 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20878 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20879 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20880 ac_header_preproc=yes
20881 ;;
20882 no:yes:* )
20883 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20884 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
20885 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20886 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20887 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20888 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20889 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20890 echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
20891 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20892 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
20893 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20894 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
20895 (
20896 cat <<\_ASBOX
20897 ## ----------------------------------------- ##
20898 ## Report this to wx-dev@lists.wxwindows.org ##
20899 ## ----------------------------------------- ##
20900 _ASBOX
20901 ) |
20902 sed "s/^/$as_me: WARNING: /" >&2
20903 ;;
20904 esac
20905 echo "$as_me:$LINENO: checking for expat.h" >&5
20906 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20907 if test "${ac_cv_header_expat_h+set}" = set; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 else
20910 ac_cv_header_expat_h=$ac_header_preproc
20911 fi
20912 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20913 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20914
20915 fi
20916 if test $ac_cv_header_expat_h = yes; then
20917 found_expat_h=1
20918 fi
20919
20920
20921 if test "x$found_expat_h" = "x1"; then
20922 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20923 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20924 if test "${wx_cv_expat_is_not_broken+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20926 else
20927
20928
20929
20930 ac_ext=cc
20931 ac_cpp='$CXXCPP $CPPFLAGS'
20932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20935
20936 cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h. */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h. */
20942 #include <expat.h>
20943 int
20944 main ()
20945 {
20946
20947 ;
20948 return 0;
20949 }
20950 _ACEOF
20951 rm -f conftest.$ac_objext
20952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20953 (eval $ac_compile) 2>conftest.er1
20954 ac_status=$?
20955 grep -v '^ *+' conftest.er1 >conftest.err
20956 rm -f conftest.er1
20957 cat conftest.err >&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } &&
20960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; } &&
20966 { ac_try='test -s conftest.$ac_objext'
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20969 ac_status=$?
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 wx_cv_expat_is_not_broken=yes
20973 else
20974 echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20976
20977 wx_cv_expat_is_not_broken=no
20978
20979 fi
20980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20981 ac_ext=c
20982 ac_cpp='$CPP $CPPFLAGS'
20983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20986
20987
20988
20989 fi
20990 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20991 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20992 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20993 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
20994 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20995 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20997 else
20998 ac_check_lib_save_LIBS=$LIBS
20999 LIBS="-lexpat $LIBS"
21000 cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h. */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21006
21007 /* Override any gcc2 internal prototype to avoid an error. */
21008 #ifdef __cplusplus
21009 extern "C"
21010 #endif
21011 /* We use char because int might match the return type of a gcc2
21012 builtin and then its argument prototype would still apply. */
21013 char XML_ParserCreate ();
21014 int
21015 main ()
21016 {
21017 XML_ParserCreate ();
21018 ;
21019 return 0;
21020 }
21021 _ACEOF
21022 rm -f conftest.$ac_objext conftest$ac_exeext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21024 (eval $ac_link) 2>conftest.er1
21025 ac_status=$?
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } &&
21031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21034 ac_status=$?
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest$ac_exeext'
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; }; then
21043 ac_cv_lib_expat_XML_ParserCreate=yes
21044 else
21045 echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048 ac_cv_lib_expat_XML_ParserCreate=no
21049 fi
21050 rm -f conftest.err conftest.$ac_objext \
21051 conftest$ac_exeext conftest.$ac_ext
21052 LIBS=$ac_check_lib_save_LIBS
21053 fi
21054 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21055 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21056 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21057 EXPAT_LINK=" -lexpat"
21058 fi
21059
21060 fi
21061 fi
21062 if test "x$EXPAT_LINK" = "x" ; then
21063 if test "$wxUSE_EXPAT" = "sys" ; then
21064 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21065 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21066 { (exit 1); exit 1; }; }
21067 else
21068 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21069 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21070 wxUSE_EXPAT=builtin
21071 fi
21072 else
21073 wxUSE_EXPAT=sys
21074 fi
21075 fi
21076 if test "$wxUSE_EXPAT" = "builtin" ; then
21077
21078
21079 subdirs="$subdirs src/expat"
21080
21081 fi
21082 fi
21083
21084
21085
21086 if test "$wxUSE_LIBMSPACK" != "no"; then
21087
21088 if test "${ac_cv_header_mspack_h+set}" = set; then
21089 echo "$as_me:$LINENO: checking for mspack.h" >&5
21090 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21091 if test "${ac_cv_header_mspack_h+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 fi
21094 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21095 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21096 else
21097 # Is the header compilable?
21098 echo "$as_me:$LINENO: checking mspack.h usability" >&5
21099 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
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 $ac_includes_default
21107 #include <mspack.h>
21108 _ACEOF
21109 rm -f conftest.$ac_objext
21110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21111 (eval $ac_compile) 2>conftest.er1
21112 ac_status=$?
21113 grep -v '^ *+' conftest.er1 >conftest.err
21114 rm -f conftest.er1
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } &&
21118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21121 ac_status=$?
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; } &&
21124 { ac_try='test -s conftest.$ac_objext'
21125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126 (eval $ac_try) 2>&5
21127 ac_status=$?
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; }; then
21130 ac_header_compiler=yes
21131 else
21132 echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21134
21135 ac_header_compiler=no
21136 fi
21137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21139 echo "${ECHO_T}$ac_header_compiler" >&6
21140
21141 # Is the header present?
21142 echo "$as_me:$LINENO: checking mspack.h presence" >&5
21143 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21144 cat >conftest.$ac_ext <<_ACEOF
21145 /* confdefs.h. */
21146 _ACEOF
21147 cat confdefs.h >>conftest.$ac_ext
21148 cat >>conftest.$ac_ext <<_ACEOF
21149 /* end confdefs.h. */
21150 #include <mspack.h>
21151 _ACEOF
21152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21154 ac_status=$?
21155 grep -v '^ *+' conftest.er1 >conftest.err
21156 rm -f conftest.er1
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } >/dev/null; then
21160 if test -s conftest.err; then
21161 ac_cpp_err=$ac_c_preproc_warn_flag
21162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21163 else
21164 ac_cpp_err=
21165 fi
21166 else
21167 ac_cpp_err=yes
21168 fi
21169 if test -z "$ac_cpp_err"; then
21170 ac_header_preproc=yes
21171 else
21172 echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21174
21175 ac_header_preproc=no
21176 fi
21177 rm -f conftest.err conftest.$ac_ext
21178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21179 echo "${ECHO_T}$ac_header_preproc" >&6
21180
21181 # So? What about this header?
21182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21183 yes:no: )
21184 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21185 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21187 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21188 ac_header_preproc=yes
21189 ;;
21190 no:yes:* )
21191 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21192 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
21193 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21194 echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21195 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21196 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21197 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21198 echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
21199 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21200 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
21201 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21202 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
21203 (
21204 cat <<\_ASBOX
21205 ## ----------------------------------------- ##
21206 ## Report this to wx-dev@lists.wxwindows.org ##
21207 ## ----------------------------------------- ##
21208 _ASBOX
21209 ) |
21210 sed "s/^/$as_me: WARNING: /" >&2
21211 ;;
21212 esac
21213 echo "$as_me:$LINENO: checking for mspack.h" >&5
21214 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21215 if test "${ac_cv_header_mspack_h+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218 ac_cv_header_mspack_h=$ac_header_preproc
21219 fi
21220 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21221 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21222
21223 fi
21224 if test $ac_cv_header_mspack_h = yes; then
21225 found_mspack_h=1
21226 fi
21227
21228
21229 if test "x$found_mspack_h" = "x1"; then
21230 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21231 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21232 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21233 echo $ECHO_N "(cached) $ECHO_C" >&6
21234 else
21235 ac_check_lib_save_LIBS=$LIBS
21236 LIBS="-lmspack $LIBS"
21237 cat >conftest.$ac_ext <<_ACEOF
21238 /* confdefs.h. */
21239 _ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243
21244 /* Override any gcc2 internal prototype to avoid an error. */
21245 #ifdef __cplusplus
21246 extern "C"
21247 #endif
21248 /* We use char because int might match the return type of a gcc2
21249 builtin and then its argument prototype would still apply. */
21250 char mspack_create_chm_decompressor ();
21251 int
21252 main ()
21253 {
21254 mspack_create_chm_decompressor ();
21255 ;
21256 return 0;
21257 }
21258 _ACEOF
21259 rm -f conftest.$ac_objext conftest$ac_exeext
21260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21261 (eval $ac_link) 2>conftest.er1
21262 ac_status=$?
21263 grep -v '^ *+' conftest.er1 >conftest.err
21264 rm -f conftest.er1
21265 cat conftest.err >&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } &&
21268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270 (eval $ac_try) 2>&5
21271 ac_status=$?
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; } &&
21274 { ac_try='test -s conftest$ac_exeext'
21275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276 (eval $ac_try) 2>&5
21277 ac_status=$?
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); }; }; then
21280 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21281 else
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21284
21285 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21286 fi
21287 rm -f conftest.err conftest.$ac_objext \
21288 conftest$ac_exeext conftest.$ac_ext
21289 LIBS=$ac_check_lib_save_LIBS
21290 fi
21291 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21292 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21293 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21294 MSPACK_LINK=" -lmspack"
21295 fi
21296
21297 fi
21298 if test "x$MSPACK_LINK" = "x" ; then
21299 wxUSE_LIBMSPACK=no
21300 else
21301 cat >>confdefs.h <<\_ACEOF
21302 #define wxUSE_LIBMSPACK 1
21303 _ACEOF
21304
21305 fi
21306 fi
21307
21308
21309
21310 AFMINSTALL=
21311 WIN32INSTALL=
21312
21313 TOOLKIT=
21314 TOOLKIT_INCLUDE=
21315 WIDGET_SET=
21316
21317 if test "$USE_WIN32" = 1 ; then
21318
21319 for ac_header in w32api.h
21320 do
21321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21323 echo "$as_me:$LINENO: checking for $ac_header" >&5
21324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21326 echo $ECHO_N "(cached) $ECHO_C" >&6
21327 fi
21328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21330 else
21331 # Is the header compilable?
21332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21334 cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h. */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 $ac_includes_default
21341 #include <$ac_header>
21342 _ACEOF
21343 rm -f conftest.$ac_objext
21344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21345 (eval $ac_compile) 2>conftest.er1
21346 ac_status=$?
21347 grep -v '^ *+' conftest.er1 >conftest.err
21348 rm -f conftest.er1
21349 cat conftest.err >&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); } &&
21352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; } &&
21358 { ac_try='test -s conftest.$ac_objext'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_header_compiler=yes
21365 else
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369 ac_header_compiler=no
21370 fi
21371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21372 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21373 echo "${ECHO_T}$ac_header_compiler" >&6
21374
21375 # Is the header present?
21376 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21378 cat >conftest.$ac_ext <<_ACEOF
21379 /* confdefs.h. */
21380 _ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21384 #include <$ac_header>
21385 _ACEOF
21386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21388 ac_status=$?
21389 grep -v '^ *+' conftest.er1 >conftest.err
21390 rm -f conftest.er1
21391 cat conftest.err >&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); } >/dev/null; then
21394 if test -s conftest.err; then
21395 ac_cpp_err=$ac_c_preproc_warn_flag
21396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21397 else
21398 ac_cpp_err=
21399 fi
21400 else
21401 ac_cpp_err=yes
21402 fi
21403 if test -z "$ac_cpp_err"; then
21404 ac_header_preproc=yes
21405 else
21406 echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21408
21409 ac_header_preproc=no
21410 fi
21411 rm -f conftest.err conftest.$ac_ext
21412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21413 echo "${ECHO_T}$ac_header_preproc" >&6
21414
21415 # So? What about this header?
21416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21417 yes:no: )
21418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21422 ac_header_preproc=yes
21423 ;;
21424 no:yes:* )
21425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21437 (
21438 cat <<\_ASBOX
21439 ## ----------------------------------------- ##
21440 ## Report this to wx-dev@lists.wxwindows.org ##
21441 ## ----------------------------------------- ##
21442 _ASBOX
21443 ) |
21444 sed "s/^/$as_me: WARNING: /" >&2
21445 ;;
21446 esac
21447 echo "$as_me:$LINENO: checking for $ac_header" >&5
21448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 else
21452 eval "$as_ac_Header=\$ac_header_preproc"
21453 fi
21454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21456
21457 fi
21458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21459 cat >>confdefs.h <<_ACEOF
21460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21461 _ACEOF
21462
21463 fi
21464
21465 done
21466
21467 if test "${ac_cv_header_windows_h+set}" = set; then
21468 echo "$as_me:$LINENO: checking for windows.h" >&5
21469 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21470 if test "${ac_cv_header_windows_h+set}" = set; then
21471 echo $ECHO_N "(cached) $ECHO_C" >&6
21472 fi
21473 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21474 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21475 else
21476 # Is the header compilable?
21477 echo "$as_me:$LINENO: checking windows.h usability" >&5
21478 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21479 cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h. */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21485 $ac_includes_default
21486 #include <windows.h>
21487 _ACEOF
21488 rm -f conftest.$ac_objext
21489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21490 (eval $ac_compile) 2>conftest.er1
21491 ac_status=$?
21492 grep -v '^ *+' conftest.er1 >conftest.err
21493 rm -f conftest.er1
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } &&
21497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21500 ac_status=$?
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; } &&
21503 { ac_try='test -s conftest.$ac_objext'
21504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505 (eval $ac_try) 2>&5
21506 ac_status=$?
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; }; then
21509 ac_header_compiler=yes
21510 else
21511 echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21513
21514 ac_header_compiler=no
21515 fi
21516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21518 echo "${ECHO_T}$ac_header_compiler" >&6
21519
21520 # Is the header present?
21521 echo "$as_me:$LINENO: checking windows.h presence" >&5
21522 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21523 cat >conftest.$ac_ext <<_ACEOF
21524 /* confdefs.h. */
21525 _ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h. */
21529 #include <windows.h>
21530 _ACEOF
21531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21533 ac_status=$?
21534 grep -v '^ *+' conftest.er1 >conftest.err
21535 rm -f conftest.er1
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } >/dev/null; then
21539 if test -s conftest.err; then
21540 ac_cpp_err=$ac_c_preproc_warn_flag
21541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21542 else
21543 ac_cpp_err=
21544 fi
21545 else
21546 ac_cpp_err=yes
21547 fi
21548 if test -z "$ac_cpp_err"; then
21549 ac_header_preproc=yes
21550 else
21551 echo "$as_me: failed program was:" >&5
21552 sed 's/^/| /' conftest.$ac_ext >&5
21553
21554 ac_header_preproc=no
21555 fi
21556 rm -f conftest.err conftest.$ac_ext
21557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21558 echo "${ECHO_T}$ac_header_preproc" >&6
21559
21560 # So? What about this header?
21561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21562 yes:no: )
21563 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21564 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21565 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21566 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21567 ac_header_preproc=yes
21568 ;;
21569 no:yes:* )
21570 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21571 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21572 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21573 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21574 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21575 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21576 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21577 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21578 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21579 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21580 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21581 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21582 (
21583 cat <<\_ASBOX
21584 ## ----------------------------------------- ##
21585 ## Report this to wx-dev@lists.wxwindows.org ##
21586 ## ----------------------------------------- ##
21587 _ASBOX
21588 ) |
21589 sed "s/^/$as_me: WARNING: /" >&2
21590 ;;
21591 esac
21592 echo "$as_me:$LINENO: checking for windows.h" >&5
21593 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21594 if test "${ac_cv_header_windows_h+set}" = set; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21596 else
21597 ac_cv_header_windows_h=$ac_header_preproc
21598 fi
21599 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21600 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21601
21602 fi
21603 if test $ac_cv_header_windows_h = yes; then
21604 :
21605 else
21606
21607 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21608 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21609 { (exit 1); exit 1; }; }
21610
21611 fi
21612
21613
21614
21615 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21616
21617 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21618 LIBS="$LIBS -loleacc"
21619 fi
21620
21621 case "${host}" in
21622 *-*-cygwin* )
21623 LIBS="$LIBS -lkernel32 -luser32"
21624 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
21625 esac
21626
21627 if test "$wxUSE_ODBC" = "sys" ; then
21628 wxUSE_ODBC = "yes"
21629 fi
21630 if test "$wxUSE_ODBC" = "yes" ; then
21631 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
21632 cat >>confdefs.h <<\_ACEOF
21633 #define wxUSE_ODBC 1
21634 _ACEOF
21635
21636 fi
21637
21638 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21639 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
21640
21641 WIN32INSTALL=win32install
21642 fi
21643
21644 if test "$wxUSE_GUI" = "yes"; then
21645 USE_GUI=1
21646
21647 GUI_TK_LIBRARY=
21648
21649 WXGTK12=
21650 WXGTK127=
21651 WXGTK20=
21652 WXGPE=
21653
21654 if test "$wxUSE_MSW" = 1 ; then
21655 TOOLKIT=MSW
21656 GUIDIST=MSW_DIST
21657
21658 case "${host}" in
21659 *-*-mingw32* )
21660 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21661 esac
21662 fi
21663
21664 if test "$wxUSE_GTK" = 1; then
21665 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21666 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21667
21668 gtk_version_cached=1
21669 if test "${wx_cv_lib_gtk+set}" = set; then
21670 echo $ECHO_N "(cached) $ECHO_C" >&6
21671 else
21672
21673 gtk_version_cached=0
21674 echo "$as_me:$LINENO: result: " >&5
21675 echo "${ECHO_T}" >&6
21676
21677 GTK_MODULES=
21678 if test "$wxUSE_THREADS" = "yes"; then
21679 GTK_MODULES=gthread
21680 fi
21681
21682 wx_cv_lib_gtk=
21683 if test "x$wxUSE_GTK2" = "xyes"; then
21684 # Check whether --enable-gtktest or --disable-gtktest was given.
21685 if test "${enable_gtktest+set}" = set; then
21686 enableval="$enable_gtktest"
21687
21688 else
21689 enable_gtktest=yes
21690 fi;
21691
21692 pkg_config_args=gtk+-2.0
21693 for module in . $GTK_MODULES
21694 do
21695 case "$module" in
21696 gthread)
21697 pkg_config_args="$pkg_config_args gthread-2.0"
21698 ;;
21699 esac
21700 done
21701
21702 no_gtk=""
21703
21704 # Extract the first word of "pkg-config", so it can be a program name with args.
21705 set dummy pkg-config; ac_word=$2
21706 echo "$as_me:$LINENO: checking for $ac_word" >&5
21707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21708 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21709 echo $ECHO_N "(cached) $ECHO_C" >&6
21710 else
21711 case $PKG_CONFIG in
21712 [\\/]* | ?:[\\/]*)
21713 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21714 ;;
21715 *)
21716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21717 for as_dir in $PATH
21718 do
21719 IFS=$as_save_IFS
21720 test -z "$as_dir" && as_dir=.
21721 for ac_exec_ext in '' $ac_executable_extensions; do
21722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21723 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21725 break 2
21726 fi
21727 done
21728 done
21729
21730 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21731 ;;
21732 esac
21733 fi
21734 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21735
21736 if test -n "$PKG_CONFIG"; then
21737 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21738 echo "${ECHO_T}$PKG_CONFIG" >&6
21739 else
21740 echo "$as_me:$LINENO: result: no" >&5
21741 echo "${ECHO_T}no" >&6
21742 fi
21743
21744
21745 if test x$PKG_CONFIG != xno ; then
21746 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21747 :
21748 else
21749 echo *** pkg-config too old; version 0.7 or better required.
21750 no_gtk=yes
21751 PKG_CONFIG=no
21752 fi
21753 else
21754 no_gtk=yes
21755 fi
21756
21757 min_gtk_version=2.0.0
21758 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21759 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
21760
21761 if test x$PKG_CONFIG != xno ; then
21762 ## don't try to run the test against uninstalled libtool libs
21763 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21764 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21765 enable_gtktest=no
21766 fi
21767
21768 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21769 :
21770 else
21771 no_gtk=yes
21772 fi
21773 fi
21774
21775 if test x"$no_gtk" = x ; then
21776 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21777 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21778 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21779 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21780 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21781 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21782 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21783 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21784 if test "x$enable_gtktest" = "xyes" ; then
21785 ac_save_CFLAGS="$CFLAGS"
21786 ac_save_LIBS="$LIBS"
21787 CFLAGS="$CFLAGS $GTK_CFLAGS"
21788 LIBS="$GTK_LIBS $LIBS"
21789 rm -f conf.gtktest
21790 if test "$cross_compiling" = yes; then
21791 echo $ac_n "cross compiling; assumed OK... $ac_c"
21792 else
21793 cat >conftest.$ac_ext <<_ACEOF
21794 /* confdefs.h. */
21795 _ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21799
21800 #include <gtk/gtk.h>
21801 #include <stdio.h>
21802 #include <stdlib.h>
21803
21804 int
21805 main ()
21806 {
21807 int major, minor, micro;
21808 char *tmp_version;
21809
21810 system ("touch conf.gtktest");
21811
21812 /* HP/UX 9 (%@#!) writes to sscanf strings */
21813 tmp_version = g_strdup("$min_gtk_version");
21814 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21815 printf("%s, bad version string\n", "$min_gtk_version");
21816 exit(1);
21817 }
21818
21819 if ((gtk_major_version != $gtk_config_major_version) ||
21820 (gtk_minor_version != $gtk_config_minor_version) ||
21821 (gtk_micro_version != $gtk_config_micro_version))
21822 {
21823 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21824 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21825 gtk_major_version, gtk_minor_version, gtk_micro_version);
21826 printf ("*** was found! If pkg-config was correct, then it is best\n");
21827 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21828 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21829 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21830 printf("*** required on your system.\n");
21831 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21832 printf("*** to point to the correct configuration files\n");
21833 }
21834 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21835 (gtk_minor_version != GTK_MINOR_VERSION) ||
21836 (gtk_micro_version != GTK_MICRO_VERSION))
21837 {
21838 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21839 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21840 printf("*** library (version %d.%d.%d)\n",
21841 gtk_major_version, gtk_minor_version, gtk_micro_version);
21842 }
21843 else
21844 {
21845 if ((gtk_major_version > major) ||
21846 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21847 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21848 {
21849 return 0;
21850 }
21851 else
21852 {
21853 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21854 gtk_major_version, gtk_minor_version, gtk_micro_version);
21855 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21856 major, minor, micro);
21857 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21858 printf("***\n");
21859 printf("*** If you have already installed a sufficiently new version, this error\n");
21860 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21861 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21862 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21863 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21864 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21865 printf("*** so that the correct libraries are found at run-time))\n");
21866 }
21867 }
21868 return 1;
21869 }
21870
21871 _ACEOF
21872 rm -f conftest$ac_exeext
21873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21874 (eval $ac_link) 2>&5
21875 ac_status=$?
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21880 ac_status=$?
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; }; then
21883 :
21884 else
21885 echo "$as_me: program exited with status $ac_status" >&5
21886 echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21888
21889 ( exit $ac_status )
21890 no_gtk=yes
21891 fi
21892 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21893 fi
21894 CFLAGS="$ac_save_CFLAGS"
21895 LIBS="$ac_save_LIBS"
21896 fi
21897 fi
21898 if test "x$no_gtk" = x ; then
21899 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21900 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21901 wx_cv_lib_gtk=2.0
21902 else
21903 echo "$as_me:$LINENO: result: no" >&5
21904 echo "${ECHO_T}no" >&6
21905 if test "$PKG_CONFIG" = "no" ; then
21906 echo "*** A new enough version of pkg-config was not found."
21907 echo "*** See http://pkgconfig.sourceforge.net"
21908 else
21909 if test -f conf.gtktest ; then
21910 :
21911 else
21912 echo "*** Could not run GTK+ test program, checking why..."
21913 ac_save_CFLAGS="$CFLAGS"
21914 ac_save_LIBS="$LIBS"
21915 CFLAGS="$CFLAGS $GTK_CFLAGS"
21916 LIBS="$LIBS $GTK_LIBS"
21917 cat >conftest.$ac_ext <<_ACEOF
21918 /* confdefs.h. */
21919 _ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h. */
21923
21924 #include <gtk/gtk.h>
21925 #include <stdio.h>
21926
21927 int
21928 main ()
21929 {
21930 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21931 ;
21932 return 0;
21933 }
21934 _ACEOF
21935 rm -f conftest.$ac_objext conftest$ac_exeext
21936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21937 (eval $ac_link) 2>conftest.er1
21938 ac_status=$?
21939 grep -v '^ *+' conftest.er1 >conftest.err
21940 rm -f conftest.er1
21941 cat conftest.err >&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } &&
21944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21946 (eval $ac_try) 2>&5
21947 ac_status=$?
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); }; } &&
21950 { ac_try='test -s conftest$ac_exeext'
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21953 ac_status=$?
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; }; then
21956 echo "*** The test program compiled, but did not run. This usually means"
21957 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21958 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21959 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21960 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21961 echo "*** is required on your system"
21962 echo "***"
21963 echo "*** If you have an old version installed, it is best to remove it, although"
21964 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21965 else
21966 echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21968
21969 echo "*** The test program failed to compile or link. See the file config.log for the"
21970 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
21971 fi
21972 rm -f conftest.err conftest.$ac_objext \
21973 conftest$ac_exeext conftest.$ac_ext
21974 CFLAGS="$ac_save_CFLAGS"
21975 LIBS="$ac_save_LIBS"
21976 fi
21977 fi
21978 GTK_CFLAGS=""
21979 GTK_LIBS=""
21980 :
21981 fi
21982
21983
21984 rm -f conf.gtktest
21985
21986 else
21987
21988 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21989 if test "${with_gtk_prefix+set}" = set; then
21990 withval="$with_gtk_prefix"
21991 gtk_config_prefix="$withval"
21992 else
21993 gtk_config_prefix=""
21994 fi;
21995
21996 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21997 if test "${with_gtk_exec_prefix+set}" = set; then
21998 withval="$with_gtk_exec_prefix"
21999 gtk_config_exec_prefix="$withval"
22000 else
22001 gtk_config_exec_prefix=""
22002 fi;
22003 # Check whether --enable-gtktest or --disable-gtktest was given.
22004 if test "${enable_gtktest+set}" = set; then
22005 enableval="$enable_gtktest"
22006
22007 else
22008 enable_gtktest=yes
22009 fi;
22010
22011 for module in . $GTK_MODULES
22012 do
22013 case "$module" in
22014 gthread)
22015 gtk_config_args="$gtk_config_args gthread"
22016 ;;
22017 esac
22018 done
22019
22020 if test x$gtk_config_exec_prefix != x ; then
22021 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22022 if test x${GTK_CONFIG+set} != xset ; then
22023 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22024 fi
22025 fi
22026 if test x$gtk_config_prefix != x ; then
22027 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22028 if test x${GTK_CONFIG+set} != xset ; then
22029 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22030 fi
22031 fi
22032
22033 # Extract the first word of "gtk-config", so it can be a program name with args.
22034 set dummy gtk-config; ac_word=$2
22035 echo "$as_me:$LINENO: checking for $ac_word" >&5
22036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22037 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 else
22040 case $GTK_CONFIG in
22041 [\\/]* | ?:[\\/]*)
22042 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22043 ;;
22044 *)
22045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22046 for as_dir in $PATH
22047 do
22048 IFS=$as_save_IFS
22049 test -z "$as_dir" && as_dir=.
22050 for ac_exec_ext in '' $ac_executable_extensions; do
22051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22052 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22054 break 2
22055 fi
22056 done
22057 done
22058
22059 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22060 ;;
22061 esac
22062 fi
22063 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22064
22065 if test -n "$GTK_CONFIG"; then
22066 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22067 echo "${ECHO_T}$GTK_CONFIG" >&6
22068 else
22069 echo "$as_me:$LINENO: result: no" >&5
22070 echo "${ECHO_T}no" >&6
22071 fi
22072
22073 min_gtk_version=1.2.7
22074 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22075 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22076 no_gtk=""
22077 if test "$GTK_CONFIG" = "no" ; then
22078 no_gtk=yes
22079 else
22080 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22081 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22082 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22083 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22084 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22085 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22086 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22087 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22088 if test "x$enable_gtktest" = "xyes" ; then
22089 ac_save_CFLAGS="$CFLAGS"
22090 ac_save_LIBS="$LIBS"
22091 CFLAGS="$CFLAGS $GTK_CFLAGS"
22092 LIBS="$GTK_LIBS $LIBS"
22093 rm -f conf.gtktest
22094 if test "$cross_compiling" = yes; then
22095 echo $ac_n "cross compiling; assumed OK... $ac_c"
22096 else
22097 cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h. */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103
22104 #include <gtk/gtk.h>
22105 #include <stdio.h>
22106 #include <stdlib.h>
22107
22108 int
22109 main ()
22110 {
22111 int major, minor, micro;
22112 char *tmp_version;
22113
22114 system ("touch conf.gtktest");
22115
22116 /* HP/UX 9 (%@#!) writes to sscanf strings */
22117 tmp_version = g_strdup("$min_gtk_version");
22118 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22119 printf("%s, bad version string\n", "$min_gtk_version");
22120 exit(1);
22121 }
22122
22123 if ((gtk_major_version != $gtk_config_major_version) ||
22124 (gtk_minor_version != $gtk_config_minor_version) ||
22125 (gtk_micro_version != $gtk_config_micro_version))
22126 {
22127 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22128 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22129 gtk_major_version, gtk_minor_version, gtk_micro_version);
22130 printf ("*** was found! If gtk-config was correct, then it is best\n");
22131 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22132 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22133 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22134 printf("*** required on your system.\n");
22135 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22136 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22137 printf("*** before re-running configure\n");
22138 }
22139 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22140 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22141 (gtk_minor_version != GTK_MINOR_VERSION) ||
22142 (gtk_micro_version != GTK_MICRO_VERSION))
22143 {
22144 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22145 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22146 printf("*** library (version %d.%d.%d)\n",
22147 gtk_major_version, gtk_minor_version, gtk_micro_version);
22148 }
22149 #endif /* defined (GTK_MAJOR_VERSION) ... */
22150 else
22151 {
22152 if ((gtk_major_version > major) ||
22153 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22154 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22155 {
22156 return 0;
22157 }
22158 else
22159 {
22160 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22161 gtk_major_version, gtk_minor_version, gtk_micro_version);
22162 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22163 major, minor, micro);
22164 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22165 printf("***\n");
22166 printf("*** If you have already installed a sufficiently new version, this error\n");
22167 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22168 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22169 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22170 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22171 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22172 printf("*** so that the correct libraries are found at run-time))\n");
22173 }
22174 }
22175 return 1;
22176 }
22177
22178 _ACEOF
22179 rm -f conftest$ac_exeext
22180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22181 (eval $ac_link) 2>&5
22182 ac_status=$?
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186 (eval $ac_try) 2>&5
22187 ac_status=$?
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); }; }; then
22190 :
22191 else
22192 echo "$as_me: program exited with status $ac_status" >&5
22193 echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22195
22196 ( exit $ac_status )
22197 no_gtk=yes
22198 fi
22199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22200 fi
22201 CFLAGS="$ac_save_CFLAGS"
22202 LIBS="$ac_save_LIBS"
22203 fi
22204 fi
22205 if test "x$no_gtk" = x ; then
22206 echo "$as_me:$LINENO: result: yes" >&5
22207 echo "${ECHO_T}yes" >&6
22208 wx_cv_lib_gtk=1.2.7
22209 else
22210 echo "$as_me:$LINENO: result: no" >&5
22211 echo "${ECHO_T}no" >&6
22212 if test "$GTK_CONFIG" = "no" ; then
22213 echo "*** The gtk-config script installed by GTK could not be found"
22214 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22215 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22216 echo "*** full path to gtk-config."
22217 else
22218 if test -f conf.gtktest ; then
22219 :
22220 else
22221 echo "*** Could not run GTK test program, checking why..."
22222 CFLAGS="$CFLAGS $GTK_CFLAGS"
22223 LIBS="$LIBS $GTK_LIBS"
22224 cat >conftest.$ac_ext <<_ACEOF
22225 /* confdefs.h. */
22226 _ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h. */
22230
22231 #include <gtk/gtk.h>
22232 #include <stdio.h>
22233
22234 int
22235 main ()
22236 {
22237 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22238 ;
22239 return 0;
22240 }
22241 _ACEOF
22242 rm -f conftest.$ac_objext conftest$ac_exeext
22243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22244 (eval $ac_link) 2>conftest.er1
22245 ac_status=$?
22246 grep -v '^ *+' conftest.er1 >conftest.err
22247 rm -f conftest.er1
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } &&
22251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253 (eval $ac_try) 2>&5
22254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; } &&
22257 { ac_try='test -s conftest$ac_exeext'
22258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259 (eval $ac_try) 2>&5
22260 ac_status=$?
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); }; }; then
22263 echo "*** The test program compiled, but did not run. This usually means"
22264 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22265 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22266 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22267 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22268 echo "*** is required on your system"
22269 echo "***"
22270 echo "*** If you have an old version installed, it is best to remove it, although"
22271 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22272 echo "***"
22273 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22274 echo "*** came with the system with the command"
22275 echo "***"
22276 echo "*** rpm --erase --nodeps gtk gtk-devel"
22277 else
22278 echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22280
22281 echo "*** The test program failed to compile or link. See the file config.log for the"
22282 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22283 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22284 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22285 fi
22286 rm -f conftest.err conftest.$ac_objext \
22287 conftest$ac_exeext conftest.$ac_ext
22288 CFLAGS="$ac_save_CFLAGS"
22289 LIBS="$ac_save_LIBS"
22290 fi
22291 fi
22292 GTK_CFLAGS=""
22293 GTK_LIBS=""
22294 :
22295 fi
22296
22297
22298 rm -f conf.gtktest
22299
22300
22301 if test -z "$wx_cv_lib_gtk"; then
22302
22303 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22304 if test "${with_gtk_prefix+set}" = set; then
22305 withval="$with_gtk_prefix"
22306 gtk_config_prefix="$withval"
22307 else
22308 gtk_config_prefix=""
22309 fi;
22310
22311 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22312 if test "${with_gtk_exec_prefix+set}" = set; then
22313 withval="$with_gtk_exec_prefix"
22314 gtk_config_exec_prefix="$withval"
22315 else
22316 gtk_config_exec_prefix=""
22317 fi;
22318 # Check whether --enable-gtktest or --disable-gtktest was given.
22319 if test "${enable_gtktest+set}" = set; then
22320 enableval="$enable_gtktest"
22321
22322 else
22323 enable_gtktest=yes
22324 fi;
22325
22326 for module in . $GTK_MODULES
22327 do
22328 case "$module" in
22329 gthread)
22330 gtk_config_args="$gtk_config_args gthread"
22331 ;;
22332 esac
22333 done
22334
22335 if test x$gtk_config_exec_prefix != x ; then
22336 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22337 if test x${GTK_CONFIG+set} != xset ; then
22338 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22339 fi
22340 fi
22341 if test x$gtk_config_prefix != x ; then
22342 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22343 if test x${GTK_CONFIG+set} != xset ; then
22344 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22345 fi
22346 fi
22347
22348 # Extract the first word of "gtk-config", so it can be a program name with args.
22349 set dummy gtk-config; ac_word=$2
22350 echo "$as_me:$LINENO: checking for $ac_word" >&5
22351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22352 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22354 else
22355 case $GTK_CONFIG in
22356 [\\/]* | ?:[\\/]*)
22357 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22358 ;;
22359 *)
22360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22361 for as_dir in $PATH
22362 do
22363 IFS=$as_save_IFS
22364 test -z "$as_dir" && as_dir=.
22365 for ac_exec_ext in '' $ac_executable_extensions; do
22366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22367 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22369 break 2
22370 fi
22371 done
22372 done
22373
22374 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22375 ;;
22376 esac
22377 fi
22378 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22379
22380 if test -n "$GTK_CONFIG"; then
22381 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22382 echo "${ECHO_T}$GTK_CONFIG" >&6
22383 else
22384 echo "$as_me:$LINENO: result: no" >&5
22385 echo "${ECHO_T}no" >&6
22386 fi
22387
22388 min_gtk_version=1.2.3
22389 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22390 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22391 no_gtk=""
22392 if test "$GTK_CONFIG" = "no" ; then
22393 no_gtk=yes
22394 else
22395 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22396 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22397 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22398 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22399 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22400 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22401 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22402 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22403 if test "x$enable_gtktest" = "xyes" ; then
22404 ac_save_CFLAGS="$CFLAGS"
22405 ac_save_LIBS="$LIBS"
22406 CFLAGS="$CFLAGS $GTK_CFLAGS"
22407 LIBS="$GTK_LIBS $LIBS"
22408 rm -f conf.gtktest
22409 if test "$cross_compiling" = yes; then
22410 echo $ac_n "cross compiling; assumed OK... $ac_c"
22411 else
22412 cat >conftest.$ac_ext <<_ACEOF
22413 /* confdefs.h. */
22414 _ACEOF
22415 cat confdefs.h >>conftest.$ac_ext
22416 cat >>conftest.$ac_ext <<_ACEOF
22417 /* end confdefs.h. */
22418
22419 #include <gtk/gtk.h>
22420 #include <stdio.h>
22421 #include <stdlib.h>
22422
22423 int
22424 main ()
22425 {
22426 int major, minor, micro;
22427 char *tmp_version;
22428
22429 system ("touch conf.gtktest");
22430
22431 /* HP/UX 9 (%@#!) writes to sscanf strings */
22432 tmp_version = g_strdup("$min_gtk_version");
22433 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22434 printf("%s, bad version string\n", "$min_gtk_version");
22435 exit(1);
22436 }
22437
22438 if ((gtk_major_version != $gtk_config_major_version) ||
22439 (gtk_minor_version != $gtk_config_minor_version) ||
22440 (gtk_micro_version != $gtk_config_micro_version))
22441 {
22442 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22443 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22444 gtk_major_version, gtk_minor_version, gtk_micro_version);
22445 printf ("*** was found! If gtk-config was correct, then it is best\n");
22446 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22447 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22448 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22449 printf("*** required on your system.\n");
22450 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22451 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22452 printf("*** before re-running configure\n");
22453 }
22454 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22455 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22456 (gtk_minor_version != GTK_MINOR_VERSION) ||
22457 (gtk_micro_version != GTK_MICRO_VERSION))
22458 {
22459 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22460 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22461 printf("*** library (version %d.%d.%d)\n",
22462 gtk_major_version, gtk_minor_version, gtk_micro_version);
22463 }
22464 #endif /* defined (GTK_MAJOR_VERSION) ... */
22465 else
22466 {
22467 if ((gtk_major_version > major) ||
22468 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22469 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22470 {
22471 return 0;
22472 }
22473 else
22474 {
22475 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22476 gtk_major_version, gtk_minor_version, gtk_micro_version);
22477 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22478 major, minor, micro);
22479 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22480 printf("***\n");
22481 printf("*** If you have already installed a sufficiently new version, this error\n");
22482 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22483 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22484 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22485 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22486 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22487 printf("*** so that the correct libraries are found at run-time))\n");
22488 }
22489 }
22490 return 1;
22491 }
22492
22493 _ACEOF
22494 rm -f conftest$ac_exeext
22495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22496 (eval $ac_link) 2>&5
22497 ac_status=$?
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501 (eval $ac_try) 2>&5
22502 ac_status=$?
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; }; then
22505 :
22506 else
22507 echo "$as_me: program exited with status $ac_status" >&5
22508 echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22510
22511 ( exit $ac_status )
22512 no_gtk=yes
22513 fi
22514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22515 fi
22516 CFLAGS="$ac_save_CFLAGS"
22517 LIBS="$ac_save_LIBS"
22518 fi
22519 fi
22520 if test "x$no_gtk" = x ; then
22521 echo "$as_me:$LINENO: result: yes" >&5
22522 echo "${ECHO_T}yes" >&6
22523 wx_cv_lib_gtk=1.2.3
22524 else
22525 echo "$as_me:$LINENO: result: no" >&5
22526 echo "${ECHO_T}no" >&6
22527 if test "$GTK_CONFIG" = "no" ; then
22528 echo "*** The gtk-config script installed by GTK could not be found"
22529 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22530 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22531 echo "*** full path to gtk-config."
22532 else
22533 if test -f conf.gtktest ; then
22534 :
22535 else
22536 echo "*** Could not run GTK test program, checking why..."
22537 CFLAGS="$CFLAGS $GTK_CFLAGS"
22538 LIBS="$LIBS $GTK_LIBS"
22539 cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h. */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22545
22546 #include <gtk/gtk.h>
22547 #include <stdio.h>
22548
22549 int
22550 main ()
22551 {
22552 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22553 ;
22554 return 0;
22555 }
22556 _ACEOF
22557 rm -f conftest.$ac_objext conftest$ac_exeext
22558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22559 (eval $ac_link) 2>conftest.er1
22560 ac_status=$?
22561 grep -v '^ *+' conftest.er1 >conftest.err
22562 rm -f conftest.er1
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } &&
22566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; } &&
22572 { ac_try='test -s conftest$ac_exeext'
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; }; then
22578 echo "*** The test program compiled, but did not run. This usually means"
22579 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22580 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22581 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22582 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22583 echo "*** is required on your system"
22584 echo "***"
22585 echo "*** If you have an old version installed, it is best to remove it, although"
22586 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22587 echo "***"
22588 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22589 echo "*** came with the system with the command"
22590 echo "***"
22591 echo "*** rpm --erase --nodeps gtk gtk-devel"
22592 else
22593 echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22595
22596 echo "*** The test program failed to compile or link. See the file config.log for the"
22597 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22598 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22599 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22600 fi
22601 rm -f conftest.err conftest.$ac_objext \
22602 conftest$ac_exeext conftest.$ac_ext
22603 CFLAGS="$ac_save_CFLAGS"
22604 LIBS="$ac_save_LIBS"
22605 fi
22606 fi
22607 GTK_CFLAGS=""
22608 GTK_LIBS=""
22609 :
22610 fi
22611
22612
22613 rm -f conf.gtktest
22614
22615 fi
22616 fi
22617
22618 if test -z "$wx_cv_lib_gtk"; then
22619 wx_cv_lib_gtk=none
22620 else
22621 wx_cv_cflags_gtk=$GTK_CFLAGS
22622 wx_cv_libs_gtk=$GTK_LIBS
22623 fi
22624
22625
22626 fi
22627
22628
22629 if test "$gtk_version_cached" = 1; then
22630 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22631 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
22632 fi
22633
22634 case "$wx_cv_lib_gtk" in
22635 2.0) WXGTK20=1
22636 TOOLKIT_VERSION=2
22637 ;;
22638 1.2.7) WXGTK127=1
22639 WXGTK12=1
22640 ;;
22641 1.2.3) WXGTK12=1
22642 ;;
22643 *) { { echo "$as_me:$LINENO: error:
22644 Please check that gtk-config is in path, the directory
22645 where GTK+ libraries are installed (returned by
22646 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22647 equivalent variable and GTK+ is version 1.2.3 or above.
22648 " >&5
22649 echo "$as_me: error:
22650 Please check that gtk-config is in path, the directory
22651 where GTK+ libraries are installed (returned by
22652 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22653 equivalent variable and GTK+ is version 1.2.3 or above.
22654 " >&2;}
22655 { (exit 1); exit 1; }; }
22656 ;;
22657 esac
22658
22659 if test "$WXGTK20" = 1; then
22660 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
22661
22662 succeeded=no
22663
22664 if test -z "$PKG_CONFIG"; then
22665 # Extract the first word of "pkg-config", so it can be a program name with args.
22666 set dummy pkg-config; ac_word=$2
22667 echo "$as_me:$LINENO: checking for $ac_word" >&5
22668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22669 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22670 echo $ECHO_N "(cached) $ECHO_C" >&6
22671 else
22672 case $PKG_CONFIG in
22673 [\\/]* | ?:[\\/]*)
22674 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22675 ;;
22676 *)
22677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22678 for as_dir in $PATH
22679 do
22680 IFS=$as_save_IFS
22681 test -z "$as_dir" && as_dir=.
22682 for ac_exec_ext in '' $ac_executable_extensions; do
22683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22684 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22686 break 2
22687 fi
22688 done
22689 done
22690
22691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22692 ;;
22693 esac
22694 fi
22695 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22696
22697 if test -n "$PKG_CONFIG"; then
22698 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22699 echo "${ECHO_T}$PKG_CONFIG" >&6
22700 else
22701 echo "$as_me:$LINENO: result: no" >&5
22702 echo "${ECHO_T}no" >&6
22703 fi
22704
22705 fi
22706
22707 if test "$PKG_CONFIG" = "no" ; then
22708 echo "*** The pkg-config script could not be found. Make sure it is"
22709 echo "*** in your path, or set the PKG_CONFIG environment variable"
22710 echo "*** to the full path to pkg-config."
22711 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22712 else
22713 PKG_CONFIG_MIN_VERSION=0.9.0
22714 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22715 echo "$as_me:$LINENO: checking for pangoft2" >&5
22716 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22717
22718 if $PKG_CONFIG --exists "pangoft2" ; then
22719 echo "$as_me:$LINENO: result: yes" >&5
22720 echo "${ECHO_T}yes" >&6
22721 succeeded=yes
22722
22723 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22724 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22725 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22726 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22727 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22728
22729 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22730 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22731 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22732 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22733 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22734 else
22735 PANGOFT2_CFLAGS=""
22736 PANGOFT2_LIBS=""
22737 ## If we have a custom action on failure, don't print errors, but
22738 ## do set a variable so people can do so.
22739 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22740
22741 fi
22742
22743
22744
22745 else
22746 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22747 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22748 fi
22749 fi
22750
22751 if test $succeeded = yes; then
22752
22753 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22754 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22755
22756 else
22757
22758 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22759 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22760 wxUSE_PRINTING_ARCHITECTURE="no"
22761
22762
22763 fi
22764
22765 fi
22766 else
22767 if test "$wxUSE_UNICODE" = "yes"; then
22768 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22769 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
22770 wxUSE_UNICODE=no
22771 fi
22772 fi
22773
22774 if test "$USE_DARWIN" != 1; then
22775
22776 for ac_func in poll
22777 do
22778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22779 echo "$as_me:$LINENO: checking for $ac_func" >&5
22780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22781 if eval "test \"\${$as_ac_var+set}\" = set"; then
22782 echo $ECHO_N "(cached) $ECHO_C" >&6
22783 else
22784 cat >conftest.$ac_ext <<_ACEOF
22785 /* confdefs.h. */
22786 _ACEOF
22787 cat confdefs.h >>conftest.$ac_ext
22788 cat >>conftest.$ac_ext <<_ACEOF
22789 /* end confdefs.h. */
22790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22792 #define $ac_func innocuous_$ac_func
22793
22794 /* System header to define __stub macros and hopefully few prototypes,
22795 which can conflict with char $ac_func (); below.
22796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22797 <limits.h> exists even on freestanding compilers. */
22798
22799 #ifdef __STDC__
22800 # include <limits.h>
22801 #else
22802 # include <assert.h>
22803 #endif
22804
22805 #undef $ac_func
22806
22807 /* Override any gcc2 internal prototype to avoid an error. */
22808 #ifdef __cplusplus
22809 extern "C"
22810 {
22811 #endif
22812 /* We use char because int might match the return type of a gcc2
22813 builtin and then its argument prototype would still apply. */
22814 char $ac_func ();
22815 /* The GNU C library defines this for functions which it implements
22816 to always fail with ENOSYS. Some functions are actually named
22817 something starting with __ and the normal name is an alias. */
22818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22819 choke me
22820 #else
22821 char (*f) () = $ac_func;
22822 #endif
22823 #ifdef __cplusplus
22824 }
22825 #endif
22826
22827 int
22828 main ()
22829 {
22830 return f != $ac_func;
22831 ;
22832 return 0;
22833 }
22834 _ACEOF
22835 rm -f conftest.$ac_objext conftest$ac_exeext
22836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22837 (eval $ac_link) 2>conftest.er1
22838 ac_status=$?
22839 grep -v '^ *+' conftest.er1 >conftest.err
22840 rm -f conftest.er1
22841 cat conftest.err >&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } &&
22844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846 (eval $ac_try) 2>&5
22847 ac_status=$?
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; } &&
22850 { ac_try='test -s conftest$ac_exeext'
22851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22853 ac_status=$?
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); }; }; then
22856 eval "$as_ac_var=yes"
22857 else
22858 echo "$as_me: failed program was:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22860
22861 eval "$as_ac_var=no"
22862 fi
22863 rm -f conftest.err conftest.$ac_objext \
22864 conftest$ac_exeext conftest.$ac_ext
22865 fi
22866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22868 if test `eval echo '${'$as_ac_var'}'` = yes; then
22869 cat >>confdefs.h <<_ACEOF
22870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22871 _ACEOF
22872
22873 fi
22874 done
22875
22876 fi
22877
22878 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
22879 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
22880
22881 AFMINSTALL=afminstall
22882 TOOLKIT=GTK
22883 GUIDIST=GTK_DIST
22884
22885 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22886 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22887 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22888 echo $ECHO_N "(cached) $ECHO_C" >&6
22889 else
22890 ac_check_lib_save_LIBS=$LIBS
22891 LIBS="-lgdk $LIBS"
22892 cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h. */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898
22899 /* Override any gcc2 internal prototype to avoid an error. */
22900 #ifdef __cplusplus
22901 extern "C"
22902 #endif
22903 /* We use char because int might match the return type of a gcc2
22904 builtin and then its argument prototype would still apply. */
22905 char gdk_im_open ();
22906 int
22907 main ()
22908 {
22909 gdk_im_open ();
22910 ;
22911 return 0;
22912 }
22913 _ACEOF
22914 rm -f conftest.$ac_objext conftest$ac_exeext
22915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22916 (eval $ac_link) 2>conftest.er1
22917 ac_status=$?
22918 grep -v '^ *+' conftest.er1 >conftest.err
22919 rm -f conftest.er1
22920 cat conftest.err >&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } &&
22923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; } &&
22929 { ac_try='test -s conftest$ac_exeext'
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; }; then
22935 ac_cv_lib_gdk_gdk_im_open=yes
22936 else
22937 echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22939
22940 ac_cv_lib_gdk_gdk_im_open=no
22941 fi
22942 rm -f conftest.err conftest.$ac_objext \
22943 conftest$ac_exeext conftest.$ac_ext
22944 LIBS=$ac_check_lib_save_LIBS
22945 fi
22946 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22947 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22948 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22949 cat >>confdefs.h <<\_ACEOF
22950 #define HAVE_XIM 1
22951 _ACEOF
22952
22953 fi
22954
22955
22956
22957 if test "$wxUSE_GPE" = "yes"; then
22958 echo "$as_me:$LINENO: checking for gpewidget library" >&5
22959 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
22960
22961 ac_find_libraries=
22962 for ac_dir in $SEARCH_LIB /usr/lib;
22963 do
22964 for ac_extension in a so sl dylib; do
22965 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
22966 ac_find_libraries=$ac_dir
22967 break 2
22968 fi
22969 done
22970 done
22971
22972 if test "$ac_find_libraries" != "" ; then
22973
22974 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22975 result=$?
22976 if test $result = 0; then
22977 ac_path_to_link=""
22978 else
22979 ac_path_to_link=" -L$ac_find_libraries"
22980 fi
22981
22982 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
22983 WXGPE=1
22984 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22985 echo "${ECHO_T}found at $ac_find_libraries" >&6
22986 else
22987 echo "$as_me:$LINENO: result: not found" >&5
22988 echo "${ECHO_T}not found" >&6
22989 fi
22990
22991 fi
22992 fi
22993
22994 if test "$wxUSE_MGL" = 1; then
22995 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22996 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
22997 if test "x$MGL_ROOT" = x ; then
22998 echo "$as_me:$LINENO: result: not found" >&5
22999 echo "${ECHO_T}not found" >&6
23000 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23001 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23002 { (exit 1); exit 1; }; }
23003 else
23004 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23005 echo "${ECHO_T}$MGL_ROOT" >&6
23006 fi
23007
23008 echo "$as_me:$LINENO: checking for libmgl location" >&5
23009 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23010 case "${host}" in
23011 *-*-linux* )
23012 if test "x$wxUSE_SHARED" = xyes ; then
23013 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23014 else
23015 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23016 fi
23017 ;;
23018 *-pc-msdosdjgpp )
23019 mgl_os_candidates="dos32/dj2"
23020 ;;
23021 *)
23022 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23023 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23024 { (exit 1); exit 1; }; }
23025 esac
23026
23027 mgl_lib_type=""
23028 mgl_os=""
23029
23030 for mgl_os_i in $mgl_os_candidates ; do
23031 if test "x$mgl_os" = x ; then
23032 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23033 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23034 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23035 mgl_lib_type=debug
23036 mgl_os=$mgl_os_i
23037 fi
23038 fi
23039 if test "x$mgl_lib_type" = x ; then
23040 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23041 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23042 mgl_lib_type=release
23043 mgl_os=$mgl_os_i
23044 fi
23045 fi
23046 fi
23047 done
23048
23049 if test "x$mgl_os" = x ; then
23050 echo "$as_me:$LINENO: result: not found" >&5
23051 echo "${ECHO_T}not found" >&6
23052 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23053 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23054 { (exit 1); exit 1; }; }
23055 fi
23056 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23057 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23058
23059 wxUSE_UNIVERSAL="yes"
23060
23061 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23062 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23063
23064 AFMINSTALL=afminstall
23065 TOOLKIT=MGL
23066 GUIDIST=MGL_DIST
23067 fi
23068
23069 if test "$wxUSE_MICROWIN" = 1; then
23070 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23071 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23072 if test "x$MICROWINDOWS" = x ; then
23073 echo "$as_me:$LINENO: result: not found" >&5
23074 echo "${ECHO_T}not found" >&6
23075 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23076 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23077 { (exit 1); exit 1; }; }
23078 else
23079 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23080 echo "${ECHO_T}$MICROWINDOWS" >&6
23081 fi
23082
23083 if test -f $MICROWINDOWS/lib/libmwin.a; then
23084 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23085 echo "${ECHO_T}MicroWindows' libraries found." >&6
23086 else
23087 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23088 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23089 { (exit 1); exit 1; }; }
23090 fi
23091
23092 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23093 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23094
23095 wxUSE_UNIVERSAL="yes"
23096
23097 AFMINSTALL=afminstall
23098 TOOLKIT=MICROWIN
23099 GUIDIST=MICROWIN_DIST
23100
23101 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23102 fi
23103
23104 if test "$wxUSE_X11" = 1; then
23105 echo "$as_me:$LINENO: checking for X" >&5
23106 echo $ECHO_N "checking for X... $ECHO_C" >&6
23107
23108
23109 # Check whether --with-x or --without-x was given.
23110 if test "${with_x+set}" = set; then
23111 withval="$with_x"
23112
23113 fi;
23114 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23115 if test "x$with_x" = xno; then
23116 # The user explicitly disabled X.
23117 have_x=disabled
23118 else
23119 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23120 # Both variables are already set.
23121 have_x=yes
23122 else
23123 if test "${ac_cv_have_x+set}" = set; then
23124 echo $ECHO_N "(cached) $ECHO_C" >&6
23125 else
23126 # One or both of the vars are not set, and there is no cached value.
23127 ac_x_includes=no ac_x_libraries=no
23128 rm -fr conftest.dir
23129 if mkdir conftest.dir; then
23130 cd conftest.dir
23131 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23132 cat >Imakefile <<'_ACEOF'
23133 acfindx:
23134 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23135 _ACEOF
23136 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23137 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23138 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23139 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23140 for ac_extension in a so sl; do
23141 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23142 test -f $ac_im_libdir/libX11.$ac_extension; then
23143 ac_im_usrlibdir=$ac_im_libdir; break
23144 fi
23145 done
23146 # Screen out bogus values from the imake configuration. They are
23147 # bogus both because they are the default anyway, and because
23148 # using them would break gcc on systems where it needs fixed includes.
23149 case $ac_im_incroot in
23150 /usr/include) ;;
23151 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23152 esac
23153 case $ac_im_usrlibdir in
23154 /usr/lib | /lib) ;;
23155 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23156 esac
23157 fi
23158 cd ..
23159 rm -fr conftest.dir
23160 fi
23161
23162 # Standard set of common directories for X headers.
23163 # Check X11 before X11Rn because it is often a symlink to the current release.
23164 ac_x_header_dirs='
23165 /usr/X11/include
23166 /usr/X11R6/include
23167 /usr/X11R5/include
23168 /usr/X11R4/include
23169
23170 /usr/include/X11
23171 /usr/include/X11R6
23172 /usr/include/X11R5
23173 /usr/include/X11R4
23174
23175 /usr/local/X11/include
23176 /usr/local/X11R6/include
23177 /usr/local/X11R5/include
23178 /usr/local/X11R4/include
23179
23180 /usr/local/include/X11
23181 /usr/local/include/X11R6
23182 /usr/local/include/X11R5
23183 /usr/local/include/X11R4
23184
23185 /usr/X386/include
23186 /usr/x386/include
23187 /usr/XFree86/include/X11
23188
23189 /usr/include
23190 /usr/local/include
23191 /usr/unsupported/include
23192 /usr/athena/include
23193 /usr/local/x11r5/include
23194 /usr/lpp/Xamples/include
23195
23196 /usr/openwin/include
23197 /usr/openwin/share/include'
23198
23199 if test "$ac_x_includes" = no; then
23200 # Guess where to find include files, by looking for Intrinsic.h.
23201 # First, try using that file with no special directory specified.
23202 cat >conftest.$ac_ext <<_ACEOF
23203 /* confdefs.h. */
23204 _ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h. */
23208 #include <X11/Intrinsic.h>
23209 _ACEOF
23210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23212 ac_status=$?
23213 grep -v '^ *+' conftest.er1 >conftest.err
23214 rm -f conftest.er1
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } >/dev/null; then
23218 if test -s conftest.err; then
23219 ac_cpp_err=$ac_c_preproc_warn_flag
23220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23221 else
23222 ac_cpp_err=
23223 fi
23224 else
23225 ac_cpp_err=yes
23226 fi
23227 if test -z "$ac_cpp_err"; then
23228 # We can compile using X headers with no special include directory.
23229 ac_x_includes=
23230 else
23231 echo "$as_me: failed program was:" >&5
23232 sed 's/^/| /' conftest.$ac_ext >&5
23233
23234 for ac_dir in $ac_x_header_dirs; do
23235 if test -r "$ac_dir/X11/Intrinsic.h"; then
23236 ac_x_includes=$ac_dir
23237 break
23238 fi
23239 done
23240 fi
23241 rm -f conftest.err conftest.$ac_ext
23242 fi # $ac_x_includes = no
23243
23244 if test "$ac_x_libraries" = no; then
23245 # Check for the libraries.
23246 # See if we find them without any special options.
23247 # Don't add to $LIBS permanently.
23248 ac_save_LIBS=$LIBS
23249 LIBS="-lXt $LIBS"
23250 cat >conftest.$ac_ext <<_ACEOF
23251 /* confdefs.h. */
23252 _ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h. */
23256 #include <X11/Intrinsic.h>
23257 int
23258 main ()
23259 {
23260 XtMalloc (0)
23261 ;
23262 return 0;
23263 }
23264 _ACEOF
23265 rm -f conftest.$ac_objext conftest$ac_exeext
23266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23267 (eval $ac_link) 2>conftest.er1
23268 ac_status=$?
23269 grep -v '^ *+' conftest.er1 >conftest.err
23270 rm -f conftest.er1
23271 cat conftest.err >&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } &&
23274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23277 ac_status=$?
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; } &&
23280 { ac_try='test -s conftest$ac_exeext'
23281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282 (eval $ac_try) 2>&5
23283 ac_status=$?
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23286 LIBS=$ac_save_LIBS
23287 # We can link X programs with no special library path.
23288 ac_x_libraries=
23289 else
23290 echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23292
23293 LIBS=$ac_save_LIBS
23294 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23295 do
23296 # Don't even attempt the hair of trying to link an X program!
23297 for ac_extension in a so sl; do
23298 if test -r $ac_dir/libXt.$ac_extension; then
23299 ac_x_libraries=$ac_dir
23300 break 2
23301 fi
23302 done
23303 done
23304 fi
23305 rm -f conftest.err conftest.$ac_objext \
23306 conftest$ac_exeext conftest.$ac_ext
23307 fi # $ac_x_libraries = no
23308
23309 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23310 # Didn't find X anywhere. Cache the known absence of X.
23311 ac_cv_have_x="have_x=no"
23312 else
23313 # Record where we found X for the cache.
23314 ac_cv_have_x="have_x=yes \
23315 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23316 fi
23317 fi
23318
23319 fi
23320 eval "$ac_cv_have_x"
23321 fi # $with_x != no
23322
23323 if test "$have_x" != yes; then
23324 echo "$as_me:$LINENO: result: $have_x" >&5
23325 echo "${ECHO_T}$have_x" >&6
23326 no_x=yes
23327 else
23328 # If each of the values was on the command line, it overrides each guess.
23329 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23330 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23331 # Update the cache value to reflect the command line values.
23332 ac_cv_have_x="have_x=yes \
23333 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23334 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23335 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23336 fi
23337
23338 if test "$no_x" = yes; then
23339 # Not all programs may use this symbol, but it does not hurt to define it.
23340
23341 cat >>confdefs.h <<\_ACEOF
23342 #define X_DISPLAY_MISSING 1
23343 _ACEOF
23344
23345 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23346 else
23347 if test -n "$x_includes"; then
23348 X_CFLAGS="$X_CFLAGS -I$x_includes"
23349 fi
23350
23351 # It would also be nice to do this for all -L options, not just this one.
23352 if test -n "$x_libraries"; then
23353 X_LIBS="$X_LIBS -L$x_libraries"
23354 # For Solaris; some versions of Sun CC require a space after -R and
23355 # others require no space. Words are not sufficient . . . .
23356 case `(uname -sr) 2>/dev/null` in
23357 "SunOS 5"*)
23358 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23359 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23360 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23361 cat >conftest.$ac_ext <<_ACEOF
23362 /* confdefs.h. */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23367
23368 int
23369 main ()
23370 {
23371
23372 ;
23373 return 0;
23374 }
23375 _ACEOF
23376 rm -f conftest.$ac_objext conftest$ac_exeext
23377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23378 (eval $ac_link) 2>conftest.er1
23379 ac_status=$?
23380 grep -v '^ *+' conftest.er1 >conftest.err
23381 rm -f conftest.er1
23382 cat conftest.err >&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } &&
23385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387 (eval $ac_try) 2>&5
23388 ac_status=$?
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); }; } &&
23391 { ac_try='test -s conftest$ac_exeext'
23392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23393 (eval $ac_try) 2>&5
23394 ac_status=$?
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); }; }; then
23397 ac_R_nospace=yes
23398 else
23399 echo "$as_me: failed program was:" >&5
23400 sed 's/^/| /' conftest.$ac_ext >&5
23401
23402 ac_R_nospace=no
23403 fi
23404 rm -f conftest.err conftest.$ac_objext \
23405 conftest$ac_exeext conftest.$ac_ext
23406 if test $ac_R_nospace = yes; then
23407 echo "$as_me:$LINENO: result: no" >&5
23408 echo "${ECHO_T}no" >&6
23409 X_LIBS="$X_LIBS -R$x_libraries"
23410 else
23411 LIBS="$ac_xsave_LIBS -R $x_libraries"
23412 cat >conftest.$ac_ext <<_ACEOF
23413 /* confdefs.h. */
23414 _ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h. */
23418
23419 int
23420 main ()
23421 {
23422
23423 ;
23424 return 0;
23425 }
23426 _ACEOF
23427 rm -f conftest.$ac_objext conftest$ac_exeext
23428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23429 (eval $ac_link) 2>conftest.er1
23430 ac_status=$?
23431 grep -v '^ *+' conftest.er1 >conftest.err
23432 rm -f conftest.er1
23433 cat conftest.err >&5
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); } &&
23436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23438 (eval $ac_try) 2>&5
23439 ac_status=$?
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); }; } &&
23442 { ac_try='test -s conftest$ac_exeext'
23443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444 (eval $ac_try) 2>&5
23445 ac_status=$?
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; }; then
23448 ac_R_space=yes
23449 else
23450 echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23452
23453 ac_R_space=no
23454 fi
23455 rm -f conftest.err conftest.$ac_objext \
23456 conftest$ac_exeext conftest.$ac_ext
23457 if test $ac_R_space = yes; then
23458 echo "$as_me:$LINENO: result: yes" >&5
23459 echo "${ECHO_T}yes" >&6
23460 X_LIBS="$X_LIBS -R $x_libraries"
23461 else
23462 echo "$as_me:$LINENO: result: neither works" >&5
23463 echo "${ECHO_T}neither works" >&6
23464 fi
23465 fi
23466 LIBS=$ac_xsave_LIBS
23467 esac
23468 fi
23469
23470 # Check for system-dependent libraries X programs must link with.
23471 # Do this before checking for the system-independent R6 libraries
23472 # (-lICE), since we may need -lsocket or whatever for X linking.
23473
23474 if test "$ISC" = yes; then
23475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23476 else
23477 # Martyn Johnson says this is needed for Ultrix, if the X
23478 # libraries were built with DECnet support. And Karl Berry says
23479 # the Alpha needs dnet_stub (dnet does not exist).
23480 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23481 cat >conftest.$ac_ext <<_ACEOF
23482 /* confdefs.h. */
23483 _ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23487
23488 /* Override any gcc2 internal prototype to avoid an error. */
23489 #ifdef __cplusplus
23490 extern "C"
23491 #endif
23492 /* We use char because int might match the return type of a gcc2
23493 builtin and then its argument prototype would still apply. */
23494 char XOpenDisplay ();
23495 int
23496 main ()
23497 {
23498 XOpenDisplay ();
23499 ;
23500 return 0;
23501 }
23502 _ACEOF
23503 rm -f conftest.$ac_objext conftest$ac_exeext
23504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23505 (eval $ac_link) 2>conftest.er1
23506 ac_status=$?
23507 grep -v '^ *+' conftest.er1 >conftest.err
23508 rm -f conftest.er1
23509 cat conftest.err >&5
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); } &&
23512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514 (eval $ac_try) 2>&5
23515 ac_status=$?
23516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; } &&
23518 { ac_try='test -s conftest$ac_exeext'
23519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23520 (eval $ac_try) 2>&5
23521 ac_status=$?
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); }; }; then
23524 :
23525 else
23526 echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23528
23529 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23530 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23531 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23533 else
23534 ac_check_lib_save_LIBS=$LIBS
23535 LIBS="-ldnet $LIBS"
23536 cat >conftest.$ac_ext <<_ACEOF
23537 /* confdefs.h. */
23538 _ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h. */
23542
23543 /* Override any gcc2 internal prototype to avoid an error. */
23544 #ifdef __cplusplus
23545 extern "C"
23546 #endif
23547 /* We use char because int might match the return type of a gcc2
23548 builtin and then its argument prototype would still apply. */
23549 char dnet_ntoa ();
23550 int
23551 main ()
23552 {
23553 dnet_ntoa ();
23554 ;
23555 return 0;
23556 }
23557 _ACEOF
23558 rm -f conftest.$ac_objext conftest$ac_exeext
23559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23560 (eval $ac_link) 2>conftest.er1
23561 ac_status=$?
23562 grep -v '^ *+' conftest.er1 >conftest.err
23563 rm -f conftest.er1
23564 cat conftest.err >&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } &&
23567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569 (eval $ac_try) 2>&5
23570 ac_status=$?
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; } &&
23573 { ac_try='test -s conftest$ac_exeext'
23574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575 (eval $ac_try) 2>&5
23576 ac_status=$?
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); }; }; then
23579 ac_cv_lib_dnet_dnet_ntoa=yes
23580 else
23581 echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23583
23584 ac_cv_lib_dnet_dnet_ntoa=no
23585 fi
23586 rm -f conftest.err conftest.$ac_objext \
23587 conftest$ac_exeext conftest.$ac_ext
23588 LIBS=$ac_check_lib_save_LIBS
23589 fi
23590 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23591 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23592 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23593 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23594 fi
23595
23596 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23597 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23598 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23599 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23600 echo $ECHO_N "(cached) $ECHO_C" >&6
23601 else
23602 ac_check_lib_save_LIBS=$LIBS
23603 LIBS="-ldnet_stub $LIBS"
23604 cat >conftest.$ac_ext <<_ACEOF
23605 /* confdefs.h. */
23606 _ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h. */
23610
23611 /* Override any gcc2 internal prototype to avoid an error. */
23612 #ifdef __cplusplus
23613 extern "C"
23614 #endif
23615 /* We use char because int might match the return type of a gcc2
23616 builtin and then its argument prototype would still apply. */
23617 char dnet_ntoa ();
23618 int
23619 main ()
23620 {
23621 dnet_ntoa ();
23622 ;
23623 return 0;
23624 }
23625 _ACEOF
23626 rm -f conftest.$ac_objext conftest$ac_exeext
23627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23628 (eval $ac_link) 2>conftest.er1
23629 ac_status=$?
23630 grep -v '^ *+' conftest.er1 >conftest.err
23631 rm -f conftest.er1
23632 cat conftest.err >&5
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); } &&
23635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23637 (eval $ac_try) 2>&5
23638 ac_status=$?
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); }; } &&
23641 { ac_try='test -s conftest$ac_exeext'
23642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643 (eval $ac_try) 2>&5
23644 ac_status=$?
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; }; then
23647 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23648 else
23649 echo "$as_me: failed program was:" >&5
23650 sed 's/^/| /' conftest.$ac_ext >&5
23651
23652 ac_cv_lib_dnet_stub_dnet_ntoa=no
23653 fi
23654 rm -f conftest.err conftest.$ac_objext \
23655 conftest$ac_exeext conftest.$ac_ext
23656 LIBS=$ac_check_lib_save_LIBS
23657 fi
23658 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23659 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23660 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23661 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23662 fi
23663
23664 fi
23665 fi
23666 rm -f conftest.err conftest.$ac_objext \
23667 conftest$ac_exeext conftest.$ac_ext
23668 LIBS="$ac_xsave_LIBS"
23669
23670 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23671 # to get the SysV transport functions.
23672 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23673 # needs -lnsl.
23674 # The nsl library prevents programs from opening the X display
23675 # on Irix 5.2, according to T.E. Dickey.
23676 # The functions gethostbyname, getservbyname, and inet_addr are
23677 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23678 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23679 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23680 if test "${ac_cv_func_gethostbyname+set}" = set; then
23681 echo $ECHO_N "(cached) $ECHO_C" >&6
23682 else
23683 cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h. */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h. */
23689 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23691 #define gethostbyname innocuous_gethostbyname
23692
23693 /* System header to define __stub macros and hopefully few prototypes,
23694 which can conflict with char gethostbyname (); below.
23695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23696 <limits.h> exists even on freestanding compilers. */
23697
23698 #ifdef __STDC__
23699 # include <limits.h>
23700 #else
23701 # include <assert.h>
23702 #endif
23703
23704 #undef gethostbyname
23705
23706 /* Override any gcc2 internal prototype to avoid an error. */
23707 #ifdef __cplusplus
23708 extern "C"
23709 {
23710 #endif
23711 /* We use char because int might match the return type of a gcc2
23712 builtin and then its argument prototype would still apply. */
23713 char gethostbyname ();
23714 /* The GNU C library defines this for functions which it implements
23715 to always fail with ENOSYS. Some functions are actually named
23716 something starting with __ and the normal name is an alias. */
23717 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23718 choke me
23719 #else
23720 char (*f) () = gethostbyname;
23721 #endif
23722 #ifdef __cplusplus
23723 }
23724 #endif
23725
23726 int
23727 main ()
23728 {
23729 return f != gethostbyname;
23730 ;
23731 return 0;
23732 }
23733 _ACEOF
23734 rm -f conftest.$ac_objext conftest$ac_exeext
23735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23736 (eval $ac_link) 2>conftest.er1
23737 ac_status=$?
23738 grep -v '^ *+' conftest.er1 >conftest.err
23739 rm -f conftest.er1
23740 cat conftest.err >&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } &&
23743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745 (eval $ac_try) 2>&5
23746 ac_status=$?
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; } &&
23749 { ac_try='test -s conftest$ac_exeext'
23750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751 (eval $ac_try) 2>&5
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; }; then
23755 ac_cv_func_gethostbyname=yes
23756 else
23757 echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23759
23760 ac_cv_func_gethostbyname=no
23761 fi
23762 rm -f conftest.err conftest.$ac_objext \
23763 conftest$ac_exeext conftest.$ac_ext
23764 fi
23765 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23766 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23767
23768 if test $ac_cv_func_gethostbyname = no; then
23769 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23770 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23771 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23772 echo $ECHO_N "(cached) $ECHO_C" >&6
23773 else
23774 ac_check_lib_save_LIBS=$LIBS
23775 LIBS="-lnsl $LIBS"
23776 cat >conftest.$ac_ext <<_ACEOF
23777 /* confdefs.h. */
23778 _ACEOF
23779 cat confdefs.h >>conftest.$ac_ext
23780 cat >>conftest.$ac_ext <<_ACEOF
23781 /* end confdefs.h. */
23782
23783 /* Override any gcc2 internal prototype to avoid an error. */
23784 #ifdef __cplusplus
23785 extern "C"
23786 #endif
23787 /* We use char because int might match the return type of a gcc2
23788 builtin and then its argument prototype would still apply. */
23789 char gethostbyname ();
23790 int
23791 main ()
23792 {
23793 gethostbyname ();
23794 ;
23795 return 0;
23796 }
23797 _ACEOF
23798 rm -f conftest.$ac_objext conftest$ac_exeext
23799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23800 (eval $ac_link) 2>conftest.er1
23801 ac_status=$?
23802 grep -v '^ *+' conftest.er1 >conftest.err
23803 rm -f conftest.er1
23804 cat conftest.err >&5
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); } &&
23807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23809 (eval $ac_try) 2>&5
23810 ac_status=$?
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); }; } &&
23813 { ac_try='test -s conftest$ac_exeext'
23814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815 (eval $ac_try) 2>&5
23816 ac_status=$?
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); }; }; then
23819 ac_cv_lib_nsl_gethostbyname=yes
23820 else
23821 echo "$as_me: failed program was:" >&5
23822 sed 's/^/| /' conftest.$ac_ext >&5
23823
23824 ac_cv_lib_nsl_gethostbyname=no
23825 fi
23826 rm -f conftest.err conftest.$ac_objext \
23827 conftest$ac_exeext conftest.$ac_ext
23828 LIBS=$ac_check_lib_save_LIBS
23829 fi
23830 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23831 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23832 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23833 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23834 fi
23835
23836 if test $ac_cv_lib_nsl_gethostbyname = no; then
23837 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23838 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23839 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23840 echo $ECHO_N "(cached) $ECHO_C" >&6
23841 else
23842 ac_check_lib_save_LIBS=$LIBS
23843 LIBS="-lbsd $LIBS"
23844 cat >conftest.$ac_ext <<_ACEOF
23845 /* confdefs.h. */
23846 _ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23850
23851 /* Override any gcc2 internal prototype to avoid an error. */
23852 #ifdef __cplusplus
23853 extern "C"
23854 #endif
23855 /* We use char because int might match the return type of a gcc2
23856 builtin and then its argument prototype would still apply. */
23857 char gethostbyname ();
23858 int
23859 main ()
23860 {
23861 gethostbyname ();
23862 ;
23863 return 0;
23864 }
23865 _ACEOF
23866 rm -f conftest.$ac_objext conftest$ac_exeext
23867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23868 (eval $ac_link) 2>conftest.er1
23869 ac_status=$?
23870 grep -v '^ *+' conftest.er1 >conftest.err
23871 rm -f conftest.er1
23872 cat conftest.err >&5
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); } &&
23875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877 (eval $ac_try) 2>&5
23878 ac_status=$?
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); }; } &&
23881 { ac_try='test -s conftest$ac_exeext'
23882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23883 (eval $ac_try) 2>&5
23884 ac_status=$?
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); }; }; then
23887 ac_cv_lib_bsd_gethostbyname=yes
23888 else
23889 echo "$as_me: failed program was:" >&5
23890 sed 's/^/| /' conftest.$ac_ext >&5
23891
23892 ac_cv_lib_bsd_gethostbyname=no
23893 fi
23894 rm -f conftest.err conftest.$ac_objext \
23895 conftest$ac_exeext conftest.$ac_ext
23896 LIBS=$ac_check_lib_save_LIBS
23897 fi
23898 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23899 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23900 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23901 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23902 fi
23903
23904 fi
23905 fi
23906
23907 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23908 # socket/setsockopt and other routines are undefined under SCO ODT
23909 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23910 # on later versions), says Simon Leinen: it contains gethostby*
23911 # variants that don't use the name server (or something). -lsocket
23912 # must be given before -lnsl if both are needed. We assume that
23913 # if connect needs -lnsl, so does gethostbyname.
23914 echo "$as_me:$LINENO: checking for connect" >&5
23915 echo $ECHO_N "checking for connect... $ECHO_C" >&6
23916 if test "${ac_cv_func_connect+set}" = set; then
23917 echo $ECHO_N "(cached) $ECHO_C" >&6
23918 else
23919 cat >conftest.$ac_ext <<_ACEOF
23920 /* confdefs.h. */
23921 _ACEOF
23922 cat confdefs.h >>conftest.$ac_ext
23923 cat >>conftest.$ac_ext <<_ACEOF
23924 /* end confdefs.h. */
23925 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23927 #define connect innocuous_connect
23928
23929 /* System header to define __stub macros and hopefully few prototypes,
23930 which can conflict with char connect (); below.
23931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23932 <limits.h> exists even on freestanding compilers. */
23933
23934 #ifdef __STDC__
23935 # include <limits.h>
23936 #else
23937 # include <assert.h>
23938 #endif
23939
23940 #undef connect
23941
23942 /* Override any gcc2 internal prototype to avoid an error. */
23943 #ifdef __cplusplus
23944 extern "C"
23945 {
23946 #endif
23947 /* We use char because int might match the return type of a gcc2
23948 builtin and then its argument prototype would still apply. */
23949 char connect ();
23950 /* The GNU C library defines this for functions which it implements
23951 to always fail with ENOSYS. Some functions are actually named
23952 something starting with __ and the normal name is an alias. */
23953 #if defined (__stub_connect) || defined (__stub___connect)
23954 choke me
23955 #else
23956 char (*f) () = connect;
23957 #endif
23958 #ifdef __cplusplus
23959 }
23960 #endif
23961
23962 int
23963 main ()
23964 {
23965 return f != connect;
23966 ;
23967 return 0;
23968 }
23969 _ACEOF
23970 rm -f conftest.$ac_objext conftest$ac_exeext
23971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23972 (eval $ac_link) 2>conftest.er1
23973 ac_status=$?
23974 grep -v '^ *+' conftest.er1 >conftest.err
23975 rm -f conftest.er1
23976 cat conftest.err >&5
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); } &&
23979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23981 (eval $ac_try) 2>&5
23982 ac_status=$?
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); }; } &&
23985 { ac_try='test -s conftest$ac_exeext'
23986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23987 (eval $ac_try) 2>&5
23988 ac_status=$?
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); }; }; then
23991 ac_cv_func_connect=yes
23992 else
23993 echo "$as_me: failed program was:" >&5
23994 sed 's/^/| /' conftest.$ac_ext >&5
23995
23996 ac_cv_func_connect=no
23997 fi
23998 rm -f conftest.err conftest.$ac_objext \
23999 conftest$ac_exeext conftest.$ac_ext
24000 fi
24001 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24002 echo "${ECHO_T}$ac_cv_func_connect" >&6
24003
24004 if test $ac_cv_func_connect = no; then
24005 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24006 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24007 if test "${ac_cv_lib_socket_connect+set}" = set; then
24008 echo $ECHO_N "(cached) $ECHO_C" >&6
24009 else
24010 ac_check_lib_save_LIBS=$LIBS
24011 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24012 cat >conftest.$ac_ext <<_ACEOF
24013 /* confdefs.h. */
24014 _ACEOF
24015 cat confdefs.h >>conftest.$ac_ext
24016 cat >>conftest.$ac_ext <<_ACEOF
24017 /* end confdefs.h. */
24018
24019 /* Override any gcc2 internal prototype to avoid an error. */
24020 #ifdef __cplusplus
24021 extern "C"
24022 #endif
24023 /* We use char because int might match the return type of a gcc2
24024 builtin and then its argument prototype would still apply. */
24025 char connect ();
24026 int
24027 main ()
24028 {
24029 connect ();
24030 ;
24031 return 0;
24032 }
24033 _ACEOF
24034 rm -f conftest.$ac_objext conftest$ac_exeext
24035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24036 (eval $ac_link) 2>conftest.er1
24037 ac_status=$?
24038 grep -v '^ *+' conftest.er1 >conftest.err
24039 rm -f conftest.er1
24040 cat conftest.err >&5
24041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042 (exit $ac_status); } &&
24043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24045 (eval $ac_try) 2>&5
24046 ac_status=$?
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); }; } &&
24049 { ac_try='test -s conftest$ac_exeext'
24050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24051 (eval $ac_try) 2>&5
24052 ac_status=$?
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; }; then
24055 ac_cv_lib_socket_connect=yes
24056 else
24057 echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24059
24060 ac_cv_lib_socket_connect=no
24061 fi
24062 rm -f conftest.err conftest.$ac_objext \
24063 conftest$ac_exeext conftest.$ac_ext
24064 LIBS=$ac_check_lib_save_LIBS
24065 fi
24066 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24067 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24068 if test $ac_cv_lib_socket_connect = yes; then
24069 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24070 fi
24071
24072 fi
24073
24074 # Guillermo Gomez says -lposix is necessary on A/UX.
24075 echo "$as_me:$LINENO: checking for remove" >&5
24076 echo $ECHO_N "checking for remove... $ECHO_C" >&6
24077 if test "${ac_cv_func_remove+set}" = set; then
24078 echo $ECHO_N "(cached) $ECHO_C" >&6
24079 else
24080 cat >conftest.$ac_ext <<_ACEOF
24081 /* confdefs.h. */
24082 _ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24086 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
24087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24088 #define remove innocuous_remove
24089
24090 /* System header to define __stub macros and hopefully few prototypes,
24091 which can conflict with char remove (); below.
24092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24093 <limits.h> exists even on freestanding compilers. */
24094
24095 #ifdef __STDC__
24096 # include <limits.h>
24097 #else
24098 # include <assert.h>
24099 #endif
24100
24101 #undef remove
24102
24103 /* Override any gcc2 internal prototype to avoid an error. */
24104 #ifdef __cplusplus
24105 extern "C"
24106 {
24107 #endif
24108 /* We use char because int might match the return type of a gcc2
24109 builtin and then its argument prototype would still apply. */
24110 char remove ();
24111 /* The GNU C library defines this for functions which it implements
24112 to always fail with ENOSYS. Some functions are actually named
24113 something starting with __ and the normal name is an alias. */
24114 #if defined (__stub_remove) || defined (__stub___remove)
24115 choke me
24116 #else
24117 char (*f) () = remove;
24118 #endif
24119 #ifdef __cplusplus
24120 }
24121 #endif
24122
24123 int
24124 main ()
24125 {
24126 return f != remove;
24127 ;
24128 return 0;
24129 }
24130 _ACEOF
24131 rm -f conftest.$ac_objext conftest$ac_exeext
24132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24133 (eval $ac_link) 2>conftest.er1
24134 ac_status=$?
24135 grep -v '^ *+' conftest.er1 >conftest.err
24136 rm -f conftest.er1
24137 cat conftest.err >&5
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } &&
24140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24142 (eval $ac_try) 2>&5
24143 ac_status=$?
24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); }; } &&
24146 { ac_try='test -s conftest$ac_exeext'
24147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148 (eval $ac_try) 2>&5
24149 ac_status=$?
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); }; }; then
24152 ac_cv_func_remove=yes
24153 else
24154 echo "$as_me: failed program was:" >&5
24155 sed 's/^/| /' conftest.$ac_ext >&5
24156
24157 ac_cv_func_remove=no
24158 fi
24159 rm -f conftest.err conftest.$ac_objext \
24160 conftest$ac_exeext conftest.$ac_ext
24161 fi
24162 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24163 echo "${ECHO_T}$ac_cv_func_remove" >&6
24164
24165 if test $ac_cv_func_remove = no; then
24166 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24167 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24168 if test "${ac_cv_lib_posix_remove+set}" = set; then
24169 echo $ECHO_N "(cached) $ECHO_C" >&6
24170 else
24171 ac_check_lib_save_LIBS=$LIBS
24172 LIBS="-lposix $LIBS"
24173 cat >conftest.$ac_ext <<_ACEOF
24174 /* confdefs.h. */
24175 _ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h. */
24179
24180 /* Override any gcc2 internal prototype to avoid an error. */
24181 #ifdef __cplusplus
24182 extern "C"
24183 #endif
24184 /* We use char because int might match the return type of a gcc2
24185 builtin and then its argument prototype would still apply. */
24186 char remove ();
24187 int
24188 main ()
24189 {
24190 remove ();
24191 ;
24192 return 0;
24193 }
24194 _ACEOF
24195 rm -f conftest.$ac_objext conftest$ac_exeext
24196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24197 (eval $ac_link) 2>conftest.er1
24198 ac_status=$?
24199 grep -v '^ *+' conftest.er1 >conftest.err
24200 rm -f conftest.er1
24201 cat conftest.err >&5
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); } &&
24204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24206 (eval $ac_try) 2>&5
24207 ac_status=$?
24208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209 (exit $ac_status); }; } &&
24210 { ac_try='test -s conftest$ac_exeext'
24211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24212 (eval $ac_try) 2>&5
24213 ac_status=$?
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); }; }; then
24216 ac_cv_lib_posix_remove=yes
24217 else
24218 echo "$as_me: failed program was:" >&5
24219 sed 's/^/| /' conftest.$ac_ext >&5
24220
24221 ac_cv_lib_posix_remove=no
24222 fi
24223 rm -f conftest.err conftest.$ac_objext \
24224 conftest$ac_exeext conftest.$ac_ext
24225 LIBS=$ac_check_lib_save_LIBS
24226 fi
24227 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24228 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24229 if test $ac_cv_lib_posix_remove = yes; then
24230 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24231 fi
24232
24233 fi
24234
24235 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24236 echo "$as_me:$LINENO: checking for shmat" >&5
24237 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24238 if test "${ac_cv_func_shmat+set}" = set; then
24239 echo $ECHO_N "(cached) $ECHO_C" >&6
24240 else
24241 cat >conftest.$ac_ext <<_ACEOF
24242 /* confdefs.h. */
24243 _ACEOF
24244 cat confdefs.h >>conftest.$ac_ext
24245 cat >>conftest.$ac_ext <<_ACEOF
24246 /* end confdefs.h. */
24247 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24249 #define shmat innocuous_shmat
24250
24251 /* System header to define __stub macros and hopefully few prototypes,
24252 which can conflict with char shmat (); below.
24253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24254 <limits.h> exists even on freestanding compilers. */
24255
24256 #ifdef __STDC__
24257 # include <limits.h>
24258 #else
24259 # include <assert.h>
24260 #endif
24261
24262 #undef shmat
24263
24264 /* Override any gcc2 internal prototype to avoid an error. */
24265 #ifdef __cplusplus
24266 extern "C"
24267 {
24268 #endif
24269 /* We use char because int might match the return type of a gcc2
24270 builtin and then its argument prototype would still apply. */
24271 char shmat ();
24272 /* The GNU C library defines this for functions which it implements
24273 to always fail with ENOSYS. Some functions are actually named
24274 something starting with __ and the normal name is an alias. */
24275 #if defined (__stub_shmat) || defined (__stub___shmat)
24276 choke me
24277 #else
24278 char (*f) () = shmat;
24279 #endif
24280 #ifdef __cplusplus
24281 }
24282 #endif
24283
24284 int
24285 main ()
24286 {
24287 return f != shmat;
24288 ;
24289 return 0;
24290 }
24291 _ACEOF
24292 rm -f conftest.$ac_objext conftest$ac_exeext
24293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24294 (eval $ac_link) 2>conftest.er1
24295 ac_status=$?
24296 grep -v '^ *+' conftest.er1 >conftest.err
24297 rm -f conftest.er1
24298 cat conftest.err >&5
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); } &&
24301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24303 (eval $ac_try) 2>&5
24304 ac_status=$?
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); }; } &&
24307 { ac_try='test -s conftest$ac_exeext'
24308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24309 (eval $ac_try) 2>&5
24310 ac_status=$?
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); }; }; then
24313 ac_cv_func_shmat=yes
24314 else
24315 echo "$as_me: failed program was:" >&5
24316 sed 's/^/| /' conftest.$ac_ext >&5
24317
24318 ac_cv_func_shmat=no
24319 fi
24320 rm -f conftest.err conftest.$ac_objext \
24321 conftest$ac_exeext conftest.$ac_ext
24322 fi
24323 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24324 echo "${ECHO_T}$ac_cv_func_shmat" >&6
24325
24326 if test $ac_cv_func_shmat = no; then
24327 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24328 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24329 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24331 else
24332 ac_check_lib_save_LIBS=$LIBS
24333 LIBS="-lipc $LIBS"
24334 cat >conftest.$ac_ext <<_ACEOF
24335 /* confdefs.h. */
24336 _ACEOF
24337 cat confdefs.h >>conftest.$ac_ext
24338 cat >>conftest.$ac_ext <<_ACEOF
24339 /* end confdefs.h. */
24340
24341 /* Override any gcc2 internal prototype to avoid an error. */
24342 #ifdef __cplusplus
24343 extern "C"
24344 #endif
24345 /* We use char because int might match the return type of a gcc2
24346 builtin and then its argument prototype would still apply. */
24347 char shmat ();
24348 int
24349 main ()
24350 {
24351 shmat ();
24352 ;
24353 return 0;
24354 }
24355 _ACEOF
24356 rm -f conftest.$ac_objext conftest$ac_exeext
24357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24358 (eval $ac_link) 2>conftest.er1
24359 ac_status=$?
24360 grep -v '^ *+' conftest.er1 >conftest.err
24361 rm -f conftest.er1
24362 cat conftest.err >&5
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); } &&
24365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24367 (eval $ac_try) 2>&5
24368 ac_status=$?
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); }; } &&
24371 { ac_try='test -s conftest$ac_exeext'
24372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24373 (eval $ac_try) 2>&5
24374 ac_status=$?
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); }; }; then
24377 ac_cv_lib_ipc_shmat=yes
24378 else
24379 echo "$as_me: failed program was:" >&5
24380 sed 's/^/| /' conftest.$ac_ext >&5
24381
24382 ac_cv_lib_ipc_shmat=no
24383 fi
24384 rm -f conftest.err conftest.$ac_objext \
24385 conftest$ac_exeext conftest.$ac_ext
24386 LIBS=$ac_check_lib_save_LIBS
24387 fi
24388 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24389 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24390 if test $ac_cv_lib_ipc_shmat = yes; then
24391 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24392 fi
24393
24394 fi
24395 fi
24396
24397 # Check for libraries that X11R6 Xt/Xaw programs need.
24398 ac_save_LDFLAGS=$LDFLAGS
24399 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24400 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24401 # check for ICE first), but we must link in the order -lSM -lICE or
24402 # we get undefined symbols. So assume we have SM if we have ICE.
24403 # These have to be linked with before -lX11, unlike the other
24404 # libraries we check for below, so use a different variable.
24405 # John Interrante, Karl Berry
24406 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24407 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24408 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24409 echo $ECHO_N "(cached) $ECHO_C" >&6
24410 else
24411 ac_check_lib_save_LIBS=$LIBS
24412 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24413 cat >conftest.$ac_ext <<_ACEOF
24414 /* confdefs.h. */
24415 _ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h. */
24419
24420 /* Override any gcc2 internal prototype to avoid an error. */
24421 #ifdef __cplusplus
24422 extern "C"
24423 #endif
24424 /* We use char because int might match the return type of a gcc2
24425 builtin and then its argument prototype would still apply. */
24426 char IceConnectionNumber ();
24427 int
24428 main ()
24429 {
24430 IceConnectionNumber ();
24431 ;
24432 return 0;
24433 }
24434 _ACEOF
24435 rm -f conftest.$ac_objext conftest$ac_exeext
24436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24437 (eval $ac_link) 2>conftest.er1
24438 ac_status=$?
24439 grep -v '^ *+' conftest.er1 >conftest.err
24440 rm -f conftest.er1
24441 cat conftest.err >&5
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); } &&
24444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24446 (eval $ac_try) 2>&5
24447 ac_status=$?
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); }; } &&
24450 { ac_try='test -s conftest$ac_exeext'
24451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24452 (eval $ac_try) 2>&5
24453 ac_status=$?
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); }; }; then
24456 ac_cv_lib_ICE_IceConnectionNumber=yes
24457 else
24458 echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24460
24461 ac_cv_lib_ICE_IceConnectionNumber=no
24462 fi
24463 rm -f conftest.err conftest.$ac_objext \
24464 conftest$ac_exeext conftest.$ac_ext
24465 LIBS=$ac_check_lib_save_LIBS
24466 fi
24467 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24468 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24469 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24470 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24471 fi
24472
24473 LDFLAGS=$ac_save_LDFLAGS
24474
24475 fi
24476
24477
24478 if test "$no_x" = "yes"; then
24479 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24480 echo "$as_me: error: X11 not found" >&2;}
24481 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
24482 fi
24483
24484 GUI_TK_LIBRARY="$X_LIBS"
24485 TOOLKIT_INCLUDE="$X_CFLAGS"
24486 AFMINSTALL=afminstall
24487 COMPILED_X_PROGRAM=0
24488
24489 if test "$wxUSE_NANOX" = "yes"; then
24490 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
24491 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
24492 if test "x$MICROWIN" = x ; then
24493 echo "$as_me:$LINENO: result: not found" >&5
24494 echo "${ECHO_T}not found" >&6
24495 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
24496 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
24497 { (exit 1); exit 1; }; }
24498 else
24499 echo "$as_me:$LINENO: result: $MICROWIN" >&5
24500 echo "${ECHO_T}$MICROWIN" >&6
24501 cat >>confdefs.h <<\_ACEOF
24502 #define wxUSE_NANOX 1
24503 _ACEOF
24504
24505 fi
24506 fi
24507
24508 if test "$wxUSE_UNICODE" = "yes"; then
24509
24510 succeeded=no
24511
24512 if test -z "$PKG_CONFIG"; then
24513 # Extract the first word of "pkg-config", so it can be a program name with args.
24514 set dummy pkg-config; ac_word=$2
24515 echo "$as_me:$LINENO: checking for $ac_word" >&5
24516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24517 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24519 else
24520 case $PKG_CONFIG in
24521 [\\/]* | ?:[\\/]*)
24522 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24523 ;;
24524 *)
24525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24526 for as_dir in $PATH
24527 do
24528 IFS=$as_save_IFS
24529 test -z "$as_dir" && as_dir=.
24530 for ac_exec_ext in '' $ac_executable_extensions; do
24531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24532 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24534 break 2
24535 fi
24536 done
24537 done
24538
24539 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24540 ;;
24541 esac
24542 fi
24543 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24544
24545 if test -n "$PKG_CONFIG"; then
24546 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24547 echo "${ECHO_T}$PKG_CONFIG" >&6
24548 else
24549 echo "$as_me:$LINENO: result: no" >&5
24550 echo "${ECHO_T}no" >&6
24551 fi
24552
24553 fi
24554
24555 if test "$PKG_CONFIG" = "no" ; then
24556 echo "*** The pkg-config script could not be found. Make sure it is"
24557 echo "*** in your path, or set the PKG_CONFIG environment variable"
24558 echo "*** to the full path to pkg-config."
24559 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24560 else
24561 PKG_CONFIG_MIN_VERSION=0.9.0
24562 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24563 echo "$as_me:$LINENO: checking for pangox" >&5
24564 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
24565
24566 if $PKG_CONFIG --exists "pangox" ; then
24567 echo "$as_me:$LINENO: result: yes" >&5
24568 echo "${ECHO_T}yes" >&6
24569 succeeded=yes
24570
24571 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
24572 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
24573 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
24574 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
24575 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
24576
24577 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24578 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
24579 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
24580 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24581 echo "${ECHO_T}$PANGOX_LIBS" >&6
24582 else
24583 PANGOX_CFLAGS=""
24584 PANGOX_LIBS=""
24585 ## If we have a custom action on failure, don't print errors, but
24586 ## do set a variable so people can do so.
24587 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
24588
24589 fi
24590
24591
24592
24593 else
24594 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24595 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24596 fi
24597 fi
24598
24599 if test $succeeded = yes; then
24600
24601 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
24602 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
24603
24604 else
24605
24606 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24607 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24608 { (exit 1); exit 1; }; }
24609
24610
24611 fi
24612
24613
24614 succeeded=no
24615
24616 if test -z "$PKG_CONFIG"; then
24617 # Extract the first word of "pkg-config", so it can be a program name with args.
24618 set dummy pkg-config; ac_word=$2
24619 echo "$as_me:$LINENO: checking for $ac_word" >&5
24620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24621 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24622 echo $ECHO_N "(cached) $ECHO_C" >&6
24623 else
24624 case $PKG_CONFIG in
24625 [\\/]* | ?:[\\/]*)
24626 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24627 ;;
24628 *)
24629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24630 for as_dir in $PATH
24631 do
24632 IFS=$as_save_IFS
24633 test -z "$as_dir" && as_dir=.
24634 for ac_exec_ext in '' $ac_executable_extensions; do
24635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24636 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24638 break 2
24639 fi
24640 done
24641 done
24642
24643 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24644 ;;
24645 esac
24646 fi
24647 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24648
24649 if test -n "$PKG_CONFIG"; then
24650 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24651 echo "${ECHO_T}$PKG_CONFIG" >&6
24652 else
24653 echo "$as_me:$LINENO: result: no" >&5
24654 echo "${ECHO_T}no" >&6
24655 fi
24656
24657 fi
24658
24659 if test "$PKG_CONFIG" = "no" ; then
24660 echo "*** The pkg-config script could not be found. Make sure it is"
24661 echo "*** in your path, or set the PKG_CONFIG environment variable"
24662 echo "*** to the full path to pkg-config."
24663 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24664 else
24665 PKG_CONFIG_MIN_VERSION=0.9.0
24666 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24667 echo "$as_me:$LINENO: checking for pangoft2" >&5
24668 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
24669
24670 if $PKG_CONFIG --exists "pangoft2" ; then
24671 echo "$as_me:$LINENO: result: yes" >&5
24672 echo "${ECHO_T}yes" >&6
24673 succeeded=yes
24674
24675 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24676 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
24677 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
24678 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24679 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
24680
24681 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24682 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
24683 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
24684 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24685 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
24686 else
24687 PANGOFT2_CFLAGS=""
24688 PANGOFT2_LIBS=""
24689 ## If we have a custom action on failure, don't print errors, but
24690 ## do set a variable so people can do so.
24691 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
24692
24693 fi
24694
24695
24696
24697 else
24698 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24699 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24700 fi
24701 fi
24702
24703 if test $succeeded = yes; then
24704
24705 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
24706 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
24707
24708 else
24709
24710 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24711 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
24712 wxUSE_PRINTING_ARCHITECTURE="no"
24713
24714
24715 fi
24716
24717
24718 succeeded=no
24719
24720 if test -z "$PKG_CONFIG"; then
24721 # Extract the first word of "pkg-config", so it can be a program name with args.
24722 set dummy pkg-config; ac_word=$2
24723 echo "$as_me:$LINENO: checking for $ac_word" >&5
24724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24725 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24726 echo $ECHO_N "(cached) $ECHO_C" >&6
24727 else
24728 case $PKG_CONFIG in
24729 [\\/]* | ?:[\\/]*)
24730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24731 ;;
24732 *)
24733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24734 for as_dir in $PATH
24735 do
24736 IFS=$as_save_IFS
24737 test -z "$as_dir" && as_dir=.
24738 for ac_exec_ext in '' $ac_executable_extensions; do
24739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24740 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24742 break 2
24743 fi
24744 done
24745 done
24746
24747 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24748 ;;
24749 esac
24750 fi
24751 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24752
24753 if test -n "$PKG_CONFIG"; then
24754 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24755 echo "${ECHO_T}$PKG_CONFIG" >&6
24756 else
24757 echo "$as_me:$LINENO: result: no" >&5
24758 echo "${ECHO_T}no" >&6
24759 fi
24760
24761 fi
24762
24763 if test "$PKG_CONFIG" = "no" ; then
24764 echo "*** The pkg-config script could not be found. Make sure it is"
24765 echo "*** in your path, or set the PKG_CONFIG environment variable"
24766 echo "*** to the full path to pkg-config."
24767 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24768 else
24769 PKG_CONFIG_MIN_VERSION=0.9.0
24770 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24771 echo "$as_me:$LINENO: checking for pangoxft" >&5
24772 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
24773
24774 if $PKG_CONFIG --exists "pangoxft" ; then
24775 echo "$as_me:$LINENO: result: yes" >&5
24776 echo "${ECHO_T}yes" >&6
24777 succeeded=yes
24778
24779 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24780 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
24781 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
24782 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24783 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
24784
24785 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24786 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
24787 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
24788 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24789 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
24790 else
24791 PANGOXFT_CFLAGS=""
24792 PANGOXFT_LIBS=""
24793 ## If we have a custom action on failure, don't print errors, but
24794 ## do set a variable so people can do so.
24795 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
24796
24797 fi
24798
24799
24800
24801 else
24802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24804 fi
24805 fi
24806
24807 if test $succeeded = yes; then
24808
24809 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
24810 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
24811
24812 else
24813
24814 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24815 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24816
24817
24818 fi
24819
24820 fi
24821
24822 wxUSE_UNIVERSAL="yes"
24823
24824 if test "$wxUSE_NANOX" = "yes"; then
24825 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
24826 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"
24827 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24828 else
24829 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
24830 fi
24831
24832 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24833 TOOLKIT=X11
24834 GUIDIST=X11_DIST
24835 fi
24836
24837 if test "$wxUSE_MOTIF" = 1; then
24838 if test "$no_x" = yes; then
24839 # Not all programs may use this symbol, but it does not hurt to define it.
24840
24841 cat >>confdefs.h <<\_ACEOF
24842 #define X_DISPLAY_MISSING 1
24843 _ACEOF
24844
24845 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24846 else
24847 if test -n "$x_includes"; then
24848 X_CFLAGS="$X_CFLAGS -I$x_includes"
24849 fi
24850
24851 # It would also be nice to do this for all -L options, not just this one.
24852 if test -n "$x_libraries"; then
24853 X_LIBS="$X_LIBS -L$x_libraries"
24854 # For Solaris; some versions of Sun CC require a space after -R and
24855 # others require no space. Words are not sufficient . . . .
24856 case `(uname -sr) 2>/dev/null` in
24857 "SunOS 5"*)
24858 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24859 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24860 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24861 cat >conftest.$ac_ext <<_ACEOF
24862 /* confdefs.h. */
24863 _ACEOF
24864 cat confdefs.h >>conftest.$ac_ext
24865 cat >>conftest.$ac_ext <<_ACEOF
24866 /* end confdefs.h. */
24867
24868 int
24869 main ()
24870 {
24871
24872 ;
24873 return 0;
24874 }
24875 _ACEOF
24876 rm -f conftest.$ac_objext conftest$ac_exeext
24877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24878 (eval $ac_link) 2>conftest.er1
24879 ac_status=$?
24880 grep -v '^ *+' conftest.er1 >conftest.err
24881 rm -f conftest.er1
24882 cat conftest.err >&5
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } &&
24885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24888 ac_status=$?
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; } &&
24891 { ac_try='test -s conftest$ac_exeext'
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24894 ac_status=$?
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; }; then
24897 ac_R_nospace=yes
24898 else
24899 echo "$as_me: failed program was:" >&5
24900 sed 's/^/| /' conftest.$ac_ext >&5
24901
24902 ac_R_nospace=no
24903 fi
24904 rm -f conftest.err conftest.$ac_objext \
24905 conftest$ac_exeext conftest.$ac_ext
24906 if test $ac_R_nospace = yes; then
24907 echo "$as_me:$LINENO: result: no" >&5
24908 echo "${ECHO_T}no" >&6
24909 X_LIBS="$X_LIBS -R$x_libraries"
24910 else
24911 LIBS="$ac_xsave_LIBS -R $x_libraries"
24912 cat >conftest.$ac_ext <<_ACEOF
24913 /* confdefs.h. */
24914 _ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h. */
24918
24919 int
24920 main ()
24921 {
24922
24923 ;
24924 return 0;
24925 }
24926 _ACEOF
24927 rm -f conftest.$ac_objext conftest$ac_exeext
24928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24929 (eval $ac_link) 2>conftest.er1
24930 ac_status=$?
24931 grep -v '^ *+' conftest.er1 >conftest.err
24932 rm -f conftest.er1
24933 cat conftest.err >&5
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); } &&
24936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938 (eval $ac_try) 2>&5
24939 ac_status=$?
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); }; } &&
24942 { ac_try='test -s conftest$ac_exeext'
24943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); }; }; then
24948 ac_R_space=yes
24949 else
24950 echo "$as_me: failed program was:" >&5
24951 sed 's/^/| /' conftest.$ac_ext >&5
24952
24953 ac_R_space=no
24954 fi
24955 rm -f conftest.err conftest.$ac_objext \
24956 conftest$ac_exeext conftest.$ac_ext
24957 if test $ac_R_space = yes; then
24958 echo "$as_me:$LINENO: result: yes" >&5
24959 echo "${ECHO_T}yes" >&6
24960 X_LIBS="$X_LIBS -R $x_libraries"
24961 else
24962 echo "$as_me:$LINENO: result: neither works" >&5
24963 echo "${ECHO_T}neither works" >&6
24964 fi
24965 fi
24966 LIBS=$ac_xsave_LIBS
24967 esac
24968 fi
24969
24970 # Check for system-dependent libraries X programs must link with.
24971 # Do this before checking for the system-independent R6 libraries
24972 # (-lICE), since we may need -lsocket or whatever for X linking.
24973
24974 if test "$ISC" = yes; then
24975 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24976 else
24977 # Martyn Johnson says this is needed for Ultrix, if the X
24978 # libraries were built with DECnet support. And Karl Berry says
24979 # the Alpha needs dnet_stub (dnet does not exist).
24980 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24981 cat >conftest.$ac_ext <<_ACEOF
24982 /* confdefs.h. */
24983 _ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h. */
24987
24988 /* Override any gcc2 internal prototype to avoid an error. */
24989 #ifdef __cplusplus
24990 extern "C"
24991 #endif
24992 /* We use char because int might match the return type of a gcc2
24993 builtin and then its argument prototype would still apply. */
24994 char XOpenDisplay ();
24995 int
24996 main ()
24997 {
24998 XOpenDisplay ();
24999 ;
25000 return 0;
25001 }
25002 _ACEOF
25003 rm -f conftest.$ac_objext conftest$ac_exeext
25004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25005 (eval $ac_link) 2>conftest.er1
25006 ac_status=$?
25007 grep -v '^ *+' conftest.er1 >conftest.err
25008 rm -f conftest.er1
25009 cat conftest.err >&5
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); } &&
25012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); }; } &&
25018 { ac_try='test -s conftest$ac_exeext'
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25021 ac_status=$?
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; }; then
25024 :
25025 else
25026 echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25028
25029 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25030 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25031 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25032 echo $ECHO_N "(cached) $ECHO_C" >&6
25033 else
25034 ac_check_lib_save_LIBS=$LIBS
25035 LIBS="-ldnet $LIBS"
25036 cat >conftest.$ac_ext <<_ACEOF
25037 /* confdefs.h. */
25038 _ACEOF
25039 cat confdefs.h >>conftest.$ac_ext
25040 cat >>conftest.$ac_ext <<_ACEOF
25041 /* end confdefs.h. */
25042
25043 /* Override any gcc2 internal prototype to avoid an error. */
25044 #ifdef __cplusplus
25045 extern "C"
25046 #endif
25047 /* We use char because int might match the return type of a gcc2
25048 builtin and then its argument prototype would still apply. */
25049 char dnet_ntoa ();
25050 int
25051 main ()
25052 {
25053 dnet_ntoa ();
25054 ;
25055 return 0;
25056 }
25057 _ACEOF
25058 rm -f conftest.$ac_objext conftest$ac_exeext
25059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25060 (eval $ac_link) 2>conftest.er1
25061 ac_status=$?
25062 grep -v '^ *+' conftest.er1 >conftest.err
25063 rm -f conftest.er1
25064 cat conftest.err >&5
25065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066 (exit $ac_status); } &&
25067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069 (eval $ac_try) 2>&5
25070 ac_status=$?
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); }; } &&
25073 { ac_try='test -s conftest$ac_exeext'
25074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25076 ac_status=$?
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }; then
25079 ac_cv_lib_dnet_dnet_ntoa=yes
25080 else
25081 echo "$as_me: failed program was:" >&5
25082 sed 's/^/| /' conftest.$ac_ext >&5
25083
25084 ac_cv_lib_dnet_dnet_ntoa=no
25085 fi
25086 rm -f conftest.err conftest.$ac_objext \
25087 conftest$ac_exeext conftest.$ac_ext
25088 LIBS=$ac_check_lib_save_LIBS
25089 fi
25090 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25091 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25092 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25093 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25094 fi
25095
25096 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25097 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25098 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25099 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25100 echo $ECHO_N "(cached) $ECHO_C" >&6
25101 else
25102 ac_check_lib_save_LIBS=$LIBS
25103 LIBS="-ldnet_stub $LIBS"
25104 cat >conftest.$ac_ext <<_ACEOF
25105 /* confdefs.h. */
25106 _ACEOF
25107 cat confdefs.h >>conftest.$ac_ext
25108 cat >>conftest.$ac_ext <<_ACEOF
25109 /* end confdefs.h. */
25110
25111 /* Override any gcc2 internal prototype to avoid an error. */
25112 #ifdef __cplusplus
25113 extern "C"
25114 #endif
25115 /* We use char because int might match the return type of a gcc2
25116 builtin and then its argument prototype would still apply. */
25117 char dnet_ntoa ();
25118 int
25119 main ()
25120 {
25121 dnet_ntoa ();
25122 ;
25123 return 0;
25124 }
25125 _ACEOF
25126 rm -f conftest.$ac_objext conftest$ac_exeext
25127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25128 (eval $ac_link) 2>conftest.er1
25129 ac_status=$?
25130 grep -v '^ *+' conftest.er1 >conftest.err
25131 rm -f conftest.er1
25132 cat conftest.err >&5
25133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134 (exit $ac_status); } &&
25135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25137 (eval $ac_try) 2>&5
25138 ac_status=$?
25139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140 (exit $ac_status); }; } &&
25141 { ac_try='test -s conftest$ac_exeext'
25142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146 (exit $ac_status); }; }; then
25147 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25148 else
25149 echo "$as_me: failed program was:" >&5
25150 sed 's/^/| /' conftest.$ac_ext >&5
25151
25152 ac_cv_lib_dnet_stub_dnet_ntoa=no
25153 fi
25154 rm -f conftest.err conftest.$ac_objext \
25155 conftest$ac_exeext conftest.$ac_ext
25156 LIBS=$ac_check_lib_save_LIBS
25157 fi
25158 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25159 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25160 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25161 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25162 fi
25163
25164 fi
25165 fi
25166 rm -f conftest.err conftest.$ac_objext \
25167 conftest$ac_exeext conftest.$ac_ext
25168 LIBS="$ac_xsave_LIBS"
25169
25170 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25171 # to get the SysV transport functions.
25172 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25173 # needs -lnsl.
25174 # The nsl library prevents programs from opening the X display
25175 # on Irix 5.2, according to T.E. Dickey.
25176 # The functions gethostbyname, getservbyname, and inet_addr are
25177 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25178 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25179 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25180 if test "${ac_cv_func_gethostbyname+set}" = set; then
25181 echo $ECHO_N "(cached) $ECHO_C" >&6
25182 else
25183 cat >conftest.$ac_ext <<_ACEOF
25184 /* confdefs.h. */
25185 _ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h. */
25189 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25191 #define gethostbyname innocuous_gethostbyname
25192
25193 /* System header to define __stub macros and hopefully few prototypes,
25194 which can conflict with char gethostbyname (); below.
25195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25196 <limits.h> exists even on freestanding compilers. */
25197
25198 #ifdef __STDC__
25199 # include <limits.h>
25200 #else
25201 # include <assert.h>
25202 #endif
25203
25204 #undef gethostbyname
25205
25206 /* Override any gcc2 internal prototype to avoid an error. */
25207 #ifdef __cplusplus
25208 extern "C"
25209 {
25210 #endif
25211 /* We use char because int might match the return type of a gcc2
25212 builtin and then its argument prototype would still apply. */
25213 char gethostbyname ();
25214 /* The GNU C library defines this for functions which it implements
25215 to always fail with ENOSYS. Some functions are actually named
25216 something starting with __ and the normal name is an alias. */
25217 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25218 choke me
25219 #else
25220 char (*f) () = gethostbyname;
25221 #endif
25222 #ifdef __cplusplus
25223 }
25224 #endif
25225
25226 int
25227 main ()
25228 {
25229 return f != gethostbyname;
25230 ;
25231 return 0;
25232 }
25233 _ACEOF
25234 rm -f conftest.$ac_objext conftest$ac_exeext
25235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25236 (eval $ac_link) 2>conftest.er1
25237 ac_status=$?
25238 grep -v '^ *+' conftest.er1 >conftest.err
25239 rm -f conftest.er1
25240 cat conftest.err >&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } &&
25243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
25249 { ac_try='test -s conftest$ac_exeext'
25250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25251 (eval $ac_try) 2>&5
25252 ac_status=$?
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); }; }; then
25255 ac_cv_func_gethostbyname=yes
25256 else
25257 echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25259
25260 ac_cv_func_gethostbyname=no
25261 fi
25262 rm -f conftest.err conftest.$ac_objext \
25263 conftest$ac_exeext conftest.$ac_ext
25264 fi
25265 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25266 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25267
25268 if test $ac_cv_func_gethostbyname = no; then
25269 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25270 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25271 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25272 echo $ECHO_N "(cached) $ECHO_C" >&6
25273 else
25274 ac_check_lib_save_LIBS=$LIBS
25275 LIBS="-lnsl $LIBS"
25276 cat >conftest.$ac_ext <<_ACEOF
25277 /* confdefs.h. */
25278 _ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h. */
25282
25283 /* Override any gcc2 internal prototype to avoid an error. */
25284 #ifdef __cplusplus
25285 extern "C"
25286 #endif
25287 /* We use char because int might match the return type of a gcc2
25288 builtin and then its argument prototype would still apply. */
25289 char gethostbyname ();
25290 int
25291 main ()
25292 {
25293 gethostbyname ();
25294 ;
25295 return 0;
25296 }
25297 _ACEOF
25298 rm -f conftest.$ac_objext conftest$ac_exeext
25299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25300 (eval $ac_link) 2>conftest.er1
25301 ac_status=$?
25302 grep -v '^ *+' conftest.er1 >conftest.err
25303 rm -f conftest.er1
25304 cat conftest.err >&5
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); } &&
25307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25309 (eval $ac_try) 2>&5
25310 ac_status=$?
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); }; } &&
25313 { ac_try='test -s conftest$ac_exeext'
25314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25315 (eval $ac_try) 2>&5
25316 ac_status=$?
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); }; }; then
25319 ac_cv_lib_nsl_gethostbyname=yes
25320 else
25321 echo "$as_me: failed program was:" >&5
25322 sed 's/^/| /' conftest.$ac_ext >&5
25323
25324 ac_cv_lib_nsl_gethostbyname=no
25325 fi
25326 rm -f conftest.err conftest.$ac_objext \
25327 conftest$ac_exeext conftest.$ac_ext
25328 LIBS=$ac_check_lib_save_LIBS
25329 fi
25330 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25331 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25332 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25333 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25334 fi
25335
25336 if test $ac_cv_lib_nsl_gethostbyname = no; then
25337 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25338 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25339 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25340 echo $ECHO_N "(cached) $ECHO_C" >&6
25341 else
25342 ac_check_lib_save_LIBS=$LIBS
25343 LIBS="-lbsd $LIBS"
25344 cat >conftest.$ac_ext <<_ACEOF
25345 /* confdefs.h. */
25346 _ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h. */
25350
25351 /* Override any gcc2 internal prototype to avoid an error. */
25352 #ifdef __cplusplus
25353 extern "C"
25354 #endif
25355 /* We use char because int might match the return type of a gcc2
25356 builtin and then its argument prototype would still apply. */
25357 char gethostbyname ();
25358 int
25359 main ()
25360 {
25361 gethostbyname ();
25362 ;
25363 return 0;
25364 }
25365 _ACEOF
25366 rm -f conftest.$ac_objext conftest$ac_exeext
25367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25368 (eval $ac_link) 2>conftest.er1
25369 ac_status=$?
25370 grep -v '^ *+' conftest.er1 >conftest.err
25371 rm -f conftest.er1
25372 cat conftest.err >&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } &&
25375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25377 (eval $ac_try) 2>&5
25378 ac_status=$?
25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); }; } &&
25381 { ac_try='test -s conftest$ac_exeext'
25382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25383 (eval $ac_try) 2>&5
25384 ac_status=$?
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); }; }; then
25387 ac_cv_lib_bsd_gethostbyname=yes
25388 else
25389 echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25391
25392 ac_cv_lib_bsd_gethostbyname=no
25393 fi
25394 rm -f conftest.err conftest.$ac_objext \
25395 conftest$ac_exeext conftest.$ac_ext
25396 LIBS=$ac_check_lib_save_LIBS
25397 fi
25398 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25399 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25400 if test $ac_cv_lib_bsd_gethostbyname = yes; then
25401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25402 fi
25403
25404 fi
25405 fi
25406
25407 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25408 # socket/setsockopt and other routines are undefined under SCO ODT
25409 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25410 # on later versions), says Simon Leinen: it contains gethostby*
25411 # variants that don't use the name server (or something). -lsocket
25412 # must be given before -lnsl if both are needed. We assume that
25413 # if connect needs -lnsl, so does gethostbyname.
25414 echo "$as_me:$LINENO: checking for connect" >&5
25415 echo $ECHO_N "checking for connect... $ECHO_C" >&6
25416 if test "${ac_cv_func_connect+set}" = set; then
25417 echo $ECHO_N "(cached) $ECHO_C" >&6
25418 else
25419 cat >conftest.$ac_ext <<_ACEOF
25420 /* confdefs.h. */
25421 _ACEOF
25422 cat confdefs.h >>conftest.$ac_ext
25423 cat >>conftest.$ac_ext <<_ACEOF
25424 /* end confdefs.h. */
25425 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
25426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25427 #define connect innocuous_connect
25428
25429 /* System header to define __stub macros and hopefully few prototypes,
25430 which can conflict with char connect (); below.
25431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25432 <limits.h> exists even on freestanding compilers. */
25433
25434 #ifdef __STDC__
25435 # include <limits.h>
25436 #else
25437 # include <assert.h>
25438 #endif
25439
25440 #undef connect
25441
25442 /* Override any gcc2 internal prototype to avoid an error. */
25443 #ifdef __cplusplus
25444 extern "C"
25445 {
25446 #endif
25447 /* We use char because int might match the return type of a gcc2
25448 builtin and then its argument prototype would still apply. */
25449 char connect ();
25450 /* The GNU C library defines this for functions which it implements
25451 to always fail with ENOSYS. Some functions are actually named
25452 something starting with __ and the normal name is an alias. */
25453 #if defined (__stub_connect) || defined (__stub___connect)
25454 choke me
25455 #else
25456 char (*f) () = connect;
25457 #endif
25458 #ifdef __cplusplus
25459 }
25460 #endif
25461
25462 int
25463 main ()
25464 {
25465 return f != connect;
25466 ;
25467 return 0;
25468 }
25469 _ACEOF
25470 rm -f conftest.$ac_objext conftest$ac_exeext
25471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25472 (eval $ac_link) 2>conftest.er1
25473 ac_status=$?
25474 grep -v '^ *+' conftest.er1 >conftest.err
25475 rm -f conftest.er1
25476 cat conftest.err >&5
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); } &&
25479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; } &&
25485 { ac_try='test -s conftest$ac_exeext'
25486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487 (eval $ac_try) 2>&5
25488 ac_status=$?
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }; }; then
25491 ac_cv_func_connect=yes
25492 else
25493 echo "$as_me: failed program was:" >&5
25494 sed 's/^/| /' conftest.$ac_ext >&5
25495
25496 ac_cv_func_connect=no
25497 fi
25498 rm -f conftest.err conftest.$ac_objext \
25499 conftest$ac_exeext conftest.$ac_ext
25500 fi
25501 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25502 echo "${ECHO_T}$ac_cv_func_connect" >&6
25503
25504 if test $ac_cv_func_connect = no; then
25505 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25506 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25507 if test "${ac_cv_lib_socket_connect+set}" = set; then
25508 echo $ECHO_N "(cached) $ECHO_C" >&6
25509 else
25510 ac_check_lib_save_LIBS=$LIBS
25511 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25512 cat >conftest.$ac_ext <<_ACEOF
25513 /* confdefs.h. */
25514 _ACEOF
25515 cat confdefs.h >>conftest.$ac_ext
25516 cat >>conftest.$ac_ext <<_ACEOF
25517 /* end confdefs.h. */
25518
25519 /* Override any gcc2 internal prototype to avoid an error. */
25520 #ifdef __cplusplus
25521 extern "C"
25522 #endif
25523 /* We use char because int might match the return type of a gcc2
25524 builtin and then its argument prototype would still apply. */
25525 char connect ();
25526 int
25527 main ()
25528 {
25529 connect ();
25530 ;
25531 return 0;
25532 }
25533 _ACEOF
25534 rm -f conftest.$ac_objext conftest$ac_exeext
25535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25536 (eval $ac_link) 2>conftest.er1
25537 ac_status=$?
25538 grep -v '^ *+' conftest.er1 >conftest.err
25539 rm -f conftest.er1
25540 cat conftest.err >&5
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); } &&
25543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545 (eval $ac_try) 2>&5
25546 ac_status=$?
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; } &&
25549 { ac_try='test -s conftest$ac_exeext'
25550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551 (eval $ac_try) 2>&5
25552 ac_status=$?
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); }; }; then
25555 ac_cv_lib_socket_connect=yes
25556 else
25557 echo "$as_me: failed program was:" >&5
25558 sed 's/^/| /' conftest.$ac_ext >&5
25559
25560 ac_cv_lib_socket_connect=no
25561 fi
25562 rm -f conftest.err conftest.$ac_objext \
25563 conftest$ac_exeext conftest.$ac_ext
25564 LIBS=$ac_check_lib_save_LIBS
25565 fi
25566 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25567 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25568 if test $ac_cv_lib_socket_connect = yes; then
25569 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25570 fi
25571
25572 fi
25573
25574 # Guillermo Gomez says -lposix is necessary on A/UX.
25575 echo "$as_me:$LINENO: checking for remove" >&5
25576 echo $ECHO_N "checking for remove... $ECHO_C" >&6
25577 if test "${ac_cv_func_remove+set}" = set; then
25578 echo $ECHO_N "(cached) $ECHO_C" >&6
25579 else
25580 cat >conftest.$ac_ext <<_ACEOF
25581 /* confdefs.h. */
25582 _ACEOF
25583 cat confdefs.h >>conftest.$ac_ext
25584 cat >>conftest.$ac_ext <<_ACEOF
25585 /* end confdefs.h. */
25586 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
25587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25588 #define remove innocuous_remove
25589
25590 /* System header to define __stub macros and hopefully few prototypes,
25591 which can conflict with char remove (); below.
25592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25593 <limits.h> exists even on freestanding compilers. */
25594
25595 #ifdef __STDC__
25596 # include <limits.h>
25597 #else
25598 # include <assert.h>
25599 #endif
25600
25601 #undef remove
25602
25603 /* Override any gcc2 internal prototype to avoid an error. */
25604 #ifdef __cplusplus
25605 extern "C"
25606 {
25607 #endif
25608 /* We use char because int might match the return type of a gcc2
25609 builtin and then its argument prototype would still apply. */
25610 char remove ();
25611 /* The GNU C library defines this for functions which it implements
25612 to always fail with ENOSYS. Some functions are actually named
25613 something starting with __ and the normal name is an alias. */
25614 #if defined (__stub_remove) || defined (__stub___remove)
25615 choke me
25616 #else
25617 char (*f) () = remove;
25618 #endif
25619 #ifdef __cplusplus
25620 }
25621 #endif
25622
25623 int
25624 main ()
25625 {
25626 return f != remove;
25627 ;
25628 return 0;
25629 }
25630 _ACEOF
25631 rm -f conftest.$ac_objext conftest$ac_exeext
25632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25633 (eval $ac_link) 2>conftest.er1
25634 ac_status=$?
25635 grep -v '^ *+' conftest.er1 >conftest.err
25636 rm -f conftest.er1
25637 cat conftest.err >&5
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); } &&
25640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25642 (eval $ac_try) 2>&5
25643 ac_status=$?
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); }; } &&
25646 { ac_try='test -s conftest$ac_exeext'
25647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25648 (eval $ac_try) 2>&5
25649 ac_status=$?
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); }; }; then
25652 ac_cv_func_remove=yes
25653 else
25654 echo "$as_me: failed program was:" >&5
25655 sed 's/^/| /' conftest.$ac_ext >&5
25656
25657 ac_cv_func_remove=no
25658 fi
25659 rm -f conftest.err conftest.$ac_objext \
25660 conftest$ac_exeext conftest.$ac_ext
25661 fi
25662 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25663 echo "${ECHO_T}$ac_cv_func_remove" >&6
25664
25665 if test $ac_cv_func_remove = no; then
25666 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25667 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25668 if test "${ac_cv_lib_posix_remove+set}" = set; then
25669 echo $ECHO_N "(cached) $ECHO_C" >&6
25670 else
25671 ac_check_lib_save_LIBS=$LIBS
25672 LIBS="-lposix $LIBS"
25673 cat >conftest.$ac_ext <<_ACEOF
25674 /* confdefs.h. */
25675 _ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h. */
25679
25680 /* Override any gcc2 internal prototype to avoid an error. */
25681 #ifdef __cplusplus
25682 extern "C"
25683 #endif
25684 /* We use char because int might match the return type of a gcc2
25685 builtin and then its argument prototype would still apply. */
25686 char remove ();
25687 int
25688 main ()
25689 {
25690 remove ();
25691 ;
25692 return 0;
25693 }
25694 _ACEOF
25695 rm -f conftest.$ac_objext conftest$ac_exeext
25696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25697 (eval $ac_link) 2>conftest.er1
25698 ac_status=$?
25699 grep -v '^ *+' conftest.er1 >conftest.err
25700 rm -f conftest.er1
25701 cat conftest.err >&5
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); } &&
25704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); }; } &&
25710 { ac_try='test -s conftest$ac_exeext'
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; }; then
25716 ac_cv_lib_posix_remove=yes
25717 else
25718 echo "$as_me: failed program was:" >&5
25719 sed 's/^/| /' conftest.$ac_ext >&5
25720
25721 ac_cv_lib_posix_remove=no
25722 fi
25723 rm -f conftest.err conftest.$ac_objext \
25724 conftest$ac_exeext conftest.$ac_ext
25725 LIBS=$ac_check_lib_save_LIBS
25726 fi
25727 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25728 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25729 if test $ac_cv_lib_posix_remove = yes; then
25730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25731 fi
25732
25733 fi
25734
25735 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25736 echo "$as_me:$LINENO: checking for shmat" >&5
25737 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25738 if test "${ac_cv_func_shmat+set}" = set; then
25739 echo $ECHO_N "(cached) $ECHO_C" >&6
25740 else
25741 cat >conftest.$ac_ext <<_ACEOF
25742 /* confdefs.h. */
25743 _ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h. */
25747 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25749 #define shmat innocuous_shmat
25750
25751 /* System header to define __stub macros and hopefully few prototypes,
25752 which can conflict with char shmat (); below.
25753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25754 <limits.h> exists even on freestanding compilers. */
25755
25756 #ifdef __STDC__
25757 # include <limits.h>
25758 #else
25759 # include <assert.h>
25760 #endif
25761
25762 #undef shmat
25763
25764 /* Override any gcc2 internal prototype to avoid an error. */
25765 #ifdef __cplusplus
25766 extern "C"
25767 {
25768 #endif
25769 /* We use char because int might match the return type of a gcc2
25770 builtin and then its argument prototype would still apply. */
25771 char shmat ();
25772 /* The GNU C library defines this for functions which it implements
25773 to always fail with ENOSYS. Some functions are actually named
25774 something starting with __ and the normal name is an alias. */
25775 #if defined (__stub_shmat) || defined (__stub___shmat)
25776 choke me
25777 #else
25778 char (*f) () = shmat;
25779 #endif
25780 #ifdef __cplusplus
25781 }
25782 #endif
25783
25784 int
25785 main ()
25786 {
25787 return f != shmat;
25788 ;
25789 return 0;
25790 }
25791 _ACEOF
25792 rm -f conftest.$ac_objext conftest$ac_exeext
25793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25794 (eval $ac_link) 2>conftest.er1
25795 ac_status=$?
25796 grep -v '^ *+' conftest.er1 >conftest.err
25797 rm -f conftest.er1
25798 cat conftest.err >&5
25799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25800 (exit $ac_status); } &&
25801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25803 (eval $ac_try) 2>&5
25804 ac_status=$?
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); }; } &&
25807 { ac_try='test -s conftest$ac_exeext'
25808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25809 (eval $ac_try) 2>&5
25810 ac_status=$?
25811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); }; }; then
25813 ac_cv_func_shmat=yes
25814 else
25815 echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25817
25818 ac_cv_func_shmat=no
25819 fi
25820 rm -f conftest.err conftest.$ac_objext \
25821 conftest$ac_exeext conftest.$ac_ext
25822 fi
25823 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25824 echo "${ECHO_T}$ac_cv_func_shmat" >&6
25825
25826 if test $ac_cv_func_shmat = no; then
25827 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25828 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25829 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25830 echo $ECHO_N "(cached) $ECHO_C" >&6
25831 else
25832 ac_check_lib_save_LIBS=$LIBS
25833 LIBS="-lipc $LIBS"
25834 cat >conftest.$ac_ext <<_ACEOF
25835 /* confdefs.h. */
25836 _ACEOF
25837 cat confdefs.h >>conftest.$ac_ext
25838 cat >>conftest.$ac_ext <<_ACEOF
25839 /* end confdefs.h. */
25840
25841 /* Override any gcc2 internal prototype to avoid an error. */
25842 #ifdef __cplusplus
25843 extern "C"
25844 #endif
25845 /* We use char because int might match the return type of a gcc2
25846 builtin and then its argument prototype would still apply. */
25847 char shmat ();
25848 int
25849 main ()
25850 {
25851 shmat ();
25852 ;
25853 return 0;
25854 }
25855 _ACEOF
25856 rm -f conftest.$ac_objext conftest$ac_exeext
25857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25858 (eval $ac_link) 2>conftest.er1
25859 ac_status=$?
25860 grep -v '^ *+' conftest.er1 >conftest.err
25861 rm -f conftest.er1
25862 cat conftest.err >&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); } &&
25865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25867 (eval $ac_try) 2>&5
25868 ac_status=$?
25869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); }; } &&
25871 { ac_try='test -s conftest$ac_exeext'
25872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25873 (eval $ac_try) 2>&5
25874 ac_status=$?
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); }; }; then
25877 ac_cv_lib_ipc_shmat=yes
25878 else
25879 echo "$as_me: failed program was:" >&5
25880 sed 's/^/| /' conftest.$ac_ext >&5
25881
25882 ac_cv_lib_ipc_shmat=no
25883 fi
25884 rm -f conftest.err conftest.$ac_objext \
25885 conftest$ac_exeext conftest.$ac_ext
25886 LIBS=$ac_check_lib_save_LIBS
25887 fi
25888 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25889 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25890 if test $ac_cv_lib_ipc_shmat = yes; then
25891 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25892 fi
25893
25894 fi
25895 fi
25896
25897 # Check for libraries that X11R6 Xt/Xaw programs need.
25898 ac_save_LDFLAGS=$LDFLAGS
25899 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25900 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25901 # check for ICE first), but we must link in the order -lSM -lICE or
25902 # we get undefined symbols. So assume we have SM if we have ICE.
25903 # These have to be linked with before -lX11, unlike the other
25904 # libraries we check for below, so use a different variable.
25905 # John Interrante, Karl Berry
25906 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25907 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25908 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25909 echo $ECHO_N "(cached) $ECHO_C" >&6
25910 else
25911 ac_check_lib_save_LIBS=$LIBS
25912 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25913 cat >conftest.$ac_ext <<_ACEOF
25914 /* confdefs.h. */
25915 _ACEOF
25916 cat confdefs.h >>conftest.$ac_ext
25917 cat >>conftest.$ac_ext <<_ACEOF
25918 /* end confdefs.h. */
25919
25920 /* Override any gcc2 internal prototype to avoid an error. */
25921 #ifdef __cplusplus
25922 extern "C"
25923 #endif
25924 /* We use char because int might match the return type of a gcc2
25925 builtin and then its argument prototype would still apply. */
25926 char IceConnectionNumber ();
25927 int
25928 main ()
25929 {
25930 IceConnectionNumber ();
25931 ;
25932 return 0;
25933 }
25934 _ACEOF
25935 rm -f conftest.$ac_objext conftest$ac_exeext
25936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25937 (eval $ac_link) 2>conftest.er1
25938 ac_status=$?
25939 grep -v '^ *+' conftest.er1 >conftest.err
25940 rm -f conftest.er1
25941 cat conftest.err >&5
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); } &&
25944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); }; } &&
25950 { ac_try='test -s conftest$ac_exeext'
25951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952 (eval $ac_try) 2>&5
25953 ac_status=$?
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); }; }; then
25956 ac_cv_lib_ICE_IceConnectionNumber=yes
25957 else
25958 echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25960
25961 ac_cv_lib_ICE_IceConnectionNumber=no
25962 fi
25963 rm -f conftest.err conftest.$ac_objext \
25964 conftest$ac_exeext conftest.$ac_ext
25965 LIBS=$ac_check_lib_save_LIBS
25966 fi
25967 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25968 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25969 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25970 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25971 fi
25972
25973 LDFLAGS=$ac_save_LDFLAGS
25974
25975 fi
25976
25977
25978 if test "$no_x" = "yes"; then
25979 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25980 echo "$as_me: error: X11 not found" >&2;}
25981 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25982 fi
25983
25984 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
25985 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
25986 AFMINSTALL=afminstall
25987 COMPILED_X_PROGRAM=0
25988
25989 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25990 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
25991
25992 ac_find_includes=
25993 for ac_dir in $SEARCH_INCLUDE /usr/include;
25994 do
25995 if test -f "$ac_dir/Xm/Xm.h"; then
25996 ac_find_includes=$ac_dir
25997 break
25998 fi
25999 done
26000
26001 if test "$ac_find_includes" != "" ; then
26002 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26003 echo "${ECHO_T}found in $ac_find_includes" >&6
26004
26005 if test "x$ac_find_includes" = "x/usr/include"; then
26006 ac_path_to_include=""
26007 else
26008 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26009 result=$?
26010 if test $result = 0; then
26011 ac_path_to_include=""
26012 else
26013 ac_path_to_include=" -I$ac_find_includes"
26014 fi
26015 fi
26016
26017 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26018 else
26019 cat >conftest.$ac_ext <<_ACEOF
26020 /* confdefs.h. */
26021 _ACEOF
26022 cat confdefs.h >>conftest.$ac_ext
26023 cat >>conftest.$ac_ext <<_ACEOF
26024 /* end confdefs.h. */
26025
26026 #include <Xm/Xm.h>
26027
26028 int
26029 main ()
26030 {
26031
26032 int version;
26033 version = xmUseVersion;
26034
26035 ;
26036 return 0;
26037 }
26038 _ACEOF
26039 rm -f conftest.$ac_objext
26040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26041 (eval $ac_compile) 2>conftest.er1
26042 ac_status=$?
26043 grep -v '^ *+' conftest.er1 >conftest.err
26044 rm -f conftest.er1
26045 cat conftest.err >&5
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); } &&
26048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050 (eval $ac_try) 2>&5
26051 ac_status=$?
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; } &&
26054 { ac_try='test -s conftest.$ac_objext'
26055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056 (eval $ac_try) 2>&5
26057 ac_status=$?
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); }; }; then
26060
26061 echo "$as_me:$LINENO: result: found in default search path" >&5
26062 echo "${ECHO_T}found in default search path" >&6
26063 COMPILED_X_PROGRAM=1
26064
26065 else
26066 echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26068
26069
26070 echo "$as_me:$LINENO: result: no" >&5
26071 echo "${ECHO_T}no" >&6
26072 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26073 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26074 { (exit 1); exit 1; }; }
26075
26076
26077 fi
26078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26079 fi
26080
26081 if test "$COMPILED_X_PROGRAM" = 0; then
26082 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26083 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26084
26085 ac_find_libraries=
26086 for ac_dir in $SEARCH_LIB /usr/lib;
26087 do
26088 for ac_extension in a so sl dylib; do
26089 if test -f "$ac_dir/libXm.$ac_extension"; then
26090 ac_find_libraries=$ac_dir
26091 break 2
26092 fi
26093 done
26094 done
26095
26096 if test "$ac_find_libraries" != "" ; then
26097 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26098 echo "${ECHO_T}found at $ac_find_libraries" >&6
26099
26100
26101 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26102 result=$?
26103 if test $result = 0; then
26104 ac_path_to_link=""
26105 else
26106 ac_path_to_link=" -L$ac_find_libraries"
26107 fi
26108
26109 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26110 else
26111 save_CFLAGS=$CFLAGS
26112 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26113
26114 cat >conftest.$ac_ext <<_ACEOF
26115 /* confdefs.h. */
26116 _ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h. */
26120
26121 #include <Xm/Xm.h>
26122
26123 int
26124 main ()
26125 {
26126
26127 int version;
26128 version = xmUseVersion;
26129
26130 ;
26131 return 0;
26132 }
26133 _ACEOF
26134 rm -f conftest.$ac_objext
26135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26136 (eval $ac_compile) 2>conftest.er1
26137 ac_status=$?
26138 grep -v '^ *+' conftest.er1 >conftest.err
26139 rm -f conftest.er1
26140 cat conftest.err >&5
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); } &&
26143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26145 (eval $ac_try) 2>&5
26146 ac_status=$?
26147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148 (exit $ac_status); }; } &&
26149 { ac_try='test -s conftest.$ac_objext'
26150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26151 (eval $ac_try) 2>&5
26152 ac_status=$?
26153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154 (exit $ac_status); }; }; then
26155
26156 echo "$as_me:$LINENO: result: found in default search path" >&5
26157 echo "${ECHO_T}found in default search path" >&6
26158 COMPILED_X_PROGRAM=1
26159
26160 else
26161 echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26163
26164
26165 echo "$as_me:$LINENO: result: no" >&5
26166 echo "${ECHO_T}no" >&6
26167 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26168 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26169 { (exit 1); exit 1; }; }
26170
26171
26172 fi
26173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26174
26175 CFLAGS=$save_CFLAGS
26176 fi
26177 fi
26178
26179 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26180 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26181 libp_link=""
26182 libsm_ice_link=""
26183 libs_found=0
26184 for libp in "" " -lXp"; do
26185 if test "$libs_found" = "0"; then
26186 for libsm_ice in "" " -lSM -lICE"; do
26187 if test "$libs_found" = "0"; then
26188 save_LIBS="$LIBS"
26189 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26190 save_CFLAGS=$CFLAGS
26191 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26192
26193 cat >conftest.$ac_ext <<_ACEOF
26194 /* confdefs.h. */
26195 _ACEOF
26196 cat confdefs.h >>conftest.$ac_ext
26197 cat >>conftest.$ac_ext <<_ACEOF
26198 /* end confdefs.h. */
26199
26200 #include <Xm/Xm.h>
26201 #include <Xm/List.h>
26202
26203 int
26204 main ()
26205 {
26206
26207 XmString string = NULL;
26208 Widget w = NULL;
26209 int position = 0;
26210 XmListAddItem(w, string, position);
26211
26212 ;
26213 return 0;
26214 }
26215 _ACEOF
26216 rm -f conftest.$ac_objext conftest$ac_exeext
26217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26218 (eval $ac_link) 2>conftest.er1
26219 ac_status=$?
26220 grep -v '^ *+' conftest.er1 >conftest.err
26221 rm -f conftest.er1
26222 cat conftest.err >&5
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); } &&
26225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26227 (eval $ac_try) 2>&5
26228 ac_status=$?
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); }; } &&
26231 { ac_try='test -s conftest$ac_exeext'
26232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26233 (eval $ac_try) 2>&5
26234 ac_status=$?
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); }; }; then
26237
26238 libp_link="$libp"
26239 libsm_ice_link="$libsm_ice"
26240 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26241 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26242 libs_found=1
26243
26244 else
26245 echo "$as_me: failed program was:" >&5
26246 sed 's/^/| /' conftest.$ac_ext >&5
26247
26248
26249
26250 fi
26251 rm -f conftest.err conftest.$ac_objext \
26252 conftest$ac_exeext conftest.$ac_ext
26253
26254 LIBS="$save_LIBS"
26255 CFLAGS=$save_CFLAGS
26256 fi
26257 done
26258 fi
26259 done
26260
26261 if test "$libs_found" = "0"; then
26262 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26263 echo "${ECHO_T}can't find the right libraries" >&6
26264 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26265 echo "$as_me: error: can't link a simple motif program" >&2;}
26266 { (exit 1); exit 1; }; }
26267 fi
26268
26269 save_CFLAGS=$CFLAGS
26270 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26271 echo "$as_me:$LINENO: checking for Motif 2" >&5
26272 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26273 cat >conftest.$ac_ext <<_ACEOF
26274 /* confdefs.h. */
26275 _ACEOF
26276 cat confdefs.h >>conftest.$ac_ext
26277 cat >>conftest.$ac_ext <<_ACEOF
26278 /* end confdefs.h. */
26279
26280 #include <Xm/Xm.h>
26281
26282 int
26283 main ()
26284 {
26285
26286 #if XmVersion < 2000
26287 #error "Not Motif 2"
26288 #endif
26289
26290 ;
26291 return 0;
26292 }
26293 _ACEOF
26294 rm -f conftest.$ac_objext
26295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26296 (eval $ac_compile) 2>conftest.er1
26297 ac_status=$?
26298 grep -v '^ *+' conftest.er1 >conftest.err
26299 rm -f conftest.er1
26300 cat conftest.err >&5
26301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); } &&
26303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26305 (eval $ac_try) 2>&5
26306 ac_status=$?
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); }; } &&
26309 { ac_try='test -s conftest.$ac_objext'
26310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26311 (eval $ac_try) 2>&5
26312 ac_status=$?
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); }; }; then
26315
26316 cat >>confdefs.h <<\_ACEOF
26317 #define __WXMOTIF20__ 1
26318 _ACEOF
26319
26320 echo "$as_me:$LINENO: result: found" >&5
26321 echo "${ECHO_T}found" >&6
26322
26323 else
26324 echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26326
26327
26328 cat >>confdefs.h <<\_ACEOF
26329 #define __WXMOTIF20__ 0
26330 _ACEOF
26331
26332 echo "$as_me:$LINENO: result: not found" >&5
26333 echo "${ECHO_T}not found" >&6
26334
26335 fi
26336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26337 CFLAGS=$save_CFLAGS
26338
26339 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26340 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26341 TOOLKIT=MOTIF
26342 GUIDIST=MOTIF_DIST
26343 fi
26344
26345 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26346 if test "$wxUSE_LIBXPM" = "sys"; then
26347 echo "$as_me:$LINENO: checking for Xpm library" >&5
26348 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26349
26350 ac_find_libraries=
26351 for ac_dir in $SEARCH_LIB /usr/lib;
26352 do
26353 for ac_extension in a so sl dylib; do
26354 if test -f "$ac_dir/libXpm.$ac_extension"; then
26355 ac_find_libraries=$ac_dir
26356 break 2
26357 fi
26358 done
26359 done
26360
26361 if test "$ac_find_libraries" != "" ; then
26362
26363 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26364 result=$?
26365 if test $result = 0; then
26366 ac_path_to_link=""
26367 else
26368 ac_path_to_link=" -L$ac_find_libraries"
26369 fi
26370
26371 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26372 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26373 echo "${ECHO_T}found at $ac_find_libraries" >&6
26374
26375 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26376 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26377 if test "${wx_cv_x11_xpm_h+set}" = set; then
26378 echo $ECHO_N "(cached) $ECHO_C" >&6
26379 else
26380
26381 save_CFLAGS=$CFLAGS
26382 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26383
26384 cat >conftest.$ac_ext <<_ACEOF
26385 /* confdefs.h. */
26386 _ACEOF
26387 cat confdefs.h >>conftest.$ac_ext
26388 cat >>conftest.$ac_ext <<_ACEOF
26389 /* end confdefs.h. */
26390
26391 #include <X11/xpm.h>
26392
26393 int
26394 main ()
26395 {
26396
26397 int version;
26398 version = XpmLibraryVersion();
26399
26400 ;
26401 return 0;
26402 }
26403 _ACEOF
26404 rm -f conftest.$ac_objext
26405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26406 (eval $ac_compile) 2>conftest.er1
26407 ac_status=$?
26408 grep -v '^ *+' conftest.er1 >conftest.err
26409 rm -f conftest.er1
26410 cat conftest.err >&5
26411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412 (exit $ac_status); } &&
26413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26415 (eval $ac_try) 2>&5
26416 ac_status=$?
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); }; } &&
26419 { ac_try='test -s conftest.$ac_objext'
26420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421 (eval $ac_try) 2>&5
26422 ac_status=$?
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); }; }; then
26425 wx_cv_x11_xpm_h=yes
26426 else
26427 echo "$as_me: failed program was:" >&5
26428 sed 's/^/| /' conftest.$ac_ext >&5
26429
26430 wx_cv_x11_xpm_h=no
26431
26432 fi
26433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26434
26435 CFLAGS=$save_CFLAGS
26436
26437
26438 fi
26439 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26440 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26441
26442 if test $wx_cv_x11_xpm_h = "yes"; then
26443 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26444 cat >>confdefs.h <<\_ACEOF
26445 #define wxHAVE_LIB_XPM 1
26446 _ACEOF
26447
26448 else
26449 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26450 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26451 fi
26452 fi
26453
26454 fi
26455
26456 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26457 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26458 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26459 echo $ECHO_N "(cached) $ECHO_C" >&6
26460 else
26461 ac_check_lib_save_LIBS=$LIBS
26462 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26463 cat >conftest.$ac_ext <<_ACEOF
26464 /* confdefs.h. */
26465 _ACEOF
26466 cat confdefs.h >>conftest.$ac_ext
26467 cat >>conftest.$ac_ext <<_ACEOF
26468 /* end confdefs.h. */
26469
26470 /* Override any gcc2 internal prototype to avoid an error. */
26471 #ifdef __cplusplus
26472 extern "C"
26473 #endif
26474 /* We use char because int might match the return type of a gcc2
26475 builtin and then its argument prototype would still apply. */
26476 char XShapeQueryExtension ();
26477 int
26478 main ()
26479 {
26480 XShapeQueryExtension ();
26481 ;
26482 return 0;
26483 }
26484 _ACEOF
26485 rm -f conftest.$ac_objext conftest$ac_exeext
26486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26487 (eval $ac_link) 2>conftest.er1
26488 ac_status=$?
26489 grep -v '^ *+' conftest.er1 >conftest.err
26490 rm -f conftest.er1
26491 cat conftest.err >&5
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); } &&
26494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26496 (eval $ac_try) 2>&5
26497 ac_status=$?
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); }; } &&
26500 { ac_try='test -s conftest$ac_exeext'
26501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26502 (eval $ac_try) 2>&5
26503 ac_status=$?
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); }; }; then
26506 ac_cv_lib_Xext_XShapeQueryExtension=yes
26507 else
26508 echo "$as_me: failed program was:" >&5
26509 sed 's/^/| /' conftest.$ac_ext >&5
26510
26511 ac_cv_lib_Xext_XShapeQueryExtension=no
26512 fi
26513 rm -f conftest.err conftest.$ac_objext \
26514 conftest$ac_exeext conftest.$ac_ext
26515 LIBS=$ac_check_lib_save_LIBS
26516 fi
26517 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26518 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26519 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26520
26521 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26522 wxHAVE_XEXT_LIB=1
26523
26524 fi
26525
26526
26527 if test "$wxHAVE_XEXT_LIB" = 1; then
26528 save_CFLAGS="$CFLAGS"
26529 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26530
26531 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26532 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26533 cat >conftest.$ac_ext <<_ACEOF
26534 /* confdefs.h. */
26535 _ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h. */
26539
26540 #include <X11/Xlib.h>
26541 #include <X11/extensions/shape.h>
26542
26543 int
26544 main ()
26545 {
26546
26547 int dummy1, dummy2;
26548 XShapeQueryExtension((Display*)NULL,
26549 (int*)NULL, (int*)NULL);
26550
26551 ;
26552 return 0;
26553 }
26554 _ACEOF
26555 rm -f conftest.$ac_objext
26556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26557 (eval $ac_compile) 2>conftest.er1
26558 ac_status=$?
26559 grep -v '^ *+' conftest.er1 >conftest.err
26560 rm -f conftest.er1
26561 cat conftest.err >&5
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); } &&
26564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566 (eval $ac_try) 2>&5
26567 ac_status=$?
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; } &&
26570 { ac_try='test -s conftest.$ac_objext'
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26573 ac_status=$?
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; }; then
26576
26577 cat >>confdefs.h <<\_ACEOF
26578 #define HAVE_XSHAPE 1
26579 _ACEOF
26580
26581 echo "$as_me:$LINENO: result: found" >&5
26582 echo "${ECHO_T}found" >&6
26583
26584 else
26585 echo "$as_me: failed program was:" >&5
26586 sed 's/^/| /' conftest.$ac_ext >&5
26587
26588
26589 echo "$as_me:$LINENO: result: not found" >&5
26590 echo "${ECHO_T}not found" >&6
26591
26592 fi
26593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26594 CFLAGS="$save_CFLAGS"
26595
26596 fi
26597 fi
26598
26599 if test "$wxUSE_MAC" = 1; then
26600 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26601 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26602 if test "$GCC" = yes; then
26603 echo "$as_me:$LINENO: result: gcc" >&5
26604 echo "${ECHO_T}gcc" >&6
26605 CPPFLAGS_PASCAL="-fpascal-strings"
26606 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26607 echo "$as_me:$LINENO: result: xlc" >&5
26608 echo "${ECHO_T}xlc" >&6
26609 CPPFLAGS_PASCAL="-qmacpstr"
26610 else
26611 echo "$as_me:$LINENO: result: none" >&5
26612 echo "${ECHO_T}none" >&6
26613 fi
26614
26615 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
26616
26617 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
26618 TOOLKIT=MAC
26619 GUIDIST=MACX_DIST
26620 WXBASEPORT="_carbon"
26621 fi
26622
26623 if test "$wxUSE_COCOA" = 1; then
26624 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26625 TOOLKIT=COCOA
26626 GUIDIST=COCOA_DIST
26627 fi
26628
26629 if test "$wxUSE_PM" = 1; then
26630 TOOLKIT=PM
26631 GUIDIST=GTK_DIST
26632 fi
26633
26634 if test "$TOOLKIT" = "PM" ; then
26635 TOOLKIT_DIR="os2"
26636 else
26637 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26638 fi
26639
26640 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26641
26642 if test "$wxUSE_UNIVERSAL" = "yes"; then
26643 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26644
26645 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26646 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26647
26648 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26649 if test "$wxUSE_X11" = 1; then
26650 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26651 else
26652 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26653 fi
26654 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26655 WIDGET_SET=univ
26656 else
26657 ALL_OBJECTS="\$(GUIOBJS)"
26658 ALL_SOURCES="\$(ALL_SOURCES)"
26659 ALL_HEADERS="\$(ALL_HEADERS)"
26660 fi
26661
26662 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26663
26664 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26665 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26666 fi
26667
26668 if test "$wxUSE_HTML" = "yes"; then
26669 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26670 fi
26671
26672 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26673 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26674 fi
26675 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26676 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26677 fi
26678 if test "$wxUSE_LIBPNG" = "builtin" ; then
26679 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26680 fi
26681
26682 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26683 DISTDIR="wx\$(TOOLKIT)"
26684 else
26685 USE_GUI=0
26686
26687 TOOLKIT_DIR="base"
26688
26689 if test "$USE_WIN32" = 1 ; then
26690 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26691 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26692
26693 TOOLKIT="MSW"
26694 else
26695 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26696 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26697 fi
26698
26699 ALL_SOURCES="\$(ALL_SOURCES)"
26700 ALL_HEADERS="\$(ALL_HEADERS)"
26701
26702 PORT_FILES="\${top_srcdir}/src/files.lst"
26703
26704 GUIDIST="BASE_DIST"
26705 DISTDIR="wxBase"
26706 fi
26707
26708
26709
26710
26711 IODBC_C_SRC=""
26712
26713
26714 if test "$TOOLKIT" != "MSW" ; then
26715
26716 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26717
26718 if test "${ac_cv_header_sql_h+set}" = set; then
26719 echo "$as_me:$LINENO: checking for sql.h" >&5
26720 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26721 if test "${ac_cv_header_sql_h+set}" = set; then
26722 echo $ECHO_N "(cached) $ECHO_C" >&6
26723 fi
26724 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26725 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26726 else
26727 # Is the header compilable?
26728 echo "$as_me:$LINENO: checking sql.h usability" >&5
26729 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26730 cat >conftest.$ac_ext <<_ACEOF
26731 /* confdefs.h. */
26732 _ACEOF
26733 cat confdefs.h >>conftest.$ac_ext
26734 cat >>conftest.$ac_ext <<_ACEOF
26735 /* end confdefs.h. */
26736 $ac_includes_default
26737 #include <sql.h>
26738 _ACEOF
26739 rm -f conftest.$ac_objext
26740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26741 (eval $ac_compile) 2>conftest.er1
26742 ac_status=$?
26743 grep -v '^ *+' conftest.er1 >conftest.err
26744 rm -f conftest.er1
26745 cat conftest.err >&5
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); } &&
26748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; } &&
26754 { ac_try='test -s conftest.$ac_objext'
26755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756 (eval $ac_try) 2>&5
26757 ac_status=$?
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); }; }; then
26760 ac_header_compiler=yes
26761 else
26762 echo "$as_me: failed program was:" >&5
26763 sed 's/^/| /' conftest.$ac_ext >&5
26764
26765 ac_header_compiler=no
26766 fi
26767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26769 echo "${ECHO_T}$ac_header_compiler" >&6
26770
26771 # Is the header present?
26772 echo "$as_me:$LINENO: checking sql.h presence" >&5
26773 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26774 cat >conftest.$ac_ext <<_ACEOF
26775 /* confdefs.h. */
26776 _ACEOF
26777 cat confdefs.h >>conftest.$ac_ext
26778 cat >>conftest.$ac_ext <<_ACEOF
26779 /* end confdefs.h. */
26780 #include <sql.h>
26781 _ACEOF
26782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26784 ac_status=$?
26785 grep -v '^ *+' conftest.er1 >conftest.err
26786 rm -f conftest.er1
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } >/dev/null; then
26790 if test -s conftest.err; then
26791 ac_cpp_err=$ac_c_preproc_warn_flag
26792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26793 else
26794 ac_cpp_err=
26795 fi
26796 else
26797 ac_cpp_err=yes
26798 fi
26799 if test -z "$ac_cpp_err"; then
26800 ac_header_preproc=yes
26801 else
26802 echo "$as_me: failed program was:" >&5
26803 sed 's/^/| /' conftest.$ac_ext >&5
26804
26805 ac_header_preproc=no
26806 fi
26807 rm -f conftest.err conftest.$ac_ext
26808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26809 echo "${ECHO_T}$ac_header_preproc" >&6
26810
26811 # So? What about this header?
26812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26813 yes:no: )
26814 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26815 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26816 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26817 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26818 ac_header_preproc=yes
26819 ;;
26820 no:yes:* )
26821 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26822 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
26823 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26824 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26825 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26826 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26827 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26828 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
26829 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26830 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
26831 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26832 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
26833 (
26834 cat <<\_ASBOX
26835 ## ----------------------------------------- ##
26836 ## Report this to wx-dev@lists.wxwindows.org ##
26837 ## ----------------------------------------- ##
26838 _ASBOX
26839 ) |
26840 sed "s/^/$as_me: WARNING: /" >&2
26841 ;;
26842 esac
26843 echo "$as_me:$LINENO: checking for sql.h" >&5
26844 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26845 if test "${ac_cv_header_sql_h+set}" = set; then
26846 echo $ECHO_N "(cached) $ECHO_C" >&6
26847 else
26848 ac_cv_header_sql_h=$ac_header_preproc
26849 fi
26850 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26851 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26852
26853 fi
26854 if test $ac_cv_header_sql_h = yes; then
26855 found_sql_h=1
26856 fi
26857
26858
26859 if test "x$found_sql_h" = "x1" ; then
26860 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26861 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26862 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26863 echo $ECHO_N "(cached) $ECHO_C" >&6
26864 else
26865 ac_check_lib_save_LIBS=$LIBS
26866 LIBS="-liodbc $LIBS"
26867 cat >conftest.$ac_ext <<_ACEOF
26868 /* confdefs.h. */
26869 _ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h. */
26873
26874 /* Override any gcc2 internal prototype to avoid an error. */
26875 #ifdef __cplusplus
26876 extern "C"
26877 #endif
26878 /* We use char because int might match the return type of a gcc2
26879 builtin and then its argument prototype would still apply. */
26880 char SQLAllocEnv ();
26881 int
26882 main ()
26883 {
26884 SQLAllocEnv ();
26885 ;
26886 return 0;
26887 }
26888 _ACEOF
26889 rm -f conftest.$ac_objext conftest$ac_exeext
26890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26891 (eval $ac_link) 2>conftest.er1
26892 ac_status=$?
26893 grep -v '^ *+' conftest.er1 >conftest.err
26894 rm -f conftest.er1
26895 cat conftest.err >&5
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); } &&
26898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900 (eval $ac_try) 2>&5
26901 ac_status=$?
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); }; } &&
26904 { ac_try='test -s conftest$ac_exeext'
26905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906 (eval $ac_try) 2>&5
26907 ac_status=$?
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); }; }; then
26910 ac_cv_lib_iodbc_SQLAllocEnv=yes
26911 else
26912 echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26914
26915 ac_cv_lib_iodbc_SQLAllocEnv=no
26916 fi
26917 rm -f conftest.err conftest.$ac_objext \
26918 conftest$ac_exeext conftest.$ac_ext
26919 LIBS=$ac_check_lib_save_LIBS
26920 fi
26921 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26922 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26923 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26924 ODBC_LINK=" -liodbc"
26925 else
26926
26927 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26928 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26929 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26930 echo $ECHO_N "(cached) $ECHO_C" >&6
26931 else
26932 ac_check_lib_save_LIBS=$LIBS
26933 LIBS="-lunixodbc $LIBS"
26934 cat >conftest.$ac_ext <<_ACEOF
26935 /* confdefs.h. */
26936 _ACEOF
26937 cat confdefs.h >>conftest.$ac_ext
26938 cat >>conftest.$ac_ext <<_ACEOF
26939 /* end confdefs.h. */
26940
26941 /* Override any gcc2 internal prototype to avoid an error. */
26942 #ifdef __cplusplus
26943 extern "C"
26944 #endif
26945 /* We use char because int might match the return type of a gcc2
26946 builtin and then its argument prototype would still apply. */
26947 char SQLAllocEnv ();
26948 int
26949 main ()
26950 {
26951 SQLAllocEnv ();
26952 ;
26953 return 0;
26954 }
26955 _ACEOF
26956 rm -f conftest.$ac_objext conftest$ac_exeext
26957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26958 (eval $ac_link) 2>conftest.er1
26959 ac_status=$?
26960 grep -v '^ *+' conftest.er1 >conftest.err
26961 rm -f conftest.er1
26962 cat conftest.err >&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); } &&
26965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967 (eval $ac_try) 2>&5
26968 ac_status=$?
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); }; } &&
26971 { ac_try='test -s conftest$ac_exeext'
26972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973 (eval $ac_try) 2>&5
26974 ac_status=$?
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; }; then
26977 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26978 else
26979 echo "$as_me: failed program was:" >&5
26980 sed 's/^/| /' conftest.$ac_ext >&5
26981
26982 ac_cv_lib_unixodbc_SQLAllocEnv=no
26983 fi
26984 rm -f conftest.err conftest.$ac_objext \
26985 conftest$ac_exeext conftest.$ac_ext
26986 LIBS=$ac_check_lib_save_LIBS
26987 fi
26988 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26989 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26990 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26991 ODBC_LINK=" -lunixodbc"
26992 else
26993
26994 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26995 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26996 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26997 echo $ECHO_N "(cached) $ECHO_C" >&6
26998 else
26999 ac_check_lib_save_LIBS=$LIBS
27000 LIBS="-lodbc $LIBS"
27001 cat >conftest.$ac_ext <<_ACEOF
27002 /* confdefs.h. */
27003 _ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h. */
27007
27008 /* Override any gcc2 internal prototype to avoid an error. */
27009 #ifdef __cplusplus
27010 extern "C"
27011 #endif
27012 /* We use char because int might match the return type of a gcc2
27013 builtin and then its argument prototype would still apply. */
27014 char SQLAllocEnv ();
27015 int
27016 main ()
27017 {
27018 SQLAllocEnv ();
27019 ;
27020 return 0;
27021 }
27022 _ACEOF
27023 rm -f conftest.$ac_objext conftest$ac_exeext
27024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27025 (eval $ac_link) 2>conftest.er1
27026 ac_status=$?
27027 grep -v '^ *+' conftest.er1 >conftest.err
27028 rm -f conftest.er1
27029 cat conftest.err >&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); } &&
27032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034 (eval $ac_try) 2>&5
27035 ac_status=$?
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; } &&
27038 { ac_try='test -s conftest$ac_exeext'
27039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27040 (eval $ac_try) 2>&5
27041 ac_status=$?
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; }; then
27044 ac_cv_lib_odbc_SQLAllocEnv=yes
27045 else
27046 echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27048
27049 ac_cv_lib_odbc_SQLAllocEnv=no
27050 fi
27051 rm -f conftest.err conftest.$ac_objext \
27052 conftest$ac_exeext conftest.$ac_ext
27053 LIBS=$ac_check_lib_save_LIBS
27054 fi
27055 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27056 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27057 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27058 ODBC_LINK=" -lodbc"
27059 fi
27060
27061
27062 fi
27063
27064
27065 fi
27066
27067 fi
27068 if test "x$ODBC_LINK" = "x" ; then
27069 if test "$wxUSE_ODBC" = "sys" ; then
27070 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27071 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27072 { (exit 1); exit 1; }; }
27073 else
27074 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27075 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27076 wxUSE_ODBC=builtin
27077 fi
27078 else
27079 wxUSE_ODBC=sys
27080 fi
27081 fi
27082 if test "$wxUSE_ODBC" != "no" ; then
27083 cat >>confdefs.h <<\_ACEOF
27084 #define wxUSE_ODBC 1
27085 _ACEOF
27086
27087 if test "$wxUSE_ODBC" = "builtin" ; then
27088 cat >>confdefs.h <<\_ACEOF
27089 #define wxUSE_BUILTIN_IODBC 1
27090 _ACEOF
27091
27092 fi
27093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27094
27095 WXODBCFLAG="-D_IODBC_"
27096 fi
27097 fi
27098
27099 if test "$wxUSE_REGEX" = "builtin" ; then
27100 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
27101 fi
27102 if test "$wxUSE_ZLIB" = "builtin" ; then
27103 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
27104 fi
27105
27106 if test "$wxUSE_DISPLAY" = "yes"; then
27107 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
27108 echo "$as_me:$LINENO: checking for Xinerama" >&5
27109 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27110
27111 ac_find_libraries=
27112 for ac_dir in $SEARCH_LIB /usr/lib;
27113 do
27114 for ac_extension in a so sl dylib; do
27115 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27116 ac_find_libraries=$ac_dir
27117 break 2
27118 fi
27119 done
27120 done
27121
27122 if test "$ac_find_libraries" != "" ; then
27123
27124 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27125 result=$?
27126 if test $result = 0; then
27127 ac_path_to_link=""
27128 else
27129 ac_path_to_link=" -L$ac_find_libraries"
27130 fi
27131
27132 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27133 LDFLAGS="$LDFLAGS $ac_path_to_link"
27134 fi
27135 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27136 echo "$as_me:$LINENO: result: yes" >&5
27137 echo "${ECHO_T}yes" >&6
27138
27139 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27140 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27141
27142 ac_find_libraries=
27143 for ac_dir in $SEARCH_LIB /usr/lib;
27144 do
27145 for ac_extension in a so sl dylib; do
27146 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27147 ac_find_libraries=$ac_dir
27148 break 2
27149 fi
27150 done
27151 done
27152
27153 if test "$ac_find_libraries" != "" ; then
27154 echo "$as_me:$LINENO: result: yes" >&5
27155 echo "${ECHO_T}yes" >&6
27156
27157 for ac_header in X11/extensions/xf86vmode.h
27158 do
27159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27160 echo "$as_me:$LINENO: checking for $ac_header" >&5
27161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27163 echo $ECHO_N "(cached) $ECHO_C" >&6
27164 else
27165 cat >conftest.$ac_ext <<_ACEOF
27166 /* confdefs.h. */
27167 _ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h. */
27171
27172 #if HAVE_X11_XLIB_H
27173 #include <X11/Xlib.h>
27174 #endif
27175
27176
27177 #include <$ac_header>
27178 _ACEOF
27179 rm -f conftest.$ac_objext
27180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27181 (eval $ac_compile) 2>conftest.er1
27182 ac_status=$?
27183 grep -v '^ *+' conftest.er1 >conftest.err
27184 rm -f conftest.er1
27185 cat conftest.err >&5
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); } &&
27188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27190 (eval $ac_try) 2>&5
27191 ac_status=$?
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); }; } &&
27194 { ac_try='test -s conftest.$ac_objext'
27195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27196 (eval $ac_try) 2>&5
27197 ac_status=$?
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); }; }; then
27200 eval "$as_ac_Header=yes"
27201 else
27202 echo "$as_me: failed program was:" >&5
27203 sed 's/^/| /' conftest.$ac_ext >&5
27204
27205 eval "$as_ac_Header=no"
27206 fi
27207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27208 fi
27209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27212 cat >>confdefs.h <<_ACEOF
27213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27214 _ACEOF
27215
27216 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27217
27218 fi
27219
27220 done
27221
27222 else
27223 echo "$as_me:$LINENO: result: no" >&5
27224 echo "${ECHO_T}no" >&6
27225 fi
27226
27227 else
27228 echo "$as_me:$LINENO: result: no" >&5
27229 echo "${ECHO_T}no" >&6
27230 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
27231 echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
27232 wxUSE_DISPLAY="no"
27233 fi
27234 fi
27235 fi
27236
27237
27238 USE_OPENGL=0
27239 if test "$wxUSE_OPENGL" = "yes"; then
27240 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27241 OPENGL_LIBS="-framework OpenGL -framework AGL"
27242 elif test "$wxUSE_MSW" = 1; then
27243 OPENGL_LIBS="-lopengl32 -lglu32"
27244 else
27245
27246
27247 ac_find_includes=
27248 for ac_dir in $SEARCH_INCLUDE /usr/include;
27249 do
27250 if test -f "$ac_dir/GL/gl.h"; then
27251 ac_find_includes=$ac_dir
27252 break
27253 fi
27254 done
27255
27256 if test "$ac_find_includes" != "" ; then
27257 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27258 echo "${ECHO_T}found in $ac_find_includes" >&6
27259
27260 if test "x$ac_find_includes" = "x/usr/include"; then
27261 ac_path_to_include=""
27262 else
27263 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27264 result=$?
27265 if test $result = 0; then
27266 ac_path_to_include=""
27267 else
27268 ac_path_to_include=" -I$ac_find_includes"
27269 fi
27270 fi
27271
27272 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27273 fi
27274
27275 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27276 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27277 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27278 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27279 echo $ECHO_N "(cached) $ECHO_C" >&6
27280 fi
27281 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27282 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27283 else
27284 # Is the header compilable?
27285 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27286 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27287 cat >conftest.$ac_ext <<_ACEOF
27288 /* confdefs.h. */
27289 _ACEOF
27290 cat confdefs.h >>conftest.$ac_ext
27291 cat >>conftest.$ac_ext <<_ACEOF
27292 /* end confdefs.h. */
27293 $ac_includes_default
27294 #include <GL/gl.h>
27295 _ACEOF
27296 rm -f conftest.$ac_objext
27297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27298 (eval $ac_compile) 2>conftest.er1
27299 ac_status=$?
27300 grep -v '^ *+' conftest.er1 >conftest.err
27301 rm -f conftest.er1
27302 cat conftest.err >&5
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); } &&
27305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27307 (eval $ac_try) 2>&5
27308 ac_status=$?
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); }; } &&
27311 { ac_try='test -s conftest.$ac_objext'
27312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27313 (eval $ac_try) 2>&5
27314 ac_status=$?
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); }; }; then
27317 ac_header_compiler=yes
27318 else
27319 echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27321
27322 ac_header_compiler=no
27323 fi
27324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27326 echo "${ECHO_T}$ac_header_compiler" >&6
27327
27328 # Is the header present?
27329 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27330 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27331 cat >conftest.$ac_ext <<_ACEOF
27332 /* confdefs.h. */
27333 _ACEOF
27334 cat confdefs.h >>conftest.$ac_ext
27335 cat >>conftest.$ac_ext <<_ACEOF
27336 /* end confdefs.h. */
27337 #include <GL/gl.h>
27338 _ACEOF
27339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27341 ac_status=$?
27342 grep -v '^ *+' conftest.er1 >conftest.err
27343 rm -f conftest.er1
27344 cat conftest.err >&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); } >/dev/null; then
27347 if test -s conftest.err; then
27348 ac_cpp_err=$ac_c_preproc_warn_flag
27349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27350 else
27351 ac_cpp_err=
27352 fi
27353 else
27354 ac_cpp_err=yes
27355 fi
27356 if test -z "$ac_cpp_err"; then
27357 ac_header_preproc=yes
27358 else
27359 echo "$as_me: failed program was:" >&5
27360 sed 's/^/| /' conftest.$ac_ext >&5
27361
27362 ac_header_preproc=no
27363 fi
27364 rm -f conftest.err conftest.$ac_ext
27365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27366 echo "${ECHO_T}$ac_header_preproc" >&6
27367
27368 # So? What about this header?
27369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27370 yes:no: )
27371 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27372 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27373 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27374 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27375 ac_header_preproc=yes
27376 ;;
27377 no:yes:* )
27378 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27379 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
27380 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27381 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27382 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27383 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27384 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27385 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27386 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27387 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
27388 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27389 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
27390 (
27391 cat <<\_ASBOX
27392 ## ----------------------------------------- ##
27393 ## Report this to wx-dev@lists.wxwindows.org ##
27394 ## ----------------------------------------- ##
27395 _ASBOX
27396 ) |
27397 sed "s/^/$as_me: WARNING: /" >&2
27398 ;;
27399 esac
27400 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27401 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27402 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27403 echo $ECHO_N "(cached) $ECHO_C" >&6
27404 else
27405 ac_cv_header_GL_gl_h=$ac_header_preproc
27406 fi
27407 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27408 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27409
27410 fi
27411 if test $ac_cv_header_GL_gl_h = yes; then
27412
27413 found_gl=0
27414
27415 echo "$as_me:$LINENO: checking for -lGL" >&5
27416 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27417
27418 ac_find_libraries=
27419 for ac_dir in $SEARCH_LIB /usr/lib;
27420 do
27421 for ac_extension in a so sl dylib; do
27422 if test -f "$ac_dir/libGL.$ac_extension"; then
27423 ac_find_libraries=$ac_dir
27424 break 2
27425 fi
27426 done
27427 done
27428
27429 if test "$ac_find_libraries" != "" ; then
27430
27431 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27432 result=$?
27433 if test $result = 0; then
27434 ac_path_to_link=""
27435 else
27436 ac_path_to_link=" -L$ac_find_libraries"
27437 fi
27438
27439 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27440 LDFLAGS_GL="$ac_path_to_link"
27441 fi
27442
27443
27444 ac_find_libraries=
27445 for ac_dir in $SEARCH_LIB /usr/lib;
27446 do
27447 for ac_extension in a so sl dylib; do
27448 if test -f "$ac_dir/libGLU.$ac_extension"; then
27449 ac_find_libraries=$ac_dir
27450 break 2
27451 fi
27452 done
27453 done
27454
27455 if test "$ac_find_libraries" != "" ; then
27456
27457 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27458 result=$?
27459 if test $result = 0; then
27460 ac_path_to_link=""
27461 else
27462 ac_path_to_link=" -L$ac_find_libraries"
27463 fi
27464
27465 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27466 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27467 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27468 fi
27469
27470 found_gl=1
27471 OPENGL_LIBS="-lGL -lGLU"
27472 echo "$as_me:$LINENO: result: yes" >&5
27473 echo "${ECHO_T}yes" >&6
27474 fi
27475 fi
27476
27477 if test "$found_gl" != 1; then
27478 echo "$as_me:$LINENO: result: no" >&5
27479 echo "${ECHO_T}no" >&6
27480 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27481 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27482
27483 ac_find_libraries=
27484 for ac_dir in $SEARCH_LIB /usr/lib;
27485 do
27486 for ac_extension in a so sl dylib; do
27487 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27488 ac_find_libraries=$ac_dir
27489 break 2
27490 fi
27491 done
27492 done
27493
27494 if test "$ac_find_libraries" != "" ; then
27495
27496 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27497 result=$?
27498 if test $result = 0; then
27499 ac_path_to_link=""
27500 else
27501 ac_path_to_link=" -L$ac_find_libraries"
27502 fi
27503
27504 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27505 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27506 echo "$as_me:$LINENO: result: yes" >&5
27507 echo "${ECHO_T}yes" >&6
27508 else
27509 echo "$as_me:$LINENO: result: no" >&5
27510 echo "${ECHO_T}no" >&6
27511 fi
27512 fi
27513
27514 fi
27515
27516
27517
27518 if test "x$OPENGL_LIBS" = "x"; then
27519 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27520 echo "$as_me: error: OpenGL libraries not available" >&2;}
27521 { (exit 1); exit 1; }; }
27522 fi
27523 fi
27524
27525 if test "$wxUSE_OPENGL" = "yes"; then
27526 USE_OPENGL=1
27527 cat >>confdefs.h <<\_ACEOF
27528 #define wxUSE_OPENGL 1
27529 _ACEOF
27530
27531 cat >>confdefs.h <<\_ACEOF
27532 #define wxUSE_GLCANVAS 1
27533 _ACEOF
27534
27535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27536 fi
27537 fi
27538
27539 if test -z "$TOOLKIT_VPATH" ; then
27540 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27541 fi
27542
27543 if test -n "$TOOLKIT" ; then
27544 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27545 fi
27546
27547 UNICODE=0
27548 lib_unicode_suffix=
27549 if test "$wxUSE_UNICODE" = "yes"; then
27550 lib_unicode_suffix=u
27551 UNICODE=1
27552 fi
27553
27554 lib_debug_suffix=
27555 DEBUG_FLAG=0
27556 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27557 lib_debug_suffix=d
27558 DEBUG_FLAG=1
27559 fi
27560
27561 DEBUG_INFO=0
27562 if test "$wxUSE_DEBUG_INFO" = "yes"; then
27563 DEBUG_INFO=1
27564 fi
27565
27566 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27567
27568 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27569 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27570
27571 if test "$cross_compiling" = "yes"; then
27572 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27573 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
27574 HOST_SUFFIX="-${host_alias}"
27575 fi
27576
27577 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27578 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27579 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27580 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27581
27582 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27583 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27584
27585 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27586 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27587 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27588 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27589
27590 case "${host}" in
27591 *-*-cygwin* | *-*-mingw32* )
27592 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27593 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27594 ;;
27595
27596 *-*-darwin* )
27597
27598 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27599 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27600
27601 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27602 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27603 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27604 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27605
27606 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27607 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27608 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27609 fi
27610 ;;
27611 esac
27612
27613 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27614 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27615
27616 WXCONFIG_LIBS="-l${WX_LIBRARY}"
27617 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27618
27619 if test "$wxUSE_OPENGL" = "yes"; then
27620 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27621 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27622 fi
27623
27624
27625
27626 if test "$wxUSE_SHARED" = "yes"; then
27627 case "${host}" in
27628 *-pc-os2_emx | *-pc-os2-emx | \
27629 *-pc-msdosdjgpp )
27630 wxUSE_SHARED=no
27631 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27632 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27633 ;;
27634 esac
27635 fi
27636
27637 SHARED=0
27638 if test "$wxUSE_SHARED" = "yes"; then
27639 SHARED=1
27640
27641
27642 found_versioning=no
27643
27644
27645 if test $found_versioning = no ; then
27646 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27647 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27648 if test "${wx_cv_version_script+set}" = set; then
27649 echo $ECHO_N "(cached) $ECHO_C" >&6
27650 else
27651
27652 echo "VER_1 { *; };" >conftest.sym
27653 echo "int main() { return 0; }" >conftest.cpp
27654
27655 if { ac_try='
27656 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27657 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27659 (eval $ac_try) 2>&5
27660 ac_status=$?
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); }; } ; then
27663 if test -s conftest.stderr ; then
27664 wx_cv_version_script=no
27665 else
27666 wx_cv_version_script=yes
27667 fi
27668 else
27669 wx_cv_version_script=no
27670 fi
27671 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27672
27673 fi
27674 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27675 echo "${ECHO_T}$wx_cv_version_script" >&6
27676 if test $wx_cv_version_script = yes ; then
27677 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27678 fi
27679 fi
27680
27681
27682 case "${host}" in
27683 *-*-linux* | *-*-gnu* )
27684 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27685 ;;
27686
27687 *-*-solaris2* )
27688 if test "$GCC" = yes ; then
27689 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27690
27691 saveLdflags="$LDFLAGS"
27692 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27693 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27694 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27695 cat >conftest.$ac_ext <<_ACEOF
27696 /* confdefs.h. */
27697 _ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h. */
27701
27702 int
27703 main ()
27704 {
27705
27706 ;
27707 return 0;
27708 }
27709 _ACEOF
27710 rm -f conftest.$ac_objext conftest$ac_exeext
27711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27712 (eval $ac_link) 2>conftest.er1
27713 ac_status=$?
27714 grep -v '^ *+' conftest.er1 >conftest.err
27715 rm -f conftest.er1
27716 cat conftest.err >&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } &&
27719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27721 (eval $ac_try) 2>&5
27722 ac_status=$?
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); }; } &&
27725 { ac_try='test -s conftest$ac_exeext'
27726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27727 (eval $ac_try) 2>&5
27728 ac_status=$?
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); }; }; then
27731
27732 echo "$as_me:$LINENO: result: yes" >&5
27733 echo "${ECHO_T}yes" >&6
27734 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27735
27736 else
27737 echo "$as_me: failed program was:" >&5
27738 sed 's/^/| /' conftest.$ac_ext >&5
27739
27740
27741 echo "$as_me:$LINENO: result: no" >&5
27742 echo "${ECHO_T}no" >&6
27743 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27744 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27745 LDFLAGS="$saveLdflags -Wl,-R,/"
27746 cat >conftest.$ac_ext <<_ACEOF
27747 /* confdefs.h. */
27748 _ACEOF
27749 cat confdefs.h >>conftest.$ac_ext
27750 cat >>conftest.$ac_ext <<_ACEOF
27751 /* end confdefs.h. */
27752
27753 int
27754 main ()
27755 {
27756
27757 ;
27758 return 0;
27759 }
27760 _ACEOF
27761 rm -f conftest.$ac_objext conftest$ac_exeext
27762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27763 (eval $ac_link) 2>conftest.er1
27764 ac_status=$?
27765 grep -v '^ *+' conftest.er1 >conftest.err
27766 rm -f conftest.er1
27767 cat conftest.err >&5
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); } &&
27770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772 (eval $ac_try) 2>&5
27773 ac_status=$?
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; } &&
27776 { ac_try='test -s conftest$ac_exeext'
27777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27778 (eval $ac_try) 2>&5
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; }; then
27782
27783 echo "$as_me:$LINENO: result: yes" >&5
27784 echo "${ECHO_T}yes" >&6
27785 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27786 else
27787 echo "$as_me: failed program was:" >&5
27788 sed 's/^/| /' conftest.$ac_ext >&5
27789
27790
27791 echo "$as_me:$LINENO: result: no" >&5
27792 echo "${ECHO_T}no" >&6
27793
27794 fi
27795 rm -f conftest.err conftest.$ac_objext \
27796 conftest$ac_exeext conftest.$ac_ext
27797
27798 fi
27799 rm -f conftest.err conftest.$ac_objext \
27800 conftest$ac_exeext conftest.$ac_ext
27801 LDFLAGS="$saveLdflags"
27802 else
27803 SHARED_LD="${CXX} -G -o"
27804 PIC_FLAG="-KPIC"
27805 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27806 fi
27807 ;;
27808
27809 powerpc-*-darwin* )
27810 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27811 cat <<EOF >change-install-names
27812 #!/bin/sh
27813 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27814 inst_cmd="install_name_tool "
27815 for i in \${libnames} ; do
27816 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27817 done
27818 \${inst_cmd} \${3}
27819 EOF
27820 chmod +x change-install-names
27821 ;;
27822
27823 esac
27824
27825 if test "x$WX_TARGET_LIBRARY" = "x"; then
27826 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27827 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27828 fi
27829
27830 WX_TARGET_LIBRARY_TYPE="so"
27831 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27832 fi
27833
27834 if test "$wxUSE_SHARED" = "no"; then
27835
27836 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27837 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27838 fi
27839
27840 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27841 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27842 fi
27843
27844 if test "$wxUSE_OPENGL" = "yes"; then
27845 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27846 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27847 else
27848 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27849 fi
27850
27851 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27852 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27853
27854 WX_TARGET_LIBRARY_TYPE="a"
27855 INSTALL_LIBRARY='$(INSTALL_DATA)'
27856
27857 STATIC_FLAG="yes"
27858 else
27859 STATIC_FLAG="no"
27860 fi
27861
27862 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27863 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27864 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27865 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27866
27867 # Extract the first word of "Rez", so it can be a program name with args.
27868 set dummy Rez; ac_word=$2
27869 echo "$as_me:$LINENO: checking for $ac_word" >&5
27870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27871 if test "${ac_cv_prog_RESCOMP+set}" = set; then
27872 echo $ECHO_N "(cached) $ECHO_C" >&6
27873 else
27874 if test -n "$RESCOMP"; then
27875 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27876 else
27877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27878 for as_dir in $PATH
27879 do
27880 IFS=$as_save_IFS
27881 test -z "$as_dir" && as_dir=.
27882 for ac_exec_ext in '' $ac_executable_extensions; do
27883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27884 ac_cv_prog_RESCOMP="Rez"
27885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27886 break 2
27887 fi
27888 done
27889 done
27890
27891 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27892 fi
27893 fi
27894 RESCOMP=$ac_cv_prog_RESCOMP
27895 if test -n "$RESCOMP"; then
27896 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27897 echo "${ECHO_T}$RESCOMP" >&6
27898 else
27899 echo "$as_me:$LINENO: result: no" >&5
27900 echo "${ECHO_T}no" >&6
27901 fi
27902
27903 # Extract the first word of "DeRez", so it can be a program name with args.
27904 set dummy DeRez; ac_word=$2
27905 echo "$as_me:$LINENO: checking for $ac_word" >&5
27906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27907 if test "${ac_cv_prog_DEREZ+set}" = set; then
27908 echo $ECHO_N "(cached) $ECHO_C" >&6
27909 else
27910 if test -n "$DEREZ"; then
27911 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27912 else
27913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27914 for as_dir in $PATH
27915 do
27916 IFS=$as_save_IFS
27917 test -z "$as_dir" && as_dir=.
27918 for ac_exec_ext in '' $ac_executable_extensions; do
27919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27920 ac_cv_prog_DEREZ="DeRez"
27921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27922 break 2
27923 fi
27924 done
27925 done
27926
27927 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27928 fi
27929 fi
27930 DEREZ=$ac_cv_prog_DEREZ
27931 if test -n "$DEREZ"; then
27932 echo "$as_me:$LINENO: result: $DEREZ" >&5
27933 echo "${ECHO_T}$DEREZ" >&6
27934 else
27935 echo "$as_me:$LINENO: result: no" >&5
27936 echo "${ECHO_T}no" >&6
27937 fi
27938
27939 # Extract the first word of "SetFile", so it can be a program name with args.
27940 set dummy SetFile; ac_word=$2
27941 echo "$as_me:$LINENO: checking for $ac_word" >&5
27942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27943 if test "${ac_cv_prog_SETFILE+set}" = set; then
27944 echo $ECHO_N "(cached) $ECHO_C" >&6
27945 else
27946 if test -n "$SETFILE"; then
27947 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27948 else
27949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27950 for as_dir in $PATH
27951 do
27952 IFS=$as_save_IFS
27953 test -z "$as_dir" && as_dir=.
27954 for ac_exec_ext in '' $ac_executable_extensions; do
27955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27956 ac_cv_prog_SETFILE="SetFile"
27957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27958 break 2
27959 fi
27960 done
27961 done
27962
27963 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27964 fi
27965 fi
27966 SETFILE=$ac_cv_prog_SETFILE
27967 if test -n "$SETFILE"; then
27968 echo "$as_me:$LINENO: result: $SETFILE" >&5
27969 echo "${ECHO_T}$SETFILE" >&6
27970 else
27971 echo "$as_me:$LINENO: result: no" >&5
27972 echo "${ECHO_T}no" >&6
27973 fi
27974
27975
27976 MACSETFILE="\$(SETFILE)"
27977
27978 if test "$wxUSE_MAC" = 1; then
27979 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27980
27981 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27982 else
27983 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27984 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27985 fi
27986 else
27987 MACSETFILE="@#"
27988 MACRESWXCONFIG="#"
27989
27990 if test "$wxUSE_PM" = 1; then
27991 MACRESCOMP="emxbind -ep"
27992 else
27993 MACRESCOMP="@#"
27994 fi
27995 fi
27996
27997
27998
27999 echo "$as_me:$LINENO: checking for mode_t" >&5
28000 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28001 if test "${ac_cv_type_mode_t+set}" = set; then
28002 echo $ECHO_N "(cached) $ECHO_C" >&6
28003 else
28004 cat >conftest.$ac_ext <<_ACEOF
28005 /* confdefs.h. */
28006 _ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h. */
28010 $ac_includes_default
28011 int
28012 main ()
28013 {
28014 if ((mode_t *) 0)
28015 return 0;
28016 if (sizeof (mode_t))
28017 return 0;
28018 ;
28019 return 0;
28020 }
28021 _ACEOF
28022 rm -f conftest.$ac_objext
28023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28024 (eval $ac_compile) 2>conftest.er1
28025 ac_status=$?
28026 grep -v '^ *+' conftest.er1 >conftest.err
28027 rm -f conftest.er1
28028 cat conftest.err >&5
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); } &&
28031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033 (eval $ac_try) 2>&5
28034 ac_status=$?
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); }; } &&
28037 { ac_try='test -s conftest.$ac_objext'
28038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28039 (eval $ac_try) 2>&5
28040 ac_status=$?
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); }; }; then
28043 ac_cv_type_mode_t=yes
28044 else
28045 echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28047
28048 ac_cv_type_mode_t=no
28049 fi
28050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28051 fi
28052 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28053 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28054 if test $ac_cv_type_mode_t = yes; then
28055 :
28056 else
28057
28058 cat >>confdefs.h <<_ACEOF
28059 #define mode_t int
28060 _ACEOF
28061
28062 fi
28063
28064 echo "$as_me:$LINENO: checking for off_t" >&5
28065 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28066 if test "${ac_cv_type_off_t+set}" = set; then
28067 echo $ECHO_N "(cached) $ECHO_C" >&6
28068 else
28069 cat >conftest.$ac_ext <<_ACEOF
28070 /* confdefs.h. */
28071 _ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h. */
28075 $ac_includes_default
28076 int
28077 main ()
28078 {
28079 if ((off_t *) 0)
28080 return 0;
28081 if (sizeof (off_t))
28082 return 0;
28083 ;
28084 return 0;
28085 }
28086 _ACEOF
28087 rm -f conftest.$ac_objext
28088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28089 (eval $ac_compile) 2>conftest.er1
28090 ac_status=$?
28091 grep -v '^ *+' conftest.er1 >conftest.err
28092 rm -f conftest.er1
28093 cat conftest.err >&5
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); } &&
28096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28098 (eval $ac_try) 2>&5
28099 ac_status=$?
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); }; } &&
28102 { ac_try='test -s conftest.$ac_objext'
28103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104 (eval $ac_try) 2>&5
28105 ac_status=$?
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); }; }; then
28108 ac_cv_type_off_t=yes
28109 else
28110 echo "$as_me: failed program was:" >&5
28111 sed 's/^/| /' conftest.$ac_ext >&5
28112
28113 ac_cv_type_off_t=no
28114 fi
28115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28116 fi
28117 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28118 echo "${ECHO_T}$ac_cv_type_off_t" >&6
28119 if test $ac_cv_type_off_t = yes; then
28120 :
28121 else
28122
28123 cat >>confdefs.h <<_ACEOF
28124 #define off_t long
28125 _ACEOF
28126
28127 fi
28128
28129 echo "$as_me:$LINENO: checking for pid_t" >&5
28130 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28131 if test "${ac_cv_type_pid_t+set}" = set; then
28132 echo $ECHO_N "(cached) $ECHO_C" >&6
28133 else
28134 cat >conftest.$ac_ext <<_ACEOF
28135 /* confdefs.h. */
28136 _ACEOF
28137 cat confdefs.h >>conftest.$ac_ext
28138 cat >>conftest.$ac_ext <<_ACEOF
28139 /* end confdefs.h. */
28140 $ac_includes_default
28141 int
28142 main ()
28143 {
28144 if ((pid_t *) 0)
28145 return 0;
28146 if (sizeof (pid_t))
28147 return 0;
28148 ;
28149 return 0;
28150 }
28151 _ACEOF
28152 rm -f conftest.$ac_objext
28153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28154 (eval $ac_compile) 2>conftest.er1
28155 ac_status=$?
28156 grep -v '^ *+' conftest.er1 >conftest.err
28157 rm -f conftest.er1
28158 cat conftest.err >&5
28159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 (exit $ac_status); } &&
28161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28163 (eval $ac_try) 2>&5
28164 ac_status=$?
28165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166 (exit $ac_status); }; } &&
28167 { ac_try='test -s conftest.$ac_objext'
28168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28169 (eval $ac_try) 2>&5
28170 ac_status=$?
28171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); }; }; then
28173 ac_cv_type_pid_t=yes
28174 else
28175 echo "$as_me: failed program was:" >&5
28176 sed 's/^/| /' conftest.$ac_ext >&5
28177
28178 ac_cv_type_pid_t=no
28179 fi
28180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28181 fi
28182 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28183 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28184 if test $ac_cv_type_pid_t = yes; then
28185 :
28186 else
28187
28188 cat >>confdefs.h <<_ACEOF
28189 #define pid_t int
28190 _ACEOF
28191
28192 fi
28193
28194 echo "$as_me:$LINENO: checking for size_t" >&5
28195 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28196 if test "${ac_cv_type_size_t+set}" = set; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
28198 else
28199 cat >conftest.$ac_ext <<_ACEOF
28200 /* confdefs.h. */
28201 _ACEOF
28202 cat confdefs.h >>conftest.$ac_ext
28203 cat >>conftest.$ac_ext <<_ACEOF
28204 /* end confdefs.h. */
28205 $ac_includes_default
28206 int
28207 main ()
28208 {
28209 if ((size_t *) 0)
28210 return 0;
28211 if (sizeof (size_t))
28212 return 0;
28213 ;
28214 return 0;
28215 }
28216 _ACEOF
28217 rm -f conftest.$ac_objext
28218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28219 (eval $ac_compile) 2>conftest.er1
28220 ac_status=$?
28221 grep -v '^ *+' conftest.er1 >conftest.err
28222 rm -f conftest.er1
28223 cat conftest.err >&5
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); } &&
28226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228 (eval $ac_try) 2>&5
28229 ac_status=$?
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); }; } &&
28232 { ac_try='test -s conftest.$ac_objext'
28233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28234 (eval $ac_try) 2>&5
28235 ac_status=$?
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); }; }; then
28238 ac_cv_type_size_t=yes
28239 else
28240 echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28242
28243 ac_cv_type_size_t=no
28244 fi
28245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28246 fi
28247 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28248 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28249 if test $ac_cv_type_size_t = yes; then
28250 :
28251 else
28252
28253 cat >>confdefs.h <<_ACEOF
28254 #define size_t unsigned
28255 _ACEOF
28256
28257 fi
28258
28259 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28260 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28261 if test "${ac_cv_type_uid_t+set}" = set; then
28262 echo $ECHO_N "(cached) $ECHO_C" >&6
28263 else
28264 cat >conftest.$ac_ext <<_ACEOF
28265 /* confdefs.h. */
28266 _ACEOF
28267 cat confdefs.h >>conftest.$ac_ext
28268 cat >>conftest.$ac_ext <<_ACEOF
28269 /* end confdefs.h. */
28270 #include <sys/types.h>
28271
28272 _ACEOF
28273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28274 $EGREP "uid_t" >/dev/null 2>&1; then
28275 ac_cv_type_uid_t=yes
28276 else
28277 ac_cv_type_uid_t=no
28278 fi
28279 rm -f conftest*
28280
28281 fi
28282 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28283 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28284 if test $ac_cv_type_uid_t = no; then
28285
28286 cat >>confdefs.h <<\_ACEOF
28287 #define uid_t int
28288 _ACEOF
28289
28290
28291 cat >>confdefs.h <<\_ACEOF
28292 #define gid_t int
28293 _ACEOF
28294
28295 fi
28296
28297
28298
28299
28300 ac_ext=cc
28301 ac_cpp='$CXXCPP $CPPFLAGS'
28302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28305
28306 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28307 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28308 if test "${wx_cv_size_t_is_uint+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28310 else
28311
28312 cat >conftest.$ac_ext <<_ACEOF
28313 /* confdefs.h. */
28314 _ACEOF
28315 cat confdefs.h >>conftest.$ac_ext
28316 cat >>conftest.$ac_ext <<_ACEOF
28317 /* end confdefs.h. */
28318 #include <stddef.h>
28319 int
28320 main ()
28321 {
28322
28323 return 0; }
28324
28325 struct Foo { void foo(size_t); void foo(unsigned int); };
28326
28327 int bar() {
28328
28329 ;
28330 return 0;
28331 }
28332 _ACEOF
28333 rm -f conftest.$ac_objext
28334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28335 (eval $ac_compile) 2>conftest.er1
28336 ac_status=$?
28337 grep -v '^ *+' conftest.er1 >conftest.err
28338 rm -f conftest.er1
28339 cat conftest.err >&5
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); } &&
28342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344 (eval $ac_try) 2>&5
28345 ac_status=$?
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); }; } &&
28348 { ac_try='test -s conftest.$ac_objext'
28349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28350 (eval $ac_try) 2>&5
28351 ac_status=$?
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); }; }; then
28354 wx_cv_size_t_is_uint=no
28355 else
28356 echo "$as_me: failed program was:" >&5
28357 sed 's/^/| /' conftest.$ac_ext >&5
28358
28359 wx_cv_size_t_is_uint=yes
28360
28361 fi
28362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28363
28364
28365 fi
28366 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28367 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28368
28369 if test "$wx_cv_size_t_is_uint" = "yes"; then
28370 cat >>confdefs.h <<\_ACEOF
28371 #define wxSIZE_T_IS_UINT 1
28372 _ACEOF
28373
28374 else
28375 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28376 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28377 if test "${wx_cv_size_t_is_ulong+set}" = set; then
28378 echo $ECHO_N "(cached) $ECHO_C" >&6
28379 else
28380 cat >conftest.$ac_ext <<_ACEOF
28381 /* confdefs.h. */
28382 _ACEOF
28383 cat confdefs.h >>conftest.$ac_ext
28384 cat >>conftest.$ac_ext <<_ACEOF
28385 /* end confdefs.h. */
28386 #include <stddef.h>
28387 int
28388 main ()
28389 {
28390
28391 return 0; }
28392
28393 struct Foo { void foo(size_t); void foo(unsigned long); };
28394
28395 int bar() {
28396
28397 ;
28398 return 0;
28399 }
28400 _ACEOF
28401 rm -f conftest.$ac_objext
28402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28403 (eval $ac_compile) 2>conftest.er1
28404 ac_status=$?
28405 grep -v '^ *+' conftest.er1 >conftest.err
28406 rm -f conftest.er1
28407 cat conftest.err >&5
28408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); } &&
28410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28412 (eval $ac_try) 2>&5
28413 ac_status=$?
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); }; } &&
28416 { ac_try='test -s conftest.$ac_objext'
28417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28418 (eval $ac_try) 2>&5
28419 ac_status=$?
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); }; }; then
28422 wx_cv_size_t_is_ulong=no
28423 else
28424 echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28426
28427 wx_cv_size_t_is_ulong=yes
28428
28429 fi
28430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28431
28432 fi
28433 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28434 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28435
28436 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28437 cat >>confdefs.h <<\_ACEOF
28438 #define wxSIZE_T_IS_ULONG 1
28439 _ACEOF
28440
28441 fi
28442 fi
28443
28444 ac_ext=c
28445 ac_cpp='$CPP $CPPFLAGS'
28446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28449
28450
28451
28452 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28453 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28454 if test "${wx_cv_struct_pw_gecos+set}" = set; then
28455 echo $ECHO_N "(cached) $ECHO_C" >&6
28456 else
28457
28458 cat >conftest.$ac_ext <<_ACEOF
28459 /* confdefs.h. */
28460 _ACEOF
28461 cat confdefs.h >>conftest.$ac_ext
28462 cat >>conftest.$ac_ext <<_ACEOF
28463 /* end confdefs.h. */
28464 #include <pwd.h>
28465 int
28466 main ()
28467 {
28468
28469 char *p;
28470 struct passwd *pw;
28471 p = pw->pw_gecos;
28472
28473 ;
28474 return 0;
28475 }
28476 _ACEOF
28477 rm -f conftest.$ac_objext
28478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28479 (eval $ac_compile) 2>conftest.er1
28480 ac_status=$?
28481 grep -v '^ *+' conftest.er1 >conftest.err
28482 rm -f conftest.er1
28483 cat conftest.err >&5
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); } &&
28486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28488 (eval $ac_try) 2>&5
28489 ac_status=$?
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); }; } &&
28492 { ac_try='test -s conftest.$ac_objext'
28493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28495 ac_status=$?
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; }; then
28498
28499 wx_cv_struct_pw_gecos=yes
28500
28501 else
28502 echo "$as_me: failed program was:" >&5
28503 sed 's/^/| /' conftest.$ac_ext >&5
28504
28505
28506 wx_cv_struct_pw_gecos=no
28507
28508
28509 fi
28510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28511
28512
28513 fi
28514 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28515 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28516
28517 if test "$wx_cv_struct_pw_gecos" = "yes"; then
28518 cat >>confdefs.h <<\_ACEOF
28519 #define HAVE_PW_GECOS 1
28520 _ACEOF
28521
28522 fi
28523
28524
28525 if test "$wx_cv_sizeof_wchar_t" != "0"; then
28526 cat >>confdefs.h <<\_ACEOF
28527 #define wxUSE_WCHAR_T 1
28528 _ACEOF
28529
28530
28531 WCSLEN_FOUND=0
28532 WCHAR_LINK=
28533
28534 for ac_func in wcslen
28535 do
28536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28537 echo "$as_me:$LINENO: checking for $ac_func" >&5
28538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28539 if eval "test \"\${$as_ac_var+set}\" = set"; then
28540 echo $ECHO_N "(cached) $ECHO_C" >&6
28541 else
28542 cat >conftest.$ac_ext <<_ACEOF
28543 /* confdefs.h. */
28544 _ACEOF
28545 cat confdefs.h >>conftest.$ac_ext
28546 cat >>conftest.$ac_ext <<_ACEOF
28547 /* end confdefs.h. */
28548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28550 #define $ac_func innocuous_$ac_func
28551
28552 /* System header to define __stub macros and hopefully few prototypes,
28553 which can conflict with char $ac_func (); below.
28554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28555 <limits.h> exists even on freestanding compilers. */
28556
28557 #ifdef __STDC__
28558 # include <limits.h>
28559 #else
28560 # include <assert.h>
28561 #endif
28562
28563 #undef $ac_func
28564
28565 /* Override any gcc2 internal prototype to avoid an error. */
28566 #ifdef __cplusplus
28567 extern "C"
28568 {
28569 #endif
28570 /* We use char because int might match the return type of a gcc2
28571 builtin and then its argument prototype would still apply. */
28572 char $ac_func ();
28573 /* The GNU C library defines this for functions which it implements
28574 to always fail with ENOSYS. Some functions are actually named
28575 something starting with __ and the normal name is an alias. */
28576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28577 choke me
28578 #else
28579 char (*f) () = $ac_func;
28580 #endif
28581 #ifdef __cplusplus
28582 }
28583 #endif
28584
28585 int
28586 main ()
28587 {
28588 return f != $ac_func;
28589 ;
28590 return 0;
28591 }
28592 _ACEOF
28593 rm -f conftest.$ac_objext conftest$ac_exeext
28594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28595 (eval $ac_link) 2>conftest.er1
28596 ac_status=$?
28597 grep -v '^ *+' conftest.er1 >conftest.err
28598 rm -f conftest.er1
28599 cat conftest.err >&5
28600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28601 (exit $ac_status); } &&
28602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28604 (eval $ac_try) 2>&5
28605 ac_status=$?
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); }; } &&
28608 { ac_try='test -s conftest$ac_exeext'
28609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28610 (eval $ac_try) 2>&5
28611 ac_status=$?
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); }; }; then
28614 eval "$as_ac_var=yes"
28615 else
28616 echo "$as_me: failed program was:" >&5
28617 sed 's/^/| /' conftest.$ac_ext >&5
28618
28619 eval "$as_ac_var=no"
28620 fi
28621 rm -f conftest.err conftest.$ac_objext \
28622 conftest$ac_exeext conftest.$ac_ext
28623 fi
28624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28626 if test `eval echo '${'$as_ac_var'}'` = yes; then
28627 cat >>confdefs.h <<_ACEOF
28628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28629 _ACEOF
28630 WCSLEN_FOUND=1
28631 fi
28632 done
28633
28634
28635 if test "$WCSLEN_FOUND" = 0; then
28636 if test "$TOOLKIT" = "MSW"; then
28637 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28638 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28639 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28640 echo $ECHO_N "(cached) $ECHO_C" >&6
28641 else
28642 ac_check_lib_save_LIBS=$LIBS
28643 LIBS="-lmsvcrt $LIBS"
28644 cat >conftest.$ac_ext <<_ACEOF
28645 /* confdefs.h. */
28646 _ACEOF
28647 cat confdefs.h >>conftest.$ac_ext
28648 cat >>conftest.$ac_ext <<_ACEOF
28649 /* end confdefs.h. */
28650
28651 /* Override any gcc2 internal prototype to avoid an error. */
28652 #ifdef __cplusplus
28653 extern "C"
28654 #endif
28655 /* We use char because int might match the return type of a gcc2
28656 builtin and then its argument prototype would still apply. */
28657 char wcslen ();
28658 int
28659 main ()
28660 {
28661 wcslen ();
28662 ;
28663 return 0;
28664 }
28665 _ACEOF
28666 rm -f conftest.$ac_objext conftest$ac_exeext
28667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28668 (eval $ac_link) 2>conftest.er1
28669 ac_status=$?
28670 grep -v '^ *+' conftest.er1 >conftest.err
28671 rm -f conftest.er1
28672 cat conftest.err >&5
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); } &&
28675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28677 (eval $ac_try) 2>&5
28678 ac_status=$?
28679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680 (exit $ac_status); }; } &&
28681 { ac_try='test -s conftest$ac_exeext'
28682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28683 (eval $ac_try) 2>&5
28684 ac_status=$?
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; }; then
28687 ac_cv_lib_msvcrt_wcslen=yes
28688 else
28689 echo "$as_me: failed program was:" >&5
28690 sed 's/^/| /' conftest.$ac_ext >&5
28691
28692 ac_cv_lib_msvcrt_wcslen=no
28693 fi
28694 rm -f conftest.err conftest.$ac_objext \
28695 conftest$ac_exeext conftest.$ac_ext
28696 LIBS=$ac_check_lib_save_LIBS
28697 fi
28698 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28699 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28700 if test $ac_cv_lib_msvcrt_wcslen = yes; then
28701 WCHAR_OK=1
28702 fi
28703
28704 else
28705 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28706 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28707 if test "${ac_cv_lib_w_wcslen+set}" = set; then
28708 echo $ECHO_N "(cached) $ECHO_C" >&6
28709 else
28710 ac_check_lib_save_LIBS=$LIBS
28711 LIBS="-lw $LIBS"
28712 cat >conftest.$ac_ext <<_ACEOF
28713 /* confdefs.h. */
28714 _ACEOF
28715 cat confdefs.h >>conftest.$ac_ext
28716 cat >>conftest.$ac_ext <<_ACEOF
28717 /* end confdefs.h. */
28718
28719 /* Override any gcc2 internal prototype to avoid an error. */
28720 #ifdef __cplusplus
28721 extern "C"
28722 #endif
28723 /* We use char because int might match the return type of a gcc2
28724 builtin and then its argument prototype would still apply. */
28725 char wcslen ();
28726 int
28727 main ()
28728 {
28729 wcslen ();
28730 ;
28731 return 0;
28732 }
28733 _ACEOF
28734 rm -f conftest.$ac_objext conftest$ac_exeext
28735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28736 (eval $ac_link) 2>conftest.er1
28737 ac_status=$?
28738 grep -v '^ *+' conftest.er1 >conftest.err
28739 rm -f conftest.er1
28740 cat conftest.err >&5
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); } &&
28743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745 (eval $ac_try) 2>&5
28746 ac_status=$?
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); }; } &&
28749 { ac_try='test -s conftest$ac_exeext'
28750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751 (eval $ac_try) 2>&5
28752 ac_status=$?
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; }; then
28755 ac_cv_lib_w_wcslen=yes
28756 else
28757 echo "$as_me: failed program was:" >&5
28758 sed 's/^/| /' conftest.$ac_ext >&5
28759
28760 ac_cv_lib_w_wcslen=no
28761 fi
28762 rm -f conftest.err conftest.$ac_objext \
28763 conftest$ac_exeext conftest.$ac_ext
28764 LIBS=$ac_check_lib_save_LIBS
28765 fi
28766 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28767 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28768 if test $ac_cv_lib_w_wcslen = yes; then
28769
28770 WCHAR_LINK=" -lw"
28771 WCSLEN_FOUND=1
28772
28773 fi
28774
28775 fi
28776 fi
28777
28778 if test "$WCSLEN_FOUND" = 1; then
28779 cat >>confdefs.h <<\_ACEOF
28780 #define HAVE_WCSLEN 1
28781 _ACEOF
28782
28783 fi
28784
28785
28786 for ac_func in wcsrtombs
28787 do
28788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28789 echo "$as_me:$LINENO: checking for $ac_func" >&5
28790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28791 if eval "test \"\${$as_ac_var+set}\" = set"; then
28792 echo $ECHO_N "(cached) $ECHO_C" >&6
28793 else
28794 cat >conftest.$ac_ext <<_ACEOF
28795 /* confdefs.h. */
28796 _ACEOF
28797 cat confdefs.h >>conftest.$ac_ext
28798 cat >>conftest.$ac_ext <<_ACEOF
28799 /* end confdefs.h. */
28800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28802 #define $ac_func innocuous_$ac_func
28803
28804 /* System header to define __stub macros and hopefully few prototypes,
28805 which can conflict with char $ac_func (); below.
28806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28807 <limits.h> exists even on freestanding compilers. */
28808
28809 #ifdef __STDC__
28810 # include <limits.h>
28811 #else
28812 # include <assert.h>
28813 #endif
28814
28815 #undef $ac_func
28816
28817 /* Override any gcc2 internal prototype to avoid an error. */
28818 #ifdef __cplusplus
28819 extern "C"
28820 {
28821 #endif
28822 /* We use char because int might match the return type of a gcc2
28823 builtin and then its argument prototype would still apply. */
28824 char $ac_func ();
28825 /* The GNU C library defines this for functions which it implements
28826 to always fail with ENOSYS. Some functions are actually named
28827 something starting with __ and the normal name is an alias. */
28828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28829 choke me
28830 #else
28831 char (*f) () = $ac_func;
28832 #endif
28833 #ifdef __cplusplus
28834 }
28835 #endif
28836
28837 int
28838 main ()
28839 {
28840 return f != $ac_func;
28841 ;
28842 return 0;
28843 }
28844 _ACEOF
28845 rm -f conftest.$ac_objext conftest$ac_exeext
28846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28847 (eval $ac_link) 2>conftest.er1
28848 ac_status=$?
28849 grep -v '^ *+' conftest.er1 >conftest.err
28850 rm -f conftest.er1
28851 cat conftest.err >&5
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); } &&
28854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28856 (eval $ac_try) 2>&5
28857 ac_status=$?
28858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859 (exit $ac_status); }; } &&
28860 { ac_try='test -s conftest$ac_exeext'
28861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28862 (eval $ac_try) 2>&5
28863 ac_status=$?
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); }; }; then
28866 eval "$as_ac_var=yes"
28867 else
28868 echo "$as_me: failed program was:" >&5
28869 sed 's/^/| /' conftest.$ac_ext >&5
28870
28871 eval "$as_ac_var=no"
28872 fi
28873 rm -f conftest.err conftest.$ac_objext \
28874 conftest$ac_exeext conftest.$ac_ext
28875 fi
28876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28878 if test `eval echo '${'$as_ac_var'}'` = yes; then
28879 cat >>confdefs.h <<_ACEOF
28880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28881 _ACEOF
28882
28883 fi
28884 done
28885
28886 else
28887 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28888 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28889 fi
28890
28891
28892
28893 ac_ext=cc
28894 ac_cpp='$CXXCPP $CPPFLAGS'
28895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28898
28899
28900
28901 for ac_func in vsnprintf
28902 do
28903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28904 echo "$as_me:$LINENO: checking for $ac_func" >&5
28905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28906 if eval "test \"\${$as_ac_var+set}\" = set"; then
28907 echo $ECHO_N "(cached) $ECHO_C" >&6
28908 else
28909 cat >conftest.$ac_ext <<_ACEOF
28910 /* confdefs.h. */
28911 _ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h. */
28915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28917 #define $ac_func innocuous_$ac_func
28918
28919 /* System header to define __stub macros and hopefully few prototypes,
28920 which can conflict with char $ac_func (); below.
28921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28922 <limits.h> exists even on freestanding compilers. */
28923
28924 #ifdef __STDC__
28925 # include <limits.h>
28926 #else
28927 # include <assert.h>
28928 #endif
28929
28930 #undef $ac_func
28931
28932 /* Override any gcc2 internal prototype to avoid an error. */
28933 #ifdef __cplusplus
28934 extern "C"
28935 {
28936 #endif
28937 /* We use char because int might match the return type of a gcc2
28938 builtin and then its argument prototype would still apply. */
28939 char $ac_func ();
28940 /* The GNU C library defines this for functions which it implements
28941 to always fail with ENOSYS. Some functions are actually named
28942 something starting with __ and the normal name is an alias. */
28943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28944 choke me
28945 #else
28946 char (*f) () = $ac_func;
28947 #endif
28948 #ifdef __cplusplus
28949 }
28950 #endif
28951
28952 int
28953 main ()
28954 {
28955 return f != $ac_func;
28956 ;
28957 return 0;
28958 }
28959 _ACEOF
28960 rm -f conftest.$ac_objext conftest$ac_exeext
28961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28962 (eval $ac_link) 2>conftest.er1
28963 ac_status=$?
28964 grep -v '^ *+' conftest.er1 >conftest.err
28965 rm -f conftest.er1
28966 cat conftest.err >&5
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); } &&
28969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28971 (eval $ac_try) 2>&5
28972 ac_status=$?
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; } &&
28975 { ac_try='test -s conftest$ac_exeext'
28976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28977 (eval $ac_try) 2>&5
28978 ac_status=$?
28979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 (exit $ac_status); }; }; then
28981 eval "$as_ac_var=yes"
28982 else
28983 echo "$as_me: failed program was:" >&5
28984 sed 's/^/| /' conftest.$ac_ext >&5
28985
28986 eval "$as_ac_var=no"
28987 fi
28988 rm -f conftest.err conftest.$ac_objext \
28989 conftest$ac_exeext conftest.$ac_ext
28990 fi
28991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28993 if test `eval echo '${'$as_ac_var'}'` = yes; then
28994 cat >>confdefs.h <<_ACEOF
28995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28996 _ACEOF
28997
28998 fi
28999 done
29000
29001
29002 if test "$ac_cv_func_vsnprintf" = "yes"; then
29003 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29004 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29005 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29006 echo $ECHO_N "(cached) $ECHO_C" >&6
29007 else
29008
29009 cat >conftest.$ac_ext <<_ACEOF
29010 /* confdefs.h. */
29011 _ACEOF
29012 cat confdefs.h >>conftest.$ac_ext
29013 cat >>conftest.$ac_ext <<_ACEOF
29014 /* end confdefs.h. */
29015
29016 #include <stdio.h>
29017 #include <stdarg.h>
29018
29019 int
29020 main ()
29021 {
29022
29023 char *buf;
29024 va_list ap;
29025 vsnprintf(buf, 10u, "%s", ap);
29026
29027 ;
29028 return 0;
29029 }
29030 _ACEOF
29031 rm -f conftest.$ac_objext
29032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29033 (eval $ac_compile) 2>conftest.er1
29034 ac_status=$?
29035 grep -v '^ *+' conftest.er1 >conftest.err
29036 rm -f conftest.er1
29037 cat conftest.err >&5
29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); } &&
29040 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29042 (eval $ac_try) 2>&5
29043 ac_status=$?
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); }; } &&
29046 { ac_try='test -s conftest.$ac_objext'
29047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29048 (eval $ac_try) 2>&5
29049 ac_status=$?
29050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051 (exit $ac_status); }; }; then
29052 wx_cv_func_vsnprintf_decl=yes
29053 else
29054 echo "$as_me: failed program was:" >&5
29055 sed 's/^/| /' conftest.$ac_ext >&5
29056
29057 wx_cv_func_vsnprintf_decl=no
29058
29059 fi
29060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29061
29062
29063 fi
29064 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29065 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29066
29067 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29068 cat >>confdefs.h <<\_ACEOF
29069 #define HAVE_VSNPRINTF_DECL 1
29070 _ACEOF
29071
29072 fi
29073 fi
29074
29075 if test "$wxUSE_UNICODE" = yes; then
29076
29077
29078
29079 for ac_func in fputwc wprintf vswprintf
29080 do
29081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29082 echo "$as_me:$LINENO: checking for $ac_func" >&5
29083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29084 if eval "test \"\${$as_ac_var+set}\" = set"; then
29085 echo $ECHO_N "(cached) $ECHO_C" >&6
29086 else
29087 cat >conftest.$ac_ext <<_ACEOF
29088 /* confdefs.h. */
29089 _ACEOF
29090 cat confdefs.h >>conftest.$ac_ext
29091 cat >>conftest.$ac_ext <<_ACEOF
29092 /* end confdefs.h. */
29093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29095 #define $ac_func innocuous_$ac_func
29096
29097 /* System header to define __stub macros and hopefully few prototypes,
29098 which can conflict with char $ac_func (); below.
29099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29100 <limits.h> exists even on freestanding compilers. */
29101
29102 #ifdef __STDC__
29103 # include <limits.h>
29104 #else
29105 # include <assert.h>
29106 #endif
29107
29108 #undef $ac_func
29109
29110 /* Override any gcc2 internal prototype to avoid an error. */
29111 #ifdef __cplusplus
29112 extern "C"
29113 {
29114 #endif
29115 /* We use char because int might match the return type of a gcc2
29116 builtin and then its argument prototype would still apply. */
29117 char $ac_func ();
29118 /* The GNU C library defines this for functions which it implements
29119 to always fail with ENOSYS. Some functions are actually named
29120 something starting with __ and the normal name is an alias. */
29121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29122 choke me
29123 #else
29124 char (*f) () = $ac_func;
29125 #endif
29126 #ifdef __cplusplus
29127 }
29128 #endif
29129
29130 int
29131 main ()
29132 {
29133 return f != $ac_func;
29134 ;
29135 return 0;
29136 }
29137 _ACEOF
29138 rm -f conftest.$ac_objext conftest$ac_exeext
29139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29140 (eval $ac_link) 2>conftest.er1
29141 ac_status=$?
29142 grep -v '^ *+' conftest.er1 >conftest.err
29143 rm -f conftest.er1
29144 cat conftest.err >&5
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); } &&
29147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29149 (eval $ac_try) 2>&5
29150 ac_status=$?
29151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152 (exit $ac_status); }; } &&
29153 { ac_try='test -s conftest$ac_exeext'
29154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155 (eval $ac_try) 2>&5
29156 ac_status=$?
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); }; }; then
29159 eval "$as_ac_var=yes"
29160 else
29161 echo "$as_me: failed program was:" >&5
29162 sed 's/^/| /' conftest.$ac_ext >&5
29163
29164 eval "$as_ac_var=no"
29165 fi
29166 rm -f conftest.err conftest.$ac_objext \
29167 conftest$ac_exeext conftest.$ac_ext
29168 fi
29169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29171 if test `eval echo '${'$as_ac_var'}'` = yes; then
29172 cat >>confdefs.h <<_ACEOF
29173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29174 _ACEOF
29175
29176 fi
29177 done
29178
29179
29180 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29181 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29182 cat >conftest.$ac_ext <<_ACEOF
29183 /* confdefs.h. */
29184 _ACEOF
29185 cat confdefs.h >>conftest.$ac_ext
29186 cat >>conftest.$ac_ext <<_ACEOF
29187 /* end confdefs.h. */
29188 #include <wchar.h>
29189 int
29190 main ()
29191 {
29192 &_vsnwprintf;
29193 ;
29194 return 0;
29195 }
29196 _ACEOF
29197 rm -f conftest.$ac_objext
29198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29199 (eval $ac_compile) 2>conftest.er1
29200 ac_status=$?
29201 grep -v '^ *+' conftest.er1 >conftest.err
29202 rm -f conftest.er1
29203 cat conftest.err >&5
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); } &&
29206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208 (eval $ac_try) 2>&5
29209 ac_status=$?
29210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 (exit $ac_status); }; } &&
29212 { ac_try='test -s conftest.$ac_objext'
29213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29214 (eval $ac_try) 2>&5
29215 ac_status=$?
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); }; }; then
29218 echo "$as_me:$LINENO: result: yes" >&5
29219 echo "${ECHO_T}yes" >&6
29220 cat >>confdefs.h <<\_ACEOF
29221 #define HAVE__VSNWPRINTF 1
29222 _ACEOF
29223
29224 else
29225 echo "$as_me: failed program was:" >&5
29226 sed 's/^/| /' conftest.$ac_ext >&5
29227
29228 echo "$as_me:$LINENO: result: no" >&5
29229 echo "${ECHO_T}no" >&6
29230 fi
29231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
29232 fi
29233
29234 ac_ext=c
29235 ac_cpp='$CPP $CPPFLAGS'
29236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29239
29240
29241
29242
29243 if test "$TOOLKIT" != "MSW"; then
29244
29245
29246
29247
29248 ac_ext=cc
29249 ac_cpp='$CXXCPP $CPPFLAGS'
29250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29253
29254
29255
29256
29257 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29258 if test "${with_libiconv_prefix+set}" = set; then
29259 withval="$with_libiconv_prefix"
29260
29261 for dir in `echo "$withval" | tr : ' '`; do
29262 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29263 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29264 done
29265
29266 fi;
29267
29268 echo "$as_me:$LINENO: checking for iconv" >&5
29269 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29270 if test "${am_cv_func_iconv+set}" = set; then
29271 echo $ECHO_N "(cached) $ECHO_C" >&6
29272 else
29273
29274 am_cv_func_iconv="no, consider installing GNU libiconv"
29275 am_cv_lib_iconv=no
29276 cat >conftest.$ac_ext <<_ACEOF
29277 /* confdefs.h. */
29278 _ACEOF
29279 cat confdefs.h >>conftest.$ac_ext
29280 cat >>conftest.$ac_ext <<_ACEOF
29281 /* end confdefs.h. */
29282 #include <stdlib.h>
29283 #include <iconv.h>
29284 int
29285 main ()
29286 {
29287 iconv_t cd = iconv_open("","");
29288 iconv(cd,NULL,NULL,NULL,NULL);
29289 iconv_close(cd);
29290 ;
29291 return 0;
29292 }
29293 _ACEOF
29294 rm -f conftest.$ac_objext conftest$ac_exeext
29295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29296 (eval $ac_link) 2>conftest.er1
29297 ac_status=$?
29298 grep -v '^ *+' conftest.er1 >conftest.err
29299 rm -f conftest.er1
29300 cat conftest.err >&5
29301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302 (exit $ac_status); } &&
29303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29305 (eval $ac_try) 2>&5
29306 ac_status=$?
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); }; } &&
29309 { ac_try='test -s conftest$ac_exeext'
29310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311 (eval $ac_try) 2>&5
29312 ac_status=$?
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; }; then
29315 am_cv_func_iconv=yes
29316 else
29317 echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29319
29320 fi
29321 rm -f conftest.err conftest.$ac_objext \
29322 conftest$ac_exeext conftest.$ac_ext
29323 if test "$am_cv_func_iconv" != yes; then
29324 am_save_LIBS="$LIBS"
29325 LIBS="$LIBS -liconv"
29326 cat >conftest.$ac_ext <<_ACEOF
29327 /* confdefs.h. */
29328 _ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h. */
29332 #include <stdlib.h>
29333 #include <iconv.h>
29334 int
29335 main ()
29336 {
29337 iconv_t cd = iconv_open("","");
29338 iconv(cd,NULL,NULL,NULL,NULL);
29339 iconv_close(cd);
29340 ;
29341 return 0;
29342 }
29343 _ACEOF
29344 rm -f conftest.$ac_objext conftest$ac_exeext
29345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29346 (eval $ac_link) 2>conftest.er1
29347 ac_status=$?
29348 grep -v '^ *+' conftest.er1 >conftest.err
29349 rm -f conftest.er1
29350 cat conftest.err >&5
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); } &&
29353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29355 (eval $ac_try) 2>&5
29356 ac_status=$?
29357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358 (exit $ac_status); }; } &&
29359 { ac_try='test -s conftest$ac_exeext'
29360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29361 (eval $ac_try) 2>&5
29362 ac_status=$?
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); }; }; then
29365 am_cv_lib_iconv=yes
29366 am_cv_func_iconv=yes
29367 else
29368 echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29370
29371 fi
29372 rm -f conftest.err conftest.$ac_objext \
29373 conftest$ac_exeext conftest.$ac_ext
29374 LIBS="$am_save_LIBS"
29375 fi
29376
29377 fi
29378 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29379 echo "${ECHO_T}$am_cv_func_iconv" >&6
29380 if test "$am_cv_func_iconv" = yes; then
29381
29382 cat >>confdefs.h <<\_ACEOF
29383 #define HAVE_ICONV 1
29384 _ACEOF
29385
29386 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29387 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29388 if test "${wx_cv_func_iconv_const+set}" = set; then
29389 echo $ECHO_N "(cached) $ECHO_C" >&6
29390 else
29391 cat >conftest.$ac_ext <<_ACEOF
29392 /* confdefs.h. */
29393 _ACEOF
29394 cat confdefs.h >>conftest.$ac_ext
29395 cat >>conftest.$ac_ext <<_ACEOF
29396 /* end confdefs.h. */
29397
29398 #include <stdlib.h>
29399 #include <iconv.h>
29400 extern
29401 #ifdef __cplusplus
29402 "C"
29403 #endif
29404 #if defined(__STDC__) || defined(__cplusplus)
29405 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29406 #else
29407 size_t iconv();
29408 #endif
29409
29410 int
29411 main ()
29412 {
29413
29414 ;
29415 return 0;
29416 }
29417 _ACEOF
29418 rm -f conftest.$ac_objext
29419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29420 (eval $ac_compile) 2>conftest.er1
29421 ac_status=$?
29422 grep -v '^ *+' conftest.er1 >conftest.err
29423 rm -f conftest.er1
29424 cat conftest.err >&5
29425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426 (exit $ac_status); } &&
29427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29429 (eval $ac_try) 2>&5
29430 ac_status=$?
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); }; } &&
29433 { ac_try='test -s conftest.$ac_objext'
29434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29435 (eval $ac_try) 2>&5
29436 ac_status=$?
29437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); }; }; then
29439 wx_cv_func_iconv_const="no"
29440 else
29441 echo "$as_me: failed program was:" >&5
29442 sed 's/^/| /' conftest.$ac_ext >&5
29443
29444 wx_cv_func_iconv_const="yes"
29445
29446 fi
29447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29448
29449 fi
29450 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29451 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29452
29453 iconv_const=
29454 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29455 iconv_const="const"
29456 fi
29457
29458
29459 cat >>confdefs.h <<_ACEOF
29460 #define ICONV_CONST $iconv_const
29461 _ACEOF
29462
29463 fi
29464 LIBICONV=
29465 if test "$am_cv_lib_iconv" = yes; then
29466 LIBICONV="-liconv"
29467 fi
29468
29469
29470 LIBS="$LIBICONV $LIBS"
29471 ac_ext=c
29472 ac_cpp='$CPP $CPPFLAGS'
29473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29476
29477
29478 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29479
29480 for ac_func in sigaction
29481 do
29482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29483 echo "$as_me:$LINENO: checking for $ac_func" >&5
29484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29485 if eval "test \"\${$as_ac_var+set}\" = set"; then
29486 echo $ECHO_N "(cached) $ECHO_C" >&6
29487 else
29488 cat >conftest.$ac_ext <<_ACEOF
29489 /* confdefs.h. */
29490 _ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h. */
29494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29496 #define $ac_func innocuous_$ac_func
29497
29498 /* System header to define __stub macros and hopefully few prototypes,
29499 which can conflict with char $ac_func (); below.
29500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29501 <limits.h> exists even on freestanding compilers. */
29502
29503 #ifdef __STDC__
29504 # include <limits.h>
29505 #else
29506 # include <assert.h>
29507 #endif
29508
29509 #undef $ac_func
29510
29511 /* Override any gcc2 internal prototype to avoid an error. */
29512 #ifdef __cplusplus
29513 extern "C"
29514 {
29515 #endif
29516 /* We use char because int might match the return type of a gcc2
29517 builtin and then its argument prototype would still apply. */
29518 char $ac_func ();
29519 /* The GNU C library defines this for functions which it implements
29520 to always fail with ENOSYS. Some functions are actually named
29521 something starting with __ and the normal name is an alias. */
29522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29523 choke me
29524 #else
29525 char (*f) () = $ac_func;
29526 #endif
29527 #ifdef __cplusplus
29528 }
29529 #endif
29530
29531 int
29532 main ()
29533 {
29534 return f != $ac_func;
29535 ;
29536 return 0;
29537 }
29538 _ACEOF
29539 rm -f conftest.$ac_objext conftest$ac_exeext
29540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29541 (eval $ac_link) 2>conftest.er1
29542 ac_status=$?
29543 grep -v '^ *+' conftest.er1 >conftest.err
29544 rm -f conftest.er1
29545 cat conftest.err >&5
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); } &&
29548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29550 (eval $ac_try) 2>&5
29551 ac_status=$?
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); }; } &&
29554 { ac_try='test -s conftest$ac_exeext'
29555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29556 (eval $ac_try) 2>&5
29557 ac_status=$?
29558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559 (exit $ac_status); }; }; then
29560 eval "$as_ac_var=yes"
29561 else
29562 echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.$ac_ext >&5
29564
29565 eval "$as_ac_var=no"
29566 fi
29567 rm -f conftest.err conftest.$ac_objext \
29568 conftest$ac_exeext conftest.$ac_ext
29569 fi
29570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29572 if test `eval echo '${'$as_ac_var'}'` = yes; then
29573 cat >>confdefs.h <<_ACEOF
29574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29575 _ACEOF
29576
29577 fi
29578 done
29579
29580
29581 if test "$ac_cv_func_sigaction" = "no"; then
29582 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29583 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29584 wxUSE_ON_FATAL_EXCEPTION=no
29585 fi
29586
29587 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29588
29589
29590 ac_ext=cc
29591 ac_cpp='$CXXCPP $CPPFLAGS'
29592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29595
29596
29597 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29598 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29599 if test "${wx_cv_type_sa_handler+set}" = set; then
29600 echo $ECHO_N "(cached) $ECHO_C" >&6
29601 else
29602
29603 cat >conftest.$ac_ext <<_ACEOF
29604 /* confdefs.h. */
29605 _ACEOF
29606 cat confdefs.h >>conftest.$ac_ext
29607 cat >>conftest.$ac_ext <<_ACEOF
29608 /* end confdefs.h. */
29609 #include <signal.h>
29610 int
29611 main ()
29612 {
29613
29614 extern void testSigHandler(int);
29615
29616 struct sigaction sa;
29617 sa.sa_handler = testSigHandler;
29618
29619 ;
29620 return 0;
29621 }
29622 _ACEOF
29623 rm -f conftest.$ac_objext
29624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29625 (eval $ac_compile) 2>conftest.er1
29626 ac_status=$?
29627 grep -v '^ *+' conftest.er1 >conftest.err
29628 rm -f conftest.er1
29629 cat conftest.err >&5
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); } &&
29632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29634 (eval $ac_try) 2>&5
29635 ac_status=$?
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; } &&
29638 { ac_try='test -s conftest.$ac_objext'
29639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29640 (eval $ac_try) 2>&5
29641 ac_status=$?
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; }; then
29644
29645 wx_cv_type_sa_handler=int
29646
29647 else
29648 echo "$as_me: failed program was:" >&5
29649 sed 's/^/| /' conftest.$ac_ext >&5
29650
29651
29652 wx_cv_type_sa_handler=void
29653
29654 fi
29655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29656
29657 fi
29658 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29659 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29660
29661 ac_ext=c
29662 ac_cpp='$CPP $CPPFLAGS'
29663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29666
29667
29668 cat >>confdefs.h <<_ACEOF
29669 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29670 _ACEOF
29671
29672 fi
29673 fi
29674
29675
29676
29677 for ac_func in mkstemp mktemp
29678 do
29679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29680 echo "$as_me:$LINENO: checking for $ac_func" >&5
29681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29682 if eval "test \"\${$as_ac_var+set}\" = set"; then
29683 echo $ECHO_N "(cached) $ECHO_C" >&6
29684 else
29685 cat >conftest.$ac_ext <<_ACEOF
29686 /* confdefs.h. */
29687 _ACEOF
29688 cat confdefs.h >>conftest.$ac_ext
29689 cat >>conftest.$ac_ext <<_ACEOF
29690 /* end confdefs.h. */
29691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29693 #define $ac_func innocuous_$ac_func
29694
29695 /* System header to define __stub macros and hopefully few prototypes,
29696 which can conflict with char $ac_func (); below.
29697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29698 <limits.h> exists even on freestanding compilers. */
29699
29700 #ifdef __STDC__
29701 # include <limits.h>
29702 #else
29703 # include <assert.h>
29704 #endif
29705
29706 #undef $ac_func
29707
29708 /* Override any gcc2 internal prototype to avoid an error. */
29709 #ifdef __cplusplus
29710 extern "C"
29711 {
29712 #endif
29713 /* We use char because int might match the return type of a gcc2
29714 builtin and then its argument prototype would still apply. */
29715 char $ac_func ();
29716 /* The GNU C library defines this for functions which it implements
29717 to always fail with ENOSYS. Some functions are actually named
29718 something starting with __ and the normal name is an alias. */
29719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29720 choke me
29721 #else
29722 char (*f) () = $ac_func;
29723 #endif
29724 #ifdef __cplusplus
29725 }
29726 #endif
29727
29728 int
29729 main ()
29730 {
29731 return f != $ac_func;
29732 ;
29733 return 0;
29734 }
29735 _ACEOF
29736 rm -f conftest.$ac_objext conftest$ac_exeext
29737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29738 (eval $ac_link) 2>conftest.er1
29739 ac_status=$?
29740 grep -v '^ *+' conftest.er1 >conftest.err
29741 rm -f conftest.er1
29742 cat conftest.err >&5
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); } &&
29745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29747 (eval $ac_try) 2>&5
29748 ac_status=$?
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); }; } &&
29751 { ac_try='test -s conftest$ac_exeext'
29752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29753 (eval $ac_try) 2>&5
29754 ac_status=$?
29755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756 (exit $ac_status); }; }; then
29757 eval "$as_ac_var=yes"
29758 else
29759 echo "$as_me: failed program was:" >&5
29760 sed 's/^/| /' conftest.$ac_ext >&5
29761
29762 eval "$as_ac_var=no"
29763 fi
29764 rm -f conftest.err conftest.$ac_objext \
29765 conftest$ac_exeext conftest.$ac_ext
29766 fi
29767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29769 if test `eval echo '${'$as_ac_var'}'` = yes; then
29770 cat >>confdefs.h <<_ACEOF
29771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29772 _ACEOF
29773 break
29774 fi
29775 done
29776
29777
29778 echo "$as_me:$LINENO: checking for statfs" >&5
29779 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29780 if test "${wx_cv_func_statfs+set}" = set; then
29781 echo $ECHO_N "(cached) $ECHO_C" >&6
29782 else
29783 cat >conftest.$ac_ext <<_ACEOF
29784 /* confdefs.h. */
29785 _ACEOF
29786 cat confdefs.h >>conftest.$ac_ext
29787 cat >>conftest.$ac_ext <<_ACEOF
29788 /* end confdefs.h. */
29789
29790 #if defined(__BSD__)
29791 #include <sys/param.h>
29792 #include <sys/mount.h>
29793 #else
29794 #include <sys/vfs.h>
29795 #endif
29796
29797 int
29798 main ()
29799 {
29800
29801 long l;
29802 struct statfs fs;
29803 statfs("/", &fs);
29804 l = fs.f_bsize;
29805 l += fs.f_blocks;
29806 l += fs.f_bavail;
29807
29808 ;
29809 return 0;
29810 }
29811 _ACEOF
29812 rm -f conftest.$ac_objext
29813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29814 (eval $ac_compile) 2>conftest.er1
29815 ac_status=$?
29816 grep -v '^ *+' conftest.er1 >conftest.err
29817 rm -f conftest.er1
29818 cat conftest.err >&5
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); } &&
29821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823 (eval $ac_try) 2>&5
29824 ac_status=$?
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; } &&
29827 { ac_try='test -s conftest.$ac_objext'
29828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29829 (eval $ac_try) 2>&5
29830 ac_status=$?
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; }; then
29833
29834 wx_cv_func_statfs=yes
29835
29836 else
29837 echo "$as_me: failed program was:" >&5
29838 sed 's/^/| /' conftest.$ac_ext >&5
29839
29840
29841 wx_cv_func_statfs=no
29842
29843
29844 fi
29845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29846
29847 fi
29848 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29849 echo "${ECHO_T}$wx_cv_func_statfs" >&6
29850
29851 if test "$wx_cv_func_statfs" = "yes"; then
29852 wx_cv_type_statvfs_t="struct statfs"
29853 cat >>confdefs.h <<\_ACEOF
29854 #define HAVE_STATFS 1
29855 _ACEOF
29856
29857 else
29858 echo "$as_me:$LINENO: checking for statvfs" >&5
29859 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29860 if test "${wx_cv_func_statvfs+set}" = set; then
29861 echo $ECHO_N "(cached) $ECHO_C" >&6
29862 else
29863 cat >conftest.$ac_ext <<_ACEOF
29864 /* confdefs.h. */
29865 _ACEOF
29866 cat confdefs.h >>conftest.$ac_ext
29867 cat >>conftest.$ac_ext <<_ACEOF
29868 /* end confdefs.h. */
29869
29870 #include <stddef.h>
29871 #include <sys/statvfs.h>
29872
29873 int
29874 main ()
29875 {
29876
29877 statvfs("/", NULL);
29878
29879 ;
29880 return 0;
29881 }
29882 _ACEOF
29883 rm -f conftest.$ac_objext
29884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29885 (eval $ac_compile) 2>conftest.er1
29886 ac_status=$?
29887 grep -v '^ *+' conftest.er1 >conftest.err
29888 rm -f conftest.er1
29889 cat conftest.err >&5
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); } &&
29892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29894 (eval $ac_try) 2>&5
29895 ac_status=$?
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; } &&
29898 { ac_try='test -s conftest.$ac_objext'
29899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900 (eval $ac_try) 2>&5
29901 ac_status=$?
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; }; then
29904 wx_cv_func_statvfs=yes
29905 else
29906 echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29908
29909 wx_cv_func_statvfs=no
29910
29911 fi
29912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29913
29914 fi
29915 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29916 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29917
29918 if test "$wx_cv_func_statvfs" = "yes"; then
29919
29920
29921 ac_ext=cc
29922 ac_cpp='$CXXCPP $CPPFLAGS'
29923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29926
29927
29928 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29929 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29930 if test "${wx_cv_type_statvfs_t+set}" = set; then
29931 echo $ECHO_N "(cached) $ECHO_C" >&6
29932 else
29933 cat >conftest.$ac_ext <<_ACEOF
29934 /* confdefs.h. */
29935 _ACEOF
29936 cat confdefs.h >>conftest.$ac_ext
29937 cat >>conftest.$ac_ext <<_ACEOF
29938 /* end confdefs.h. */
29939
29940 #include <sys/statvfs.h>
29941
29942 int
29943 main ()
29944 {
29945
29946 long l;
29947 statvfs_t fs;
29948 statvfs("/", &fs);
29949 l = fs.f_bsize;
29950 l += fs.f_blocks;
29951 l += fs.f_bavail;
29952
29953 ;
29954 return 0;
29955 }
29956 _ACEOF
29957 rm -f conftest.$ac_objext
29958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29959 (eval $ac_compile) 2>conftest.er1
29960 ac_status=$?
29961 grep -v '^ *+' conftest.er1 >conftest.err
29962 rm -f conftest.er1
29963 cat conftest.err >&5
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); } &&
29966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29968 (eval $ac_try) 2>&5
29969 ac_status=$?
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); }; } &&
29972 { ac_try='test -s conftest.$ac_objext'
29973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974 (eval $ac_try) 2>&5
29975 ac_status=$?
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; }; then
29978 wx_cv_type_statvfs_t=statvfs_t
29979 else
29980 echo "$as_me: failed program was:" >&5
29981 sed 's/^/| /' conftest.$ac_ext >&5
29982
29983
29984 cat >conftest.$ac_ext <<_ACEOF
29985 /* confdefs.h. */
29986 _ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h. */
29990
29991 #include <sys/statvfs.h>
29992
29993 int
29994 main ()
29995 {
29996
29997 long l;
29998 struct statvfs fs;
29999 statvfs("/", &fs);
30000 l = fs.f_bsize;
30001 l += fs.f_blocks;
30002 l += fs.f_bavail;
30003
30004 ;
30005 return 0;
30006 }
30007 _ACEOF
30008 rm -f conftest.$ac_objext
30009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30010 (eval $ac_compile) 2>conftest.er1
30011 ac_status=$?
30012 grep -v '^ *+' conftest.er1 >conftest.err
30013 rm -f conftest.er1
30014 cat conftest.err >&5
30015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016 (exit $ac_status); } &&
30017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019 (eval $ac_try) 2>&5
30020 ac_status=$?
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); }; } &&
30023 { ac_try='test -s conftest.$ac_objext'
30024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30025 (eval $ac_try) 2>&5
30026 ac_status=$?
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); }; }; then
30029 wx_cv_type_statvfs_t="struct statvfs"
30030 else
30031 echo "$as_me: failed program was:" >&5
30032 sed 's/^/| /' conftest.$ac_ext >&5
30033
30034 wx_cv_type_statvfs_t="unknown"
30035
30036 fi
30037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30038
30039
30040 fi
30041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30042
30043 fi
30044 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30045 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30046
30047 ac_ext=c
30048 ac_cpp='$CPP $CPPFLAGS'
30049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30052
30053
30054 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30055 cat >>confdefs.h <<\_ACEOF
30056 #define HAVE_STATVFS 1
30057 _ACEOF
30058
30059 fi
30060 else
30061 wx_cv_type_statvfs_t="unknown"
30062 fi
30063 fi
30064
30065 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30066 cat >>confdefs.h <<_ACEOF
30067 #define WX_STATFS_T $wx_cv_type_statvfs_t
30068 _ACEOF
30069
30070 else
30071 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30072 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30073 fi
30074
30075 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30076
30077
30078 for ac_func in fcntl flock
30079 do
30080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30081 echo "$as_me:$LINENO: checking for $ac_func" >&5
30082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30083 if eval "test \"\${$as_ac_var+set}\" = set"; then
30084 echo $ECHO_N "(cached) $ECHO_C" >&6
30085 else
30086 cat >conftest.$ac_ext <<_ACEOF
30087 /* confdefs.h. */
30088 _ACEOF
30089 cat confdefs.h >>conftest.$ac_ext
30090 cat >>conftest.$ac_ext <<_ACEOF
30091 /* end confdefs.h. */
30092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30094 #define $ac_func innocuous_$ac_func
30095
30096 /* System header to define __stub macros and hopefully few prototypes,
30097 which can conflict with char $ac_func (); below.
30098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30099 <limits.h> exists even on freestanding compilers. */
30100
30101 #ifdef __STDC__
30102 # include <limits.h>
30103 #else
30104 # include <assert.h>
30105 #endif
30106
30107 #undef $ac_func
30108
30109 /* Override any gcc2 internal prototype to avoid an error. */
30110 #ifdef __cplusplus
30111 extern "C"
30112 {
30113 #endif
30114 /* We use char because int might match the return type of a gcc2
30115 builtin and then its argument prototype would still apply. */
30116 char $ac_func ();
30117 /* The GNU C library defines this for functions which it implements
30118 to always fail with ENOSYS. Some functions are actually named
30119 something starting with __ and the normal name is an alias. */
30120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30121 choke me
30122 #else
30123 char (*f) () = $ac_func;
30124 #endif
30125 #ifdef __cplusplus
30126 }
30127 #endif
30128
30129 int
30130 main ()
30131 {
30132 return f != $ac_func;
30133 ;
30134 return 0;
30135 }
30136 _ACEOF
30137 rm -f conftest.$ac_objext conftest$ac_exeext
30138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30139 (eval $ac_link) 2>conftest.er1
30140 ac_status=$?
30141 grep -v '^ *+' conftest.er1 >conftest.err
30142 rm -f conftest.er1
30143 cat conftest.err >&5
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); } &&
30146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148 (eval $ac_try) 2>&5
30149 ac_status=$?
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; } &&
30152 { ac_try='test -s conftest$ac_exeext'
30153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154 (eval $ac_try) 2>&5
30155 ac_status=$?
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; }; then
30158 eval "$as_ac_var=yes"
30159 else
30160 echo "$as_me: failed program was:" >&5
30161 sed 's/^/| /' conftest.$ac_ext >&5
30162
30163 eval "$as_ac_var=no"
30164 fi
30165 rm -f conftest.err conftest.$ac_objext \
30166 conftest$ac_exeext conftest.$ac_ext
30167 fi
30168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30170 if test `eval echo '${'$as_ac_var'}'` = yes; then
30171 cat >>confdefs.h <<_ACEOF
30172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30173 _ACEOF
30174 break
30175 fi
30176 done
30177
30178
30179 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30180 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30181 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30182 wxUSE_SNGLINST_CHECKER=no
30183 fi
30184 fi
30185
30186
30187 for ac_func in timegm
30188 do
30189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30190 echo "$as_me:$LINENO: checking for $ac_func" >&5
30191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30192 if eval "test \"\${$as_ac_var+set}\" = set"; then
30193 echo $ECHO_N "(cached) $ECHO_C" >&6
30194 else
30195 cat >conftest.$ac_ext <<_ACEOF
30196 /* confdefs.h. */
30197 _ACEOF
30198 cat confdefs.h >>conftest.$ac_ext
30199 cat >>conftest.$ac_ext <<_ACEOF
30200 /* end confdefs.h. */
30201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30203 #define $ac_func innocuous_$ac_func
30204
30205 /* System header to define __stub macros and hopefully few prototypes,
30206 which can conflict with char $ac_func (); below.
30207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30208 <limits.h> exists even on freestanding compilers. */
30209
30210 #ifdef __STDC__
30211 # include <limits.h>
30212 #else
30213 # include <assert.h>
30214 #endif
30215
30216 #undef $ac_func
30217
30218 /* Override any gcc2 internal prototype to avoid an error. */
30219 #ifdef __cplusplus
30220 extern "C"
30221 {
30222 #endif
30223 /* We use char because int might match the return type of a gcc2
30224 builtin and then its argument prototype would still apply. */
30225 char $ac_func ();
30226 /* The GNU C library defines this for functions which it implements
30227 to always fail with ENOSYS. Some functions are actually named
30228 something starting with __ and the normal name is an alias. */
30229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30230 choke me
30231 #else
30232 char (*f) () = $ac_func;
30233 #endif
30234 #ifdef __cplusplus
30235 }
30236 #endif
30237
30238 int
30239 main ()
30240 {
30241 return f != $ac_func;
30242 ;
30243 return 0;
30244 }
30245 _ACEOF
30246 rm -f conftest.$ac_objext conftest$ac_exeext
30247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30248 (eval $ac_link) 2>conftest.er1
30249 ac_status=$?
30250 grep -v '^ *+' conftest.er1 >conftest.err
30251 rm -f conftest.er1
30252 cat conftest.err >&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); } &&
30255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30257 (eval $ac_try) 2>&5
30258 ac_status=$?
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); }; } &&
30261 { ac_try='test -s conftest$ac_exeext'
30262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30263 (eval $ac_try) 2>&5
30264 ac_status=$?
30265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30266 (exit $ac_status); }; }; then
30267 eval "$as_ac_var=yes"
30268 else
30269 echo "$as_me: failed program was:" >&5
30270 sed 's/^/| /' conftest.$ac_ext >&5
30271
30272 eval "$as_ac_var=no"
30273 fi
30274 rm -f conftest.err conftest.$ac_objext \
30275 conftest$ac_exeext conftest.$ac_ext
30276 fi
30277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30279 if test `eval echo '${'$as_ac_var'}'` = yes; then
30280 cat >>confdefs.h <<_ACEOF
30281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30282 _ACEOF
30283
30284 fi
30285 done
30286
30287
30288
30289
30290 for ac_func in putenv setenv
30291 do
30292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30293 echo "$as_me:$LINENO: checking for $ac_func" >&5
30294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30295 if eval "test \"\${$as_ac_var+set}\" = set"; then
30296 echo $ECHO_N "(cached) $ECHO_C" >&6
30297 else
30298 cat >conftest.$ac_ext <<_ACEOF
30299 /* confdefs.h. */
30300 _ACEOF
30301 cat confdefs.h >>conftest.$ac_ext
30302 cat >>conftest.$ac_ext <<_ACEOF
30303 /* end confdefs.h. */
30304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30306 #define $ac_func innocuous_$ac_func
30307
30308 /* System header to define __stub macros and hopefully few prototypes,
30309 which can conflict with char $ac_func (); below.
30310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30311 <limits.h> exists even on freestanding compilers. */
30312
30313 #ifdef __STDC__
30314 # include <limits.h>
30315 #else
30316 # include <assert.h>
30317 #endif
30318
30319 #undef $ac_func
30320
30321 /* Override any gcc2 internal prototype to avoid an error. */
30322 #ifdef __cplusplus
30323 extern "C"
30324 {
30325 #endif
30326 /* We use char because int might match the return type of a gcc2
30327 builtin and then its argument prototype would still apply. */
30328 char $ac_func ();
30329 /* The GNU C library defines this for functions which it implements
30330 to always fail with ENOSYS. Some functions are actually named
30331 something starting with __ and the normal name is an alias. */
30332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30333 choke me
30334 #else
30335 char (*f) () = $ac_func;
30336 #endif
30337 #ifdef __cplusplus
30338 }
30339 #endif
30340
30341 int
30342 main ()
30343 {
30344 return f != $ac_func;
30345 ;
30346 return 0;
30347 }
30348 _ACEOF
30349 rm -f conftest.$ac_objext conftest$ac_exeext
30350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30351 (eval $ac_link) 2>conftest.er1
30352 ac_status=$?
30353 grep -v '^ *+' conftest.er1 >conftest.err
30354 rm -f conftest.er1
30355 cat conftest.err >&5
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); } &&
30358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30360 (eval $ac_try) 2>&5
30361 ac_status=$?
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); }; } &&
30364 { ac_try='test -s conftest$ac_exeext'
30365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30366 (eval $ac_try) 2>&5
30367 ac_status=$?
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); }; }; then
30370 eval "$as_ac_var=yes"
30371 else
30372 echo "$as_me: failed program was:" >&5
30373 sed 's/^/| /' conftest.$ac_ext >&5
30374
30375 eval "$as_ac_var=no"
30376 fi
30377 rm -f conftest.err conftest.$ac_objext \
30378 conftest$ac_exeext conftest.$ac_ext
30379 fi
30380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30382 if test `eval echo '${'$as_ac_var'}'` = yes; then
30383 cat >>confdefs.h <<_ACEOF
30384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30385 _ACEOF
30386 break
30387 fi
30388 done
30389
30390
30391 HAVE_SOME_SLEEP_FUNC=0
30392 if test "$USE_BEOS" = 1; then
30393 cat >>confdefs.h <<\_ACEOF
30394 #define HAVE_SLEEP 1
30395 _ACEOF
30396
30397 HAVE_SOME_SLEEP_FUNC=1
30398 fi
30399
30400 if test "$USE_DARWIN" = 1; then
30401 cat >>confdefs.h <<\_ACEOF
30402 #define HAVE_USLEEP 1
30403 _ACEOF
30404
30405 HAVE_SOME_SLEEP_FUNC=1
30406 fi
30407
30408 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30409 POSIX4_LINK=
30410
30411 for ac_func in nanosleep
30412 do
30413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30414 echo "$as_me:$LINENO: checking for $ac_func" >&5
30415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30416 if eval "test \"\${$as_ac_var+set}\" = set"; then
30417 echo $ECHO_N "(cached) $ECHO_C" >&6
30418 else
30419 cat >conftest.$ac_ext <<_ACEOF
30420 /* confdefs.h. */
30421 _ACEOF
30422 cat confdefs.h >>conftest.$ac_ext
30423 cat >>conftest.$ac_ext <<_ACEOF
30424 /* end confdefs.h. */
30425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30427 #define $ac_func innocuous_$ac_func
30428
30429 /* System header to define __stub macros and hopefully few prototypes,
30430 which can conflict with char $ac_func (); below.
30431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30432 <limits.h> exists even on freestanding compilers. */
30433
30434 #ifdef __STDC__
30435 # include <limits.h>
30436 #else
30437 # include <assert.h>
30438 #endif
30439
30440 #undef $ac_func
30441
30442 /* Override any gcc2 internal prototype to avoid an error. */
30443 #ifdef __cplusplus
30444 extern "C"
30445 {
30446 #endif
30447 /* We use char because int might match the return type of a gcc2
30448 builtin and then its argument prototype would still apply. */
30449 char $ac_func ();
30450 /* The GNU C library defines this for functions which it implements
30451 to always fail with ENOSYS. Some functions are actually named
30452 something starting with __ and the normal name is an alias. */
30453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30454 choke me
30455 #else
30456 char (*f) () = $ac_func;
30457 #endif
30458 #ifdef __cplusplus
30459 }
30460 #endif
30461
30462 int
30463 main ()
30464 {
30465 return f != $ac_func;
30466 ;
30467 return 0;
30468 }
30469 _ACEOF
30470 rm -f conftest.$ac_objext conftest$ac_exeext
30471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30472 (eval $ac_link) 2>conftest.er1
30473 ac_status=$?
30474 grep -v '^ *+' conftest.er1 >conftest.err
30475 rm -f conftest.er1
30476 cat conftest.err >&5
30477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478 (exit $ac_status); } &&
30479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30481 (eval $ac_try) 2>&5
30482 ac_status=$?
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); }; } &&
30485 { ac_try='test -s conftest$ac_exeext'
30486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30487 (eval $ac_try) 2>&5
30488 ac_status=$?
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); }; }; then
30491 eval "$as_ac_var=yes"
30492 else
30493 echo "$as_me: failed program was:" >&5
30494 sed 's/^/| /' conftest.$ac_ext >&5
30495
30496 eval "$as_ac_var=no"
30497 fi
30498 rm -f conftest.err conftest.$ac_objext \
30499 conftest$ac_exeext conftest.$ac_ext
30500 fi
30501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30503 if test `eval echo '${'$as_ac_var'}'` = yes; then
30504 cat >>confdefs.h <<_ACEOF
30505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30506 _ACEOF
30507 cat >>confdefs.h <<\_ACEOF
30508 #define HAVE_NANOSLEEP 1
30509 _ACEOF
30510
30511 else
30512
30513 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30514 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30515 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30516 echo $ECHO_N "(cached) $ECHO_C" >&6
30517 else
30518 ac_check_lib_save_LIBS=$LIBS
30519 LIBS="-lposix4 $LIBS"
30520 cat >conftest.$ac_ext <<_ACEOF
30521 /* confdefs.h. */
30522 _ACEOF
30523 cat confdefs.h >>conftest.$ac_ext
30524 cat >>conftest.$ac_ext <<_ACEOF
30525 /* end confdefs.h. */
30526
30527 /* Override any gcc2 internal prototype to avoid an error. */
30528 #ifdef __cplusplus
30529 extern "C"
30530 #endif
30531 /* We use char because int might match the return type of a gcc2
30532 builtin and then its argument prototype would still apply. */
30533 char nanosleep ();
30534 int
30535 main ()
30536 {
30537 nanosleep ();
30538 ;
30539 return 0;
30540 }
30541 _ACEOF
30542 rm -f conftest.$ac_objext conftest$ac_exeext
30543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30544 (eval $ac_link) 2>conftest.er1
30545 ac_status=$?
30546 grep -v '^ *+' conftest.er1 >conftest.err
30547 rm -f conftest.er1
30548 cat conftest.err >&5
30549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550 (exit $ac_status); } &&
30551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30553 (eval $ac_try) 2>&5
30554 ac_status=$?
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); }; } &&
30557 { ac_try='test -s conftest$ac_exeext'
30558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30559 (eval $ac_try) 2>&5
30560 ac_status=$?
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); }; }; then
30563 ac_cv_lib_posix4_nanosleep=yes
30564 else
30565 echo "$as_me: failed program was:" >&5
30566 sed 's/^/| /' conftest.$ac_ext >&5
30567
30568 ac_cv_lib_posix4_nanosleep=no
30569 fi
30570 rm -f conftest.err conftest.$ac_objext \
30571 conftest$ac_exeext conftest.$ac_ext
30572 LIBS=$ac_check_lib_save_LIBS
30573 fi
30574 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30575 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30576 if test $ac_cv_lib_posix4_nanosleep = yes; then
30577
30578 cat >>confdefs.h <<\_ACEOF
30579 #define HAVE_NANOSLEEP 1
30580 _ACEOF
30581
30582 POSIX4_LINK=" -lposix4"
30583
30584 else
30585
30586
30587 for ac_func in usleep
30588 do
30589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30590 echo "$as_me:$LINENO: checking for $ac_func" >&5
30591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30592 if eval "test \"\${$as_ac_var+set}\" = set"; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30594 else
30595 cat >conftest.$ac_ext <<_ACEOF
30596 /* confdefs.h. */
30597 _ACEOF
30598 cat confdefs.h >>conftest.$ac_ext
30599 cat >>conftest.$ac_ext <<_ACEOF
30600 /* end confdefs.h. */
30601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30603 #define $ac_func innocuous_$ac_func
30604
30605 /* System header to define __stub macros and hopefully few prototypes,
30606 which can conflict with char $ac_func (); below.
30607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30608 <limits.h> exists even on freestanding compilers. */
30609
30610 #ifdef __STDC__
30611 # include <limits.h>
30612 #else
30613 # include <assert.h>
30614 #endif
30615
30616 #undef $ac_func
30617
30618 /* Override any gcc2 internal prototype to avoid an error. */
30619 #ifdef __cplusplus
30620 extern "C"
30621 {
30622 #endif
30623 /* We use char because int might match the return type of a gcc2
30624 builtin and then its argument prototype would still apply. */
30625 char $ac_func ();
30626 /* The GNU C library defines this for functions which it implements
30627 to always fail with ENOSYS. Some functions are actually named
30628 something starting with __ and the normal name is an alias. */
30629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30630 choke me
30631 #else
30632 char (*f) () = $ac_func;
30633 #endif
30634 #ifdef __cplusplus
30635 }
30636 #endif
30637
30638 int
30639 main ()
30640 {
30641 return f != $ac_func;
30642 ;
30643 return 0;
30644 }
30645 _ACEOF
30646 rm -f conftest.$ac_objext conftest$ac_exeext
30647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30648 (eval $ac_link) 2>conftest.er1
30649 ac_status=$?
30650 grep -v '^ *+' conftest.er1 >conftest.err
30651 rm -f conftest.er1
30652 cat conftest.err >&5
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); } &&
30655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30658 ac_status=$?
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; } &&
30661 { ac_try='test -s conftest$ac_exeext'
30662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30663 (eval $ac_try) 2>&5
30664 ac_status=$?
30665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666 (exit $ac_status); }; }; then
30667 eval "$as_ac_var=yes"
30668 else
30669 echo "$as_me: failed program was:" >&5
30670 sed 's/^/| /' conftest.$ac_ext >&5
30671
30672 eval "$as_ac_var=no"
30673 fi
30674 rm -f conftest.err conftest.$ac_objext \
30675 conftest$ac_exeext conftest.$ac_ext
30676 fi
30677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30679 if test `eval echo '${'$as_ac_var'}'` = yes; then
30680 cat >>confdefs.h <<_ACEOF
30681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30682 _ACEOF
30683 cat >>confdefs.h <<\_ACEOF
30684 #define HAVE_USLEEP 1
30685 _ACEOF
30686
30687 else
30688 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30689 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30690
30691 fi
30692 done
30693
30694
30695
30696 fi
30697
30698
30699
30700 fi
30701 done
30702
30703 fi
30704
30705
30706
30707 for ac_func in uname gethostname
30708 do
30709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30710 echo "$as_me:$LINENO: checking for $ac_func" >&5
30711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30712 if eval "test \"\${$as_ac_var+set}\" = set"; then
30713 echo $ECHO_N "(cached) $ECHO_C" >&6
30714 else
30715 cat >conftest.$ac_ext <<_ACEOF
30716 /* confdefs.h. */
30717 _ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h. */
30721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30723 #define $ac_func innocuous_$ac_func
30724
30725 /* System header to define __stub macros and hopefully few prototypes,
30726 which can conflict with char $ac_func (); below.
30727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30728 <limits.h> exists even on freestanding compilers. */
30729
30730 #ifdef __STDC__
30731 # include <limits.h>
30732 #else
30733 # include <assert.h>
30734 #endif
30735
30736 #undef $ac_func
30737
30738 /* Override any gcc2 internal prototype to avoid an error. */
30739 #ifdef __cplusplus
30740 extern "C"
30741 {
30742 #endif
30743 /* We use char because int might match the return type of a gcc2
30744 builtin and then its argument prototype would still apply. */
30745 char $ac_func ();
30746 /* The GNU C library defines this for functions which it implements
30747 to always fail with ENOSYS. Some functions are actually named
30748 something starting with __ and the normal name is an alias. */
30749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30750 choke me
30751 #else
30752 char (*f) () = $ac_func;
30753 #endif
30754 #ifdef __cplusplus
30755 }
30756 #endif
30757
30758 int
30759 main ()
30760 {
30761 return f != $ac_func;
30762 ;
30763 return 0;
30764 }
30765 _ACEOF
30766 rm -f conftest.$ac_objext conftest$ac_exeext
30767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30768 (eval $ac_link) 2>conftest.er1
30769 ac_status=$?
30770 grep -v '^ *+' conftest.er1 >conftest.err
30771 rm -f conftest.er1
30772 cat conftest.err >&5
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); } &&
30775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30777 (eval $ac_try) 2>&5
30778 ac_status=$?
30779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780 (exit $ac_status); }; } &&
30781 { ac_try='test -s conftest$ac_exeext'
30782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30783 (eval $ac_try) 2>&5
30784 ac_status=$?
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); }; }; then
30787 eval "$as_ac_var=yes"
30788 else
30789 echo "$as_me: failed program was:" >&5
30790 sed 's/^/| /' conftest.$ac_ext >&5
30791
30792 eval "$as_ac_var=no"
30793 fi
30794 rm -f conftest.err conftest.$ac_objext \
30795 conftest$ac_exeext conftest.$ac_ext
30796 fi
30797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30798 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30799 if test `eval echo '${'$as_ac_var'}'` = yes; then
30800 cat >>confdefs.h <<_ACEOF
30801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30802 _ACEOF
30803 break
30804 fi
30805 done
30806
30807
30808
30809
30810 ac_ext=cc
30811 ac_cpp='$CXXCPP $CPPFLAGS'
30812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30815
30816
30817
30818 for ac_func in strtok_r
30819 do
30820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30821 echo "$as_me:$LINENO: checking for $ac_func" >&5
30822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30823 if eval "test \"\${$as_ac_var+set}\" = set"; then
30824 echo $ECHO_N "(cached) $ECHO_C" >&6
30825 else
30826 cat >conftest.$ac_ext <<_ACEOF
30827 /* confdefs.h. */
30828 _ACEOF
30829 cat confdefs.h >>conftest.$ac_ext
30830 cat >>conftest.$ac_ext <<_ACEOF
30831 /* end confdefs.h. */
30832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30834 #define $ac_func innocuous_$ac_func
30835
30836 /* System header to define __stub macros and hopefully few prototypes,
30837 which can conflict with char $ac_func (); below.
30838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30839 <limits.h> exists even on freestanding compilers. */
30840
30841 #ifdef __STDC__
30842 # include <limits.h>
30843 #else
30844 # include <assert.h>
30845 #endif
30846
30847 #undef $ac_func
30848
30849 /* Override any gcc2 internal prototype to avoid an error. */
30850 #ifdef __cplusplus
30851 extern "C"
30852 {
30853 #endif
30854 /* We use char because int might match the return type of a gcc2
30855 builtin and then its argument prototype would still apply. */
30856 char $ac_func ();
30857 /* The GNU C library defines this for functions which it implements
30858 to always fail with ENOSYS. Some functions are actually named
30859 something starting with __ and the normal name is an alias. */
30860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30861 choke me
30862 #else
30863 char (*f) () = $ac_func;
30864 #endif
30865 #ifdef __cplusplus
30866 }
30867 #endif
30868
30869 int
30870 main ()
30871 {
30872 return f != $ac_func;
30873 ;
30874 return 0;
30875 }
30876 _ACEOF
30877 rm -f conftest.$ac_objext conftest$ac_exeext
30878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30879 (eval $ac_link) 2>conftest.er1
30880 ac_status=$?
30881 grep -v '^ *+' conftest.er1 >conftest.err
30882 rm -f conftest.er1
30883 cat conftest.err >&5
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); } &&
30886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30888 (eval $ac_try) 2>&5
30889 ac_status=$?
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); }; } &&
30892 { ac_try='test -s conftest$ac_exeext'
30893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30894 (eval $ac_try) 2>&5
30895 ac_status=$?
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; }; then
30898 eval "$as_ac_var=yes"
30899 else
30900 echo "$as_me: failed program was:" >&5
30901 sed 's/^/| /' conftest.$ac_ext >&5
30902
30903 eval "$as_ac_var=no"
30904 fi
30905 rm -f conftest.err conftest.$ac_objext \
30906 conftest$ac_exeext conftest.$ac_ext
30907 fi
30908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30910 if test `eval echo '${'$as_ac_var'}'` = yes; then
30911 cat >>confdefs.h <<_ACEOF
30912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30913 _ACEOF
30914
30915 fi
30916 done
30917
30918
30919 ac_ext=c
30920 ac_cpp='$CPP $CPPFLAGS'
30921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30924
30925
30926 INET_LINK=
30927
30928 for ac_func in inet_addr
30929 do
30930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30931 echo "$as_me:$LINENO: checking for $ac_func" >&5
30932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30933 if eval "test \"\${$as_ac_var+set}\" = set"; then
30934 echo $ECHO_N "(cached) $ECHO_C" >&6
30935 else
30936 cat >conftest.$ac_ext <<_ACEOF
30937 /* confdefs.h. */
30938 _ACEOF
30939 cat confdefs.h >>conftest.$ac_ext
30940 cat >>conftest.$ac_ext <<_ACEOF
30941 /* end confdefs.h. */
30942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30944 #define $ac_func innocuous_$ac_func
30945
30946 /* System header to define __stub macros and hopefully few prototypes,
30947 which can conflict with char $ac_func (); below.
30948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30949 <limits.h> exists even on freestanding compilers. */
30950
30951 #ifdef __STDC__
30952 # include <limits.h>
30953 #else
30954 # include <assert.h>
30955 #endif
30956
30957 #undef $ac_func
30958
30959 /* Override any gcc2 internal prototype to avoid an error. */
30960 #ifdef __cplusplus
30961 extern "C"
30962 {
30963 #endif
30964 /* We use char because int might match the return type of a gcc2
30965 builtin and then its argument prototype would still apply. */
30966 char $ac_func ();
30967 /* The GNU C library defines this for functions which it implements
30968 to always fail with ENOSYS. Some functions are actually named
30969 something starting with __ and the normal name is an alias. */
30970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30971 choke me
30972 #else
30973 char (*f) () = $ac_func;
30974 #endif
30975 #ifdef __cplusplus
30976 }
30977 #endif
30978
30979 int
30980 main ()
30981 {
30982 return f != $ac_func;
30983 ;
30984 return 0;
30985 }
30986 _ACEOF
30987 rm -f conftest.$ac_objext conftest$ac_exeext
30988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30989 (eval $ac_link) 2>conftest.er1
30990 ac_status=$?
30991 grep -v '^ *+' conftest.er1 >conftest.err
30992 rm -f conftest.er1
30993 cat conftest.err >&5
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); } &&
30996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30998 (eval $ac_try) 2>&5
30999 ac_status=$?
31000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); }; } &&
31002 { ac_try='test -s conftest$ac_exeext'
31003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31004 (eval $ac_try) 2>&5
31005 ac_status=$?
31006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31007 (exit $ac_status); }; }; then
31008 eval "$as_ac_var=yes"
31009 else
31010 echo "$as_me: failed program was:" >&5
31011 sed 's/^/| /' conftest.$ac_ext >&5
31012
31013 eval "$as_ac_var=no"
31014 fi
31015 rm -f conftest.err conftest.$ac_objext \
31016 conftest$ac_exeext conftest.$ac_ext
31017 fi
31018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31020 if test `eval echo '${'$as_ac_var'}'` = yes; then
31021 cat >>confdefs.h <<_ACEOF
31022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31023 _ACEOF
31024 cat >>confdefs.h <<\_ACEOF
31025 #define HAVE_INET_ADDR 1
31026 _ACEOF
31027
31028 else
31029
31030 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31031 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31032 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31033 echo $ECHO_N "(cached) $ECHO_C" >&6
31034 else
31035 ac_check_lib_save_LIBS=$LIBS
31036 LIBS="-lnsl $LIBS"
31037 cat >conftest.$ac_ext <<_ACEOF
31038 /* confdefs.h. */
31039 _ACEOF
31040 cat confdefs.h >>conftest.$ac_ext
31041 cat >>conftest.$ac_ext <<_ACEOF
31042 /* end confdefs.h. */
31043
31044 /* Override any gcc2 internal prototype to avoid an error. */
31045 #ifdef __cplusplus
31046 extern "C"
31047 #endif
31048 /* We use char because int might match the return type of a gcc2
31049 builtin and then its argument prototype would still apply. */
31050 char inet_addr ();
31051 int
31052 main ()
31053 {
31054 inet_addr ();
31055 ;
31056 return 0;
31057 }
31058 _ACEOF
31059 rm -f conftest.$ac_objext conftest$ac_exeext
31060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31061 (eval $ac_link) 2>conftest.er1
31062 ac_status=$?
31063 grep -v '^ *+' conftest.er1 >conftest.err
31064 rm -f conftest.er1
31065 cat conftest.err >&5
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); } &&
31068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31070 (eval $ac_try) 2>&5
31071 ac_status=$?
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); }; } &&
31074 { ac_try='test -s conftest$ac_exeext'
31075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31076 (eval $ac_try) 2>&5
31077 ac_status=$?
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; }; then
31080 ac_cv_lib_nsl_inet_addr=yes
31081 else
31082 echo "$as_me: failed program was:" >&5
31083 sed 's/^/| /' conftest.$ac_ext >&5
31084
31085 ac_cv_lib_nsl_inet_addr=no
31086 fi
31087 rm -f conftest.err conftest.$ac_objext \
31088 conftest$ac_exeext conftest.$ac_ext
31089 LIBS=$ac_check_lib_save_LIBS
31090 fi
31091 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31092 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31093 if test $ac_cv_lib_nsl_inet_addr = yes; then
31094 INET_LINK="nsl"
31095 else
31096
31097 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31098 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31099 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
31101 else
31102 ac_check_lib_save_LIBS=$LIBS
31103 LIBS="-lresolv $LIBS"
31104 cat >conftest.$ac_ext <<_ACEOF
31105 /* confdefs.h. */
31106 _ACEOF
31107 cat confdefs.h >>conftest.$ac_ext
31108 cat >>conftest.$ac_ext <<_ACEOF
31109 /* end confdefs.h. */
31110
31111 /* Override any gcc2 internal prototype to avoid an error. */
31112 #ifdef __cplusplus
31113 extern "C"
31114 #endif
31115 /* We use char because int might match the return type of a gcc2
31116 builtin and then its argument prototype would still apply. */
31117 char inet_addr ();
31118 int
31119 main ()
31120 {
31121 inet_addr ();
31122 ;
31123 return 0;
31124 }
31125 _ACEOF
31126 rm -f conftest.$ac_objext conftest$ac_exeext
31127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31128 (eval $ac_link) 2>conftest.er1
31129 ac_status=$?
31130 grep -v '^ *+' conftest.er1 >conftest.err
31131 rm -f conftest.er1
31132 cat conftest.err >&5
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); } &&
31135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31137 (eval $ac_try) 2>&5
31138 ac_status=$?
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); }; } &&
31141 { ac_try='test -s conftest$ac_exeext'
31142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31143 (eval $ac_try) 2>&5
31144 ac_status=$?
31145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146 (exit $ac_status); }; }; then
31147 ac_cv_lib_resolv_inet_addr=yes
31148 else
31149 echo "$as_me: failed program was:" >&5
31150 sed 's/^/| /' conftest.$ac_ext >&5
31151
31152 ac_cv_lib_resolv_inet_addr=no
31153 fi
31154 rm -f conftest.err conftest.$ac_objext \
31155 conftest$ac_exeext conftest.$ac_ext
31156 LIBS=$ac_check_lib_save_LIBS
31157 fi
31158 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31159 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31160 if test $ac_cv_lib_resolv_inet_addr = yes; then
31161 INET_LINK="resolv"
31162 else
31163
31164 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31165 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31166 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31167 echo $ECHO_N "(cached) $ECHO_C" >&6
31168 else
31169 ac_check_lib_save_LIBS=$LIBS
31170 LIBS="-lsocket $LIBS"
31171 cat >conftest.$ac_ext <<_ACEOF
31172 /* confdefs.h. */
31173 _ACEOF
31174 cat confdefs.h >>conftest.$ac_ext
31175 cat >>conftest.$ac_ext <<_ACEOF
31176 /* end confdefs.h. */
31177
31178 /* Override any gcc2 internal prototype to avoid an error. */
31179 #ifdef __cplusplus
31180 extern "C"
31181 #endif
31182 /* We use char because int might match the return type of a gcc2
31183 builtin and then its argument prototype would still apply. */
31184 char inet_addr ();
31185 int
31186 main ()
31187 {
31188 inet_addr ();
31189 ;
31190 return 0;
31191 }
31192 _ACEOF
31193 rm -f conftest.$ac_objext conftest$ac_exeext
31194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31195 (eval $ac_link) 2>conftest.er1
31196 ac_status=$?
31197 grep -v '^ *+' conftest.er1 >conftest.err
31198 rm -f conftest.er1
31199 cat conftest.err >&5
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); } &&
31202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31204 (eval $ac_try) 2>&5
31205 ac_status=$?
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; } &&
31208 { ac_try='test -s conftest$ac_exeext'
31209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31210 (eval $ac_try) 2>&5
31211 ac_status=$?
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); }; }; then
31214 ac_cv_lib_socket_inet_addr=yes
31215 else
31216 echo "$as_me: failed program was:" >&5
31217 sed 's/^/| /' conftest.$ac_ext >&5
31218
31219 ac_cv_lib_socket_inet_addr=no
31220 fi
31221 rm -f conftest.err conftest.$ac_objext \
31222 conftest$ac_exeext conftest.$ac_ext
31223 LIBS=$ac_check_lib_save_LIBS
31224 fi
31225 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31226 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31227 if test $ac_cv_lib_socket_inet_addr = yes; then
31228 INET_LINK="socket"
31229
31230 fi
31231
31232
31233
31234 fi
31235
31236
31237
31238 fi
31239
31240
31241
31242 fi
31243 done
31244
31245
31246
31247 for ac_func in inet_aton
31248 do
31249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31250 echo "$as_me:$LINENO: checking for $ac_func" >&5
31251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31252 if eval "test \"\${$as_ac_var+set}\" = set"; then
31253 echo $ECHO_N "(cached) $ECHO_C" >&6
31254 else
31255 cat >conftest.$ac_ext <<_ACEOF
31256 /* confdefs.h. */
31257 _ACEOF
31258 cat confdefs.h >>conftest.$ac_ext
31259 cat >>conftest.$ac_ext <<_ACEOF
31260 /* end confdefs.h. */
31261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31263 #define $ac_func innocuous_$ac_func
31264
31265 /* System header to define __stub macros and hopefully few prototypes,
31266 which can conflict with char $ac_func (); below.
31267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31268 <limits.h> exists even on freestanding compilers. */
31269
31270 #ifdef __STDC__
31271 # include <limits.h>
31272 #else
31273 # include <assert.h>
31274 #endif
31275
31276 #undef $ac_func
31277
31278 /* Override any gcc2 internal prototype to avoid an error. */
31279 #ifdef __cplusplus
31280 extern "C"
31281 {
31282 #endif
31283 /* We use char because int might match the return type of a gcc2
31284 builtin and then its argument prototype would still apply. */
31285 char $ac_func ();
31286 /* The GNU C library defines this for functions which it implements
31287 to always fail with ENOSYS. Some functions are actually named
31288 something starting with __ and the normal name is an alias. */
31289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31290 choke me
31291 #else
31292 char (*f) () = $ac_func;
31293 #endif
31294 #ifdef __cplusplus
31295 }
31296 #endif
31297
31298 int
31299 main ()
31300 {
31301 return f != $ac_func;
31302 ;
31303 return 0;
31304 }
31305 _ACEOF
31306 rm -f conftest.$ac_objext conftest$ac_exeext
31307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31308 (eval $ac_link) 2>conftest.er1
31309 ac_status=$?
31310 grep -v '^ *+' conftest.er1 >conftest.err
31311 rm -f conftest.er1
31312 cat conftest.err >&5
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); } &&
31315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31317 (eval $ac_try) 2>&5
31318 ac_status=$?
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); }; } &&
31321 { ac_try='test -s conftest$ac_exeext'
31322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31323 (eval $ac_try) 2>&5
31324 ac_status=$?
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); }; }; then
31327 eval "$as_ac_var=yes"
31328 else
31329 echo "$as_me: failed program was:" >&5
31330 sed 's/^/| /' conftest.$ac_ext >&5
31331
31332 eval "$as_ac_var=no"
31333 fi
31334 rm -f conftest.err conftest.$ac_objext \
31335 conftest$ac_exeext conftest.$ac_ext
31336 fi
31337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31339 if test `eval echo '${'$as_ac_var'}'` = yes; then
31340 cat >>confdefs.h <<_ACEOF
31341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31342 _ACEOF
31343 cat >>confdefs.h <<\_ACEOF
31344 #define HAVE_INET_ATON 1
31345 _ACEOF
31346
31347 else
31348
31349 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31350 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31351 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31352 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31353 echo $ECHO_N "(cached) $ECHO_C" >&6
31354 else
31355 ac_check_lib_save_LIBS=$LIBS
31356 LIBS="-l$INET_LINK $LIBS"
31357 cat >conftest.$ac_ext <<_ACEOF
31358 /* confdefs.h. */
31359 _ACEOF
31360 cat confdefs.h >>conftest.$ac_ext
31361 cat >>conftest.$ac_ext <<_ACEOF
31362 /* end confdefs.h. */
31363
31364 /* Override any gcc2 internal prototype to avoid an error. */
31365 #ifdef __cplusplus
31366 extern "C"
31367 #endif
31368 /* We use char because int might match the return type of a gcc2
31369 builtin and then its argument prototype would still apply. */
31370 char inet_aton ();
31371 int
31372 main ()
31373 {
31374 inet_aton ();
31375 ;
31376 return 0;
31377 }
31378 _ACEOF
31379 rm -f conftest.$ac_objext conftest$ac_exeext
31380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31381 (eval $ac_link) 2>conftest.er1
31382 ac_status=$?
31383 grep -v '^ *+' conftest.er1 >conftest.err
31384 rm -f conftest.er1
31385 cat conftest.err >&5
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); } &&
31388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31390 (eval $ac_try) 2>&5
31391 ac_status=$?
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); }; } &&
31394 { ac_try='test -s conftest$ac_exeext'
31395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31396 (eval $ac_try) 2>&5
31397 ac_status=$?
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; }; then
31400 eval "$as_ac_Lib=yes"
31401 else
31402 echo "$as_me: failed program was:" >&5
31403 sed 's/^/| /' conftest.$ac_ext >&5
31404
31405 eval "$as_ac_Lib=no"
31406 fi
31407 rm -f conftest.err conftest.$ac_objext \
31408 conftest$ac_exeext conftest.$ac_ext
31409 LIBS=$ac_check_lib_save_LIBS
31410 fi
31411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31412 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31413 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31414 cat >>confdefs.h <<\_ACEOF
31415 #define HAVE_INET_ATON 1
31416 _ACEOF
31417
31418 fi
31419
31420
31421 fi
31422 done
31423
31424
31425 if test "x$INET_LINK" != "x"; then
31426 cat >>confdefs.h <<\_ACEOF
31427 #define HAVE_INET_ADDR 1
31428 _ACEOF
31429
31430 INET_LINK=" -l$INET_LINK"
31431 fi
31432
31433 fi
31434
31435
31436
31437 EXTRALIBS_ESD=
31438 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31439 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31440 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31441 echo $ECHO_N "(cached) $ECHO_C" >&6
31442 else
31443 ac_check_lib_save_LIBS=$LIBS
31444 LIBS="-lesd $LIBS"
31445 cat >conftest.$ac_ext <<_ACEOF
31446 /* confdefs.h. */
31447 _ACEOF
31448 cat confdefs.h >>conftest.$ac_ext
31449 cat >>conftest.$ac_ext <<_ACEOF
31450 /* end confdefs.h. */
31451
31452 /* Override any gcc2 internal prototype to avoid an error. */
31453 #ifdef __cplusplus
31454 extern "C"
31455 #endif
31456 /* We use char because int might match the return type of a gcc2
31457 builtin and then its argument prototype would still apply. */
31458 char esd_close ();
31459 int
31460 main ()
31461 {
31462 esd_close ();
31463 ;
31464 return 0;
31465 }
31466 _ACEOF
31467 rm -f conftest.$ac_objext conftest$ac_exeext
31468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31469 (eval $ac_link) 2>conftest.er1
31470 ac_status=$?
31471 grep -v '^ *+' conftest.er1 >conftest.err
31472 rm -f conftest.er1
31473 cat conftest.err >&5
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); } &&
31476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31478 (eval $ac_try) 2>&5
31479 ac_status=$?
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); }; } &&
31482 { ac_try='test -s conftest$ac_exeext'
31483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31484 (eval $ac_try) 2>&5
31485 ac_status=$?
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); }; }; then
31488 ac_cv_lib_esd_esd_close=yes
31489 else
31490 echo "$as_me: failed program was:" >&5
31491 sed 's/^/| /' conftest.$ac_ext >&5
31492
31493 ac_cv_lib_esd_esd_close=no
31494 fi
31495 rm -f conftest.err conftest.$ac_objext \
31496 conftest$ac_exeext conftest.$ac_ext
31497 LIBS=$ac_check_lib_save_LIBS
31498 fi
31499 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31500 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31501 if test $ac_cv_lib_esd_esd_close = yes; then
31502
31503
31504 for ac_header in esd.h
31505 do
31506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31508 echo "$as_me:$LINENO: checking for $ac_header" >&5
31509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31511 echo $ECHO_N "(cached) $ECHO_C" >&6
31512 fi
31513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31515 else
31516 # Is the header compilable?
31517 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31519 cat >conftest.$ac_ext <<_ACEOF
31520 /* confdefs.h. */
31521 _ACEOF
31522 cat confdefs.h >>conftest.$ac_ext
31523 cat >>conftest.$ac_ext <<_ACEOF
31524 /* end confdefs.h. */
31525 $ac_includes_default
31526 #include <$ac_header>
31527 _ACEOF
31528 rm -f conftest.$ac_objext
31529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31530 (eval $ac_compile) 2>conftest.er1
31531 ac_status=$?
31532 grep -v '^ *+' conftest.er1 >conftest.err
31533 rm -f conftest.er1
31534 cat conftest.err >&5
31535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536 (exit $ac_status); } &&
31537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31539 (eval $ac_try) 2>&5
31540 ac_status=$?
31541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542 (exit $ac_status); }; } &&
31543 { ac_try='test -s conftest.$ac_objext'
31544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31545 (eval $ac_try) 2>&5
31546 ac_status=$?
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); }; }; then
31549 ac_header_compiler=yes
31550 else
31551 echo "$as_me: failed program was:" >&5
31552 sed 's/^/| /' conftest.$ac_ext >&5
31553
31554 ac_header_compiler=no
31555 fi
31556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31558 echo "${ECHO_T}$ac_header_compiler" >&6
31559
31560 # Is the header present?
31561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31563 cat >conftest.$ac_ext <<_ACEOF
31564 /* confdefs.h. */
31565 _ACEOF
31566 cat confdefs.h >>conftest.$ac_ext
31567 cat >>conftest.$ac_ext <<_ACEOF
31568 /* end confdefs.h. */
31569 #include <$ac_header>
31570 _ACEOF
31571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31573 ac_status=$?
31574 grep -v '^ *+' conftest.er1 >conftest.err
31575 rm -f conftest.er1
31576 cat conftest.err >&5
31577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578 (exit $ac_status); } >/dev/null; then
31579 if test -s conftest.err; then
31580 ac_cpp_err=$ac_c_preproc_warn_flag
31581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31582 else
31583 ac_cpp_err=
31584 fi
31585 else
31586 ac_cpp_err=yes
31587 fi
31588 if test -z "$ac_cpp_err"; then
31589 ac_header_preproc=yes
31590 else
31591 echo "$as_me: failed program was:" >&5
31592 sed 's/^/| /' conftest.$ac_ext >&5
31593
31594 ac_header_preproc=no
31595 fi
31596 rm -f conftest.err conftest.$ac_ext
31597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31598 echo "${ECHO_T}$ac_header_preproc" >&6
31599
31600 # So? What about this header?
31601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31602 yes:no: )
31603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31607 ac_header_preproc=yes
31608 ;;
31609 no:yes:* )
31610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31622 (
31623 cat <<\_ASBOX
31624 ## ----------------------------------------- ##
31625 ## Report this to wx-dev@lists.wxwindows.org ##
31626 ## ----------------------------------------- ##
31627 _ASBOX
31628 ) |
31629 sed "s/^/$as_me: WARNING: /" >&2
31630 ;;
31631 esac
31632 echo "$as_me:$LINENO: checking for $ac_header" >&5
31633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31635 echo $ECHO_N "(cached) $ECHO_C" >&6
31636 else
31637 eval "$as_ac_Header=\$ac_header_preproc"
31638 fi
31639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31641
31642 fi
31643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31644 cat >>confdefs.h <<_ACEOF
31645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31646 _ACEOF
31647
31648 EXTRALIBS_ESD="-lesd"
31649
31650 fi
31651
31652 done
31653
31654
31655 fi
31656
31657
31658
31659 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31660 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31661 cat >conftest.$ac_ext <<_ACEOF
31662 /* confdefs.h. */
31663 _ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h. */
31667 #ifdef __linux__
31668 #include <linux/cdrom.h>
31669 #else
31670 /* For Solaris */
31671 #include <sys/cdio.h>
31672 #endif
31673
31674 int
31675 main ()
31676 {
31677 struct cdrom_tocentry entry, old_entry;
31678 ;
31679 return 0;
31680 }
31681 _ACEOF
31682 rm -f conftest.$ac_objext
31683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31684 (eval $ac_compile) 2>conftest.er1
31685 ac_status=$?
31686 grep -v '^ *+' conftest.er1 >conftest.err
31687 rm -f conftest.er1
31688 cat conftest.err >&5
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); } &&
31691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31693 (eval $ac_try) 2>&5
31694 ac_status=$?
31695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696 (exit $ac_status); }; } &&
31697 { ac_try='test -s conftest.$ac_objext'
31698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31699 (eval $ac_try) 2>&5
31700 ac_status=$?
31701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 (exit $ac_status); }; }; then
31703 echo "$as_me:$LINENO: result: yes" >&5
31704 echo "${ECHO_T}yes" >&6
31705 cat >>confdefs.h <<\_ACEOF
31706 #define HAVE_KNOWN_CDROM_INTERFACE 1
31707 _ACEOF
31708
31709 else
31710 echo "$as_me: failed program was:" >&5
31711 sed 's/^/| /' conftest.$ac_ext >&5
31712
31713 echo "$as_me:$LINENO: result: no" >&5
31714 echo "${ECHO_T}no" >&6
31715 fi
31716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31717
31718
31719 cat >confcache <<\_ACEOF
31720 # This file is a shell script that caches the results of configure
31721 # tests run on this system so they can be shared between configure
31722 # scripts and configure runs, see configure's option --config-cache.
31723 # It is not useful on other systems. If it contains results you don't
31724 # want to keep, you may remove or edit it.
31725 #
31726 # config.status only pays attention to the cache file if you give it
31727 # the --recheck option to rerun configure.
31728 #
31729 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31730 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31731 # following values.
31732
31733 _ACEOF
31734
31735 # The following way of writing the cache mishandles newlines in values,
31736 # but we know of no workaround that is simple, portable, and efficient.
31737 # So, don't put newlines in cache variables' values.
31738 # Ultrix sh set writes to stderr and can't be redirected directly,
31739 # and sets the high bit in the cache file unless we assign to the vars.
31740 {
31741 (set) 2>&1 |
31742 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31743 *ac_space=\ *)
31744 # `set' does not quote correctly, so add quotes (double-quote
31745 # substitution turns \\\\ into \\, and sed turns \\ into \).
31746 sed -n \
31747 "s/'/'\\\\''/g;
31748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31749 ;;
31750 *)
31751 # `set' quotes correctly as required by POSIX, so do not add quotes.
31752 sed -n \
31753 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31754 ;;
31755 esac;
31756 } |
31757 sed '
31758 t clear
31759 : clear
31760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31761 t end
31762 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31763 : end' >>confcache
31764 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31765 if test -w $cache_file; then
31766 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31767 cat confcache >$cache_file
31768 else
31769 echo "not updating unwritable cache $cache_file"
31770 fi
31771 fi
31772 rm -f confcache
31773
31774
31775 CPP_MT_FLAG=
31776 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31777
31778
31779 THREADS_LINK=
31780 THREADS_CFLAGS=
31781
31782 if test "$wxUSE_THREADS" = "yes" ; then
31783 if test "$USE_BEOS" = 1; then
31784 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31785 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31786 wxUSE_THREADS="no"
31787 fi
31788 fi
31789
31790 if test "$wxUSE_THREADS" = "yes" ; then
31791
31792
31793 THREAD_OPTS="-pthread"
31794 case "${host}" in
31795 *-*-solaris2* | *-*-sunos4* )
31796 if test "x$GCC" = "xyes"; then
31797 THREAD_OPTS="-pthreads $THREAD_OPTS"
31798 else
31799 THREAD_OPTS="-mt $THREAD_OPTS"
31800 fi
31801 ;;
31802 *-*-freebsd*)
31803 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31804 ;;
31805 *-*-darwin* | *-*-cygwin* )
31806 THREAD_OPTS=""
31807 ;;
31808 *-*-aix*)
31809 THREAD_OPTS="pthreads"
31810 ;;
31811 *-hp-hpux* )
31812 if test "x$GCC" != "xyes"; then
31813 THREAD_OPTS=""
31814 fi
31815 ;;
31816
31817 *-*-irix* )
31818 if test "x$GCC" = "xyes"; then
31819 THREAD_OPTS=""
31820 fi
31821 ;;
31822
31823 *-*-*UnixWare*)
31824 if test "x$GCC" != "xyes"; then
31825 THREAD_OPTS="-Ethread"
31826 fi
31827 ;;
31828 esac
31829
31830 THREAD_OPTS="$THREAD_OPTS pthread none"
31831
31832 THREADS_OK=no
31833 for flag in $THREAD_OPTS; do
31834 case $flag in
31835 none)
31836 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31837 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31838 ;;
31839
31840 -*)
31841 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31842 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31843 THREADS_CFLAGS="$flag"
31844 ;;
31845
31846 *)
31847 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31848 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31849 THREADS_LINK="-l$flag"
31850 ;;
31851 esac
31852
31853 save_LIBS="$LIBS"
31854 save_CFLAGS="$CFLAGS"
31855 LIBS="$THREADS_LINK $LIBS"
31856 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31857
31858 cat >conftest.$ac_ext <<_ACEOF
31859 /* confdefs.h. */
31860 _ACEOF
31861 cat confdefs.h >>conftest.$ac_ext
31862 cat >>conftest.$ac_ext <<_ACEOF
31863 /* end confdefs.h. */
31864 #include <pthread.h>
31865 int
31866 main ()
31867 {
31868 pthread_create(0,0,0,0);
31869 ;
31870 return 0;
31871 }
31872 _ACEOF
31873 rm -f conftest.$ac_objext conftest$ac_exeext
31874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31875 (eval $ac_link) 2>conftest.er1
31876 ac_status=$?
31877 grep -v '^ *+' conftest.er1 >conftest.err
31878 rm -f conftest.er1
31879 cat conftest.err >&5
31880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881 (exit $ac_status); } &&
31882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31884 (eval $ac_try) 2>&5
31885 ac_status=$?
31886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); }; } &&
31888 { ac_try='test -s conftest$ac_exeext'
31889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890 (eval $ac_try) 2>&5
31891 ac_status=$?
31892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893 (exit $ac_status); }; }; then
31894 THREADS_OK=yes
31895 else
31896 echo "$as_me: failed program was:" >&5
31897 sed 's/^/| /' conftest.$ac_ext >&5
31898
31899 fi
31900 rm -f conftest.err conftest.$ac_objext \
31901 conftest$ac_exeext conftest.$ac_ext
31902
31903 LIBS="$save_LIBS"
31904 CFLAGS="$save_CFLAGS"
31905
31906 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31907 echo "${ECHO_T}$THREADS_OK" >&6
31908 if test "x$THREADS_OK" = "xyes"; then
31909 break;
31910 fi
31911
31912 THREADS_LINK=""
31913 THREADS_CFLAGS=""
31914 done
31915
31916 if test "x$THREADS_OK" != "xyes"; then
31917 wxUSE_THREADS=no
31918 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31919 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31920 else
31921 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31922 LIBS="$THREADS_LINK $LIBS"
31923
31924 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31925 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31926 flag=no
31927 case "${host}" in
31928 *-aix*)
31929 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31930 flag="-D_THREAD_SAFE"
31931 ;;
31932 *-freebsd*)
31933 flag="-D_THREAD_SAFE"
31934 ;;
31935 *-hp-hpux* )
31936 flag="-D_REENTRANT"
31937 if test "x$GCC" != "xyes"; then
31938 flag="$flag -D_RWSTD_MULTI_THREAD"
31939 fi
31940 ;;
31941 *solaris* | alpha*-osf*)
31942 flag="-D_REENTRANT"
31943 ;;
31944 esac
31945 echo "$as_me:$LINENO: result: ${flag}" >&5
31946 echo "${ECHO_T}${flag}" >&6
31947 if test "x$flag" != xno; then
31948 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31949 fi
31950
31951 if test "x$THREADS_CFLAGS" != "x"; then
31952 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31953 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31954 fi
31955 fi
31956 fi
31957
31958 if test "$wxUSE_THREADS" = "yes" ; then
31959
31960 for ac_func in thr_setconcurrency
31961 do
31962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31963 echo "$as_me:$LINENO: checking for $ac_func" >&5
31964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31965 if eval "test \"\${$as_ac_var+set}\" = set"; then
31966 echo $ECHO_N "(cached) $ECHO_C" >&6
31967 else
31968 cat >conftest.$ac_ext <<_ACEOF
31969 /* confdefs.h. */
31970 _ACEOF
31971 cat confdefs.h >>conftest.$ac_ext
31972 cat >>conftest.$ac_ext <<_ACEOF
31973 /* end confdefs.h. */
31974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31976 #define $ac_func innocuous_$ac_func
31977
31978 /* System header to define __stub macros and hopefully few prototypes,
31979 which can conflict with char $ac_func (); below.
31980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31981 <limits.h> exists even on freestanding compilers. */
31982
31983 #ifdef __STDC__
31984 # include <limits.h>
31985 #else
31986 # include <assert.h>
31987 #endif
31988
31989 #undef $ac_func
31990
31991 /* Override any gcc2 internal prototype to avoid an error. */
31992 #ifdef __cplusplus
31993 extern "C"
31994 {
31995 #endif
31996 /* We use char because int might match the return type of a gcc2
31997 builtin and then its argument prototype would still apply. */
31998 char $ac_func ();
31999 /* The GNU C library defines this for functions which it implements
32000 to always fail with ENOSYS. Some functions are actually named
32001 something starting with __ and the normal name is an alias. */
32002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32003 choke me
32004 #else
32005 char (*f) () = $ac_func;
32006 #endif
32007 #ifdef __cplusplus
32008 }
32009 #endif
32010
32011 int
32012 main ()
32013 {
32014 return f != $ac_func;
32015 ;
32016 return 0;
32017 }
32018 _ACEOF
32019 rm -f conftest.$ac_objext conftest$ac_exeext
32020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32021 (eval $ac_link) 2>conftest.er1
32022 ac_status=$?
32023 grep -v '^ *+' conftest.er1 >conftest.err
32024 rm -f conftest.er1
32025 cat conftest.err >&5
32026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027 (exit $ac_status); } &&
32028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32030 (eval $ac_try) 2>&5
32031 ac_status=$?
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); }; } &&
32034 { ac_try='test -s conftest$ac_exeext'
32035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32036 (eval $ac_try) 2>&5
32037 ac_status=$?
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); }; }; then
32040 eval "$as_ac_var=yes"
32041 else
32042 echo "$as_me: failed program was:" >&5
32043 sed 's/^/| /' conftest.$ac_ext >&5
32044
32045 eval "$as_ac_var=no"
32046 fi
32047 rm -f conftest.err conftest.$ac_objext \
32048 conftest$ac_exeext conftest.$ac_ext
32049 fi
32050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32052 if test `eval echo '${'$as_ac_var'}'` = yes; then
32053 cat >>confdefs.h <<_ACEOF
32054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32055 _ACEOF
32056
32057 fi
32058 done
32059
32060
32061
32062 for ac_header in sched.h
32063 do
32064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32066 echo "$as_me:$LINENO: checking for $ac_header" >&5
32067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32069 echo $ECHO_N "(cached) $ECHO_C" >&6
32070 fi
32071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32073 else
32074 # Is the header compilable?
32075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32077 cat >conftest.$ac_ext <<_ACEOF
32078 /* confdefs.h. */
32079 _ACEOF
32080 cat confdefs.h >>conftest.$ac_ext
32081 cat >>conftest.$ac_ext <<_ACEOF
32082 /* end confdefs.h. */
32083 $ac_includes_default
32084 #include <$ac_header>
32085 _ACEOF
32086 rm -f conftest.$ac_objext
32087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32088 (eval $ac_compile) 2>conftest.er1
32089 ac_status=$?
32090 grep -v '^ *+' conftest.er1 >conftest.err
32091 rm -f conftest.er1
32092 cat conftest.err >&5
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); } &&
32095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32097 (eval $ac_try) 2>&5
32098 ac_status=$?
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); }; } &&
32101 { ac_try='test -s conftest.$ac_objext'
32102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32103 (eval $ac_try) 2>&5
32104 ac_status=$?
32105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106 (exit $ac_status); }; }; then
32107 ac_header_compiler=yes
32108 else
32109 echo "$as_me: failed program was:" >&5
32110 sed 's/^/| /' conftest.$ac_ext >&5
32111
32112 ac_header_compiler=no
32113 fi
32114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32116 echo "${ECHO_T}$ac_header_compiler" >&6
32117
32118 # Is the header present?
32119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32121 cat >conftest.$ac_ext <<_ACEOF
32122 /* confdefs.h. */
32123 _ACEOF
32124 cat confdefs.h >>conftest.$ac_ext
32125 cat >>conftest.$ac_ext <<_ACEOF
32126 /* end confdefs.h. */
32127 #include <$ac_header>
32128 _ACEOF
32129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32131 ac_status=$?
32132 grep -v '^ *+' conftest.er1 >conftest.err
32133 rm -f conftest.er1
32134 cat conftest.err >&5
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); } >/dev/null; then
32137 if test -s conftest.err; then
32138 ac_cpp_err=$ac_c_preproc_warn_flag
32139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32140 else
32141 ac_cpp_err=
32142 fi
32143 else
32144 ac_cpp_err=yes
32145 fi
32146 if test -z "$ac_cpp_err"; then
32147 ac_header_preproc=yes
32148 else
32149 echo "$as_me: failed program was:" >&5
32150 sed 's/^/| /' conftest.$ac_ext >&5
32151
32152 ac_header_preproc=no
32153 fi
32154 rm -f conftest.err conftest.$ac_ext
32155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32156 echo "${ECHO_T}$ac_header_preproc" >&6
32157
32158 # So? What about this header?
32159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32160 yes:no: )
32161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32165 ac_header_preproc=yes
32166 ;;
32167 no:yes:* )
32168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32180 (
32181 cat <<\_ASBOX
32182 ## ----------------------------------------- ##
32183 ## Report this to wx-dev@lists.wxwindows.org ##
32184 ## ----------------------------------------- ##
32185 _ASBOX
32186 ) |
32187 sed "s/^/$as_me: WARNING: /" >&2
32188 ;;
32189 esac
32190 echo "$as_me:$LINENO: checking for $ac_header" >&5
32191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32193 echo $ECHO_N "(cached) $ECHO_C" >&6
32194 else
32195 eval "$as_ac_Header=\$ac_header_preproc"
32196 fi
32197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32199
32200 fi
32201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32202 cat >>confdefs.h <<_ACEOF
32203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32204 _ACEOF
32205
32206 fi
32207
32208 done
32209
32210 if test "$ac_cv_header_sched_h" = "yes"; then
32211 echo "$as_me:$LINENO: checking for sched_yield" >&5
32212 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32213 if test "${ac_cv_func_sched_yield+set}" = set; then
32214 echo $ECHO_N "(cached) $ECHO_C" >&6
32215 else
32216 cat >conftest.$ac_ext <<_ACEOF
32217 /* confdefs.h. */
32218 _ACEOF
32219 cat confdefs.h >>conftest.$ac_ext
32220 cat >>conftest.$ac_ext <<_ACEOF
32221 /* end confdefs.h. */
32222 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32224 #define sched_yield innocuous_sched_yield
32225
32226 /* System header to define __stub macros and hopefully few prototypes,
32227 which can conflict with char sched_yield (); below.
32228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32229 <limits.h> exists even on freestanding compilers. */
32230
32231 #ifdef __STDC__
32232 # include <limits.h>
32233 #else
32234 # include <assert.h>
32235 #endif
32236
32237 #undef sched_yield
32238
32239 /* Override any gcc2 internal prototype to avoid an error. */
32240 #ifdef __cplusplus
32241 extern "C"
32242 {
32243 #endif
32244 /* We use char because int might match the return type of a gcc2
32245 builtin and then its argument prototype would still apply. */
32246 char sched_yield ();
32247 /* The GNU C library defines this for functions which it implements
32248 to always fail with ENOSYS. Some functions are actually named
32249 something starting with __ and the normal name is an alias. */
32250 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32251 choke me
32252 #else
32253 char (*f) () = sched_yield;
32254 #endif
32255 #ifdef __cplusplus
32256 }
32257 #endif
32258
32259 int
32260 main ()
32261 {
32262 return f != sched_yield;
32263 ;
32264 return 0;
32265 }
32266 _ACEOF
32267 rm -f conftest.$ac_objext conftest$ac_exeext
32268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32269 (eval $ac_link) 2>conftest.er1
32270 ac_status=$?
32271 grep -v '^ *+' conftest.er1 >conftest.err
32272 rm -f conftest.er1
32273 cat conftest.err >&5
32274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275 (exit $ac_status); } &&
32276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32278 (eval $ac_try) 2>&5
32279 ac_status=$?
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); }; } &&
32282 { ac_try='test -s conftest$ac_exeext'
32283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284 (eval $ac_try) 2>&5
32285 ac_status=$?
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); }; }; then
32288 ac_cv_func_sched_yield=yes
32289 else
32290 echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32292
32293 ac_cv_func_sched_yield=no
32294 fi
32295 rm -f conftest.err conftest.$ac_objext \
32296 conftest$ac_exeext conftest.$ac_ext
32297 fi
32298 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32299 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32300 if test $ac_cv_func_sched_yield = yes; then
32301 cat >>confdefs.h <<\_ACEOF
32302 #define HAVE_SCHED_YIELD 1
32303 _ACEOF
32304
32305 else
32306
32307 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32308 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32309 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32310 echo $ECHO_N "(cached) $ECHO_C" >&6
32311 else
32312 ac_check_lib_save_LIBS=$LIBS
32313 LIBS="-lposix4 $LIBS"
32314 cat >conftest.$ac_ext <<_ACEOF
32315 /* confdefs.h. */
32316 _ACEOF
32317 cat confdefs.h >>conftest.$ac_ext
32318 cat >>conftest.$ac_ext <<_ACEOF
32319 /* end confdefs.h. */
32320
32321 /* Override any gcc2 internal prototype to avoid an error. */
32322 #ifdef __cplusplus
32323 extern "C"
32324 #endif
32325 /* We use char because int might match the return type of a gcc2
32326 builtin and then its argument prototype would still apply. */
32327 char sched_yield ();
32328 int
32329 main ()
32330 {
32331 sched_yield ();
32332 ;
32333 return 0;
32334 }
32335 _ACEOF
32336 rm -f conftest.$ac_objext conftest$ac_exeext
32337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32338 (eval $ac_link) 2>conftest.er1
32339 ac_status=$?
32340 grep -v '^ *+' conftest.er1 >conftest.err
32341 rm -f conftest.er1
32342 cat conftest.err >&5
32343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344 (exit $ac_status); } &&
32345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32347 (eval $ac_try) 2>&5
32348 ac_status=$?
32349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350 (exit $ac_status); }; } &&
32351 { ac_try='test -s conftest$ac_exeext'
32352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32353 (eval $ac_try) 2>&5
32354 ac_status=$?
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); }; }; then
32357 ac_cv_lib_posix4_sched_yield=yes
32358 else
32359 echo "$as_me: failed program was:" >&5
32360 sed 's/^/| /' conftest.$ac_ext >&5
32361
32362 ac_cv_lib_posix4_sched_yield=no
32363 fi
32364 rm -f conftest.err conftest.$ac_objext \
32365 conftest$ac_exeext conftest.$ac_ext
32366 LIBS=$ac_check_lib_save_LIBS
32367 fi
32368 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32369 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32370 if test $ac_cv_lib_posix4_sched_yield = yes; then
32371 cat >>confdefs.h <<\_ACEOF
32372 #define HAVE_SCHED_YIELD 1
32373 _ACEOF
32374 POSIX4_LINK=" -lposix4"
32375 else
32376 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32377 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32378
32379 fi
32380
32381
32382
32383 fi
32384
32385 fi
32386
32387 HAVE_PRIOR_FUNCS=0
32388 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32389 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32390 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32391 echo $ECHO_N "(cached) $ECHO_C" >&6
32392 else
32393 cat >conftest.$ac_ext <<_ACEOF
32394 /* confdefs.h. */
32395 _ACEOF
32396 cat confdefs.h >>conftest.$ac_ext
32397 cat >>conftest.$ac_ext <<_ACEOF
32398 /* end confdefs.h. */
32399 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32401 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32402
32403 /* System header to define __stub macros and hopefully few prototypes,
32404 which can conflict with char pthread_attr_getschedpolicy (); below.
32405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32406 <limits.h> exists even on freestanding compilers. */
32407
32408 #ifdef __STDC__
32409 # include <limits.h>
32410 #else
32411 # include <assert.h>
32412 #endif
32413
32414 #undef pthread_attr_getschedpolicy
32415
32416 /* Override any gcc2 internal prototype to avoid an error. */
32417 #ifdef __cplusplus
32418 extern "C"
32419 {
32420 #endif
32421 /* We use char because int might match the return type of a gcc2
32422 builtin and then its argument prototype would still apply. */
32423 char pthread_attr_getschedpolicy ();
32424 /* The GNU C library defines this for functions which it implements
32425 to always fail with ENOSYS. Some functions are actually named
32426 something starting with __ and the normal name is an alias. */
32427 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32428 choke me
32429 #else
32430 char (*f) () = pthread_attr_getschedpolicy;
32431 #endif
32432 #ifdef __cplusplus
32433 }
32434 #endif
32435
32436 int
32437 main ()
32438 {
32439 return f != pthread_attr_getschedpolicy;
32440 ;
32441 return 0;
32442 }
32443 _ACEOF
32444 rm -f conftest.$ac_objext conftest$ac_exeext
32445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32446 (eval $ac_link) 2>conftest.er1
32447 ac_status=$?
32448 grep -v '^ *+' conftest.er1 >conftest.err
32449 rm -f conftest.er1
32450 cat conftest.err >&5
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); } &&
32453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32455 (eval $ac_try) 2>&5
32456 ac_status=$?
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); }; } &&
32459 { ac_try='test -s conftest$ac_exeext'
32460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32461 (eval $ac_try) 2>&5
32462 ac_status=$?
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); }; }; then
32465 ac_cv_func_pthread_attr_getschedpolicy=yes
32466 else
32467 echo "$as_me: failed program was:" >&5
32468 sed 's/^/| /' conftest.$ac_ext >&5
32469
32470 ac_cv_func_pthread_attr_getschedpolicy=no
32471 fi
32472 rm -f conftest.err conftest.$ac_objext \
32473 conftest$ac_exeext conftest.$ac_ext
32474 fi
32475 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32476 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32477 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32478 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32479 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32480 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32481 echo $ECHO_N "(cached) $ECHO_C" >&6
32482 else
32483 cat >conftest.$ac_ext <<_ACEOF
32484 /* confdefs.h. */
32485 _ACEOF
32486 cat confdefs.h >>conftest.$ac_ext
32487 cat >>conftest.$ac_ext <<_ACEOF
32488 /* end confdefs.h. */
32489 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32491 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32492
32493 /* System header to define __stub macros and hopefully few prototypes,
32494 which can conflict with char pthread_attr_setschedparam (); below.
32495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32496 <limits.h> exists even on freestanding compilers. */
32497
32498 #ifdef __STDC__
32499 # include <limits.h>
32500 #else
32501 # include <assert.h>
32502 #endif
32503
32504 #undef pthread_attr_setschedparam
32505
32506 /* Override any gcc2 internal prototype to avoid an error. */
32507 #ifdef __cplusplus
32508 extern "C"
32509 {
32510 #endif
32511 /* We use char because int might match the return type of a gcc2
32512 builtin and then its argument prototype would still apply. */
32513 char pthread_attr_setschedparam ();
32514 /* The GNU C library defines this for functions which it implements
32515 to always fail with ENOSYS. Some functions are actually named
32516 something starting with __ and the normal name is an alias. */
32517 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32518 choke me
32519 #else
32520 char (*f) () = pthread_attr_setschedparam;
32521 #endif
32522 #ifdef __cplusplus
32523 }
32524 #endif
32525
32526 int
32527 main ()
32528 {
32529 return f != pthread_attr_setschedparam;
32530 ;
32531 return 0;
32532 }
32533 _ACEOF
32534 rm -f conftest.$ac_objext conftest$ac_exeext
32535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32536 (eval $ac_link) 2>conftest.er1
32537 ac_status=$?
32538 grep -v '^ *+' conftest.er1 >conftest.err
32539 rm -f conftest.er1
32540 cat conftest.err >&5
32541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32542 (exit $ac_status); } &&
32543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32545 (eval $ac_try) 2>&5
32546 ac_status=$?
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); }; } &&
32549 { ac_try='test -s conftest$ac_exeext'
32550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32551 (eval $ac_try) 2>&5
32552 ac_status=$?
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); }; }; then
32555 ac_cv_func_pthread_attr_setschedparam=yes
32556 else
32557 echo "$as_me: failed program was:" >&5
32558 sed 's/^/| /' conftest.$ac_ext >&5
32559
32560 ac_cv_func_pthread_attr_setschedparam=no
32561 fi
32562 rm -f conftest.err conftest.$ac_objext \
32563 conftest$ac_exeext conftest.$ac_ext
32564 fi
32565 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32566 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32567 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32568 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32569 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32570 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32571 echo $ECHO_N "(cached) $ECHO_C" >&6
32572 else
32573 cat >conftest.$ac_ext <<_ACEOF
32574 /* confdefs.h. */
32575 _ACEOF
32576 cat confdefs.h >>conftest.$ac_ext
32577 cat >>conftest.$ac_ext <<_ACEOF
32578 /* end confdefs.h. */
32579 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32581 #define sched_get_priority_max innocuous_sched_get_priority_max
32582
32583 /* System header to define __stub macros and hopefully few prototypes,
32584 which can conflict with char sched_get_priority_max (); below.
32585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32586 <limits.h> exists even on freestanding compilers. */
32587
32588 #ifdef __STDC__
32589 # include <limits.h>
32590 #else
32591 # include <assert.h>
32592 #endif
32593
32594 #undef sched_get_priority_max
32595
32596 /* Override any gcc2 internal prototype to avoid an error. */
32597 #ifdef __cplusplus
32598 extern "C"
32599 {
32600 #endif
32601 /* We use char because int might match the return type of a gcc2
32602 builtin and then its argument prototype would still apply. */
32603 char sched_get_priority_max ();
32604 /* The GNU C library defines this for functions which it implements
32605 to always fail with ENOSYS. Some functions are actually named
32606 something starting with __ and the normal name is an alias. */
32607 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32608 choke me
32609 #else
32610 char (*f) () = sched_get_priority_max;
32611 #endif
32612 #ifdef __cplusplus
32613 }
32614 #endif
32615
32616 int
32617 main ()
32618 {
32619 return f != sched_get_priority_max;
32620 ;
32621 return 0;
32622 }
32623 _ACEOF
32624 rm -f conftest.$ac_objext conftest$ac_exeext
32625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32626 (eval $ac_link) 2>conftest.er1
32627 ac_status=$?
32628 grep -v '^ *+' conftest.er1 >conftest.err
32629 rm -f conftest.er1
32630 cat conftest.err >&5
32631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 (exit $ac_status); } &&
32633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32635 (eval $ac_try) 2>&5
32636 ac_status=$?
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); }; } &&
32639 { ac_try='test -s conftest$ac_exeext'
32640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32641 (eval $ac_try) 2>&5
32642 ac_status=$?
32643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); }; }; then
32645 ac_cv_func_sched_get_priority_max=yes
32646 else
32647 echo "$as_me: failed program was:" >&5
32648 sed 's/^/| /' conftest.$ac_ext >&5
32649
32650 ac_cv_func_sched_get_priority_max=no
32651 fi
32652 rm -f conftest.err conftest.$ac_objext \
32653 conftest$ac_exeext conftest.$ac_ext
32654 fi
32655 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32656 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32657 if test $ac_cv_func_sched_get_priority_max = yes; then
32658 HAVE_PRIOR_FUNCS=1
32659 else
32660 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32661 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32662 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32663 echo $ECHO_N "(cached) $ECHO_C" >&6
32664 else
32665 ac_check_lib_save_LIBS=$LIBS
32666 LIBS="-lposix4 $LIBS"
32667 cat >conftest.$ac_ext <<_ACEOF
32668 /* confdefs.h. */
32669 _ACEOF
32670 cat confdefs.h >>conftest.$ac_ext
32671 cat >>conftest.$ac_ext <<_ACEOF
32672 /* end confdefs.h. */
32673
32674 /* Override any gcc2 internal prototype to avoid an error. */
32675 #ifdef __cplusplus
32676 extern "C"
32677 #endif
32678 /* We use char because int might match the return type of a gcc2
32679 builtin and then its argument prototype would still apply. */
32680 char sched_get_priority_max ();
32681 int
32682 main ()
32683 {
32684 sched_get_priority_max ();
32685 ;
32686 return 0;
32687 }
32688 _ACEOF
32689 rm -f conftest.$ac_objext conftest$ac_exeext
32690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32691 (eval $ac_link) 2>conftest.er1
32692 ac_status=$?
32693 grep -v '^ *+' conftest.er1 >conftest.err
32694 rm -f conftest.er1
32695 cat conftest.err >&5
32696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); } &&
32698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32700 (eval $ac_try) 2>&5
32701 ac_status=$?
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); }; } &&
32704 { ac_try='test -s conftest$ac_exeext'
32705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32706 (eval $ac_try) 2>&5
32707 ac_status=$?
32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709 (exit $ac_status); }; }; then
32710 ac_cv_lib_posix4_sched_get_priority_max=yes
32711 else
32712 echo "$as_me: failed program was:" >&5
32713 sed 's/^/| /' conftest.$ac_ext >&5
32714
32715 ac_cv_lib_posix4_sched_get_priority_max=no
32716 fi
32717 rm -f conftest.err conftest.$ac_objext \
32718 conftest$ac_exeext conftest.$ac_ext
32719 LIBS=$ac_check_lib_save_LIBS
32720 fi
32721 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32722 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32723 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32724
32725 HAVE_PRIOR_FUNCS=1
32726 POSIX4_LINK=" -lposix4"
32727
32728 fi
32729
32730
32731 fi
32732
32733
32734 fi
32735
32736
32737 fi
32738
32739
32740 if test "$HAVE_PRIOR_FUNCS" = 1; then
32741 cat >>confdefs.h <<\_ACEOF
32742 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32743 _ACEOF
32744
32745 else
32746 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32747 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32748 fi
32749
32750 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32751 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32752 if test "${ac_cv_func_pthread_cancel+set}" = set; then
32753 echo $ECHO_N "(cached) $ECHO_C" >&6
32754 else
32755 cat >conftest.$ac_ext <<_ACEOF
32756 /* confdefs.h. */
32757 _ACEOF
32758 cat confdefs.h >>conftest.$ac_ext
32759 cat >>conftest.$ac_ext <<_ACEOF
32760 /* end confdefs.h. */
32761 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32763 #define pthread_cancel innocuous_pthread_cancel
32764
32765 /* System header to define __stub macros and hopefully few prototypes,
32766 which can conflict with char pthread_cancel (); below.
32767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32768 <limits.h> exists even on freestanding compilers. */
32769
32770 #ifdef __STDC__
32771 # include <limits.h>
32772 #else
32773 # include <assert.h>
32774 #endif
32775
32776 #undef pthread_cancel
32777
32778 /* Override any gcc2 internal prototype to avoid an error. */
32779 #ifdef __cplusplus
32780 extern "C"
32781 {
32782 #endif
32783 /* We use char because int might match the return type of a gcc2
32784 builtin and then its argument prototype would still apply. */
32785 char pthread_cancel ();
32786 /* The GNU C library defines this for functions which it implements
32787 to always fail with ENOSYS. Some functions are actually named
32788 something starting with __ and the normal name is an alias. */
32789 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32790 choke me
32791 #else
32792 char (*f) () = pthread_cancel;
32793 #endif
32794 #ifdef __cplusplus
32795 }
32796 #endif
32797
32798 int
32799 main ()
32800 {
32801 return f != pthread_cancel;
32802 ;
32803 return 0;
32804 }
32805 _ACEOF
32806 rm -f conftest.$ac_objext conftest$ac_exeext
32807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32808 (eval $ac_link) 2>conftest.er1
32809 ac_status=$?
32810 grep -v '^ *+' conftest.er1 >conftest.err
32811 rm -f conftest.er1
32812 cat conftest.err >&5
32813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814 (exit $ac_status); } &&
32815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32817 (eval $ac_try) 2>&5
32818 ac_status=$?
32819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820 (exit $ac_status); }; } &&
32821 { ac_try='test -s conftest$ac_exeext'
32822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32823 (eval $ac_try) 2>&5
32824 ac_status=$?
32825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826 (exit $ac_status); }; }; then
32827 ac_cv_func_pthread_cancel=yes
32828 else
32829 echo "$as_me: failed program was:" >&5
32830 sed 's/^/| /' conftest.$ac_ext >&5
32831
32832 ac_cv_func_pthread_cancel=no
32833 fi
32834 rm -f conftest.err conftest.$ac_objext \
32835 conftest$ac_exeext conftest.$ac_ext
32836 fi
32837 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32838 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32839 if test $ac_cv_func_pthread_cancel = yes; then
32840 cat >>confdefs.h <<\_ACEOF
32841 #define HAVE_PTHREAD_CANCEL 1
32842 _ACEOF
32843
32844 else
32845 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32846 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32847 fi
32848
32849
32850
32851
32852 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32853 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32854 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32855 echo $ECHO_N "(cached) $ECHO_C" >&6
32856 else
32857
32858 cat >conftest.$ac_ext <<_ACEOF
32859 /* confdefs.h. */
32860 _ACEOF
32861 cat confdefs.h >>conftest.$ac_ext
32862 cat >>conftest.$ac_ext <<_ACEOF
32863 /* end confdefs.h. */
32864 #include <pthread.h>
32865 int
32866 main ()
32867 {
32868
32869 pthread_mutexattr_t attr;
32870 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32871
32872 ;
32873 return 0;
32874 }
32875 _ACEOF
32876 rm -f conftest.$ac_objext
32877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32878 (eval $ac_compile) 2>conftest.er1
32879 ac_status=$?
32880 grep -v '^ *+' conftest.er1 >conftest.err
32881 rm -f conftest.er1
32882 cat conftest.err >&5
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); } &&
32885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32887 (eval $ac_try) 2>&5
32888 ac_status=$?
32889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890 (exit $ac_status); }; } &&
32891 { ac_try='test -s conftest.$ac_objext'
32892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32893 (eval $ac_try) 2>&5
32894 ac_status=$?
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); }; }; then
32897
32898 wx_cv_type_pthread_mutexattr_t=yes
32899
32900 else
32901 echo "$as_me: failed program was:" >&5
32902 sed 's/^/| /' conftest.$ac_ext >&5
32903
32904
32905 wx_cv_type_pthread_mutexattr_t=no
32906
32907
32908 fi
32909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32910
32911 fi
32912 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32913 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32914
32915 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32916 cat >>confdefs.h <<\_ACEOF
32917 #define HAVE_PTHREAD_MUTEXATTR_T 1
32918 _ACEOF
32919
32920 else
32921 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32922 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32923 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32924 echo $ECHO_N "(cached) $ECHO_C" >&6
32925 else
32926
32927 cat >conftest.$ac_ext <<_ACEOF
32928 /* confdefs.h. */
32929 _ACEOF
32930 cat confdefs.h >>conftest.$ac_ext
32931 cat >>conftest.$ac_ext <<_ACEOF
32932 /* end confdefs.h. */
32933 #include <pthread.h>
32934 int
32935 main ()
32936 {
32937
32938 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32939
32940 ;
32941 return 0;
32942 }
32943 _ACEOF
32944 rm -f conftest.$ac_objext
32945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32946 (eval $ac_compile) 2>conftest.er1
32947 ac_status=$?
32948 grep -v '^ *+' conftest.er1 >conftest.err
32949 rm -f conftest.er1
32950 cat conftest.err >&5
32951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952 (exit $ac_status); } &&
32953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32955 (eval $ac_try) 2>&5
32956 ac_status=$?
32957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958 (exit $ac_status); }; } &&
32959 { ac_try='test -s conftest.$ac_objext'
32960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32961 (eval $ac_try) 2>&5
32962 ac_status=$?
32963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964 (exit $ac_status); }; }; then
32965
32966 wx_cv_type_pthread_rec_mutex_init=yes
32967
32968 else
32969 echo "$as_me: failed program was:" >&5
32970 sed 's/^/| /' conftest.$ac_ext >&5
32971
32972
32973 wx_cv_type_pthread_rec_mutex_init=no
32974
32975
32976 fi
32977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32978
32979 fi
32980 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32981 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
32982 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
32983 cat >>confdefs.h <<\_ACEOF
32984 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
32985 _ACEOF
32986
32987 else
32988 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32989 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
32990 fi
32991 fi
32992 fi
32993
32994 else
32995 if test "$wxUSE_THREADS" = "yes" ; then
32996 case "${host}" in
32997 *-*-mingw32* )
32998 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32999 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33000 if test "${wx_cv_cflags_mthread+set}" = set; then
33001 echo $ECHO_N "(cached) $ECHO_C" >&6
33002 else
33003
33004 CFLAGS_OLD="$CFLAGS"
33005 CFLAGS="$CFLAGS -mthreads"
33006 cat >conftest.$ac_ext <<_ACEOF
33007 /* confdefs.h. */
33008 _ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h. */
33012
33013 int
33014 main ()
33015 {
33016
33017 ;
33018 return 0;
33019 }
33020 _ACEOF
33021 rm -f conftest.$ac_objext
33022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33023 (eval $ac_compile) 2>conftest.er1
33024 ac_status=$?
33025 grep -v '^ *+' conftest.er1 >conftest.err
33026 rm -f conftest.er1
33027 cat conftest.err >&5
33028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029 (exit $ac_status); } &&
33030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33032 (eval $ac_try) 2>&5
33033 ac_status=$?
33034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035 (exit $ac_status); }; } &&
33036 { ac_try='test -s conftest.$ac_objext'
33037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33038 (eval $ac_try) 2>&5
33039 ac_status=$?
33040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041 (exit $ac_status); }; }; then
33042 wx_cv_cflags_mthread=yes
33043 else
33044 echo "$as_me: failed program was:" >&5
33045 sed 's/^/| /' conftest.$ac_ext >&5
33046
33047 wx_cv_cflags_mthread=no
33048
33049 fi
33050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33051
33052
33053 fi
33054 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33055 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33056
33057 if test "$wx_cv_cflags_mthread" = "yes"; then
33058 CXXFLAGS="$CXXFLAGS -mthreads"
33059 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33060 LDFLAGS="$LDFLAGS -mthreads"
33061 else
33062 CFLAGS="$CFLAGS_OLD"
33063 fi
33064 ;;
33065 *-pc-os2*emx )
33066 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33067 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33068 LDFLAGS="$LDFLAGS -Zmt"
33069 ;;
33070 esac
33071 fi
33072 fi
33073
33074 if test "$wxUSE_THREADS" = "yes"; then
33075 cat >>confdefs.h <<\_ACEOF
33076 #define wxUSE_THREADS 1
33077 _ACEOF
33078
33079
33080 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33081 else
33082 if test "$ac_cv_func_strtok_r" = "yes"; then
33083 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33084 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33085 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33086 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33087 echo "$as_me:$LINENO: result: yes" >&5
33088 echo "${ECHO_T}yes" >&6
33089 else
33090 echo "$as_me:$LINENO: result: no" >&5
33091 echo "${ECHO_T}no" >&6
33092 fi
33093 fi
33094 fi
33095
33096 if test "$WXGTK20" = 1 ; then
33097 cat >>confdefs.h <<_ACEOF
33098 #define __WXGTK20__ $WXGTK20
33099 _ACEOF
33100
33101 WXGTK12=1
33102 fi
33103
33104 if test "$WXGTK12" = 1 ; then
33105 cat >>confdefs.h <<_ACEOF
33106 #define __WXGTK12__ $WXGTK12
33107 _ACEOF
33108
33109 fi
33110
33111 if test "$WXGTK127" = 1 ; then
33112 cat >>confdefs.h <<_ACEOF
33113 #define __WXGTK127__ $WXGTK127
33114 _ACEOF
33115
33116 fi
33117
33118 if test "$WXGPE" = 1 ; then
33119 cat >>confdefs.h <<_ACEOF
33120 #define __WXGPE__ $WXGPE
33121 _ACEOF
33122
33123 fi
33124
33125 WXDEBUG=
33126
33127 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33128 WXDEBUG="-g"
33129 wxUSE_OPTIMISE=no
33130 fi
33131
33132 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33133 wxUSE_DEBUG_INFO=yes
33134 WXDEBUG="-ggdb"
33135 fi
33136
33137 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33138 cat >>confdefs.h <<\_ACEOF
33139 #define WXDEBUG 1
33140 _ACEOF
33141
33142 WXDEBUG_DEFINE="-D__WXDEBUG__"
33143 else
33144 if test "$wxUSE_GTK" = 1 ; then
33145 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33146 fi
33147 fi
33148
33149 if test "$wxUSE_MEM_TRACING" = "yes" ; then
33150 cat >>confdefs.h <<\_ACEOF
33151 #define wxUSE_MEMORY_TRACING 1
33152 _ACEOF
33153
33154 cat >>confdefs.h <<\_ACEOF
33155 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33156 _ACEOF
33157
33158 cat >>confdefs.h <<\_ACEOF
33159 #define wxUSE_DEBUG_NEW_ALWAYS 1
33160 _ACEOF
33161
33162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33163 fi
33164
33165 if test "$wxUSE_DMALLOC" = "yes" ; then
33166 DMALLOC_LIBS="-ldmalloc"
33167 fi
33168
33169 PROFILE=
33170 if test "$wxUSE_PROFILE" = "yes" ; then
33171 PROFILE=" -pg"
33172 fi
33173
33174 CODE_GEN_FLAGS=
33175 CODE_GEN_FLAGS_CXX=
33176 if test "$GCC" = "yes" ; then
33177 if test "$wxUSE_NO_RTTI" = "yes" ; then
33178 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33179 fi
33180 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33181 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33182 fi
33183 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33184 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33185 fi
33186
33187 case "${host}" in
33188 powerpc*-*-aix* )
33189 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33190 ;;
33191 *-hppa* )
33192 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33193 ;;
33194 esac
33195 fi
33196
33197 OPTIMISE=
33198 if test "$wxUSE_OPTIMISE" = "no" ; then
33199 if test "$GCC" = yes ; then
33200 OPTIMISE="-O0"
33201 fi
33202 else
33203 if test "$GCC" = yes ; then
33204 OPTIMISE="-O2"
33205
33206 case "${host}" in
33207 i586-*-*|i686-*-* )
33208 OPTIMISE="${OPTIMISE} "
33209 ;;
33210 esac
33211 else
33212 OPTIMISE="-O"
33213 fi
33214 fi
33215
33216
33217 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33218 cat >>confdefs.h <<\_ACEOF
33219 #define WXWIN_COMPATIBILITY_2_2 1
33220 _ACEOF
33221
33222
33223 WXWIN_COMPATIBILITY_2_4="yes"
33224 fi
33225
33226 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33227 cat >>confdefs.h <<\_ACEOF
33228 #define WXWIN_COMPATIBILITY_2_4 1
33229 _ACEOF
33230
33231 fi
33232
33233
33234 if test "$wxUSE_GUI" = "yes"; then
33235 cat >>confdefs.h <<\_ACEOF
33236 #define wxUSE_GUI 1
33237 _ACEOF
33238
33239
33240 else
33241 cat >>confdefs.h <<\_ACEOF
33242 #define wxUSE_NOGUI 1
33243 _ACEOF
33244
33245 fi
33246
33247
33248 if test "$wxUSE_UNIX" = "yes"; then
33249 cat >>confdefs.h <<\_ACEOF
33250 #define wxUSE_UNIX 1
33251 _ACEOF
33252
33253 fi
33254
33255
33256 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33257
33258 HAVE_DL_FUNCS=0
33259 HAVE_SHL_FUNCS=0
33260 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33261 if test "$USE_DARWIN" = 1; then
33262 HAVE_DL_FUNCS=1
33263 else
33264
33265 for ac_func in dlopen
33266 do
33267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33268 echo "$as_me:$LINENO: checking for $ac_func" >&5
33269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33270 if eval "test \"\${$as_ac_var+set}\" = set"; then
33271 echo $ECHO_N "(cached) $ECHO_C" >&6
33272 else
33273 cat >conftest.$ac_ext <<_ACEOF
33274 /* confdefs.h. */
33275 _ACEOF
33276 cat confdefs.h >>conftest.$ac_ext
33277 cat >>conftest.$ac_ext <<_ACEOF
33278 /* end confdefs.h. */
33279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33281 #define $ac_func innocuous_$ac_func
33282
33283 /* System header to define __stub macros and hopefully few prototypes,
33284 which can conflict with char $ac_func (); below.
33285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33286 <limits.h> exists even on freestanding compilers. */
33287
33288 #ifdef __STDC__
33289 # include <limits.h>
33290 #else
33291 # include <assert.h>
33292 #endif
33293
33294 #undef $ac_func
33295
33296 /* Override any gcc2 internal prototype to avoid an error. */
33297 #ifdef __cplusplus
33298 extern "C"
33299 {
33300 #endif
33301 /* We use char because int might match the return type of a gcc2
33302 builtin and then its argument prototype would still apply. */
33303 char $ac_func ();
33304 /* The GNU C library defines this for functions which it implements
33305 to always fail with ENOSYS. Some functions are actually named
33306 something starting with __ and the normal name is an alias. */
33307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33308 choke me
33309 #else
33310 char (*f) () = $ac_func;
33311 #endif
33312 #ifdef __cplusplus
33313 }
33314 #endif
33315
33316 int
33317 main ()
33318 {
33319 return f != $ac_func;
33320 ;
33321 return 0;
33322 }
33323 _ACEOF
33324 rm -f conftest.$ac_objext conftest$ac_exeext
33325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33326 (eval $ac_link) 2>conftest.er1
33327 ac_status=$?
33328 grep -v '^ *+' conftest.er1 >conftest.err
33329 rm -f conftest.er1
33330 cat conftest.err >&5
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); } &&
33333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33335 (eval $ac_try) 2>&5
33336 ac_status=$?
33337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 (exit $ac_status); }; } &&
33339 { ac_try='test -s conftest$ac_exeext'
33340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33341 (eval $ac_try) 2>&5
33342 ac_status=$?
33343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344 (exit $ac_status); }; }; then
33345 eval "$as_ac_var=yes"
33346 else
33347 echo "$as_me: failed program was:" >&5
33348 sed 's/^/| /' conftest.$ac_ext >&5
33349
33350 eval "$as_ac_var=no"
33351 fi
33352 rm -f conftest.err conftest.$ac_objext \
33353 conftest$ac_exeext conftest.$ac_ext
33354 fi
33355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33357 if test `eval echo '${'$as_ac_var'}'` = yes; then
33358 cat >>confdefs.h <<_ACEOF
33359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33360 _ACEOF
33361
33362 cat >>confdefs.h <<\_ACEOF
33363 #define HAVE_DLOPEN 1
33364 _ACEOF
33365
33366 HAVE_DL_FUNCS=1
33367
33368 else
33369
33370 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33371 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33372 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33373 echo $ECHO_N "(cached) $ECHO_C" >&6
33374 else
33375 ac_check_lib_save_LIBS=$LIBS
33376 LIBS="-ldl $LIBS"
33377 cat >conftest.$ac_ext <<_ACEOF
33378 /* confdefs.h. */
33379 _ACEOF
33380 cat confdefs.h >>conftest.$ac_ext
33381 cat >>conftest.$ac_ext <<_ACEOF
33382 /* end confdefs.h. */
33383
33384 /* Override any gcc2 internal prototype to avoid an error. */
33385 #ifdef __cplusplus
33386 extern "C"
33387 #endif
33388 /* We use char because int might match the return type of a gcc2
33389 builtin and then its argument prototype would still apply. */
33390 char dlopen ();
33391 int
33392 main ()
33393 {
33394 dlopen ();
33395 ;
33396 return 0;
33397 }
33398 _ACEOF
33399 rm -f conftest.$ac_objext conftest$ac_exeext
33400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33401 (eval $ac_link) 2>conftest.er1
33402 ac_status=$?
33403 grep -v '^ *+' conftest.er1 >conftest.err
33404 rm -f conftest.er1
33405 cat conftest.err >&5
33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407 (exit $ac_status); } &&
33408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
33414 { ac_try='test -s conftest$ac_exeext'
33415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33416 (eval $ac_try) 2>&5
33417 ac_status=$?
33418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419 (exit $ac_status); }; }; then
33420 ac_cv_lib_dl_dlopen=yes
33421 else
33422 echo "$as_me: failed program was:" >&5
33423 sed 's/^/| /' conftest.$ac_ext >&5
33424
33425 ac_cv_lib_dl_dlopen=no
33426 fi
33427 rm -f conftest.err conftest.$ac_objext \
33428 conftest$ac_exeext conftest.$ac_ext
33429 LIBS=$ac_check_lib_save_LIBS
33430 fi
33431 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33432 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33433 if test $ac_cv_lib_dl_dlopen = yes; then
33434
33435 cat >>confdefs.h <<\_ACEOF
33436 #define HAVE_DLOPEN 1
33437 _ACEOF
33438
33439 HAVE_DL_FUNCS=1
33440 DL_LINK=" -ldl$DL_LINK"
33441
33442 else
33443
33444
33445 for ac_func in shl_load
33446 do
33447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33448 echo "$as_me:$LINENO: checking for $ac_func" >&5
33449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33450 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33461 #define $ac_func innocuous_$ac_func
33462
33463 /* System header to define __stub macros and hopefully few prototypes,
33464 which can conflict with char $ac_func (); below.
33465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33466 <limits.h> exists even on freestanding compilers. */
33467
33468 #ifdef __STDC__
33469 # include <limits.h>
33470 #else
33471 # include <assert.h>
33472 #endif
33473
33474 #undef $ac_func
33475
33476 /* Override any gcc2 internal prototype to avoid an error. */
33477 #ifdef __cplusplus
33478 extern "C"
33479 {
33480 #endif
33481 /* We use char because int might match the return type of a gcc2
33482 builtin and then its argument prototype would still apply. */
33483 char $ac_func ();
33484 /* The GNU C library defines this for functions which it implements
33485 to always fail with ENOSYS. Some functions are actually named
33486 something starting with __ and the normal name is an alias. */
33487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33488 choke me
33489 #else
33490 char (*f) () = $ac_func;
33491 #endif
33492 #ifdef __cplusplus
33493 }
33494 #endif
33495
33496 int
33497 main ()
33498 {
33499 return f != $ac_func;
33500 ;
33501 return 0;
33502 }
33503 _ACEOF
33504 rm -f conftest.$ac_objext conftest$ac_exeext
33505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33506 (eval $ac_link) 2>conftest.er1
33507 ac_status=$?
33508 grep -v '^ *+' conftest.er1 >conftest.err
33509 rm -f conftest.er1
33510 cat conftest.err >&5
33511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512 (exit $ac_status); } &&
33513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33515 (eval $ac_try) 2>&5
33516 ac_status=$?
33517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 (exit $ac_status); }; } &&
33519 { ac_try='test -s conftest$ac_exeext'
33520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33521 (eval $ac_try) 2>&5
33522 ac_status=$?
33523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); }; }; then
33525 eval "$as_ac_var=yes"
33526 else
33527 echo "$as_me: failed program was:" >&5
33528 sed 's/^/| /' conftest.$ac_ext >&5
33529
33530 eval "$as_ac_var=no"
33531 fi
33532 rm -f conftest.err conftest.$ac_objext \
33533 conftest$ac_exeext conftest.$ac_ext
33534 fi
33535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33537 if test `eval echo '${'$as_ac_var'}'` = yes; then
33538 cat >>confdefs.h <<_ACEOF
33539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33540 _ACEOF
33541
33542 cat >>confdefs.h <<\_ACEOF
33543 #define HAVE_SHL_LOAD 1
33544 _ACEOF
33545
33546 HAVE_SHL_FUNCS=1
33547
33548 else
33549
33550 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33551 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33552 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33553 echo $ECHO_N "(cached) $ECHO_C" >&6
33554 else
33555 ac_check_lib_save_LIBS=$LIBS
33556 LIBS="-lshl_load $LIBS"
33557 cat >conftest.$ac_ext <<_ACEOF
33558 /* confdefs.h. */
33559 _ACEOF
33560 cat confdefs.h >>conftest.$ac_ext
33561 cat >>conftest.$ac_ext <<_ACEOF
33562 /* end confdefs.h. */
33563
33564 /* Override any gcc2 internal prototype to avoid an error. */
33565 #ifdef __cplusplus
33566 extern "C"
33567 #endif
33568 /* We use char because int might match the return type of a gcc2
33569 builtin and then its argument prototype would still apply. */
33570 char dld ();
33571 int
33572 main ()
33573 {
33574 dld ();
33575 ;
33576 return 0;
33577 }
33578 _ACEOF
33579 rm -f conftest.$ac_objext conftest$ac_exeext
33580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33581 (eval $ac_link) 2>conftest.er1
33582 ac_status=$?
33583 grep -v '^ *+' conftest.er1 >conftest.err
33584 rm -f conftest.er1
33585 cat conftest.err >&5
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); } &&
33588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33590 (eval $ac_try) 2>&5
33591 ac_status=$?
33592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33593 (exit $ac_status); }; } &&
33594 { ac_try='test -s conftest$ac_exeext'
33595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33596 (eval $ac_try) 2>&5
33597 ac_status=$?
33598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); }; }; then
33600 ac_cv_lib_shl_load_dld=yes
33601 else
33602 echo "$as_me: failed program was:" >&5
33603 sed 's/^/| /' conftest.$ac_ext >&5
33604
33605 ac_cv_lib_shl_load_dld=no
33606 fi
33607 rm -f conftest.err conftest.$ac_objext \
33608 conftest$ac_exeext conftest.$ac_ext
33609 LIBS=$ac_check_lib_save_LIBS
33610 fi
33611 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33612 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33613 if test $ac_cv_lib_shl_load_dld = yes; then
33614
33615 HAVE_SHL_FUNCS=1
33616 DL_LINK=" -ldld$DL_LINK"
33617
33618 fi
33619
33620
33621 fi
33622 done
33623
33624
33625 fi
33626
33627
33628 fi
33629 done
33630
33631
33632 if test "$HAVE_DL_FUNCS" = 1; then
33633
33634 for ac_func in dlerror
33635 do
33636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33637 echo "$as_me:$LINENO: checking for $ac_func" >&5
33638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33639 if eval "test \"\${$as_ac_var+set}\" = set"; then
33640 echo $ECHO_N "(cached) $ECHO_C" >&6
33641 else
33642 cat >conftest.$ac_ext <<_ACEOF
33643 /* confdefs.h. */
33644 _ACEOF
33645 cat confdefs.h >>conftest.$ac_ext
33646 cat >>conftest.$ac_ext <<_ACEOF
33647 /* end confdefs.h. */
33648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33650 #define $ac_func innocuous_$ac_func
33651
33652 /* System header to define __stub macros and hopefully few prototypes,
33653 which can conflict with char $ac_func (); below.
33654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33655 <limits.h> exists even on freestanding compilers. */
33656
33657 #ifdef __STDC__
33658 # include <limits.h>
33659 #else
33660 # include <assert.h>
33661 #endif
33662
33663 #undef $ac_func
33664
33665 /* Override any gcc2 internal prototype to avoid an error. */
33666 #ifdef __cplusplus
33667 extern "C"
33668 {
33669 #endif
33670 /* We use char because int might match the return type of a gcc2
33671 builtin and then its argument prototype would still apply. */
33672 char $ac_func ();
33673 /* The GNU C library defines this for functions which it implements
33674 to always fail with ENOSYS. Some functions are actually named
33675 something starting with __ and the normal name is an alias. */
33676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33677 choke me
33678 #else
33679 char (*f) () = $ac_func;
33680 #endif
33681 #ifdef __cplusplus
33682 }
33683 #endif
33684
33685 int
33686 main ()
33687 {
33688 return f != $ac_func;
33689 ;
33690 return 0;
33691 }
33692 _ACEOF
33693 rm -f conftest.$ac_objext conftest$ac_exeext
33694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33695 (eval $ac_link) 2>conftest.er1
33696 ac_status=$?
33697 grep -v '^ *+' conftest.er1 >conftest.err
33698 rm -f conftest.er1
33699 cat conftest.err >&5
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); } &&
33702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33704 (eval $ac_try) 2>&5
33705 ac_status=$?
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); }; } &&
33708 { ac_try='test -s conftest$ac_exeext'
33709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33710 (eval $ac_try) 2>&5
33711 ac_status=$?
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); }; }; then
33714 eval "$as_ac_var=yes"
33715 else
33716 echo "$as_me: failed program was:" >&5
33717 sed 's/^/| /' conftest.$ac_ext >&5
33718
33719 eval "$as_ac_var=no"
33720 fi
33721 rm -f conftest.err conftest.$ac_objext \
33722 conftest$ac_exeext conftest.$ac_ext
33723 fi
33724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33726 if test `eval echo '${'$as_ac_var'}'` = yes; then
33727 cat >>confdefs.h <<_ACEOF
33728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33729 _ACEOF
33730 cat >>confdefs.h <<\_ACEOF
33731 #define HAVE_DLERROR 1
33732 _ACEOF
33733
33734 else
33735
33736 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33737 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33738 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33739 echo $ECHO_N "(cached) $ECHO_C" >&6
33740 else
33741 ac_check_lib_save_LIBS=$LIBS
33742 LIBS="-ldl $LIBS"
33743 cat >conftest.$ac_ext <<_ACEOF
33744 /* confdefs.h. */
33745 _ACEOF
33746 cat confdefs.h >>conftest.$ac_ext
33747 cat >>conftest.$ac_ext <<_ACEOF
33748 /* end confdefs.h. */
33749
33750 /* Override any gcc2 internal prototype to avoid an error. */
33751 #ifdef __cplusplus
33752 extern "C"
33753 #endif
33754 /* We use char because int might match the return type of a gcc2
33755 builtin and then its argument prototype would still apply. */
33756 char dlerror ();
33757 int
33758 main ()
33759 {
33760 dlerror ();
33761 ;
33762 return 0;
33763 }
33764 _ACEOF
33765 rm -f conftest.$ac_objext conftest$ac_exeext
33766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33767 (eval $ac_link) 2>conftest.er1
33768 ac_status=$?
33769 grep -v '^ *+' conftest.er1 >conftest.err
33770 rm -f conftest.er1
33771 cat conftest.err >&5
33772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33773 (exit $ac_status); } &&
33774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33776 (eval $ac_try) 2>&5
33777 ac_status=$?
33778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779 (exit $ac_status); }; } &&
33780 { ac_try='test -s conftest$ac_exeext'
33781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33782 (eval $ac_try) 2>&5
33783 ac_status=$?
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); }; }; then
33786 ac_cv_lib_dl_dlerror=yes
33787 else
33788 echo "$as_me: failed program was:" >&5
33789 sed 's/^/| /' conftest.$ac_ext >&5
33790
33791 ac_cv_lib_dl_dlerror=no
33792 fi
33793 rm -f conftest.err conftest.$ac_objext \
33794 conftest$ac_exeext conftest.$ac_ext
33795 LIBS=$ac_check_lib_save_LIBS
33796 fi
33797 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33798 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33799 if test $ac_cv_lib_dl_dlerror = yes; then
33800 cat >>confdefs.h <<\_ACEOF
33801 #define HAVE_DLERROR 1
33802 _ACEOF
33803
33804 fi
33805
33806
33807
33808 fi
33809 done
33810
33811 fi
33812 fi
33813
33814 if test "$HAVE_DL_FUNCS" = 0; then
33815 if test "$HAVE_SHL_FUNCS" = 0; then
33816 if test "$USE_UNIX" = 1; then
33817 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33818 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33819 wxUSE_DYNAMIC_LOADER=no
33820 wxUSE_DYNLIB_CLASS=no
33821 else
33822 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33823 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33824 fi
33825 fi
33826 fi
33827 fi
33828 fi
33829
33830 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33831 cat >>confdefs.h <<\_ACEOF
33832 #define wxUSE_DYNAMIC_LOADER 1
33833 _ACEOF
33834
33835 fi
33836 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33837 cat >>confdefs.h <<\_ACEOF
33838 #define wxUSE_DYNLIB_CLASS 1
33839 _ACEOF
33840
33841 fi
33842
33843
33844
33845 if test "$wxUSE_PLUGINS" = "yes" ; then
33846 if test "$wxUSE_SHARED" = "no" ; then
33847 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33848 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33849 wxUSE_PLUGINS=no
33850 fi
33851 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33852 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33853 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33854 wxUSE_PLUGINS=no
33855 fi
33856 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33857 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33858 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33859 wxUSE_PLUGINS=no
33860 fi
33861 if test "$wxUSE_PLUGINS" = "yes" ; then
33862 cat >>confdefs.h <<\_ACEOF
33863 #define wxUSE_PLUGINS 1
33864 _ACEOF
33865
33866 fi
33867 fi
33868
33869
33870 if test "$wxUSE_STL" = "yes"; then
33871 cat >>confdefs.h <<\_ACEOF
33872 #define wxUSE_STL 1
33873 _ACEOF
33874
33875 fi
33876
33877 if test "$wxUSE_APPLE_IEEE" = "yes"; then
33878 cat >>confdefs.h <<\_ACEOF
33879 #define wxUSE_APPLE_IEEE 1
33880 _ACEOF
33881
33882 fi
33883
33884 if test "$wxUSE_TIMER" = "yes"; then
33885 cat >>confdefs.h <<\_ACEOF
33886 #define wxUSE_TIMER 1
33887 _ACEOF
33888
33889 fi
33890
33891 WITH_PLUGIN_SDL=0
33892 if test "$wxUSE_SOUND" = "yes"; then
33893 if test "$USE_UNIX" = "1" ; then
33894
33895 for ac_header in sys/soundcard.h
33896 do
33897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33899 echo "$as_me:$LINENO: checking for $ac_header" >&5
33900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33902 echo $ECHO_N "(cached) $ECHO_C" >&6
33903 fi
33904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33906 else
33907 # Is the header compilable?
33908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33910 cat >conftest.$ac_ext <<_ACEOF
33911 /* confdefs.h. */
33912 _ACEOF
33913 cat confdefs.h >>conftest.$ac_ext
33914 cat >>conftest.$ac_ext <<_ACEOF
33915 /* end confdefs.h. */
33916 $ac_includes_default
33917 #include <$ac_header>
33918 _ACEOF
33919 rm -f conftest.$ac_objext
33920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33921 (eval $ac_compile) 2>conftest.er1
33922 ac_status=$?
33923 grep -v '^ *+' conftest.er1 >conftest.err
33924 rm -f conftest.er1
33925 cat conftest.err >&5
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); } &&
33928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33930 (eval $ac_try) 2>&5
33931 ac_status=$?
33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); }; } &&
33934 { ac_try='test -s conftest.$ac_objext'
33935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33936 (eval $ac_try) 2>&5
33937 ac_status=$?
33938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939 (exit $ac_status); }; }; then
33940 ac_header_compiler=yes
33941 else
33942 echo "$as_me: failed program was:" >&5
33943 sed 's/^/| /' conftest.$ac_ext >&5
33944
33945 ac_header_compiler=no
33946 fi
33947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33949 echo "${ECHO_T}$ac_header_compiler" >&6
33950
33951 # Is the header present?
33952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33954 cat >conftest.$ac_ext <<_ACEOF
33955 /* confdefs.h. */
33956 _ACEOF
33957 cat confdefs.h >>conftest.$ac_ext
33958 cat >>conftest.$ac_ext <<_ACEOF
33959 /* end confdefs.h. */
33960 #include <$ac_header>
33961 _ACEOF
33962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33964 ac_status=$?
33965 grep -v '^ *+' conftest.er1 >conftest.err
33966 rm -f conftest.er1
33967 cat conftest.err >&5
33968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969 (exit $ac_status); } >/dev/null; then
33970 if test -s conftest.err; then
33971 ac_cpp_err=$ac_c_preproc_warn_flag
33972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33973 else
33974 ac_cpp_err=
33975 fi
33976 else
33977 ac_cpp_err=yes
33978 fi
33979 if test -z "$ac_cpp_err"; then
33980 ac_header_preproc=yes
33981 else
33982 echo "$as_me: failed program was:" >&5
33983 sed 's/^/| /' conftest.$ac_ext >&5
33984
33985 ac_header_preproc=no
33986 fi
33987 rm -f conftest.err conftest.$ac_ext
33988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33989 echo "${ECHO_T}$ac_header_preproc" >&6
33990
33991 # So? What about this header?
33992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33993 yes:no: )
33994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33998 ac_header_preproc=yes
33999 ;;
34000 no:yes:* )
34001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34013 (
34014 cat <<\_ASBOX
34015 ## ----------------------------------------- ##
34016 ## Report this to wx-dev@lists.wxwindows.org ##
34017 ## ----------------------------------------- ##
34018 _ASBOX
34019 ) |
34020 sed "s/^/$as_me: WARNING: /" >&2
34021 ;;
34022 esac
34023 echo "$as_me:$LINENO: checking for $ac_header" >&5
34024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34026 echo $ECHO_N "(cached) $ECHO_C" >&6
34027 else
34028 eval "$as_ac_Header=\$ac_header_preproc"
34029 fi
34030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34032
34033 fi
34034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34035 cat >>confdefs.h <<_ACEOF
34036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34037 _ACEOF
34038
34039 fi
34040
34041 done
34042
34043
34044 if test "$wxUSE_LIBSDL" != "no"; then
34045
34046 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34047 if test "${with_sdl_prefix+set}" = set; then
34048 withval="$with_sdl_prefix"
34049 sdl_prefix="$withval"
34050 else
34051 sdl_prefix=""
34052 fi;
34053
34054 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34055 if test "${with_sdl_exec_prefix+set}" = set; then
34056 withval="$with_sdl_exec_prefix"
34057 sdl_exec_prefix="$withval"
34058 else
34059 sdl_exec_prefix=""
34060 fi;
34061 # Check whether --enable-sdltest or --disable-sdltest was given.
34062 if test "${enable_sdltest+set}" = set; then
34063 enableval="$enable_sdltest"
34064
34065 else
34066 enable_sdltest=yes
34067 fi;
34068
34069 if test x$sdl_exec_prefix != x ; then
34070 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34071 if test x${SDL_CONFIG+set} != xset ; then
34072 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34073 fi
34074 fi
34075 if test x$sdl_prefix != x ; then
34076 sdl_args="$sdl_args --prefix=$sdl_prefix"
34077 if test x${SDL_CONFIG+set} != xset ; then
34078 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34079 fi
34080 fi
34081
34082
34083 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34084 # Extract the first word of "sdl-config", so it can be a program name with args.
34085 set dummy sdl-config; ac_word=$2
34086 echo "$as_me:$LINENO: checking for $ac_word" >&5
34087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34088 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34089 echo $ECHO_N "(cached) $ECHO_C" >&6
34090 else
34091 case $SDL_CONFIG in
34092 [\\/]* | ?:[\\/]*)
34093 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34094 ;;
34095 *)
34096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34097 for as_dir in $PATH
34098 do
34099 IFS=$as_save_IFS
34100 test -z "$as_dir" && as_dir=.
34101 for ac_exec_ext in '' $ac_executable_extensions; do
34102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34103 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34105 break 2
34106 fi
34107 done
34108 done
34109
34110 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34111 ;;
34112 esac
34113 fi
34114 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34115
34116 if test -n "$SDL_CONFIG"; then
34117 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34118 echo "${ECHO_T}$SDL_CONFIG" >&6
34119 else
34120 echo "$as_me:$LINENO: result: no" >&5
34121 echo "${ECHO_T}no" >&6
34122 fi
34123
34124 min_sdl_version=1.2.0
34125 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34126 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34127 no_sdl=""
34128 if test "$SDL_CONFIG" = "no" ; then
34129 no_sdl=yes
34130 else
34131 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34132 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34133
34134 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34135 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34136 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34137 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34138 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34139 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34140 if test "x$enable_sdltest" = "xyes" ; then
34141 ac_save_CFLAGS="$CFLAGS"
34142 ac_save_LIBS="$LIBS"
34143 CFLAGS="$CFLAGS $SDL_CFLAGS"
34144 LIBS="$LIBS $SDL_LIBS"
34145 rm -f conf.sdltest
34146 if test "$cross_compiling" = yes; then
34147 echo $ac_n "cross compiling; assumed OK... $ac_c"
34148 else
34149 cat >conftest.$ac_ext <<_ACEOF
34150 /* confdefs.h. */
34151 _ACEOF
34152 cat confdefs.h >>conftest.$ac_ext
34153 cat >>conftest.$ac_ext <<_ACEOF
34154 /* end confdefs.h. */
34155
34156 #include <stdio.h>
34157 #include <stdlib.h>
34158 #include <string.h>
34159 #include "SDL.h"
34160
34161 char*
34162 my_strdup (char *str)
34163 {
34164 char *new_str;
34165
34166 if (str)
34167 {
34168 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34169 strcpy (new_str, str);
34170 }
34171 else
34172 new_str = NULL;
34173
34174 return new_str;
34175 }
34176
34177 int main (int argc, char *argv[])
34178 {
34179 int major, minor, micro;
34180 char *tmp_version;
34181
34182 /* This hangs on some systems (?)
34183 system ("touch conf.sdltest");
34184 */
34185 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34186
34187 /* HP/UX 9 (%@#!) writes to sscanf strings */
34188 tmp_version = my_strdup("$min_sdl_version");
34189 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34190 printf("%s, bad version string\n", "$min_sdl_version");
34191 exit(1);
34192 }
34193
34194 if (($sdl_major_version > major) ||
34195 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34196 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34197 {
34198 return 0;
34199 }
34200 else
34201 {
34202 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34203 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34204 printf("*** best to upgrade to the required version.\n");
34205 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34206 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34207 printf("*** config.cache before re-running configure\n");
34208 return 1;
34209 }
34210 }
34211
34212
34213 _ACEOF
34214 rm -f conftest$ac_exeext
34215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34216 (eval $ac_link) 2>&5
34217 ac_status=$?
34218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34221 (eval $ac_try) 2>&5
34222 ac_status=$?
34223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34224 (exit $ac_status); }; }; then
34225 :
34226 else
34227 echo "$as_me: program exited with status $ac_status" >&5
34228 echo "$as_me: failed program was:" >&5
34229 sed 's/^/| /' conftest.$ac_ext >&5
34230
34231 ( exit $ac_status )
34232 no_sdl=yes
34233 fi
34234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34235 fi
34236 CFLAGS="$ac_save_CFLAGS"
34237 LIBS="$ac_save_LIBS"
34238 fi
34239 fi
34240 if test "x$no_sdl" = x ; then
34241 echo "$as_me:$LINENO: result: yes" >&5
34242 echo "${ECHO_T}yes" >&6
34243
34244 EXTRALIBS_SDL="$SDL_LIBS"
34245 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34246 cat >>confdefs.h <<\_ACEOF
34247 #define wxUSE_LIBSDL 1
34248 _ACEOF
34249
34250
34251 else
34252 echo "$as_me:$LINENO: result: no" >&5
34253 echo "${ECHO_T}no" >&6
34254 if test "$SDL_CONFIG" = "no" ; then
34255 echo "*** The sdl-config script installed by SDL could not be found"
34256 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34257 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34258 echo "*** full path to sdl-config."
34259 else
34260 if test -f conf.sdltest ; then
34261 :
34262 else
34263 echo "*** Could not run SDL test program, checking why..."
34264 CFLAGS="$CFLAGS $SDL_CFLAGS"
34265 LIBS="$LIBS $SDL_LIBS"
34266 cat >conftest.$ac_ext <<_ACEOF
34267 /* confdefs.h. */
34268 _ACEOF
34269 cat confdefs.h >>conftest.$ac_ext
34270 cat >>conftest.$ac_ext <<_ACEOF
34271 /* end confdefs.h. */
34272
34273 #include <stdio.h>
34274 #include "SDL.h"
34275
34276 int main(int argc, char *argv[])
34277 { return 0; }
34278 #undef main
34279 #define main K_and_R_C_main
34280
34281 int
34282 main ()
34283 {
34284 return 0;
34285 ;
34286 return 0;
34287 }
34288 _ACEOF
34289 rm -f conftest.$ac_objext conftest$ac_exeext
34290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34291 (eval $ac_link) 2>conftest.er1
34292 ac_status=$?
34293 grep -v '^ *+' conftest.er1 >conftest.err
34294 rm -f conftest.er1
34295 cat conftest.err >&5
34296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34297 (exit $ac_status); } &&
34298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34300 (eval $ac_try) 2>&5
34301 ac_status=$?
34302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34303 (exit $ac_status); }; } &&
34304 { ac_try='test -s conftest$ac_exeext'
34305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34306 (eval $ac_try) 2>&5
34307 ac_status=$?
34308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34309 (exit $ac_status); }; }; then
34310 echo "*** The test program compiled, but did not run. This usually means"
34311 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34312 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34313 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34314 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34315 echo "*** is required on your system"
34316 echo "***"
34317 echo "*** If you have an old version installed, it is best to remove it, although"
34318 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34319 else
34320 echo "$as_me: failed program was:" >&5
34321 sed 's/^/| /' conftest.$ac_ext >&5
34322
34323 echo "*** The test program failed to compile or link. See the file config.log for the"
34324 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34325 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34326 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34327 fi
34328 rm -f conftest.err conftest.$ac_objext \
34329 conftest$ac_exeext conftest.$ac_ext
34330 CFLAGS="$ac_save_CFLAGS"
34331 LIBS="$ac_save_LIBS"
34332 fi
34333 fi
34334 SDL_CFLAGS=""
34335 SDL_LIBS=""
34336 wxUSE_LIBSDL="no"
34337 fi
34338
34339
34340 rm -f conf.sdltest
34341
34342 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34343 WITH_PLUGIN_SDL=1
34344 fi
34345 fi
34346 fi
34347
34348 cat >>confdefs.h <<\_ACEOF
34349 #define wxUSE_SOUND 1
34350 _ACEOF
34351
34352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34353 fi
34354
34355 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34356 cat >>confdefs.h <<\_ACEOF
34357 #define wxUSE_CMDLINE_PARSER 1
34358 _ACEOF
34359
34360 fi
34361
34362 if test "$wxUSE_STOPWATCH" = "yes"; then
34363 cat >>confdefs.h <<\_ACEOF
34364 #define wxUSE_STOPWATCH 1
34365 _ACEOF
34366
34367 fi
34368
34369 if test "$wxUSE_DATETIME" = "yes"; then
34370 cat >>confdefs.h <<\_ACEOF
34371 #define wxUSE_DATETIME 1
34372 _ACEOF
34373
34374 fi
34375
34376 if test "$wxUSE_FILE" = "yes"; then
34377 cat >>confdefs.h <<\_ACEOF
34378 #define wxUSE_FILE 1
34379 _ACEOF
34380
34381 fi
34382
34383 if test "$wxUSE_FFILE" = "yes"; then
34384 cat >>confdefs.h <<\_ACEOF
34385 #define wxUSE_FFILE 1
34386 _ACEOF
34387
34388 fi
34389
34390 if test "$wxUSE_FILESYSTEM" = "yes"; then
34391 cat >>confdefs.h <<\_ACEOF
34392 #define wxUSE_FILESYSTEM 1
34393 _ACEOF
34394
34395 fi
34396
34397 if test "$wxUSE_FS_ZIP" = "yes"; then
34398 cat >>confdefs.h <<\_ACEOF
34399 #define wxUSE_FS_ZIP 1
34400 _ACEOF
34401
34402 fi
34403
34404 if test "$wxUSE_ZIPSTREAM" = "yes"; then
34405 cat >>confdefs.h <<\_ACEOF
34406 #define wxUSE_ZIPSTREAM 1
34407 _ACEOF
34408
34409 fi
34410
34411 if test "$wxUSE_GZSTREAM" = "yes"; then
34412 cat >>confdefs.h <<\_ACEOF
34413 #define wxUSE_GZSTREAM 1
34414 _ACEOF
34415
34416 fi
34417
34418 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34419 cat >>confdefs.h <<\_ACEOF
34420 #define wxUSE_ON_FATAL_EXCEPTION 1
34421 _ACEOF
34422
34423 fi
34424
34425 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34426 cat >>confdefs.h <<\_ACEOF
34427 #define wxUSE_SNGLINST_CHECKER 1
34428 _ACEOF
34429
34430 fi
34431
34432 if test "$wxUSE_BUSYINFO" = "yes"; then
34433 cat >>confdefs.h <<\_ACEOF
34434 #define wxUSE_BUSYINFO 1
34435 _ACEOF
34436
34437 fi
34438
34439 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34440 cat >>confdefs.h <<\_ACEOF
34441 #define wxUSE_STD_IOSTREAM 1
34442 _ACEOF
34443
34444 fi
34445
34446 if test "$wxUSE_TEXTBUFFER" = "yes"; then
34447 cat >>confdefs.h <<\_ACEOF
34448 #define wxUSE_TEXTBUFFER 1
34449 _ACEOF
34450
34451 fi
34452
34453 if test "$wxUSE_TEXTFILE" = "yes"; then
34454 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34455 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34456 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34457 else
34458 cat >>confdefs.h <<\_ACEOF
34459 #define wxUSE_TEXTFILE 1
34460 _ACEOF
34461
34462 fi
34463 fi
34464
34465 if test "$wxUSE_CONFIG" = "yes" ; then
34466 if test "$wxUSE_TEXTFILE" != "yes"; then
34467 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34468 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34469 else
34470 cat >>confdefs.h <<\_ACEOF
34471 #define wxUSE_CONFIG 1
34472 _ACEOF
34473
34474 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34475 fi
34476 fi
34477
34478 if test "$wxUSE_INTL" = "yes" ; then
34479 if test "$wxUSE_FILE" != "yes"; then
34480 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34481 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34482 else
34483 cat >>confdefs.h <<\_ACEOF
34484 #define wxUSE_INTL 1
34485 _ACEOF
34486
34487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34488 GUIDIST="$GUIDIST INTL_DIST"
34489 fi
34490 fi
34491
34492 if test "$wxUSE_LOG" = "yes"; then
34493 cat >>confdefs.h <<\_ACEOF
34494 #define wxUSE_LOG 1
34495 _ACEOF
34496
34497
34498 if test "$wxUSE_LOGGUI" = "yes"; then
34499 cat >>confdefs.h <<\_ACEOF
34500 #define wxUSE_LOGGUI 1
34501 _ACEOF
34502
34503 fi
34504
34505 if test "$wxUSE_LOGWINDOW" = "yes"; then
34506 cat >>confdefs.h <<\_ACEOF
34507 #define wxUSE_LOGWINDOW 1
34508 _ACEOF
34509
34510 fi
34511
34512 if test "$wxUSE_LOGDIALOG" = "yes"; then
34513 cat >>confdefs.h <<\_ACEOF
34514 #define wxUSE_LOG_DIALOG 1
34515 _ACEOF
34516
34517 fi
34518 fi
34519
34520 if test "$wxUSE_LONGLONG" = "yes"; then
34521 cat >>confdefs.h <<\_ACEOF
34522 #define wxUSE_LONGLONG 1
34523 _ACEOF
34524
34525 fi
34526
34527 if test "$wxUSE_GEOMETRY" = "yes"; then
34528 cat >>confdefs.h <<\_ACEOF
34529 #define wxUSE_GEOMETRY 1
34530 _ACEOF
34531
34532 fi
34533
34534 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34535 cat >>confdefs.h <<\_ACEOF
34536 #define wxUSE_DIALUP_MANAGER 1
34537 _ACEOF
34538
34539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34540 fi
34541
34542 if test "$wxUSE_STREAMS" = "yes" ; then
34543 cat >>confdefs.h <<\_ACEOF
34544 #define wxUSE_STREAMS 1
34545 _ACEOF
34546
34547 fi
34548
34549
34550 if test "$wxUSE_DATETIME" = "yes"; then
34551
34552 for ac_func in strptime
34553 do
34554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34555 echo "$as_me:$LINENO: checking for $ac_func" >&5
34556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34557 if eval "test \"\${$as_ac_var+set}\" = set"; then
34558 echo $ECHO_N "(cached) $ECHO_C" >&6
34559 else
34560 cat >conftest.$ac_ext <<_ACEOF
34561 /* confdefs.h. */
34562 _ACEOF
34563 cat confdefs.h >>conftest.$ac_ext
34564 cat >>conftest.$ac_ext <<_ACEOF
34565 /* end confdefs.h. */
34566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34568 #define $ac_func innocuous_$ac_func
34569
34570 /* System header to define __stub macros and hopefully few prototypes,
34571 which can conflict with char $ac_func (); below.
34572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34573 <limits.h> exists even on freestanding compilers. */
34574
34575 #ifdef __STDC__
34576 # include <limits.h>
34577 #else
34578 # include <assert.h>
34579 #endif
34580
34581 #undef $ac_func
34582
34583 /* Override any gcc2 internal prototype to avoid an error. */
34584 #ifdef __cplusplus
34585 extern "C"
34586 {
34587 #endif
34588 /* We use char because int might match the return type of a gcc2
34589 builtin and then its argument prototype would still apply. */
34590 char $ac_func ();
34591 /* The GNU C library defines this for functions which it implements
34592 to always fail with ENOSYS. Some functions are actually named
34593 something starting with __ and the normal name is an alias. */
34594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34595 choke me
34596 #else
34597 char (*f) () = $ac_func;
34598 #endif
34599 #ifdef __cplusplus
34600 }
34601 #endif
34602
34603 int
34604 main ()
34605 {
34606 return f != $ac_func;
34607 ;
34608 return 0;
34609 }
34610 _ACEOF
34611 rm -f conftest.$ac_objext conftest$ac_exeext
34612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34613 (eval $ac_link) 2>conftest.er1
34614 ac_status=$?
34615 grep -v '^ *+' conftest.er1 >conftest.err
34616 rm -f conftest.er1
34617 cat conftest.err >&5
34618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 (exit $ac_status); } &&
34620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34622 (eval $ac_try) 2>&5
34623 ac_status=$?
34624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625 (exit $ac_status); }; } &&
34626 { ac_try='test -s conftest$ac_exeext'
34627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34628 (eval $ac_try) 2>&5
34629 ac_status=$?
34630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631 (exit $ac_status); }; }; then
34632 eval "$as_ac_var=yes"
34633 else
34634 echo "$as_me: failed program was:" >&5
34635 sed 's/^/| /' conftest.$ac_ext >&5
34636
34637 eval "$as_ac_var=no"
34638 fi
34639 rm -f conftest.err conftest.$ac_objext \
34640 conftest$ac_exeext conftest.$ac_ext
34641 fi
34642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34644 if test `eval echo '${'$as_ac_var'}'` = yes; then
34645 cat >>confdefs.h <<_ACEOF
34646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34647 _ACEOF
34648
34649 fi
34650 done
34651
34652
34653 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34654 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34655 if test "${wx_cv_var_timezone+set}" = set; then
34656 echo $ECHO_N "(cached) $ECHO_C" >&6
34657 else
34658
34659 cat >conftest.$ac_ext <<_ACEOF
34660 /* confdefs.h. */
34661 _ACEOF
34662 cat confdefs.h >>conftest.$ac_ext
34663 cat >>conftest.$ac_ext <<_ACEOF
34664 /* end confdefs.h. */
34665
34666 #include <time.h>
34667
34668 int
34669 main ()
34670 {
34671
34672 int tz;
34673 tz = timezone;
34674
34675 ;
34676 return 0;
34677 }
34678 _ACEOF
34679 rm -f conftest.$ac_objext
34680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34681 (eval $ac_compile) 2>conftest.er1
34682 ac_status=$?
34683 grep -v '^ *+' conftest.er1 >conftest.err
34684 rm -f conftest.er1
34685 cat conftest.err >&5
34686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687 (exit $ac_status); } &&
34688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34690 (eval $ac_try) 2>&5
34691 ac_status=$?
34692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34693 (exit $ac_status); }; } &&
34694 { ac_try='test -s conftest.$ac_objext'
34695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34696 (eval $ac_try) 2>&5
34697 ac_status=$?
34698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699 (exit $ac_status); }; }; then
34700
34701 wx_cv_var_timezone=timezone
34702
34703 else
34704 echo "$as_me: failed program was:" >&5
34705 sed 's/^/| /' conftest.$ac_ext >&5
34706
34707
34708 cat >conftest.$ac_ext <<_ACEOF
34709 /* confdefs.h. */
34710 _ACEOF
34711 cat confdefs.h >>conftest.$ac_ext
34712 cat >>conftest.$ac_ext <<_ACEOF
34713 /* end confdefs.h. */
34714
34715 #include <time.h>
34716
34717 int
34718 main ()
34719 {
34720
34721 int tz;
34722 tz = _timezone;
34723
34724 ;
34725 return 0;
34726 }
34727 _ACEOF
34728 rm -f conftest.$ac_objext
34729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34730 (eval $ac_compile) 2>conftest.er1
34731 ac_status=$?
34732 grep -v '^ *+' conftest.er1 >conftest.err
34733 rm -f conftest.er1
34734 cat conftest.err >&5
34735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736 (exit $ac_status); } &&
34737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34739 (eval $ac_try) 2>&5
34740 ac_status=$?
34741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); }; } &&
34743 { ac_try='test -s conftest.$ac_objext'
34744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34745 (eval $ac_try) 2>&5
34746 ac_status=$?
34747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748 (exit $ac_status); }; }; then
34749
34750 wx_cv_var_timezone=_timezone
34751
34752 else
34753 echo "$as_me: failed program was:" >&5
34754 sed 's/^/| /' conftest.$ac_ext >&5
34755
34756
34757 cat >conftest.$ac_ext <<_ACEOF
34758 /* confdefs.h. */
34759 _ACEOF
34760 cat confdefs.h >>conftest.$ac_ext
34761 cat >>conftest.$ac_ext <<_ACEOF
34762 /* end confdefs.h. */
34763
34764 #include <time.h>
34765
34766 int
34767 main ()
34768 {
34769
34770 int tz;
34771 tz = __timezone;
34772
34773 ;
34774 return 0;
34775 }
34776 _ACEOF
34777 rm -f conftest.$ac_objext
34778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34779 (eval $ac_compile) 2>conftest.er1
34780 ac_status=$?
34781 grep -v '^ *+' conftest.er1 >conftest.err
34782 rm -f conftest.er1
34783 cat conftest.err >&5
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); } &&
34786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34788 (eval $ac_try) 2>&5
34789 ac_status=$?
34790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791 (exit $ac_status); }; } &&
34792 { ac_try='test -s conftest.$ac_objext'
34793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34794 (eval $ac_try) 2>&5
34795 ac_status=$?
34796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797 (exit $ac_status); }; }; then
34798
34799 wx_cv_var_timezone=__timezone
34800
34801 else
34802 echo "$as_me: failed program was:" >&5
34803 sed 's/^/| /' conftest.$ac_ext >&5
34804
34805
34806 if test "$USE_DOS" = 0 ; then
34807 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34808 echo "$as_me: WARNING: no timezone variable" >&2;}
34809 fi
34810
34811
34812 fi
34813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34814
34815
34816 fi
34817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34818
34819
34820 fi
34821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34822
34823
34824 fi
34825 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34826 echo "${ECHO_T}$wx_cv_var_timezone" >&6
34827
34828 if test "x$wx_cv_var_timezone" != x ; then
34829 cat >>confdefs.h <<_ACEOF
34830 #define WX_TIMEZONE $wx_cv_var_timezone
34831 _ACEOF
34832
34833 fi
34834
34835
34836 for ac_func in localtime
34837 do
34838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34839 echo "$as_me:$LINENO: checking for $ac_func" >&5
34840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34841 if eval "test \"\${$as_ac_var+set}\" = set"; then
34842 echo $ECHO_N "(cached) $ECHO_C" >&6
34843 else
34844 cat >conftest.$ac_ext <<_ACEOF
34845 /* confdefs.h. */
34846 _ACEOF
34847 cat confdefs.h >>conftest.$ac_ext
34848 cat >>conftest.$ac_ext <<_ACEOF
34849 /* end confdefs.h. */
34850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34852 #define $ac_func innocuous_$ac_func
34853
34854 /* System header to define __stub macros and hopefully few prototypes,
34855 which can conflict with char $ac_func (); below.
34856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34857 <limits.h> exists even on freestanding compilers. */
34858
34859 #ifdef __STDC__
34860 # include <limits.h>
34861 #else
34862 # include <assert.h>
34863 #endif
34864
34865 #undef $ac_func
34866
34867 /* Override any gcc2 internal prototype to avoid an error. */
34868 #ifdef __cplusplus
34869 extern "C"
34870 {
34871 #endif
34872 /* We use char because int might match the return type of a gcc2
34873 builtin and then its argument prototype would still apply. */
34874 char $ac_func ();
34875 /* The GNU C library defines this for functions which it implements
34876 to always fail with ENOSYS. Some functions are actually named
34877 something starting with __ and the normal name is an alias. */
34878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34879 choke me
34880 #else
34881 char (*f) () = $ac_func;
34882 #endif
34883 #ifdef __cplusplus
34884 }
34885 #endif
34886
34887 int
34888 main ()
34889 {
34890 return f != $ac_func;
34891 ;
34892 return 0;
34893 }
34894 _ACEOF
34895 rm -f conftest.$ac_objext conftest$ac_exeext
34896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34897 (eval $ac_link) 2>conftest.er1
34898 ac_status=$?
34899 grep -v '^ *+' conftest.er1 >conftest.err
34900 rm -f conftest.er1
34901 cat conftest.err >&5
34902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903 (exit $ac_status); } &&
34904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34906 (eval $ac_try) 2>&5
34907 ac_status=$?
34908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909 (exit $ac_status); }; } &&
34910 { ac_try='test -s conftest$ac_exeext'
34911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34912 (eval $ac_try) 2>&5
34913 ac_status=$?
34914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34915 (exit $ac_status); }; }; then
34916 eval "$as_ac_var=yes"
34917 else
34918 echo "$as_me: failed program was:" >&5
34919 sed 's/^/| /' conftest.$ac_ext >&5
34920
34921 eval "$as_ac_var=no"
34922 fi
34923 rm -f conftest.err conftest.$ac_objext \
34924 conftest$ac_exeext conftest.$ac_ext
34925 fi
34926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34928 if test `eval echo '${'$as_ac_var'}'` = yes; then
34929 cat >>confdefs.h <<_ACEOF
34930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34931 _ACEOF
34932
34933 fi
34934 done
34935
34936
34937 if test "$ac_cv_func_localtime" = "yes"; then
34938 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34939 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34940 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34941 echo $ECHO_N "(cached) $ECHO_C" >&6
34942 else
34943
34944 cat >conftest.$ac_ext <<_ACEOF
34945 /* confdefs.h. */
34946 _ACEOF
34947 cat confdefs.h >>conftest.$ac_ext
34948 cat >>conftest.$ac_ext <<_ACEOF
34949 /* end confdefs.h. */
34950
34951 #include <time.h>
34952
34953 int
34954 main ()
34955 {
34956
34957 struct tm tm;
34958 tm.tm_gmtoff++;
34959
34960 ;
34961 return 0;
34962 }
34963 _ACEOF
34964 rm -f conftest.$ac_objext
34965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34966 (eval $ac_compile) 2>conftest.er1
34967 ac_status=$?
34968 grep -v '^ *+' conftest.er1 >conftest.err
34969 rm -f conftest.er1
34970 cat conftest.err >&5
34971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34972 (exit $ac_status); } &&
34973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34975 (eval $ac_try) 2>&5
34976 ac_status=$?
34977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34978 (exit $ac_status); }; } &&
34979 { ac_try='test -s conftest.$ac_objext'
34980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34981 (eval $ac_try) 2>&5
34982 ac_status=$?
34983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984 (exit $ac_status); }; }; then
34985
34986 wx_cv_struct_tm_has_gmtoff=yes
34987
34988 else
34989 echo "$as_me: failed program was:" >&5
34990 sed 's/^/| /' conftest.$ac_ext >&5
34991
34992 wx_cv_struct_tm_has_gmtoff=no
34993
34994 fi
34995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34996
34997 fi
34998 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
34999 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35000 fi
35001
35002 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35003 cat >>confdefs.h <<\_ACEOF
35004 #define WX_GMTOFF_IN_TM 1
35005 _ACEOF
35006
35007 fi
35008
35009
35010
35011 for ac_func in gettimeofday ftime
35012 do
35013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35014 echo "$as_me:$LINENO: checking for $ac_func" >&5
35015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35016 if eval "test \"\${$as_ac_var+set}\" = set"; then
35017 echo $ECHO_N "(cached) $ECHO_C" >&6
35018 else
35019 cat >conftest.$ac_ext <<_ACEOF
35020 /* confdefs.h. */
35021 _ACEOF
35022 cat confdefs.h >>conftest.$ac_ext
35023 cat >>conftest.$ac_ext <<_ACEOF
35024 /* end confdefs.h. */
35025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35027 #define $ac_func innocuous_$ac_func
35028
35029 /* System header to define __stub macros and hopefully few prototypes,
35030 which can conflict with char $ac_func (); below.
35031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35032 <limits.h> exists even on freestanding compilers. */
35033
35034 #ifdef __STDC__
35035 # include <limits.h>
35036 #else
35037 # include <assert.h>
35038 #endif
35039
35040 #undef $ac_func
35041
35042 /* Override any gcc2 internal prototype to avoid an error. */
35043 #ifdef __cplusplus
35044 extern "C"
35045 {
35046 #endif
35047 /* We use char because int might match the return type of a gcc2
35048 builtin and then its argument prototype would still apply. */
35049 char $ac_func ();
35050 /* The GNU C library defines this for functions which it implements
35051 to always fail with ENOSYS. Some functions are actually named
35052 something starting with __ and the normal name is an alias. */
35053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35054 choke me
35055 #else
35056 char (*f) () = $ac_func;
35057 #endif
35058 #ifdef __cplusplus
35059 }
35060 #endif
35061
35062 int
35063 main ()
35064 {
35065 return f != $ac_func;
35066 ;
35067 return 0;
35068 }
35069 _ACEOF
35070 rm -f conftest.$ac_objext conftest$ac_exeext
35071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35072 (eval $ac_link) 2>conftest.er1
35073 ac_status=$?
35074 grep -v '^ *+' conftest.er1 >conftest.err
35075 rm -f conftest.er1
35076 cat conftest.err >&5
35077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078 (exit $ac_status); } &&
35079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35081 (eval $ac_try) 2>&5
35082 ac_status=$?
35083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084 (exit $ac_status); }; } &&
35085 { ac_try='test -s conftest$ac_exeext'
35086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35087 (eval $ac_try) 2>&5
35088 ac_status=$?
35089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090 (exit $ac_status); }; }; then
35091 eval "$as_ac_var=yes"
35092 else
35093 echo "$as_me: failed program was:" >&5
35094 sed 's/^/| /' conftest.$ac_ext >&5
35095
35096 eval "$as_ac_var=no"
35097 fi
35098 rm -f conftest.err conftest.$ac_objext \
35099 conftest$ac_exeext conftest.$ac_ext
35100 fi
35101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35103 if test `eval echo '${'$as_ac_var'}'` = yes; then
35104 cat >>confdefs.h <<_ACEOF
35105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35106 _ACEOF
35107 break
35108 fi
35109 done
35110
35111
35112 if test "$ac_cv_func_gettimeofday" = "yes"; then
35113 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35114 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35115 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35116 echo $ECHO_N "(cached) $ECHO_C" >&6
35117 else
35118
35119
35120
35121 ac_ext=cc
35122 ac_cpp='$CXXCPP $CPPFLAGS'
35123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35126
35127
35128 cat >conftest.$ac_ext <<_ACEOF
35129 /* confdefs.h. */
35130 _ACEOF
35131 cat confdefs.h >>conftest.$ac_ext
35132 cat >>conftest.$ac_ext <<_ACEOF
35133 /* end confdefs.h. */
35134
35135 #include <sys/time.h>
35136 #include <unistd.h>
35137
35138 int
35139 main ()
35140 {
35141
35142 struct timeval tv;
35143 gettimeofday(&tv, NULL);
35144
35145 ;
35146 return 0;
35147 }
35148 _ACEOF
35149 rm -f conftest.$ac_objext
35150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35151 (eval $ac_compile) 2>conftest.er1
35152 ac_status=$?
35153 grep -v '^ *+' conftest.er1 >conftest.err
35154 rm -f conftest.er1
35155 cat conftest.err >&5
35156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 (exit $ac_status); } &&
35158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35160 (eval $ac_try) 2>&5
35161 ac_status=$?
35162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163 (exit $ac_status); }; } &&
35164 { ac_try='test -s conftest.$ac_objext'
35165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35166 (eval $ac_try) 2>&5
35167 ac_status=$?
35168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35169 (exit $ac_status); }; }; then
35170 wx_cv_func_gettimeofday_has_2_args=yes
35171 else
35172 echo "$as_me: failed program was:" >&5
35173 sed 's/^/| /' conftest.$ac_ext >&5
35174
35175 cat >conftest.$ac_ext <<_ACEOF
35176 /* confdefs.h. */
35177 _ACEOF
35178 cat confdefs.h >>conftest.$ac_ext
35179 cat >>conftest.$ac_ext <<_ACEOF
35180 /* end confdefs.h. */
35181
35182 #include <sys/time.h>
35183 #include <unistd.h>
35184
35185 int
35186 main ()
35187 {
35188
35189 struct timeval tv;
35190 gettimeofday(&tv);
35191
35192 ;
35193 return 0;
35194 }
35195 _ACEOF
35196 rm -f conftest.$ac_objext
35197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35198 (eval $ac_compile) 2>conftest.er1
35199 ac_status=$?
35200 grep -v '^ *+' conftest.er1 >conftest.err
35201 rm -f conftest.er1
35202 cat conftest.err >&5
35203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35204 (exit $ac_status); } &&
35205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35207 (eval $ac_try) 2>&5
35208 ac_status=$?
35209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35210 (exit $ac_status); }; } &&
35211 { ac_try='test -s conftest.$ac_objext'
35212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35213 (eval $ac_try) 2>&5
35214 ac_status=$?
35215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35216 (exit $ac_status); }; }; then
35217 wx_cv_func_gettimeofday_has_2_args=no
35218 else
35219 echo "$as_me: failed program was:" >&5
35220 sed 's/^/| /' conftest.$ac_ext >&5
35221
35222
35223 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35224 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35225 wx_cv_func_gettimeofday_has_2_args=unknown
35226
35227
35228 fi
35229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35230
35231 fi
35232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35233 ac_ext=c
35234 ac_cpp='$CPP $CPPFLAGS'
35235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35238
35239
35240 fi
35241 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35242 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35243
35244 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35245 cat >>confdefs.h <<\_ACEOF
35246 #define WX_GETTIMEOFDAY_NO_TZ 1
35247 _ACEOF
35248
35249 fi
35250 fi
35251
35252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35253 fi
35254
35255
35256 if test "$wxUSE_SOCKETS" = "yes"; then
35257 if test "$wxUSE_MGL" = "1"; then
35258 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35259 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35260 wxUSE_SOCKETS="no"
35261 fi
35262 fi
35263
35264 if test "$wxUSE_SOCKETS" = "yes"; then
35265 if test "$TOOLKIT" != "MSW"; then
35266 echo "$as_me:$LINENO: checking for socket" >&5
35267 echo $ECHO_N "checking for socket... $ECHO_C" >&6
35268 if test "${ac_cv_func_socket+set}" = set; then
35269 echo $ECHO_N "(cached) $ECHO_C" >&6
35270 else
35271 cat >conftest.$ac_ext <<_ACEOF
35272 /* confdefs.h. */
35273 _ACEOF
35274 cat confdefs.h >>conftest.$ac_ext
35275 cat >>conftest.$ac_ext <<_ACEOF
35276 /* end confdefs.h. */
35277 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
35278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35279 #define socket innocuous_socket
35280
35281 /* System header to define __stub macros and hopefully few prototypes,
35282 which can conflict with char socket (); below.
35283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35284 <limits.h> exists even on freestanding compilers. */
35285
35286 #ifdef __STDC__
35287 # include <limits.h>
35288 #else
35289 # include <assert.h>
35290 #endif
35291
35292 #undef socket
35293
35294 /* Override any gcc2 internal prototype to avoid an error. */
35295 #ifdef __cplusplus
35296 extern "C"
35297 {
35298 #endif
35299 /* We use char because int might match the return type of a gcc2
35300 builtin and then its argument prototype would still apply. */
35301 char socket ();
35302 /* The GNU C library defines this for functions which it implements
35303 to always fail with ENOSYS. Some functions are actually named
35304 something starting with __ and the normal name is an alias. */
35305 #if defined (__stub_socket) || defined (__stub___socket)
35306 choke me
35307 #else
35308 char (*f) () = socket;
35309 #endif
35310 #ifdef __cplusplus
35311 }
35312 #endif
35313
35314 int
35315 main ()
35316 {
35317 return f != socket;
35318 ;
35319 return 0;
35320 }
35321 _ACEOF
35322 rm -f conftest.$ac_objext conftest$ac_exeext
35323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35324 (eval $ac_link) 2>conftest.er1
35325 ac_status=$?
35326 grep -v '^ *+' conftest.er1 >conftest.err
35327 rm -f conftest.er1
35328 cat conftest.err >&5
35329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330 (exit $ac_status); } &&
35331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35333 (eval $ac_try) 2>&5
35334 ac_status=$?
35335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35336 (exit $ac_status); }; } &&
35337 { ac_try='test -s conftest$ac_exeext'
35338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35339 (eval $ac_try) 2>&5
35340 ac_status=$?
35341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342 (exit $ac_status); }; }; then
35343 ac_cv_func_socket=yes
35344 else
35345 echo "$as_me: failed program was:" >&5
35346 sed 's/^/| /' conftest.$ac_ext >&5
35347
35348 ac_cv_func_socket=no
35349 fi
35350 rm -f conftest.err conftest.$ac_objext \
35351 conftest$ac_exeext conftest.$ac_ext
35352 fi
35353 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35354 echo "${ECHO_T}$ac_cv_func_socket" >&6
35355 if test $ac_cv_func_socket = yes; then
35356 :
35357 else
35358
35359 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35360 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35361 if test "${ac_cv_lib_socket_socket+set}" = set; then
35362 echo $ECHO_N "(cached) $ECHO_C" >&6
35363 else
35364 ac_check_lib_save_LIBS=$LIBS
35365 LIBS="-lsocket $LIBS"
35366 cat >conftest.$ac_ext <<_ACEOF
35367 /* confdefs.h. */
35368 _ACEOF
35369 cat confdefs.h >>conftest.$ac_ext
35370 cat >>conftest.$ac_ext <<_ACEOF
35371 /* end confdefs.h. */
35372
35373 /* Override any gcc2 internal prototype to avoid an error. */
35374 #ifdef __cplusplus
35375 extern "C"
35376 #endif
35377 /* We use char because int might match the return type of a gcc2
35378 builtin and then its argument prototype would still apply. */
35379 char socket ();
35380 int
35381 main ()
35382 {
35383 socket ();
35384 ;
35385 return 0;
35386 }
35387 _ACEOF
35388 rm -f conftest.$ac_objext conftest$ac_exeext
35389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35390 (eval $ac_link) 2>conftest.er1
35391 ac_status=$?
35392 grep -v '^ *+' conftest.er1 >conftest.err
35393 rm -f conftest.er1
35394 cat conftest.err >&5
35395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396 (exit $ac_status); } &&
35397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35399 (eval $ac_try) 2>&5
35400 ac_status=$?
35401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402 (exit $ac_status); }; } &&
35403 { ac_try='test -s conftest$ac_exeext'
35404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405 (eval $ac_try) 2>&5
35406 ac_status=$?
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); }; }; then
35409 ac_cv_lib_socket_socket=yes
35410 else
35411 echo "$as_me: failed program was:" >&5
35412 sed 's/^/| /' conftest.$ac_ext >&5
35413
35414 ac_cv_lib_socket_socket=no
35415 fi
35416 rm -f conftest.err conftest.$ac_objext \
35417 conftest$ac_exeext conftest.$ac_ext
35418 LIBS=$ac_check_lib_save_LIBS
35419 fi
35420 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35421 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35422 if test $ac_cv_lib_socket_socket = yes; then
35423 if test "$INET_LINK" != " -lsocket"; then
35424 INET_LINK="$INET_LINK -lsocket"
35425 fi
35426 else
35427
35428 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35429 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35430 wxUSE_SOCKETS=no
35431
35432
35433 fi
35434
35435
35436
35437 fi
35438
35439 fi
35440 fi
35441
35442 if test "$wxUSE_SOCKETS" = "yes" ; then
35443 if test "$TOOLKIT" != "MSW"; then
35444 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35445 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35446 if test "${wx_cv_type_getsockname3+set}" = set; then
35447 echo $ECHO_N "(cached) $ECHO_C" >&6
35448 else
35449
35450 cat >conftest.$ac_ext <<_ACEOF
35451 /* confdefs.h. */
35452 _ACEOF
35453 cat confdefs.h >>conftest.$ac_ext
35454 cat >>conftest.$ac_ext <<_ACEOF
35455 /* end confdefs.h. */
35456
35457 #include <sys/types.h>
35458 #include <sys/socket.h>
35459
35460 int
35461 main ()
35462 {
35463
35464 socklen_t len;
35465 getsockname(0, 0, &len);
35466
35467 ;
35468 return 0;
35469 }
35470 _ACEOF
35471 rm -f conftest.$ac_objext
35472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35473 (eval $ac_compile) 2>conftest.er1
35474 ac_status=$?
35475 grep -v '^ *+' conftest.er1 >conftest.err
35476 rm -f conftest.er1
35477 cat conftest.err >&5
35478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479 (exit $ac_status); } &&
35480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35482 (eval $ac_try) 2>&5
35483 ac_status=$?
35484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485 (exit $ac_status); }; } &&
35486 { ac_try='test -s conftest.$ac_objext'
35487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35488 (eval $ac_try) 2>&5
35489 ac_status=$?
35490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491 (exit $ac_status); }; }; then
35492 wx_cv_type_getsockname3=socklen_t
35493 else
35494 echo "$as_me: failed program was:" >&5
35495 sed 's/^/| /' conftest.$ac_ext >&5
35496
35497
35498 CFLAGS_OLD="$CFLAGS"
35499 if test "$GCC" = yes ; then
35500 CFLAGS="$CFLAGS -Werror"
35501 fi
35502
35503 cat >conftest.$ac_ext <<_ACEOF
35504 /* confdefs.h. */
35505 _ACEOF
35506 cat confdefs.h >>conftest.$ac_ext
35507 cat >>conftest.$ac_ext <<_ACEOF
35508 /* end confdefs.h. */
35509
35510 #include <sys/types.h>
35511 #include <sys/socket.h>
35512
35513 int
35514 main ()
35515 {
35516
35517 size_t len;
35518 getsockname(0, 0, &len);
35519
35520 ;
35521 return 0;
35522 }
35523 _ACEOF
35524 rm -f conftest.$ac_objext
35525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35526 (eval $ac_compile) 2>conftest.er1
35527 ac_status=$?
35528 grep -v '^ *+' conftest.er1 >conftest.err
35529 rm -f conftest.er1
35530 cat conftest.err >&5
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); } &&
35533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35535 (eval $ac_try) 2>&5
35536 ac_status=$?
35537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35538 (exit $ac_status); }; } &&
35539 { ac_try='test -s conftest.$ac_objext'
35540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35541 (eval $ac_try) 2>&5
35542 ac_status=$?
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); }; }; then
35545 wx_cv_type_getsockname3=size_t
35546 else
35547 echo "$as_me: failed program was:" >&5
35548 sed 's/^/| /' conftest.$ac_ext >&5
35549
35550 cat >conftest.$ac_ext <<_ACEOF
35551 /* confdefs.h. */
35552 _ACEOF
35553 cat confdefs.h >>conftest.$ac_ext
35554 cat >>conftest.$ac_ext <<_ACEOF
35555 /* end confdefs.h. */
35556
35557 #include <sys/types.h>
35558 #include <sys/socket.h>
35559
35560 int
35561 main ()
35562 {
35563
35564 int len;
35565 getsockname(0, 0, &len);
35566
35567 ;
35568 return 0;
35569 }
35570 _ACEOF
35571 rm -f conftest.$ac_objext
35572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35573 (eval $ac_compile) 2>conftest.er1
35574 ac_status=$?
35575 grep -v '^ *+' conftest.er1 >conftest.err
35576 rm -f conftest.er1
35577 cat conftest.err >&5
35578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579 (exit $ac_status); } &&
35580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35582 (eval $ac_try) 2>&5
35583 ac_status=$?
35584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585 (exit $ac_status); }; } &&
35586 { ac_try='test -s conftest.$ac_objext'
35587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35588 (eval $ac_try) 2>&5
35589 ac_status=$?
35590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591 (exit $ac_status); }; }; then
35592 wx_cv_type_getsockname3=int
35593 else
35594 echo "$as_me: failed program was:" >&5
35595 sed 's/^/| /' conftest.$ac_ext >&5
35596
35597 wx_cv_type_getsockname3=unknown
35598
35599 fi
35600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35601
35602 fi
35603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35604
35605 CFLAGS="$CFLAGS_OLD"
35606
35607
35608 fi
35609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35610
35611 fi
35612 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35613 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35614
35615 if test "$wx_cv_type_getsockname3" = "unknown"; then
35616 wxUSE_SOCKETS=no
35617 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35618 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35619 else
35620 cat >>confdefs.h <<_ACEOF
35621 #define SOCKLEN_T $wx_cv_type_getsockname3
35622 _ACEOF
35623
35624 fi
35625 fi
35626 fi
35627
35628 if test "$wxUSE_SOCKETS" = "yes" ; then
35629 cat >>confdefs.h <<\_ACEOF
35630 #define wxUSE_SOCKETS 1
35631 _ACEOF
35632
35633 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35634 fi
35635
35636 if test "$wxUSE_PROTOCOL" = "yes"; then
35637 if test "$wxUSE_SOCKETS" != "yes"; then
35638 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35639 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35640 wxUSE_PROTOCOL=no
35641 fi
35642 fi
35643
35644 if test "$wxUSE_PROTOCOL" = "yes"; then
35645 cat >>confdefs.h <<\_ACEOF
35646 #define wxUSE_PROTOCOL 1
35647 _ACEOF
35648
35649
35650 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35651 cat >>confdefs.h <<\_ACEOF
35652 #define wxUSE_PROTOCOL_HTTP 1
35653 _ACEOF
35654
35655 fi
35656 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35657 cat >>confdefs.h <<\_ACEOF
35658 #define wxUSE_PROTOCOL_FTP 1
35659 _ACEOF
35660
35661 fi
35662 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35663 cat >>confdefs.h <<\_ACEOF
35664 #define wxUSE_PROTOCOL_FILE 1
35665 _ACEOF
35666
35667 fi
35668 else
35669 if test "$wxUSE_FS_INET" = "yes"; then
35670 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35671 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35672 wxUSE_FS_INET="no"
35673 fi
35674 fi
35675
35676 if test "$wxUSE_URL" = "yes"; then
35677 if test "$wxUSE_PROTOCOL" != "yes"; then
35678 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35679 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35680 wxUSE_URL=no
35681 fi
35682 if test "$wxUSE_URL" = "yes"; then
35683 cat >>confdefs.h <<\_ACEOF
35684 #define wxUSE_URL 1
35685 _ACEOF
35686
35687 fi
35688 fi
35689
35690 if test "$wxUSE_FS_INET" = "yes"; then
35691 cat >>confdefs.h <<\_ACEOF
35692 #define wxUSE_FS_INET 1
35693 _ACEOF
35694
35695 fi
35696
35697
35698 if test "$wxUSE_GUI" = "yes"; then
35699
35700 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35701 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35702 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35703 wxUSE_JOYSTICK=no
35704 fi
35705
35706 if test "$TOOLKIT" != "MSW"; then
35707 if test "$wxUSE_JOYSTICK" = "yes"; then
35708
35709 for ac_header in linux/joystick.h
35710 do
35711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35713 echo "$as_me:$LINENO: checking for $ac_header" >&5
35714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35716 echo $ECHO_N "(cached) $ECHO_C" >&6
35717 fi
35718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35720 else
35721 # Is the header compilable?
35722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35724 cat >conftest.$ac_ext <<_ACEOF
35725 /* confdefs.h. */
35726 _ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h. */
35730 $ac_includes_default
35731 #include <$ac_header>
35732 _ACEOF
35733 rm -f conftest.$ac_objext
35734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35735 (eval $ac_compile) 2>conftest.er1
35736 ac_status=$?
35737 grep -v '^ *+' conftest.er1 >conftest.err
35738 rm -f conftest.er1
35739 cat conftest.err >&5
35740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35741 (exit $ac_status); } &&
35742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35744 (eval $ac_try) 2>&5
35745 ac_status=$?
35746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747 (exit $ac_status); }; } &&
35748 { ac_try='test -s conftest.$ac_objext'
35749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35750 (eval $ac_try) 2>&5
35751 ac_status=$?
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); }; }; then
35754 ac_header_compiler=yes
35755 else
35756 echo "$as_me: failed program was:" >&5
35757 sed 's/^/| /' conftest.$ac_ext >&5
35758
35759 ac_header_compiler=no
35760 fi
35761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35763 echo "${ECHO_T}$ac_header_compiler" >&6
35764
35765 # Is the header present?
35766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35768 cat >conftest.$ac_ext <<_ACEOF
35769 /* confdefs.h. */
35770 _ACEOF
35771 cat confdefs.h >>conftest.$ac_ext
35772 cat >>conftest.$ac_ext <<_ACEOF
35773 /* end confdefs.h. */
35774 #include <$ac_header>
35775 _ACEOF
35776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35778 ac_status=$?
35779 grep -v '^ *+' conftest.er1 >conftest.err
35780 rm -f conftest.er1
35781 cat conftest.err >&5
35782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35783 (exit $ac_status); } >/dev/null; then
35784 if test -s conftest.err; then
35785 ac_cpp_err=$ac_c_preproc_warn_flag
35786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35787 else
35788 ac_cpp_err=
35789 fi
35790 else
35791 ac_cpp_err=yes
35792 fi
35793 if test -z "$ac_cpp_err"; then
35794 ac_header_preproc=yes
35795 else
35796 echo "$as_me: failed program was:" >&5
35797 sed 's/^/| /' conftest.$ac_ext >&5
35798
35799 ac_header_preproc=no
35800 fi
35801 rm -f conftest.err conftest.$ac_ext
35802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35803 echo "${ECHO_T}$ac_header_preproc" >&6
35804
35805 # So? What about this header?
35806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35807 yes:no: )
35808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35812 ac_header_preproc=yes
35813 ;;
35814 no:yes:* )
35815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35827 (
35828 cat <<\_ASBOX
35829 ## ----------------------------------------- ##
35830 ## Report this to wx-dev@lists.wxwindows.org ##
35831 ## ----------------------------------------- ##
35832 _ASBOX
35833 ) |
35834 sed "s/^/$as_me: WARNING: /" >&2
35835 ;;
35836 esac
35837 echo "$as_me:$LINENO: checking for $ac_header" >&5
35838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35840 echo $ECHO_N "(cached) $ECHO_C" >&6
35841 else
35842 eval "$as_ac_Header=\$ac_header_preproc"
35843 fi
35844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35846
35847 fi
35848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35849 cat >>confdefs.h <<_ACEOF
35850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35851 _ACEOF
35852
35853 fi
35854
35855 done
35856
35857 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35858 wxUSE_JOYSTICK=no
35859 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35860 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35861 fi
35862 fi
35863 fi
35864
35865 if test "$wxUSE_JOYSTICK" = "yes"; then
35866 cat >>confdefs.h <<\_ACEOF
35867 #define wxUSE_JOYSTICK 1
35868 _ACEOF
35869
35870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35871 fi
35872 fi
35873
35874
35875
35876 if test "$wxUSE_FONTMAP" = "yes" ; then
35877 cat >>confdefs.h <<\_ACEOF
35878 #define wxUSE_FONTMAP 1
35879 _ACEOF
35880
35881 fi
35882
35883 if test "$wxUSE_UNICODE" = "yes" ; then
35884 cat >>confdefs.h <<\_ACEOF
35885 #define wxUSE_UNICODE 1
35886 _ACEOF
35887
35888
35889 if test "$USE_WIN32" != 1; then
35890 wxUSE_UNICODE_MSLU=no
35891 fi
35892
35893 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35894 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35895 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35896 if test "${ac_cv_lib_unicows_main+set}" = set; then
35897 echo $ECHO_N "(cached) $ECHO_C" >&6
35898 else
35899 ac_check_lib_save_LIBS=$LIBS
35900 LIBS="-lunicows $LIBS"
35901 cat >conftest.$ac_ext <<_ACEOF
35902 /* confdefs.h. */
35903 _ACEOF
35904 cat confdefs.h >>conftest.$ac_ext
35905 cat >>conftest.$ac_ext <<_ACEOF
35906 /* end confdefs.h. */
35907
35908
35909 int
35910 main ()
35911 {
35912 main ();
35913 ;
35914 return 0;
35915 }
35916 _ACEOF
35917 rm -f conftest.$ac_objext conftest$ac_exeext
35918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35919 (eval $ac_link) 2>conftest.er1
35920 ac_status=$?
35921 grep -v '^ *+' conftest.er1 >conftest.err
35922 rm -f conftest.er1
35923 cat conftest.err >&5
35924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35925 (exit $ac_status); } &&
35926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35928 (eval $ac_try) 2>&5
35929 ac_status=$?
35930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35931 (exit $ac_status); }; } &&
35932 { ac_try='test -s conftest$ac_exeext'
35933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35934 (eval $ac_try) 2>&5
35935 ac_status=$?
35936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); }; }; then
35938 ac_cv_lib_unicows_main=yes
35939 else
35940 echo "$as_me: failed program was:" >&5
35941 sed 's/^/| /' conftest.$ac_ext >&5
35942
35943 ac_cv_lib_unicows_main=no
35944 fi
35945 rm -f conftest.err conftest.$ac_objext \
35946 conftest$ac_exeext conftest.$ac_ext
35947 LIBS=$ac_check_lib_save_LIBS
35948 fi
35949 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35950 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35951 if test $ac_cv_lib_unicows_main = yes; then
35952
35953 cat >>confdefs.h <<\_ACEOF
35954 #define wxUSE_UNICODE_MSLU 1
35955 _ACEOF
35956
35957
35958 else
35959
35960 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35961 Applications will only run on Windows NT/2000/XP!" >&5
35962 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35963 Applications will only run on Windows NT/2000/XP!" >&2;}
35964 wxUSE_UNICODE_MSLU=no
35965
35966 fi
35967
35968 fi
35969 fi
35970
35971 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
35972 cat >>confdefs.h <<\_ACEOF
35973 #define wxUSE_EXPERIMENTAL_PRINTF 1
35974 _ACEOF
35975
35976 fi
35977
35978
35979 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
35980 cat >>confdefs.h <<\_ACEOF
35981 #define wxUSE_POSTSCRIPT 1
35982 _ACEOF
35983
35984 fi
35985
35986 cat >>confdefs.h <<\_ACEOF
35987 #define wxUSE_AFM_FOR_POSTSCRIPT 1
35988 _ACEOF
35989
35990
35991 cat >>confdefs.h <<\_ACEOF
35992 #define wxUSE_NORMALIZED_PS_FONTS 1
35993 _ACEOF
35994
35995
35996
35997 if test "$wxUSE_CONSTRAINTS" = "yes"; then
35998 cat >>confdefs.h <<\_ACEOF
35999 #define wxUSE_CONSTRAINTS 1
36000 _ACEOF
36001
36002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36003 fi
36004
36005 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36006 cat >>confdefs.h <<\_ACEOF
36007 #define wxUSE_MDI_ARCHITECTURE 1
36008 _ACEOF
36009
36010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36011 fi
36012
36013 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36014 cat >>confdefs.h <<\_ACEOF
36015 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
36016 _ACEOF
36017
36018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36019 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36021 fi
36022 fi
36023
36024 if test "$wxUSE_HELP" = "yes"; then
36025 cat >>confdefs.h <<\_ACEOF
36026 #define wxUSE_HELP 1
36027 _ACEOF
36028
36029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36030
36031 if test "$wxUSE_MSW" = 1; then
36032 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36033 cat >>confdefs.h <<\_ACEOF
36034 #define wxUSE_MS_HTML_HELP 1
36035 _ACEOF
36036
36037 fi
36038 fi
36039
36040 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36041 if test "$wxUSE_HTML" = "yes"; then
36042 cat >>confdefs.h <<\_ACEOF
36043 #define wxUSE_WXHTML_HELP 1
36044 _ACEOF
36045
36046 else
36047 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36048 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36049 wxUSE_WXHTML_HELP=no
36050 fi
36051 fi
36052 fi
36053
36054 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36055 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36056 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36057 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36058 else
36059 cat >>confdefs.h <<\_ACEOF
36060 #define wxUSE_PRINTING_ARCHITECTURE 1
36061 _ACEOF
36062
36063 fi
36064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36065 fi
36066
36067 if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36068 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36069 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36070 { (exit 1); exit 1; }; }
36071 fi
36072
36073
36074 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36075 -o "$wxUSE_CLIPBOARD" = "yes" \
36076 -o "$wxUSE_OLE" = "yes" \
36077 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36078
36079 for ac_header in ole2.h
36080 do
36081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36083 echo "$as_me:$LINENO: checking for $ac_header" >&5
36084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36086 echo $ECHO_N "(cached) $ECHO_C" >&6
36087 fi
36088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36090 else
36091 # Is the header compilable?
36092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36094 cat >conftest.$ac_ext <<_ACEOF
36095 /* confdefs.h. */
36096 _ACEOF
36097 cat confdefs.h >>conftest.$ac_ext
36098 cat >>conftest.$ac_ext <<_ACEOF
36099 /* end confdefs.h. */
36100 $ac_includes_default
36101 #include <$ac_header>
36102 _ACEOF
36103 rm -f conftest.$ac_objext
36104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36105 (eval $ac_compile) 2>conftest.er1
36106 ac_status=$?
36107 grep -v '^ *+' conftest.er1 >conftest.err
36108 rm -f conftest.er1
36109 cat conftest.err >&5
36110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36111 (exit $ac_status); } &&
36112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36114 (eval $ac_try) 2>&5
36115 ac_status=$?
36116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117 (exit $ac_status); }; } &&
36118 { ac_try='test -s conftest.$ac_objext'
36119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36120 (eval $ac_try) 2>&5
36121 ac_status=$?
36122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123 (exit $ac_status); }; }; then
36124 ac_header_compiler=yes
36125 else
36126 echo "$as_me: failed program was:" >&5
36127 sed 's/^/| /' conftest.$ac_ext >&5
36128
36129 ac_header_compiler=no
36130 fi
36131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36133 echo "${ECHO_T}$ac_header_compiler" >&6
36134
36135 # Is the header present?
36136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36138 cat >conftest.$ac_ext <<_ACEOF
36139 /* confdefs.h. */
36140 _ACEOF
36141 cat confdefs.h >>conftest.$ac_ext
36142 cat >>conftest.$ac_ext <<_ACEOF
36143 /* end confdefs.h. */
36144 #include <$ac_header>
36145 _ACEOF
36146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36148 ac_status=$?
36149 grep -v '^ *+' conftest.er1 >conftest.err
36150 rm -f conftest.er1
36151 cat conftest.err >&5
36152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153 (exit $ac_status); } >/dev/null; then
36154 if test -s conftest.err; then
36155 ac_cpp_err=$ac_c_preproc_warn_flag
36156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36157 else
36158 ac_cpp_err=
36159 fi
36160 else
36161 ac_cpp_err=yes
36162 fi
36163 if test -z "$ac_cpp_err"; then
36164 ac_header_preproc=yes
36165 else
36166 echo "$as_me: failed program was:" >&5
36167 sed 's/^/| /' conftest.$ac_ext >&5
36168
36169 ac_header_preproc=no
36170 fi
36171 rm -f conftest.err conftest.$ac_ext
36172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36173 echo "${ECHO_T}$ac_header_preproc" >&6
36174
36175 # So? What about this header?
36176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36177 yes:no: )
36178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36182 ac_header_preproc=yes
36183 ;;
36184 no:yes:* )
36185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36197 (
36198 cat <<\_ASBOX
36199 ## ----------------------------------------- ##
36200 ## Report this to wx-dev@lists.wxwindows.org ##
36201 ## ----------------------------------------- ##
36202 _ASBOX
36203 ) |
36204 sed "s/^/$as_me: WARNING: /" >&2
36205 ;;
36206 esac
36207 echo "$as_me:$LINENO: checking for $ac_header" >&5
36208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36210 echo $ECHO_N "(cached) $ECHO_C" >&6
36211 else
36212 eval "$as_ac_Header=\$ac_header_preproc"
36213 fi
36214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36216
36217 fi
36218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36219 cat >>confdefs.h <<_ACEOF
36220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36221 _ACEOF
36222
36223 fi
36224
36225 done
36226
36227
36228 if test "$ac_cv_header_ole2_h" = "yes" ; then
36229 if test "$GCC" = yes ; then
36230
36231
36232 ac_ext=cc
36233 ac_cpp='$CXXCPP $CPPFLAGS'
36234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36237
36238
36239 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36240 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36241 cat >conftest.$ac_ext <<_ACEOF
36242 /* confdefs.h. */
36243 _ACEOF
36244 cat confdefs.h >>conftest.$ac_ext
36245 cat >>conftest.$ac_ext <<_ACEOF
36246 /* end confdefs.h. */
36247 #include <windows.h>
36248 #include <ole2.h>
36249 int
36250 main ()
36251 {
36252
36253 ;
36254 return 0;
36255 }
36256 _ACEOF
36257 rm -f conftest.$ac_objext
36258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36259 (eval $ac_compile) 2>conftest.er1
36260 ac_status=$?
36261 grep -v '^ *+' conftest.er1 >conftest.err
36262 rm -f conftest.er1
36263 cat conftest.err >&5
36264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265 (exit $ac_status); } &&
36266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36268 (eval $ac_try) 2>&5
36269 ac_status=$?
36270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271 (exit $ac_status); }; } &&
36272 { ac_try='test -s conftest.$ac_objext'
36273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36274 (eval $ac_try) 2>&5
36275 ac_status=$?
36276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277 (exit $ac_status); }; }; then
36278 echo "$as_me:$LINENO: result: no" >&5
36279 echo "${ECHO_T}no" >&6
36280 else
36281 echo "$as_me: failed program was:" >&5
36282 sed 's/^/| /' conftest.$ac_ext >&5
36283
36284 echo "$as_me:$LINENO: result: yes" >&5
36285 echo "${ECHO_T}yes" >&6
36286 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36287 fi
36288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36289 ac_ext=c
36290 ac_cpp='$CPP $CPPFLAGS'
36291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36294
36295 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36296 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36297 if test "$wxUSE_OLE" = "yes" ; then
36298 cat >>confdefs.h <<\_ACEOF
36299 #define wxUSE_OLE 1
36300 _ACEOF
36301
36302 fi
36303 fi
36304
36305 if test "$wxUSE_DATAOBJ" = "yes" ; then
36306 cat >>confdefs.h <<\_ACEOF
36307 #define wxUSE_DATAOBJ 1
36308 _ACEOF
36309
36310 fi
36311 else
36312 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36313 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36314
36315 wxUSE_CLIPBOARD=no
36316 wxUSE_DRAG_AND_DROP=no
36317 wxUSE_DATAOBJ=no
36318 wxUSE_OLE=no
36319 fi
36320
36321 if test "$wxUSE_METAFILE" = "yes"; then
36322 cat >>confdefs.h <<\_ACEOF
36323 #define wxUSE_METAFILE 1
36324 _ACEOF
36325
36326
36327 cat >>confdefs.h <<\_ACEOF
36328 #define wxUSE_ENH_METAFILE 1
36329 _ACEOF
36330
36331 fi
36332 fi
36333
36334 if test "$wxUSE_IPC" = "yes"; then
36335 if test "$wxUSE_SOCKETS" != "yes"; then
36336 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
36337 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
36338 fi
36339
36340 cat >>confdefs.h <<\_ACEOF
36341 #define wxUSE_IPC 1
36342 _ACEOF
36343
36344 fi
36345
36346 if test "$wxUSE_CLIPBOARD" = "yes"; then
36347 if test "$wxUSE_MGL" = 1; then
36348 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36349 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36350 wxUSE_CLIPBOARD=no
36351 fi
36352
36353 if test "$wxUSE_CLIPBOARD" = "yes"; then
36354 cat >>confdefs.h <<\_ACEOF
36355 #define wxUSE_CLIPBOARD 1
36356 _ACEOF
36357
36358
36359 cat >>confdefs.h <<\_ACEOF
36360 #define wxUSE_DATAOBJ 1
36361 _ACEOF
36362
36363 fi
36364 fi
36365
36366 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36367 if test "$wxUSE_GTK" = 1; then
36368 if test "$WXGTK12" != 1; then
36369 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36370 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36371 wxUSE_DRAG_AND_DROP=no
36372 fi
36373 fi
36374
36375 if test "$wxUSE_MOTIF" = 1; then
36376 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36377 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36378 wxUSE_DRAG_AND_DROP=no
36379 fi
36380
36381 if test "$wxUSE_X11" = 1; then
36382 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36383 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36384 wxUSE_DRAG_AND_DROP=no
36385 fi
36386
36387 if test "$wxUSE_MGL" = 1; then
36388 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36389 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36390 wxUSE_DRAG_AND_DROP=no
36391 fi
36392
36393 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36394 cat >>confdefs.h <<\_ACEOF
36395 #define wxUSE_DRAG_AND_DROP 1
36396 _ACEOF
36397
36398 fi
36399
36400 fi
36401
36402 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36404 fi
36405
36406 if test "$wxUSE_SPLINES" = "yes" ; then
36407 cat >>confdefs.h <<\_ACEOF
36408 #define wxUSE_SPLINES 1
36409 _ACEOF
36410
36411 fi
36412
36413
36414 USES_CONTROLS=0
36415 if test "$wxUSE_CONTROLS" = "yes"; then
36416 USES_CONTROLS=1
36417 fi
36418
36419 if test "$wxUSE_ACCEL" = "yes"; then
36420 cat >>confdefs.h <<\_ACEOF
36421 #define wxUSE_ACCEL 1
36422 _ACEOF
36423
36424 USES_CONTROLS=1
36425 fi
36426
36427 if test "$wxUSE_BUTTON" = "yes"; then
36428 cat >>confdefs.h <<\_ACEOF
36429 #define wxUSE_BUTTON 1
36430 _ACEOF
36431
36432 USES_CONTROLS=1
36433 fi
36434
36435 if test "$wxUSE_BMPBUTTON" = "yes"; then
36436 cat >>confdefs.h <<\_ACEOF
36437 #define wxUSE_BMPBUTTON 1
36438 _ACEOF
36439
36440 USES_CONTROLS=1
36441 fi
36442
36443 if test "$wxUSE_CALCTRL" = "yes"; then
36444 cat >>confdefs.h <<\_ACEOF
36445 #define wxUSE_CALENDARCTRL 1
36446 _ACEOF
36447
36448 USES_CONTROLS=1
36449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36450 fi
36451
36452 if test "$wxUSE_CARET" = "yes"; then
36453 cat >>confdefs.h <<\_ACEOF
36454 #define wxUSE_CARET 1
36455 _ACEOF
36456
36457 USES_CONTROLS=1
36458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36459 fi
36460
36461 if test "$wxUSE_COMBOBOX" = "yes"; then
36462 cat >>confdefs.h <<\_ACEOF
36463 #define wxUSE_COMBOBOX 1
36464 _ACEOF
36465
36466 USES_CONTROLS=1
36467 fi
36468
36469 if test "$wxUSE_CHOICE" = "yes"; then
36470 cat >>confdefs.h <<\_ACEOF
36471 #define wxUSE_CHOICE 1
36472 _ACEOF
36473
36474 USES_CONTROLS=1
36475 fi
36476
36477 if test "$wxUSE_CHECKBOX" = "yes"; then
36478 cat >>confdefs.h <<\_ACEOF
36479 #define wxUSE_CHECKBOX 1
36480 _ACEOF
36481
36482 USES_CONTROLS=1
36483 fi
36484
36485 if test "$wxUSE_CHECKLST" = "yes"; then
36486 cat >>confdefs.h <<\_ACEOF
36487 #define wxUSE_CHECKLISTBOX 1
36488 _ACEOF
36489
36490 USES_CONTROLS=1
36491 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36492 fi
36493
36494 if test "$wxUSE_DISPLAY" = "yes"; then
36495 cat >>confdefs.h <<\_ACEOF
36496 #define wxUSE_DISPLAY 1
36497 _ACEOF
36498
36499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36500 fi
36501
36502 if test "$wxUSE_GAUGE" = "yes"; then
36503 cat >>confdefs.h <<\_ACEOF
36504 #define wxUSE_GAUGE 1
36505 _ACEOF
36506
36507 USES_CONTROLS=1
36508 fi
36509
36510 if test "$wxUSE_GRID" = "yes"; then
36511 cat >>confdefs.h <<\_ACEOF
36512 #define wxUSE_GRID 1
36513 _ACEOF
36514
36515 USES_CONTROLS=1
36516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36517 fi
36518
36519 if test "$wxUSE_IMAGLIST" = "yes"; then
36520 cat >>confdefs.h <<\_ACEOF
36521 #define wxUSE_IMAGLIST 1
36522 _ACEOF
36523
36524 fi
36525
36526 if test "$wxUSE_LISTBOOK" = "yes"; then
36527 cat >>confdefs.h <<\_ACEOF
36528 #define wxUSE_LISTBOOK 1
36529 _ACEOF
36530
36531 USES_CONTROLS=1
36532 fi
36533
36534 if test "$wxUSE_LISTBOX" = "yes"; then
36535 cat >>confdefs.h <<\_ACEOF
36536 #define wxUSE_LISTBOX 1
36537 _ACEOF
36538
36539 USES_CONTROLS=1
36540 fi
36541
36542 if test "$wxUSE_LISTCTRL" = "yes"; then
36543 if test "$wxUSE_IMAGLIST" = "yes"; then
36544 cat >>confdefs.h <<\_ACEOF
36545 #define wxUSE_LISTCTRL 1
36546 _ACEOF
36547
36548 USES_CONTROLS=1
36549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36550 else
36551 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36552 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36553 fi
36554 fi
36555
36556 if test "$wxUSE_NOTEBOOK" = "yes"; then
36557 cat >>confdefs.h <<\_ACEOF
36558 #define wxUSE_NOTEBOOK 1
36559 _ACEOF
36560
36561 USES_CONTROLS=1
36562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36563 fi
36564
36565
36566 if test "$wxUSE_RADIOBOX" = "yes"; then
36567 cat >>confdefs.h <<\_ACEOF
36568 #define wxUSE_RADIOBOX 1
36569 _ACEOF
36570
36571 USES_CONTROLS=1
36572 fi
36573
36574 if test "$wxUSE_RADIOBTN" = "yes"; then
36575 cat >>confdefs.h <<\_ACEOF
36576 #define wxUSE_RADIOBTN 1
36577 _ACEOF
36578
36579 USES_CONTROLS=1
36580 fi
36581
36582 if test "$wxUSE_SASH" = "yes"; then
36583 cat >>confdefs.h <<\_ACEOF
36584 #define wxUSE_SASH 1
36585 _ACEOF
36586
36587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36588 fi
36589
36590 if test "$wxUSE_SCROLLBAR" = "yes"; then
36591 cat >>confdefs.h <<\_ACEOF
36592 #define wxUSE_SCROLLBAR 1
36593 _ACEOF
36594
36595 USES_CONTROLS=1
36596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36597 fi
36598
36599 if test "$wxUSE_SLIDER" = "yes"; then
36600 cat >>confdefs.h <<\_ACEOF
36601 #define wxUSE_SLIDER 1
36602 _ACEOF
36603
36604 USES_CONTROLS=1
36605 fi
36606
36607 if test "$wxUSE_SPINBTN" = "yes"; then
36608 cat >>confdefs.h <<\_ACEOF
36609 #define wxUSE_SPINBTN 1
36610 _ACEOF
36611
36612 USES_CONTROLS=1
36613 fi
36614
36615 if test "$wxUSE_SPINCTRL" = "yes"; then
36616 cat >>confdefs.h <<\_ACEOF
36617 #define wxUSE_SPINCTRL 1
36618 _ACEOF
36619
36620 USES_CONTROLS=1
36621 fi
36622
36623 if test "$wxUSE_SPLITTER" = "yes"; then
36624 cat >>confdefs.h <<\_ACEOF
36625 #define wxUSE_SPLITTER 1
36626 _ACEOF
36627
36628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36629 fi
36630
36631 if test "$wxUSE_STATBMP" = "yes"; then
36632 cat >>confdefs.h <<\_ACEOF
36633 #define wxUSE_STATBMP 1
36634 _ACEOF
36635
36636 USES_CONTROLS=1
36637 fi
36638
36639 if test "$wxUSE_STATBOX" = "yes"; then
36640 cat >>confdefs.h <<\_ACEOF
36641 #define wxUSE_STATBOX 1
36642 _ACEOF
36643
36644 USES_CONTROLS=1
36645 fi
36646
36647 if test "$wxUSE_STATTEXT" = "yes"; then
36648 cat >>confdefs.h <<\_ACEOF
36649 #define wxUSE_STATTEXT 1
36650 _ACEOF
36651
36652 USES_CONTROLS=1
36653 fi
36654
36655 if test "$wxUSE_STATLINE" = "yes"; then
36656 cat >>confdefs.h <<\_ACEOF
36657 #define wxUSE_STATLINE 1
36658 _ACEOF
36659
36660 USES_CONTROLS=1
36661 fi
36662
36663 if test "$wxUSE_STATUSBAR" = "yes"; then
36664 cat >>confdefs.h <<\_ACEOF
36665 #define wxUSE_STATUSBAR 1
36666 _ACEOF
36667
36668 USES_CONTROLS=1
36669
36670 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36671 fi
36672
36673 if test "$wxUSE_TABDIALOG" = "yes"; then
36674 cat >>confdefs.h <<\_ACEOF
36675 #define wxUSE_TAB_DIALOG 1
36676 _ACEOF
36677
36678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36679 fi
36680
36681 if test "$wxUSE_TEXTCTRL" = "yes"; then
36682 cat >>confdefs.h <<\_ACEOF
36683 #define wxUSE_TEXTCTRL 1
36684 _ACEOF
36685
36686 USES_CONTROLS=1
36687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36688 fi
36689
36690 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36691 if test "$wxUSE_COCOA" = 1 ; then
36692 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36693 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36694 wxUSE_TOGGLEBTN=no
36695 fi
36696 if test "$wxUSE_UNIVERSAL" = "yes"; then
36697 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36698 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36699 wxUSE_TOGGLEBTN=no
36700 fi
36701
36702 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36703 cat >>confdefs.h <<\_ACEOF
36704 #define wxUSE_TOGGLEBTN 1
36705 _ACEOF
36706
36707 USES_CONTROLS=1
36708 fi
36709 fi
36710
36711 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36712 cat >>confdefs.h <<\_ACEOF
36713 #define wxUSE_TOOLBAR_SIMPLE 1
36714 _ACEOF
36715
36716 wxUSE_TOOLBAR="yes"
36717 USES_CONTROLS=1
36718 fi
36719
36720 if test "$wxUSE_TOOLBAR" = "yes"; then
36721 cat >>confdefs.h <<\_ACEOF
36722 #define wxUSE_TOOLBAR 1
36723 _ACEOF
36724
36725 USES_CONTROLS=1
36726
36727 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36728 wxUSE_TOOLBAR_NATIVE="yes"
36729 fi
36730
36731 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36732 cat >>confdefs.h <<\_ACEOF
36733 #define wxUSE_TOOLBAR_NATIVE 1
36734 _ACEOF
36735
36736 USES_CONTROLS=1
36737 fi
36738
36739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36740 fi
36741
36742 if test "$wxUSE_TOOLTIPS" = "yes"; then
36743 if test "$wxUSE_MOTIF" = 1; then
36744 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36745 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36746 else
36747 if test "$wxUSE_UNIVERSAL" = "yes"; then
36748 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36749 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36750 else
36751 cat >>confdefs.h <<\_ACEOF
36752 #define wxUSE_TOOLTIPS 1
36753 _ACEOF
36754
36755 fi
36756 fi
36757 fi
36758
36759 if test "$wxUSE_TREECTRL" = "yes"; then
36760 if test "$wxUSE_IMAGLIST" = "yes"; then
36761 cat >>confdefs.h <<\_ACEOF
36762 #define wxUSE_TREECTRL 1
36763 _ACEOF
36764
36765 USES_CONTROLS=1
36766 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36767 else
36768 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36769 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36770 fi
36771 fi
36772
36773 if test "$wxUSE_POPUPWIN" = "yes"; then
36774 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36775 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36776 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36777 else
36778 if test "$wxUSE_PM" = 1; then
36779 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36780 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36781 else
36782 cat >>confdefs.h <<\_ACEOF
36783 #define wxUSE_POPUPWIN 1
36784 _ACEOF
36785
36786
36787 USES_CONTROLS=1
36788 fi
36789 fi
36790 fi
36791
36792 if test "$wxUSE_TIPWINDOW" = "yes"; then
36793 if test "$wxUSE_PM" = 1; then
36794 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36795 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36796 else
36797 cat >>confdefs.h <<\_ACEOF
36798 #define wxUSE_TIPWINDOW 1
36799 _ACEOF
36800
36801 fi
36802 fi
36803
36804 if test "$USES_CONTROLS" = 1; then
36805 cat >>confdefs.h <<\_ACEOF
36806 #define wxUSE_CONTROLS 1
36807 _ACEOF
36808
36809 fi
36810
36811
36812 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36813 cat >>confdefs.h <<\_ACEOF
36814 #define wxUSE_ACCESSIBILITY 1
36815 _ACEOF
36816
36817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36818 fi
36819
36820 if test "$wxUSE_DRAGIMAGE" = "yes"; then
36821 cat >>confdefs.h <<\_ACEOF
36822 #define wxUSE_DRAGIMAGE 1
36823 _ACEOF
36824
36825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36826 fi
36827
36828 if test "$wxUSE_EXCEPTIONS" = "yes"; then
36829 cat >>confdefs.h <<\_ACEOF
36830 #define wxUSE_EXCEPTIONS 1
36831 _ACEOF
36832
36833 fi
36834
36835 USE_HTML=0
36836 if test "$wxUSE_HTML" = "yes"; then
36837 cat >>confdefs.h <<\_ACEOF
36838 #define wxUSE_HTML 1
36839 _ACEOF
36840
36841 USE_HTML=1
36842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
36843 fi
36844
36845 if test "$wxUSE_MENUS" = "yes"; then
36846 cat >>confdefs.h <<\_ACEOF
36847 #define wxUSE_MENUS 1
36848 _ACEOF
36849
36850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36851 fi
36852
36853 if test "$wxUSE_METAFILE" = "yes"; then
36854 cat >>confdefs.h <<\_ACEOF
36855 #define wxUSE_METAFILE 1
36856 _ACEOF
36857
36858 fi
36859
36860 if test "$wxUSE_MIMETYPE" = "yes"; then
36861 cat >>confdefs.h <<\_ACEOF
36862 #define wxUSE_MIMETYPE 1
36863 _ACEOF
36864
36865 fi
36866
36867 if test "$wxUSE_MINIFRAME" = "yes"; then
36868 cat >>confdefs.h <<\_ACEOF
36869 #define wxUSE_MINIFRAME 1
36870 _ACEOF
36871
36872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36873 fi
36874
36875 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
36876 cat >>confdefs.h <<\_ACEOF
36877 #define wxUSE_SYSTEM_OPTIONS 1
36878 _ACEOF
36879
36880 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36881 "$TOOLKIT" = "MOTIF"; then
36882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36883 fi
36884 fi
36885
36886
36887 if test "$wxUSE_VALIDATORS" = "yes"; then
36888 cat >>confdefs.h <<\_ACEOF
36889 #define wxUSE_VALIDATORS 1
36890 _ACEOF
36891
36892 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
36893 fi
36894
36895 if test "$wxUSE_PALETTE" = "yes" ; then
36896 cat >>confdefs.h <<\_ACEOF
36897 #define wxUSE_PALETTE 1
36898 _ACEOF
36899
36900 fi
36901
36902 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
36903 LIBS=" -lunicows $LIBS"
36904 fi
36905
36906
36907 if test "$wxUSE_IMAGE" = "yes" ; then
36908 cat >>confdefs.h <<\_ACEOF
36909 #define wxUSE_IMAGE 1
36910 _ACEOF
36911
36912
36913 if test "$wxUSE_GIF" = "yes" ; then
36914 cat >>confdefs.h <<\_ACEOF
36915 #define wxUSE_GIF 1
36916 _ACEOF
36917
36918 fi
36919
36920 if test "$wxUSE_PCX" = "yes" ; then
36921 cat >>confdefs.h <<\_ACEOF
36922 #define wxUSE_PCX 1
36923 _ACEOF
36924
36925 fi
36926
36927 if test "$wxUSE_IFF" = "yes" ; then
36928 cat >>confdefs.h <<\_ACEOF
36929 #define wxUSE_IFF 1
36930 _ACEOF
36931
36932 fi
36933
36934 if test "$wxUSE_PNM" = "yes" ; then
36935 cat >>confdefs.h <<\_ACEOF
36936 #define wxUSE_PNM 1
36937 _ACEOF
36938
36939 fi
36940
36941 if test "$wxUSE_XPM" = "yes" ; then
36942 cat >>confdefs.h <<\_ACEOF
36943 #define wxUSE_XPM 1
36944 _ACEOF
36945
36946 fi
36947
36948 if test "$wxUSE_ICO_CUR" = "yes" ; then
36949 cat >>confdefs.h <<\_ACEOF
36950 #define wxUSE_ICO_CUR 1
36951 _ACEOF
36952
36953 fi
36954 fi
36955
36956
36957 if test "$wxUSE_CHOICEDLG" = "yes"; then
36958 cat >>confdefs.h <<\_ACEOF
36959 #define wxUSE_CHOICEDLG 1
36960 _ACEOF
36961
36962 fi
36963
36964 if test "$wxUSE_COLOURDLG" = "yes"; then
36965 cat >>confdefs.h <<\_ACEOF
36966 #define wxUSE_COLOURDLG 1
36967 _ACEOF
36968
36969 fi
36970
36971 if test "$wxUSE_FILEDLG" = "yes"; then
36972 cat >>confdefs.h <<\_ACEOF
36973 #define wxUSE_FILEDLG 1
36974 _ACEOF
36975
36976 fi
36977
36978 if test "$wxUSE_FINDREPLDLG" = "yes"; then
36979 cat >>confdefs.h <<\_ACEOF
36980 #define wxUSE_FINDREPLDLG 1
36981 _ACEOF
36982
36983 fi
36984
36985 if test "$wxUSE_FONTDLG" = "yes"; then
36986 cat >>confdefs.h <<\_ACEOF
36987 #define wxUSE_FONTDLG 1
36988 _ACEOF
36989
36990 fi
36991
36992 if test "$wxUSE_DIRDLG" = "yes"; then
36993 if test "$wxUSE_TREECTRL" != "yes"; then
36994 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
36995 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
36996 else
36997 cat >>confdefs.h <<\_ACEOF
36998 #define wxUSE_DIRDLG 1
36999 _ACEOF
37000
37001 fi
37002 fi
37003
37004 if test "$wxUSE_MSGDLG" = "yes"; then
37005 cat >>confdefs.h <<\_ACEOF
37006 #define wxUSE_MSGDLG 1
37007 _ACEOF
37008
37009 fi
37010
37011 if test "$wxUSE_NUMBERDLG" = "yes"; then
37012 cat >>confdefs.h <<\_ACEOF
37013 #define wxUSE_NUMBERDLG 1
37014 _ACEOF
37015
37016 fi
37017
37018 if test "$wxUSE_PROGRESSDLG" = "yes"; then
37019 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37020 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37021 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37022 else
37023 cat >>confdefs.h <<\_ACEOF
37024 #define wxUSE_PROGRESSDLG 1
37025 _ACEOF
37026
37027 fi
37028 fi
37029
37030 if test "$wxUSE_SPLASH" = "yes"; then
37031 cat >>confdefs.h <<\_ACEOF
37032 #define wxUSE_SPLASH 1
37033 _ACEOF
37034
37035 fi
37036
37037 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37038 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37039 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37040 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37041 else
37042 cat >>confdefs.h <<\_ACEOF
37043 #define wxUSE_STARTUP_TIPS 1
37044 _ACEOF
37045
37046 fi
37047 fi
37048
37049 if test "$wxUSE_TEXTDLG" = "yes"; then
37050 cat >>confdefs.h <<\_ACEOF
37051 #define wxUSE_TEXTDLG 1
37052 _ACEOF
37053
37054 fi
37055
37056 if test "$wxUSE_WIZARDDLG" = "yes"; then
37057 cat >>confdefs.h <<\_ACEOF
37058 #define wxUSE_WIZARDDLG 1
37059 _ACEOF
37060
37061 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37062 fi
37063
37064
37065 if test "$cross_compiling" = "yes"; then
37066 OSINFO="\"$host\""
37067 else
37068 OSINFO=`uname -s -r -m`
37069 OSINFO="\"$OSINFO\""
37070 fi
37071
37072 cat >>confdefs.h <<_ACEOF
37073 #define WXWIN_OS_DESCRIPTION $OSINFO
37074 _ACEOF
37075
37076
37077
37078 if test "x$prefix" != "xNONE"; then
37079 wxPREFIX=$prefix
37080 else
37081 wxPREFIX=$ac_default_prefix
37082 fi
37083
37084 cat >>confdefs.h <<_ACEOF
37085 #define wxINSTALL_PREFIX "$wxPREFIX"
37086 _ACEOF
37087
37088
37089 top_builddir_wxconfig=`pwd`
37090
37091
37092
37093 CORE_BASE_LIBS="net base"
37094 CORE_GUI_LIBS="adv core"
37095
37096 if test "$wxUSE_XML" = "yes" ; then
37097 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37098 fi
37099 if test "$wxUSE_ODBC" != "no" ; then
37100 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37101 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37102 fi
37103 if test "$wxUSE_HTML" = "yes" ; then
37104 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37105 fi
37106
37107 if test "$wxUSE_GUI" != "yes"; then
37108 CORE_GUI_LIBS=""
37109 fi
37110
37111
37112
37113
37114
37115
37116
37117
37118 if test "$wxUSE_MAC" = 1 ; then
37119 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
37120 fi
37121 if test "$wxUSE_COCOA" = 1 ; then
37122 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37123 fi
37124
37125
37126 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37127
37128 have_cos=0
37129 have_floor=0
37130
37131 for ac_func in cos
37132 do
37133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37134 echo "$as_me:$LINENO: checking for $ac_func" >&5
37135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37136 if eval "test \"\${$as_ac_var+set}\" = set"; then
37137 echo $ECHO_N "(cached) $ECHO_C" >&6
37138 else
37139 cat >conftest.$ac_ext <<_ACEOF
37140 /* confdefs.h. */
37141 _ACEOF
37142 cat confdefs.h >>conftest.$ac_ext
37143 cat >>conftest.$ac_ext <<_ACEOF
37144 /* end confdefs.h. */
37145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37147 #define $ac_func innocuous_$ac_func
37148
37149 /* System header to define __stub macros and hopefully few prototypes,
37150 which can conflict with char $ac_func (); below.
37151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37152 <limits.h> exists even on freestanding compilers. */
37153
37154 #ifdef __STDC__
37155 # include <limits.h>
37156 #else
37157 # include <assert.h>
37158 #endif
37159
37160 #undef $ac_func
37161
37162 /* Override any gcc2 internal prototype to avoid an error. */
37163 #ifdef __cplusplus
37164 extern "C"
37165 {
37166 #endif
37167 /* We use char because int might match the return type of a gcc2
37168 builtin and then its argument prototype would still apply. */
37169 char $ac_func ();
37170 /* The GNU C library defines this for functions which it implements
37171 to always fail with ENOSYS. Some functions are actually named
37172 something starting with __ and the normal name is an alias. */
37173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37174 choke me
37175 #else
37176 char (*f) () = $ac_func;
37177 #endif
37178 #ifdef __cplusplus
37179 }
37180 #endif
37181
37182 int
37183 main ()
37184 {
37185 return f != $ac_func;
37186 ;
37187 return 0;
37188 }
37189 _ACEOF
37190 rm -f conftest.$ac_objext conftest$ac_exeext
37191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37192 (eval $ac_link) 2>conftest.er1
37193 ac_status=$?
37194 grep -v '^ *+' conftest.er1 >conftest.err
37195 rm -f conftest.er1
37196 cat conftest.err >&5
37197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37198 (exit $ac_status); } &&
37199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37201 (eval $ac_try) 2>&5
37202 ac_status=$?
37203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37204 (exit $ac_status); }; } &&
37205 { ac_try='test -s conftest$ac_exeext'
37206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37207 (eval $ac_try) 2>&5
37208 ac_status=$?
37209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37210 (exit $ac_status); }; }; then
37211 eval "$as_ac_var=yes"
37212 else
37213 echo "$as_me: failed program was:" >&5
37214 sed 's/^/| /' conftest.$ac_ext >&5
37215
37216 eval "$as_ac_var=no"
37217 fi
37218 rm -f conftest.err conftest.$ac_objext \
37219 conftest$ac_exeext conftest.$ac_ext
37220 fi
37221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37223 if test `eval echo '${'$as_ac_var'}'` = yes; then
37224 cat >>confdefs.h <<_ACEOF
37225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37226 _ACEOF
37227 have_cos=1
37228 fi
37229 done
37230
37231
37232 for ac_func in floor
37233 do
37234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37235 echo "$as_me:$LINENO: checking for $ac_func" >&5
37236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37237 if eval "test \"\${$as_ac_var+set}\" = set"; then
37238 echo $ECHO_N "(cached) $ECHO_C" >&6
37239 else
37240 cat >conftest.$ac_ext <<_ACEOF
37241 /* confdefs.h. */
37242 _ACEOF
37243 cat confdefs.h >>conftest.$ac_ext
37244 cat >>conftest.$ac_ext <<_ACEOF
37245 /* end confdefs.h. */
37246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37248 #define $ac_func innocuous_$ac_func
37249
37250 /* System header to define __stub macros and hopefully few prototypes,
37251 which can conflict with char $ac_func (); below.
37252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37253 <limits.h> exists even on freestanding compilers. */
37254
37255 #ifdef __STDC__
37256 # include <limits.h>
37257 #else
37258 # include <assert.h>
37259 #endif
37260
37261 #undef $ac_func
37262
37263 /* Override any gcc2 internal prototype to avoid an error. */
37264 #ifdef __cplusplus
37265 extern "C"
37266 {
37267 #endif
37268 /* We use char because int might match the return type of a gcc2
37269 builtin and then its argument prototype would still apply. */
37270 char $ac_func ();
37271 /* The GNU C library defines this for functions which it implements
37272 to always fail with ENOSYS. Some functions are actually named
37273 something starting with __ and the normal name is an alias. */
37274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37275 choke me
37276 #else
37277 char (*f) () = $ac_func;
37278 #endif
37279 #ifdef __cplusplus
37280 }
37281 #endif
37282
37283 int
37284 main ()
37285 {
37286 return f != $ac_func;
37287 ;
37288 return 0;
37289 }
37290 _ACEOF
37291 rm -f conftest.$ac_objext conftest$ac_exeext
37292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37293 (eval $ac_link) 2>conftest.er1
37294 ac_status=$?
37295 grep -v '^ *+' conftest.er1 >conftest.err
37296 rm -f conftest.er1
37297 cat conftest.err >&5
37298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37299 (exit $ac_status); } &&
37300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37302 (eval $ac_try) 2>&5
37303 ac_status=$?
37304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37305 (exit $ac_status); }; } &&
37306 { ac_try='test -s conftest$ac_exeext'
37307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37308 (eval $ac_try) 2>&5
37309 ac_status=$?
37310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37311 (exit $ac_status); }; }; then
37312 eval "$as_ac_var=yes"
37313 else
37314 echo "$as_me: failed program was:" >&5
37315 sed 's/^/| /' conftest.$ac_ext >&5
37316
37317 eval "$as_ac_var=no"
37318 fi
37319 rm -f conftest.err conftest.$ac_objext \
37320 conftest$ac_exeext conftest.$ac_ext
37321 fi
37322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37324 if test `eval echo '${'$as_ac_var'}'` = yes; then
37325 cat >>confdefs.h <<_ACEOF
37326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37327 _ACEOF
37328 have_floor=1
37329 fi
37330 done
37331
37332 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37333 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37334 if test "$have_cos" = 1 -a "$have_floor" = 1; then
37335 echo "$as_me:$LINENO: result: yes" >&5
37336 echo "${ECHO_T}yes" >&6
37337 else
37338 echo "$as_me:$LINENO: result: no" >&5
37339 echo "${ECHO_T}no" >&6
37340 LIBS="$LIBS -lm"
37341 # use different functions to avoid configure caching
37342 have_sin=0
37343 have_ceil=0
37344
37345 for ac_func in sin
37346 do
37347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37348 echo "$as_me:$LINENO: checking for $ac_func" >&5
37349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37350 if eval "test \"\${$as_ac_var+set}\" = set"; then
37351 echo $ECHO_N "(cached) $ECHO_C" >&6
37352 else
37353 cat >conftest.$ac_ext <<_ACEOF
37354 /* confdefs.h. */
37355 _ACEOF
37356 cat confdefs.h >>conftest.$ac_ext
37357 cat >>conftest.$ac_ext <<_ACEOF
37358 /* end confdefs.h. */
37359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37361 #define $ac_func innocuous_$ac_func
37362
37363 /* System header to define __stub macros and hopefully few prototypes,
37364 which can conflict with char $ac_func (); below.
37365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37366 <limits.h> exists even on freestanding compilers. */
37367
37368 #ifdef __STDC__
37369 # include <limits.h>
37370 #else
37371 # include <assert.h>
37372 #endif
37373
37374 #undef $ac_func
37375
37376 /* Override any gcc2 internal prototype to avoid an error. */
37377 #ifdef __cplusplus
37378 extern "C"
37379 {
37380 #endif
37381 /* We use char because int might match the return type of a gcc2
37382 builtin and then its argument prototype would still apply. */
37383 char $ac_func ();
37384 /* The GNU C library defines this for functions which it implements
37385 to always fail with ENOSYS. Some functions are actually named
37386 something starting with __ and the normal name is an alias. */
37387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37388 choke me
37389 #else
37390 char (*f) () = $ac_func;
37391 #endif
37392 #ifdef __cplusplus
37393 }
37394 #endif
37395
37396 int
37397 main ()
37398 {
37399 return f != $ac_func;
37400 ;
37401 return 0;
37402 }
37403 _ACEOF
37404 rm -f conftest.$ac_objext conftest$ac_exeext
37405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37406 (eval $ac_link) 2>conftest.er1
37407 ac_status=$?
37408 grep -v '^ *+' conftest.er1 >conftest.err
37409 rm -f conftest.er1
37410 cat conftest.err >&5
37411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); } &&
37413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37415 (eval $ac_try) 2>&5
37416 ac_status=$?
37417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418 (exit $ac_status); }; } &&
37419 { ac_try='test -s conftest$ac_exeext'
37420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37421 (eval $ac_try) 2>&5
37422 ac_status=$?
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); }; }; then
37425 eval "$as_ac_var=yes"
37426 else
37427 echo "$as_me: failed program was:" >&5
37428 sed 's/^/| /' conftest.$ac_ext >&5
37429
37430 eval "$as_ac_var=no"
37431 fi
37432 rm -f conftest.err conftest.$ac_objext \
37433 conftest$ac_exeext conftest.$ac_ext
37434 fi
37435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37437 if test `eval echo '${'$as_ac_var'}'` = yes; then
37438 cat >>confdefs.h <<_ACEOF
37439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37440 _ACEOF
37441 have_sin=1
37442 fi
37443 done
37444
37445
37446 for ac_func in ceil
37447 do
37448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37449 echo "$as_me:$LINENO: checking for $ac_func" >&5
37450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37451 if eval "test \"\${$as_ac_var+set}\" = set"; then
37452 echo $ECHO_N "(cached) $ECHO_C" >&6
37453 else
37454 cat >conftest.$ac_ext <<_ACEOF
37455 /* confdefs.h. */
37456 _ACEOF
37457 cat confdefs.h >>conftest.$ac_ext
37458 cat >>conftest.$ac_ext <<_ACEOF
37459 /* end confdefs.h. */
37460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37462 #define $ac_func innocuous_$ac_func
37463
37464 /* System header to define __stub macros and hopefully few prototypes,
37465 which can conflict with char $ac_func (); below.
37466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37467 <limits.h> exists even on freestanding compilers. */
37468
37469 #ifdef __STDC__
37470 # include <limits.h>
37471 #else
37472 # include <assert.h>
37473 #endif
37474
37475 #undef $ac_func
37476
37477 /* Override any gcc2 internal prototype to avoid an error. */
37478 #ifdef __cplusplus
37479 extern "C"
37480 {
37481 #endif
37482 /* We use char because int might match the return type of a gcc2
37483 builtin and then its argument prototype would still apply. */
37484 char $ac_func ();
37485 /* The GNU C library defines this for functions which it implements
37486 to always fail with ENOSYS. Some functions are actually named
37487 something starting with __ and the normal name is an alias. */
37488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37489 choke me
37490 #else
37491 char (*f) () = $ac_func;
37492 #endif
37493 #ifdef __cplusplus
37494 }
37495 #endif
37496
37497 int
37498 main ()
37499 {
37500 return f != $ac_func;
37501 ;
37502 return 0;
37503 }
37504 _ACEOF
37505 rm -f conftest.$ac_objext conftest$ac_exeext
37506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37507 (eval $ac_link) 2>conftest.er1
37508 ac_status=$?
37509 grep -v '^ *+' conftest.er1 >conftest.err
37510 rm -f conftest.er1
37511 cat conftest.err >&5
37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); } &&
37514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37516 (eval $ac_try) 2>&5
37517 ac_status=$?
37518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37519 (exit $ac_status); }; } &&
37520 { ac_try='test -s conftest$ac_exeext'
37521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37522 (eval $ac_try) 2>&5
37523 ac_status=$?
37524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37525 (exit $ac_status); }; }; then
37526 eval "$as_ac_var=yes"
37527 else
37528 echo "$as_me: failed program was:" >&5
37529 sed 's/^/| /' conftest.$ac_ext >&5
37530
37531 eval "$as_ac_var=no"
37532 fi
37533 rm -f conftest.err conftest.$ac_objext \
37534 conftest$ac_exeext conftest.$ac_ext
37535 fi
37536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37538 if test `eval echo '${'$as_ac_var'}'` = yes; then
37539 cat >>confdefs.h <<_ACEOF
37540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37541 _ACEOF
37542 have_ceil=1
37543 fi
37544 done
37545
37546 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37547 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37548 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37549 echo "$as_me:$LINENO: result: yes" >&5
37550 echo "${ECHO_T}yes" >&6
37551 else
37552 echo "$as_me:$LINENO: result: no" >&5
37553 echo "${ECHO_T}no" >&6
37554 # not sure we should warn the user, crash, etc.
37555 fi
37556 fi
37557
37558 if test "$wxUSE_GUI" = "yes"; then
37559
37560
37561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37562 drawing dynamic erase event exec font image \
37563 minimal propsize rotate shaped widgets render"
37564
37565 if test "$wxUSE_MONOLITHIC" != "yes"; then
37566 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37567 fi
37568 else
37569 SAMPLES_SUBDIRS="console"
37570 fi
37571
37572
37573 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37574 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37575
37576 if test "$GXX" = yes ; then
37577 CXXWARNINGS="-Wall"
37578 fi
37579
37580 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37581
37582 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
37583 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37584 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
37585
37586
37587 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
37588 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37589 EXTRALIBS_XML="$EXPAT_LINK"
37590 EXTRALIBS_HTML="$MSPACK_LINK"
37591 EXTRALIBS_ODBC="$ODBC_LINK"
37592 if test "$wxUSE_GUI" = "yes"; then
37593 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
37594 fi
37595 if test "$wxUSE_OPENGL" = "yes"; then
37596 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37597 fi
37598
37599 LDFLAGS="$LDFLAGS $PROFILE"
37600
37601 if test "$wxUSE_GTK" = 1; then
37602 WXCONFIG_INCLUDE=
37603 else
37604 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37605 fi
37606
37607 WXCONFIG_EXTRALIBS="$LIBS"
37608
37609 if test "$wxUSE_REGEX" = "builtin" ; then
37610 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37611 fi
37612 if test "$wxUSE_EXPAT" = "builtin" ; then
37613 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37614 fi
37615 if test "$wxUSE_ODBC" = "builtin" ; then
37616 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37617 fi
37618 if test "$wxUSE_LIBTIFF" = "builtin" ; then
37619 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37620 fi
37621 if test "$wxUSE_LIBJPEG" = "builtin" ; then
37622 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37623 fi
37624 if test "$wxUSE_LIBPNG" = "builtin" ; then
37625 wxconfig_3rdparty="$wxconfig_3rdparty png"
37626 fi
37627 if test "$wxUSE_ZLIB" = "builtin" ; then
37628 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37629 fi
37630 if test "$wxUSE_ODBC" = "builtin" ; then
37631 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37632 fi
37633
37634 for i in $wxconfig_3rdparty ; do
37635 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37636 done
37637
37638
37639 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37640 WXUNIV=1
37641 else
37642 WXUNIV=0
37643 fi
37644
37645
37646
37647
37648
37649
37650
37651
37652
37653 if test $wxUSE_MONOLITHIC = "yes" ; then
37654 MONOLITHIC=1
37655 else
37656 MONOLITHIC=0
37657 fi
37658
37659 if test $wxUSE_PLUGINS = "yes" ; then
37660 USE_PLUGINS=1
37661 else
37662 USE_PLUGINS=0
37663 fi
37664
37665 if test $wxUSE_ODBC != "no" ; then
37666 USE_ODBC=1
37667 else
37668 USE_ODBC=0
37669 fi
37670
37671 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37672 OFFICIAL_BUILD=1
37673 else
37674 OFFICIAL_BUILD=0
37675 fi
37676
37677
37678
37679
37680
37681
37682
37683
37684
37685
37686
37687
37688
37689
37690
37691
37692
37693
37694
37695
37696
37697 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37698
37699
37700
37701
37702
37703
37704
37705 if test "x$BAKEFILE_HOST" = "x"; then
37706 BAKEFILE_HOST="${host}"
37707 fi
37708
37709 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37710
37711 if test -n "$ac_tool_prefix"; then
37712 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37713 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37714 echo "$as_me:$LINENO: checking for $ac_word" >&5
37715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37716 if test "${ac_cv_prog_RANLIB+set}" = set; then
37717 echo $ECHO_N "(cached) $ECHO_C" >&6
37718 else
37719 if test -n "$RANLIB"; then
37720 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37721 else
37722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37723 for as_dir in $PATH
37724 do
37725 IFS=$as_save_IFS
37726 test -z "$as_dir" && as_dir=.
37727 for ac_exec_ext in '' $ac_executable_extensions; do
37728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37729 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37731 break 2
37732 fi
37733 done
37734 done
37735
37736 fi
37737 fi
37738 RANLIB=$ac_cv_prog_RANLIB
37739 if test -n "$RANLIB"; then
37740 echo "$as_me:$LINENO: result: $RANLIB" >&5
37741 echo "${ECHO_T}$RANLIB" >&6
37742 else
37743 echo "$as_me:$LINENO: result: no" >&5
37744 echo "${ECHO_T}no" >&6
37745 fi
37746
37747 fi
37748 if test -z "$ac_cv_prog_RANLIB"; then
37749 ac_ct_RANLIB=$RANLIB
37750 # Extract the first word of "ranlib", so it can be a program name with args.
37751 set dummy ranlib; ac_word=$2
37752 echo "$as_me:$LINENO: checking for $ac_word" >&5
37753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37754 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37755 echo $ECHO_N "(cached) $ECHO_C" >&6
37756 else
37757 if test -n "$ac_ct_RANLIB"; then
37758 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37759 else
37760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37761 for as_dir in $PATH
37762 do
37763 IFS=$as_save_IFS
37764 test -z "$as_dir" && as_dir=.
37765 for ac_exec_ext in '' $ac_executable_extensions; do
37766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37767 ac_cv_prog_ac_ct_RANLIB="ranlib"
37768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37769 break 2
37770 fi
37771 done
37772 done
37773
37774 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37775 fi
37776 fi
37777 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37778 if test -n "$ac_ct_RANLIB"; then
37779 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37780 echo "${ECHO_T}$ac_ct_RANLIB" >&6
37781 else
37782 echo "$as_me:$LINENO: result: no" >&5
37783 echo "${ECHO_T}no" >&6
37784 fi
37785
37786 RANLIB=$ac_ct_RANLIB
37787 else
37788 RANLIB="$ac_cv_prog_RANLIB"
37789 fi
37790
37791 # Find a good install program. We prefer a C program (faster),
37792 # so one script is as good as another. But avoid the broken or
37793 # incompatible versions:
37794 # SysV /etc/install, /usr/sbin/install
37795 # SunOS /usr/etc/install
37796 # IRIX /sbin/install
37797 # AIX /bin/install
37798 # AmigaOS /C/install, which installs bootblocks on floppy discs
37799 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37800 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
37801 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
37802 # OS/2's system install, which has a completely different semantic
37803 # ./install, which can be erroneously created by make from ./install.sh.
37804 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37805 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37806 if test -z "$INSTALL"; then
37807 if test "${ac_cv_path_install+set}" = set; then
37808 echo $ECHO_N "(cached) $ECHO_C" >&6
37809 else
37810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37811 for as_dir in $PATH
37812 do
37813 IFS=$as_save_IFS
37814 test -z "$as_dir" && as_dir=.
37815 # Account for people who put trailing slashes in PATH elements.
37816 case $as_dir/ in
37817 ./ | .// | /cC/* | \
37818 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
37819 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
37820 /usr/ucb/* ) ;;
37821 *)
37822 # OSF1 and SCO ODT 3.0 have their own names for install.
37823 # Don't use installbsd from OSF since it installs stuff as root
37824 # by default.
37825 for ac_prog in ginstall scoinst install; do
37826 for ac_exec_ext in '' $ac_executable_extensions; do
37827 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37828 if test $ac_prog = install &&
37829 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37830 # AIX install. It has an incompatible calling convention.
37831 :
37832 elif test $ac_prog = install &&
37833 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37834 # program-specific install script used by HP pwplus--don't use.
37835 :
37836 else
37837 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37838 break 3
37839 fi
37840 fi
37841 done
37842 done
37843 ;;
37844 esac
37845 done
37846
37847
37848 fi
37849 if test "${ac_cv_path_install+set}" = set; then
37850 INSTALL=$ac_cv_path_install
37851 else
37852 # As a last resort, use the slow shell script. We don't cache a
37853 # path for INSTALL within a source directory, because that will
37854 # break other packages using the cache if that directory is
37855 # removed, or if the path is relative.
37856 INSTALL=$ac_install_sh
37857 fi
37858 fi
37859 echo "$as_me:$LINENO: result: $INSTALL" >&5
37860 echo "${ECHO_T}$INSTALL" >&6
37861
37862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
37863 # It thinks the first close brace ends the variable substitution.
37864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
37865
37866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
37867
37868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
37869
37870 echo "$as_me:$LINENO: checking whether ln -s works" >&5
37871 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
37872 LN_S=$as_ln_s
37873 if test "$LN_S" = "ln -s"; then
37874 echo "$as_me:$LINENO: result: yes" >&5
37875 echo "${ECHO_T}yes" >&6
37876 else
37877 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37878 echo "${ECHO_T}no, using $LN_S" >&6
37879 fi
37880
37881
37882 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37883 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
37884 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
37885 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37886 echo $ECHO_N "(cached) $ECHO_C" >&6
37887 else
37888 cat >conftest.make <<\_ACEOF
37889 all:
37890 @echo 'ac_maketemp="$(MAKE)"'
37891 _ACEOF
37892 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
37893 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
37894 if test -n "$ac_maketemp"; then
37895 eval ac_cv_prog_make_${ac_make}_set=yes
37896 else
37897 eval ac_cv_prog_make_${ac_make}_set=no
37898 fi
37899 rm -f conftest.make
37900 fi
37901 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
37902 echo "$as_me:$LINENO: result: yes" >&5
37903 echo "${ECHO_T}yes" >&6
37904 SET_MAKE=
37905 else
37906 echo "$as_me:$LINENO: result: no" >&5
37907 echo "${ECHO_T}no" >&6
37908 SET_MAKE="MAKE=${MAKE-make}"
37909 fi
37910
37911
37912
37913 if test -n "$ac_tool_prefix"; then
37914 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
37915 set dummy ${ac_tool_prefix}ar; ac_word=$2
37916 echo "$as_me:$LINENO: checking for $ac_word" >&5
37917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37918 if test "${ac_cv_prog_AR+set}" = set; then
37919 echo $ECHO_N "(cached) $ECHO_C" >&6
37920 else
37921 if test -n "$AR"; then
37922 ac_cv_prog_AR="$AR" # Let the user override the test.
37923 else
37924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37925 for as_dir in $PATH
37926 do
37927 IFS=$as_save_IFS
37928 test -z "$as_dir" && as_dir=.
37929 for ac_exec_ext in '' $ac_executable_extensions; do
37930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37931 ac_cv_prog_AR="${ac_tool_prefix}ar"
37932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37933 break 2
37934 fi
37935 done
37936 done
37937
37938 fi
37939 fi
37940 AR=$ac_cv_prog_AR
37941 if test -n "$AR"; then
37942 echo "$as_me:$LINENO: result: $AR" >&5
37943 echo "${ECHO_T}$AR" >&6
37944 else
37945 echo "$as_me:$LINENO: result: no" >&5
37946 echo "${ECHO_T}no" >&6
37947 fi
37948
37949 fi
37950 if test -z "$ac_cv_prog_AR"; then
37951 ac_ct_AR=$AR
37952 # Extract the first word of "ar", so it can be a program name with args.
37953 set dummy ar; ac_word=$2
37954 echo "$as_me:$LINENO: checking for $ac_word" >&5
37955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37956 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
37957 echo $ECHO_N "(cached) $ECHO_C" >&6
37958 else
37959 if test -n "$ac_ct_AR"; then
37960 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
37961 else
37962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37963 for as_dir in $PATH
37964 do
37965 IFS=$as_save_IFS
37966 test -z "$as_dir" && as_dir=.
37967 for ac_exec_ext in '' $ac_executable_extensions; do
37968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37969 ac_cv_prog_ac_ct_AR="ar"
37970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37971 break 2
37972 fi
37973 done
37974 done
37975
37976 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
37977 fi
37978 fi
37979 ac_ct_AR=$ac_cv_prog_ac_ct_AR
37980 if test -n "$ac_ct_AR"; then
37981 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
37982 echo "${ECHO_T}$ac_ct_AR" >&6
37983 else
37984 echo "$as_me:$LINENO: result: no" >&5
37985 echo "${ECHO_T}no" >&6
37986 fi
37987
37988 AR=$ac_ct_AR
37989 else
37990 AR="$ac_cv_prog_AR"
37991 fi
37992
37993 if test -n "$ac_tool_prefix"; then
37994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37995 set dummy ${ac_tool_prefix}strip; ac_word=$2
37996 echo "$as_me:$LINENO: checking for $ac_word" >&5
37997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37998 if test "${ac_cv_prog_STRIP+set}" = set; then
37999 echo $ECHO_N "(cached) $ECHO_C" >&6
38000 else
38001 if test -n "$STRIP"; then
38002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38003 else
38004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38005 for as_dir in $PATH
38006 do
38007 IFS=$as_save_IFS
38008 test -z "$as_dir" && as_dir=.
38009 for ac_exec_ext in '' $ac_executable_extensions; do
38010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38013 break 2
38014 fi
38015 done
38016 done
38017
38018 fi
38019 fi
38020 STRIP=$ac_cv_prog_STRIP
38021 if test -n "$STRIP"; then
38022 echo "$as_me:$LINENO: result: $STRIP" >&5
38023 echo "${ECHO_T}$STRIP" >&6
38024 else
38025 echo "$as_me:$LINENO: result: no" >&5
38026 echo "${ECHO_T}no" >&6
38027 fi
38028
38029 fi
38030 if test -z "$ac_cv_prog_STRIP"; then
38031 ac_ct_STRIP=$STRIP
38032 # Extract the first word of "strip", so it can be a program name with args.
38033 set dummy strip; ac_word=$2
38034 echo "$as_me:$LINENO: checking for $ac_word" >&5
38035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38036 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38037 echo $ECHO_N "(cached) $ECHO_C" >&6
38038 else
38039 if test -n "$ac_ct_STRIP"; then
38040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38041 else
38042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38043 for as_dir in $PATH
38044 do
38045 IFS=$as_save_IFS
38046 test -z "$as_dir" && as_dir=.
38047 for ac_exec_ext in '' $ac_executable_extensions; do
38048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38049 ac_cv_prog_ac_ct_STRIP="strip"
38050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38051 break 2
38052 fi
38053 done
38054 done
38055
38056 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38057 fi
38058 fi
38059 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38060 if test -n "$ac_ct_STRIP"; then
38061 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38062 echo "${ECHO_T}$ac_ct_STRIP" >&6
38063 else
38064 echo "$as_me:$LINENO: result: no" >&5
38065 echo "${ECHO_T}no" >&6
38066 fi
38067
38068 STRIP=$ac_ct_STRIP
38069 else
38070 STRIP="$ac_cv_prog_STRIP"
38071 fi
38072
38073 if test -n "$ac_tool_prefix"; then
38074 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38075 set dummy ${ac_tool_prefix}nm; ac_word=$2
38076 echo "$as_me:$LINENO: checking for $ac_word" >&5
38077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38078 if test "${ac_cv_prog_NM+set}" = set; then
38079 echo $ECHO_N "(cached) $ECHO_C" >&6
38080 else
38081 if test -n "$NM"; then
38082 ac_cv_prog_NM="$NM" # Let the user override the test.
38083 else
38084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38085 for as_dir in $PATH
38086 do
38087 IFS=$as_save_IFS
38088 test -z "$as_dir" && as_dir=.
38089 for ac_exec_ext in '' $ac_executable_extensions; do
38090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38091 ac_cv_prog_NM="${ac_tool_prefix}nm"
38092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38093 break 2
38094 fi
38095 done
38096 done
38097
38098 fi
38099 fi
38100 NM=$ac_cv_prog_NM
38101 if test -n "$NM"; then
38102 echo "$as_me:$LINENO: result: $NM" >&5
38103 echo "${ECHO_T}$NM" >&6
38104 else
38105 echo "$as_me:$LINENO: result: no" >&5
38106 echo "${ECHO_T}no" >&6
38107 fi
38108
38109 fi
38110 if test -z "$ac_cv_prog_NM"; then
38111 ac_ct_NM=$NM
38112 # Extract the first word of "nm", so it can be a program name with args.
38113 set dummy nm; ac_word=$2
38114 echo "$as_me:$LINENO: checking for $ac_word" >&5
38115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38116 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38117 echo $ECHO_N "(cached) $ECHO_C" >&6
38118 else
38119 if test -n "$ac_ct_NM"; then
38120 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38121 else
38122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38123 for as_dir in $PATH
38124 do
38125 IFS=$as_save_IFS
38126 test -z "$as_dir" && as_dir=.
38127 for ac_exec_ext in '' $ac_executable_extensions; do
38128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38129 ac_cv_prog_ac_ct_NM="nm"
38130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38131 break 2
38132 fi
38133 done
38134 done
38135
38136 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38137 fi
38138 fi
38139 ac_ct_NM=$ac_cv_prog_ac_ct_NM
38140 if test -n "$ac_ct_NM"; then
38141 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38142 echo "${ECHO_T}$ac_ct_NM" >&6
38143 else
38144 echo "$as_me:$LINENO: result: no" >&5
38145 echo "${ECHO_T}no" >&6
38146 fi
38147
38148 NM=$ac_ct_NM
38149 else
38150 NM="$ac_cv_prog_NM"
38151 fi
38152
38153
38154 case ${BAKEFILE_HOST} in
38155 *-hp-hpux* )
38156 INSTALL_DIR="mkdir"
38157 ;;
38158 *) INSTALL_DIR="$INSTALL -d"
38159 ;;
38160 esac
38161
38162
38163 LDFLAGS_GUI=
38164 case ${BAKEFILE_HOST} in
38165 *-*-cygwin* | *-*-mingw32* )
38166 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
38167 esac
38168
38169
38170 fi
38171
38172 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38173 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38174 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38175 echo $ECHO_N "(cached) $ECHO_C" >&6
38176 else
38177
38178 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38179 egrep -s GNU > /dev/null); then
38180 bakefile_cv_prog_makeisgnu="yes"
38181 else
38182 bakefile_cv_prog_makeisgnu="no"
38183 fi
38184
38185 fi
38186 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38187 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38188
38189 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38190 IF_GNU_MAKE=""
38191 else
38192 IF_GNU_MAKE="#"
38193 fi
38194
38195
38196
38197 PLATFORM_UNIX=0
38198 PLATFORM_WIN32=0
38199 PLATFORM_MSDOS=0
38200 PLATFORM_MAC=0
38201 PLATFORM_MACOSX=0
38202 PLATFORM_OS2=0
38203
38204 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38205 case "${BAKEFILE_HOST}" in
38206 *-*-cygwin* | *-*-mingw32* )
38207 PLATFORM_WIN32=1
38208 ;;
38209 *-pc-msdosdjgpp )
38210 PLATFORM_MSDOS=1
38211 ;;
38212 *-pc-os2_emx | *-pc-os2-emx )
38213 PLATFORM_OS2=1
38214 ;;
38215 powerpc-*-darwin* )
38216 PLATFORM_MAC=1
38217 PLATFORM_MACOSX=1
38218 ;;
38219 * )
38220 PLATFORM_UNIX=1
38221 ;;
38222 esac
38223 else
38224 case "$BAKEFILE_FORCE_PLATFORM" in
38225 win32 )
38226 PLATFORM_WIN32=1
38227 ;;
38228 msdos )
38229 PLATFORM_MSDOS=1
38230 ;;
38231 os2 )
38232 PLATFORM_OS2=1
38233 ;;
38234 darwin )
38235 PLATFORM_MAC=1
38236 PLATFORM_MACOSX=1
38237 ;;
38238 unix )
38239 PLATFORM_UNIX=1
38240 ;;
38241 * )
38242 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38243 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38244 { (exit 1); exit 1; }; }
38245 ;;
38246 esac
38247 fi
38248
38249
38250
38251
38252
38253
38254
38255
38256
38257 SO_SUFFIX="so"
38258 SO_SUFFIX_MODULE="so"
38259 EXEEXT=""
38260 LIBPREFIX=lib
38261 DLLPREFIX=lib
38262 DLLPREFIX_MODULE=
38263
38264 case "${BAKEFILE_HOST}" in
38265 *-hp-hpux* )
38266 SO_SUFFIX="sl"
38267 SO_SUFFIX_MODULE="sl"
38268 ;;
38269 *-*-aix* )
38270 SO_SUFFIX="a"
38271 SO_SUFFIX_MODULE="a"
38272 ;;
38273 *-*-cygwin* | *-*-mingw32* )
38274 SO_SUFFIX="dll"
38275 SO_SUFFIX_MODULE="dll"
38276 EXEEXT=".exe"
38277 DLLPREFIX=""
38278 ;;
38279 *-pc-msdosdjgpp )
38280 EXEEXT=".exe"
38281 DLLPREFIX=""
38282 ;;
38283 *-pc-os2_emx | *-pc-os2-emx )
38284 EXEEXT=".exe"
38285 DLLPREFIX=""
38286 LIBPREFIX=""
38287 ;;
38288 powerpc-*-darwin* )
38289 SO_SUFFIX="dylib"
38290 SO_SUFFIX_MODULE="bundle"
38291 ;;
38292 esac
38293
38294
38295
38296
38297
38298
38299
38300
38301
38302 SHARED_LD_CC="\$(CC) -shared -o"
38303 SHARED_LD_CXX="\$(CXX) -shared -o"
38304
38305 if test "x$GCC" = "xyes"; then
38306 PIC_FLAG="-fPIC"
38307 fi
38308
38309 case "${BAKEFILE_HOST}" in
38310 *-hp-hpux* )
38311 if test "x$GCC" = "xyes"; then
38312 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38313 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38314 else
38315 LDFLAGS="$LDFLAGS -L/usr/lib"
38316
38317 SHARED_LD_CC="${CC} -b -o"
38318 SHARED_LD_CXX="${CXX} -b -o"
38319 PIC_FLAG="+Z"
38320 fi
38321 ;;
38322
38323 *-*-linux* )
38324 if test "x$GCC" != "xyes"; then
38325 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38326 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38327 if test "${bakefile_cv_prog_icc+set}" = set; then
38328 echo $ECHO_N "(cached) $ECHO_C" >&6
38329 else
38330
38331 cat >conftest.$ac_ext <<_ACEOF
38332 /* confdefs.h. */
38333 _ACEOF
38334 cat confdefs.h >>conftest.$ac_ext
38335 cat >>conftest.$ac_ext <<_ACEOF
38336 /* end confdefs.h. */
38337
38338 int
38339 main ()
38340 {
38341
38342 #ifndef __INTEL_COMPILER
38343 #error Not icc
38344 #endif
38345
38346 ;
38347 return 0;
38348 }
38349 _ACEOF
38350 rm -f conftest.$ac_objext
38351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38352 (eval $ac_compile) 2>conftest.er1
38353 ac_status=$?
38354 grep -v '^ *+' conftest.er1 >conftest.err
38355 rm -f conftest.er1
38356 cat conftest.err >&5
38357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38358 (exit $ac_status); } &&
38359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38361 (eval $ac_try) 2>&5
38362 ac_status=$?
38363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38364 (exit $ac_status); }; } &&
38365 { ac_try='test -s conftest.$ac_objext'
38366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38367 (eval $ac_try) 2>&5
38368 ac_status=$?
38369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38370 (exit $ac_status); }; }; then
38371 bakefile_cv_prog_icc=yes
38372 else
38373 echo "$as_me: failed program was:" >&5
38374 sed 's/^/| /' conftest.$ac_ext >&5
38375
38376 bakefile_cv_prog_icc=no
38377
38378 fi
38379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38380
38381 fi
38382 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38383 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38384 if test "$bakefile_cv_prog_icc" = "yes"; then
38385 PIC_FLAG="-KPIC"
38386 fi
38387 fi
38388 ;;
38389
38390 *-*-solaris2* )
38391 if test "x$GCC" != xyes ; then
38392 SHARED_LD_CC="${CC} -G -o"
38393 SHARED_LD_CXX="${CXX} -G -o"
38394 PIC_FLAG="-KPIC"
38395 fi
38396 ;;
38397
38398 *-*-darwin* )
38399 CFLAGS="$CFLAGS -fno-common"
38400 CXXFLAGS="$CXXFLAGS -fno-common"
38401
38402
38403 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38404 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38405 if test "${wx_cv_gcc31+set}" = set; then
38406 echo $ECHO_N "(cached) $ECHO_C" >&6
38407 else
38408
38409 cat >conftest.$ac_ext <<_ACEOF
38410 /* confdefs.h. */
38411 _ACEOF
38412 cat confdefs.h >>conftest.$ac_ext
38413 cat >>conftest.$ac_ext <<_ACEOF
38414 /* end confdefs.h. */
38415
38416 int
38417 main ()
38418 {
38419
38420 #if (__GNUC__ < 3) || \
38421 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38422 #error old gcc
38423 #endif
38424
38425 ;
38426 return 0;
38427 }
38428 _ACEOF
38429 rm -f conftest.$ac_objext
38430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38431 (eval $ac_compile) 2>conftest.er1
38432 ac_status=$?
38433 grep -v '^ *+' conftest.er1 >conftest.err
38434 rm -f conftest.er1
38435 cat conftest.err >&5
38436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38437 (exit $ac_status); } &&
38438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38440 (eval $ac_try) 2>&5
38441 ac_status=$?
38442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38443 (exit $ac_status); }; } &&
38444 { ac_try='test -s conftest.$ac_objext'
38445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38446 (eval $ac_try) 2>&5
38447 ac_status=$?
38448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38449 (exit $ac_status); }; }; then
38450
38451 wx_cv_gcc31=yes
38452
38453 else
38454 echo "$as_me: failed program was:" >&5
38455 sed 's/^/| /' conftest.$ac_ext >&5
38456
38457
38458 wx_cv_gcc31=no
38459
38460
38461 fi
38462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38463
38464 fi
38465 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38466 echo "${ECHO_T}$wx_cv_gcc31" >&6
38467 if test "$wx_cv_gcc31" = "no"; then
38468 cat <<EOF >shared-ld-sh
38469 #!/bin/sh
38470 #-----------------------------------------------------------------------------
38471 #-- Name: distrib/mac/shared-ld-sh
38472 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38473 #-- Author: Gilles Depeyrot
38474 #-- Copyright: (c) 2002 Gilles Depeyrot
38475 #-- Licence: any use permitted
38476 #-----------------------------------------------------------------------------
38477
38478 verbose=0
38479 args=""
38480 objects=""
38481 linking_flag="-dynamiclib"
38482
38483 while test \${#} -gt 0; do
38484 case \${1} in
38485
38486 -v)
38487 verbose=1
38488 ;;
38489
38490 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38491 # collect these options and values
38492 args="\${args} \${1} \${2}"
38493 shift
38494 ;;
38495
38496 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38497 # collect these options
38498 args="\${args} \${1}"
38499 ;;
38500
38501 -dynamiclib|-bundle)
38502 linking_flag="\${1}"
38503 ;;
38504
38505 -*)
38506 echo "shared-ld: unhandled option '\${1}'"
38507 exit 1
38508 ;;
38509
38510 *.o | *.a | *.dylib)
38511 # collect object files
38512 objects="\${objects} \${1}"
38513 ;;
38514
38515 *)
38516 echo "shared-ld: unhandled argument '\${1}'"
38517 exit 1
38518 ;;
38519
38520 esac
38521 shift
38522 done
38523
38524 #
38525 # Link one module containing all the others
38526 #
38527 if test \${verbose} = 1; then
38528 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
38529 fi
38530 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
38531 status=\$?
38532 if test \${status} != 0; then
38533 exit \${status}
38534 fi
38535
38536 #
38537 # Link the shared library from the single module created
38538 #
38539 if test \${verbose} = 1; then
38540 echo "cc \${linking_flag} master.\$\$.o \${args}"
38541 fi
38542 c++ \${linking_flag} master.\$\$.o \${args}
38543 status=\$?
38544 if test \${status} != 0; then
38545 exit \${status}
38546 fi
38547
38548 #
38549 # Remove intermediate module
38550 #
38551 rm -f master.\$\$.o
38552
38553 exit 0
38554 EOF
38555 chmod +x shared-ld-sh
38556
38557 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38558 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38559 SHARED_LD_CXX="$SHARED_LD_CC"
38560 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38561 else
38562 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38563 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38564 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38565 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38566 fi
38567
38568 PIC_FLAG="-dynamic -fPIC"
38569 ;;
38570
38571 *-*-aix* )
38572 if test "x$GCC" != "xyes"; then
38573 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38574 set dummy makeC++SharedLib; ac_word=$2
38575 echo "$as_me:$LINENO: checking for $ac_word" >&5
38576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38577 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38578 echo $ECHO_N "(cached) $ECHO_C" >&6
38579 else
38580 if test -n "$AIX_CXX_LD"; then
38581 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38582 else
38583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38584 for as_dir in $PATH
38585 do
38586 IFS=$as_save_IFS
38587 test -z "$as_dir" && as_dir=.
38588 for ac_exec_ext in '' $ac_executable_extensions; do
38589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38590 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38592 break 2
38593 fi
38594 done
38595 done
38596
38597 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38598 fi
38599 fi
38600 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38601 if test -n "$AIX_CXX_LD"; then
38602 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38603 echo "${ECHO_T}$AIX_CXX_LD" >&6
38604 else
38605 echo "$as_me:$LINENO: result: no" >&5
38606 echo "${ECHO_T}no" >&6
38607 fi
38608
38609 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38610 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38611 fi
38612 ;;
38613
38614 *-*-beos* )
38615 SHARED_LD_CC="${LD} -shared -o"
38616 SHARED_LD_CXX="${LD} -shared -o"
38617 ;;
38618
38619 *-*-irix* )
38620 if test "x$GCC" != "xyes"; then
38621 PIC_FLAG="-KPIC"
38622 fi
38623 ;;
38624
38625 *-*-cygwin* | *-*-mingw32* )
38626 PIC_FLAG=""
38627 ;;
38628
38629 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
38630 *-*-sunos4* | \
38631 *-*-osf* | \
38632 *-*-dgux5* | \
38633 *-pc-os2_emx | *-pc-os2-emx | \
38634 *-*-sysv5* )
38635 ;;
38636
38637 *)
38638 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
38639 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
38640 { (exit 1); exit 1; }; }
38641 esac
38642
38643 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
38644 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
38645 fi
38646 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
38647 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
38648 fi
38649
38650
38651
38652
38653
38654
38655
38656
38657 USE_SOVERSION=0
38658 USE_SOVERLINUX=0
38659 USE_SOVERSOLARIS=0
38660 USE_SOSYMLINKS=0
38661 USE_MACVERSION=0
38662 SONAME_FLAG=
38663
38664 case "${BAKEFILE_HOST}" in
38665 *-*-linux* )
38666 SONAME_FLAG="-Wl,-soname,"
38667 USE_SOVERSION=1
38668 USE_SOVERLINUX=1
38669 USE_SOSYMLINKS=1
38670 ;;
38671
38672 *-*-solaris2* )
38673 SONAME_FLAG="-h "
38674 USE_SOVERSION=1
38675 USE_SOVERSOLARIS=1
38676 USE_SOSYMLINKS=1
38677 ;;
38678
38679 *-*-darwin* )
38680 USE_MACVERSION=1
38681 USE_SOVERSION=1
38682 USE_SOSYMLINKS=1
38683 ;;
38684 esac
38685
38686
38687
38688
38689
38690
38691
38692
38693
38694 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
38695 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
38696 DEPS_TRACKING=0
38697
38698 if test "x$GCC" = "xyes"; then
38699 DEPSMODE=gcc
38700 DEPS_TRACKING=1
38701 case "${BAKEFILE_HOST}" in
38702 powerpc-*-darwin* )
38703 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
38704 ;;
38705 * )
38706 DEPSFLAG_GCC="-MMD"
38707 ;;
38708 esac
38709 echo "$as_me:$LINENO: result: gcc" >&5
38710 echo "${ECHO_T}gcc" >&6
38711 else
38712 echo "$as_me:$LINENO: result: none" >&5
38713 echo "${ECHO_T}none" >&6
38714 fi
38715
38716 if test $DEPS_TRACKING = 1 ; then
38717 cat <<EOF >bk-deps
38718 #!/bin/sh
38719
38720 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38721 # script. It is used to track C/C++ files dependencies in portable way.
38722 #
38723 # Permission is given to use this file in any way.
38724
38725 DEPSMODE=$DEPSMODE
38726 DEPSDIR=.deps
38727 DEPSFLAG_GCC="$DEPSFLAG_GCC"
38728
38729 mkdir -p \$DEPSDIR
38730
38731 if test \$DEPSMODE = gcc ; then
38732 \${*} \${DEPSFLAG_GCC}
38733 status=\${?}
38734 if test \${status} != 0 ; then
38735 exit \${status}
38736 fi
38737 # move created file to the location we want it in:
38738 while test \${#} -gt 0; do
38739 case "\${1}" in
38740 -o )
38741 shift
38742 objfile=\${1}
38743 ;;
38744 -* )
38745 ;;
38746 * )
38747 srcfile=\${1}
38748 ;;
38749 esac
38750 shift
38751 done
38752 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
38753 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
38754 if test -f \$depfile ; then
38755 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
38756 rm -f \$depfile
38757 else
38758 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
38759 if test -f \$depfile ; then
38760 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
38761 rm -f \$depfile
38762 fi
38763 fi
38764 exit 0
38765 else
38766 \${*}
38767 exit \${?}
38768 fi
38769 EOF
38770 chmod +x bk-deps
38771 fi
38772
38773
38774
38775
38776 RESCOMP=
38777 SETFILE=
38778
38779 case ${BAKEFILE_HOST} in
38780 *-*-cygwin* | *-*-mingw32* )
38781 if test "$build" != "$host" ; then
38782 RESCOMP=$host_alias-windres
38783 else
38784 # Extract the first word of "windres", so it can be a program name with args.
38785 set dummy windres; ac_word=$2
38786 echo "$as_me:$LINENO: checking for $ac_word" >&5
38787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38788 if test "${ac_cv_prog_RESCOMP+set}" = set; then
38789 echo $ECHO_N "(cached) $ECHO_C" >&6
38790 else
38791 if test -n "$RESCOMP"; then
38792 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
38793 else
38794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38795 for as_dir in $PATH
38796 do
38797 IFS=$as_save_IFS
38798 test -z "$as_dir" && as_dir=.
38799 for ac_exec_ext in '' $ac_executable_extensions; do
38800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38801 ac_cv_prog_RESCOMP="windres"
38802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38803 break 2
38804 fi
38805 done
38806 done
38807
38808 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
38809 fi
38810 fi
38811 RESCOMP=$ac_cv_prog_RESCOMP
38812 if test -n "$RESCOMP"; then
38813 echo "$as_me:$LINENO: result: $RESCOMP" >&5
38814 echo "${ECHO_T}$RESCOMP" >&6
38815 else
38816 echo "$as_me:$LINENO: result: no" >&5
38817 echo "${ECHO_T}no" >&6
38818 fi
38819
38820 fi
38821 ;;
38822
38823 *-*-darwin* )
38824 # Extract the first word of "Rez", so it can be a program name with args.
38825 set dummy Rez; ac_word=$2
38826 echo "$as_me:$LINENO: checking for $ac_word" >&5
38827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38828 if test "${ac_cv_prog_RESCOMP+set}" = set; then
38829 echo $ECHO_N "(cached) $ECHO_C" >&6
38830 else
38831 if test -n "$RESCOMP"; then
38832 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
38833 else
38834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38835 for as_dir in $PATH
38836 do
38837 IFS=$as_save_IFS
38838 test -z "$as_dir" && as_dir=.
38839 for ac_exec_ext in '' $ac_executable_extensions; do
38840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38841 ac_cv_prog_RESCOMP="Rez"
38842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38843 break 2
38844 fi
38845 done
38846 done
38847
38848 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
38849 fi
38850 fi
38851 RESCOMP=$ac_cv_prog_RESCOMP
38852 if test -n "$RESCOMP"; then
38853 echo "$as_me:$LINENO: result: $RESCOMP" >&5
38854 echo "${ECHO_T}$RESCOMP" >&6
38855 else
38856 echo "$as_me:$LINENO: result: no" >&5
38857 echo "${ECHO_T}no" >&6
38858 fi
38859
38860 # Extract the first word of "SetFile", so it can be a program name with args.
38861 set dummy SetFile; ac_word=$2
38862 echo "$as_me:$LINENO: checking for $ac_word" >&5
38863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38864 if test "${ac_cv_prog_SETFILE+set}" = set; then
38865 echo $ECHO_N "(cached) $ECHO_C" >&6
38866 else
38867 if test -n "$SETFILE"; then
38868 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
38869 else
38870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38871 for as_dir in $PATH
38872 do
38873 IFS=$as_save_IFS
38874 test -z "$as_dir" && as_dir=.
38875 for ac_exec_ext in '' $ac_executable_extensions; do
38876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38877 ac_cv_prog_SETFILE="SetFile"
38878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38879 break 2
38880 fi
38881 done
38882 done
38883
38884 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
38885 fi
38886 fi
38887 SETFILE=$ac_cv_prog_SETFILE
38888 if test -n "$SETFILE"; then
38889 echo "$as_me:$LINENO: result: $SETFILE" >&5
38890 echo "${ECHO_T}$SETFILE" >&6
38891 else
38892 echo "$as_me:$LINENO: result: no" >&5
38893 echo "${ECHO_T}no" >&6
38894 fi
38895
38896 ;;
38897 esac
38898
38899
38900
38901
38902
38903
38904
38905
38906 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
38907 if test "${enable_precomp_headers+set}" = set; then
38908 enableval="$enable_precomp_headers"
38909 bk_use_pch="$enableval"
38910 fi;
38911
38912 GCC_PCH=0
38913
38914 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
38915 if test "x$GCC" = "xyes"; then
38916 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
38917 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
38918 cat >conftest.$ac_ext <<_ACEOF
38919 /* confdefs.h. */
38920 _ACEOF
38921 cat confdefs.h >>conftest.$ac_ext
38922 cat >>conftest.$ac_ext <<_ACEOF
38923 /* end confdefs.h. */
38924
38925 int
38926 main ()
38927 {
38928
38929 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
38930 #error "no pch support"
38931 #endif
38932 #if (__GNUC__ < 3)
38933 #error "no pch support"
38934 #endif
38935 #if (__GNUC__ == 3) && \
38936 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
38937 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
38938 #error "no pch support"
38939 #endif
38940
38941 ;
38942 return 0;
38943 }
38944 _ACEOF
38945 rm -f conftest.$ac_objext
38946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38947 (eval $ac_compile) 2>conftest.er1
38948 ac_status=$?
38949 grep -v '^ *+' conftest.er1 >conftest.err
38950 rm -f conftest.er1
38951 cat conftest.err >&5
38952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38953 (exit $ac_status); } &&
38954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38956 (eval $ac_try) 2>&5
38957 ac_status=$?
38958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38959 (exit $ac_status); }; } &&
38960 { ac_try='test -s conftest.$ac_objext'
38961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38962 (eval $ac_try) 2>&5
38963 ac_status=$?
38964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38965 (exit $ac_status); }; }; then
38966
38967 echo "$as_me:$LINENO: result: yes" >&5
38968 echo "${ECHO_T}yes" >&6
38969 CPPFLAGS="-fpch-deps $CPPFLAGS"
38970 GCC_PCH=1
38971
38972 else
38973 echo "$as_me: failed program was:" >&5
38974 sed 's/^/| /' conftest.$ac_ext >&5
38975
38976
38977 echo "$as_me:$LINENO: result: no" >&5
38978 echo "${ECHO_T}no" >&6
38979
38980 fi
38981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38982 if test $GCC_PCH = 1 ; then
38983 cat <<EOF >bk-make-pch
38984 #!/bin/sh
38985
38986 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38987 # script. It is used to generated precompiled headers.
38988 #
38989 # Permission is given to use this file in any way.
38990
38991 outfile="\${1}"
38992 header="\${2}"
38993 shift
38994 shift
38995
38996 compiler=
38997 headerfile=
38998 while test \${#} -gt 0; do
38999 case "\${1}" in
39000 -I* )
39001 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39002 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39003 headerfile="\${incdir}/\${header}"
39004 fi
39005 ;;
39006 esac
39007 compiler="\${compiler} \${1}"
39008 shift
39009 done
39010
39011 if test "x\${headerfile}" = "x" ; then
39012 echo "error: can't find header \${header} in include paths" >2
39013 else
39014 if test -f \${outfile} ; then
39015 rm -f \${outfile}
39016 else
39017 mkdir -p \`dirname \${outfile}\`
39018 fi
39019 depsfile=".deps/\`basename \${outfile}\`.d"
39020 mkdir -p .deps
39021 # can do this because gcc is >= 3.4:
39022 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39023 exit \${?}
39024 fi
39025 EOF
39026 chmod +x bk-make-pch
39027 fi
39028 fi
39029 fi
39030
39031
39032
39033
39034
39035 COND_BUILD_DEBUG="#"
39036 if test "x$BUILD" = "xdebug" ; then
39037 COND_BUILD_DEBUG=""
39038 fi
39039
39040 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39041 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39042 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39043 fi
39044
39045 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39046 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39047 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39048 fi
39049
39050 COND_BUILD_DEBUG_UNICODE_0="#"
39051 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39052 COND_BUILD_DEBUG_UNICODE_0=""
39053 fi
39054
39055 COND_BUILD_DEBUG_UNICODE_1="#"
39056 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39057 COND_BUILD_DEBUG_UNICODE_1=""
39058 fi
39059
39060 COND_BUILD_RELEASE="#"
39061 if test "x$BUILD" = "xrelease" ; then
39062 COND_BUILD_RELEASE=""
39063 fi
39064
39065 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39066 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39067 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39068 fi
39069
39070 COND_BUILD_RELEASE_UNICODE_0="#"
39071 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39072 COND_BUILD_RELEASE_UNICODE_0=""
39073 fi
39074
39075 COND_BUILD_RELEASE_UNICODE_1="#"
39076 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39077 COND_BUILD_RELEASE_UNICODE_1=""
39078 fi
39079
39080 COND_DEBUG_FLAG_1="#"
39081 if test "x$DEBUG_FLAG" = "x1" ; then
39082 COND_DEBUG_FLAG_1=""
39083 fi
39084
39085 COND_DEBUG_INFO_0="#"
39086 if test "x$DEBUG_INFO" = "x0" ; then
39087 COND_DEBUG_INFO_0=""
39088 fi
39089
39090 COND_DEBUG_INFO_1="#"
39091 if test "x$DEBUG_INFO" = "x1" ; then
39092 COND_DEBUG_INFO_1=""
39093 fi
39094
39095 COND_DEPS_TRACKING_0="#"
39096 if test "x$DEPS_TRACKING" = "x0" ; then
39097 COND_DEPS_TRACKING_0=""
39098 fi
39099
39100 COND_DEPS_TRACKING_1="#"
39101 if test "x$DEPS_TRACKING" = "x1" ; then
39102 COND_DEPS_TRACKING_1=""
39103 fi
39104
39105 COND_GCC_PCH_1="#"
39106 if test "x$GCC_PCH" = "x1" ; then
39107 COND_GCC_PCH_1=""
39108 fi
39109
39110 COND_MONOLITHIC_0="#"
39111 if test "x$MONOLITHIC" = "x0" ; then
39112 COND_MONOLITHIC_0=""
39113 fi
39114
39115 COND_MONOLITHIC_0_SHARED_0="#"
39116 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39117 COND_MONOLITHIC_0_SHARED_0=""
39118 fi
39119
39120 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39121 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39122 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39123 fi
39124
39125 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39126 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39127 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39128 fi
39129
39130 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39131 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39132 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39133 fi
39134
39135 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39136 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39137 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39138 fi
39139
39140 COND_MONOLITHIC_0_SHARED_1="#"
39141 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39142 COND_MONOLITHIC_0_SHARED_1=""
39143 fi
39144
39145 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39146 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39147 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39148 fi
39149
39150 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39151 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39152 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39153 fi
39154
39155 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39156 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39157 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39158 fi
39159
39160 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39161 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39162 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39163 fi
39164
39165 COND_MONOLITHIC_0_USE_ODBC_1="#"
39166 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39167 COND_MONOLITHIC_0_USE_ODBC_1=""
39168 fi
39169
39170 COND_MONOLITHIC_1="#"
39171 if test "x$MONOLITHIC" = "x1" ; then
39172 COND_MONOLITHIC_1=""
39173 fi
39174
39175 COND_MONOLITHIC_1_SHARED_0="#"
39176 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39177 COND_MONOLITHIC_1_SHARED_0=""
39178 fi
39179
39180 COND_MONOLITHIC_1_SHARED_1="#"
39181 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39182 COND_MONOLITHIC_1_SHARED_1=""
39183 fi
39184
39185 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39186 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39187 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39188 fi
39189
39190 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39191 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39192 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39193 fi
39194
39195 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39196 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39197 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39198 fi
39199
39200 COND_PLATFORM_MACOSX_1="#"
39201 if test "x$PLATFORM_MACOSX" = "x1" ; then
39202 COND_PLATFORM_MACOSX_1=""
39203 fi
39204
39205 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39206 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39207 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39208 fi
39209
39210 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39211 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39212 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39213 fi
39214
39215 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39216 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39217 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39218 fi
39219
39220 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39221 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39222 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39223 fi
39224
39225 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39226 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39227 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39228 fi
39229
39230 COND_PLATFORM_MAC_1="#"
39231 if test "x$PLATFORM_MAC" = "x1" ; then
39232 COND_PLATFORM_MAC_1=""
39233 fi
39234
39235 COND_PLATFORM_OS2_1="#"
39236 if test "x$PLATFORM_OS2" = "x1" ; then
39237 COND_PLATFORM_OS2_1=""
39238 fi
39239
39240 COND_PLATFORM_UNIX_0="#"
39241 if test "x$PLATFORM_UNIX" = "x0" ; then
39242 COND_PLATFORM_UNIX_0=""
39243 fi
39244
39245 COND_PLATFORM_UNIX_1="#"
39246 if test "x$PLATFORM_UNIX" = "x1" ; then
39247 COND_PLATFORM_UNIX_1=""
39248 fi
39249
39250 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39251 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39252 COND_PLATFORM_UNIX_1_USE_GUI_1=""
39253 fi
39254
39255 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39256 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
39257 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
39258 fi
39259
39260 COND_PLATFORM_WIN32_0="#"
39261 if test "x$PLATFORM_WIN32" = "x0" ; then
39262 COND_PLATFORM_WIN32_0=""
39263 fi
39264
39265 COND_PLATFORM_WIN32_1="#"
39266 if test "x$PLATFORM_WIN32" = "x1" ; then
39267 COND_PLATFORM_WIN32_1=""
39268 fi
39269
39270 COND_SHARED_0="#"
39271 if test "x$SHARED" = "x0" ; then
39272 COND_SHARED_0=""
39273 fi
39274
39275 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
39276 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39277 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
39278 fi
39279
39280 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39281 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39282 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39283 fi
39284
39285 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39286 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39287 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39288 fi
39289
39290 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39291 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39292 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39293 fi
39294
39295 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
39296 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
39297 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
39298 fi
39299
39300 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
39301 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
39302 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
39303 fi
39304
39305 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
39306 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
39307 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
39308 fi
39309
39310 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
39311 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
39312 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
39313 fi
39314
39315 COND_SHARED_1="#"
39316 if test "x$SHARED" = "x1" ; then
39317 COND_SHARED_1=""
39318 fi
39319
39320 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
39321 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39322 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
39323 fi
39324
39325 COND_TOOLKIT_COCOA="#"
39326 if test "x$TOOLKIT" = "xCOCOA" ; then
39327 COND_TOOLKIT_COCOA=""
39328 fi
39329
39330 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
39331 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39332 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
39333 fi
39334
39335 COND_TOOLKIT_GTK="#"
39336 if test "x$TOOLKIT" = "xGTK" ; then
39337 COND_TOOLKIT_GTK=""
39338 fi
39339
39340 COND_TOOLKIT_GTK_USE_GUI_1="#"
39341 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
39342 COND_TOOLKIT_GTK_USE_GUI_1=""
39343 fi
39344
39345 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
39346 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39347 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
39348 fi
39349
39350 COND_TOOLKIT_MAC="#"
39351 if test "x$TOOLKIT" = "xMAC" ; then
39352 COND_TOOLKIT_MAC=""
39353 fi
39354
39355 COND_TOOLKIT_MAC_USE_GUI_1="#"
39356 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
39357 COND_TOOLKIT_MAC_USE_GUI_1=""
39358 fi
39359
39360 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
39361 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39362 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
39363 fi
39364
39365 COND_TOOLKIT_MGL="#"
39366 if test "x$TOOLKIT" = "xMGL" ; then
39367 COND_TOOLKIT_MGL=""
39368 fi
39369
39370 COND_TOOLKIT_MGL_USE_GUI_1="#"
39371 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
39372 COND_TOOLKIT_MGL_USE_GUI_1=""
39373 fi
39374
39375 COND_TOOLKIT_MOTIF="#"
39376 if test "x$TOOLKIT" = "xMOTIF" ; then
39377 COND_TOOLKIT_MOTIF=""
39378 fi
39379
39380 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
39381 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
39382 COND_TOOLKIT_MOTIF_USE_GUI_1=""
39383 fi
39384
39385 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
39386 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39387 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
39388 fi
39389
39390 COND_TOOLKIT_MSW="#"
39391 if test "x$TOOLKIT" = "xMSW" ; then
39392 COND_TOOLKIT_MSW=""
39393 fi
39394
39395 COND_TOOLKIT_MSW_USE_GUI_1="#"
39396 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
39397 COND_TOOLKIT_MSW_USE_GUI_1=""
39398 fi
39399
39400 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
39401 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39402 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
39403 fi
39404
39405 COND_TOOLKIT_PM="#"
39406 if test "x$TOOLKIT" = "xPM" ; then
39407 COND_TOOLKIT_PM=""
39408 fi
39409
39410 COND_TOOLKIT_PM_USE_GUI_1="#"
39411 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
39412 COND_TOOLKIT_PM_USE_GUI_1=""
39413 fi
39414
39415 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
39416 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39417 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
39418 fi
39419
39420 COND_TOOLKIT_X11="#"
39421 if test "x$TOOLKIT" = "xX11" ; then
39422 COND_TOOLKIT_X11=""
39423 fi
39424
39425 COND_TOOLKIT_X11_USE_GUI_1="#"
39426 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
39427 COND_TOOLKIT_X11_USE_GUI_1=""
39428 fi
39429
39430 COND_UNICODE_1="#"
39431 if test "x$UNICODE" = "x1" ; then
39432 COND_UNICODE_1=""
39433 fi
39434
39435 COND_USE_EXCEPTIONS_0="#"
39436 if test "x$USE_EXCEPTIONS" = "x0" ; then
39437 COND_USE_EXCEPTIONS_0=""
39438 fi
39439
39440 COND_USE_EXCEPTIONS_1="#"
39441 if test "x$USE_EXCEPTIONS" = "x1" ; then
39442 COND_USE_EXCEPTIONS_1=""
39443 fi
39444
39445 COND_USE_GUI_0="#"
39446 if test "x$USE_GUI" = "x0" ; then
39447 COND_USE_GUI_0=""
39448 fi
39449
39450 COND_USE_GUI_1="#"
39451 if test "x$USE_GUI" = "x1" ; then
39452 COND_USE_GUI_1=""
39453 fi
39454
39455 COND_USE_GUI_1_WXUNIV_0="#"
39456 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39457 COND_USE_GUI_1_WXUNIV_0=""
39458 fi
39459
39460 COND_USE_GUI_1_WXUNIV_1="#"
39461 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
39462 COND_USE_GUI_1_WXUNIV_1=""
39463 fi
39464
39465 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39466 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39467 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39468 fi
39469
39470 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39471 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39472 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39473 fi
39474
39475 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39476 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39477 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39478 fi
39479
39480 COND_USE_ODBC_1="#"
39481 if test "x$USE_ODBC" = "x1" ; then
39482 COND_USE_ODBC_1=""
39483 fi
39484
39485 COND_USE_PLUGINS_0="#"
39486 if test "x$USE_PLUGINS" = "x0" ; then
39487 COND_USE_PLUGINS_0=""
39488 fi
39489
39490 COND_USE_SOSYMLINKS_1="#"
39491 if test "x$USE_SOSYMLINKS" = "x1" ; then
39492 COND_USE_SOSYMLINKS_1=""
39493 fi
39494
39495 COND_USE_SOVERLINUX_1="#"
39496 if test "x$USE_SOVERLINUX" = "x1" ; then
39497 COND_USE_SOVERLINUX_1=""
39498 fi
39499
39500 COND_USE_SOVERSION_0="#"
39501 if test "x$USE_SOVERSION" = "x0" ; then
39502 COND_USE_SOVERSION_0=""
39503 fi
39504
39505 COND_USE_SOVERSOLARIS_1="#"
39506 if test "x$USE_SOVERSOLARIS" = "x1" ; then
39507 COND_USE_SOVERSOLARIS_1=""
39508 fi
39509
39510 COND_WITH_PLUGIN_SDL_1="#"
39511 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
39512 COND_WITH_PLUGIN_SDL_1=""
39513 fi
39514
39515 COND_WITH_SDL_1="#"
39516 if test "x$WITH_SDL" = "x1" ; then
39517 COND_WITH_SDL_1=""
39518 fi
39519
39520 COND_WXUNIV_1="#"
39521 if test "x$WXUNIV" = "x1" ; then
39522 COND_WXUNIV_1=""
39523 fi
39524
39525 COND_WXUSE_EXPAT_BUILTIN="#"
39526 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
39527 COND_WXUSE_EXPAT_BUILTIN=""
39528 fi
39529
39530 COND_WXUSE_LIBJPEG_BUILTIN="#"
39531 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39532 COND_WXUSE_LIBJPEG_BUILTIN=""
39533 fi
39534
39535 COND_WXUSE_LIBPNG_BUILTIN="#"
39536 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39537 COND_WXUSE_LIBPNG_BUILTIN=""
39538 fi
39539
39540 COND_WXUSE_LIBTIFF_BUILTIN="#"
39541 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39542 COND_WXUSE_LIBTIFF_BUILTIN=""
39543 fi
39544
39545 COND_WXUSE_ODBC_BUILTIN="#"
39546 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
39547 COND_WXUSE_ODBC_BUILTIN=""
39548 fi
39549
39550 COND_WXUSE_REGEX_BUILTIN="#"
39551 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
39552 COND_WXUSE_REGEX_BUILTIN=""
39553 fi
39554
39555 COND_WXUSE_ZLIB_BUILTIN="#"
39556 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
39557 COND_WXUSE_ZLIB_BUILTIN=""
39558 fi
39559
39560
39561
39562
39563
39564 if test $GCC_PCH = 1 ; then
39565 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
39566 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
39567 else
39568 case "${host}" in
39569 powerpc-*-darwin* )
39570 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
39571 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
39572 ;;
39573 esac
39574 fi
39575
39576
39577 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
39578
39579
39580
39581
39582
39583
39584
39585
39586
39587
39588
39589
39590
39591
39592
39593
39594
39595
39596
39597
39598
39599
39600
39601
39602
39603
39604
39605
39606
39607
39608
39609
39610
39611
39612
39613
39614
39615
39616
39617
39618
39619
39620
39621
39622
39623
39624
39625
39626
39627
39628
39629
39630
39631
39632
39633
39634
39635
39636
39637
39638
39639
39640
39641
39642
39643
39644
39645
39646
39647
39648
39649
39650
39651
39652
39653
39654
39655
39656
39657
39658
39659
39660
39661
39662
39663
39664
39665
39666
39667
39668
39669
39670
39671
39672
39673
39674
39675
39676
39677
39678 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39679 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
39680 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
39681 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39682 echo $ECHO_N "(cached) $ECHO_C" >&6
39683 else
39684 cat >conftest.make <<\_ACEOF
39685 all:
39686 @echo 'ac_maketemp="$(MAKE)"'
39687 _ACEOF
39688 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39689 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39690 if test -n "$ac_maketemp"; then
39691 eval ac_cv_prog_make_${ac_make}_set=yes
39692 else
39693 eval ac_cv_prog_make_${ac_make}_set=no
39694 fi
39695 rm -f conftest.make
39696 fi
39697 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39698 echo "$as_me:$LINENO: result: yes" >&5
39699 echo "${ECHO_T}yes" >&6
39700 SET_MAKE=
39701 else
39702 echo "$as_me:$LINENO: result: no" >&5
39703 echo "${ECHO_T}no" >&6
39704 SET_MAKE="MAKE=${MAKE-make}"
39705 fi
39706
39707
39708 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
39709 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
39710 fi
39711
39712 ac_config_headers="$ac_config_headers setup.h"
39713
39714
39715 ac_config_files="$ac_config_files wx-config version-script Makefile"
39716
39717
39718 ac_config_commands="$ac_config_commands default"
39719
39720
39721
39722 if test "$wxUSE_GUI" = "yes"; then
39723 SUBDIRS="samples demos utils contrib"
39724 else SUBDIRS="samples utils"
39725 fi
39726
39727 for subdir in `echo $SUBDIRS`; do
39728 if test -d ${srcdir}/${subdir} ; then
39729 if test "$wxUSE_GUI" = "yes"; then
39730 if test ${subdir} = "samples"; then
39731 makefiles="samples/Makefile.in $makefiles"
39732 for sample in `echo $SAMPLES_SUBDIRS`; do
39733 if test -d $srcdir/samples/$sample; then
39734 makefiles="samples/$sample/Makefile.in $makefiles"
39735 fi
39736 done
39737 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
39738 fi
39739 else if test ${subdir} = "samples"; then
39740 makefiles="samples/Makefile.in samples/console/Makefile.in"
39741 else makefiles="utils/HelpGen/Makefile.in \
39742 utils/HelpGen/src/Makefile.in \
39743 utils/tex2rtf/Makefile.in \
39744 utils/tex2rtf/src/Makefile.in"
39745 fi
39746 fi
39747
39748 for mkin in $makefiles ; do
39749 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
39750 ac_config_files="$ac_config_files $mk"
39751
39752 done
39753 fi
39754 done
39755
39756
39757 cat >confcache <<\_ACEOF
39758 # This file is a shell script that caches the results of configure
39759 # tests run on this system so they can be shared between configure
39760 # scripts and configure runs, see configure's option --config-cache.
39761 # It is not useful on other systems. If it contains results you don't
39762 # want to keep, you may remove or edit it.
39763 #
39764 # config.status only pays attention to the cache file if you give it
39765 # the --recheck option to rerun configure.
39766 #
39767 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39768 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39769 # following values.
39770
39771 _ACEOF
39772
39773 # The following way of writing the cache mishandles newlines in values,
39774 # but we know of no workaround that is simple, portable, and efficient.
39775 # So, don't put newlines in cache variables' values.
39776 # Ultrix sh set writes to stderr and can't be redirected directly,
39777 # and sets the high bit in the cache file unless we assign to the vars.
39778 {
39779 (set) 2>&1 |
39780 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39781 *ac_space=\ *)
39782 # `set' does not quote correctly, so add quotes (double-quote
39783 # substitution turns \\\\ into \\, and sed turns \\ into \).
39784 sed -n \
39785 "s/'/'\\\\''/g;
39786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39787 ;;
39788 *)
39789 # `set' quotes correctly as required by POSIX, so do not add quotes.
39790 sed -n \
39791 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39792 ;;
39793 esac;
39794 } |
39795 sed '
39796 t clear
39797 : clear
39798 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39799 t end
39800 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39801 : end' >>confcache
39802 if diff $cache_file confcache >/dev/null 2>&1; then :; else
39803 if test -w $cache_file; then
39804 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39805 cat confcache >$cache_file
39806 else
39807 echo "not updating unwritable cache $cache_file"
39808 fi
39809 fi
39810 rm -f confcache
39811
39812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39813 # Let make expand exec_prefix.
39814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39815
39816 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39817 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39818 # trailing colons and then remove the whole line if VPATH becomes empty
39819 # (actually we leave an empty line to preserve line numbers).
39820 if test "x$srcdir" = x.; then
39821 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39822 s/:*\$(srcdir):*/:/;
39823 s/:*\${srcdir}:*/:/;
39824 s/:*@srcdir@:*/:/;
39825 s/^\([^=]*=[ ]*\):*/\1/;
39826 s/:*$//;
39827 s/^[^=]*=[ ]*$//;
39828 }'
39829 fi
39830
39831 DEFS=-DHAVE_CONFIG_H
39832
39833 ac_libobjs=
39834 ac_ltlibobjs=
39835 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39836 # 1. Remove the extension, and $U if already installed.
39837 ac_i=`echo "$ac_i" |
39838 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39839 # 2. Add them.
39840 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39841 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39842 done
39843 LIBOBJS=$ac_libobjs
39844
39845 LTLIBOBJS=$ac_ltlibobjs
39846
39847
39848
39849 : ${CONFIG_STATUS=./config.status}
39850 ac_clean_files_save=$ac_clean_files
39851 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39852 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39853 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39854 cat >$CONFIG_STATUS <<_ACEOF
39855 #! $SHELL
39856 # Generated by $as_me.
39857 # Run this file to recreate the current configuration.
39858 # Compiler output produced by configure, useful for debugging
39859 # configure, is in config.log if it exists.
39860
39861 debug=false
39862 ac_cs_recheck=false
39863 ac_cs_silent=false
39864 SHELL=\${CONFIG_SHELL-$SHELL}
39865 _ACEOF
39866
39867 cat >>$CONFIG_STATUS <<\_ACEOF
39868 ## --------------------- ##
39869 ## M4sh Initialization. ##
39870 ## --------------------- ##
39871
39872 # Be Bourne compatible
39873 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39874 emulate sh
39875 NULLCMD=:
39876 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39877 # is contrary to our usage. Disable this feature.
39878 alias -g '${1+"$@"}'='"$@"'
39879 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39880 set -o posix
39881 fi
39882 DUALCASE=1; export DUALCASE # for MKS sh
39883
39884 # Support unset when possible.
39885 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39886 as_unset=unset
39887 else
39888 as_unset=false
39889 fi
39890
39891
39892 # Work around bugs in pre-3.0 UWIN ksh.
39893 $as_unset ENV MAIL MAILPATH
39894 PS1='$ '
39895 PS2='> '
39896 PS4='+ '
39897
39898 # NLS nuisances.
39899 for as_var in \
39900 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39901 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39902 LC_TELEPHONE LC_TIME
39903 do
39904 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39905 eval $as_var=C; export $as_var
39906 else
39907 $as_unset $as_var
39908 fi
39909 done
39910
39911 # Required to use basename.
39912 if expr a : '\(a\)' >/dev/null 2>&1; then
39913 as_expr=expr
39914 else
39915 as_expr=false
39916 fi
39917
39918 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39919 as_basename=basename
39920 else
39921 as_basename=false
39922 fi
39923
39924
39925 # Name of the executable.
39926 as_me=`$as_basename "$0" ||
39927 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39928 X"$0" : 'X\(//\)$' \| \
39929 X"$0" : 'X\(/\)$' \| \
39930 . : '\(.\)' 2>/dev/null ||
39931 echo X/"$0" |
39932 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39933 /^X\/\(\/\/\)$/{ s//\1/; q; }
39934 /^X\/\(\/\).*/{ s//\1/; q; }
39935 s/.*/./; q'`
39936
39937
39938 # PATH needs CR, and LINENO needs CR and PATH.
39939 # Avoid depending upon Character Ranges.
39940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39943 as_cr_digits='0123456789'
39944 as_cr_alnum=$as_cr_Letters$as_cr_digits
39945
39946 # The user is always right.
39947 if test "${PATH_SEPARATOR+set}" != set; then
39948 echo "#! /bin/sh" >conf$$.sh
39949 echo "exit 0" >>conf$$.sh
39950 chmod +x conf$$.sh
39951 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39952 PATH_SEPARATOR=';'
39953 else
39954 PATH_SEPARATOR=:
39955 fi
39956 rm -f conf$$.sh
39957 fi
39958
39959
39960 as_lineno_1=$LINENO
39961 as_lineno_2=$LINENO
39962 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39963 test "x$as_lineno_1" != "x$as_lineno_2" &&
39964 test "x$as_lineno_3" = "x$as_lineno_2" || {
39965 # Find who we are. Look in the path if we contain no path at all
39966 # relative or not.
39967 case $0 in
39968 *[\\/]* ) as_myself=$0 ;;
39969 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39970 for as_dir in $PATH
39971 do
39972 IFS=$as_save_IFS
39973 test -z "$as_dir" && as_dir=.
39974 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39975 done
39976
39977 ;;
39978 esac
39979 # We did not find ourselves, most probably we were run as `sh COMMAND'
39980 # in which case we are not to be found in the path.
39981 if test "x$as_myself" = x; then
39982 as_myself=$0
39983 fi
39984 if test ! -f "$as_myself"; then
39985 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39986 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39987 { (exit 1); exit 1; }; }
39988 fi
39989 case $CONFIG_SHELL in
39990 '')
39991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39992 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39993 do
39994 IFS=$as_save_IFS
39995 test -z "$as_dir" && as_dir=.
39996 for as_base in sh bash ksh sh5; do
39997 case $as_dir in
39998 /*)
39999 if ("$as_dir/$as_base" -c '
40000 as_lineno_1=$LINENO
40001 as_lineno_2=$LINENO
40002 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40003 test "x$as_lineno_1" != "x$as_lineno_2" &&
40004 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
40005 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40006 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40007 CONFIG_SHELL=$as_dir/$as_base
40008 export CONFIG_SHELL
40009 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40010 fi;;
40011 esac
40012 done
40013 done
40014 ;;
40015 esac
40016
40017 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40018 # uniformly replaced by the line number. The first 'sed' inserts a
40019 # line-number line before each line; the second 'sed' does the real
40020 # work. The second script uses 'N' to pair each line-number line
40021 # with the numbered line, and appends trailing '-' during
40022 # substitution so that $LINENO is not a special case at line end.
40023 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40024 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
40025 sed '=' <$as_myself |
40026 sed '
40027 N
40028 s,$,-,
40029 : loop
40030 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40031 t loop
40032 s,-$,,
40033 s,^['$as_cr_digits']*\n,,
40034 ' >$as_me.lineno &&
40035 chmod +x $as_me.lineno ||
40036 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40037 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40038 { (exit 1); exit 1; }; }
40039
40040 # Don't try to exec as it changes $[0], causing all sort of problems
40041 # (the dirname of $[0] is not the place where we might find the
40042 # original and so on. Autoconf is especially sensible to this).
40043 . ./$as_me.lineno
40044 # Exit status is that of the last command.
40045 exit
40046 }
40047
40048
40049 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40050 *c*,-n*) ECHO_N= ECHO_C='
40051 ' ECHO_T=' ' ;;
40052 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40053 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
40054 esac
40055
40056 if expr a : '\(a\)' >/dev/null 2>&1; then
40057 as_expr=expr
40058 else
40059 as_expr=false
40060 fi
40061
40062 rm -f conf$$ conf$$.exe conf$$.file
40063 echo >conf$$.file
40064 if ln -s conf$$.file conf$$ 2>/dev/null; then
40065 # We could just check for DJGPP; but this test a) works b) is more generic
40066 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40067 if test -f conf$$.exe; then
40068 # Don't use ln at all; we don't have any links
40069 as_ln_s='cp -p'
40070 else
40071 as_ln_s='ln -s'
40072 fi
40073 elif ln conf$$.file conf$$ 2>/dev/null; then
40074 as_ln_s=ln
40075 else
40076 as_ln_s='cp -p'
40077 fi
40078 rm -f conf$$ conf$$.exe conf$$.file
40079
40080 if mkdir -p . 2>/dev/null; then
40081 as_mkdir_p=:
40082 else
40083 test -d ./-p && rmdir ./-p
40084 as_mkdir_p=false
40085 fi
40086
40087 as_executable_p="test -f"
40088
40089 # Sed expression to map a string onto a valid CPP name.
40090 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40091
40092 # Sed expression to map a string onto a valid variable name.
40093 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40094
40095
40096 # IFS
40097 # We need space, tab and new line, in precisely that order.
40098 as_nl='
40099 '
40100 IFS=" $as_nl"
40101
40102 # CDPATH.
40103 $as_unset CDPATH
40104
40105 exec 6>&1
40106
40107 # Open the log real soon, to keep \$[0] and so on meaningful, and to
40108 # report actual input values of CONFIG_FILES etc. instead of their
40109 # values after options handling. Logging --version etc. is OK.
40110 exec 5>>config.log
40111 {
40112 echo
40113 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40114 ## Running $as_me. ##
40115 _ASBOX
40116 } >&5
40117 cat >&5 <<_CSEOF
40118
40119 This file was extended by wxWindows $as_me 2.5.1, which was
40120 generated by GNU Autoconf 2.59. Invocation command line was
40121
40122 CONFIG_FILES = $CONFIG_FILES
40123 CONFIG_HEADERS = $CONFIG_HEADERS
40124 CONFIG_LINKS = $CONFIG_LINKS
40125 CONFIG_COMMANDS = $CONFIG_COMMANDS
40126 $ $0 $@
40127
40128 _CSEOF
40129 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40130 echo >&5
40131 _ACEOF
40132
40133 # Files that config.status was made for.
40134 if test -n "$ac_config_files"; then
40135 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40136 fi
40137
40138 if test -n "$ac_config_headers"; then
40139 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40140 fi
40141
40142 if test -n "$ac_config_links"; then
40143 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40144 fi
40145
40146 if test -n "$ac_config_commands"; then
40147 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40148 fi
40149
40150 cat >>$CONFIG_STATUS <<\_ACEOF
40151
40152 ac_cs_usage="\
40153 \`$as_me' instantiates files from templates according to the
40154 current configuration.
40155
40156 Usage: $0 [OPTIONS] [FILE]...
40157
40158 -h, --help print this help, then exit
40159 -V, --version print version number, then exit
40160 -q, --quiet do not print progress messages
40161 -d, --debug don't remove temporary files
40162 --recheck update $as_me by reconfiguring in the same conditions
40163 --file=FILE[:TEMPLATE]
40164 instantiate the configuration file FILE
40165 --header=FILE[:TEMPLATE]
40166 instantiate the configuration header FILE
40167
40168 Configuration files:
40169 $config_files
40170
40171 Configuration headers:
40172 $config_headers
40173
40174 Configuration commands:
40175 $config_commands
40176
40177 Report bugs to <bug-autoconf@gnu.org>."
40178 _ACEOF
40179
40180 cat >>$CONFIG_STATUS <<_ACEOF
40181 ac_cs_version="\\
40182 wxWindows config.status 2.5.1
40183 configured by $0, generated by GNU Autoconf 2.59,
40184 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40185
40186 Copyright (C) 2003 Free Software Foundation, Inc.
40187 This config.status script is free software; the Free Software Foundation
40188 gives unlimited permission to copy, distribute and modify it."
40189 srcdir=$srcdir
40190 INSTALL="$INSTALL"
40191 _ACEOF
40192
40193 cat >>$CONFIG_STATUS <<\_ACEOF
40194 # If no file are specified by the user, then we need to provide default
40195 # value. By we need to know if files were specified by the user.
40196 ac_need_defaults=:
40197 while test $# != 0
40198 do
40199 case $1 in
40200 --*=*)
40201 ac_option=`expr "x$1" : 'x\([^=]*\)='`
40202 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40203 ac_shift=:
40204 ;;
40205 -*)
40206 ac_option=$1
40207 ac_optarg=$2
40208 ac_shift=shift
40209 ;;
40210 *) # This is not an option, so the user has probably given explicit
40211 # arguments.
40212 ac_option=$1
40213 ac_need_defaults=false;;
40214 esac
40215
40216 case $ac_option in
40217 # Handling of the options.
40218 _ACEOF
40219 cat >>$CONFIG_STATUS <<\_ACEOF
40220 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40221 ac_cs_recheck=: ;;
40222 --version | --vers* | -V )
40223 echo "$ac_cs_version"; exit 0 ;;
40224 --he | --h)
40225 # Conflict between --help and --header
40226 { { echo "$as_me:$LINENO: error: ambiguous option: $1
40227 Try \`$0 --help' for more information." >&5
40228 echo "$as_me: error: ambiguous option: $1
40229 Try \`$0 --help' for more information." >&2;}
40230 { (exit 1); exit 1; }; };;
40231 --help | --hel | -h )
40232 echo "$ac_cs_usage"; exit 0 ;;
40233 --debug | --d* | -d )
40234 debug=: ;;
40235 --file | --fil | --fi | --f )
40236 $ac_shift
40237 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40238 ac_need_defaults=false;;
40239 --header | --heade | --head | --hea )
40240 $ac_shift
40241 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40242 ac_need_defaults=false;;
40243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40244 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40245 ac_cs_silent=: ;;
40246
40247 # This is an error.
40248 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40249 Try \`$0 --help' for more information." >&5
40250 echo "$as_me: error: unrecognized option: $1
40251 Try \`$0 --help' for more information." >&2;}
40252 { (exit 1); exit 1; }; } ;;
40253
40254 *) ac_config_targets="$ac_config_targets $1" ;;
40255
40256 esac
40257 shift
40258 done
40259
40260 ac_configure_extra_args=
40261
40262 if $ac_cs_silent; then
40263 exec 6>/dev/null
40264 ac_configure_extra_args="$ac_configure_extra_args --silent"
40265 fi
40266
40267 _ACEOF
40268 cat >>$CONFIG_STATUS <<_ACEOF
40269 if \$ac_cs_recheck; then
40270 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40271 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40272 fi
40273
40274 _ACEOF
40275
40276 cat >>$CONFIG_STATUS <<_ACEOF
40277 #
40278 # INIT-COMMANDS section.
40279 #
40280
40281
40282 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
40283 LN_S="${LN_S}"
40284
40285
40286
40287 _ACEOF
40288
40289
40290
40291 cat >>$CONFIG_STATUS <<\_ACEOF
40292 for ac_config_target in $ac_config_targets
40293 do
40294 case "$ac_config_target" in
40295 # Handling of arguments.
40296 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
40297 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
40298 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40299 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
40300 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40301 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
40302 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40303 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40304 { (exit 1); exit 1; }; };;
40305 esac
40306 done
40307
40308 # If the user did not use the arguments to specify the items to instantiate,
40309 # then the envvar interface is used. Set only those that are not.
40310 # We use the long form for the default assignment because of an extremely
40311 # bizarre bug on SunOS 4.1.3.
40312 if $ac_need_defaults; then
40313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40314 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40315 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40316 fi
40317
40318 # Have a temporary directory for convenience. Make it in the build tree
40319 # simply because there is no reason to put it here, and in addition,
40320 # creating and moving files from /tmp can sometimes cause problems.
40321 # Create a temporary directory, and hook for its removal unless debugging.
40322 $debug ||
40323 {
40324 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40325 trap '{ (exit 1); exit 1; }' 1 2 13 15
40326 }
40327
40328 # Create a (secure) tmp directory for tmp files.
40329
40330 {
40331 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40332 test -n "$tmp" && test -d "$tmp"
40333 } ||
40334 {
40335 tmp=./confstat$$-$RANDOM
40336 (umask 077 && mkdir $tmp)
40337 } ||
40338 {
40339 echo "$me: cannot create a temporary directory in ." >&2
40340 { (exit 1); exit 1; }
40341 }
40342
40343 _ACEOF
40344
40345 cat >>$CONFIG_STATUS <<_ACEOF
40346
40347 #
40348 # CONFIG_FILES section.
40349 #
40350
40351 # No need to generate the scripts if there are no CONFIG_FILES.
40352 # This happens for instance when ./config.status config.h
40353 if test -n "\$CONFIG_FILES"; then
40354 # Protect against being on the right side of a sed subst in config.status.
40355 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40356 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40357 s,@SHELL@,$SHELL,;t t
40358 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40359 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40360 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40361 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40362 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40363 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40364 s,@exec_prefix@,$exec_prefix,;t t
40365 s,@prefix@,$prefix,;t t
40366 s,@program_transform_name@,$program_transform_name,;t t
40367 s,@bindir@,$bindir,;t t
40368 s,@sbindir@,$sbindir,;t t
40369 s,@libexecdir@,$libexecdir,;t t
40370 s,@datadir@,$datadir,;t t
40371 s,@sysconfdir@,$sysconfdir,;t t
40372 s,@sharedstatedir@,$sharedstatedir,;t t
40373 s,@localstatedir@,$localstatedir,;t t
40374 s,@libdir@,$libdir,;t t
40375 s,@includedir@,$includedir,;t t
40376 s,@oldincludedir@,$oldincludedir,;t t
40377 s,@infodir@,$infodir,;t t
40378 s,@mandir@,$mandir,;t t
40379 s,@build_alias@,$build_alias,;t t
40380 s,@host_alias@,$host_alias,;t t
40381 s,@target_alias@,$target_alias,;t t
40382 s,@DEFS@,$DEFS,;t t
40383 s,@ECHO_C@,$ECHO_C,;t t
40384 s,@ECHO_N@,$ECHO_N,;t t
40385 s,@ECHO_T@,$ECHO_T,;t t
40386 s,@LIBS@,$LIBS,;t t
40387 s,@build@,$build,;t t
40388 s,@build_cpu@,$build_cpu,;t t
40389 s,@build_vendor@,$build_vendor,;t t
40390 s,@build_os@,$build_os,;t t
40391 s,@host@,$host,;t t
40392 s,@host_cpu@,$host_cpu,;t t
40393 s,@host_vendor@,$host_vendor,;t t
40394 s,@host_os@,$host_os,;t t
40395 s,@target@,$target,;t t
40396 s,@target_cpu@,$target_cpu,;t t
40397 s,@target_vendor@,$target_vendor,;t t
40398 s,@target_os@,$target_os,;t t
40399 s,@CC@,$CC,;t t
40400 s,@CFLAGS@,$CFLAGS,;t t
40401 s,@LDFLAGS@,$LDFLAGS,;t t
40402 s,@CPPFLAGS@,$CPPFLAGS,;t t
40403 s,@ac_ct_CC@,$ac_ct_CC,;t t
40404 s,@EXEEXT@,$EXEEXT,;t t
40405 s,@OBJEXT@,$OBJEXT,;t t
40406 s,@CPP@,$CPP,;t t
40407 s,@EGREP@,$EGREP,;t t
40408 s,@CXX@,$CXX,;t t
40409 s,@CXXFLAGS@,$CXXFLAGS,;t t
40410 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
40411 s,@RANLIB@,$RANLIB,;t t
40412 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40413 s,@AR@,$AR,;t t
40414 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40415 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40416 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40417 s,@STRIP@,$STRIP,;t t
40418 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
40419 s,@LN_S@,$LN_S,;t t
40420 s,@CXXCPP@,$CXXCPP,;t t
40421 s,@subdirs@,$subdirs,;t t
40422 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
40423 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
40424 s,@GTK_LIBS@,$GTK_LIBS,;t t
40425 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
40426 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
40427 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
40428 s,@X_CFLAGS@,$X_CFLAGS,;t t
40429 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
40430 s,@X_LIBS@,$X_LIBS,;t t
40431 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
40432 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
40433 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
40434 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
40435 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
40436 s,@RESCOMP@,$RESCOMP,;t t
40437 s,@DEREZ@,$DEREZ,;t t
40438 s,@SETFILE@,$SETFILE,;t t
40439 s,@LIBICONV@,$LIBICONV,;t t
40440 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
40441 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
40442 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
40443 s,@SDL_LIBS@,$SDL_LIBS,;t t
40444 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
40445 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
40446 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
40447 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
40448 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
40449 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
40450 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
40451 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
40452 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
40453 s,@VENDOR@,$VENDOR,;t t
40454 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
40455 s,@WXUNIV@,$WXUNIV,;t t
40456 s,@MONOLITHIC@,$MONOLITHIC,;t t
40457 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
40458 s,@EXTRALIBS@,$EXTRALIBS,;t t
40459 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
40460 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
40461 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
40462 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
40463 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
40464 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
40465 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
40466 s,@UNICODE@,$UNICODE,;t t
40467 s,@BUILD@,$BUILD,;t t
40468 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
40469 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
40470 s,@SHARED@,$SHARED,;t t
40471 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
40472 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
40473 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
40474 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
40475 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
40476 s,@SET_MAKE@,$SET_MAKE,;t t
40477 s,@MAKE_SET@,$MAKE_SET,;t t
40478 s,@ac_ct_AR@,$ac_ct_AR,;t t
40479 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40480 s,@NM@,$NM,;t t
40481 s,@ac_ct_NM@,$ac_ct_NM,;t t
40482 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
40483 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
40484 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
40485 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
40486 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
40487 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
40488 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
40489 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
40490 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
40491 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
40492 s,@LIBPREFIX@,$LIBPREFIX,;t t
40493 s,@DLLPREFIX@,$DLLPREFIX,;t t
40494 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
40495 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
40496 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
40497 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
40498 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
40499 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
40500 s,@PIC_FLAG@,$PIC_FLAG,;t t
40501 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
40502 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
40503 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
40504 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
40505 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
40506 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
40507 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
40508 s,@GCC_PCH@,$GCC_PCH,;t t
40509 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
40510 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
40511 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
40512 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
40513 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
40514 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
40515 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
40516 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
40517 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
40518 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
40519 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
40520 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
40521 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
40522 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
40523 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
40524 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
40525 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
40526 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
40527 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
40528 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
40529 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
40530 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
40531 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
40532 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
40533 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
40534 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
40535 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
40536 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
40537 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
40538 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
40539 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
40540 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
40541 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
40542 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
40543 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
40544 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
40545 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
40546 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
40547 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
40548 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
40549 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
40550 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
40551 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
40552 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
40553 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
40554 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
40555 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
40556 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
40557 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
40558 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40559 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40560 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
40561 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
40562 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
40563 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
40564 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
40565 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
40566 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
40567 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
40568 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
40569 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
40570 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
40571 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
40572 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
40573 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
40574 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
40575 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
40576 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
40577 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
40578 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
40579 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
40580 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
40581 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
40582 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
40583 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
40584 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
40585 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
40586 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
40587 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
40588 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
40589 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
40590 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
40591 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
40592 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
40593 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
40594 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
40595 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40596 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40597 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
40598 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
40599 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
40600 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
40601 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
40602 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
40603 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
40604 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
40605 s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
40606 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
40607 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
40608 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
40609 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
40610 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
40611 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
40612 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
40613 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
40614 s,@PATH_IFS@,$PATH_IFS,;t t
40615 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
40616 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
40617 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
40618 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
40619 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
40620 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
40621 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
40622 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
40623 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
40624 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
40625 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
40626 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
40627 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
40628 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
40629 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
40630 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
40631 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
40632 s,@WX_ALL@,$WX_ALL,;t t
40633 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
40634 s,@SHARED_LD@,$SHARED_LD,;t t
40635 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
40636 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
40637 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
40638 s,@USE_GUI@,$USE_GUI,;t t
40639 s,@AFMINSTALL@,$AFMINSTALL,;t t
40640 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
40641 s,@TOOLKIT@,$TOOLKIT,;t t
40642 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
40643 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
40644 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
40645 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
40646 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
40647 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
40648 s,@cross_compiling@,$cross_compiling,;t t
40649 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
40650 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
40651 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
40652 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
40653 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
40654 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
40655 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
40656 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
40657 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
40658 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
40659 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
40660 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
40661 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
40662 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
40663 s,@GUIDIST@,$GUIDIST,;t t
40664 s,@PORT_FILES@,$PORT_FILES,;t t
40665 s,@DISTDIR@,$DISTDIR,;t t
40666 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
40667 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
40668 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
40669 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
40670 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
40671 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
40672 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
40673 s,@RESFLAGS@,$RESFLAGS,;t t
40674 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
40675 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
40676 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
40677 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
40678 s,@MACRESCOMP@,$MACRESCOMP,;t t
40679 s,@MACSETFILE@,$MACSETFILE,;t t
40680 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
40681 s,@GCC@,$GCC,;t t
40682 s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
40683 s,@DLLTOOL@,$DLLTOOL,;t t
40684 s,@AS@,$AS,;t t
40685 s,@LD@,$LD,;t t
40686 s,@MAKEINFO@,$MAKEINFO,;t t
40687 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
40688 s,@LIBOBJS@,$LIBOBJS,;t t
40689 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40690 CEOF
40691
40692 _ACEOF
40693
40694 cat >>$CONFIG_STATUS <<\_ACEOF
40695 # Split the substitutions into bite-sized pieces for seds with
40696 # small command number limits, like on Digital OSF/1 and HP-UX.
40697 ac_max_sed_lines=48
40698 ac_sed_frag=1 # Number of current file.
40699 ac_beg=1 # First line for current file.
40700 ac_end=$ac_max_sed_lines # Line after last line for current file.
40701 ac_more_lines=:
40702 ac_sed_cmds=
40703 while $ac_more_lines; do
40704 if test $ac_beg -gt 1; then
40705 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40706 else
40707 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40708 fi
40709 if test ! -s $tmp/subs.frag; then
40710 ac_more_lines=false
40711 else
40712 # The purpose of the label and of the branching condition is to
40713 # speed up the sed processing (if there are no `@' at all, there
40714 # is no need to browse any of the substitutions).
40715 # These are the two extra sed commands mentioned above.
40716 (echo ':t
40717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40718 if test -z "$ac_sed_cmds"; then
40719 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40720 else
40721 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40722 fi
40723 ac_sed_frag=`expr $ac_sed_frag + 1`
40724 ac_beg=$ac_end
40725 ac_end=`expr $ac_end + $ac_max_sed_lines`
40726 fi
40727 done
40728 if test -z "$ac_sed_cmds"; then
40729 ac_sed_cmds=cat
40730 fi
40731 fi # test -n "$CONFIG_FILES"
40732
40733 _ACEOF
40734 cat >>$CONFIG_STATUS <<\_ACEOF
40735 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40736 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40737 case $ac_file in
40738 - | *:- | *:-:* ) # input from stdin
40739 cat >$tmp/stdin
40740 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40741 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40742 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40743 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40744 * ) ac_file_in=$ac_file.in ;;
40745 esac
40746
40747 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40748 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40749 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40750 X"$ac_file" : 'X\(//\)[^/]' \| \
40751 X"$ac_file" : 'X\(//\)$' \| \
40752 X"$ac_file" : 'X\(/\)' \| \
40753 . : '\(.\)' 2>/dev/null ||
40754 echo X"$ac_file" |
40755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40756 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40757 /^X\(\/\/\)$/{ s//\1/; q; }
40758 /^X\(\/\).*/{ s//\1/; q; }
40759 s/.*/./; q'`
40760 { if $as_mkdir_p; then
40761 mkdir -p "$ac_dir"
40762 else
40763 as_dir="$ac_dir"
40764 as_dirs=
40765 while test ! -d "$as_dir"; do
40766 as_dirs="$as_dir $as_dirs"
40767 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40769 X"$as_dir" : 'X\(//\)[^/]' \| \
40770 X"$as_dir" : 'X\(//\)$' \| \
40771 X"$as_dir" : 'X\(/\)' \| \
40772 . : '\(.\)' 2>/dev/null ||
40773 echo X"$as_dir" |
40774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40776 /^X\(\/\/\)$/{ s//\1/; q; }
40777 /^X\(\/\).*/{ s//\1/; q; }
40778 s/.*/./; q'`
40779 done
40780 test ! -n "$as_dirs" || mkdir $as_dirs
40781 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40782 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40783 { (exit 1); exit 1; }; }; }
40784
40785 ac_builddir=.
40786
40787 if test "$ac_dir" != .; then
40788 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40789 # A "../" for each directory in $ac_dir_suffix.
40790 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40791 else
40792 ac_dir_suffix= ac_top_builddir=
40793 fi
40794
40795 case $srcdir in
40796 .) # No --srcdir option. We are building in place.
40797 ac_srcdir=.
40798 if test -z "$ac_top_builddir"; then
40799 ac_top_srcdir=.
40800 else
40801 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40802 fi ;;
40803 [\\/]* | ?:[\\/]* ) # Absolute path.
40804 ac_srcdir=$srcdir$ac_dir_suffix;
40805 ac_top_srcdir=$srcdir ;;
40806 *) # Relative path.
40807 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40808 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40809 esac
40810
40811 # Do not use `cd foo && pwd` to compute absolute paths, because
40812 # the directories may not exist.
40813 case `pwd` in
40814 .) ac_abs_builddir="$ac_dir";;
40815 *)
40816 case "$ac_dir" in
40817 .) ac_abs_builddir=`pwd`;;
40818 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40819 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40820 esac;;
40821 esac
40822 case $ac_abs_builddir in
40823 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40824 *)
40825 case ${ac_top_builddir}. in
40826 .) ac_abs_top_builddir=$ac_abs_builddir;;
40827 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40828 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40829 esac;;
40830 esac
40831 case $ac_abs_builddir in
40832 .) ac_abs_srcdir=$ac_srcdir;;
40833 *)
40834 case $ac_srcdir in
40835 .) ac_abs_srcdir=$ac_abs_builddir;;
40836 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40837 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40838 esac;;
40839 esac
40840 case $ac_abs_builddir in
40841 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40842 *)
40843 case $ac_top_srcdir in
40844 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40845 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40846 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40847 esac;;
40848 esac
40849
40850
40851 case $INSTALL in
40852 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40853 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40854 esac
40855
40856 # Let's still pretend it is `configure' which instantiates (i.e., don't
40857 # use $as_me), people would be surprised to read:
40858 # /* config.h. Generated by config.status. */
40859 if test x"$ac_file" = x-; then
40860 configure_input=
40861 else
40862 configure_input="$ac_file. "
40863 fi
40864 configure_input=$configure_input"Generated from `echo $ac_file_in |
40865 sed 's,.*/,,'` by configure."
40866
40867 # First look for the input files in the build tree, otherwise in the
40868 # src tree.
40869 ac_file_inputs=`IFS=:
40870 for f in $ac_file_in; do
40871 case $f in
40872 -) echo $tmp/stdin ;;
40873 [\\/$]*)
40874 # Absolute (can't be DOS-style, as IFS=:)
40875 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40876 echo "$as_me: error: cannot find input file: $f" >&2;}
40877 { (exit 1); exit 1; }; }
40878 echo "$f";;
40879 *) # Relative
40880 if test -f "$f"; then
40881 # Build tree
40882 echo "$f"
40883 elif test -f "$srcdir/$f"; then
40884 # Source tree
40885 echo "$srcdir/$f"
40886 else
40887 # /dev/null tree
40888 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40889 echo "$as_me: error: cannot find input file: $f" >&2;}
40890 { (exit 1); exit 1; }; }
40891 fi;;
40892 esac
40893 done` || { (exit 1); exit 1; }
40894
40895 if test x"$ac_file" != x-; then
40896 { echo "$as_me:$LINENO: creating $ac_file" >&5
40897 echo "$as_me: creating $ac_file" >&6;}
40898 rm -f "$ac_file"
40899 fi
40900 _ACEOF
40901 cat >>$CONFIG_STATUS <<_ACEOF
40902 sed "$ac_vpsub
40903 $extrasub
40904 _ACEOF
40905 cat >>$CONFIG_STATUS <<\_ACEOF
40906 :t
40907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40908 s,@configure_input@,$configure_input,;t t
40909 s,@srcdir@,$ac_srcdir,;t t
40910 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40911 s,@top_srcdir@,$ac_top_srcdir,;t t
40912 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40913 s,@builddir@,$ac_builddir,;t t
40914 s,@abs_builddir@,$ac_abs_builddir,;t t
40915 s,@top_builddir@,$ac_top_builddir,;t t
40916 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40917 s,@INSTALL@,$ac_INSTALL,;t t
40918 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40919 rm -f $tmp/stdin
40920 if test x"$ac_file" != x-; then
40921 mv $tmp/out $ac_file
40922 else
40923 cat $tmp/out
40924 rm -f $tmp/out
40925 fi
40926
40927 done
40928 _ACEOF
40929 cat >>$CONFIG_STATUS <<\_ACEOF
40930
40931 #
40932 # CONFIG_HEADER section.
40933 #
40934
40935 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40936 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40937 #
40938 # ac_d sets the value in "#define NAME VALUE" lines.
40939 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40940 ac_dB='[ ].*$,\1#\2'
40941 ac_dC=' '
40942 ac_dD=',;t'
40943 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40944 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40945 ac_uB='$,\1#\2define\3'
40946 ac_uC=' '
40947 ac_uD=',;t'
40948
40949 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40950 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40951 case $ac_file in
40952 - | *:- | *:-:* ) # input from stdin
40953 cat >$tmp/stdin
40954 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40956 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40957 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40958 * ) ac_file_in=$ac_file.in ;;
40959 esac
40960
40961 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40962 echo "$as_me: creating $ac_file" >&6;}
40963
40964 # First look for the input files in the build tree, otherwise in the
40965 # src tree.
40966 ac_file_inputs=`IFS=:
40967 for f in $ac_file_in; do
40968 case $f in
40969 -) echo $tmp/stdin ;;
40970 [\\/$]*)
40971 # Absolute (can't be DOS-style, as IFS=:)
40972 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40973 echo "$as_me: error: cannot find input file: $f" >&2;}
40974 { (exit 1); exit 1; }; }
40975 # Do quote $f, to prevent DOS paths from being IFS'd.
40976 echo "$f";;
40977 *) # Relative
40978 if test -f "$f"; then
40979 # Build tree
40980 echo "$f"
40981 elif test -f "$srcdir/$f"; then
40982 # Source tree
40983 echo "$srcdir/$f"
40984 else
40985 # /dev/null tree
40986 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40987 echo "$as_me: error: cannot find input file: $f" >&2;}
40988 { (exit 1); exit 1; }; }
40989 fi;;
40990 esac
40991 done` || { (exit 1); exit 1; }
40992 # Remove the trailing spaces.
40993 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
40994
40995 _ACEOF
40996
40997 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40998 # `conftest.undefs', that substitutes the proper values into
40999 # config.h.in to produce config.h. The first handles `#define'
41000 # templates, and the second `#undef' templates.
41001 # And first: Protect against being on the right side of a sed subst in
41002 # config.status. Protect against being in an unquoted here document
41003 # in config.status.
41004 rm -f conftest.defines conftest.undefs
41005 # Using a here document instead of a string reduces the quoting nightmare.
41006 # Putting comments in sed scripts is not portable.
41007 #
41008 # `end' is used to avoid that the second main sed command (meant for
41009 # 0-ary CPP macros) applies to n-ary macro definitions.
41010 # See the Autoconf documentation for `clear'.
41011 cat >confdef2sed.sed <<\_ACEOF
41012 s/[\\&,]/\\&/g
41013 s,[\\$`],\\&,g
41014 t clear
41015 : clear
41016 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41017 t end
41018 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41019 : end
41020 _ACEOF
41021 # If some macros were called several times there might be several times
41022 # the same #defines, which is useless. Nevertheless, we may not want to
41023 # sort them, since we want the *last* AC-DEFINE to be honored.
41024 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41025 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41026 rm -f confdef2sed.sed
41027
41028 # This sed command replaces #undef with comments. This is necessary, for
41029 # example, in the case of _POSIX_SOURCE, which is predefined and required
41030 # on some systems where configure will not decide to define it.
41031 cat >>conftest.undefs <<\_ACEOF
41032 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41033 _ACEOF
41034
41035 # Break up conftest.defines because some shells have a limit on the size
41036 # of here documents, and old seds have small limits too (100 cmds).
41037 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41038 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41039 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41040 echo ' :' >>$CONFIG_STATUS
41041 rm -f conftest.tail
41042 while grep . conftest.defines >/dev/null
41043 do
41044 # Write a limited-size here document to $tmp/defines.sed.
41045 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41046 # Speed up: don't consider the non `#define' lines.
41047 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41048 # Work around the forget-to-reset-the-flag bug.
41049 echo 't clr' >>$CONFIG_STATUS
41050 echo ': clr' >>$CONFIG_STATUS
41051 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41052 echo 'CEOF
41053 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41054 rm -f $tmp/in
41055 mv $tmp/out $tmp/in
41056 ' >>$CONFIG_STATUS
41057 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41058 rm -f conftest.defines
41059 mv conftest.tail conftest.defines
41060 done
41061 rm -f conftest.defines
41062 echo ' fi # grep' >>$CONFIG_STATUS
41063 echo >>$CONFIG_STATUS
41064
41065 # Break up conftest.undefs because some shells have a limit on the size
41066 # of here documents, and old seds have small limits too (100 cmds).
41067 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
41068 rm -f conftest.tail
41069 while grep . conftest.undefs >/dev/null
41070 do
41071 # Write a limited-size here document to $tmp/undefs.sed.
41072 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41073 # Speed up: don't consider the non `#undef'
41074 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
41075 # Work around the forget-to-reset-the-flag bug.
41076 echo 't clr' >>$CONFIG_STATUS
41077 echo ': clr' >>$CONFIG_STATUS
41078 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41079 echo 'CEOF
41080 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41081 rm -f $tmp/in
41082 mv $tmp/out $tmp/in
41083 ' >>$CONFIG_STATUS
41084 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41085 rm -f conftest.undefs
41086 mv conftest.tail conftest.undefs
41087 done
41088 rm -f conftest.undefs
41089
41090 cat >>$CONFIG_STATUS <<\_ACEOF
41091 # Let's still pretend it is `configure' which instantiates (i.e., don't
41092 # use $as_me), people would be surprised to read:
41093 # /* config.h. Generated by config.status. */
41094 if test x"$ac_file" = x-; then
41095 echo "/* Generated by configure. */" >$tmp/config.h
41096 else
41097 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
41098 fi
41099 cat $tmp/in >>$tmp/config.h
41100 rm -f $tmp/in
41101 if test x"$ac_file" != x-; then
41102 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41103 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41104 echo "$as_me: $ac_file is unchanged" >&6;}
41105 else
41106 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41108 X"$ac_file" : 'X\(//\)[^/]' \| \
41109 X"$ac_file" : 'X\(//\)$' \| \
41110 X"$ac_file" : 'X\(/\)' \| \
41111 . : '\(.\)' 2>/dev/null ||
41112 echo X"$ac_file" |
41113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41115 /^X\(\/\/\)$/{ s//\1/; q; }
41116 /^X\(\/\).*/{ s//\1/; q; }
41117 s/.*/./; q'`
41118 { if $as_mkdir_p; then
41119 mkdir -p "$ac_dir"
41120 else
41121 as_dir="$ac_dir"
41122 as_dirs=
41123 while test ! -d "$as_dir"; do
41124 as_dirs="$as_dir $as_dirs"
41125 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41126 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41127 X"$as_dir" : 'X\(//\)[^/]' \| \
41128 X"$as_dir" : 'X\(//\)$' \| \
41129 X"$as_dir" : 'X\(/\)' \| \
41130 . : '\(.\)' 2>/dev/null ||
41131 echo X"$as_dir" |
41132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41134 /^X\(\/\/\)$/{ s//\1/; q; }
41135 /^X\(\/\).*/{ s//\1/; q; }
41136 s/.*/./; q'`
41137 done
41138 test ! -n "$as_dirs" || mkdir $as_dirs
41139 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41140 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41141 { (exit 1); exit 1; }; }; }
41142
41143 rm -f $ac_file
41144 mv $tmp/config.h $ac_file
41145 fi
41146 else
41147 cat $tmp/config.h
41148 rm -f $tmp/config.h
41149 fi
41150 done
41151 _ACEOF
41152 cat >>$CONFIG_STATUS <<\_ACEOF
41153
41154 #
41155 # CONFIG_COMMANDS section.
41156 #
41157 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41158 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41159 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41160 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41161 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41162 X"$ac_dest" : 'X\(//\)[^/]' \| \
41163 X"$ac_dest" : 'X\(//\)$' \| \
41164 X"$ac_dest" : 'X\(/\)' \| \
41165 . : '\(.\)' 2>/dev/null ||
41166 echo X"$ac_dest" |
41167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41169 /^X\(\/\/\)$/{ s//\1/; q; }
41170 /^X\(\/\).*/{ s//\1/; q; }
41171 s/.*/./; q'`
41172 { if $as_mkdir_p; then
41173 mkdir -p "$ac_dir"
41174 else
41175 as_dir="$ac_dir"
41176 as_dirs=
41177 while test ! -d "$as_dir"; do
41178 as_dirs="$as_dir $as_dirs"
41179 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41181 X"$as_dir" : 'X\(//\)[^/]' \| \
41182 X"$as_dir" : 'X\(//\)$' \| \
41183 X"$as_dir" : 'X\(/\)' \| \
41184 . : '\(.\)' 2>/dev/null ||
41185 echo X"$as_dir" |
41186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41188 /^X\(\/\/\)$/{ s//\1/; q; }
41189 /^X\(\/\).*/{ s//\1/; q; }
41190 s/.*/./; q'`
41191 done
41192 test ! -n "$as_dirs" || mkdir $as_dirs
41193 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41194 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41195 { (exit 1); exit 1; }; }; }
41196
41197 ac_builddir=.
41198
41199 if test "$ac_dir" != .; then
41200 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41201 # A "../" for each directory in $ac_dir_suffix.
41202 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41203 else
41204 ac_dir_suffix= ac_top_builddir=
41205 fi
41206
41207 case $srcdir in
41208 .) # No --srcdir option. We are building in place.
41209 ac_srcdir=.
41210 if test -z "$ac_top_builddir"; then
41211 ac_top_srcdir=.
41212 else
41213 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41214 fi ;;
41215 [\\/]* | ?:[\\/]* ) # Absolute path.
41216 ac_srcdir=$srcdir$ac_dir_suffix;
41217 ac_top_srcdir=$srcdir ;;
41218 *) # Relative path.
41219 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41220 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41221 esac
41222
41223 # Do not use `cd foo && pwd` to compute absolute paths, because
41224 # the directories may not exist.
41225 case `pwd` in
41226 .) ac_abs_builddir="$ac_dir";;
41227 *)
41228 case "$ac_dir" in
41229 .) ac_abs_builddir=`pwd`;;
41230 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41231 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41232 esac;;
41233 esac
41234 case $ac_abs_builddir in
41235 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41236 *)
41237 case ${ac_top_builddir}. in
41238 .) ac_abs_top_builddir=$ac_abs_builddir;;
41239 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41240 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41241 esac;;
41242 esac
41243 case $ac_abs_builddir in
41244 .) ac_abs_srcdir=$ac_srcdir;;
41245 *)
41246 case $ac_srcdir in
41247 .) ac_abs_srcdir=$ac_abs_builddir;;
41248 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41249 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41250 esac;;
41251 esac
41252 case $ac_abs_builddir in
41253 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41254 *)
41255 case $ac_top_srcdir in
41256 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41257 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41258 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41259 esac;;
41260 esac
41261
41262
41263 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41264 echo "$as_me: executing $ac_dest commands" >&6;}
41265 case $ac_dest in
41266 default )
41267 if test ! -h wx-config; then
41268 chmod +x wx-config
41269 mv wx-config wx${TOOLCHAIN_NAME}-config
41270 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
41271 fi
41272
41273 if test ! -d lib; then
41274 mkdir lib
41275 fi
41276 if test ! -d lib/wx; then
41277 mkdir lib/wx
41278 fi
41279 if test ! -d lib/wx/include; then
41280 mkdir lib/wx/include
41281 fi
41282 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
41283 mkdir lib/wx/include/${TOOLCHAIN_NAME}
41284 fi
41285 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
41286 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
41287 fi
41288 if test -f setup.h; then
41289 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
41290 fi
41291 ;;
41292 esac
41293 done
41294 _ACEOF
41295
41296 cat >>$CONFIG_STATUS <<\_ACEOF
41297
41298 { (exit 0); exit 0; }
41299 _ACEOF
41300 chmod +x $CONFIG_STATUS
41301 ac_clean_files=$ac_clean_files_save
41302
41303
41304 # configure is writing to config.log, and then calls config.status.
41305 # config.status does its own redirection, appending to config.log.
41306 # Unfortunately, on DOS this fails, as config.log is still kept open
41307 # by configure, so config.status won't be able to write to it; its
41308 # output is simply discarded. So we exec the FD to /dev/null,
41309 # effectively closing config.log, so it can be properly (re)opened and
41310 # appended to by config.status. When coming back to configure, we
41311 # need to make the FD available again.
41312 if test "$no_create" != yes; then
41313 ac_cs_success=:
41314 ac_config_status_args=
41315 test "$silent" = yes &&
41316 ac_config_status_args="$ac_config_status_args --quiet"
41317 exec 5>/dev/null
41318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41319 exec 5>>config.log
41320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41321 # would make configure fail if this is the last instruction.
41322 $ac_cs_success || { (exit 1); exit 1; }
41323 fi
41324
41325 #
41326 # CONFIG_SUBDIRS section.
41327 #
41328 if test "$no_recursion" != yes; then
41329
41330 # Remove --cache-file and --srcdir arguments so they do not pile up.
41331 ac_sub_configure_args=
41332 ac_prev=
41333 for ac_arg in $ac_configure_args; do
41334 if test -n "$ac_prev"; then
41335 ac_prev=
41336 continue
41337 fi
41338 case $ac_arg in
41339 -cache-file | --cache-file | --cache-fil | --cache-fi \
41340 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
41341 ac_prev=cache_file ;;
41342 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
41343 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
41344 | --c=*)
41345 ;;
41346 --config-cache | -C)
41347 ;;
41348 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
41349 ac_prev=srcdir ;;
41350 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
41351 ;;
41352 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
41353 ac_prev=prefix ;;
41354 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
41355 ;;
41356 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
41357 esac
41358 done
41359
41360 # Always prepend --prefix to ensure using the same prefix
41361 # in subdir configurations.
41362 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
41363
41364 ac_popdir=`pwd`
41365 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
41366
41367 # Do not complain, so a configure script can configure whichever
41368 # parts of a large source tree are present.
41369 test -d $srcdir/$ac_dir || continue
41370
41371 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
41372 echo "$as_me: configuring in $ac_dir" >&6;}
41373 { if $as_mkdir_p; then
41374 mkdir -p "$ac_dir"
41375 else
41376 as_dir="$ac_dir"
41377 as_dirs=
41378 while test ! -d "$as_dir"; do
41379 as_dirs="$as_dir $as_dirs"
41380 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41381 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41382 X"$as_dir" : 'X\(//\)[^/]' \| \
41383 X"$as_dir" : 'X\(//\)$' \| \
41384 X"$as_dir" : 'X\(/\)' \| \
41385 . : '\(.\)' 2>/dev/null ||
41386 echo X"$as_dir" |
41387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41389 /^X\(\/\/\)$/{ s//\1/; q; }
41390 /^X\(\/\).*/{ s//\1/; q; }
41391 s/.*/./; q'`
41392 done
41393 test ! -n "$as_dirs" || mkdir $as_dirs
41394 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41395 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41396 { (exit 1); exit 1; }; }; }
41397
41398 ac_builddir=.
41399
41400 if test "$ac_dir" != .; then
41401 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41402 # A "../" for each directory in $ac_dir_suffix.
41403 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41404 else
41405 ac_dir_suffix= ac_top_builddir=
41406 fi
41407
41408 case $srcdir in
41409 .) # No --srcdir option. We are building in place.
41410 ac_srcdir=.
41411 if test -z "$ac_top_builddir"; then
41412 ac_top_srcdir=.
41413 else
41414 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41415 fi ;;
41416 [\\/]* | ?:[\\/]* ) # Absolute path.
41417 ac_srcdir=$srcdir$ac_dir_suffix;
41418 ac_top_srcdir=$srcdir ;;
41419 *) # Relative path.
41420 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41421 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41422 esac
41423
41424 # Do not use `cd foo && pwd` to compute absolute paths, because
41425 # the directories may not exist.
41426 case `pwd` in
41427 .) ac_abs_builddir="$ac_dir";;
41428 *)
41429 case "$ac_dir" in
41430 .) ac_abs_builddir=`pwd`;;
41431 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41432 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41433 esac;;
41434 esac
41435 case $ac_abs_builddir in
41436 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41437 *)
41438 case ${ac_top_builddir}. in
41439 .) ac_abs_top_builddir=$ac_abs_builddir;;
41440 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41441 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41442 esac;;
41443 esac
41444 case $ac_abs_builddir in
41445 .) ac_abs_srcdir=$ac_srcdir;;
41446 *)
41447 case $ac_srcdir in
41448 .) ac_abs_srcdir=$ac_abs_builddir;;
41449 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41450 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41451 esac;;
41452 esac
41453 case $ac_abs_builddir in
41454 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41455 *)
41456 case $ac_top_srcdir in
41457 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41458 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41459 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41460 esac;;
41461 esac
41462
41463
41464 cd $ac_dir
41465
41466 # Check for guested configure; otherwise get Cygnus style configure.
41467 if test -f $ac_srcdir/configure.gnu; then
41468 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
41469 elif test -f $ac_srcdir/configure; then
41470 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
41471 elif test -f $ac_srcdir/configure.in; then
41472 ac_sub_configure=$ac_configure
41473 else
41474 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
41475 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
41476 ac_sub_configure=
41477 fi
41478
41479 # The recursion is here.
41480 if test -n "$ac_sub_configure"; then
41481 # Make the cache file name correct relative to the subdirectory.
41482 case $cache_file in
41483 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
41484 *) # Relative path.
41485 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
41486 esac
41487
41488 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
41489 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
41490 # The eval makes quoting arguments work.
41491 eval $ac_sub_configure $ac_sub_configure_args \
41492 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
41493 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
41494 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
41495 { (exit 1); exit 1; }; }
41496 fi
41497
41498 cd "$ac_popdir"
41499 done
41500 fi
41501
41502
41503 echo
41504 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
41505 echo ""
41506 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
41507 echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
41508
41509 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
41510 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
41511 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
41512
41513 echo " What level of wxWindows compatibility should be enabled?"
41514 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
41515 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
41516
41517 echo " Which libraries should wxWindows use?"
41518 echo " jpeg ${wxUSE_LIBJPEG-none}"
41519 echo " png ${wxUSE_LIBPNG-none}"
41520 echo " regex ${wxUSE_REGEX}"
41521 echo " tiff ${wxUSE_LIBTIFF-none}"
41522 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
41523 echo " xpm ${wxUSE_LIBXPM-none}"
41524 fi
41525 echo " zlib ${wxUSE_ZLIB}"
41526 echo " odbc ${wxUSE_ODBC}"
41527 echo " expat ${wxUSE_EXPAT}"
41528 echo " libmspack ${wxUSE_LIBMSPACK}"
41529 echo " sdl ${wxUSE_LIBSDL}"
41530
41531 echo ""
41532