]> git.saurik.com Git - wxWidgets.git/blob - configure
hopefully fixed strings.h mess completely now by not including it unless really neede...
[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.57 for wxWindows 2.5.1.
5 #
6 # Report bugs to <wx-dev@lists.wxwindows.org>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25 fi
26
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='wxWindows'
271 PACKAGE_TARNAME='wxwindows'
272 PACKAGE_VERSION='2.5.1'
273 PACKAGE_STRING='wxWindows 2.5.1'
274 PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276 ac_unique_file="wx-config.in"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subdirs_all="$ac_subdirs_all src/expat"
315 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 DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653 done
654
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675 do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728 else
729 ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776 ac_env_CXX_set=${CXX+set}
777 ac_env_CXX_value=$CXX
778 ac_cv_env_CXX_set=${CXX+set}
779 ac_cv_env_CXX_value=$CXX
780 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_env_CXXFLAGS_value=$CXXFLAGS
782 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784 ac_env_CXXCPP_set=${CXXCPP+set}
785 ac_env_CXXCPP_value=$CXXCPP
786 ac_cv_env_CXXCPP_set=${CXXCPP+set}
787 ac_cv_env_CXXCPP_value=$CXXCPP
788
789 #
790 # Report the --help message.
791 #
792 if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
796 \`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
797
798 Usage: $0 [OPTION]... [VAR=VALUE]...
799
800 To assign environment variables (e.g., CC, CFLAGS...), specify them as
801 VAR=VALUE. See below for descriptions of some of the useful variables.
802
803 Defaults for the options are specified in brackets.
804
805 Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815
816 _ACEOF
817
818 cat <<_ACEOF
819 Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
821 [$ac_default_prefix]
822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 [PREFIX]
824
825 By default, \`make install' will install all the files in
826 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828 for instance \`--prefix=\$HOME'.
829
830 For better control, use the options below.
831
832 Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845 _ACEOF
846
847 cat <<\_ACEOF
848
849 X features:
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
852
853 System types:
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861 case $ac_init_help in
862 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
863 esac
864 cat <<\_ACEOF
865
866 Optional Features:
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-gui use GUI classes
870 --enable-monolithic build wxWindows as single library
871 --enable-plugins build parts of wxWindows as loadable components
872 --enable-universal use wxWindows GUI controls instead of native ones
873 --enable-nanox use NanoX
874 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
875 --enable-shared create shared library code
876 --enable-optimise create optimised code
877 --enable-debug same as debug_flag and debug_info
878 --enable-stl use STL for containers
879 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
880 --enable-debug_info create code with debugging information
881 --enable-debug_gdb create code with extra GDB debugging information
882 --enable-debug_cntxt use wxDebugContext
883 --enable-mem_tracing create code with memory tracing
884 --enable-profile create code with profiling information
885 --enable-no_rtti create code without RTTI information
886 --enable-no_exceptions create code without C++ exceptions handling
887 --enable-permissive compile code disregarding strict ANSI
888 --enable-no_deps create code without dependency information
889 --enable-compat22 enable wxWindows 2.2 compatibility
890 --disable-compat24 disable wxWindows 2.4 compatibility
891 --enable-rpath=DIR output the rpath flag from wx-config
892 --enable-intl use internationalization system
893 --enable-config use wxConfig (and derived) classes
894 --enable-protocols use wxProtocol and derived classes
895 --enable-ftp use wxFTP (requires wxProtocol
896 --enable-http use wxHTTP (requires wxProtocol
897 --enable-fileproto use wxFileProto class (requires wxProtocol
898 --enable-sockets use socket/network classes
899 --enable-ole use OLE classes (Win32 only)
900 --enable-dataobj use data object classes
901 --enable-ipc use interprocess communication (wxSocket etc.)
902 --enable-apple_ieee use the Apple IEEE codec
903 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
904 --enable-cmdline use wxCmdLineParser class
905 --enable-datetime use wxDateTime class
906 --enable-dialupman use dialup network classes
907 --enable-dynlib use wxLibrary class for DLL loading
908 --enable-dynamicloader use (new) wxDynamicLibrary class
909 --enable-exceptions build exception-safe library
910 --enable-ffile use wxFFile class
911 --enable-file use wxFile class
912 --enable-filesystem use virtual file systems classes
913 --enable-fontmap use font encodings conversion classes
914 --enable-fs_inet use virtual HTTP/FTP filesystems
915 --enable-fs_zip use virtual ZIP filesystems
916 --enable-geometry use geometry class
917 --enable-log use logging system
918 --enable-longlong use wxLongLong class
919 --enable-mimetype use wxMimeTypesManager
920 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
921 --enable-snglinst use wxSingleInstanceChecker class
922 --enable-streams use wxStream etc classes
923 --enable-std_iostreams use standard C++ stream classes
924 --enable-stopwatch use wxStopWatch class
925 --enable-sysoptions use wxSystemOptions
926 --enable-textbuf use wxTextBuffer class
927 --enable-textfile use wxTextFile class
928 --enable-timer use wxTimer class
929 --enable-unicode compile wxString with Unicode support
930 --enable-sound use wxSound class
931 --enable-wxprintfv use wxWindows implementation of vprintf()
932 --enable-zipstream use wxZipInputStream
933 --enable-gzstream use wxGzipInputStream
934 --enable-url use wxURL class
935 --enable-protocol use wxProtocol class
936 --enable-protocol-http HTTP support in wxProtocol
937 --enable-protocol-ftp FTP support in wxProtocol
938 --enable-protocol-file FILE support in wxProtocol
939 --enable-threads use threads
940 --enable-docview use document view architecture
941 --enable-help use help subsystem
942 --enable-mshtmlhelp use MS HTML Help (win32)
943 --enable-html use wxHTML sub-library
944 --enable-htmlhelp use wxHTML-based help
945 --enable-constraints use layout-constraints system
946 --enable-printarch use printing architecture
947 --enable-mdi use multiple document interface architecture
948 --enable-loggui use standard GUI logger
949 --enable-logwin use wxLogWindow
950 --enable-logdialog use wxLogDialog
951 --enable-postscript use wxPostscriptDC device context (default for gtk+)
952 --enable-prologio not available; see contrib
953 --enable-resources not available; see contrib
954 --enable-clipboard use wxClipboard class
955 --enable-dnd use Drag'n'Drop classes
956 --enable-metafile use win32 metafiles
957 --enable-controls use all usual controls
958 --enable-accel use accelerators
959 --enable-button use wxButton class
960 --enable-bmpbutton use wxBitmapButton class
961 --enable-calendar use wxCalendarCtrl class
962 --enable-caret use wxCaret class
963 --enable-checkbox use wxCheckBox class
964 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
965 --enable-choice use wxChoice class
966 --enable-combobox use wxComboBox class
967 --enable-display use wxDisplay class
968 --enable-gauge use wxGauge class
969 --enable-grid use wxGrid class
970 --enable-imaglist use wxImageList class
971 --enable-listbook use wxListbook class
972 --enable-listbox use wxListBox class
973 --enable-listctrl use wxListCtrl class
974 --enable-notebook use wxNotebook class
975 --enable-radiobox use wxRadioBox class
976 --enable-radiobtn use wxRadioButton class
977 --enable-sash use wxSashWindow class
978 --enable-scrollbar use wxScrollBar class and scrollable windows
979 --enable-slider use wxSlider class
980 --enable-spinbtn use wxSpinButton class
981 --enable-spinctrl use wxSpinCtrl class
982 --enable-splitter use wxSplitterWindow class
983 --enable-statbmp use wxStaticBitmap class
984 --enable-statbox use wxStaticBox class
985 --enable-statline use wxStaticLine class
986 --enable-stattext use wxStaticText class
987 --enable-statusbar use wxStatusBar class
988 --enable-tabdialog use wxTabControl class
989 --enable-textctrl use wxTextCtrl class
990 --enable-togglebtn use wxToggleButton class
991 --enable-toolbar use wxToolBar class
992 --enable-tbarnative use native wxToolBar class
993 --enable-tbarsmpl use wxToolBarSimple class
994 --enable-treectrl use wxTreeCtrl class
995 --enable-tipwindow use wxTipWindow class
996 --enable-popupwin use wxPopUpWindow class
997 --enable-commondlg use all common dialogs
998 --enable-choicedlg use wxChoiceDialog
999 --enable-coldlg use wxColourDialog
1000 --enable-filedlg use wxFileDialog
1001 --enable-finddlg use wxFindReplaceDialog
1002 --enable-fontdlg use wxFontDialog
1003 --enable-dirdlg use wxDirDialog
1004 --enable-msgdlg use wxMessageDialog
1005 --enable-numberdlg use wxNumberEntryDialog
1006 --enable-splash use wxSplashScreen
1007 --enable-textdlg use wxTextDialog
1008 --enable-tipdlg use startup tips
1009 --enable-progressdlg use wxProgressDialog
1010 --enable-wizarddlg use wxWizard
1011 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1012 --enable-miniframe use wxMiniFrame class
1013 --enable-tooltips use wxToolTip class
1014 --enable-splines use spline drawing code
1015 --enable-validators use wxValidator and derived classes
1016 --enable-busyinfo use wxBusyInfo
1017 --enable-joystick use wxJoystick (Linux only)
1018 --enable-metafiles use wxMetaFile (Windows only)
1019 --enable-dragimage use wxDragImage
1020 --enable-accessibility enable accessibility support
1021 --enable-palette use wxPalette class
1022 --enable-image use wxImage class
1023 --enable-gif use gif images (GIF file format)
1024 --enable-pcx use pcx images (PCX file format)
1025 --enable-iff use iff images (IFF file format)
1026 --enable-pnm use pnm images (PNM file format)
1027 --enable-xpm use xpm images (XPM file format)
1028 --enable-icocur use Windows ICO and CUR formats
1029 --enable-official_build official build of wxWindows (win32 DLL only)
1030 --enable-vendor=VENDOR vendor name (win32 DLL only)
1031 --disable-largefile omit support for large files
1032 --disable-gtktest do not try to compile and run a test GTK+ program
1033 --disable-gtktest Do not try to compile and run a test GTK program
1034 --disable-sdltest Do not try to compile and run a test SDL program
1035 --disable-precomp-headers don't use precompiled headers even if compiler can
1036
1037 Optional Packages:
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gtk use GTK+
1041 --with-motif use Motif/Lesstif
1042 --with-mac use Mac OS X
1043 --with-cocoa use Cocoa
1044 --with-wine use Wine
1045 --with-msw use MS-Windows
1046 --with-pm use OS/2 Presentation Manager
1047 --with-mgl use SciTech MGL
1048 --with-microwin use MicroWindows
1049 --with-x11 use X11
1050 --with-libpng use libpng (PNG image format)
1051 --with-libjpeg use libjpeg (JPEG file format)
1052 --with-libtiff use libtiff (TIFF file format)
1053 --with-libxpm use libxpm (XPM file format)
1054 --with-libmspack use libmspack (CHM help files loading)
1055 --with-sdl use SDL for audio on Unix
1056 --with-opengl use OpenGL (or Mesa)
1057 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1058 --with-regex enable support for wxRegEx class
1059 --with-zlib use zlib for LZW compression
1060 --with-odbc use the IODBC and wxODBC classes
1061 --with-expat enable XML support using expat parser
1062 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1063 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1064 --with-x use the X Window System
1065 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1066 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1067 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1068
1069 Some influential environment variables:
1070 CC C compiler command
1071 CFLAGS C compiler flags
1072 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1073 nonstandard directory <lib dir>
1074 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1075 headers in a nonstandard directory <include dir>
1076 CPP C preprocessor
1077 CXX C++ compiler command
1078 CXXFLAGS C++ compiler flags
1079 CXXCPP C++ preprocessor
1080
1081 Use these variables to override the choices made by `configure' or to help
1082 it to find libraries and programs with nonstandard names/locations.
1083
1084 Report bugs to <wx-dev@lists.wxwindows.org>.
1085 _ACEOF
1086 fi
1087
1088 if test "$ac_init_help" = "recursive"; then
1089 # If there are subdirs, report their specific --help.
1090 ac_popdir=`pwd`
1091 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1092 test -d $ac_dir || continue
1093 ac_builddir=.
1094
1095 if test "$ac_dir" != .; then
1096 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1097 # A "../" for each directory in $ac_dir_suffix.
1098 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 else
1100 ac_dir_suffix= ac_top_builddir=
1101 fi
1102
1103 case $srcdir in
1104 .) # No --srcdir option. We are building in place.
1105 ac_srcdir=.
1106 if test -z "$ac_top_builddir"; then
1107 ac_top_srcdir=.
1108 else
1109 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 fi ;;
1111 [\\/]* | ?:[\\/]* ) # Absolute path.
1112 ac_srcdir=$srcdir$ac_dir_suffix;
1113 ac_top_srcdir=$srcdir ;;
1114 *) # Relative path.
1115 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1116 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1117 esac
1118 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1119 # absolute.
1120 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1121 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1122 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1123 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1124
1125 cd $ac_dir
1126 # Check for guested configure; otherwise get Cygnus style configure.
1127 if test -f $ac_srcdir/configure.gnu; then
1128 echo
1129 $SHELL $ac_srcdir/configure.gnu --help=recursive
1130 elif test -f $ac_srcdir/configure; then
1131 echo
1132 $SHELL $ac_srcdir/configure --help=recursive
1133 elif test -f $ac_srcdir/configure.ac ||
1134 test -f $ac_srcdir/configure.in; then
1135 echo
1136 $ac_configure --help
1137 else
1138 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 fi
1140 cd $ac_popdir
1141 done
1142 fi
1143
1144 test -n "$ac_init_help" && exit 0
1145 if $ac_init_version; then
1146 cat <<\_ACEOF
1147 wxWindows configure 2.5.1
1148 generated by GNU Autoconf 2.57
1149
1150 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1151 Free Software Foundation, Inc.
1152 This configure script is free software; the Free Software Foundation
1153 gives unlimited permission to copy, distribute and modify it.
1154 _ACEOF
1155 exit 0
1156 fi
1157 exec 5>config.log
1158 cat >&5 <<_ACEOF
1159 This file contains any messages produced by compilers while
1160 running configure, to aid debugging if configure makes a mistake.
1161
1162 It was created by wxWindows $as_me 2.5.1, which was
1163 generated by GNU Autoconf 2.57. Invocation command line was
1164
1165 $ $0 $@
1166
1167 _ACEOF
1168 {
1169 cat <<_ASUNAME
1170 ## --------- ##
1171 ## Platform. ##
1172 ## --------- ##
1173
1174 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1175 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1176 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1177 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1178 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1179
1180 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1181 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1182
1183 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1184 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1185 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1186 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1187 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1188 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1189 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1190
1191 _ASUNAME
1192
1193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1194 for as_dir in $PATH
1195 do
1196 IFS=$as_save_IFS
1197 test -z "$as_dir" && as_dir=.
1198 echo "PATH: $as_dir"
1199 done
1200
1201 } >&5
1202
1203 cat >&5 <<_ACEOF
1204
1205
1206 ## ----------- ##
1207 ## Core tests. ##
1208 ## ----------- ##
1209
1210 _ACEOF
1211
1212
1213 # Keep a trace of the command line.
1214 # Strip out --no-create and --no-recursion so they do not pile up.
1215 # Strip out --silent because we don't want to record it for future runs.
1216 # Also quote any args containing shell meta-characters.
1217 # Make two passes to allow for proper duplicate-argument suppression.
1218 ac_configure_args=
1219 ac_configure_args0=
1220 ac_configure_args1=
1221 ac_sep=
1222 ac_must_keep_next=false
1223 for ac_pass in 1 2
1224 do
1225 for ac_arg
1226 do
1227 case $ac_arg in
1228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1231 continue ;;
1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1234 esac
1235 case $ac_pass in
1236 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1237 2)
1238 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1239 if test $ac_must_keep_next = true; then
1240 ac_must_keep_next=false # Got value, back to normal.
1241 else
1242 case $ac_arg in
1243 *=* | --config-cache | -C | -disable-* | --disable-* \
1244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1246 | -with-* | --with-* | -without-* | --without-* | --x)
1247 case "$ac_configure_args0 " in
1248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1249 esac
1250 ;;
1251 -* ) ac_must_keep_next=true ;;
1252 esac
1253 fi
1254 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1255 # Get rid of the leading space.
1256 ac_sep=" "
1257 ;;
1258 esac
1259 done
1260 done
1261 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1262 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1263
1264 # When interrupted or exit'd, cleanup temporary files, and complete
1265 # config.log. We remove comments because anyway the quotes in there
1266 # would cause problems or look ugly.
1267 # WARNING: Be sure not to use single quotes in there, as some shells,
1268 # such as our DU 5.0 friend, will then `close' the trap.
1269 trap 'exit_status=$?
1270 # Save into config.log some information that might help in debugging.
1271 {
1272 echo
1273
1274 cat <<\_ASBOX
1275 ## ---------------- ##
1276 ## Cache variables. ##
1277 ## ---------------- ##
1278 _ASBOX
1279 echo
1280 # The following way of writing the cache mishandles newlines in values,
1281 {
1282 (set) 2>&1 |
1283 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1284 *ac_space=\ *)
1285 sed -n \
1286 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1288 ;;
1289 *)
1290 sed -n \
1291 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1292 ;;
1293 esac;
1294 }
1295 echo
1296
1297 cat <<\_ASBOX
1298 ## ----------------- ##
1299 ## Output variables. ##
1300 ## ----------------- ##
1301 _ASBOX
1302 echo
1303 for ac_var in $ac_subst_vars
1304 do
1305 eval ac_val=$`echo $ac_var`
1306 echo "$ac_var='"'"'$ac_val'"'"'"
1307 done | sort
1308 echo
1309
1310 if test -n "$ac_subst_files"; then
1311 cat <<\_ASBOX
1312 ## ------------- ##
1313 ## Output files. ##
1314 ## ------------- ##
1315 _ASBOX
1316 echo
1317 for ac_var in $ac_subst_files
1318 do
1319 eval ac_val=$`echo $ac_var`
1320 echo "$ac_var='"'"'$ac_val'"'"'"
1321 done | sort
1322 echo
1323 fi
1324
1325 if test -s confdefs.h; then
1326 cat <<\_ASBOX
1327 ## ----------- ##
1328 ## confdefs.h. ##
1329 ## ----------- ##
1330 _ASBOX
1331 echo
1332 sed "/^$/d" confdefs.h | sort
1333 echo
1334 fi
1335 test "$ac_signal" != 0 &&
1336 echo "$as_me: caught signal $ac_signal"
1337 echo "$as_me: exit $exit_status"
1338 } >&5
1339 rm -f core core.* *.core &&
1340 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1341 exit $exit_status
1342 ' 0
1343 for ac_signal in 1 2 13 15; do
1344 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1345 done
1346 ac_signal=0
1347
1348 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1349 rm -rf conftest* confdefs.h
1350 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1351 echo >confdefs.h
1352
1353 # Predefined preprocessor variables.
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_NAME "$PACKAGE_NAME"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1362 _ACEOF
1363
1364
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1367 _ACEOF
1368
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_STRING "$PACKAGE_STRING"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1377 _ACEOF
1378
1379
1380 # Let the site file select an alternate cache file if it wants to.
1381 # Prefer explicitly selected file to automatically selected ones.
1382 if test -z "$CONFIG_SITE"; then
1383 if test "x$prefix" != xNONE; then
1384 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1385 else
1386 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1387 fi
1388 fi
1389 for ac_site_file in $CONFIG_SITE; do
1390 if test -r "$ac_site_file"; then
1391 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1392 echo "$as_me: loading site script $ac_site_file" >&6;}
1393 sed 's/^/| /' "$ac_site_file" >&5
1394 . "$ac_site_file"
1395 fi
1396 done
1397
1398 if test -r "$cache_file"; then
1399 # Some versions of bash will fail to source /dev/null (special
1400 # files actually), so we avoid doing that.
1401 if test -f "$cache_file"; then
1402 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1403 echo "$as_me: loading cache $cache_file" >&6;}
1404 case $cache_file in
1405 [\\/]* | ?:[\\/]* ) . $cache_file;;
1406 *) . ./$cache_file;;
1407 esac
1408 fi
1409 else
1410 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1411 echo "$as_me: creating cache $cache_file" >&6;}
1412 >$cache_file
1413 fi
1414
1415 # Check that the precious variables saved in the cache have kept the same
1416 # value.
1417 ac_cache_corrupted=false
1418 for ac_var in `(set) 2>&1 |
1419 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1420 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1421 eval ac_new_set=\$ac_env_${ac_var}_set
1422 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1423 eval ac_new_val="\$ac_env_${ac_var}_value"
1424 case $ac_old_set,$ac_new_set in
1425 set,)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1427 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,set)
1430 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1431 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1432 ac_cache_corrupted=: ;;
1433 ,);;
1434 *)
1435 if test "x$ac_old_val" != "x$ac_new_val"; then
1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1437 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1439 echo "$as_me: former value: $ac_old_val" >&2;}
1440 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1441 echo "$as_me: current value: $ac_new_val" >&2;}
1442 ac_cache_corrupted=:
1443 fi;;
1444 esac
1445 # Pass precious variables to config.status.
1446 if test "$ac_new_set" = set; then
1447 case $ac_new_val in
1448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1449 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1450 *) ac_arg=$ac_var=$ac_new_val ;;
1451 esac
1452 case " $ac_configure_args " in
1453 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1454 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1455 esac
1456 fi
1457 done
1458 if $ac_cache_corrupted; then
1459 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1460 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1461 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1462 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1463 { (exit 1); exit 1; }; }
1464 fi
1465
1466 ac_ext=c
1467 ac_cpp='$CPP $CPPFLAGS'
1468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501 ac_aux_dir=
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 break
1507 elif test -f $ac_dir/install.sh; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 break
1511 elif test -f $ac_dir/shtool; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 break
1515 fi
1516 done
1517 if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1521 fi
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526 # Make sure we can run config.sub.
1527 $ac_config_sub sun4 >/dev/null 2>&1 ||
1528 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530 { (exit 1); exit 1; }; }
1531
1532 echo "$as_me:$LINENO: checking build system type" >&5
1533 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534 if test "${ac_cv_build+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537 ac_cv_build_alias=$build_alias
1538 test -z "$ac_cv_build_alias" &&
1539 ac_cv_build_alias=`$ac_config_guess`
1540 test -z "$ac_cv_build_alias" &&
1541 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543 { (exit 1); exit 1; }; }
1544 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549 fi
1550 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551 echo "${ECHO_T}$ac_cv_build" >&6
1552 build=$ac_cv_build
1553 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556
1557
1558 echo "$as_me:$LINENO: checking host system type" >&5
1559 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560 if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 ac_cv_host_alias=$host_alias
1564 test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571 fi
1572 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573 echo "${ECHO_T}$ac_cv_host" >&6
1574 host=$ac_cv_host
1575 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580 echo "$as_me:$LINENO: checking target system type" >&5
1581 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582 if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585 ac_cv_target_alias=$target_alias
1586 test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1592
1593 fi
1594 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595 echo "${ECHO_T}$ac_cv_target" >&6
1596 target=$ac_cv_target
1597 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600
1601
1602 # The aliases save the names the user supplied, while $host etc.
1603 # will get canonicalized.
1604 test -n "$target_alias" &&
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1606 NONENONEs,x,x, &&
1607 program_prefix=${target_alias}-
1608
1609
1610
1611 WX_MAJOR_VERSION_NUMBER=2
1612 WX_MINOR_VERSION_NUMBER=5
1613 WX_RELEASE_NUMBER=1
1614
1615 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1616 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1617
1618 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1619
1620 WX_CURRENT=1
1621 WX_REVISION=0
1622 WX_AGE=0
1623
1624
1625
1626 USE_UNIX=1
1627 USE_OS2=0
1628 USE_WIN32=0
1629 USE_DOS=0
1630 USE_BEOS=0
1631 USE_MAC=0
1632
1633 USE_AIX=
1634 USE_BSD= USE_DARWIN= USE_FREEBSD=
1635 USE_GNU= USE_HPUX=
1636 USE_LINUX=
1637 USE_NETBSD=
1638 USE_OPENBSD=
1639 USE_OSF= USE_SGI=
1640 USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1641 USE_ULTRIX=
1642 USE_UNIXWARE=
1643
1644 USE_ALPHA=
1645
1646 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1647
1648 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1649
1650 DEFAULT_wxUSE_COCOA=0
1651 DEFAULT_wxUSE_GTK=0
1652 DEFAULT_wxUSE_MAC=0
1653 DEFAULT_wxUSE_MGL=0
1654 DEFAULT_wxUSE_MICROWIN=0
1655 DEFAULT_wxUSE_MOTIF=0
1656 DEFAULT_wxUSE_MSW=0
1657 DEFAULT_wxUSE_PM=0
1658 DEFAULT_wxUSE_X11=0
1659
1660 DEFAULT_DEFAULT_wxUSE_COCOA=0
1661 DEFAULT_DEFAULT_wxUSE_GTK=0
1662 DEFAULT_DEFAULT_wxUSE_MAC=0
1663 DEFAULT_DEFAULT_wxUSE_MGL=0
1664 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1665 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1666 DEFAULT_DEFAULT_wxUSE_MSW=0
1667 DEFAULT_DEFAULT_wxUSE_PM=0
1668 DEFAULT_DEFAULT_wxUSE_X11=0
1669
1670 PROGRAM_EXT=
1671 SO_SUFFIX=so
1672 SAMPLES_RPATH_FLAG=
1673 SAMPLES_RPATH_POSTLINK=
1674
1675 case "${host}" in
1676 *-hp-hpux* )
1677 USE_HPUX=1
1678 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1679 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1680 SO_SUFFIX=sl
1681 cat >>confdefs.h <<\_ACEOF
1682 #define __HPUX__ 1
1683 _ACEOF
1684
1685 ;;
1686 *-*-linux* )
1687 USE_LINUX=1
1688 cat >>confdefs.h <<\_ACEOF
1689 #define __LINUX__ 1
1690 _ACEOF
1691
1692 TMP=`uname -m`
1693 if test "x$TMP" = "xalpha"; then
1694 USE_ALPHA=1
1695 cat >>confdefs.h <<\_ACEOF
1696 #define __ALPHA__ 1
1697 _ACEOF
1698
1699 fi
1700 DEFAULT_DEFAULT_wxUSE_GTK=1
1701 ;;
1702 *-*-gnu* )
1703 USE_GNU=1
1704 cat >>confdefs.h <<\_ACEOF
1705 #define __GNU__ 1
1706 _ACEOF
1707
1708 TMP=`uname -m`
1709 if test "x$TMP" = "xalpha"; then
1710 USE_ALPHA=1
1711 cat >>confdefs.h <<\_ACEOF
1712 #define __ALPHA__ 1
1713 _ACEOF
1714
1715 fi
1716 DEFAULT_DEFAULT_wxUSE_GTK=1
1717 ;;
1718 *-*-irix5* | *-*-irix6* )
1719 USE_SGI=1
1720 USE_SVR4=1
1721 cat >>confdefs.h <<\_ACEOF
1722 #define __SGI__ 1
1723 _ACEOF
1724
1725 cat >>confdefs.h <<\_ACEOF
1726 #define __SVR4__ 1
1727 _ACEOF
1728
1729 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1730 ;;
1731 *-*-solaris2* )
1732 USE_SUN=1
1733 USE_SOLARIS=1
1734 USE_SVR4=1
1735 cat >>confdefs.h <<\_ACEOF
1736 #define __SUN__ 1
1737 _ACEOF
1738
1739 cat >>confdefs.h <<\_ACEOF
1740 #define __SOLARIS__ 1
1741 _ACEOF
1742
1743 cat >>confdefs.h <<\_ACEOF
1744 #define __SVR4__ 1
1745 _ACEOF
1746
1747 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1748 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1749 ;;
1750 *-*-sunos4* )
1751 USE_SUN=1
1752 USE_SUNOS=1
1753 USE_BSD=1
1754 cat >>confdefs.h <<\_ACEOF
1755 #define __SUN__ 1
1756 _ACEOF
1757
1758 cat >>confdefs.h <<\_ACEOF
1759 #define __SUNOS__ 1
1760 _ACEOF
1761
1762 cat >>confdefs.h <<\_ACEOF
1763 #define __BSD__ 1
1764 _ACEOF
1765
1766 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1767 ;;
1768 *-*-freebsd*)
1769 USE_BSD=1
1770 USE_FREEBSD=1
1771 cat >>confdefs.h <<\_ACEOF
1772 #define __FREEBSD__ 1
1773 _ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776 #define __BSD__ 1
1777 _ACEOF
1778
1779 DEFAULT_DEFAULT_wxUSE_GTK=1
1780 ;;
1781 *-*-openbsd*)
1782 USE_BSD=1
1783 USE_OPENBSD=1
1784 cat >>confdefs.h <<\_ACEOF
1785 #define __OPENBSD__ 1
1786 _ACEOF
1787
1788 cat >>confdefs.h <<\_ACEOF
1789 #define __BSD__ 1
1790 _ACEOF
1791
1792 DEFAULT_DEFAULT_wxUSE_GTK=1
1793 ;;
1794 *-*-netbsd*)
1795 USE_BSD=1
1796 USE_NETBSD=1
1797 cat >>confdefs.h <<\_ACEOF
1798 #define __NETBSD__ 1
1799 _ACEOF
1800
1801 cat >>confdefs.h <<\_ACEOF
1802 #define __BSD__ 1
1803 _ACEOF
1804
1805 DEFAULT_DEFAULT_wxUSE_GTK=1
1806 ;;
1807 *-*-osf* )
1808 USE_ALPHA=1
1809 USE_OSF=1
1810 cat >>confdefs.h <<\_ACEOF
1811 #define __ALPHA__ 1
1812 _ACEOF
1813
1814 cat >>confdefs.h <<\_ACEOF
1815 #define __OSF__ 1
1816 _ACEOF
1817
1818 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1819 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1820 ;;
1821 *-*-dgux5* )
1822 USE_ALPHA=1
1823 USE_SVR4=1
1824 cat >>confdefs.h <<\_ACEOF
1825 #define __ALPHA__ 1
1826 _ACEOF
1827
1828 cat >>confdefs.h <<\_ACEOF
1829 #define __SVR4__ 1
1830 _ACEOF
1831
1832 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1833 ;;
1834 *-*-sysv5* )
1835 USE_SYSV=1
1836 USE_SVR4=1
1837 cat >>confdefs.h <<\_ACEOF
1838 #define __SYSV__ 1
1839 _ACEOF
1840
1841 cat >>confdefs.h <<\_ACEOF
1842 #define __SVR4__ 1
1843 _ACEOF
1844
1845 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1846 ;;
1847 *-*-aix* )
1848 USE_AIX=1
1849 USE_SYSV=1
1850 USE_SVR4=1
1851 SO_SUFFIX=a
1852 cat >>confdefs.h <<\_ACEOF
1853 #define __AIX__ 1
1854 _ACEOF
1855
1856 cat >>confdefs.h <<\_ACEOF
1857 #define __SYSV__ 1
1858 _ACEOF
1859
1860 cat >>confdefs.h <<\_ACEOF
1861 #define __SVR4__ 1
1862 _ACEOF
1863
1864 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1865 ;;
1866
1867 *-*-*UnixWare*)
1868 USE_SYSV=1
1869 USE_SVR4=1
1870 USE_UNIXWARE=1
1871 cat >>confdefs.h <<\_ACEOF
1872 #define __UNIXWARE__ 1
1873 _ACEOF
1874
1875 ;;
1876
1877 *-*-cygwin* | *-*-mingw32* )
1878 SO_SUFFIX=dll
1879 PROGRAM_EXT=".exe"
1880 RESCOMP=windres
1881 DEFAULT_DEFAULT_wxUSE_MSW=1
1882 ;;
1883
1884 *-pc-msdosdjgpp )
1885 USE_UNIX=0
1886 USE_DOS=1
1887 cat >>confdefs.h <<\_ACEOF
1888 #define __DOS__ 1
1889 _ACEOF
1890
1891 PROGRAM_EXT=".exe"
1892 DEFAULT_DEFAULT_wxUSE_MGL=1
1893 LIBS="$LIBS -lstdc++"
1894 ;;
1895
1896 *-pc-os2_emx | *-pc-os2-emx )
1897 cat >>confdefs.h <<\_ACEOF
1898 #define __EMX__ 1
1899 _ACEOF
1900
1901 USE_OS2=1
1902 cat >>confdefs.h <<\_ACEOF
1903 #define __OS2__ 1
1904 _ACEOF
1905
1906 PROGRAM_EXT=".exe"
1907 DEFAULT_DEFAULT_wxUSE_PM=1
1908 CXX=gcc
1909 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
1910 ac_executable_extensions=".exe"
1911 export ac_executable_extensions
1912 ac_save_IFS="$IFS"
1913 IFS='\\'
1914 ac_TEMP_PATH=
1915 for ac_dir in $PATH; do
1916 IFS=$ac_save_IFS
1917 if test -z "$ac_TEMP_PATH"; then
1918 ac_TEMP_PATH="$ac_dir"
1919 else
1920 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1921 fi
1922 done
1923 export PATH="$ac_TEMP_PATH"
1924 unset ac_TEMP_PATH
1925 ;;
1926
1927 powerpc-*-darwin* )
1928 USE_BSD=1
1929 USE_DARWIN=1
1930 SO_SUFFIX=dylib
1931 cat >>confdefs.h <<\_ACEOF
1932 #define __BSD__ 1
1933 _ACEOF
1934
1935 cat >>confdefs.h <<\_ACEOF
1936 #define __DARWIN__ 1
1937 _ACEOF
1938
1939 cat >>confdefs.h <<\_ACEOF
1940 #define __POWERPC__ 1
1941 _ACEOF
1942
1943 cat >>confdefs.h <<\_ACEOF
1944 #define TARGET_CARBON 1
1945 _ACEOF
1946
1947 DEFAULT_DEFAULT_wxUSE_MAC=1
1948 ;;
1949
1950 *-*-beos* )
1951 USE_BEOS=1
1952 cat >>confdefs.h <<\_ACEOF
1953 #define __BEOS__ 1
1954 _ACEOF
1955
1956 ;;
1957
1958 *)
1959 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1960 echo "$as_me: error: unknown system type ${host}." >&2;}
1961 { (exit 1); exit 1; }; }
1962 esac
1963
1964
1965
1966
1967 wx_arg_cache_file="configarg.cache"
1968 echo "loading argument cache $wx_arg_cache_file"
1969 rm -f ${wx_arg_cache_file}.tmp
1970 touch ${wx_arg_cache_file}.tmp
1971 touch ${wx_arg_cache_file}
1972
1973
1974 DEBUG_CONFIGURE=0
1975 if test $DEBUG_CONFIGURE = 1; then
1976 DEFAULT_wxUSE_UNIVERSAL=no
1977 DEFAULT_wxUSE_STL=no
1978
1979 DEFAULT_wxUSE_NANOX=no
1980
1981 DEFAULT_wxUSE_THREADS=yes
1982
1983 DEFAULT_wxUSE_SHARED=yes
1984 DEFAULT_wxUSE_OPTIMISE=no
1985 DEFAULT_wxUSE_PROFILE=no
1986 DEFAULT_wxUSE_NO_DEPS=no
1987 DEFAULT_wxUSE_NO_RTTI=no
1988 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1989 DEFAULT_wxUSE_PERMISSIVE=no
1990 DEFAULT_wxUSE_DEBUG_FLAG=yes
1991 DEFAULT_wxUSE_DEBUG_INFO=yes
1992 DEFAULT_wxUSE_DEBUG_GDB=yes
1993 DEFAULT_wxUSE_MEM_TRACING=no
1994 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1995 DEFAULT_wxUSE_DMALLOC=no
1996 DEFAULT_wxUSE_APPLE_IEEE=no
1997
1998 DEFAULT_wxUSE_EXCEPTIONS=no
1999 DEFAULT_wxUSE_LOG=yes
2000 DEFAULT_wxUSE_LOGWINDOW=no
2001 DEFAULT_wxUSE_LOGGUI=no
2002 DEFAULT_wxUSE_LOGDIALOG=no
2003
2004 DEFAULT_wxUSE_GUI=yes
2005 DEFAULT_wxUSE_CONTROLS=no
2006
2007 DEFAULT_wxUSE_REGEX=no
2008 DEFAULT_wxUSE_XML=no
2009 DEFAULT_wxUSE_EXPAT=no
2010 DEFAULT_wxUSE_ZLIB=no
2011 DEFAULT_wxUSE_LIBPNG=no
2012 DEFAULT_wxUSE_LIBJPEG=no
2013 DEFAULT_wxUSE_LIBTIFF=no
2014 DEFAULT_wxUSE_LIBXPM=no
2015 DEFAULT_wxUSE_LIBMSPACK=no
2016 DEFAULT_wxUSE_LIBSDL=no
2017 DEFAULT_wxUSE_ODBC=no
2018 DEFAULT_wxUSE_OPENGL=no
2019
2020 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2021 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2022 DEFAULT_wxUSE_STD_IOSTREAM=no
2023 DEFAULT_wxUSE_CMDLINE_PARSER=no
2024 DEFAULT_wxUSE_DATETIME=no
2025 DEFAULT_wxUSE_TIMER=no
2026 DEFAULT_wxUSE_STOPWATCH=no
2027 DEFAULT_wxUSE_FILE=no
2028 DEFAULT_wxUSE_FFILE=no
2029 DEFAULT_wxUSE_TEXTBUFFER=no
2030 DEFAULT_wxUSE_TEXTFILE=no
2031 DEFAULT_wxUSE_SOUND=no
2032 DEFAULT_wxUSE_INTL=no
2033 DEFAULT_wxUSE_CONFIG=no
2034 DEFAULT_wxUSE_FONTMAP=no
2035 DEFAULT_wxUSE_STREAMS=no
2036 DEFAULT_wxUSE_SOCKETS=no
2037 DEFAULT_wxUSE_OLE=no
2038 DEFAULT_wxUSE_DATAOBJ=no
2039 DEFAULT_wxUSE_DIALUP_MANAGER=no
2040 DEFAULT_wxUSE_JOYSTICK=no
2041 DEFAULT_wxUSE_DYNLIB_CLASS=no
2042 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2043 DEFAULT_wxUSE_LONGLONG=no
2044 DEFAULT_wxUSE_GEOMETRY=no
2045
2046 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2047 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2048 DEFAULT_wxUSE_POSTSCRIPT=no
2049
2050 DEFAULT_wxUSE_CLIPBOARD=no
2051 DEFAULT_wxUSE_TOOLTIPS=no
2052 DEFAULT_wxUSE_DRAG_AND_DROP=no
2053 DEFAULT_wxUSE_DRAGIMAGE=no
2054 DEFAULT_wxUSE_SPLINES=no
2055
2056 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2057 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2058 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2059
2060 DEFAULT_wxUSE_RESOURCES=no
2061 DEFAULT_wxUSE_CONSTRAINTS=no
2062 DEFAULT_wxUSE_IPC=no
2063 DEFAULT_wxUSE_HELP=no
2064 DEFAULT_wxUSE_MS_HTML_HELP=no
2065 DEFAULT_wxUSE_WXHTML_HELP=no
2066 DEFAULT_wxUSE_TREELAYOUT=no
2067 DEFAULT_wxUSE_METAFILE=no
2068 DEFAULT_wxUSE_MIMETYPE=no
2069 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2070 DEFAULT_wxUSE_PROTOCOL=no
2071 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2072 DEFAULT_wxUSE_PROTOCOL_FTP=no
2073 DEFAULT_wxUSE_PROTOCOL_FILE=no
2074 DEFAULT_wxUSE_URL=no
2075
2076 DEFAULT_wxUSE_COMMONDLGS=no
2077 DEFAULT_wxUSE_CHOICEDLG=no
2078 DEFAULT_wxUSE_COLOURDLG=no
2079 DEFAULT_wxUSE_DIRDLG=no
2080 DEFAULT_wxUSE_FILEDLG=no
2081 DEFAULT_wxUSE_FINDREPLDLG=no
2082 DEFAULT_wxUSE_FONTDLG=no
2083 DEFAULT_wxUSE_MSGDLG=no
2084 DEFAULT_wxUSE_NUMBERDLG=no
2085 DEFAULT_wxUSE_TEXTDLG=no
2086 DEFAULT_wxUSE_SPLASH=no
2087 DEFAULT_wxUSE_STARTUP_TIPS=no
2088 DEFAULT_wxUSE_PROGRESSDLG=no
2089 DEFAULT_wxUSE_WIZARDDLG=no
2090
2091 DEFAULT_wxUSE_MENUS=no
2092 DEFAULT_wxUSE_MINIFRAME=no
2093 DEFAULT_wxUSE_HTML=no
2094 DEFAULT_wxUSE_FILESYSTEM=no
2095 DEFAULT_wxUSE_FS_INET=no
2096 DEFAULT_wxUSE_FS_ZIP=no
2097 DEFAULT_wxUSE_BUSYINFO=no
2098 DEFAULT_wxUSE_ZIPSTREAM=no
2099 DEFAULT_wxUSE_GZSTREAM=no
2100 DEFAULT_wxUSE_VALIDATORS=no
2101
2102 DEFAULT_wxUSE_ACCEL=no
2103 DEFAULT_wxUSE_BUTTON=no
2104 DEFAULT_wxUSE_BMPBUTTON=no
2105 DEFAULT_wxUSE_CALCTRL=no
2106 DEFAULT_wxUSE_CARET=no
2107 DEFAULT_wxUSE_CHECKBOX=no
2108 DEFAULT_wxUSE_CHECKLST=no
2109 DEFAULT_wxUSE_CHOICE=no
2110 DEFAULT_wxUSE_COMBOBOX=no
2111 DEFAULT_wxUSE_DISPLAY=no
2112 DEFAULT_wxUSE_GAUGE=no
2113 DEFAULT_wxUSE_GRID=no
2114 DEFAULT_wxUSE_IMAGLIST=no
2115 DEFAULT_wxUSE_LISTBOOK=no
2116 DEFAULT_wxUSE_LISTBOX=no
2117 DEFAULT_wxUSE_LISTCTRL=no
2118 DEFAULT_wxUSE_NOTEBOOK=no
2119 DEFAULT_wxUSE_RADIOBOX=no
2120 DEFAULT_wxUSE_RADIOBTN=no
2121 DEFAULT_wxUSE_SASH=no
2122 DEFAULT_wxUSE_SCROLLBAR=no
2123 DEFAULT_wxUSE_SLIDER=no
2124 DEFAULT_wxUSE_SPINBTN=no
2125 DEFAULT_wxUSE_SPINCTRL=no
2126 DEFAULT_wxUSE_SPLITTER=no
2127 DEFAULT_wxUSE_STATBMP=no
2128 DEFAULT_wxUSE_STATBOX=no
2129 DEFAULT_wxUSE_STATLINE=no
2130 DEFAULT_wxUSE_STATTEXT=no
2131 DEFAULT_wxUSE_STATUSBAR=yes
2132 DEFAULT_wxUSE_TABDIALOG=no
2133 DEFAULT_wxUSE_TEXTCTRL=no
2134 DEFAULT_wxUSE_TOGGLEBTN=no
2135 DEFAULT_wxUSE_TOOLBAR=no
2136 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2137 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2138 DEFAULT_wxUSE_TREECTRL=no
2139 DEFAULT_wxUSE_POPUPWIN=no
2140 DEFAULT_wxUSE_TIPWINDOW=no
2141
2142 DEFAULT_wxUSE_UNICODE=no
2143 DEFAULT_wxUSE_UNICODE_MSLU=no
2144 DEFAULT_wxUSE_WCSRTOMBS=no
2145
2146 DEFAULT_wxUSE_PALETTE=no
2147 DEFAULT_wxUSE_IMAGE=no
2148 DEFAULT_wxUSE_GIF=no
2149 DEFAULT_wxUSE_PCX=no
2150 DEFAULT_wxUSE_PNM=no
2151 DEFAULT_wxUSE_IFF=no
2152 DEFAULT_wxUSE_XPM=no
2153 DEFAULT_wxUSE_ICO_CUR=no
2154 DEFAULT_wxUSE_ACCESSIBILITY=no
2155
2156 DEFAULT_wxUSE_MONOLITHIC=no
2157 DEFAULT_wxUSE_PLUGINS=no
2158 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2159 else
2160 DEFAULT_wxUSE_UNIVERSAL=no
2161 DEFAULT_wxUSE_STL=no
2162
2163 DEFAULT_wxUSE_NANOX=no
2164
2165 DEFAULT_wxUSE_THREADS=yes
2166
2167 DEFAULT_wxUSE_SHARED=yes
2168 DEFAULT_wxUSE_OPTIMISE=yes
2169 DEFAULT_wxUSE_PROFILE=no
2170 DEFAULT_wxUSE_NO_DEPS=no
2171 DEFAULT_wxUSE_NO_RTTI=no
2172 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2173 DEFAULT_wxUSE_PERMISSIVE=no
2174 DEFAULT_wxUSE_DEBUG_FLAG=no
2175 DEFAULT_wxUSE_DEBUG_INFO=no
2176 DEFAULT_wxUSE_DEBUG_GDB=no
2177 DEFAULT_wxUSE_MEM_TRACING=no
2178 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2179 DEFAULT_wxUSE_DMALLOC=no
2180 DEFAULT_wxUSE_APPLE_IEEE=yes
2181
2182 DEFAULT_wxUSE_EXCEPTIONS=yes
2183 DEFAULT_wxUSE_LOG=yes
2184 DEFAULT_wxUSE_LOGWINDOW=yes
2185 DEFAULT_wxUSE_LOGGUI=yes
2186 DEFAULT_wxUSE_LOGDIALOG=yes
2187
2188 DEFAULT_wxUSE_GUI=yes
2189
2190 DEFAULT_wxUSE_REGEX=yes
2191 DEFAULT_wxUSE_XML=yes
2192 DEFAULT_wxUSE_EXPAT=yes
2193 DEFAULT_wxUSE_ZLIB=yes
2194 DEFAULT_wxUSE_LIBPNG=yes
2195 DEFAULT_wxUSE_LIBJPEG=yes
2196 DEFAULT_wxUSE_LIBTIFF=yes
2197 DEFAULT_wxUSE_LIBXPM=yes
2198 DEFAULT_wxUSE_LIBMSPACK=yes
2199 DEFAULT_wxUSE_LIBSDL=no
2200 DEFAULT_wxUSE_ODBC=no
2201 DEFAULT_wxUSE_OPENGL=no
2202
2203 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2204 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2205 DEFAULT_wxUSE_STD_IOSTREAM=no
2206 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2207 DEFAULT_wxUSE_DATETIME=yes
2208 DEFAULT_wxUSE_TIMER=yes
2209 DEFAULT_wxUSE_STOPWATCH=yes
2210 DEFAULT_wxUSE_FILE=yes
2211 DEFAULT_wxUSE_FFILE=yes
2212 DEFAULT_wxUSE_TEXTBUFFER=yes
2213 DEFAULT_wxUSE_TEXTFILE=yes
2214 DEFAULT_wxUSE_SOUND=yes
2215 DEFAULT_wxUSE_INTL=yes
2216 DEFAULT_wxUSE_CONFIG=yes
2217 DEFAULT_wxUSE_FONTMAP=yes
2218 DEFAULT_wxUSE_STREAMS=yes
2219 DEFAULT_wxUSE_SOCKETS=yes
2220 DEFAULT_wxUSE_OLE=yes
2221 DEFAULT_wxUSE_DATAOBJ=yes
2222 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2223 DEFAULT_wxUSE_JOYSTICK=yes
2224 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2225 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2226 DEFAULT_wxUSE_LONGLONG=yes
2227 DEFAULT_wxUSE_GEOMETRY=yes
2228
2229 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2230 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2231 DEFAULT_wxUSE_POSTSCRIPT=yes
2232
2233 DEFAULT_wxUSE_CLIPBOARD=yes
2234 DEFAULT_wxUSE_TOOLTIPS=yes
2235 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2236 DEFAULT_wxUSE_DRAGIMAGE=yes
2237 DEFAULT_wxUSE_SPLINES=yes
2238
2239 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2240 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2241 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2242
2243 DEFAULT_wxUSE_RESOURCES=no
2244 DEFAULT_wxUSE_CONSTRAINTS=yes
2245 DEFAULT_wxUSE_IPC=yes
2246 DEFAULT_wxUSE_HELP=yes
2247 DEFAULT_wxUSE_MS_HTML_HELP=yes
2248 DEFAULT_wxUSE_WXHTML_HELP=yes
2249 DEFAULT_wxUSE_TREELAYOUT=yes
2250 DEFAULT_wxUSE_METAFILE=yes
2251 DEFAULT_wxUSE_MIMETYPE=yes
2252 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2253 DEFAULT_wxUSE_PROTOCOL=yes
2254 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2255 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2256 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2257 DEFAULT_wxUSE_URL=yes
2258
2259 DEFAULT_wxUSE_COMMONDLGS=yes
2260 DEFAULT_wxUSE_CHOICEDLG=yes
2261 DEFAULT_wxUSE_COLOURDLG=yes
2262 DEFAULT_wxUSE_DIRDLG=yes
2263 DEFAULT_wxUSE_FILEDLG=yes
2264 DEFAULT_wxUSE_FINDREPLDLG=yes
2265 DEFAULT_wxUSE_FONTDLG=yes
2266 DEFAULT_wxUSE_MSGDLG=yes
2267 DEFAULT_wxUSE_NUMBERDLG=yes
2268 DEFAULT_wxUSE_TEXTDLG=yes
2269 DEFAULT_wxUSE_SPLASH=yes
2270 DEFAULT_wxUSE_STARTUP_TIPS=yes
2271 DEFAULT_wxUSE_PROGRESSDLG=yes
2272 DEFAULT_wxUSE_WIZARDDLG=yes
2273
2274 DEFAULT_wxUSE_MENUS=yes
2275 DEFAULT_wxUSE_MINIFRAME=yes
2276 DEFAULT_wxUSE_HTML=yes
2277 DEFAULT_wxUSE_FILESYSTEM=yes
2278 DEFAULT_wxUSE_FS_INET=yes
2279 DEFAULT_wxUSE_FS_ZIP=yes
2280 DEFAULT_wxUSE_BUSYINFO=yes
2281 DEFAULT_wxUSE_ZIPSTREAM=yes
2282 DEFAULT_wxUSE_GZSTREAM=yes
2283 DEFAULT_wxUSE_VALIDATORS=yes
2284
2285 DEFAULT_wxUSE_ACCEL=yes
2286 DEFAULT_wxUSE_BUTTON=yes
2287 DEFAULT_wxUSE_BMPBUTTON=yes
2288 DEFAULT_wxUSE_CALCTRL=yes
2289 DEFAULT_wxUSE_CARET=yes
2290 DEFAULT_wxUSE_CHECKBOX=yes
2291 DEFAULT_wxUSE_CHECKLST=yes
2292 DEFAULT_wxUSE_CHOICE=yes
2293 DEFAULT_wxUSE_COMBOBOX=yes
2294 DEFAULT_wxUSE_DISPLAY=no
2295 DEFAULT_wxUSE_GAUGE=yes
2296 DEFAULT_wxUSE_GRID=yes
2297 DEFAULT_wxUSE_IMAGLIST=yes
2298 DEFAULT_wxUSE_LISTBOOK=yes
2299 DEFAULT_wxUSE_LISTBOX=yes
2300 DEFAULT_wxUSE_LISTCTRL=yes
2301 DEFAULT_wxUSE_NOTEBOOK=yes
2302 DEFAULT_wxUSE_RADIOBOX=yes
2303 DEFAULT_wxUSE_RADIOBTN=yes
2304 DEFAULT_wxUSE_SASH=yes
2305 DEFAULT_wxUSE_SCROLLBAR=yes
2306 DEFAULT_wxUSE_SLIDER=yes
2307 DEFAULT_wxUSE_SPINBTN=yes
2308 DEFAULT_wxUSE_SPINCTRL=yes
2309 DEFAULT_wxUSE_SPLITTER=yes
2310 DEFAULT_wxUSE_STATBMP=yes
2311 DEFAULT_wxUSE_STATBOX=yes
2312 DEFAULT_wxUSE_STATLINE=yes
2313 DEFAULT_wxUSE_STATTEXT=yes
2314 DEFAULT_wxUSE_STATUSBAR=yes
2315 DEFAULT_wxUSE_TABDIALOG=no
2316 DEFAULT_wxUSE_TEXTCTRL=yes
2317 DEFAULT_wxUSE_TOGGLEBTN=yes
2318 DEFAULT_wxUSE_TOOLBAR=yes
2319 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2320 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2321 DEFAULT_wxUSE_TREECTRL=yes
2322 DEFAULT_wxUSE_POPUPWIN=yes
2323 DEFAULT_wxUSE_TIPWINDOW=yes
2324
2325 DEFAULT_wxUSE_UNICODE=no
2326 DEFAULT_wxUSE_UNICODE_MSLU=yes
2327 DEFAULT_wxUSE_WCSRTOMBS=no
2328
2329 DEFAULT_wxUSE_PALETTE=yes
2330 DEFAULT_wxUSE_IMAGE=yes
2331 DEFAULT_wxUSE_GIF=yes
2332 DEFAULT_wxUSE_PCX=yes
2333 DEFAULT_wxUSE_IFF=no
2334 DEFAULT_wxUSE_PNM=yes
2335 DEFAULT_wxUSE_XPM=yes
2336 DEFAULT_wxUSE_ICO_CUR=yes
2337 DEFAULT_wxUSE_ACCESSIBILITY=no
2338
2339 DEFAULT_wxUSE_MONOLITHIC=no
2340 DEFAULT_wxUSE_PLUGINS=no
2341 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2342 fi
2343
2344
2345
2346 for toolkit in `echo $ALL_TOOLKITS`; do
2347 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2348 if test "x$LINE" != "x" ; then
2349 has_toolkit_in_cache=1
2350 eval "DEFAULT_$LINE"
2351 eval "CACHE_$toolkit=1"
2352 fi
2353 done
2354
2355
2356
2357 enablestring=
2358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2359 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2360 no_cache=0
2361 # Check whether --enable-gui or --disable-gui was given.
2362 if test "${enable_gui+set}" = set; then
2363 enableval="$enable_gui"
2364
2365 if test "$enableval" = yes; then
2366 ac_cv_use_gui='wxUSE_GUI=yes'
2367 else
2368 ac_cv_use_gui='wxUSE_GUI=no'
2369 fi
2370
2371 else
2372
2373 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2374 if test "x$LINE" != x ; then
2375 eval "DEFAULT_$LINE"
2376 else
2377 no_cache=1
2378 fi
2379
2380 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2381
2382 fi;
2383
2384 eval "$ac_cv_use_gui"
2385 if test "$no_cache" != 1; then
2386 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2387 fi
2388
2389 if test "$wxUSE_GUI" = yes; then
2390 echo "$as_me:$LINENO: result: yes" >&5
2391 echo "${ECHO_T}yes" >&6
2392 else
2393 echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6
2395 fi
2396
2397
2398 enablestring=
2399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2400 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2401 no_cache=0
2402 # Check whether --enable-monolithic or --disable-monolithic was given.
2403 if test "${enable_monolithic+set}" = set; then
2404 enableval="$enable_monolithic"
2405
2406 if test "$enableval" = yes; then
2407 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2408 else
2409 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2410 fi
2411
2412 else
2413
2414 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2415 if test "x$LINE" != x ; then
2416 eval "DEFAULT_$LINE"
2417 else
2418 no_cache=1
2419 fi
2420
2421 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2422
2423 fi;
2424
2425 eval "$ac_cv_use_monolithic"
2426 if test "$no_cache" != 1; then
2427 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2428 fi
2429
2430 if test "$wxUSE_MONOLITHIC" = yes; then
2431 echo "$as_me:$LINENO: result: yes" >&5
2432 echo "${ECHO_T}yes" >&6
2433 else
2434 echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6
2436 fi
2437
2438
2439 enablestring=
2440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2441 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2442 no_cache=0
2443 # Check whether --enable-plugins or --disable-plugins was given.
2444 if test "${enable_plugins+set}" = set; then
2445 enableval="$enable_plugins"
2446
2447 if test "$enableval" = yes; then
2448 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2449 else
2450 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2451 fi
2452
2453 else
2454
2455 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2463
2464 fi;
2465
2466 eval "$ac_cv_use_plugins"
2467 if test "$no_cache" != 1; then
2468 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2469 fi
2470
2471 if test "$wxUSE_PLUGINS" = yes; then
2472 echo "$as_me:$LINENO: result: yes" >&5
2473 echo "${ECHO_T}yes" >&6
2474 else
2475 echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6
2477 fi
2478
2479
2480 if test "$wxUSE_GUI" = "yes"; then
2481
2482
2483 enablestring=
2484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2485 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2486 no_cache=0
2487 # Check whether --enable-universal or --disable-universal was given.
2488 if test "${enable_universal+set}" = set; then
2489 enableval="$enable_universal"
2490
2491 if test "$enableval" = yes; then
2492 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2493 else
2494 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2495 fi
2496
2497 else
2498
2499 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2500 if test "x$LINE" != x ; then
2501 eval "DEFAULT_$LINE"
2502 else
2503 no_cache=1
2504 fi
2505
2506 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2507
2508 fi;
2509
2510 eval "$ac_cv_use_universal"
2511 if test "$no_cache" != 1; then
2512 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2513 fi
2514
2515 if test "$wxUSE_UNIVERSAL" = yes; then
2516 echo "$as_me:$LINENO: result: yes" >&5
2517 echo "${ECHO_T}yes" >&6
2518 else
2519 echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2521 fi
2522
2523
2524 # Check whether --with-gtk or --without-gtk was given.
2525 if test "${with_gtk+set}" = set; then
2526 withval="$with_gtk"
2527 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2528 fi;
2529
2530 # Check whether --with-motif or --without-motif was given.
2531 if test "${with_motif+set}" = set; then
2532 withval="$with_motif"
2533 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2534 fi;
2535
2536 # Check whether --with-mac or --without-mac was given.
2537 if test "${with_mac+set}" = set; then
2538 withval="$with_mac"
2539 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2540 fi;
2541
2542 # Check whether --with-cocoa or --without-cocoa was given.
2543 if test "${with_cocoa+set}" = set; then
2544 withval="$with_cocoa"
2545 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2546 fi;
2547
2548 # Check whether --with-wine or --without-wine was given.
2549 if test "${with_wine+set}" = set; then
2550 withval="$with_wine"
2551 wxUSE_WINE="$withval" CACHE_WINE=1
2552 fi;
2553
2554 # Check whether --with-msw or --without-msw was given.
2555 if test "${with_msw+set}" = set; then
2556 withval="$with_msw"
2557 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2558 fi;
2559
2560 # Check whether --with-pm or --without-pm was given.
2561 if test "${with_pm+set}" = set; then
2562 withval="$with_pm"
2563 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2564 fi;
2565
2566 # Check whether --with-mgl or --without-mgl was given.
2567 if test "${with_mgl+set}" = set; then
2568 withval="$with_mgl"
2569 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2570 fi;
2571
2572 # Check whether --with-microwin or --without-microwin was given.
2573 if test "${with_microwin+set}" = set; then
2574 withval="$with_microwin"
2575 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2576 fi;
2577
2578 # Check whether --with-x11 or --without-x11 was given.
2579 if test "${with_x11+set}" = set; then
2580 withval="$with_x11"
2581 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2582 fi;
2583
2584 enablestring=
2585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2586 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2587 no_cache=0
2588 # Check whether --enable-nanox or --disable-nanox was given.
2589 if test "${enable_nanox+set}" = set; then
2590 enableval="$enable_nanox"
2591
2592 if test "$enableval" = yes; then
2593 ac_cv_use_nanox='wxUSE_NANOX=yes'
2594 else
2595 ac_cv_use_nanox='wxUSE_NANOX=no'
2596 fi
2597
2598 else
2599
2600 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2601 if test "x$LINE" != x ; then
2602 eval "DEFAULT_$LINE"
2603 else
2604 no_cache=1
2605 fi
2606
2607 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2608
2609 fi;
2610
2611 eval "$ac_cv_use_nanox"
2612 if test "$no_cache" != 1; then
2613 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2614 fi
2615
2616 if test "$wxUSE_NANOX" = yes; then
2617 echo "$as_me:$LINENO: result: yes" >&5
2618 echo "${ECHO_T}yes" >&6
2619 else
2620 echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6
2622 fi
2623
2624
2625
2626 enablestring=
2627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2628 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2629 no_cache=0
2630 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2631 if test "${enable_gtk2+set}" = set; then
2632 enableval="$enable_gtk2"
2633
2634 if test "$enableval" = yes; then
2635 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2636 else
2637 ac_cv_use_gtk2='wxUSE_GTK2=no'
2638 fi
2639
2640 else
2641
2642 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2643 if test "x$LINE" != x ; then
2644 eval "DEFAULT_$LINE"
2645 else
2646 no_cache=1
2647 fi
2648
2649 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2650
2651 fi;
2652
2653 eval "$ac_cv_use_gtk2"
2654 if test "$no_cache" != 1; then
2655 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2656 fi
2657
2658 if test "$wxUSE_GTK2" = yes; then
2659 echo "$as_me:$LINENO: result: yes" >&5
2660 echo "${ECHO_T}yes" >&6
2661 else
2662 echo "$as_me:$LINENO: result: no" >&5
2663 echo "${ECHO_T}no" >&6
2664 fi
2665
2666
2667
2668 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2669 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2670 no_cache=0
2671
2672 # Check whether --with-libpng or --without-libpng was given.
2673 if test "${with_libpng+set}" = set; then
2674 withval="$with_libpng"
2675
2676 if test "$withval" = yes; then
2677 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2678 elif test "$withval" = no; then
2679 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2680 elif test "$withval" = sys; then
2681 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2682 elif test "$withval" = builtin; then
2683 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2684 else
2685 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2686 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2687 { (exit 1); exit 1; }; }
2688 fi
2689
2690 else
2691
2692 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2693 if test "x$LINE" != x ; then
2694 eval "DEFAULT_$LINE"
2695 else
2696 no_cache=1
2697 fi
2698
2699 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2700
2701 fi;
2702
2703 eval "$ac_cv_use_libpng"
2704 if test "$no_cache" != 1; then
2705 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2706 fi
2707
2708 if test "$wxUSE_LIBPNG" = yes; then
2709 echo "$as_me:$LINENO: result: yes" >&5
2710 echo "${ECHO_T}yes" >&6
2711 elif test "$wxUSE_LIBPNG" = no; then
2712 echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6
2714 elif test "$wxUSE_LIBPNG" = sys; then
2715 echo "$as_me:$LINENO: result: system version" >&5
2716 echo "${ECHO_T}system version" >&6
2717 elif test "$wxUSE_LIBPNG" = builtin; then
2718 echo "$as_me:$LINENO: result: builtin version" >&5
2719 echo "${ECHO_T}builtin version" >&6
2720 else
2721 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2722 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2723 { (exit 1); exit 1; }; }
2724 fi
2725
2726
2727 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2728 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2729 no_cache=0
2730
2731 # Check whether --with-libjpeg or --without-libjpeg was given.
2732 if test "${with_libjpeg+set}" = set; then
2733 withval="$with_libjpeg"
2734
2735 if test "$withval" = yes; then
2736 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2737 elif test "$withval" = no; then
2738 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2739 elif test "$withval" = sys; then
2740 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2741 elif test "$withval" = builtin; then
2742 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2743 else
2744 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2745 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2746 { (exit 1); exit 1; }; }
2747 fi
2748
2749 else
2750
2751 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
2758 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2759
2760 fi;
2761
2762 eval "$ac_cv_use_libjpeg"
2763 if test "$no_cache" != 1; then
2764 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2765 fi
2766
2767 if test "$wxUSE_LIBJPEG" = yes; then
2768 echo "$as_me:$LINENO: result: yes" >&5
2769 echo "${ECHO_T}yes" >&6
2770 elif test "$wxUSE_LIBJPEG" = no; then
2771 echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6
2773 elif test "$wxUSE_LIBJPEG" = sys; then
2774 echo "$as_me:$LINENO: result: system version" >&5
2775 echo "${ECHO_T}system version" >&6
2776 elif test "$wxUSE_LIBJPEG" = builtin; then
2777 echo "$as_me:$LINENO: result: builtin version" >&5
2778 echo "${ECHO_T}builtin version" >&6
2779 else
2780 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2781 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2782 { (exit 1); exit 1; }; }
2783 fi
2784
2785
2786 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2787 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2788 no_cache=0
2789
2790 # Check whether --with-libtiff or --without-libtiff was given.
2791 if test "${with_libtiff+set}" = set; then
2792 withval="$with_libtiff"
2793
2794 if test "$withval" = yes; then
2795 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2796 elif test "$withval" = no; then
2797 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2798 elif test "$withval" = sys; then
2799 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2800 elif test "$withval" = builtin; then
2801 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2802 else
2803 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2804 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2805 { (exit 1); exit 1; }; }
2806 fi
2807
2808 else
2809
2810 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2811 if test "x$LINE" != x ; then
2812 eval "DEFAULT_$LINE"
2813 else
2814 no_cache=1
2815 fi
2816
2817 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2818
2819 fi;
2820
2821 eval "$ac_cv_use_libtiff"
2822 if test "$no_cache" != 1; then
2823 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2824 fi
2825
2826 if test "$wxUSE_LIBTIFF" = yes; then
2827 echo "$as_me:$LINENO: result: yes" >&5
2828 echo "${ECHO_T}yes" >&6
2829 elif test "$wxUSE_LIBTIFF" = no; then
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2832 elif test "$wxUSE_LIBTIFF" = sys; then
2833 echo "$as_me:$LINENO: result: system version" >&5
2834 echo "${ECHO_T}system version" >&6
2835 elif test "$wxUSE_LIBTIFF" = builtin; then
2836 echo "$as_me:$LINENO: result: builtin version" >&5
2837 echo "${ECHO_T}builtin version" >&6
2838 else
2839 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2840 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2841 { (exit 1); exit 1; }; }
2842 fi
2843
2844
2845 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2846 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2847 no_cache=0
2848
2849 # Check whether --with-libxpm or --without-libxpm was given.
2850 if test "${with_libxpm+set}" = set; then
2851 withval="$with_libxpm"
2852
2853 if test "$withval" = yes; then
2854 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2855 elif test "$withval" = no; then
2856 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2857 elif test "$withval" = sys; then
2858 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2859 elif test "$withval" = builtin; then
2860 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2861 else
2862 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2863 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2864 { (exit 1); exit 1; }; }
2865 fi
2866
2867 else
2868
2869 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2870 if test "x$LINE" != x ; then
2871 eval "DEFAULT_$LINE"
2872 else
2873 no_cache=1
2874 fi
2875
2876 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2877
2878 fi;
2879
2880 eval "$ac_cv_use_libxpm"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_LIBXPM" = yes; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6
2888 elif test "$wxUSE_LIBXPM" = no; then
2889 echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2891 elif test "$wxUSE_LIBXPM" = sys; then
2892 echo "$as_me:$LINENO: result: system version" >&5
2893 echo "${ECHO_T}system version" >&6
2894 elif test "$wxUSE_LIBXPM" = builtin; then
2895 echo "$as_me:$LINENO: result: builtin version" >&5
2896 echo "${ECHO_T}builtin version" >&6
2897 else
2898 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2899 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2900 { (exit 1); exit 1; }; }
2901 fi
2902
2903
2904 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2905 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2906 no_cache=0
2907
2908 # Check whether --with-libmspack or --without-libmspack was given.
2909 if test "${with_libmspack+set}" = set; then
2910 withval="$with_libmspack"
2911
2912 if test "$withval" = yes; then
2913 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2914 else
2915 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2916 fi
2917
2918 else
2919
2920 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2921 if test "x$LINE" != x ; then
2922 eval "DEFAULT_$LINE"
2923 else
2924 no_cache=1
2925 fi
2926
2927 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2928
2929 fi;
2930
2931 eval "$ac_cv_use_libmspack"
2932 if test "$no_cache" != 1; then
2933 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2934 fi
2935
2936 if test "$wxUSE_LIBMSPACK" = yes; then
2937 echo "$as_me:$LINENO: result: yes" >&5
2938 echo "${ECHO_T}yes" >&6
2939 else
2940 echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6
2942 fi
2943
2944
2945 echo "$as_me:$LINENO: checking for --with-sdl" >&5
2946 echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
2947 no_cache=0
2948
2949 # Check whether --with-sdl or --without-sdl was given.
2950 if test "${with_sdl+set}" = set; then
2951 withval="$with_sdl"
2952
2953 if test "$withval" = yes; then
2954 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
2955 else
2956 ac_cv_use_sdl='wxUSE_LIBSDL=no'
2957 fi
2958
2959 else
2960
2961 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
2962 if test "x$LINE" != x ; then
2963 eval "DEFAULT_$LINE"
2964 else
2965 no_cache=1
2966 fi
2967
2968 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
2969
2970 fi;
2971
2972 eval "$ac_cv_use_sdl"
2973 if test "$no_cache" != 1; then
2974 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
2975 fi
2976
2977 if test "$wxUSE_LIBSDL" = yes; then
2978 echo "$as_me:$LINENO: result: yes" >&5
2979 echo "${ECHO_T}yes" >&6
2980 else
2981 echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2983 fi
2984
2985
2986 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2987 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
2988 no_cache=0
2989
2990 # Check whether --with-opengl or --without-opengl was given.
2991 if test "${with_opengl+set}" = set; then
2992 withval="$with_opengl"
2993
2994 if test "$withval" = yes; then
2995 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2996 else
2997 ac_cv_use_opengl='wxUSE_OPENGL=no'
2998 fi
2999
3000 else
3001
3002 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3003 if test "x$LINE" != x ; then
3004 eval "DEFAULT_$LINE"
3005 else
3006 no_cache=1
3007 fi
3008
3009 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3010
3011 fi;
3012
3013 eval "$ac_cv_use_opengl"
3014 if test "$no_cache" != 1; then
3015 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3016 fi
3017
3018 if test "$wxUSE_OPENGL" = yes; then
3019 echo "$as_me:$LINENO: result: yes" >&5
3020 echo "${ECHO_T}yes" >&6
3021 else
3022 echo "$as_me:$LINENO: result: no" >&5
3023 echo "${ECHO_T}no" >&6
3024 fi
3025
3026
3027 fi
3028
3029
3030 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3031 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3032 no_cache=0
3033
3034 # Check whether --with-dmalloc or --without-dmalloc was given.
3035 if test "${with_dmalloc+set}" = set; then
3036 withval="$with_dmalloc"
3037
3038 if test "$withval" = yes; then
3039 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3040 else
3041 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3042 fi
3043
3044 else
3045
3046 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3047 if test "x$LINE" != x ; then
3048 eval "DEFAULT_$LINE"
3049 else
3050 no_cache=1
3051 fi
3052
3053 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3054
3055 fi;
3056
3057 eval "$ac_cv_use_dmalloc"
3058 if test "$no_cache" != 1; then
3059 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3060 fi
3061
3062 if test "$wxUSE_DMALLOC" = yes; then
3063 echo "$as_me:$LINENO: result: yes" >&5
3064 echo "${ECHO_T}yes" >&6
3065 else
3066 echo "$as_me:$LINENO: result: no" >&5
3067 echo "${ECHO_T}no" >&6
3068 fi
3069
3070
3071 echo "$as_me:$LINENO: checking for --with-regex" >&5
3072 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3073 no_cache=0
3074
3075 # Check whether --with-regex or --without-regex was given.
3076 if test "${with_regex+set}" = set; then
3077 withval="$with_regex"
3078
3079 if test "$withval" = yes; then
3080 ac_cv_use_regex='wxUSE_REGEX=yes'
3081 elif test "$withval" = no; then
3082 ac_cv_use_regex='wxUSE_REGEX=no'
3083 elif test "$withval" = sys; then
3084 ac_cv_use_regex='wxUSE_REGEX=sys'
3085 elif test "$withval" = builtin; then
3086 ac_cv_use_regex='wxUSE_REGEX=builtin'
3087 else
3088 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3089 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3090 { (exit 1); exit 1; }; }
3091 fi
3092
3093 else
3094
3095 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3103
3104 fi;
3105
3106 eval "$ac_cv_use_regex"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_REGEX" = yes; then
3112 echo "$as_me:$LINENO: result: yes" >&5
3113 echo "${ECHO_T}yes" >&6
3114 elif test "$wxUSE_REGEX" = no; then
3115 echo "$as_me:$LINENO: result: no" >&5
3116 echo "${ECHO_T}no" >&6
3117 elif test "$wxUSE_REGEX" = sys; then
3118 echo "$as_me:$LINENO: result: system version" >&5
3119 echo "${ECHO_T}system version" >&6
3120 elif test "$wxUSE_REGEX" = builtin; then
3121 echo "$as_me:$LINENO: result: builtin version" >&5
3122 echo "${ECHO_T}builtin version" >&6
3123 else
3124 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3125 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3126 { (exit 1); exit 1; }; }
3127 fi
3128
3129
3130 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3131 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3132 no_cache=0
3133
3134 # Check whether --with-zlib or --without-zlib was given.
3135 if test "${with_zlib+set}" = set; then
3136 withval="$with_zlib"
3137
3138 if test "$withval" = yes; then
3139 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3140 elif test "$withval" = no; then
3141 ac_cv_use_zlib='wxUSE_ZLIB=no'
3142 elif test "$withval" = sys; then
3143 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3144 elif test "$withval" = builtin; then
3145 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3146 else
3147 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3148 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3149 { (exit 1); exit 1; }; }
3150 fi
3151
3152 else
3153
3154 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3155 if test "x$LINE" != x ; then
3156 eval "DEFAULT_$LINE"
3157 else
3158 no_cache=1
3159 fi
3160
3161 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3162
3163 fi;
3164
3165 eval "$ac_cv_use_zlib"
3166 if test "$no_cache" != 1; then
3167 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3168 fi
3169
3170 if test "$wxUSE_ZLIB" = yes; then
3171 echo "$as_me:$LINENO: result: yes" >&5
3172 echo "${ECHO_T}yes" >&6
3173 elif test "$wxUSE_ZLIB" = no; then
3174 echo "$as_me:$LINENO: result: no" >&5
3175 echo "${ECHO_T}no" >&6
3176 elif test "$wxUSE_ZLIB" = sys; then
3177 echo "$as_me:$LINENO: result: system version" >&5
3178 echo "${ECHO_T}system version" >&6
3179 elif test "$wxUSE_ZLIB" = builtin; then
3180 echo "$as_me:$LINENO: result: builtin version" >&5
3181 echo "${ECHO_T}builtin version" >&6
3182 else
3183 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3184 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3185 { (exit 1); exit 1; }; }
3186 fi
3187
3188
3189 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3190 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3191 no_cache=0
3192
3193 # Check whether --with-odbc or --without-odbc was given.
3194 if test "${with_odbc+set}" = set; then
3195 withval="$with_odbc"
3196
3197 if test "$withval" = yes; then
3198 ac_cv_use_odbc='wxUSE_ODBC=yes'
3199 elif test "$withval" = no; then
3200 ac_cv_use_odbc='wxUSE_ODBC=no'
3201 elif test "$withval" = sys; then
3202 ac_cv_use_odbc='wxUSE_ODBC=sys'
3203 elif test "$withval" = builtin; then
3204 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3205 else
3206 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3207 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3208 { (exit 1); exit 1; }; }
3209 fi
3210
3211 else
3212
3213 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
3220 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3221
3222 fi;
3223
3224 eval "$ac_cv_use_odbc"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_ODBC" = yes; then
3230 echo "$as_me:$LINENO: result: yes" >&5
3231 echo "${ECHO_T}yes" >&6
3232 elif test "$wxUSE_ODBC" = no; then
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3235 elif test "$wxUSE_ODBC" = sys; then
3236 echo "$as_me:$LINENO: result: system version" >&5
3237 echo "${ECHO_T}system version" >&6
3238 elif test "$wxUSE_ODBC" = builtin; then
3239 echo "$as_me:$LINENO: result: builtin version" >&5
3240 echo "${ECHO_T}builtin version" >&6
3241 else
3242 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3243 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3244 { (exit 1); exit 1; }; }
3245 fi
3246
3247
3248 echo "$as_me:$LINENO: checking for --with-expat" >&5
3249 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3250 no_cache=0
3251
3252 # Check whether --with-expat or --without-expat was given.
3253 if test "${with_expat+set}" = set; then
3254 withval="$with_expat"
3255
3256 if test "$withval" = yes; then
3257 ac_cv_use_expat='wxUSE_EXPAT=yes'
3258 elif test "$withval" = no; then
3259 ac_cv_use_expat='wxUSE_EXPAT=no'
3260 elif test "$withval" = sys; then
3261 ac_cv_use_expat='wxUSE_EXPAT=sys'
3262 elif test "$withval" = builtin; then
3263 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3264 else
3265 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3266 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3267 { (exit 1); exit 1; }; }
3268 fi
3269
3270 else
3271
3272 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3273 if test "x$LINE" != x ; then
3274 eval "DEFAULT_$LINE"
3275 else
3276 no_cache=1
3277 fi
3278
3279 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3280
3281 fi;
3282
3283 eval "$ac_cv_use_expat"
3284 if test "$no_cache" != 1; then
3285 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3286 fi
3287
3288 if test "$wxUSE_EXPAT" = yes; then
3289 echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6
3291 elif test "$wxUSE_EXPAT" = no; then
3292 echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6
3294 elif test "$wxUSE_EXPAT" = sys; then
3295 echo "$as_me:$LINENO: result: system version" >&5
3296 echo "${ECHO_T}system version" >&6
3297 elif test "$wxUSE_EXPAT" = builtin; then
3298 echo "$as_me:$LINENO: result: builtin version" >&5
3299 echo "${ECHO_T}builtin version" >&6
3300 else
3301 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3302 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3303 { (exit 1); exit 1; }; }
3304 fi
3305
3306
3307
3308
3309 enablestring=
3310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3311 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3312 no_cache=0
3313 # Check whether --enable-shared or --disable-shared was given.
3314 if test "${enable_shared+set}" = set; then
3315 enableval="$enable_shared"
3316
3317 if test "$enableval" = yes; then
3318 ac_cv_use_shared='wxUSE_SHARED=yes'
3319 else
3320 ac_cv_use_shared='wxUSE_SHARED=no'
3321 fi
3322
3323 else
3324
3325 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3326 if test "x$LINE" != x ; then
3327 eval "DEFAULT_$LINE"
3328 else
3329 no_cache=1
3330 fi
3331
3332 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3333
3334 fi;
3335
3336 eval "$ac_cv_use_shared"
3337 if test "$no_cache" != 1; then
3338 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3339 fi
3340
3341 if test "$wxUSE_SHARED" = yes; then
3342 echo "$as_me:$LINENO: result: yes" >&5
3343 echo "${ECHO_T}yes" >&6
3344 else
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3347 fi
3348
3349
3350 enablestring=
3351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3352 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3353 no_cache=0
3354 # Check whether --enable-optimise or --disable-optimise was given.
3355 if test "${enable_optimise+set}" = set; then
3356 enableval="$enable_optimise"
3357
3358 if test "$enableval" = yes; then
3359 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3360 else
3361 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3362 fi
3363
3364 else
3365
3366 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3374
3375 fi;
3376
3377 eval "$ac_cv_use_optimise"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_OPTIMISE" = yes; then
3383 echo "$as_me:$LINENO: result: yes" >&5
3384 echo "${ECHO_T}yes" >&6
3385 else
3386 echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3388 fi
3389
3390
3391 enablestring=
3392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3393 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3394 no_cache=0
3395 # Check whether --enable-debug or --disable-debug was given.
3396 if test "${enable_debug+set}" = set; then
3397 enableval="$enable_debug"
3398
3399 if test "$enableval" = yes; then
3400 ac_cv_use_debug='wxUSE_DEBUG=yes'
3401 else
3402 ac_cv_use_debug='wxUSE_DEBUG=no'
3403 fi
3404
3405 else
3406
3407 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3415
3416 fi;
3417
3418 eval "$ac_cv_use_debug"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_DEBUG" = yes; then
3424 echo "$as_me:$LINENO: result: yes" >&5
3425 echo "${ECHO_T}yes" >&6
3426 else
3427 echo "$as_me:$LINENO: result: no" >&5
3428 echo "${ECHO_T}no" >&6
3429 fi
3430
3431
3432 enablestring=
3433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3434 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3435 no_cache=0
3436 # Check whether --enable-stl or --disable-stl was given.
3437 if test "${enable_stl+set}" = set; then
3438 enableval="$enable_stl"
3439
3440 if test "$enableval" = yes; then
3441 ac_cv_use_stl='wxUSE_STL=yes'
3442 else
3443 ac_cv_use_stl='wxUSE_STL=no'
3444 fi
3445
3446 else
3447
3448 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3456
3457 fi;
3458
3459 eval "$ac_cv_use_stl"
3460 if test "$no_cache" != 1; then
3461 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3462 fi
3463
3464 if test "$wxUSE_STL" = yes; then
3465 echo "$as_me:$LINENO: result: yes" >&5
3466 echo "${ECHO_T}yes" >&6
3467 else
3468 echo "$as_me:$LINENO: result: no" >&5
3469 echo "${ECHO_T}no" >&6
3470 fi
3471
3472
3473 if test "$wxUSE_DEBUG" = "yes"; then
3474 DEFAULT_wxUSE_DEBUG_FLAG=yes
3475 DEFAULT_wxUSE_DEBUG_INFO=yes
3476 BUILD=debug
3477 elif test "$wxUSE_DEBUG" = "no"; then
3478 DEFAULT_wxUSE_DEBUG_FLAG=no
3479 DEFAULT_wxUSE_DEBUG_INFO=no
3480 BUILD=release
3481 fi
3482
3483
3484 enablestring=
3485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3486 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3487 no_cache=0
3488 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3489 if test "${enable_debug_flag+set}" = set; then
3490 enableval="$enable_debug_flag"
3491
3492 if test "$enableval" = yes; then
3493 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3494 else
3495 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3496 fi
3497
3498 else
3499
3500 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3501 if test "x$LINE" != x ; then
3502 eval "DEFAULT_$LINE"
3503 else
3504 no_cache=1
3505 fi
3506
3507 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3508
3509 fi;
3510
3511 eval "$ac_cv_use_debug_flag"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_DEBUG_FLAG" = yes; then
3517 echo "$as_me:$LINENO: result: yes" >&5
3518 echo "${ECHO_T}yes" >&6
3519 else
3520 echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3522 fi
3523
3524
3525 enablestring=
3526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3527 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3528 no_cache=0
3529 # Check whether --enable-debug_info or --disable-debug_info was given.
3530 if test "${enable_debug_info+set}" = set; then
3531 enableval="$enable_debug_info"
3532
3533 if test "$enableval" = yes; then
3534 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3535 else
3536 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3537 fi
3538
3539 else
3540
3541 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3549
3550 fi;
3551
3552 eval "$ac_cv_use_debug_info"
3553 if test "$no_cache" != 1; then
3554 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3555 fi
3556
3557 if test "$wxUSE_DEBUG_INFO" = yes; then
3558 echo "$as_me:$LINENO: result: yes" >&5
3559 echo "${ECHO_T}yes" >&6
3560 else
3561 echo "$as_me:$LINENO: result: no" >&5
3562 echo "${ECHO_T}no" >&6
3563 fi
3564
3565
3566 enablestring=
3567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3568 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3569 no_cache=0
3570 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3571 if test "${enable_debug_gdb+set}" = set; then
3572 enableval="$enable_debug_gdb"
3573
3574 if test "$enableval" = yes; then
3575 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3576 else
3577 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3578 fi
3579
3580 else
3581
3582 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3583 if test "x$LINE" != x ; then
3584 eval "DEFAULT_$LINE"
3585 else
3586 no_cache=1
3587 fi
3588
3589 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3590
3591 fi;
3592
3593 eval "$ac_cv_use_debug_gdb"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_DEBUG_GDB" = yes; then
3599 echo "$as_me:$LINENO: result: yes" >&5
3600 echo "${ECHO_T}yes" >&6
3601 else
3602 echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6
3604 fi
3605
3606
3607 enablestring=
3608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3609 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3610 no_cache=0
3611 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3612 if test "${enable_debug_cntxt+set}" = set; then
3613 enableval="$enable_debug_cntxt"
3614
3615 if test "$enableval" = yes; then
3616 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3617 else
3618 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3619 fi
3620
3621 else
3622
3623 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3624 if test "x$LINE" != x ; then
3625 eval "DEFAULT_$LINE"
3626 else
3627 no_cache=1
3628 fi
3629
3630 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3631
3632 fi;
3633
3634 eval "$ac_cv_use_debug_cntxt"
3635 if test "$no_cache" != 1; then
3636 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3637 fi
3638
3639 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3640 echo "$as_me:$LINENO: result: yes" >&5
3641 echo "${ECHO_T}yes" >&6
3642 else
3643 echo "$as_me:$LINENO: result: no" >&5
3644 echo "${ECHO_T}no" >&6
3645 fi
3646
3647
3648 enablestring=
3649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3650 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3651 no_cache=0
3652 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3653 if test "${enable_mem_tracing+set}" = set; then
3654 enableval="$enable_mem_tracing"
3655
3656 if test "$enableval" = yes; then
3657 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3658 else
3659 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3660 fi
3661
3662 else
3663
3664 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3665 if test "x$LINE" != x ; then
3666 eval "DEFAULT_$LINE"
3667 else
3668 no_cache=1
3669 fi
3670
3671 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3672
3673 fi;
3674
3675 eval "$ac_cv_use_mem_tracing"
3676 if test "$no_cache" != 1; then
3677 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3678 fi
3679
3680 if test "$wxUSE_MEM_TRACING" = yes; then
3681 echo "$as_me:$LINENO: result: yes" >&5
3682 echo "${ECHO_T}yes" >&6
3683 else
3684 echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3686 fi
3687
3688
3689 enablestring=
3690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3691 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3692 no_cache=0
3693 # Check whether --enable-profile or --disable-profile was given.
3694 if test "${enable_profile+set}" = set; then
3695 enableval="$enable_profile"
3696
3697 if test "$enableval" = yes; then
3698 ac_cv_use_profile='wxUSE_PROFILE=yes'
3699 else
3700 ac_cv_use_profile='wxUSE_PROFILE=no'
3701 fi
3702
3703 else
3704
3705 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3706 if test "x$LINE" != x ; then
3707 eval "DEFAULT_$LINE"
3708 else
3709 no_cache=1
3710 fi
3711
3712 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3713
3714 fi;
3715
3716 eval "$ac_cv_use_profile"
3717 if test "$no_cache" != 1; then
3718 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3719 fi
3720
3721 if test "$wxUSE_PROFILE" = yes; then
3722 echo "$as_me:$LINENO: result: yes" >&5
3723 echo "${ECHO_T}yes" >&6
3724 else
3725 echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3727 fi
3728
3729
3730 enablestring=
3731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3732 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3733 no_cache=0
3734 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3735 if test "${enable_no_rtti+set}" = set; then
3736 enableval="$enable_no_rtti"
3737
3738 if test "$enableval" = yes; then
3739 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3740 else
3741 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3742 fi
3743
3744 else
3745
3746 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3747 if test "x$LINE" != x ; then
3748 eval "DEFAULT_$LINE"
3749 else
3750 no_cache=1
3751 fi
3752
3753 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3754
3755 fi;
3756
3757 eval "$ac_cv_use_no_rtti"
3758 if test "$no_cache" != 1; then
3759 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3760 fi
3761
3762 if test "$wxUSE_NO_RTTI" = yes; then
3763 echo "$as_me:$LINENO: result: yes" >&5
3764 echo "${ECHO_T}yes" >&6
3765 else
3766 echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3768 fi
3769
3770
3771 enablestring=
3772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3773 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3774 no_cache=0
3775 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3776 if test "${enable_no_exceptions+set}" = set; then
3777 enableval="$enable_no_exceptions"
3778
3779 if test "$enableval" = yes; then
3780 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3781 else
3782 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3783 fi
3784
3785 else
3786
3787 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3788 if test "x$LINE" != x ; then
3789 eval "DEFAULT_$LINE"
3790 else
3791 no_cache=1
3792 fi
3793
3794 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3795
3796 fi;
3797
3798 eval "$ac_cv_use_no_exceptions"
3799 if test "$no_cache" != 1; then
3800 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3801 fi
3802
3803 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3804 echo "$as_me:$LINENO: result: yes" >&5
3805 echo "${ECHO_T}yes" >&6
3806 else
3807 echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6
3809 fi
3810
3811
3812 enablestring=
3813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3814 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3815 no_cache=0
3816 # Check whether --enable-permissive or --disable-permissive was given.
3817 if test "${enable_permissive+set}" = set; then
3818 enableval="$enable_permissive"
3819
3820 if test "$enableval" = yes; then
3821 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3822 else
3823 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3824 fi
3825
3826 else
3827
3828 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3829 if test "x$LINE" != x ; then
3830 eval "DEFAULT_$LINE"
3831 else
3832 no_cache=1
3833 fi
3834
3835 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3836
3837 fi;
3838
3839 eval "$ac_cv_use_permissive"
3840 if test "$no_cache" != 1; then
3841 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3842 fi
3843
3844 if test "$wxUSE_PERMISSIVE" = yes; then
3845 echo "$as_me:$LINENO: result: yes" >&5
3846 echo "${ECHO_T}yes" >&6
3847 else
3848 echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6
3850 fi
3851
3852
3853 enablestring=
3854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3855 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3856 no_cache=0
3857 # Check whether --enable-no_deps or --disable-no_deps was given.
3858 if test "${enable_no_deps+set}" = set; then
3859 enableval="$enable_no_deps"
3860
3861 if test "$enableval" = yes; then
3862 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3863 else
3864 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3865 fi
3866
3867 else
3868
3869 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3870 if test "x$LINE" != x ; then
3871 eval "DEFAULT_$LINE"
3872 else
3873 no_cache=1
3874 fi
3875
3876 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3877
3878 fi;
3879
3880 eval "$ac_cv_use_no_deps"
3881 if test "$no_cache" != 1; then
3882 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3883 fi
3884
3885 if test "$wxUSE_NO_DEPS" = yes; then
3886 echo "$as_me:$LINENO: result: yes" >&5
3887 echo "${ECHO_T}yes" >&6
3888 else
3889 echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3891 fi
3892
3893
3894
3895 enablestring=
3896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3897 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3898 no_cache=0
3899 # Check whether --enable-compat22 or --disable-compat22 was given.
3900 if test "${enable_compat22+set}" = set; then
3901 enableval="$enable_compat22"
3902
3903 if test "$enableval" = yes; then
3904 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3905 else
3906 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3907 fi
3908
3909 else
3910
3911 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3919
3920 fi;
3921
3922 eval "$ac_cv_use_compat22"
3923 if test "$no_cache" != 1; then
3924 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3925 fi
3926
3927 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3928 echo "$as_me:$LINENO: result: yes" >&5
3929 echo "${ECHO_T}yes" >&6
3930 else
3931 echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3933 fi
3934
3935
3936 enablestring=disable
3937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3938 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
3939 no_cache=0
3940 # Check whether --enable-compat24 or --disable-compat24 was given.
3941 if test "${enable_compat24+set}" = set; then
3942 enableval="$enable_compat24"
3943
3944 if test "$enableval" = yes; then
3945 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3946 else
3947 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3948 fi
3949
3950 else
3951
3952 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3953 if test "x$LINE" != x ; then
3954 eval "DEFAULT_$LINE"
3955 else
3956 no_cache=1
3957 fi
3958
3959 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3960
3961 fi;
3962
3963 eval "$ac_cv_use_compat24"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3969 echo "$as_me:$LINENO: result: yes" >&5
3970 echo "${ECHO_T}yes" >&6
3971 else
3972 echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6
3974 fi
3975
3976
3977 # Check whether --enable-rpath or --disable-rpath was given.
3978 if test "${enable_rpath+set}" = set; then
3979 enableval="$enable_rpath"
3980 wxRPATH_DIR="$enableval"
3981 fi;
3982
3983 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3984 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3985 fi
3986
3987
3988
3989
3990 enablestring=
3991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3992 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
3993 no_cache=0
3994 # Check whether --enable-intl or --disable-intl was given.
3995 if test "${enable_intl+set}" = set; then
3996 enableval="$enable_intl"
3997
3998 if test "$enableval" = yes; then
3999 ac_cv_use_intl='wxUSE_INTL=yes'
4000 else
4001 ac_cv_use_intl='wxUSE_INTL=no'
4002 fi
4003
4004 else
4005
4006 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4014
4015 fi;
4016
4017 eval "$ac_cv_use_intl"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_INTL" = yes; then
4023 echo "$as_me:$LINENO: result: yes" >&5
4024 echo "${ECHO_T}yes" >&6
4025 else
4026 echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6
4028 fi
4029
4030
4031 enablestring=
4032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4033 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4034 no_cache=0
4035 # Check whether --enable-config or --disable-config was given.
4036 if test "${enable_config+set}" = set; then
4037 enableval="$enable_config"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_config='wxUSE_CONFIG=yes'
4041 else
4042 ac_cv_use_config='wxUSE_CONFIG=no'
4043 fi
4044
4045 else
4046
4047 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4055
4056 fi;
4057
4058 eval "$ac_cv_use_config"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_CONFIG" = yes; then
4064 echo "$as_me:$LINENO: result: yes" >&5
4065 echo "${ECHO_T}yes" >&6
4066 else
4067 echo "$as_me:$LINENO: result: no" >&5
4068 echo "${ECHO_T}no" >&6
4069 fi
4070
4071
4072
4073 enablestring=
4074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4075 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4076 no_cache=0
4077 # Check whether --enable-protocols or --disable-protocols was given.
4078 if test "${enable_protocols+set}" = set; then
4079 enableval="$enable_protocols"
4080
4081 if test "$enableval" = yes; then
4082 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4083 else
4084 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4085 fi
4086
4087 else
4088
4089 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4090 if test "x$LINE" != x ; then
4091 eval "DEFAULT_$LINE"
4092 else
4093 no_cache=1
4094 fi
4095
4096 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4097
4098 fi;
4099
4100 eval "$ac_cv_use_protocols"
4101 if test "$no_cache" != 1; then
4102 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4103 fi
4104
4105 if test "$wxUSE_PROTOCOL" = yes; then
4106 echo "$as_me:$LINENO: result: yes" >&5
4107 echo "${ECHO_T}yes" >&6
4108 else
4109 echo "$as_me:$LINENO: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4111 fi
4112
4113
4114 enablestring=
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4116 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4117 no_cache=0
4118 # Check whether --enable-ftp or --disable-ftp was given.
4119 if test "${enable_ftp+set}" = set; then
4120 enableval="$enable_ftp"
4121
4122 if test "$enableval" = yes; then
4123 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4124 else
4125 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4126 fi
4127
4128 else
4129
4130 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4131 if test "x$LINE" != x ; then
4132 eval "DEFAULT_$LINE"
4133 else
4134 no_cache=1
4135 fi
4136
4137 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4138
4139 fi;
4140
4141 eval "$ac_cv_use_ftp"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4147 echo "$as_me:$LINENO: result: yes" >&5
4148 echo "${ECHO_T}yes" >&6
4149 else
4150 echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4152 fi
4153
4154
4155 enablestring=
4156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4157 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4158 no_cache=0
4159 # Check whether --enable-http or --disable-http was given.
4160 if test "${enable_http+set}" = set; then
4161 enableval="$enable_http"
4162
4163 if test "$enableval" = yes; then
4164 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4165 else
4166 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4167 fi
4168
4169 else
4170
4171 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4172 if test "x$LINE" != x ; then
4173 eval "DEFAULT_$LINE"
4174 else
4175 no_cache=1
4176 fi
4177
4178 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4179
4180 fi;
4181
4182 eval "$ac_cv_use_http"
4183 if test "$no_cache" != 1; then
4184 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4185 fi
4186
4187 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4188 echo "$as_me:$LINENO: result: yes" >&5
4189 echo "${ECHO_T}yes" >&6
4190 else
4191 echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4193 fi
4194
4195
4196 enablestring=
4197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4198 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4199 no_cache=0
4200 # Check whether --enable-fileproto or --disable-fileproto was given.
4201 if test "${enable_fileproto+set}" = set; then
4202 enableval="$enable_fileproto"
4203
4204 if test "$enableval" = yes; then
4205 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4206 else
4207 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4208 fi
4209
4210 else
4211
4212 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4213 if test "x$LINE" != x ; then
4214 eval "DEFAULT_$LINE"
4215 else
4216 no_cache=1
4217 fi
4218
4219 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4220
4221 fi;
4222
4223 eval "$ac_cv_use_fileproto"
4224 if test "$no_cache" != 1; then
4225 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4226 fi
4227
4228 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4229 echo "$as_me:$LINENO: result: yes" >&5
4230 echo "${ECHO_T}yes" >&6
4231 else
4232 echo "$as_me:$LINENO: result: no" >&5
4233 echo "${ECHO_T}no" >&6
4234 fi
4235
4236
4237 enablestring=
4238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4239 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4240 no_cache=0
4241 # Check whether --enable-sockets or --disable-sockets was given.
4242 if test "${enable_sockets+set}" = set; then
4243 enableval="$enable_sockets"
4244
4245 if test "$enableval" = yes; then
4246 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4247 else
4248 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4249 fi
4250
4251 else
4252
4253 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4254 if test "x$LINE" != x ; then
4255 eval "DEFAULT_$LINE"
4256 else
4257 no_cache=1
4258 fi
4259
4260 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4261
4262 fi;
4263
4264 eval "$ac_cv_use_sockets"
4265 if test "$no_cache" != 1; then
4266 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4267 fi
4268
4269 if test "$wxUSE_SOCKETS" = yes; then
4270 echo "$as_me:$LINENO: result: yes" >&5
4271 echo "${ECHO_T}yes" >&6
4272 else
4273 echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6
4275 fi
4276
4277
4278 enablestring=
4279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4280 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4281 no_cache=0
4282 # Check whether --enable-ole or --disable-ole was given.
4283 if test "${enable_ole+set}" = set; then
4284 enableval="$enable_ole"
4285
4286 if test "$enableval" = yes; then
4287 ac_cv_use_ole='wxUSE_OLE=yes'
4288 else
4289 ac_cv_use_ole='wxUSE_OLE=no'
4290 fi
4291
4292 else
4293
4294 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4295 if test "x$LINE" != x ; then
4296 eval "DEFAULT_$LINE"
4297 else
4298 no_cache=1
4299 fi
4300
4301 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4302
4303 fi;
4304
4305 eval "$ac_cv_use_ole"
4306 if test "$no_cache" != 1; then
4307 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4308 fi
4309
4310 if test "$wxUSE_OLE" = yes; then
4311 echo "$as_me:$LINENO: result: yes" >&5
4312 echo "${ECHO_T}yes" >&6
4313 else
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4316 fi
4317
4318
4319 enablestring=
4320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4321 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4322 no_cache=0
4323 # Check whether --enable-dataobj or --disable-dataobj was given.
4324 if test "${enable_dataobj+set}" = set; then
4325 enableval="$enable_dataobj"
4326
4327 if test "$enableval" = yes; then
4328 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4329 else
4330 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4331 fi
4332
4333 else
4334
4335 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
4342 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4343
4344 fi;
4345
4346 eval "$ac_cv_use_dataobj"
4347 if test "$no_cache" != 1; then
4348 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4349 fi
4350
4351 if test "$wxUSE_DATAOBJ" = yes; then
4352 echo "$as_me:$LINENO: result: yes" >&5
4353 echo "${ECHO_T}yes" >&6
4354 else
4355 echo "$as_me:$LINENO: result: no" >&5
4356 echo "${ECHO_T}no" >&6
4357 fi
4358
4359
4360
4361 enablestring=
4362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4363 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4364 no_cache=0
4365 # Check whether --enable-ipc or --disable-ipc was given.
4366 if test "${enable_ipc+set}" = set; then
4367 enableval="$enable_ipc"
4368
4369 if test "$enableval" = yes; then
4370 ac_cv_use_ipc='wxUSE_IPC=yes'
4371 else
4372 ac_cv_use_ipc='wxUSE_IPC=no'
4373 fi
4374
4375 else
4376
4377 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4378 if test "x$LINE" != x ; then
4379 eval "DEFAULT_$LINE"
4380 else
4381 no_cache=1
4382 fi
4383
4384 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4385
4386 fi;
4387
4388 eval "$ac_cv_use_ipc"
4389 if test "$no_cache" != 1; then
4390 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4391 fi
4392
4393 if test "$wxUSE_IPC" = yes; then
4394 echo "$as_me:$LINENO: result: yes" >&5
4395 echo "${ECHO_T}yes" >&6
4396 else
4397 echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6
4399 fi
4400
4401
4402
4403 enablestring=
4404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4405 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4406 no_cache=0
4407 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4408 if test "${enable_apple_ieee+set}" = set; then
4409 enableval="$enable_apple_ieee"
4410
4411 if test "$enableval" = yes; then
4412 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4413 else
4414 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4415 fi
4416
4417 else
4418
4419 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4420 if test "x$LINE" != x ; then
4421 eval "DEFAULT_$LINE"
4422 else
4423 no_cache=1
4424 fi
4425
4426 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4427
4428 fi;
4429
4430 eval "$ac_cv_use_apple_ieee"
4431 if test "$no_cache" != 1; then
4432 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4433 fi
4434
4435 if test "$wxUSE_APPLE_IEEE" = yes; then
4436 echo "$as_me:$LINENO: result: yes" >&5
4437 echo "${ECHO_T}yes" >&6
4438 else
4439 echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6
4441 fi
4442
4443
4444 enablestring=
4445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4446 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4447 no_cache=0
4448 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4449 if test "${enable_catch_segvs+set}" = set; then
4450 enableval="$enable_catch_segvs"
4451
4452 if test "$enableval" = yes; then
4453 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4454 else
4455 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4456 fi
4457
4458 else
4459
4460 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4461 if test "x$LINE" != x ; then
4462 eval "DEFAULT_$LINE"
4463 else
4464 no_cache=1
4465 fi
4466
4467 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4468
4469 fi;
4470
4471 eval "$ac_cv_use_catch_segvs"
4472 if test "$no_cache" != 1; then
4473 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4474 fi
4475
4476 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4477 echo "$as_me:$LINENO: result: yes" >&5
4478 echo "${ECHO_T}yes" >&6
4479 else
4480 echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6
4482 fi
4483
4484
4485 enablestring=
4486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4487 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4488 no_cache=0
4489 # Check whether --enable-cmdline or --disable-cmdline was given.
4490 if test "${enable_cmdline+set}" = set; then
4491 enableval="$enable_cmdline"
4492
4493 if test "$enableval" = yes; then
4494 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4495 else
4496 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4497 fi
4498
4499 else
4500
4501 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
4508 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4509
4510 fi;
4511
4512 eval "$ac_cv_use_cmdline"
4513 if test "$no_cache" != 1; then
4514 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4515 fi
4516
4517 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4518 echo "$as_me:$LINENO: result: yes" >&5
4519 echo "${ECHO_T}yes" >&6
4520 else
4521 echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6
4523 fi
4524
4525
4526 enablestring=
4527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4528 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4529 no_cache=0
4530 # Check whether --enable-datetime or --disable-datetime was given.
4531 if test "${enable_datetime+set}" = set; then
4532 enableval="$enable_datetime"
4533
4534 if test "$enableval" = yes; then
4535 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4536 else
4537 ac_cv_use_datetime='wxUSE_DATETIME=no'
4538 fi
4539
4540 else
4541
4542 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4543 if test "x$LINE" != x ; then
4544 eval "DEFAULT_$LINE"
4545 else
4546 no_cache=1
4547 fi
4548
4549 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4550
4551 fi;
4552
4553 eval "$ac_cv_use_datetime"
4554 if test "$no_cache" != 1; then
4555 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4556 fi
4557
4558 if test "$wxUSE_DATETIME" = yes; then
4559 echo "$as_me:$LINENO: result: yes" >&5
4560 echo "${ECHO_T}yes" >&6
4561 else
4562 echo "$as_me:$LINENO: result: no" >&5
4563 echo "${ECHO_T}no" >&6
4564 fi
4565
4566
4567 enablestring=
4568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4569 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4570 no_cache=0
4571 # Check whether --enable-dialupman or --disable-dialupman was given.
4572 if test "${enable_dialupman+set}" = set; then
4573 enableval="$enable_dialupman"
4574
4575 if test "$enableval" = yes; then
4576 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4577 else
4578 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4579 fi
4580
4581 else
4582
4583 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4584 if test "x$LINE" != x ; then
4585 eval "DEFAULT_$LINE"
4586 else
4587 no_cache=1
4588 fi
4589
4590 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4591
4592 fi;
4593
4594 eval "$ac_cv_use_dialupman"
4595 if test "$no_cache" != 1; then
4596 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4597 fi
4598
4599 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4600 echo "$as_me:$LINENO: result: yes" >&5
4601 echo "${ECHO_T}yes" >&6
4602 else
4603 echo "$as_me:$LINENO: result: no" >&5
4604 echo "${ECHO_T}no" >&6
4605 fi
4606
4607
4608 enablestring=
4609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4610 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4611 no_cache=0
4612 # Check whether --enable-dynlib or --disable-dynlib was given.
4613 if test "${enable_dynlib+set}" = set; then
4614 enableval="$enable_dynlib"
4615
4616 if test "$enableval" = yes; then
4617 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4618 else
4619 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4620 fi
4621
4622 else
4623
4624 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4632
4633 fi;
4634
4635 eval "$ac_cv_use_dynlib"
4636 if test "$no_cache" != 1; then
4637 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4638 fi
4639
4640 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4641 echo "$as_me:$LINENO: result: yes" >&5
4642 echo "${ECHO_T}yes" >&6
4643 else
4644 echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6
4646 fi
4647
4648
4649 enablestring=
4650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4651 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4652 no_cache=0
4653 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4654 if test "${enable_dynamicloader+set}" = set; then
4655 enableval="$enable_dynamicloader"
4656
4657 if test "$enableval" = yes; then
4658 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4659 else
4660 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4661 fi
4662
4663 else
4664
4665 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4666 if test "x$LINE" != x ; then
4667 eval "DEFAULT_$LINE"
4668 else
4669 no_cache=1
4670 fi
4671
4672 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4673
4674 fi;
4675
4676 eval "$ac_cv_use_dynamicloader"
4677 if test "$no_cache" != 1; then
4678 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4679 fi
4680
4681 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4682 echo "$as_me:$LINENO: result: yes" >&5
4683 echo "${ECHO_T}yes" >&6
4684 else
4685 echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6
4687 fi
4688
4689
4690 enablestring=
4691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4692 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4693 no_cache=0
4694 # Check whether --enable-exceptions or --disable-exceptions was given.
4695 if test "${enable_exceptions+set}" = set; then
4696 enableval="$enable_exceptions"
4697
4698 if test "$enableval" = yes; then
4699 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4700 else
4701 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4702 fi
4703
4704 else
4705
4706 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4707 if test "x$LINE" != x ; then
4708 eval "DEFAULT_$LINE"
4709 else
4710 no_cache=1
4711 fi
4712
4713 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4714
4715 fi;
4716
4717 eval "$ac_cv_use_exceptions"
4718 if test "$no_cache" != 1; then
4719 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4720 fi
4721
4722 if test "$wxUSE_EXCEPTIONS" = yes; then
4723 echo "$as_me:$LINENO: result: yes" >&5
4724 echo "${ECHO_T}yes" >&6
4725 else
4726 echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6
4728 fi
4729
4730
4731 enablestring=
4732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4733 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4734 no_cache=0
4735 # Check whether --enable-ffile or --disable-ffile was given.
4736 if test "${enable_ffile+set}" = set; then
4737 enableval="$enable_ffile"
4738
4739 if test "$enableval" = yes; then
4740 ac_cv_use_ffile='wxUSE_FFILE=yes'
4741 else
4742 ac_cv_use_ffile='wxUSE_FFILE=no'
4743 fi
4744
4745 else
4746
4747 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4748 if test "x$LINE" != x ; then
4749 eval "DEFAULT_$LINE"
4750 else
4751 no_cache=1
4752 fi
4753
4754 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4755
4756 fi;
4757
4758 eval "$ac_cv_use_ffile"
4759 if test "$no_cache" != 1; then
4760 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4761 fi
4762
4763 if test "$wxUSE_FFILE" = yes; then
4764 echo "$as_me:$LINENO: result: yes" >&5
4765 echo "${ECHO_T}yes" >&6
4766 else
4767 echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6
4769 fi
4770
4771
4772 enablestring=
4773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4774 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4775 no_cache=0
4776 # Check whether --enable-file or --disable-file was given.
4777 if test "${enable_file+set}" = set; then
4778 enableval="$enable_file"
4779
4780 if test "$enableval" = yes; then
4781 ac_cv_use_file='wxUSE_FILE=yes'
4782 else
4783 ac_cv_use_file='wxUSE_FILE=no'
4784 fi
4785
4786 else
4787
4788 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4789 if test "x$LINE" != x ; then
4790 eval "DEFAULT_$LINE"
4791 else
4792 no_cache=1
4793 fi
4794
4795 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4796
4797 fi;
4798
4799 eval "$ac_cv_use_file"
4800 if test "$no_cache" != 1; then
4801 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4802 fi
4803
4804 if test "$wxUSE_FILE" = yes; then
4805 echo "$as_me:$LINENO: result: yes" >&5
4806 echo "${ECHO_T}yes" >&6
4807 else
4808 echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4810 fi
4811
4812
4813 enablestring=
4814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4815 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4816 no_cache=0
4817 # Check whether --enable-filesystem or --disable-filesystem was given.
4818 if test "${enable_filesystem+set}" = set; then
4819 enableval="$enable_filesystem"
4820
4821 if test "$enableval" = yes; then
4822 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4823 else
4824 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4825 fi
4826
4827 else
4828
4829 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4830 if test "x$LINE" != x ; then
4831 eval "DEFAULT_$LINE"
4832 else
4833 no_cache=1
4834 fi
4835
4836 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4837
4838 fi;
4839
4840 eval "$ac_cv_use_filesystem"
4841 if test "$no_cache" != 1; then
4842 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4843 fi
4844
4845 if test "$wxUSE_FILESYSTEM" = yes; then
4846 echo "$as_me:$LINENO: result: yes" >&5
4847 echo "${ECHO_T}yes" >&6
4848 else
4849 echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6
4851 fi
4852
4853
4854 enablestring=
4855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4856 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4857 no_cache=0
4858 # Check whether --enable-fontmap or --disable-fontmap was given.
4859 if test "${enable_fontmap+set}" = set; then
4860 enableval="$enable_fontmap"
4861
4862 if test "$enableval" = yes; then
4863 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4864 else
4865 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4866 fi
4867
4868 else
4869
4870 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4871 if test "x$LINE" != x ; then
4872 eval "DEFAULT_$LINE"
4873 else
4874 no_cache=1
4875 fi
4876
4877 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4878
4879 fi;
4880
4881 eval "$ac_cv_use_fontmap"
4882 if test "$no_cache" != 1; then
4883 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4884 fi
4885
4886 if test "$wxUSE_FONTMAP" = yes; then
4887 echo "$as_me:$LINENO: result: yes" >&5
4888 echo "${ECHO_T}yes" >&6
4889 else
4890 echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6
4892 fi
4893
4894
4895 enablestring=
4896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4897 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
4898 no_cache=0
4899 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4900 if test "${enable_fs_inet+set}" = set; then
4901 enableval="$enable_fs_inet"
4902
4903 if test "$enableval" = yes; then
4904 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4905 else
4906 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4907 fi
4908
4909 else
4910
4911 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4912 if test "x$LINE" != x ; then
4913 eval "DEFAULT_$LINE"
4914 else
4915 no_cache=1
4916 fi
4917
4918 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4919
4920 fi;
4921
4922 eval "$ac_cv_use_fs_inet"
4923 if test "$no_cache" != 1; then
4924 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4925 fi
4926
4927 if test "$wxUSE_FS_INET" = yes; then
4928 echo "$as_me:$LINENO: result: yes" >&5
4929 echo "${ECHO_T}yes" >&6
4930 else
4931 echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6
4933 fi
4934
4935
4936 enablestring=
4937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4938 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
4939 no_cache=0
4940 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4941 if test "${enable_fs_zip+set}" = set; then
4942 enableval="$enable_fs_zip"
4943
4944 if test "$enableval" = yes; then
4945 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4946 else
4947 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4948 fi
4949
4950 else
4951
4952 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4953 if test "x$LINE" != x ; then
4954 eval "DEFAULT_$LINE"
4955 else
4956 no_cache=1
4957 fi
4958
4959 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4960
4961 fi;
4962
4963 eval "$ac_cv_use_fs_zip"
4964 if test "$no_cache" != 1; then
4965 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4966 fi
4967
4968 if test "$wxUSE_FS_ZIP" = yes; then
4969 echo "$as_me:$LINENO: result: yes" >&5
4970 echo "${ECHO_T}yes" >&6
4971 else
4972 echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6
4974 fi
4975
4976
4977 enablestring=
4978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4979 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
4980 no_cache=0
4981 # Check whether --enable-geometry or --disable-geometry was given.
4982 if test "${enable_geometry+set}" = set; then
4983 enableval="$enable_geometry"
4984
4985 if test "$enableval" = yes; then
4986 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4987 else
4988 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4989 fi
4990
4991 else
4992
4993 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4994 if test "x$LINE" != x ; then
4995 eval "DEFAULT_$LINE"
4996 else
4997 no_cache=1
4998 fi
4999
5000 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5001
5002 fi;
5003
5004 eval "$ac_cv_use_geometry"
5005 if test "$no_cache" != 1; then
5006 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5007 fi
5008
5009 if test "$wxUSE_GEOMETRY" = yes; then
5010 echo "$as_me:$LINENO: result: yes" >&5
5011 echo "${ECHO_T}yes" >&6
5012 else
5013 echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6
5015 fi
5016
5017
5018 enablestring=
5019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5020 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5021 no_cache=0
5022 # Check whether --enable-log or --disable-log was given.
5023 if test "${enable_log+set}" = set; then
5024 enableval="$enable_log"
5025
5026 if test "$enableval" = yes; then
5027 ac_cv_use_log='wxUSE_LOG=yes'
5028 else
5029 ac_cv_use_log='wxUSE_LOG=no'
5030 fi
5031
5032 else
5033
5034 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5035 if test "x$LINE" != x ; then
5036 eval "DEFAULT_$LINE"
5037 else
5038 no_cache=1
5039 fi
5040
5041 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5042
5043 fi;
5044
5045 eval "$ac_cv_use_log"
5046 if test "$no_cache" != 1; then
5047 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5048 fi
5049
5050 if test "$wxUSE_LOG" = yes; then
5051 echo "$as_me:$LINENO: result: yes" >&5
5052 echo "${ECHO_T}yes" >&6
5053 else
5054 echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6
5056 fi
5057
5058
5059 enablestring=
5060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5061 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5062 no_cache=0
5063 # Check whether --enable-longlong or --disable-longlong was given.
5064 if test "${enable_longlong+set}" = set; then
5065 enableval="$enable_longlong"
5066
5067 if test "$enableval" = yes; then
5068 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5069 else
5070 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5071 fi
5072
5073 else
5074
5075 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5076 if test "x$LINE" != x ; then
5077 eval "DEFAULT_$LINE"
5078 else
5079 no_cache=1
5080 fi
5081
5082 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5083
5084 fi;
5085
5086 eval "$ac_cv_use_longlong"
5087 if test "$no_cache" != 1; then
5088 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5089 fi
5090
5091 if test "$wxUSE_LONGLONG" = yes; then
5092 echo "$as_me:$LINENO: result: yes" >&5
5093 echo "${ECHO_T}yes" >&6
5094 else
5095 echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6
5097 fi
5098
5099
5100 enablestring=
5101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5102 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5103 no_cache=0
5104 # Check whether --enable-mimetype or --disable-mimetype was given.
5105 if test "${enable_mimetype+set}" = set; then
5106 enableval="$enable_mimetype"
5107
5108 if test "$enableval" = yes; then
5109 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5110 else
5111 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5112 fi
5113
5114 else
5115
5116 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5117 if test "x$LINE" != x ; then
5118 eval "DEFAULT_$LINE"
5119 else
5120 no_cache=1
5121 fi
5122
5123 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5124
5125 fi;
5126
5127 eval "$ac_cv_use_mimetype"
5128 if test "$no_cache" != 1; then
5129 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5130 fi
5131
5132 if test "$wxUSE_MIMETYPE" = yes; then
5133 echo "$as_me:$LINENO: result: yes" >&5
5134 echo "${ECHO_T}yes" >&6
5135 else
5136 echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6
5138 fi
5139
5140
5141 enablestring=
5142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5143 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5144 no_cache=0
5145 # Check whether --enable-mslu or --disable-mslu was given.
5146 if test "${enable_mslu+set}" = set; then
5147 enableval="$enable_mslu"
5148
5149 if test "$enableval" = yes; then
5150 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5151 else
5152 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5153 fi
5154
5155 else
5156
5157 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5158 if test "x$LINE" != x ; then
5159 eval "DEFAULT_$LINE"
5160 else
5161 no_cache=1
5162 fi
5163
5164 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5165
5166 fi;
5167
5168 eval "$ac_cv_use_mslu"
5169 if test "$no_cache" != 1; then
5170 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5171 fi
5172
5173 if test "$wxUSE_UNICODE_MSLU" = yes; then
5174 echo "$as_me:$LINENO: result: yes" >&5
5175 echo "${ECHO_T}yes" >&6
5176 else
5177 echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6
5179 fi
5180
5181
5182 enablestring=
5183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5184 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5185 no_cache=0
5186 # Check whether --enable-snglinst or --disable-snglinst was given.
5187 if test "${enable_snglinst+set}" = set; then
5188 enableval="$enable_snglinst"
5189
5190 if test "$enableval" = yes; then
5191 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5192 else
5193 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5194 fi
5195
5196 else
5197
5198 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5199 if test "x$LINE" != x ; then
5200 eval "DEFAULT_$LINE"
5201 else
5202 no_cache=1
5203 fi
5204
5205 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5206
5207 fi;
5208
5209 eval "$ac_cv_use_snglinst"
5210 if test "$no_cache" != 1; then
5211 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5212 fi
5213
5214 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5215 echo "$as_me:$LINENO: result: yes" >&5
5216 echo "${ECHO_T}yes" >&6
5217 else
5218 echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6
5220 fi
5221
5222
5223 enablestring=
5224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5225 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5226 no_cache=0
5227 # Check whether --enable-streams or --disable-streams was given.
5228 if test "${enable_streams+set}" = set; then
5229 enableval="$enable_streams"
5230
5231 if test "$enableval" = yes; then
5232 ac_cv_use_streams='wxUSE_STREAMS=yes'
5233 else
5234 ac_cv_use_streams='wxUSE_STREAMS=no'
5235 fi
5236
5237 else
5238
5239 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5240 if test "x$LINE" != x ; then
5241 eval "DEFAULT_$LINE"
5242 else
5243 no_cache=1
5244 fi
5245
5246 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5247
5248 fi;
5249
5250 eval "$ac_cv_use_streams"
5251 if test "$no_cache" != 1; then
5252 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5253 fi
5254
5255 if test "$wxUSE_STREAMS" = yes; then
5256 echo "$as_me:$LINENO: result: yes" >&5
5257 echo "${ECHO_T}yes" >&6
5258 else
5259 echo "$as_me:$LINENO: result: no" >&5
5260 echo "${ECHO_T}no" >&6
5261 fi
5262
5263
5264 enablestring=
5265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5266 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5267 no_cache=0
5268 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5269 if test "${enable_std_iostreams+set}" = set; then
5270 enableval="$enable_std_iostreams"
5271
5272 if test "$enableval" = yes; then
5273 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5274 else
5275 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5276 fi
5277
5278 else
5279
5280 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5281 if test "x$LINE" != x ; then
5282 eval "DEFAULT_$LINE"
5283 else
5284 no_cache=1
5285 fi
5286
5287 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5288
5289 fi;
5290
5291 eval "$ac_cv_use_std_iostreams"
5292 if test "$no_cache" != 1; then
5293 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5294 fi
5295
5296 if test "$wxUSE_STD_IOSTREAM" = yes; then
5297 echo "$as_me:$LINENO: result: yes" >&5
5298 echo "${ECHO_T}yes" >&6
5299 else
5300 echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6
5302 fi
5303
5304
5305 enablestring=
5306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5307 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5308 no_cache=0
5309 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5310 if test "${enable_stopwatch+set}" = set; then
5311 enableval="$enable_stopwatch"
5312
5313 if test "$enableval" = yes; then
5314 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5315 else
5316 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5317 fi
5318
5319 else
5320
5321 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5322 if test "x$LINE" != x ; then
5323 eval "DEFAULT_$LINE"
5324 else
5325 no_cache=1
5326 fi
5327
5328 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5329
5330 fi;
5331
5332 eval "$ac_cv_use_stopwatch"
5333 if test "$no_cache" != 1; then
5334 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5335 fi
5336
5337 if test "$wxUSE_STOPWATCH" = yes; then
5338 echo "$as_me:$LINENO: result: yes" >&5
5339 echo "${ECHO_T}yes" >&6
5340 else
5341 echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6
5343 fi
5344
5345
5346 enablestring=
5347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5348 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5349 no_cache=0
5350 # Check whether --enable-system_options or --disable-system_options was given.
5351 if test "${enable_system_options+set}" = set; then
5352 enableval="$enable_system_options"
5353
5354 if test "$enableval" = yes; then
5355 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5356 else
5357 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5358 fi
5359
5360 else
5361
5362 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5363 if test "x$LINE" != x ; then
5364 eval "DEFAULT_$LINE"
5365 else
5366 no_cache=1
5367 fi
5368
5369 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5370
5371 fi;
5372
5373 eval "$ac_cv_use_system_options"
5374 if test "$no_cache" != 1; then
5375 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5376 fi
5377
5378 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5379 echo "$as_me:$LINENO: result: yes" >&5
5380 echo "${ECHO_T}yes" >&6
5381 else
5382 echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6
5384 fi
5385
5386
5387 enablestring=
5388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5389 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5390 no_cache=0
5391 # Check whether --enable-textbuf or --disable-textbuf was given.
5392 if test "${enable_textbuf+set}" = set; then
5393 enableval="$enable_textbuf"
5394
5395 if test "$enableval" = yes; then
5396 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5397 else
5398 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5399 fi
5400
5401 else
5402
5403 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5404 if test "x$LINE" != x ; then
5405 eval "DEFAULT_$LINE"
5406 else
5407 no_cache=1
5408 fi
5409
5410 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5411
5412 fi;
5413
5414 eval "$ac_cv_use_textbuf"
5415 if test "$no_cache" != 1; then
5416 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5417 fi
5418
5419 if test "$wxUSE_TEXTBUFFER" = yes; then
5420 echo "$as_me:$LINENO: result: yes" >&5
5421 echo "${ECHO_T}yes" >&6
5422 else
5423 echo "$as_me:$LINENO: result: no" >&5
5424 echo "${ECHO_T}no" >&6
5425 fi
5426
5427
5428 enablestring=
5429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5430 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5431 no_cache=0
5432 # Check whether --enable-textfile or --disable-textfile was given.
5433 if test "${enable_textfile+set}" = set; then
5434 enableval="$enable_textfile"
5435
5436 if test "$enableval" = yes; then
5437 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5438 else
5439 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5440 fi
5441
5442 else
5443
5444 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5445 if test "x$LINE" != x ; then
5446 eval "DEFAULT_$LINE"
5447 else
5448 no_cache=1
5449 fi
5450
5451 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5452
5453 fi;
5454
5455 eval "$ac_cv_use_textfile"
5456 if test "$no_cache" != 1; then
5457 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5458 fi
5459
5460 if test "$wxUSE_TEXTFILE" = yes; then
5461 echo "$as_me:$LINENO: result: yes" >&5
5462 echo "${ECHO_T}yes" >&6
5463 else
5464 echo "$as_me:$LINENO: result: no" >&5
5465 echo "${ECHO_T}no" >&6
5466 fi
5467
5468
5469 enablestring=
5470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5471 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5472 no_cache=0
5473 # Check whether --enable-timer or --disable-timer was given.
5474 if test "${enable_timer+set}" = set; then
5475 enableval="$enable_timer"
5476
5477 if test "$enableval" = yes; then
5478 ac_cv_use_timer='wxUSE_TIMER=yes'
5479 else
5480 ac_cv_use_timer='wxUSE_TIMER=no'
5481 fi
5482
5483 else
5484
5485 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5486 if test "x$LINE" != x ; then
5487 eval "DEFAULT_$LINE"
5488 else
5489 no_cache=1
5490 fi
5491
5492 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5493
5494 fi;
5495
5496 eval "$ac_cv_use_timer"
5497 if test "$no_cache" != 1; then
5498 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5499 fi
5500
5501 if test "$wxUSE_TIMER" = yes; then
5502 echo "$as_me:$LINENO: result: yes" >&5
5503 echo "${ECHO_T}yes" >&6
5504 else
5505 echo "$as_me:$LINENO: result: no" >&5
5506 echo "${ECHO_T}no" >&6
5507 fi
5508
5509
5510 enablestring=
5511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5512 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5513 no_cache=0
5514 # Check whether --enable-unicode or --disable-unicode was given.
5515 if test "${enable_unicode+set}" = set; then
5516 enableval="$enable_unicode"
5517
5518 if test "$enableval" = yes; then
5519 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5520 else
5521 ac_cv_use_unicode='wxUSE_UNICODE=no'
5522 fi
5523
5524 else
5525
5526 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5527 if test "x$LINE" != x ; then
5528 eval "DEFAULT_$LINE"
5529 else
5530 no_cache=1
5531 fi
5532
5533 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5534
5535 fi;
5536
5537 eval "$ac_cv_use_unicode"
5538 if test "$no_cache" != 1; then
5539 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5540 fi
5541
5542 if test "$wxUSE_UNICODE" = yes; then
5543 echo "$as_me:$LINENO: result: yes" >&5
5544 echo "${ECHO_T}yes" >&6
5545 else
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5548 fi
5549
5550
5551 enablestring=
5552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5553 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5554 no_cache=0
5555 # Check whether --enable-sound or --disable-sound was given.
5556 if test "${enable_sound+set}" = set; then
5557 enableval="$enable_sound"
5558
5559 if test "$enableval" = yes; then
5560 ac_cv_use_sound='wxUSE_SOUND=yes'
5561 else
5562 ac_cv_use_sound='wxUSE_SOUND=no'
5563 fi
5564
5565 else
5566
5567 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5568 if test "x$LINE" != x ; then
5569 eval "DEFAULT_$LINE"
5570 else
5571 no_cache=1
5572 fi
5573
5574 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5575
5576 fi;
5577
5578 eval "$ac_cv_use_sound"
5579 if test "$no_cache" != 1; then
5580 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5581 fi
5582
5583 if test "$wxUSE_SOUND" = yes; then
5584 echo "$as_me:$LINENO: result: yes" >&5
5585 echo "${ECHO_T}yes" >&6
5586 else
5587 echo "$as_me:$LINENO: result: no" >&5
5588 echo "${ECHO_T}no" >&6
5589 fi
5590
5591
5592 enablestring=
5593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5594 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5595 no_cache=0
5596 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5597 if test "${enable_wxprintfv+set}" = set; then
5598 enableval="$enable_wxprintfv"
5599
5600 if test "$enableval" = yes; then
5601 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5602 else
5603 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5604 fi
5605
5606 else
5607
5608 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5609 if test "x$LINE" != x ; then
5610 eval "DEFAULT_$LINE"
5611 else
5612 no_cache=1
5613 fi
5614
5615 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5616
5617 fi;
5618
5619 eval "$ac_cv_use_wxprintfv"
5620 if test "$no_cache" != 1; then
5621 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5622 fi
5623
5624 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5625 echo "$as_me:$LINENO: result: yes" >&5
5626 echo "${ECHO_T}yes" >&6
5627 else
5628 echo "$as_me:$LINENO: result: no" >&5
5629 echo "${ECHO_T}no" >&6
5630 fi
5631
5632
5633 enablestring=
5634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5635 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5636 no_cache=0
5637 # Check whether --enable-zipstream or --disable-zipstream was given.
5638 if test "${enable_zipstream+set}" = set; then
5639 enableval="$enable_zipstream"
5640
5641 if test "$enableval" = yes; then
5642 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5643 else
5644 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5645 fi
5646
5647 else
5648
5649 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5650 if test "x$LINE" != x ; then
5651 eval "DEFAULT_$LINE"
5652 else
5653 no_cache=1
5654 fi
5655
5656 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5657
5658 fi;
5659
5660 eval "$ac_cv_use_zipstream"
5661 if test "$no_cache" != 1; then
5662 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5663 fi
5664
5665 if test "$wxUSE_ZIPSTREAM" = yes; then
5666 echo "$as_me:$LINENO: result: yes" >&5
5667 echo "${ECHO_T}yes" >&6
5668 else
5669 echo "$as_me:$LINENO: result: no" >&5
5670 echo "${ECHO_T}no" >&6
5671 fi
5672
5673
5674 enablestring=
5675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5676 echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5677 no_cache=0
5678 # Check whether --enable-gzstream or --disable-gzstream was given.
5679 if test "${enable_gzstream+set}" = set; then
5680 enableval="$enable_gzstream"
5681
5682 if test "$enableval" = yes; then
5683 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5684 else
5685 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5686 fi
5687
5688 else
5689
5690 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5691 if test "x$LINE" != x ; then
5692 eval "DEFAULT_$LINE"
5693 else
5694 no_cache=1
5695 fi
5696
5697 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5698
5699 fi;
5700
5701 eval "$ac_cv_use_gzstream"
5702 if test "$no_cache" != 1; then
5703 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5704 fi
5705
5706 if test "$wxUSE_GZSTREAM" = yes; then
5707 echo "$as_me:$LINENO: result: yes" >&5
5708 echo "${ECHO_T}yes" >&6
5709 else
5710 echo "$as_me:$LINENO: result: no" >&5
5711 echo "${ECHO_T}no" >&6
5712 fi
5713
5714
5715
5716 enablestring=
5717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5718 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5719 no_cache=0
5720 # Check whether --enable-url or --disable-url was given.
5721 if test "${enable_url+set}" = set; then
5722 enableval="$enable_url"
5723
5724 if test "$enableval" = yes; then
5725 ac_cv_use_url='wxUSE_URL=yes'
5726 else
5727 ac_cv_use_url='wxUSE_URL=no'
5728 fi
5729
5730 else
5731
5732 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5733 if test "x$LINE" != x ; then
5734 eval "DEFAULT_$LINE"
5735 else
5736 no_cache=1
5737 fi
5738
5739 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5740
5741 fi;
5742
5743 eval "$ac_cv_use_url"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_URL" = yes; then
5749 echo "$as_me:$LINENO: result: yes" >&5
5750 echo "${ECHO_T}yes" >&6
5751 else
5752 echo "$as_me:$LINENO: result: no" >&5
5753 echo "${ECHO_T}no" >&6
5754 fi
5755
5756
5757 enablestring=
5758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5759 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5760 no_cache=0
5761 # Check whether --enable-protocol or --disable-protocol was given.
5762 if test "${enable_protocol+set}" = set; then
5763 enableval="$enable_protocol"
5764
5765 if test "$enableval" = yes; then
5766 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5767 else
5768 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5769 fi
5770
5771 else
5772
5773 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5781
5782 fi;
5783
5784 eval "$ac_cv_use_protocol"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_PROTOCOL" = yes; then
5790 echo "$as_me:$LINENO: result: yes" >&5
5791 echo "${ECHO_T}yes" >&6
5792 else
5793 echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6
5795 fi
5796
5797
5798 enablestring=
5799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5800 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5801 no_cache=0
5802 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5803 if test "${enable_protocol_http+set}" = set; then
5804 enableval="$enable_protocol_http"
5805
5806 if test "$enableval" = yes; then
5807 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5808 else
5809 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5810 fi
5811
5812 else
5813
5814 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5815 if test "x$LINE" != x ; then
5816 eval "DEFAULT_$LINE"
5817 else
5818 no_cache=1
5819 fi
5820
5821 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5822
5823 fi;
5824
5825 eval "$ac_cv_use_protocol_http"
5826 if test "$no_cache" != 1; then
5827 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5828 fi
5829
5830 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5831 echo "$as_me:$LINENO: result: yes" >&5
5832 echo "${ECHO_T}yes" >&6
5833 else
5834 echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6
5836 fi
5837
5838
5839 enablestring=
5840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5841 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5842 no_cache=0
5843 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5844 if test "${enable_protocol_ftp+set}" = set; then
5845 enableval="$enable_protocol_ftp"
5846
5847 if test "$enableval" = yes; then
5848 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5849 else
5850 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5851 fi
5852
5853 else
5854
5855 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5856 if test "x$LINE" != x ; then
5857 eval "DEFAULT_$LINE"
5858 else
5859 no_cache=1
5860 fi
5861
5862 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5863
5864 fi;
5865
5866 eval "$ac_cv_use_protocol_ftp"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5872 echo "$as_me:$LINENO: result: yes" >&5
5873 echo "${ECHO_T}yes" >&6
5874 else
5875 echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6
5877 fi
5878
5879
5880 enablestring=
5881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5882 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5883 no_cache=0
5884 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5885 if test "${enable_protocol_file+set}" = set; then
5886 enableval="$enable_protocol_file"
5887
5888 if test "$enableval" = yes; then
5889 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5890 else
5891 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5892 fi
5893
5894 else
5895
5896 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5897 if test "x$LINE" != x ; then
5898 eval "DEFAULT_$LINE"
5899 else
5900 no_cache=1
5901 fi
5902
5903 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5904
5905 fi;
5906
5907 eval "$ac_cv_use_protocol_file"
5908 if test "$no_cache" != 1; then
5909 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5910 fi
5911
5912 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5913 echo "$as_me:$LINENO: result: yes" >&5
5914 echo "${ECHO_T}yes" >&6
5915 else
5916 echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6
5918 fi
5919
5920
5921
5922
5923
5924 enablestring=
5925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5926 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5927 no_cache=0
5928 # Check whether --enable-threads or --disable-threads was given.
5929 if test "${enable_threads+set}" = set; then
5930 enableval="$enable_threads"
5931
5932 if test "$enableval" = yes; then
5933 ac_cv_use_threads='wxUSE_THREADS=yes'
5934 else
5935 ac_cv_use_threads='wxUSE_THREADS=no'
5936 fi
5937
5938 else
5939
5940 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5941 if test "x$LINE" != x ; then
5942 eval "DEFAULT_$LINE"
5943 else
5944 no_cache=1
5945 fi
5946
5947 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5948
5949 fi;
5950
5951 eval "$ac_cv_use_threads"
5952 if test "$no_cache" != 1; then
5953 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5954 fi
5955
5956 if test "$wxUSE_THREADS" = yes; then
5957 echo "$as_me:$LINENO: result: yes" >&5
5958 echo "${ECHO_T}yes" >&6
5959 else
5960 echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5962 fi
5963
5964
5965 if test "$wxUSE_GUI" = "yes"; then
5966
5967
5968
5969 enablestring=
5970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5971 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
5972 no_cache=0
5973 # Check whether --enable-docview or --disable-docview was given.
5974 if test "${enable_docview+set}" = set; then
5975 enableval="$enable_docview"
5976
5977 if test "$enableval" = yes; then
5978 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5979 else
5980 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5981 fi
5982
5983 else
5984
5985 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5986 if test "x$LINE" != x ; then
5987 eval "DEFAULT_$LINE"
5988 else
5989 no_cache=1
5990 fi
5991
5992 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5993
5994 fi;
5995
5996 eval "$ac_cv_use_docview"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6002 echo "$as_me:$LINENO: result: yes" >&5
6003 echo "${ECHO_T}yes" >&6
6004 else
6005 echo "$as_me:$LINENO: result: no" >&5
6006 echo "${ECHO_T}no" >&6
6007 fi
6008
6009
6010 enablestring=
6011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6012 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6013 no_cache=0
6014 # Check whether --enable-help or --disable-help was given.
6015 if test "${enable_help+set}" = set; then
6016 enableval="$enable_help"
6017
6018 if test "$enableval" = yes; then
6019 ac_cv_use_help='wxUSE_HELP=yes'
6020 else
6021 ac_cv_use_help='wxUSE_HELP=no'
6022 fi
6023
6024 else
6025
6026 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6027 if test "x$LINE" != x ; then
6028 eval "DEFAULT_$LINE"
6029 else
6030 no_cache=1
6031 fi
6032
6033 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6034
6035 fi;
6036
6037 eval "$ac_cv_use_help"
6038 if test "$no_cache" != 1; then
6039 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6040 fi
6041
6042 if test "$wxUSE_HELP" = yes; then
6043 echo "$as_me:$LINENO: result: yes" >&5
6044 echo "${ECHO_T}yes" >&6
6045 else
6046 echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6
6048 fi
6049
6050
6051 enablestring=
6052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6053 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6054 no_cache=0
6055 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6056 if test "${enable_mshtmlhelp+set}" = set; then
6057 enableval="$enable_mshtmlhelp"
6058
6059 if test "$enableval" = yes; then
6060 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6061 else
6062 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6063 fi
6064
6065 else
6066
6067 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6068 if test "x$LINE" != x ; then
6069 eval "DEFAULT_$LINE"
6070 else
6071 no_cache=1
6072 fi
6073
6074 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6075
6076 fi;
6077
6078 eval "$ac_cv_use_mshtmlhelp"
6079 if test "$no_cache" != 1; then
6080 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6081 fi
6082
6083 if test "$wxUSE_MS_HTML_HELP" = yes; then
6084 echo "$as_me:$LINENO: result: yes" >&5
6085 echo "${ECHO_T}yes" >&6
6086 else
6087 echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6
6089 fi
6090
6091
6092 enablestring=
6093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6094 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6095 no_cache=0
6096 # Check whether --enable-html or --disable-html was given.
6097 if test "${enable_html+set}" = set; then
6098 enableval="$enable_html"
6099
6100 if test "$enableval" = yes; then
6101 ac_cv_use_html='wxUSE_HTML=yes'
6102 else
6103 ac_cv_use_html='wxUSE_HTML=no'
6104 fi
6105
6106 else
6107
6108 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6109 if test "x$LINE" != x ; then
6110 eval "DEFAULT_$LINE"
6111 else
6112 no_cache=1
6113 fi
6114
6115 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6116
6117 fi;
6118
6119 eval "$ac_cv_use_html"
6120 if test "$no_cache" != 1; then
6121 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6122 fi
6123
6124 if test "$wxUSE_HTML" = yes; then
6125 echo "$as_me:$LINENO: result: yes" >&5
6126 echo "${ECHO_T}yes" >&6
6127 else
6128 echo "$as_me:$LINENO: result: no" >&5
6129 echo "${ECHO_T}no" >&6
6130 fi
6131
6132
6133 enablestring=
6134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6135 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6136 no_cache=0
6137 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6138 if test "${enable_htmlhelp+set}" = set; then
6139 enableval="$enable_htmlhelp"
6140
6141 if test "$enableval" = yes; then
6142 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6143 else
6144 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6145 fi
6146
6147 else
6148
6149 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6150 if test "x$LINE" != x ; then
6151 eval "DEFAULT_$LINE"
6152 else
6153 no_cache=1
6154 fi
6155
6156 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6157
6158 fi;
6159
6160 eval "$ac_cv_use_htmlhelp"
6161 if test "$no_cache" != 1; then
6162 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6163 fi
6164
6165 if test "$wxUSE_WXHTML_HELP" = yes; then
6166 echo "$as_me:$LINENO: result: yes" >&5
6167 echo "${ECHO_T}yes" >&6
6168 else
6169 echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6
6171 fi
6172
6173
6174 enablestring=
6175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6176 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6177 no_cache=0
6178 # Check whether --enable-constraints or --disable-constraints was given.
6179 if test "${enable_constraints+set}" = set; then
6180 enableval="$enable_constraints"
6181
6182 if test "$enableval" = yes; then
6183 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6184 else
6185 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6186 fi
6187
6188 else
6189
6190 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6191 if test "x$LINE" != x ; then
6192 eval "DEFAULT_$LINE"
6193 else
6194 no_cache=1
6195 fi
6196
6197 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6198
6199 fi;
6200
6201 eval "$ac_cv_use_constraints"
6202 if test "$no_cache" != 1; then
6203 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6204 fi
6205
6206 if test "$wxUSE_CONSTRAINTS" = yes; then
6207 echo "$as_me:$LINENO: result: yes" >&5
6208 echo "${ECHO_T}yes" >&6
6209 else
6210 echo "$as_me:$LINENO: result: no" >&5
6211 echo "${ECHO_T}no" >&6
6212 fi
6213
6214
6215 enablestring=
6216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6217 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6218 no_cache=0
6219 # Check whether --enable-printarch or --disable-printarch was given.
6220 if test "${enable_printarch+set}" = set; then
6221 enableval="$enable_printarch"
6222
6223 if test "$enableval" = yes; then
6224 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6225 else
6226 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6227 fi
6228
6229 else
6230
6231 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6232 if test "x$LINE" != x ; then
6233 eval "DEFAULT_$LINE"
6234 else
6235 no_cache=1
6236 fi
6237
6238 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6239
6240 fi;
6241
6242 eval "$ac_cv_use_printarch"
6243 if test "$no_cache" != 1; then
6244 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6245 fi
6246
6247 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6248 echo "$as_me:$LINENO: result: yes" >&5
6249 echo "${ECHO_T}yes" >&6
6250 else
6251 echo "$as_me:$LINENO: result: no" >&5
6252 echo "${ECHO_T}no" >&6
6253 fi
6254
6255
6256 enablestring=
6257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6258 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6259 no_cache=0
6260 # Check whether --enable-mdi or --disable-mdi was given.
6261 if test "${enable_mdi+set}" = set; then
6262 enableval="$enable_mdi"
6263
6264 if test "$enableval" = yes; then
6265 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6266 else
6267 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6268 fi
6269
6270 else
6271
6272 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6273 if test "x$LINE" != x ; then
6274 eval "DEFAULT_$LINE"
6275 else
6276 no_cache=1
6277 fi
6278
6279 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6280
6281 fi;
6282
6283 eval "$ac_cv_use_mdi"
6284 if test "$no_cache" != 1; then
6285 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6286 fi
6287
6288 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6289 echo "$as_me:$LINENO: result: yes" >&5
6290 echo "${ECHO_T}yes" >&6
6291 else
6292 echo "$as_me:$LINENO: result: no" >&5
6293 echo "${ECHO_T}no" >&6
6294 fi
6295
6296
6297 enablestring=
6298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6299 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6300 no_cache=0
6301 # Check whether --enable-loggui or --disable-loggui was given.
6302 if test "${enable_loggui+set}" = set; then
6303 enableval="$enable_loggui"
6304
6305 if test "$enableval" = yes; then
6306 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6307 else
6308 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6309 fi
6310
6311 else
6312
6313 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6314 if test "x$LINE" != x ; then
6315 eval "DEFAULT_$LINE"
6316 else
6317 no_cache=1
6318 fi
6319
6320 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6321
6322 fi;
6323
6324 eval "$ac_cv_use_loggui"
6325 if test "$no_cache" != 1; then
6326 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6327 fi
6328
6329 if test "$wxUSE_LOGGUI" = yes; then
6330 echo "$as_me:$LINENO: result: yes" >&5
6331 echo "${ECHO_T}yes" >&6
6332 else
6333 echo "$as_me:$LINENO: result: no" >&5
6334 echo "${ECHO_T}no" >&6
6335 fi
6336
6337
6338 enablestring=
6339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6340 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6341 no_cache=0
6342 # Check whether --enable-logwin or --disable-logwin was given.
6343 if test "${enable_logwin+set}" = set; then
6344 enableval="$enable_logwin"
6345
6346 if test "$enableval" = yes; then
6347 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6348 else
6349 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6350 fi
6351
6352 else
6353
6354 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6355 if test "x$LINE" != x ; then
6356 eval "DEFAULT_$LINE"
6357 else
6358 no_cache=1
6359 fi
6360
6361 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6362
6363 fi;
6364
6365 eval "$ac_cv_use_logwin"
6366 if test "$no_cache" != 1; then
6367 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6368 fi
6369
6370 if test "$wxUSE_LOGWINDOW" = yes; then
6371 echo "$as_me:$LINENO: result: yes" >&5
6372 echo "${ECHO_T}yes" >&6
6373 else
6374 echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6
6376 fi
6377
6378
6379 enablestring=
6380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6381 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6382 no_cache=0
6383 # Check whether --enable-logdialog or --disable-logdialog was given.
6384 if test "${enable_logdialog+set}" = set; then
6385 enableval="$enable_logdialog"
6386
6387 if test "$enableval" = yes; then
6388 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6389 else
6390 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6391 fi
6392
6393 else
6394
6395 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6396 if test "x$LINE" != x ; then
6397 eval "DEFAULT_$LINE"
6398 else
6399 no_cache=1
6400 fi
6401
6402 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6403
6404 fi;
6405
6406 eval "$ac_cv_use_logdialog"
6407 if test "$no_cache" != 1; then
6408 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6409 fi
6410
6411 if test "$wxUSE_LOGDIALOG" = yes; then
6412 echo "$as_me:$LINENO: result: yes" >&5
6413 echo "${ECHO_T}yes" >&6
6414 else
6415 echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6
6417 fi
6418
6419
6420
6421 enablestring=
6422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6423 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6424 no_cache=0
6425 # Check whether --enable-postscript or --disable-postscript was given.
6426 if test "${enable_postscript+set}" = set; then
6427 enableval="$enable_postscript"
6428
6429 if test "$enableval" = yes; then
6430 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6431 else
6432 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6433 fi
6434
6435 else
6436
6437 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6438 if test "x$LINE" != x ; then
6439 eval "DEFAULT_$LINE"
6440 else
6441 no_cache=1
6442 fi
6443
6444 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6445
6446 fi;
6447
6448 eval "$ac_cv_use_postscript"
6449 if test "$no_cache" != 1; then
6450 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6451 fi
6452
6453 if test "$wxUSE_POSTSCRIPT" = yes; then
6454 echo "$as_me:$LINENO: result: yes" >&5
6455 echo "${ECHO_T}yes" >&6
6456 else
6457 echo "$as_me:$LINENO: result: no" >&5
6458 echo "${ECHO_T}no" >&6
6459 fi
6460
6461
6462
6463
6464
6465 enablestring=
6466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6467 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6468 no_cache=0
6469 # Check whether --enable-prologio or --disable-prologio was given.
6470 if test "${enable_prologio+set}" = set; then
6471 enableval="$enable_prologio"
6472
6473 if test "$enableval" = yes; then
6474 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6475 else
6476 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6477 fi
6478
6479 else
6480
6481 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6482 if test "x$LINE" != x ; then
6483 eval "DEFAULT_$LINE"
6484 else
6485 no_cache=1
6486 fi
6487
6488 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6489
6490 fi;
6491
6492 eval "$ac_cv_use_prologio"
6493 if test "$no_cache" != 1; then
6494 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6495 fi
6496
6497 if test "$wxUSE_PROLOGIO" = yes; then
6498 echo "$as_me:$LINENO: result: yes" >&5
6499 echo "${ECHO_T}yes" >&6
6500 else
6501 echo "$as_me:$LINENO: result: no" >&5
6502 echo "${ECHO_T}no" >&6
6503 fi
6504
6505
6506 enablestring=
6507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6508 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6509 no_cache=0
6510 # Check whether --enable-resources or --disable-resources was given.
6511 if test "${enable_resources+set}" = set; then
6512 enableval="$enable_resources"
6513
6514 if test "$enableval" = yes; then
6515 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6516 else
6517 ac_cv_use_resources='wxUSE_RESOURCES=no'
6518 fi
6519
6520 else
6521
6522 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6523 if test "x$LINE" != x ; then
6524 eval "DEFAULT_$LINE"
6525 else
6526 no_cache=1
6527 fi
6528
6529 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6530
6531 fi;
6532
6533 eval "$ac_cv_use_resources"
6534 if test "$no_cache" != 1; then
6535 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6536 fi
6537
6538 if test "$wxUSE_RESOURCES" = yes; then
6539 echo "$as_me:$LINENO: result: yes" >&5
6540 echo "${ECHO_T}yes" >&6
6541 else
6542 echo "$as_me:$LINENO: result: no" >&5
6543 echo "${ECHO_T}no" >&6
6544 fi
6545
6546
6547
6548
6549 enablestring=
6550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6551 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6552 no_cache=0
6553 # Check whether --enable-clipboard or --disable-clipboard was given.
6554 if test "${enable_clipboard+set}" = set; then
6555 enableval="$enable_clipboard"
6556
6557 if test "$enableval" = yes; then
6558 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6559 else
6560 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6561 fi
6562
6563 else
6564
6565 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6566 if test "x$LINE" != x ; then
6567 eval "DEFAULT_$LINE"
6568 else
6569 no_cache=1
6570 fi
6571
6572 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6573
6574 fi;
6575
6576 eval "$ac_cv_use_clipboard"
6577 if test "$no_cache" != 1; then
6578 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6579 fi
6580
6581 if test "$wxUSE_CLIPBOARD" = yes; then
6582 echo "$as_me:$LINENO: result: yes" >&5
6583 echo "${ECHO_T}yes" >&6
6584 else
6585 echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6
6587 fi
6588
6589
6590 enablestring=
6591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6592 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6593 no_cache=0
6594 # Check whether --enable-dnd or --disable-dnd was given.
6595 if test "${enable_dnd+set}" = set; then
6596 enableval="$enable_dnd"
6597
6598 if test "$enableval" = yes; then
6599 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6600 else
6601 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6602 fi
6603
6604 else
6605
6606 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6614
6615 fi;
6616
6617 eval "$ac_cv_use_dnd"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6623 echo "$as_me:$LINENO: result: yes" >&5
6624 echo "${ECHO_T}yes" >&6
6625 else
6626 echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6
6628 fi
6629
6630
6631 enablestring=
6632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6633 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6634 no_cache=0
6635 # Check whether --enable-metafile or --disable-metafile was given.
6636 if test "${enable_metafile+set}" = set; then
6637 enableval="$enable_metafile"
6638
6639 if test "$enableval" = yes; then
6640 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6641 else
6642 ac_cv_use_metafile='wxUSE_METAFILE=no'
6643 fi
6644
6645 else
6646
6647 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6655
6656 fi;
6657
6658 eval "$ac_cv_use_metafile"
6659 if test "$no_cache" != 1; then
6660 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6661 fi
6662
6663 if test "$wxUSE_METAFILE" = yes; then
6664 echo "$as_me:$LINENO: result: yes" >&5
6665 echo "${ECHO_T}yes" >&6
6666 else
6667 echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6
6669 fi
6670
6671
6672
6673
6674
6675 enablestring=
6676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6677 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6678 no_cache=0
6679 # Check whether --enable-controls or --disable-controls was given.
6680 if test "${enable_controls+set}" = set; then
6681 enableval="$enable_controls"
6682
6683 if test "$enableval" = yes; then
6684 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6685 else
6686 ac_cv_use_controls='wxUSE_CONTROLS=no'
6687 fi
6688
6689 else
6690
6691 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6692 if test "x$LINE" != x ; then
6693 eval "DEFAULT_$LINE"
6694 else
6695 no_cache=1
6696 fi
6697
6698 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6699
6700 fi;
6701
6702 eval "$ac_cv_use_controls"
6703 if test "$no_cache" != 1; then
6704 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6705 fi
6706
6707 if test "$wxUSE_CONTROLS" = yes; then
6708 echo "$as_me:$LINENO: result: yes" >&5
6709 echo "${ECHO_T}yes" >&6
6710 else
6711 echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6
6713 fi
6714
6715
6716 if test "$wxUSE_CONTROLS" = "yes"; then
6717 DEFAULT_wxUSE_ACCEL=yes
6718 DEFAULT_wxUSE_BMPBUTTON=yes
6719 DEFAULT_wxUSE_BUTTON=yes
6720 DEFAULT_wxUSE_CALCTRL=no
6721 DEFAULT_wxUSE_CARET=yes
6722 DEFAULT_wxUSE_COMBOBOX=yes
6723 DEFAULT_wxUSE_CHECKBOX=yes
6724 DEFAULT_wxUSE_CHECKLISTBOX=yes
6725 DEFAULT_wxUSE_CHOICE=yes
6726 DEFAULT_wxUSE_GAUGE=yes
6727 DEFAULT_wxUSE_GRID=yes
6728 DEFAULT_wxUSE_IMAGLIST=yes
6729 DEFAULT_wxUSE_LISTBOOK=yes
6730 DEFAULT_wxUSE_LISTBOX=yes
6731 DEFAULT_wxUSE_LISTCTRL=yes
6732 DEFAULT_wxUSE_NOTEBOOK=yes
6733 DEFAULT_wxUSE_RADIOBOX=yes
6734 DEFAULT_wxUSE_RADIOBTN=yes
6735 DEFAULT_wxUSE_SASH=yes
6736 DEFAULT_wxUSE_SCROLLBAR=yes
6737 DEFAULT_wxUSE_SLIDER=yes
6738 DEFAULT_wxUSE_SPINBTN=yes
6739 DEFAULT_wxUSE_SPINCTRL=yes
6740 DEFAULT_wxUSE_SPLITTER=yes
6741 DEFAULT_wxUSE_STATBMP=yes
6742 DEFAULT_wxUSE_STATBOX=yes
6743 DEFAULT_wxUSE_STATLINE=yes
6744 DEFAULT_wxUSE_STATUSBAR=yes
6745 DEFAULT_wxUSE_TAB_DIALOG=yes
6746 DEFAULT_wxUSE_TOGGLEBTN=yes
6747 DEFAULT_wxUSE_TOOLBAR=yes
6748 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6749 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6750 DEFAULT_wxUSE_TOOLTIPS=yes
6751 DEFAULT_wxUSE_TREECTRL=yes
6752 DEFAULT_wxUSE_POPUPWIN=yes
6753 DEFAULT_wxUSE_TIPWINDOW=yes
6754 elif test "$wxUSE_CONTROLS" = "no"; then
6755 DEFAULT_wxUSE_ACCEL=no
6756 DEFAULT_wxUSE_BMPBUTTON=no
6757 DEFAULT_wxUSE_BUTTON=no
6758 DEFAULT_wxUSE_CALCTRL=no
6759 DEFAULT_wxUSE_CARET=no
6760 DEFAULT_wxUSE_COMBOBOX=no
6761 DEFAULT_wxUSE_CHECKBOX=no
6762 DEFAULT_wxUSE_CHECKLISTBOX=no
6763 DEFAULT_wxUSE_CHOICE=no
6764 DEFAULT_wxUSE_GAUGE=no
6765 DEFAULT_wxUSE_GRID=no
6766 DEFAULT_wxUSE_IMAGLIST=no
6767 DEFAULT_wxUSE_LISTBOOK=no
6768 DEFAULT_wxUSE_LISTBOX=no
6769 DEFAULT_wxUSE_LISTCTRL=no
6770 DEFAULT_wxUSE_NOTEBOOK=no
6771 DEFAULT_wxUSE_RADIOBOX=no
6772 DEFAULT_wxUSE_RADIOBTN=no
6773 DEFAULT_wxUSE_SASH=no
6774 DEFAULT_wxUSE_SCROLLBAR=no
6775 DEFAULT_wxUSE_SLIDER=no
6776 DEFAULT_wxUSE_SPINBTN=no
6777 DEFAULT_wxUSE_SPINCTRL=no
6778 DEFAULT_wxUSE_SPLITTER=no
6779 DEFAULT_wxUSE_STATBMP=no
6780 DEFAULT_wxUSE_STATBOX=no
6781 DEFAULT_wxUSE_STATLINE=no
6782 DEFAULT_wxUSE_STATUSBAR=no
6783 DEFAULT_wxUSE_TAB_DIALOG=no
6784 DEFAULT_wxUSE_TOGGLEBTN=no
6785 DEFAULT_wxUSE_TOOLBAR=no
6786 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6787 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6788 DEFAULT_wxUSE_TOOLTIPS=no
6789 DEFAULT_wxUSE_TREECTRL=no
6790 DEFAULT_wxUSE_POPUPWIN=no
6791 DEFAULT_wxUSE_TIPWINDOW=no
6792 fi
6793
6794 ## FIXME: This is a blatant hack
6795 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6796 wxUSE_PRINTING_ARCHITECTURE=no
6797 wxUSE_DRAG_AND_DROP=no
6798 # Generic notebook requires tab dialog
6799 DEFAULT_wxUSE_TABDIALOG=yes
6800 DEFAULT_wxUSE_SCROLLBAR=no
6801 DEFAULT_wxUSE_TOOLTIPS=no
6802 DEFAULT_wxUSE_DRAGIMAGE=no
6803 fi
6804
6805
6806 enablestring=
6807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6808 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6809 no_cache=0
6810 # Check whether --enable-accel or --disable-accel was given.
6811 if test "${enable_accel+set}" = set; then
6812 enableval="$enable_accel"
6813
6814 if test "$enableval" = yes; then
6815 ac_cv_use_accel='wxUSE_ACCEL=yes'
6816 else
6817 ac_cv_use_accel='wxUSE_ACCEL=no'
6818 fi
6819
6820 else
6821
6822 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6823 if test "x$LINE" != x ; then
6824 eval "DEFAULT_$LINE"
6825 else
6826 no_cache=1
6827 fi
6828
6829 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6830
6831 fi;
6832
6833 eval "$ac_cv_use_accel"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6836 fi
6837
6838 if test "$wxUSE_ACCEL" = yes; then
6839 echo "$as_me:$LINENO: result: yes" >&5
6840 echo "${ECHO_T}yes" >&6
6841 else
6842 echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6
6844 fi
6845
6846
6847 enablestring=
6848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6849 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6850 no_cache=0
6851 # Check whether --enable-button or --disable-button was given.
6852 if test "${enable_button+set}" = set; then
6853 enableval="$enable_button"
6854
6855 if test "$enableval" = yes; then
6856 ac_cv_use_button='wxUSE_BUTTON=yes'
6857 else
6858 ac_cv_use_button='wxUSE_BUTTON=no'
6859 fi
6860
6861 else
6862
6863 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6864 if test "x$LINE" != x ; then
6865 eval "DEFAULT_$LINE"
6866 else
6867 no_cache=1
6868 fi
6869
6870 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6871
6872 fi;
6873
6874 eval "$ac_cv_use_button"
6875 if test "$no_cache" != 1; then
6876 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6877 fi
6878
6879 if test "$wxUSE_BUTTON" = yes; then
6880 echo "$as_me:$LINENO: result: yes" >&5
6881 echo "${ECHO_T}yes" >&6
6882 else
6883 echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6
6885 fi
6886
6887
6888 enablestring=
6889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6890 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6891 no_cache=0
6892 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6893 if test "${enable_bmpbutton+set}" = set; then
6894 enableval="$enable_bmpbutton"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6898 else
6899 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6900 fi
6901
6902 else
6903
6904 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6912
6913 fi;
6914
6915 eval "$ac_cv_use_bmpbutton"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_BMPBUTTON" = yes; then
6921 echo "$as_me:$LINENO: result: yes" >&5
6922 echo "${ECHO_T}yes" >&6
6923 else
6924 echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6
6926 fi
6927
6928
6929 enablestring=
6930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6931 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
6932 no_cache=0
6933 # Check whether --enable-calendar or --disable-calendar was given.
6934 if test "${enable_calendar+set}" = set; then
6935 enableval="$enable_calendar"
6936
6937 if test "$enableval" = yes; then
6938 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6939 else
6940 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6941 fi
6942
6943 else
6944
6945 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6953
6954 fi;
6955
6956 eval "$ac_cv_use_calendar"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_CALCTRL" = yes; then
6962 echo "$as_me:$LINENO: result: yes" >&5
6963 echo "${ECHO_T}yes" >&6
6964 else
6965 echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6
6967 fi
6968
6969
6970 enablestring=
6971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6972 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
6973 no_cache=0
6974 # Check whether --enable-caret or --disable-caret was given.
6975 if test "${enable_caret+set}" = set; then
6976 enableval="$enable_caret"
6977
6978 if test "$enableval" = yes; then
6979 ac_cv_use_caret='wxUSE_CARET=yes'
6980 else
6981 ac_cv_use_caret='wxUSE_CARET=no'
6982 fi
6983
6984 else
6985
6986 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6987 if test "x$LINE" != x ; then
6988 eval "DEFAULT_$LINE"
6989 else
6990 no_cache=1
6991 fi
6992
6993 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6994
6995 fi;
6996
6997 eval "$ac_cv_use_caret"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_CARET" = yes; then
7003 echo "$as_me:$LINENO: result: yes" >&5
7004 echo "${ECHO_T}yes" >&6
7005 else
7006 echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6
7008 fi
7009
7010
7011 enablestring=
7012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7013 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7014 no_cache=0
7015 # Check whether --enable-checkbox or --disable-checkbox was given.
7016 if test "${enable_checkbox+set}" = set; then
7017 enableval="$enable_checkbox"
7018
7019 if test "$enableval" = yes; then
7020 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7021 else
7022 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7023 fi
7024
7025 else
7026
7027 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7028 if test "x$LINE" != x ; then
7029 eval "DEFAULT_$LINE"
7030 else
7031 no_cache=1
7032 fi
7033
7034 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7035
7036 fi;
7037
7038 eval "$ac_cv_use_checkbox"
7039 if test "$no_cache" != 1; then
7040 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7041 fi
7042
7043 if test "$wxUSE_CHECKBOX" = yes; then
7044 echo "$as_me:$LINENO: result: yes" >&5
7045 echo "${ECHO_T}yes" >&6
7046 else
7047 echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6
7049 fi
7050
7051
7052 enablestring=
7053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7054 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7055 no_cache=0
7056 # Check whether --enable-checklst or --disable-checklst was given.
7057 if test "${enable_checklst+set}" = set; then
7058 enableval="$enable_checklst"
7059
7060 if test "$enableval" = yes; then
7061 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7062 else
7063 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7064 fi
7065
7066 else
7067
7068 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7076
7077 fi;
7078
7079 eval "$ac_cv_use_checklst"
7080 if test "$no_cache" != 1; then
7081 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7082 fi
7083
7084 if test "$wxUSE_CHECKLST" = yes; then
7085 echo "$as_me:$LINENO: result: yes" >&5
7086 echo "${ECHO_T}yes" >&6
7087 else
7088 echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6
7090 fi
7091
7092
7093 enablestring=
7094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7095 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7096 no_cache=0
7097 # Check whether --enable-choice or --disable-choice was given.
7098 if test "${enable_choice+set}" = set; then
7099 enableval="$enable_choice"
7100
7101 if test "$enableval" = yes; then
7102 ac_cv_use_choice='wxUSE_CHOICE=yes'
7103 else
7104 ac_cv_use_choice='wxUSE_CHOICE=no'
7105 fi
7106
7107 else
7108
7109 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7117
7118 fi;
7119
7120 eval "$ac_cv_use_choice"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_CHOICE" = yes; then
7126 echo "$as_me:$LINENO: result: yes" >&5
7127 echo "${ECHO_T}yes" >&6
7128 else
7129 echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6
7131 fi
7132
7133
7134 enablestring=
7135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7136 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7137 no_cache=0
7138 # Check whether --enable-combobox or --disable-combobox was given.
7139 if test "${enable_combobox+set}" = set; then
7140 enableval="$enable_combobox"
7141
7142 if test "$enableval" = yes; then
7143 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7144 else
7145 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7146 fi
7147
7148 else
7149
7150 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7151 if test "x$LINE" != x ; then
7152 eval "DEFAULT_$LINE"
7153 else
7154 no_cache=1
7155 fi
7156
7157 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7158
7159 fi;
7160
7161 eval "$ac_cv_use_combobox"
7162 if test "$no_cache" != 1; then
7163 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7164 fi
7165
7166 if test "$wxUSE_COMBOBOX" = yes; then
7167 echo "$as_me:$LINENO: result: yes" >&5
7168 echo "${ECHO_T}yes" >&6
7169 else
7170 echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6
7172 fi
7173
7174
7175 enablestring=
7176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7177 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7178 no_cache=0
7179 # Check whether --enable-display or --disable-display was given.
7180 if test "${enable_display+set}" = set; then
7181 enableval="$enable_display"
7182
7183 if test "$enableval" = yes; then
7184 ac_cv_use_display='wxUSE_DISPLAY=yes'
7185 else
7186 ac_cv_use_display='wxUSE_DISPLAY=no'
7187 fi
7188
7189 else
7190
7191 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7192 if test "x$LINE" != x ; then
7193 eval "DEFAULT_$LINE"
7194 else
7195 no_cache=1
7196 fi
7197
7198 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7199
7200 fi;
7201
7202 eval "$ac_cv_use_display"
7203 if test "$no_cache" != 1; then
7204 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7205 fi
7206
7207 if test "$wxUSE_DISPLAY" = yes; then
7208 echo "$as_me:$LINENO: result: yes" >&5
7209 echo "${ECHO_T}yes" >&6
7210 else
7211 echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6
7213 fi
7214
7215
7216 enablestring=
7217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7218 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7219 no_cache=0
7220 # Check whether --enable-gauge or --disable-gauge was given.
7221 if test "${enable_gauge+set}" = set; then
7222 enableval="$enable_gauge"
7223
7224 if test "$enableval" = yes; then
7225 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7226 else
7227 ac_cv_use_gauge='wxUSE_GAUGE=no'
7228 fi
7229
7230 else
7231
7232 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7240
7241 fi;
7242
7243 eval "$ac_cv_use_gauge"
7244 if test "$no_cache" != 1; then
7245 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7246 fi
7247
7248 if test "$wxUSE_GAUGE" = yes; then
7249 echo "$as_me:$LINENO: result: yes" >&5
7250 echo "${ECHO_T}yes" >&6
7251 else
7252 echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6
7254 fi
7255
7256
7257 enablestring=
7258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7259 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7260 no_cache=0
7261 # Check whether --enable-grid or --disable-grid was given.
7262 if test "${enable_grid+set}" = set; then
7263 enableval="$enable_grid"
7264
7265 if test "$enableval" = yes; then
7266 ac_cv_use_grid='wxUSE_GRID=yes'
7267 else
7268 ac_cv_use_grid='wxUSE_GRID=no'
7269 fi
7270
7271 else
7272
7273 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7274 if test "x$LINE" != x ; then
7275 eval "DEFAULT_$LINE"
7276 else
7277 no_cache=1
7278 fi
7279
7280 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7281
7282 fi;
7283
7284 eval "$ac_cv_use_grid"
7285 if test "$no_cache" != 1; then
7286 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7287 fi
7288
7289 if test "$wxUSE_GRID" = yes; then
7290 echo "$as_me:$LINENO: result: yes" >&5
7291 echo "${ECHO_T}yes" >&6
7292 else
7293 echo "$as_me:$LINENO: result: no" >&5
7294 echo "${ECHO_T}no" >&6
7295 fi
7296
7297
7298 enablestring=
7299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7300 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7301 no_cache=0
7302 # Check whether --enable-imaglist or --disable-imaglist was given.
7303 if test "${enable_imaglist+set}" = set; then
7304 enableval="$enable_imaglist"
7305
7306 if test "$enableval" = yes; then
7307 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7308 else
7309 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7310 fi
7311
7312 else
7313
7314 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7315 if test "x$LINE" != x ; then
7316 eval "DEFAULT_$LINE"
7317 else
7318 no_cache=1
7319 fi
7320
7321 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7322
7323 fi;
7324
7325 eval "$ac_cv_use_imaglist"
7326 if test "$no_cache" != 1; then
7327 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7328 fi
7329
7330 if test "$wxUSE_IMAGLIST" = yes; then
7331 echo "$as_me:$LINENO: result: yes" >&5
7332 echo "${ECHO_T}yes" >&6
7333 else
7334 echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6
7336 fi
7337
7338
7339 enablestring=
7340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7341 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7342 no_cache=0
7343 # Check whether --enable-listbook or --disable-listbook was given.
7344 if test "${enable_listbook+set}" = set; then
7345 enableval="$enable_listbook"
7346
7347 if test "$enableval" = yes; then
7348 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7349 else
7350 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7351 fi
7352
7353 else
7354
7355 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7356 if test "x$LINE" != x ; then
7357 eval "DEFAULT_$LINE"
7358 else
7359 no_cache=1
7360 fi
7361
7362 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7363
7364 fi;
7365
7366 eval "$ac_cv_use_listbook"
7367 if test "$no_cache" != 1; then
7368 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7369 fi
7370
7371 if test "$wxUSE_LISTBOOK" = yes; then
7372 echo "$as_me:$LINENO: result: yes" >&5
7373 echo "${ECHO_T}yes" >&6
7374 else
7375 echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7377 fi
7378
7379
7380 enablestring=
7381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7382 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7383 no_cache=0
7384 # Check whether --enable-listbox or --disable-listbox was given.
7385 if test "${enable_listbox+set}" = set; then
7386 enableval="$enable_listbox"
7387
7388 if test "$enableval" = yes; then
7389 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7390 else
7391 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7392 fi
7393
7394 else
7395
7396 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7397 if test "x$LINE" != x ; then
7398 eval "DEFAULT_$LINE"
7399 else
7400 no_cache=1
7401 fi
7402
7403 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7404
7405 fi;
7406
7407 eval "$ac_cv_use_listbox"
7408 if test "$no_cache" != 1; then
7409 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7410 fi
7411
7412 if test "$wxUSE_LISTBOX" = yes; then
7413 echo "$as_me:$LINENO: result: yes" >&5
7414 echo "${ECHO_T}yes" >&6
7415 else
7416 echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6
7418 fi
7419
7420
7421 enablestring=
7422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7423 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7424 no_cache=0
7425 # Check whether --enable-listctrl or --disable-listctrl was given.
7426 if test "${enable_listctrl+set}" = set; then
7427 enableval="$enable_listctrl"
7428
7429 if test "$enableval" = yes; then
7430 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7431 else
7432 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7433 fi
7434
7435 else
7436
7437 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7438 if test "x$LINE" != x ; then
7439 eval "DEFAULT_$LINE"
7440 else
7441 no_cache=1
7442 fi
7443
7444 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7445
7446 fi;
7447
7448 eval "$ac_cv_use_listctrl"
7449 if test "$no_cache" != 1; then
7450 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7451 fi
7452
7453 if test "$wxUSE_LISTCTRL" = yes; then
7454 echo "$as_me:$LINENO: result: yes" >&5
7455 echo "${ECHO_T}yes" >&6
7456 else
7457 echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6
7459 fi
7460
7461
7462 enablestring=
7463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7464 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7465 no_cache=0
7466 # Check whether --enable-notebook or --disable-notebook was given.
7467 if test "${enable_notebook+set}" = set; then
7468 enableval="$enable_notebook"
7469
7470 if test "$enableval" = yes; then
7471 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7472 else
7473 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7474 fi
7475
7476 else
7477
7478 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7479 if test "x$LINE" != x ; then
7480 eval "DEFAULT_$LINE"
7481 else
7482 no_cache=1
7483 fi
7484
7485 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7486
7487 fi;
7488
7489 eval "$ac_cv_use_notebook"
7490 if test "$no_cache" != 1; then
7491 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7492 fi
7493
7494 if test "$wxUSE_NOTEBOOK" = yes; then
7495 echo "$as_me:$LINENO: result: yes" >&5
7496 echo "${ECHO_T}yes" >&6
7497 else
7498 echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6
7500 fi
7501
7502
7503 enablestring=
7504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7505 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7506 no_cache=0
7507 # Check whether --enable-radiobox or --disable-radiobox was given.
7508 if test "${enable_radiobox+set}" = set; then
7509 enableval="$enable_radiobox"
7510
7511 if test "$enableval" = yes; then
7512 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7513 else
7514 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7515 fi
7516
7517 else
7518
7519 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7520 if test "x$LINE" != x ; then
7521 eval "DEFAULT_$LINE"
7522 else
7523 no_cache=1
7524 fi
7525
7526 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7527
7528 fi;
7529
7530 eval "$ac_cv_use_radiobox"
7531 if test "$no_cache" != 1; then
7532 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7533 fi
7534
7535 if test "$wxUSE_RADIOBOX" = yes; then
7536 echo "$as_me:$LINENO: result: yes" >&5
7537 echo "${ECHO_T}yes" >&6
7538 else
7539 echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6
7541 fi
7542
7543
7544 enablestring=
7545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7546 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7547 no_cache=0
7548 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7549 if test "${enable_radiobtn+set}" = set; then
7550 enableval="$enable_radiobtn"
7551
7552 if test "$enableval" = yes; then
7553 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7554 else
7555 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7556 fi
7557
7558 else
7559
7560 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7561 if test "x$LINE" != x ; then
7562 eval "DEFAULT_$LINE"
7563 else
7564 no_cache=1
7565 fi
7566
7567 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7568
7569 fi;
7570
7571 eval "$ac_cv_use_radiobtn"
7572 if test "$no_cache" != 1; then
7573 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7574 fi
7575
7576 if test "$wxUSE_RADIOBTN" = yes; then
7577 echo "$as_me:$LINENO: result: yes" >&5
7578 echo "${ECHO_T}yes" >&6
7579 else
7580 echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6
7582 fi
7583
7584
7585 enablestring=
7586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7587 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7588 no_cache=0
7589 # Check whether --enable-sash or --disable-sash was given.
7590 if test "${enable_sash+set}" = set; then
7591 enableval="$enable_sash"
7592
7593 if test "$enableval" = yes; then
7594 ac_cv_use_sash='wxUSE_SASH=yes'
7595 else
7596 ac_cv_use_sash='wxUSE_SASH=no'
7597 fi
7598
7599 else
7600
7601 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7602 if test "x$LINE" != x ; then
7603 eval "DEFAULT_$LINE"
7604 else
7605 no_cache=1
7606 fi
7607
7608 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7609
7610 fi;
7611
7612 eval "$ac_cv_use_sash"
7613 if test "$no_cache" != 1; then
7614 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7615 fi
7616
7617 if test "$wxUSE_SASH" = yes; then
7618 echo "$as_me:$LINENO: result: yes" >&5
7619 echo "${ECHO_T}yes" >&6
7620 else
7621 echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6
7623 fi
7624
7625
7626 enablestring=
7627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7628 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7629 no_cache=0
7630 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7631 if test "${enable_scrollbar+set}" = set; then
7632 enableval="$enable_scrollbar"
7633
7634 if test "$enableval" = yes; then
7635 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7636 else
7637 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7638 fi
7639
7640 else
7641
7642 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7643 if test "x$LINE" != x ; then
7644 eval "DEFAULT_$LINE"
7645 else
7646 no_cache=1
7647 fi
7648
7649 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7650
7651 fi;
7652
7653 eval "$ac_cv_use_scrollbar"
7654 if test "$no_cache" != 1; then
7655 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7656 fi
7657
7658 if test "$wxUSE_SCROLLBAR" = yes; then
7659 echo "$as_me:$LINENO: result: yes" >&5
7660 echo "${ECHO_T}yes" >&6
7661 else
7662 echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6
7664 fi
7665
7666
7667 enablestring=
7668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7669 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7670 no_cache=0
7671 # Check whether --enable-slider or --disable-slider was given.
7672 if test "${enable_slider+set}" = set; then
7673 enableval="$enable_slider"
7674
7675 if test "$enableval" = yes; then
7676 ac_cv_use_slider='wxUSE_SLIDER=yes'
7677 else
7678 ac_cv_use_slider='wxUSE_SLIDER=no'
7679 fi
7680
7681 else
7682
7683 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7684 if test "x$LINE" != x ; then
7685 eval "DEFAULT_$LINE"
7686 else
7687 no_cache=1
7688 fi
7689
7690 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7691
7692 fi;
7693
7694 eval "$ac_cv_use_slider"
7695 if test "$no_cache" != 1; then
7696 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7697 fi
7698
7699 if test "$wxUSE_SLIDER" = yes; then
7700 echo "$as_me:$LINENO: result: yes" >&5
7701 echo "${ECHO_T}yes" >&6
7702 else
7703 echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6
7705 fi
7706
7707
7708 enablestring=
7709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7710 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7711 no_cache=0
7712 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7713 if test "${enable_spinbtn+set}" = set; then
7714 enableval="$enable_spinbtn"
7715
7716 if test "$enableval" = yes; then
7717 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7718 else
7719 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7720 fi
7721
7722 else
7723
7724 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7725 if test "x$LINE" != x ; then
7726 eval "DEFAULT_$LINE"
7727 else
7728 no_cache=1
7729 fi
7730
7731 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7732
7733 fi;
7734
7735 eval "$ac_cv_use_spinbtn"
7736 if test "$no_cache" != 1; then
7737 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7738 fi
7739
7740 if test "$wxUSE_SPINBTN" = yes; then
7741 echo "$as_me:$LINENO: result: yes" >&5
7742 echo "${ECHO_T}yes" >&6
7743 else
7744 echo "$as_me:$LINENO: result: no" >&5
7745 echo "${ECHO_T}no" >&6
7746 fi
7747
7748
7749 enablestring=
7750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7751 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7752 no_cache=0
7753 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7754 if test "${enable_spinctrl+set}" = set; then
7755 enableval="$enable_spinctrl"
7756
7757 if test "$enableval" = yes; then
7758 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7759 else
7760 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7761 fi
7762
7763 else
7764
7765 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7766 if test "x$LINE" != x ; then
7767 eval "DEFAULT_$LINE"
7768 else
7769 no_cache=1
7770 fi
7771
7772 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7773
7774 fi;
7775
7776 eval "$ac_cv_use_spinctrl"
7777 if test "$no_cache" != 1; then
7778 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7779 fi
7780
7781 if test "$wxUSE_SPINCTRL" = yes; then
7782 echo "$as_me:$LINENO: result: yes" >&5
7783 echo "${ECHO_T}yes" >&6
7784 else
7785 echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6
7787 fi
7788
7789
7790 enablestring=
7791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7792 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7793 no_cache=0
7794 # Check whether --enable-splitter or --disable-splitter was given.
7795 if test "${enable_splitter+set}" = set; then
7796 enableval="$enable_splitter"
7797
7798 if test "$enableval" = yes; then
7799 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7800 else
7801 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7802 fi
7803
7804 else
7805
7806 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7807 if test "x$LINE" != x ; then
7808 eval "DEFAULT_$LINE"
7809 else
7810 no_cache=1
7811 fi
7812
7813 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7814
7815 fi;
7816
7817 eval "$ac_cv_use_splitter"
7818 if test "$no_cache" != 1; then
7819 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7820 fi
7821
7822 if test "$wxUSE_SPLITTER" = yes; then
7823 echo "$as_me:$LINENO: result: yes" >&5
7824 echo "${ECHO_T}yes" >&6
7825 else
7826 echo "$as_me:$LINENO: result: no" >&5
7827 echo "${ECHO_T}no" >&6
7828 fi
7829
7830
7831 enablestring=
7832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7833 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7834 no_cache=0
7835 # Check whether --enable-statbmp or --disable-statbmp was given.
7836 if test "${enable_statbmp+set}" = set; then
7837 enableval="$enable_statbmp"
7838
7839 if test "$enableval" = yes; then
7840 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7841 else
7842 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7843 fi
7844
7845 else
7846
7847 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7848 if test "x$LINE" != x ; then
7849 eval "DEFAULT_$LINE"
7850 else
7851 no_cache=1
7852 fi
7853
7854 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7855
7856 fi;
7857
7858 eval "$ac_cv_use_statbmp"
7859 if test "$no_cache" != 1; then
7860 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7861 fi
7862
7863 if test "$wxUSE_STATBMP" = yes; then
7864 echo "$as_me:$LINENO: result: yes" >&5
7865 echo "${ECHO_T}yes" >&6
7866 else
7867 echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6
7869 fi
7870
7871
7872 enablestring=
7873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7874 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7875 no_cache=0
7876 # Check whether --enable-statbox or --disable-statbox was given.
7877 if test "${enable_statbox+set}" = set; then
7878 enableval="$enable_statbox"
7879
7880 if test "$enableval" = yes; then
7881 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7882 else
7883 ac_cv_use_statbox='wxUSE_STATBOX=no'
7884 fi
7885
7886 else
7887
7888 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7889 if test "x$LINE" != x ; then
7890 eval "DEFAULT_$LINE"
7891 else
7892 no_cache=1
7893 fi
7894
7895 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7896
7897 fi;
7898
7899 eval "$ac_cv_use_statbox"
7900 if test "$no_cache" != 1; then
7901 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7902 fi
7903
7904 if test "$wxUSE_STATBOX" = yes; then
7905 echo "$as_me:$LINENO: result: yes" >&5
7906 echo "${ECHO_T}yes" >&6
7907 else
7908 echo "$as_me:$LINENO: result: no" >&5
7909 echo "${ECHO_T}no" >&6
7910 fi
7911
7912
7913 enablestring=
7914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7915 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7916 no_cache=0
7917 # Check whether --enable-statline or --disable-statline was given.
7918 if test "${enable_statline+set}" = set; then
7919 enableval="$enable_statline"
7920
7921 if test "$enableval" = yes; then
7922 ac_cv_use_statline='wxUSE_STATLINE=yes'
7923 else
7924 ac_cv_use_statline='wxUSE_STATLINE=no'
7925 fi
7926
7927 else
7928
7929 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7930 if test "x$LINE" != x ; then
7931 eval "DEFAULT_$LINE"
7932 else
7933 no_cache=1
7934 fi
7935
7936 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7937
7938 fi;
7939
7940 eval "$ac_cv_use_statline"
7941 if test "$no_cache" != 1; then
7942 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7943 fi
7944
7945 if test "$wxUSE_STATLINE" = yes; then
7946 echo "$as_me:$LINENO: result: yes" >&5
7947 echo "${ECHO_T}yes" >&6
7948 else
7949 echo "$as_me:$LINENO: result: no" >&5
7950 echo "${ECHO_T}no" >&6
7951 fi
7952
7953
7954 enablestring=
7955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7956 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
7957 no_cache=0
7958 # Check whether --enable-stattext or --disable-stattext was given.
7959 if test "${enable_stattext+set}" = set; then
7960 enableval="$enable_stattext"
7961
7962 if test "$enableval" = yes; then
7963 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7964 else
7965 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7966 fi
7967
7968 else
7969
7970 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7971 if test "x$LINE" != x ; then
7972 eval "DEFAULT_$LINE"
7973 else
7974 no_cache=1
7975 fi
7976
7977 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7978
7979 fi;
7980
7981 eval "$ac_cv_use_stattext"
7982 if test "$no_cache" != 1; then
7983 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7984 fi
7985
7986 if test "$wxUSE_STATTEXT" = yes; then
7987 echo "$as_me:$LINENO: result: yes" >&5
7988 echo "${ECHO_T}yes" >&6
7989 else
7990 echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6
7992 fi
7993
7994
7995 enablestring=
7996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7997 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
7998 no_cache=0
7999 # Check whether --enable-statusbar or --disable-statusbar was given.
8000 if test "${enable_statusbar+set}" = set; then
8001 enableval="$enable_statusbar"
8002
8003 if test "$enableval" = yes; then
8004 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8005 else
8006 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8007 fi
8008
8009 else
8010
8011 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8012 if test "x$LINE" != x ; then
8013 eval "DEFAULT_$LINE"
8014 else
8015 no_cache=1
8016 fi
8017
8018 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8019
8020 fi;
8021
8022 eval "$ac_cv_use_statusbar"
8023 if test "$no_cache" != 1; then
8024 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8025 fi
8026
8027 if test "$wxUSE_STATUSBAR" = yes; then
8028 echo "$as_me:$LINENO: result: yes" >&5
8029 echo "${ECHO_T}yes" >&6
8030 else
8031 echo "$as_me:$LINENO: result: no" >&5
8032 echo "${ECHO_T}no" >&6
8033 fi
8034
8035
8036 enablestring=
8037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8038 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8039 no_cache=0
8040 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8041 if test "${enable_tabdialog+set}" = set; then
8042 enableval="$enable_tabdialog"
8043
8044 if test "$enableval" = yes; then
8045 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8046 else
8047 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8048 fi
8049
8050 else
8051
8052 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8053 if test "x$LINE" != x ; then
8054 eval "DEFAULT_$LINE"
8055 else
8056 no_cache=1
8057 fi
8058
8059 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8060
8061 fi;
8062
8063 eval "$ac_cv_use_tabdialog"
8064 if test "$no_cache" != 1; then
8065 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8066 fi
8067
8068 if test "$wxUSE_TABDIALOG" = yes; then
8069 echo "$as_me:$LINENO: result: yes" >&5
8070 echo "${ECHO_T}yes" >&6
8071 else
8072 echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6
8074 fi
8075
8076
8077 enablestring=
8078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8079 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8080 no_cache=0
8081 # Check whether --enable-textctrl or --disable-textctrl was given.
8082 if test "${enable_textctrl+set}" = set; then
8083 enableval="$enable_textctrl"
8084
8085 if test "$enableval" = yes; then
8086 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8087 else
8088 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8089 fi
8090
8091 else
8092
8093 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8094 if test "x$LINE" != x ; then
8095 eval "DEFAULT_$LINE"
8096 else
8097 no_cache=1
8098 fi
8099
8100 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8101
8102 fi;
8103
8104 eval "$ac_cv_use_textctrl"
8105 if test "$no_cache" != 1; then
8106 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8107 fi
8108
8109 if test "$wxUSE_TEXTCTRL" = yes; then
8110 echo "$as_me:$LINENO: result: yes" >&5
8111 echo "${ECHO_T}yes" >&6
8112 else
8113 echo "$as_me:$LINENO: result: no" >&5
8114 echo "${ECHO_T}no" >&6
8115 fi
8116
8117
8118 enablestring=
8119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8120 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8121 no_cache=0
8122 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8123 if test "${enable_togglebtn+set}" = set; then
8124 enableval="$enable_togglebtn"
8125
8126 if test "$enableval" = yes; then
8127 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8128 else
8129 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8130 fi
8131
8132 else
8133
8134 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8135 if test "x$LINE" != x ; then
8136 eval "DEFAULT_$LINE"
8137 else
8138 no_cache=1
8139 fi
8140
8141 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8142
8143 fi;
8144
8145 eval "$ac_cv_use_togglebtn"
8146 if test "$no_cache" != 1; then
8147 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8148 fi
8149
8150 if test "$wxUSE_TOGGLEBTN" = yes; then
8151 echo "$as_me:$LINENO: result: yes" >&5
8152 echo "${ECHO_T}yes" >&6
8153 else
8154 echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6
8156 fi
8157
8158
8159 enablestring=
8160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8161 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8162 no_cache=0
8163 # Check whether --enable-toolbar or --disable-toolbar was given.
8164 if test "${enable_toolbar+set}" = set; then
8165 enableval="$enable_toolbar"
8166
8167 if test "$enableval" = yes; then
8168 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8169 else
8170 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8171 fi
8172
8173 else
8174
8175 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8176 if test "x$LINE" != x ; then
8177 eval "DEFAULT_$LINE"
8178 else
8179 no_cache=1
8180 fi
8181
8182 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8183
8184 fi;
8185
8186 eval "$ac_cv_use_toolbar"
8187 if test "$no_cache" != 1; then
8188 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8189 fi
8190
8191 if test "$wxUSE_TOOLBAR" = yes; then
8192 echo "$as_me:$LINENO: result: yes" >&5
8193 echo "${ECHO_T}yes" >&6
8194 else
8195 echo "$as_me:$LINENO: result: no" >&5
8196 echo "${ECHO_T}no" >&6
8197 fi
8198
8199
8200 enablestring=
8201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8202 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8203 no_cache=0
8204 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8205 if test "${enable_tbarnative+set}" = set; then
8206 enableval="$enable_tbarnative"
8207
8208 if test "$enableval" = yes; then
8209 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8210 else
8211 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8212 fi
8213
8214 else
8215
8216 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8217 if test "x$LINE" != x ; then
8218 eval "DEFAULT_$LINE"
8219 else
8220 no_cache=1
8221 fi
8222
8223 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8224
8225 fi;
8226
8227 eval "$ac_cv_use_tbarnative"
8228 if test "$no_cache" != 1; then
8229 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8230 fi
8231
8232 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8233 echo "$as_me:$LINENO: result: yes" >&5
8234 echo "${ECHO_T}yes" >&6
8235 else
8236 echo "$as_me:$LINENO: result: no" >&5
8237 echo "${ECHO_T}no" >&6
8238 fi
8239
8240
8241 enablestring=
8242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8243 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8244 no_cache=0
8245 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8246 if test "${enable_tbarsmpl+set}" = set; then
8247 enableval="$enable_tbarsmpl"
8248
8249 if test "$enableval" = yes; then
8250 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8251 else
8252 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8253 fi
8254
8255 else
8256
8257 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8258 if test "x$LINE" != x ; then
8259 eval "DEFAULT_$LINE"
8260 else
8261 no_cache=1
8262 fi
8263
8264 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8265
8266 fi;
8267
8268 eval "$ac_cv_use_tbarsmpl"
8269 if test "$no_cache" != 1; then
8270 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8271 fi
8272
8273 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8274 echo "$as_me:$LINENO: result: yes" >&5
8275 echo "${ECHO_T}yes" >&6
8276 else
8277 echo "$as_me:$LINENO: result: no" >&5
8278 echo "${ECHO_T}no" >&6
8279 fi
8280
8281
8282 enablestring=
8283 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8284 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8285 no_cache=0
8286 # Check whether --enable-treectrl or --disable-treectrl was given.
8287 if test "${enable_treectrl+set}" = set; then
8288 enableval="$enable_treectrl"
8289
8290 if test "$enableval" = yes; then
8291 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8292 else
8293 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8294 fi
8295
8296 else
8297
8298 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8299 if test "x$LINE" != x ; then
8300 eval "DEFAULT_$LINE"
8301 else
8302 no_cache=1
8303 fi
8304
8305 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8306
8307 fi;
8308
8309 eval "$ac_cv_use_treectrl"
8310 if test "$no_cache" != 1; then
8311 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8312 fi
8313
8314 if test "$wxUSE_TREECTRL" = yes; then
8315 echo "$as_me:$LINENO: result: yes" >&5
8316 echo "${ECHO_T}yes" >&6
8317 else
8318 echo "$as_me:$LINENO: result: no" >&5
8319 echo "${ECHO_T}no" >&6
8320 fi
8321
8322
8323 enablestring=
8324 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8325 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8326 no_cache=0
8327 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8328 if test "${enable_tipwindow+set}" = set; then
8329 enableval="$enable_tipwindow"
8330
8331 if test "$enableval" = yes; then
8332 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8333 else
8334 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8335 fi
8336
8337 else
8338
8339 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8340 if test "x$LINE" != x ; then
8341 eval "DEFAULT_$LINE"
8342 else
8343 no_cache=1
8344 fi
8345
8346 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8347
8348 fi;
8349
8350 eval "$ac_cv_use_tipwindow"
8351 if test "$no_cache" != 1; then
8352 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8353 fi
8354
8355 if test "$wxUSE_TIPWINDOW" = yes; then
8356 echo "$as_me:$LINENO: result: yes" >&5
8357 echo "${ECHO_T}yes" >&6
8358 else
8359 echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6
8361 fi
8362
8363
8364 enablestring=
8365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8366 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8367 no_cache=0
8368 # Check whether --enable-popupwin or --disable-popupwin was given.
8369 if test "${enable_popupwin+set}" = set; then
8370 enableval="$enable_popupwin"
8371
8372 if test "$enableval" = yes; then
8373 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8374 else
8375 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8376 fi
8377
8378 else
8379
8380 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8381 if test "x$LINE" != x ; then
8382 eval "DEFAULT_$LINE"
8383 else
8384 no_cache=1
8385 fi
8386
8387 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8388
8389 fi;
8390
8391 eval "$ac_cv_use_popupwin"
8392 if test "$no_cache" != 1; then
8393 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8394 fi
8395
8396 if test "$wxUSE_POPUPWIN" = yes; then
8397 echo "$as_me:$LINENO: result: yes" >&5
8398 echo "${ECHO_T}yes" >&6
8399 else
8400 echo "$as_me:$LINENO: result: no" >&5
8401 echo "${ECHO_T}no" >&6
8402 fi
8403
8404
8405
8406
8407 enablestring=
8408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8409 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8410 no_cache=0
8411 # Check whether --enable-commondlg or --disable-commondlg was given.
8412 if test "${enable_commondlg+set}" = set; then
8413 enableval="$enable_commondlg"
8414
8415 if test "$enableval" = yes; then
8416 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8417 else
8418 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8419 fi
8420
8421 else
8422
8423 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8424 if test "x$LINE" != x ; then
8425 eval "DEFAULT_$LINE"
8426 else
8427 no_cache=1
8428 fi
8429
8430 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8431
8432 fi;
8433
8434 eval "$ac_cv_use_commondlg"
8435 if test "$no_cache" != 1; then
8436 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8437 fi
8438
8439 if test "$wxUSE_COMMONDLGS" = yes; then
8440 echo "$as_me:$LINENO: result: yes" >&5
8441 echo "${ECHO_T}yes" >&6
8442 else
8443 echo "$as_me:$LINENO: result: no" >&5
8444 echo "${ECHO_T}no" >&6
8445 fi
8446
8447
8448 enablestring=
8449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8450 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8451 no_cache=0
8452 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8453 if test "${enable_choicedlg+set}" = set; then
8454 enableval="$enable_choicedlg"
8455
8456 if test "$enableval" = yes; then
8457 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8458 else
8459 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8460 fi
8461
8462 else
8463
8464 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8465 if test "x$LINE" != x ; then
8466 eval "DEFAULT_$LINE"
8467 else
8468 no_cache=1
8469 fi
8470
8471 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8472
8473 fi;
8474
8475 eval "$ac_cv_use_choicedlg"
8476 if test "$no_cache" != 1; then
8477 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8478 fi
8479
8480 if test "$wxUSE_CHOICEDLG" = yes; then
8481 echo "$as_me:$LINENO: result: yes" >&5
8482 echo "${ECHO_T}yes" >&6
8483 else
8484 echo "$as_me:$LINENO: result: no" >&5
8485 echo "${ECHO_T}no" >&6
8486 fi
8487
8488
8489 enablestring=
8490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8491 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8492 no_cache=0
8493 # Check whether --enable-coldlg or --disable-coldlg was given.
8494 if test "${enable_coldlg+set}" = set; then
8495 enableval="$enable_coldlg"
8496
8497 if test "$enableval" = yes; then
8498 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8499 else
8500 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8501 fi
8502
8503 else
8504
8505 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8506 if test "x$LINE" != x ; then
8507 eval "DEFAULT_$LINE"
8508 else
8509 no_cache=1
8510 fi
8511
8512 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8513
8514 fi;
8515
8516 eval "$ac_cv_use_coldlg"
8517 if test "$no_cache" != 1; then
8518 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8519 fi
8520
8521 if test "$wxUSE_COLOURDLG" = yes; then
8522 echo "$as_me:$LINENO: result: yes" >&5
8523 echo "${ECHO_T}yes" >&6
8524 else
8525 echo "$as_me:$LINENO: result: no" >&5
8526 echo "${ECHO_T}no" >&6
8527 fi
8528
8529
8530 enablestring=
8531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8532 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8533 no_cache=0
8534 # Check whether --enable-filedlg or --disable-filedlg was given.
8535 if test "${enable_filedlg+set}" = set; then
8536 enableval="$enable_filedlg"
8537
8538 if test "$enableval" = yes; then
8539 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8540 else
8541 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8542 fi
8543
8544 else
8545
8546 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8547 if test "x$LINE" != x ; then
8548 eval "DEFAULT_$LINE"
8549 else
8550 no_cache=1
8551 fi
8552
8553 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8554
8555 fi;
8556
8557 eval "$ac_cv_use_filedlg"
8558 if test "$no_cache" != 1; then
8559 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8560 fi
8561
8562 if test "$wxUSE_FILEDLG" = yes; then
8563 echo "$as_me:$LINENO: result: yes" >&5
8564 echo "${ECHO_T}yes" >&6
8565 else
8566 echo "$as_me:$LINENO: result: no" >&5
8567 echo "${ECHO_T}no" >&6
8568 fi
8569
8570
8571 enablestring=
8572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8573 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8574 no_cache=0
8575 # Check whether --enable-finddlg or --disable-finddlg was given.
8576 if test "${enable_finddlg+set}" = set; then
8577 enableval="$enable_finddlg"
8578
8579 if test "$enableval" = yes; then
8580 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8581 else
8582 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8583 fi
8584
8585 else
8586
8587 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8588 if test "x$LINE" != x ; then
8589 eval "DEFAULT_$LINE"
8590 else
8591 no_cache=1
8592 fi
8593
8594 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8595
8596 fi;
8597
8598 eval "$ac_cv_use_finddlg"
8599 if test "$no_cache" != 1; then
8600 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8601 fi
8602
8603 if test "$wxUSE_FINDREPLDLG" = yes; then
8604 echo "$as_me:$LINENO: result: yes" >&5
8605 echo "${ECHO_T}yes" >&6
8606 else
8607 echo "$as_me:$LINENO: result: no" >&5
8608 echo "${ECHO_T}no" >&6
8609 fi
8610
8611
8612 enablestring=
8613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8614 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8615 no_cache=0
8616 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8617 if test "${enable_fontdlg+set}" = set; then
8618 enableval="$enable_fontdlg"
8619
8620 if test "$enableval" = yes; then
8621 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8622 else
8623 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8624 fi
8625
8626 else
8627
8628 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8629 if test "x$LINE" != x ; then
8630 eval "DEFAULT_$LINE"
8631 else
8632 no_cache=1
8633 fi
8634
8635 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8636
8637 fi;
8638
8639 eval "$ac_cv_use_fontdlg"
8640 if test "$no_cache" != 1; then
8641 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8642 fi
8643
8644 if test "$wxUSE_FONTDLG" = yes; then
8645 echo "$as_me:$LINENO: result: yes" >&5
8646 echo "${ECHO_T}yes" >&6
8647 else
8648 echo "$as_me:$LINENO: result: no" >&5
8649 echo "${ECHO_T}no" >&6
8650 fi
8651
8652
8653 enablestring=
8654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8655 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8656 no_cache=0
8657 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8658 if test "${enable_dirdlg+set}" = set; then
8659 enableval="$enable_dirdlg"
8660
8661 if test "$enableval" = yes; then
8662 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8663 else
8664 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8665 fi
8666
8667 else
8668
8669 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8670 if test "x$LINE" != x ; then
8671 eval "DEFAULT_$LINE"
8672 else
8673 no_cache=1
8674 fi
8675
8676 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8677
8678 fi;
8679
8680 eval "$ac_cv_use_dirdlg"
8681 if test "$no_cache" != 1; then
8682 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8683 fi
8684
8685 if test "$wxUSE_DIRDLG" = yes; then
8686 echo "$as_me:$LINENO: result: yes" >&5
8687 echo "${ECHO_T}yes" >&6
8688 else
8689 echo "$as_me:$LINENO: result: no" >&5
8690 echo "${ECHO_T}no" >&6
8691 fi
8692
8693
8694 enablestring=
8695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8696 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8697 no_cache=0
8698 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8699 if test "${enable_msgdlg+set}" = set; then
8700 enableval="$enable_msgdlg"
8701
8702 if test "$enableval" = yes; then
8703 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8704 else
8705 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8706 fi
8707
8708 else
8709
8710 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8711 if test "x$LINE" != x ; then
8712 eval "DEFAULT_$LINE"
8713 else
8714 no_cache=1
8715 fi
8716
8717 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8718
8719 fi;
8720
8721 eval "$ac_cv_use_msgdlg"
8722 if test "$no_cache" != 1; then
8723 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8724 fi
8725
8726 if test "$wxUSE_MSGDLG" = yes; then
8727 echo "$as_me:$LINENO: result: yes" >&5
8728 echo "${ECHO_T}yes" >&6
8729 else
8730 echo "$as_me:$LINENO: result: no" >&5
8731 echo "${ECHO_T}no" >&6
8732 fi
8733
8734
8735 enablestring=
8736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8737 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8738 no_cache=0
8739 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8740 if test "${enable_numberdlg+set}" = set; then
8741 enableval="$enable_numberdlg"
8742
8743 if test "$enableval" = yes; then
8744 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8745 else
8746 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8747 fi
8748
8749 else
8750
8751 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8752 if test "x$LINE" != x ; then
8753 eval "DEFAULT_$LINE"
8754 else
8755 no_cache=1
8756 fi
8757
8758 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8759
8760 fi;
8761
8762 eval "$ac_cv_use_numberdlg"
8763 if test "$no_cache" != 1; then
8764 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8765 fi
8766
8767 if test "$wxUSE_NUMBERDLG" = yes; then
8768 echo "$as_me:$LINENO: result: yes" >&5
8769 echo "${ECHO_T}yes" >&6
8770 else
8771 echo "$as_me:$LINENO: result: no" >&5
8772 echo "${ECHO_T}no" >&6
8773 fi
8774
8775
8776 enablestring=
8777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8778 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8779 no_cache=0
8780 # Check whether --enable-splash or --disable-splash was given.
8781 if test "${enable_splash+set}" = set; then
8782 enableval="$enable_splash"
8783
8784 if test "$enableval" = yes; then
8785 ac_cv_use_splash='wxUSE_SPLASH=yes'
8786 else
8787 ac_cv_use_splash='wxUSE_SPLASH=no'
8788 fi
8789
8790 else
8791
8792 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8793 if test "x$LINE" != x ; then
8794 eval "DEFAULT_$LINE"
8795 else
8796 no_cache=1
8797 fi
8798
8799 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8800
8801 fi;
8802
8803 eval "$ac_cv_use_splash"
8804 if test "$no_cache" != 1; then
8805 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8806 fi
8807
8808 if test "$wxUSE_SPLASH" = yes; then
8809 echo "$as_me:$LINENO: result: yes" >&5
8810 echo "${ECHO_T}yes" >&6
8811 else
8812 echo "$as_me:$LINENO: result: no" >&5
8813 echo "${ECHO_T}no" >&6
8814 fi
8815
8816
8817 enablestring=
8818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8819 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8820 no_cache=0
8821 # Check whether --enable-textdlg or --disable-textdlg was given.
8822 if test "${enable_textdlg+set}" = set; then
8823 enableval="$enable_textdlg"
8824
8825 if test "$enableval" = yes; then
8826 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8827 else
8828 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8829 fi
8830
8831 else
8832
8833 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8834 if test "x$LINE" != x ; then
8835 eval "DEFAULT_$LINE"
8836 else
8837 no_cache=1
8838 fi
8839
8840 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8841
8842 fi;
8843
8844 eval "$ac_cv_use_textdlg"
8845 if test "$no_cache" != 1; then
8846 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8847 fi
8848
8849 if test "$wxUSE_TEXTDLG" = yes; then
8850 echo "$as_me:$LINENO: result: yes" >&5
8851 echo "${ECHO_T}yes" >&6
8852 else
8853 echo "$as_me:$LINENO: result: no" >&5
8854 echo "${ECHO_T}no" >&6
8855 fi
8856
8857
8858 enablestring=
8859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8860 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8861 no_cache=0
8862 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8863 if test "${enable_tipdlg+set}" = set; then
8864 enableval="$enable_tipdlg"
8865
8866 if test "$enableval" = yes; then
8867 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8868 else
8869 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8870 fi
8871
8872 else
8873
8874 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8875 if test "x$LINE" != x ; then
8876 eval "DEFAULT_$LINE"
8877 else
8878 no_cache=1
8879 fi
8880
8881 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8882
8883 fi;
8884
8885 eval "$ac_cv_use_tipdlg"
8886 if test "$no_cache" != 1; then
8887 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8888 fi
8889
8890 if test "$wxUSE_STARTUP_TIPS" = yes; then
8891 echo "$as_me:$LINENO: result: yes" >&5
8892 echo "${ECHO_T}yes" >&6
8893 else
8894 echo "$as_me:$LINENO: result: no" >&5
8895 echo "${ECHO_T}no" >&6
8896 fi
8897
8898
8899 enablestring=
8900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8901 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8902 no_cache=0
8903 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8904 if test "${enable_progressdlg+set}" = set; then
8905 enableval="$enable_progressdlg"
8906
8907 if test "$enableval" = yes; then
8908 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8909 else
8910 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8911 fi
8912
8913 else
8914
8915 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8916 if test "x$LINE" != x ; then
8917 eval "DEFAULT_$LINE"
8918 else
8919 no_cache=1
8920 fi
8921
8922 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8923
8924 fi;
8925
8926 eval "$ac_cv_use_progressdlg"
8927 if test "$no_cache" != 1; then
8928 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8929 fi
8930
8931 if test "$wxUSE_PROGRESSDLG" = yes; then
8932 echo "$as_me:$LINENO: result: yes" >&5
8933 echo "${ECHO_T}yes" >&6
8934 else
8935 echo "$as_me:$LINENO: result: no" >&5
8936 echo "${ECHO_T}no" >&6
8937 fi
8938
8939
8940 enablestring=
8941 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8942 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
8943 no_cache=0
8944 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8945 if test "${enable_wizarddlg+set}" = set; then
8946 enableval="$enable_wizarddlg"
8947
8948 if test "$enableval" = yes; then
8949 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8950 else
8951 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8952 fi
8953
8954 else
8955
8956 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8957 if test "x$LINE" != x ; then
8958 eval "DEFAULT_$LINE"
8959 else
8960 no_cache=1
8961 fi
8962
8963 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8964
8965 fi;
8966
8967 eval "$ac_cv_use_wizarddlg"
8968 if test "$no_cache" != 1; then
8969 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8970 fi
8971
8972 if test "$wxUSE_WIZARDDLG" = yes; then
8973 echo "$as_me:$LINENO: result: yes" >&5
8974 echo "${ECHO_T}yes" >&6
8975 else
8976 echo "$as_me:$LINENO: result: no" >&5
8977 echo "${ECHO_T}no" >&6
8978 fi
8979
8980
8981
8982
8983 enablestring=
8984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8985 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
8986 no_cache=0
8987 # Check whether --enable-menus or --disable-menus was given.
8988 if test "${enable_menus+set}" = set; then
8989 enableval="$enable_menus"
8990
8991 if test "$enableval" = yes; then
8992 ac_cv_use_menus='wxUSE_MENUS=yes'
8993 else
8994 ac_cv_use_menus='wxUSE_MENUS=no'
8995 fi
8996
8997 else
8998
8999 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9000 if test "x$LINE" != x ; then
9001 eval "DEFAULT_$LINE"
9002 else
9003 no_cache=1
9004 fi
9005
9006 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9007
9008 fi;
9009
9010 eval "$ac_cv_use_menus"
9011 if test "$no_cache" != 1; then
9012 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9013 fi
9014
9015 if test "$wxUSE_MENUS" = yes; then
9016 echo "$as_me:$LINENO: result: yes" >&5
9017 echo "${ECHO_T}yes" >&6
9018 else
9019 echo "$as_me:$LINENO: result: no" >&5
9020 echo "${ECHO_T}no" >&6
9021 fi
9022
9023
9024 enablestring=
9025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9026 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9027 no_cache=0
9028 # Check whether --enable-miniframe or --disable-miniframe was given.
9029 if test "${enable_miniframe+set}" = set; then
9030 enableval="$enable_miniframe"
9031
9032 if test "$enableval" = yes; then
9033 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9034 else
9035 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9036 fi
9037
9038 else
9039
9040 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9041 if test "x$LINE" != x ; then
9042 eval "DEFAULT_$LINE"
9043 else
9044 no_cache=1
9045 fi
9046
9047 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9048
9049 fi;
9050
9051 eval "$ac_cv_use_miniframe"
9052 if test "$no_cache" != 1; then
9053 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9054 fi
9055
9056 if test "$wxUSE_MINIFRAME" = yes; then
9057 echo "$as_me:$LINENO: result: yes" >&5
9058 echo "${ECHO_T}yes" >&6
9059 else
9060 echo "$as_me:$LINENO: result: no" >&5
9061 echo "${ECHO_T}no" >&6
9062 fi
9063
9064
9065 enablestring=
9066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9067 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9068 no_cache=0
9069 # Check whether --enable-tooltips or --disable-tooltips was given.
9070 if test "${enable_tooltips+set}" = set; then
9071 enableval="$enable_tooltips"
9072
9073 if test "$enableval" = yes; then
9074 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9075 else
9076 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9077 fi
9078
9079 else
9080
9081 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9082 if test "x$LINE" != x ; then
9083 eval "DEFAULT_$LINE"
9084 else
9085 no_cache=1
9086 fi
9087
9088 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9089
9090 fi;
9091
9092 eval "$ac_cv_use_tooltips"
9093 if test "$no_cache" != 1; then
9094 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9095 fi
9096
9097 if test "$wxUSE_TOOLTIPS" = yes; then
9098 echo "$as_me:$LINENO: result: yes" >&5
9099 echo "${ECHO_T}yes" >&6
9100 else
9101 echo "$as_me:$LINENO: result: no" >&5
9102 echo "${ECHO_T}no" >&6
9103 fi
9104
9105
9106 enablestring=
9107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9108 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9109 no_cache=0
9110 # Check whether --enable-splines or --disable-splines was given.
9111 if test "${enable_splines+set}" = set; then
9112 enableval="$enable_splines"
9113
9114 if test "$enableval" = yes; then
9115 ac_cv_use_splines='wxUSE_SPLINES=yes'
9116 else
9117 ac_cv_use_splines='wxUSE_SPLINES=no'
9118 fi
9119
9120 else
9121
9122 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9123 if test "x$LINE" != x ; then
9124 eval "DEFAULT_$LINE"
9125 else
9126 no_cache=1
9127 fi
9128
9129 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9130
9131 fi;
9132
9133 eval "$ac_cv_use_splines"
9134 if test "$no_cache" != 1; then
9135 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9136 fi
9137
9138 if test "$wxUSE_SPLINES" = yes; then
9139 echo "$as_me:$LINENO: result: yes" >&5
9140 echo "${ECHO_T}yes" >&6
9141 else
9142 echo "$as_me:$LINENO: result: no" >&5
9143 echo "${ECHO_T}no" >&6
9144 fi
9145
9146
9147 enablestring=
9148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9149 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9150 no_cache=0
9151 # Check whether --enable-validators or --disable-validators was given.
9152 if test "${enable_validators+set}" = set; then
9153 enableval="$enable_validators"
9154
9155 if test "$enableval" = yes; then
9156 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9157 else
9158 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9159 fi
9160
9161 else
9162
9163 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9164 if test "x$LINE" != x ; then
9165 eval "DEFAULT_$LINE"
9166 else
9167 no_cache=1
9168 fi
9169
9170 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9171
9172 fi;
9173
9174 eval "$ac_cv_use_validators"
9175 if test "$no_cache" != 1; then
9176 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9177 fi
9178
9179 if test "$wxUSE_VALIDATORS" = yes; then
9180 echo "$as_me:$LINENO: result: yes" >&5
9181 echo "${ECHO_T}yes" >&6
9182 else
9183 echo "$as_me:$LINENO: result: no" >&5
9184 echo "${ECHO_T}no" >&6
9185 fi
9186
9187
9188 enablestring=
9189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9190 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9191 no_cache=0
9192 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9193 if test "${enable_busyinfo+set}" = set; then
9194 enableval="$enable_busyinfo"
9195
9196 if test "$enableval" = yes; then
9197 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9198 else
9199 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9200 fi
9201
9202 else
9203
9204 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9205 if test "x$LINE" != x ; then
9206 eval "DEFAULT_$LINE"
9207 else
9208 no_cache=1
9209 fi
9210
9211 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9212
9213 fi;
9214
9215 eval "$ac_cv_use_busyinfo"
9216 if test "$no_cache" != 1; then
9217 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9218 fi
9219
9220 if test "$wxUSE_BUSYINFO" = yes; then
9221 echo "$as_me:$LINENO: result: yes" >&5
9222 echo "${ECHO_T}yes" >&6
9223 else
9224 echo "$as_me:$LINENO: result: no" >&5
9225 echo "${ECHO_T}no" >&6
9226 fi
9227
9228
9229 enablestring=
9230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9231 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9232 no_cache=0
9233 # Check whether --enable-joystick or --disable-joystick was given.
9234 if test "${enable_joystick+set}" = set; then
9235 enableval="$enable_joystick"
9236
9237 if test "$enableval" = yes; then
9238 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9239 else
9240 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9241 fi
9242
9243 else
9244
9245 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9246 if test "x$LINE" != x ; then
9247 eval "DEFAULT_$LINE"
9248 else
9249 no_cache=1
9250 fi
9251
9252 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9253
9254 fi;
9255
9256 eval "$ac_cv_use_joystick"
9257 if test "$no_cache" != 1; then
9258 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9259 fi
9260
9261 if test "$wxUSE_JOYSTICK" = yes; then
9262 echo "$as_me:$LINENO: result: yes" >&5
9263 echo "${ECHO_T}yes" >&6
9264 else
9265 echo "$as_me:$LINENO: result: no" >&5
9266 echo "${ECHO_T}no" >&6
9267 fi
9268
9269
9270 enablestring=
9271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9272 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9273 no_cache=0
9274 # Check whether --enable-metafile or --disable-metafile was given.
9275 if test "${enable_metafile+set}" = set; then
9276 enableval="$enable_metafile"
9277
9278 if test "$enableval" = yes; then
9279 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9280 else
9281 ac_cv_use_metafile='wxUSE_METAFILE=no'
9282 fi
9283
9284 else
9285
9286 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9287 if test "x$LINE" != x ; then
9288 eval "DEFAULT_$LINE"
9289 else
9290 no_cache=1
9291 fi
9292
9293 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9294
9295 fi;
9296
9297 eval "$ac_cv_use_metafile"
9298 if test "$no_cache" != 1; then
9299 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9300 fi
9301
9302 if test "$wxUSE_METAFILE" = yes; then
9303 echo "$as_me:$LINENO: result: yes" >&5
9304 echo "${ECHO_T}yes" >&6
9305 else
9306 echo "$as_me:$LINENO: result: no" >&5
9307 echo "${ECHO_T}no" >&6
9308 fi
9309
9310
9311 enablestring=
9312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9313 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9314 no_cache=0
9315 # Check whether --enable-dragimage or --disable-dragimage was given.
9316 if test "${enable_dragimage+set}" = set; then
9317 enableval="$enable_dragimage"
9318
9319 if test "$enableval" = yes; then
9320 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9321 else
9322 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9323 fi
9324
9325 else
9326
9327 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9328 if test "x$LINE" != x ; then
9329 eval "DEFAULT_$LINE"
9330 else
9331 no_cache=1
9332 fi
9333
9334 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9335
9336 fi;
9337
9338 eval "$ac_cv_use_dragimage"
9339 if test "$no_cache" != 1; then
9340 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9341 fi
9342
9343 if test "$wxUSE_DRAGIMAGE" = yes; then
9344 echo "$as_me:$LINENO: result: yes" >&5
9345 echo "${ECHO_T}yes" >&6
9346 else
9347 echo "$as_me:$LINENO: result: no" >&5
9348 echo "${ECHO_T}no" >&6
9349 fi
9350
9351
9352 enablestring=
9353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9354 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9355 no_cache=0
9356 # Check whether --enable-accessibility or --disable-accessibility was given.
9357 if test "${enable_accessibility+set}" = set; then
9358 enableval="$enable_accessibility"
9359
9360 if test "$enableval" = yes; then
9361 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9362 else
9363 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9364 fi
9365
9366 else
9367
9368 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9369 if test "x$LINE" != x ; then
9370 eval "DEFAULT_$LINE"
9371 else
9372 no_cache=1
9373 fi
9374
9375 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9376
9377 fi;
9378
9379 eval "$ac_cv_use_accessibility"
9380 if test "$no_cache" != 1; then
9381 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9382 fi
9383
9384 if test "$wxUSE_ACCESSIBILITY" = yes; then
9385 echo "$as_me:$LINENO: result: yes" >&5
9386 echo "${ECHO_T}yes" >&6
9387 else
9388 echo "$as_me:$LINENO: result: no" >&5
9389 echo "${ECHO_T}no" >&6
9390 fi
9391
9392
9393
9394
9395 enablestring=
9396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9397 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9398 no_cache=0
9399 # Check whether --enable-palette or --disable-palette was given.
9400 if test "${enable_palette+set}" = set; then
9401 enableval="$enable_palette"
9402
9403 if test "$enableval" = yes; then
9404 ac_cv_use_palette='wxUSE_PALETTE=yes'
9405 else
9406 ac_cv_use_palette='wxUSE_PALETTE=no'
9407 fi
9408
9409 else
9410
9411 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9412 if test "x$LINE" != x ; then
9413 eval "DEFAULT_$LINE"
9414 else
9415 no_cache=1
9416 fi
9417
9418 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9419
9420 fi;
9421
9422 eval "$ac_cv_use_palette"
9423 if test "$no_cache" != 1; then
9424 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9425 fi
9426
9427 if test "$wxUSE_PALETTE" = yes; then
9428 echo "$as_me:$LINENO: result: yes" >&5
9429 echo "${ECHO_T}yes" >&6
9430 else
9431 echo "$as_me:$LINENO: result: no" >&5
9432 echo "${ECHO_T}no" >&6
9433 fi
9434
9435
9436 enablestring=
9437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9438 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9439 no_cache=0
9440 # Check whether --enable-image or --disable-image was given.
9441 if test "${enable_image+set}" = set; then
9442 enableval="$enable_image"
9443
9444 if test "$enableval" = yes; then
9445 ac_cv_use_image='wxUSE_IMAGE=yes'
9446 else
9447 ac_cv_use_image='wxUSE_IMAGE=no'
9448 fi
9449
9450 else
9451
9452 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9453 if test "x$LINE" != x ; then
9454 eval "DEFAULT_$LINE"
9455 else
9456 no_cache=1
9457 fi
9458
9459 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9460
9461 fi;
9462
9463 eval "$ac_cv_use_image"
9464 if test "$no_cache" != 1; then
9465 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9466 fi
9467
9468 if test "$wxUSE_IMAGE" = yes; then
9469 echo "$as_me:$LINENO: result: yes" >&5
9470 echo "${ECHO_T}yes" >&6
9471 else
9472 echo "$as_me:$LINENO: result: no" >&5
9473 echo "${ECHO_T}no" >&6
9474 fi
9475
9476
9477 enablestring=
9478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9479 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9480 no_cache=0
9481 # Check whether --enable-gif or --disable-gif was given.
9482 if test "${enable_gif+set}" = set; then
9483 enableval="$enable_gif"
9484
9485 if test "$enableval" = yes; then
9486 ac_cv_use_gif='wxUSE_GIF=yes'
9487 else
9488 ac_cv_use_gif='wxUSE_GIF=no'
9489 fi
9490
9491 else
9492
9493 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9494 if test "x$LINE" != x ; then
9495 eval "DEFAULT_$LINE"
9496 else
9497 no_cache=1
9498 fi
9499
9500 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9501
9502 fi;
9503
9504 eval "$ac_cv_use_gif"
9505 if test "$no_cache" != 1; then
9506 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9507 fi
9508
9509 if test "$wxUSE_GIF" = yes; then
9510 echo "$as_me:$LINENO: result: yes" >&5
9511 echo "${ECHO_T}yes" >&6
9512 else
9513 echo "$as_me:$LINENO: result: no" >&5
9514 echo "${ECHO_T}no" >&6
9515 fi
9516
9517
9518 enablestring=
9519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9520 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9521 no_cache=0
9522 # Check whether --enable-pcx or --disable-pcx was given.
9523 if test "${enable_pcx+set}" = set; then
9524 enableval="$enable_pcx"
9525
9526 if test "$enableval" = yes; then
9527 ac_cv_use_pcx='wxUSE_PCX=yes'
9528 else
9529 ac_cv_use_pcx='wxUSE_PCX=no'
9530 fi
9531
9532 else
9533
9534 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9535 if test "x$LINE" != x ; then
9536 eval "DEFAULT_$LINE"
9537 else
9538 no_cache=1
9539 fi
9540
9541 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9542
9543 fi;
9544
9545 eval "$ac_cv_use_pcx"
9546 if test "$no_cache" != 1; then
9547 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9548 fi
9549
9550 if test "$wxUSE_PCX" = yes; then
9551 echo "$as_me:$LINENO: result: yes" >&5
9552 echo "${ECHO_T}yes" >&6
9553 else
9554 echo "$as_me:$LINENO: result: no" >&5
9555 echo "${ECHO_T}no" >&6
9556 fi
9557
9558
9559 enablestring=
9560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9561 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9562 no_cache=0
9563 # Check whether --enable-iff or --disable-iff was given.
9564 if test "${enable_iff+set}" = set; then
9565 enableval="$enable_iff"
9566
9567 if test "$enableval" = yes; then
9568 ac_cv_use_iff='wxUSE_IFF=yes'
9569 else
9570 ac_cv_use_iff='wxUSE_IFF=no'
9571 fi
9572
9573 else
9574
9575 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9576 if test "x$LINE" != x ; then
9577 eval "DEFAULT_$LINE"
9578 else
9579 no_cache=1
9580 fi
9581
9582 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9583
9584 fi;
9585
9586 eval "$ac_cv_use_iff"
9587 if test "$no_cache" != 1; then
9588 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9589 fi
9590
9591 if test "$wxUSE_IFF" = yes; then
9592 echo "$as_me:$LINENO: result: yes" >&5
9593 echo "${ECHO_T}yes" >&6
9594 else
9595 echo "$as_me:$LINENO: result: no" >&5
9596 echo "${ECHO_T}no" >&6
9597 fi
9598
9599
9600 enablestring=
9601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9602 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9603 no_cache=0
9604 # Check whether --enable-pnm or --disable-pnm was given.
9605 if test "${enable_pnm+set}" = set; then
9606 enableval="$enable_pnm"
9607
9608 if test "$enableval" = yes; then
9609 ac_cv_use_pnm='wxUSE_PNM=yes'
9610 else
9611 ac_cv_use_pnm='wxUSE_PNM=no'
9612 fi
9613
9614 else
9615
9616 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9617 if test "x$LINE" != x ; then
9618 eval "DEFAULT_$LINE"
9619 else
9620 no_cache=1
9621 fi
9622
9623 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9624
9625 fi;
9626
9627 eval "$ac_cv_use_pnm"
9628 if test "$no_cache" != 1; then
9629 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9630 fi
9631
9632 if test "$wxUSE_PNM" = yes; then
9633 echo "$as_me:$LINENO: result: yes" >&5
9634 echo "${ECHO_T}yes" >&6
9635 else
9636 echo "$as_me:$LINENO: result: no" >&5
9637 echo "${ECHO_T}no" >&6
9638 fi
9639
9640
9641 enablestring=
9642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9643 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9644 no_cache=0
9645 # Check whether --enable-xpm or --disable-xpm was given.
9646 if test "${enable_xpm+set}" = set; then
9647 enableval="$enable_xpm"
9648
9649 if test "$enableval" = yes; then
9650 ac_cv_use_xpm='wxUSE_XPM=yes'
9651 else
9652 ac_cv_use_xpm='wxUSE_XPM=no'
9653 fi
9654
9655 else
9656
9657 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9658 if test "x$LINE" != x ; then
9659 eval "DEFAULT_$LINE"
9660 else
9661 no_cache=1
9662 fi
9663
9664 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9665
9666 fi;
9667
9668 eval "$ac_cv_use_xpm"
9669 if test "$no_cache" != 1; then
9670 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9671 fi
9672
9673 if test "$wxUSE_XPM" = yes; then
9674 echo "$as_me:$LINENO: result: yes" >&5
9675 echo "${ECHO_T}yes" >&6
9676 else
9677 echo "$as_me:$LINENO: result: no" >&5
9678 echo "${ECHO_T}no" >&6
9679 fi
9680
9681
9682 enablestring=
9683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9684 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9685 no_cache=0
9686 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9687 if test "${enable_ico_cur+set}" = set; then
9688 enableval="$enable_ico_cur"
9689
9690 if test "$enableval" = yes; then
9691 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9692 else
9693 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9694 fi
9695
9696 else
9697
9698 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9699 if test "x$LINE" != x ; then
9700 eval "DEFAULT_$LINE"
9701 else
9702 no_cache=1
9703 fi
9704
9705 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9706
9707 fi;
9708
9709 eval "$ac_cv_use_ico_cur"
9710 if test "$no_cache" != 1; then
9711 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9712 fi
9713
9714 if test "$wxUSE_ICO_CUR" = yes; then
9715 echo "$as_me:$LINENO: result: yes" >&5
9716 echo "${ECHO_T}yes" >&6
9717 else
9718 echo "$as_me:$LINENO: result: no" >&5
9719 echo "${ECHO_T}no" >&6
9720 fi
9721
9722
9723 fi
9724
9725
9726
9727 enablestring=
9728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9729 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9730 no_cache=0
9731 # Check whether --enable-official_build or --disable-official_build was given.
9732 if test "${enable_official_build+set}" = set; then
9733 enableval="$enable_official_build"
9734
9735 if test "$enableval" = yes; then
9736 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9737 else
9738 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9739 fi
9740
9741 else
9742
9743 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9744 if test "x$LINE" != x ; then
9745 eval "DEFAULT_$LINE"
9746 else
9747 no_cache=1
9748 fi
9749
9750 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9751
9752 fi;
9753
9754 eval "$ac_cv_use_official_build"
9755 if test "$no_cache" != 1; then
9756 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9757 fi
9758
9759 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9760 echo "$as_me:$LINENO: result: yes" >&5
9761 echo "${ECHO_T}yes" >&6
9762 else
9763 echo "$as_me:$LINENO: result: no" >&5
9764 echo "${ECHO_T}no" >&6
9765 fi
9766
9767 # Check whether --enable-vendor or --disable-vendor was given.
9768 if test "${enable_vendor+set}" = set; then
9769 enableval="$enable_vendor"
9770 VENDOR="$enableval"
9771 fi;
9772 if test "x$VENDOR" = "x"; then
9773 VENDOR="custom"
9774 fi
9775
9776 case "${host}" in
9777 *-pc-os2_emx | *-pc-os2-emx )
9778 PATH_IFS=';'
9779 ;;
9780 *)
9781 PATH_IFS=':'
9782 ;;
9783 esac
9784
9785
9786
9787 echo "saving argument cache $wx_arg_cache_file"
9788 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9789
9790
9791
9792 echo "$as_me:$LINENO: checking for toolkit" >&5
9793 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9794
9795 # In Wine, we need to default to MSW, not GTK or MOTIF
9796 if test "$wxUSE_WINE" = "yes"; then
9797 DEFAULT_DEFAULT_wxUSE_GTK=0
9798 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9799 DEFAULT_DEFAULT_wxUSE_MSW=1
9800 wxUSE_SHARED=no
9801 fi
9802
9803 if test "$wxUSE_GUI" = "yes"; then
9804
9805 if test "$USE_BEOS" = 1; then
9806 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9807 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9808 { (exit 1); exit 1; }; }
9809 fi
9810
9811 if test "$TOOLKIT_GIVEN" = 1; then
9812 for toolkit in `echo $ALL_TOOLKITS`; do
9813 var=wxUSE_$toolkit
9814 eval "value=\$${var}"
9815 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9816 done
9817 else
9818 for toolkit in `echo $ALL_TOOLKITS`; do
9819 if test "$has_toolkit_in_cache" != 1; then
9820 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9821 else
9822 var=DEFAULT_wxUSE_$toolkit
9823 fi
9824 eval "wxUSE_$toolkit=\$${var}"
9825 done
9826 fi
9827
9828 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9829 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9830 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9831
9832 case "${host}" in
9833 *-pc-os2_emx | *-pc-os2-emx )
9834 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9835 esac
9836
9837 case "$NUM_TOOLKITS" in
9838 1)
9839 ;;
9840 0)
9841 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9842 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9843 { (exit 1); exit 1; }; }
9844 ;;
9845 *)
9846 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9847 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9848 { (exit 1); exit 1; }; }
9849 esac
9850
9851 for toolkit in `echo $ALL_TOOLKITS`; do
9852 var=wxUSE_$toolkit
9853 eval "value=\$${var}"
9854 if test "x$value" != x; then
9855 cache_var=CACHE_$toolkit
9856 eval "cache=\$${cache_var}"
9857 if test "$cache" = 1; then
9858 echo "$var=$value" >> ${wx_arg_cache_file}
9859 fi
9860 if test "$value" = 1; then
9861 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9862 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9863 echo "${ECHO_T}$toolkit_echo" >&6
9864 fi
9865 fi
9866 done
9867 else
9868 if test "x$host_alias" != "x"; then
9869 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9870 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9871 else
9872 echo "$as_me:$LINENO: result: base only" >&5
9873 echo "${ECHO_T}base only" >&6
9874 fi
9875 fi
9876
9877 wants_win32=0
9878 doesnt_want_win32=0
9879 case "${host}" in
9880 *-*-cygwin*)
9881 if test "$wxUSE_MSW" = 1 ; then
9882 wants_win32=1
9883 else
9884 doesnt_want_win32=1
9885 fi
9886 ;;
9887 *-*-mingw*)
9888 wants_win32=1
9889 ;;
9890 esac
9891
9892 if test "$wxUSE_WINE" = "yes"; then
9893 wants_win32=1
9894 CC=winegcc
9895 CXX=wineg++
9896 RESCOMP=wrc
9897 LDFLAGS_GUI="-mwindows"
9898 fi
9899
9900 if test "$wants_win32" = 1 ; then
9901 USE_UNIX=0
9902 USE_WIN32=1
9903 cat >>confdefs.h <<\_ACEOF
9904 #define __WIN32__ 1
9905 _ACEOF
9906
9907 cat >>confdefs.h <<\_ACEOF
9908 #define __WIN95__ 1
9909 _ACEOF
9910
9911 cat >>confdefs.h <<\_ACEOF
9912 #define __WINDOWS__ 1
9913 _ACEOF
9914
9915 cat >>confdefs.h <<\_ACEOF
9916 #define __GNUWIN32__ 1
9917 _ACEOF
9918
9919 cat >>confdefs.h <<\_ACEOF
9920 #define STRICT 1
9921 _ACEOF
9922
9923 cat >>confdefs.h <<\_ACEOF
9924 #define WINVER 0x0400
9925 _ACEOF
9926
9927 fi
9928 if test "$doesnt_want_win32" = 1 ; then
9929 USE_UNIX=1
9930 USE_WIN32=0
9931 fi
9932
9933 if test "$USE_UNIX" = 1 ; then
9934 wxUSE_UNIX=yes
9935 cat >>confdefs.h <<\_ACEOF
9936 #define __UNIX__ 1
9937 _ACEOF
9938
9939 fi
9940
9941
9942 cat >confcache <<\_ACEOF
9943 # This file is a shell script that caches the results of configure
9944 # tests run on this system so they can be shared between configure
9945 # scripts and configure runs, see configure's option --config-cache.
9946 # It is not useful on other systems. If it contains results you don't
9947 # want to keep, you may remove or edit it.
9948 #
9949 # config.status only pays attention to the cache file if you give it
9950 # the --recheck option to rerun configure.
9951 #
9952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9954 # following values.
9955
9956 _ACEOF
9957
9958 # The following way of writing the cache mishandles newlines in values,
9959 # but we know of no workaround that is simple, portable, and efficient.
9960 # So, don't put newlines in cache variables' values.
9961 # Ultrix sh set writes to stderr and can't be redirected directly,
9962 # and sets the high bit in the cache file unless we assign to the vars.
9963 {
9964 (set) 2>&1 |
9965 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9966 *ac_space=\ *)
9967 # `set' does not quote correctly, so add quotes (double-quote
9968 # substitution turns \\\\ into \\, and sed turns \\ into \).
9969 sed -n \
9970 "s/'/'\\\\''/g;
9971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9972 ;;
9973 *)
9974 # `set' quotes correctly as required by POSIX, so do not add quotes.
9975 sed -n \
9976 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9977 ;;
9978 esac;
9979 } |
9980 sed '
9981 t clear
9982 : clear
9983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9984 t end
9985 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9986 : end' >>confcache
9987 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9988 if test -w $cache_file; then
9989 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9990 cat confcache >$cache_file
9991 else
9992 echo "not updating unwritable cache $cache_file"
9993 fi
9994 fi
9995 rm -f confcache
9996
9997 if test "$build" != "$host" ; then
9998 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
9999 CC=$host_alias-gcc
10000 CXX=$host_alias-c++
10001 AR=$host_alias-ar
10002 RANLIB=$host_alias-ranlib
10003 DLLTOOL=$host_alias-dlltool
10004 RESCOMP=$host_alias-windres
10005 LD=$host_alias-ld
10006 NM=$host_alias-nm
10007 STRIP=$host_alias-strip
10008 else
10009 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10010 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10011 { (exit 1); exit 1; }; }
10012 fi
10013 fi
10014
10015 CFLAGS=${CFLAGS:=}
10016 ac_ext=c
10017 ac_cpp='$CPP $CPPFLAGS'
10018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10021 if test -n "$ac_tool_prefix"; then
10022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10023 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10024 echo "$as_me:$LINENO: checking for $ac_word" >&5
10025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10026 if test "${ac_cv_prog_CC+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029 if test -n "$CC"; then
10030 ac_cv_prog_CC="$CC" # Let the user override the test.
10031 else
10032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033 for as_dir in $PATH
10034 do
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10039 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10041 break 2
10042 fi
10043 done
10044 done
10045
10046 fi
10047 fi
10048 CC=$ac_cv_prog_CC
10049 if test -n "$CC"; then
10050 echo "$as_me:$LINENO: result: $CC" >&5
10051 echo "${ECHO_T}$CC" >&6
10052 else
10053 echo "$as_me:$LINENO: result: no" >&5
10054 echo "${ECHO_T}no" >&6
10055 fi
10056
10057 fi
10058 if test -z "$ac_cv_prog_CC"; then
10059 ac_ct_CC=$CC
10060 # Extract the first word of "gcc", so it can be a program name with args.
10061 set dummy gcc; ac_word=$2
10062 echo "$as_me:$LINENO: checking for $ac_word" >&5
10063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 else
10067 if test -n "$ac_ct_CC"; then
10068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10069 else
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10072 do
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10077 ac_cv_prog_ac_ct_CC="gcc"
10078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10079 break 2
10080 fi
10081 done
10082 done
10083
10084 fi
10085 fi
10086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10087 if test -n "$ac_ct_CC"; then
10088 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10089 echo "${ECHO_T}$ac_ct_CC" >&6
10090 else
10091 echo "$as_me:$LINENO: result: no" >&5
10092 echo "${ECHO_T}no" >&6
10093 fi
10094
10095 CC=$ac_ct_CC
10096 else
10097 CC="$ac_cv_prog_CC"
10098 fi
10099
10100 if test -z "$CC"; then
10101 if test -n "$ac_tool_prefix"; then
10102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10103 set dummy ${ac_tool_prefix}cc; ac_word=$2
10104 echo "$as_me:$LINENO: checking for $ac_word" >&5
10105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10106 if test "${ac_cv_prog_CC+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109 if test -n "$CC"; then
10110 ac_cv_prog_CC="$CC" # Let the user override the test.
10111 else
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10114 do
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10119 ac_cv_prog_CC="${ac_tool_prefix}cc"
10120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 break 2
10122 fi
10123 done
10124 done
10125
10126 fi
10127 fi
10128 CC=$ac_cv_prog_CC
10129 if test -n "$CC"; then
10130 echo "$as_me:$LINENO: result: $CC" >&5
10131 echo "${ECHO_T}$CC" >&6
10132 else
10133 echo "$as_me:$LINENO: result: no" >&5
10134 echo "${ECHO_T}no" >&6
10135 fi
10136
10137 fi
10138 if test -z "$ac_cv_prog_CC"; then
10139 ac_ct_CC=$CC
10140 # Extract the first word of "cc", so it can be a program name with args.
10141 set dummy cc; ac_word=$2
10142 echo "$as_me:$LINENO: checking for $ac_word" >&5
10143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147 if test -n "$ac_ct_CC"; then
10148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10149 else
10150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151 for as_dir in $PATH
10152 do
10153 IFS=$as_save_IFS
10154 test -z "$as_dir" && as_dir=.
10155 for ac_exec_ext in '' $ac_executable_extensions; do
10156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10157 ac_cv_prog_ac_ct_CC="cc"
10158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10159 break 2
10160 fi
10161 done
10162 done
10163
10164 fi
10165 fi
10166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10167 if test -n "$ac_ct_CC"; then
10168 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10169 echo "${ECHO_T}$ac_ct_CC" >&6
10170 else
10171 echo "$as_me:$LINENO: result: no" >&5
10172 echo "${ECHO_T}no" >&6
10173 fi
10174
10175 CC=$ac_ct_CC
10176 else
10177 CC="$ac_cv_prog_CC"
10178 fi
10179
10180 fi
10181 if test -z "$CC"; then
10182 # Extract the first word of "cc", so it can be a program name with args.
10183 set dummy cc; ac_word=$2
10184 echo "$as_me:$LINENO: checking for $ac_word" >&5
10185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10186 if test "${ac_cv_prog_CC+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189 if test -n "$CC"; then
10190 ac_cv_prog_CC="$CC" # Let the user override the test.
10191 else
10192 ac_prog_rejected=no
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10195 do
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10201 ac_prog_rejected=yes
10202 continue
10203 fi
10204 ac_cv_prog_CC="cc"
10205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 break 2
10207 fi
10208 done
10209 done
10210
10211 if test $ac_prog_rejected = yes; then
10212 # We found a bogon in the path, so make sure we never use it.
10213 set dummy $ac_cv_prog_CC
10214 shift
10215 if test $# != 0; then
10216 # We chose a different compiler from the bogus one.
10217 # However, it has the same basename, so the bogon will be chosen
10218 # first if we set CC to just the basename; use the full file name.
10219 shift
10220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10221 fi
10222 fi
10223 fi
10224 fi
10225 CC=$ac_cv_prog_CC
10226 if test -n "$CC"; then
10227 echo "$as_me:$LINENO: result: $CC" >&5
10228 echo "${ECHO_T}$CC" >&6
10229 else
10230 echo "$as_me:$LINENO: result: no" >&5
10231 echo "${ECHO_T}no" >&6
10232 fi
10233
10234 fi
10235 if test -z "$CC"; then
10236 if test -n "$ac_tool_prefix"; then
10237 for ac_prog in cl
10238 do
10239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10241 echo "$as_me:$LINENO: checking for $ac_word" >&5
10242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10243 if test "${ac_cv_prog_CC+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246 if test -n "$CC"; then
10247 ac_cv_prog_CC="$CC" # Let the user override the test.
10248 else
10249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10250 for as_dir in $PATH
10251 do
10252 IFS=$as_save_IFS
10253 test -z "$as_dir" && as_dir=.
10254 for ac_exec_ext in '' $ac_executable_extensions; do
10255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10256 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10258 break 2
10259 fi
10260 done
10261 done
10262
10263 fi
10264 fi
10265 CC=$ac_cv_prog_CC
10266 if test -n "$CC"; then
10267 echo "$as_me:$LINENO: result: $CC" >&5
10268 echo "${ECHO_T}$CC" >&6
10269 else
10270 echo "$as_me:$LINENO: result: no" >&5
10271 echo "${ECHO_T}no" >&6
10272 fi
10273
10274 test -n "$CC" && break
10275 done
10276 fi
10277 if test -z "$CC"; then
10278 ac_ct_CC=$CC
10279 for ac_prog in cl
10280 do
10281 # Extract the first word of "$ac_prog", so it can be a program name with args.
10282 set dummy $ac_prog; ac_word=$2
10283 echo "$as_me:$LINENO: checking for $ac_word" >&5
10284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10285 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288 if test -n "$ac_ct_CC"; then
10289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10290 else
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10293 do
10294 IFS=$as_save_IFS
10295 test -z "$as_dir" && as_dir=.
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10298 ac_cv_prog_ac_ct_CC="$ac_prog"
10299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10300 break 2
10301 fi
10302 done
10303 done
10304
10305 fi
10306 fi
10307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10308 if test -n "$ac_ct_CC"; then
10309 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10310 echo "${ECHO_T}$ac_ct_CC" >&6
10311 else
10312 echo "$as_me:$LINENO: result: no" >&5
10313 echo "${ECHO_T}no" >&6
10314 fi
10315
10316 test -n "$ac_ct_CC" && break
10317 done
10318
10319 CC=$ac_ct_CC
10320 fi
10321
10322 fi
10323
10324
10325 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10326 See \`config.log' for more details." >&5
10327 echo "$as_me: error: no acceptable C compiler found in \$PATH
10328 See \`config.log' for more details." >&2;}
10329 { (exit 1); exit 1; }; }
10330
10331 # Provide some information about the compiler.
10332 echo "$as_me:$LINENO:" \
10333 "checking for C compiler version" >&5
10334 ac_compiler=`set X $ac_compile; echo $2`
10335 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10336 (eval $ac_compiler --version </dev/null >&5) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }
10340 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10341 (eval $ac_compiler -v </dev/null >&5) 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }
10345 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10346 (eval $ac_compiler -V </dev/null >&5) 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }
10350
10351 cat >conftest.$ac_ext <<_ACEOF
10352 #line $LINENO "configure"
10353 /* confdefs.h. */
10354 _ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h. */
10358
10359 int
10360 main ()
10361 {
10362
10363 ;
10364 return 0;
10365 }
10366 _ACEOF
10367 ac_clean_files_save=$ac_clean_files
10368 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10369 # Try to create an executable without -o first, disregard a.out.
10370 # It will help us diagnose broken compilers, and finding out an intuition
10371 # of exeext.
10372 echo "$as_me:$LINENO: checking for C compiler default output" >&5
10373 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10374 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10376 (eval $ac_link_default) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; then
10380 # Find the output, starting from the most likely. This scheme is
10381 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10382 # resort.
10383
10384 # Be careful to initialize this variable, since it used to be cached.
10385 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10386 ac_cv_exeext=
10387 # b.out is created by i960 compilers.
10388 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10389 do
10390 test -f "$ac_file" || continue
10391 case $ac_file in
10392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10393 ;;
10394 conftest.$ac_ext )
10395 # This is the source file.
10396 ;;
10397 [ab].out )
10398 # We found the default executable, but exeext='' is most
10399 # certainly right.
10400 break;;
10401 *.* )
10402 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10403 # FIXME: I believe we export ac_cv_exeext for Libtool,
10404 # but it would be cool to find out if it's true. Does anybody
10405 # maintain Libtool? --akim.
10406 export ac_cv_exeext
10407 break;;
10408 * )
10409 break;;
10410 esac
10411 done
10412 else
10413 echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.$ac_ext >&5
10415
10416 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10417 See \`config.log' for more details." >&5
10418 echo "$as_me: error: C compiler cannot create executables
10419 See \`config.log' for more details." >&2;}
10420 { (exit 77); exit 77; }; }
10421 fi
10422
10423 ac_exeext=$ac_cv_exeext
10424 echo "$as_me:$LINENO: result: $ac_file" >&5
10425 echo "${ECHO_T}$ac_file" >&6
10426
10427 # Check the compiler produces executables we can run. If not, either
10428 # the compiler is broken, or we cross compile.
10429 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10430 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10431 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10432 # If not cross compiling, check that we can run a simple program.
10433 if test "$cross_compiling" != yes; then
10434 if { ac_try='./$ac_file'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
10440 cross_compiling=no
10441 else
10442 if test "$cross_compiling" = maybe; then
10443 cross_compiling=yes
10444 else
10445 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10446 If you meant to cross compile, use \`--host'.
10447 See \`config.log' for more details." >&5
10448 echo "$as_me: error: cannot run C compiled programs.
10449 If you meant to cross compile, use \`--host'.
10450 See \`config.log' for more details." >&2;}
10451 { (exit 1); exit 1; }; }
10452 fi
10453 fi
10454 fi
10455 echo "$as_me:$LINENO: result: yes" >&5
10456 echo "${ECHO_T}yes" >&6
10457
10458 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10459 ac_clean_files=$ac_clean_files_save
10460 # Check the compiler produces executables we can run. If not, either
10461 # the compiler is broken, or we cross compile.
10462 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10463 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10464 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10465 echo "${ECHO_T}$cross_compiling" >&6
10466
10467 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10468 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10470 (eval $ac_link) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; then
10474 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10475 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10476 # work properly (i.e., refer to `conftest.exe'), while it won't with
10477 # `rm'.
10478 for ac_file in conftest.exe conftest conftest.*; do
10479 test -f "$ac_file" || continue
10480 case $ac_file in
10481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10482 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10483 export ac_cv_exeext
10484 break;;
10485 * ) break;;
10486 esac
10487 done
10488 else
10489 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10490 See \`config.log' for more details." >&5
10491 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10492 See \`config.log' for more details." >&2;}
10493 { (exit 1); exit 1; }; }
10494 fi
10495
10496 rm -f conftest$ac_cv_exeext
10497 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10498 echo "${ECHO_T}$ac_cv_exeext" >&6
10499
10500 rm -f conftest.$ac_ext
10501 EXEEXT=$ac_cv_exeext
10502 ac_exeext=$EXEEXT
10503 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10504 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10505 if test "${ac_cv_objext+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508 cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 /* confdefs.h. */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515
10516 int
10517 main ()
10518 {
10519
10520 ;
10521 return 0;
10522 }
10523 _ACEOF
10524 rm -f conftest.o conftest.obj
10525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526 (eval $ac_compile) 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; then
10530 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10531 case $ac_file in
10532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10533 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10534 break;;
10535 esac
10536 done
10537 else
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10540
10541 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10542 See \`config.log' for more details." >&5
10543 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10544 See \`config.log' for more details." >&2;}
10545 { (exit 1); exit 1; }; }
10546 fi
10547
10548 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10549 fi
10550 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10551 echo "${ECHO_T}$ac_cv_objext" >&6
10552 OBJEXT=$ac_cv_objext
10553 ac_objext=$OBJEXT
10554 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10555 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10556 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 else
10559 cat >conftest.$ac_ext <<_ACEOF
10560 #line $LINENO "configure"
10561 /* confdefs.h. */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566
10567 int
10568 main ()
10569 {
10570 #ifndef __GNUC__
10571 choke me
10572 #endif
10573
10574 ;
10575 return 0;
10576 }
10577 _ACEOF
10578 rm -f conftest.$ac_objext
10579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10580 (eval $ac_compile) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
10584 { ac_try='test -s conftest.$ac_objext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_compiler_gnu=yes
10591 else
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10594
10595 ac_compiler_gnu=no
10596 fi
10597 rm -f conftest.$ac_objext conftest.$ac_ext
10598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10599
10600 fi
10601 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10602 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10603 GCC=`test $ac_compiler_gnu = yes && echo yes`
10604 ac_test_CFLAGS=${CFLAGS+set}
10605 ac_save_CFLAGS=$CFLAGS
10606 CFLAGS="-g"
10607 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10608 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10609 if test "${ac_cv_prog_cc_g+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 cat >conftest.$ac_ext <<_ACEOF
10613 #line $LINENO "configure"
10614 /* confdefs.h. */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619
10620 int
10621 main ()
10622 {
10623
10624 ;
10625 return 0;
10626 }
10627 _ACEOF
10628 rm -f conftest.$ac_objext
10629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10630 (eval $ac_compile) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } &&
10634 { ac_try='test -s conftest.$ac_objext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_cv_prog_cc_g=yes
10641 else
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10644
10645 ac_cv_prog_cc_g=no
10646 fi
10647 rm -f conftest.$ac_objext conftest.$ac_ext
10648 fi
10649 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10650 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10651 if test "$ac_test_CFLAGS" = set; then
10652 CFLAGS=$ac_save_CFLAGS
10653 elif test $ac_cv_prog_cc_g = yes; then
10654 if test "$GCC" = yes; then
10655 CFLAGS="-g -O2"
10656 else
10657 CFLAGS="-g"
10658 fi
10659 else
10660 if test "$GCC" = yes; then
10661 CFLAGS="-O2"
10662 else
10663 CFLAGS=
10664 fi
10665 fi
10666 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10667 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10668 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671 ac_cv_prog_cc_stdc=no
10672 ac_save_CC=$CC
10673 cat >conftest.$ac_ext <<_ACEOF
10674 #line $LINENO "configure"
10675 /* confdefs.h. */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 #include <stdarg.h>
10681 #include <stdio.h>
10682 #include <sys/types.h>
10683 #include <sys/stat.h>
10684 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10685 struct buf { int x; };
10686 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10687 static char *e (p, i)
10688 char **p;
10689 int i;
10690 {
10691 return p[i];
10692 }
10693 static char *f (char * (*g) (char **, int), char **p, ...)
10694 {
10695 char *s;
10696 va_list v;
10697 va_start (v,p);
10698 s = g (p, va_arg (v,int));
10699 va_end (v);
10700 return s;
10701 }
10702 int test (int i, double x);
10703 struct s1 {int (*f) (int a);};
10704 struct s2 {int (*f) (double a);};
10705 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10706 int argc;
10707 char **argv;
10708 int
10709 main ()
10710 {
10711 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10712 ;
10713 return 0;
10714 }
10715 _ACEOF
10716 # Don't try gcc -ansi; that turns off useful extensions and
10717 # breaks some systems' header files.
10718 # AIX -qlanglvl=ansi
10719 # Ultrix and OSF/1 -std1
10720 # HP-UX 10.20 and later -Ae
10721 # HP-UX older versions -Aa -D_HPUX_SOURCE
10722 # SVR4 -Xc -D__EXTENSIONS__
10723 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10724 do
10725 CC="$ac_save_CC $ac_arg"
10726 rm -f conftest.$ac_objext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10728 (eval $ac_compile) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
10732 { ac_try='test -s conftest.$ac_objext'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_prog_cc_stdc=$ac_arg
10739 break
10740 else
10741 echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10743
10744 fi
10745 rm -f conftest.$ac_objext
10746 done
10747 rm -f conftest.$ac_ext conftest.$ac_objext
10748 CC=$ac_save_CC
10749
10750 fi
10751
10752 case "x$ac_cv_prog_cc_stdc" in
10753 x|xno)
10754 echo "$as_me:$LINENO: result: none needed" >&5
10755 echo "${ECHO_T}none needed" >&6 ;;
10756 *)
10757 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10758 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10759 CC="$CC $ac_cv_prog_cc_stdc" ;;
10760 esac
10761
10762 # Some people use a C++ compiler to compile C. Since we use `exit',
10763 # in C++ we need to declare it. In case someone uses the same compiler
10764 # for both compiling C and C++ we need to have the C++ compiler decide
10765 # the declaration of exit, since it's the most demanding environment.
10766 cat >conftest.$ac_ext <<_ACEOF
10767 #ifndef __cplusplus
10768 choke me
10769 #endif
10770 _ACEOF
10771 rm -f conftest.$ac_objext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773 (eval $ac_compile) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
10777 { ac_try='test -s conftest.$ac_objext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 for ac_declaration in \
10784 '' \
10785 'extern "C" void std::exit (int) throw (); using std::exit;' \
10786 'extern "C" void std::exit (int); using std::exit;' \
10787 'extern "C" void exit (int) throw ();' \
10788 'extern "C" void exit (int);' \
10789 'void exit (int);'
10790 do
10791 cat >conftest.$ac_ext <<_ACEOF
10792 #line $LINENO "configure"
10793 /* confdefs.h. */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 $ac_declaration
10799 #include <stdlib.h>
10800 int
10801 main ()
10802 {
10803 exit (42);
10804 ;
10805 return 0;
10806 }
10807 _ACEOF
10808 rm -f conftest.$ac_objext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810 (eval $ac_compile) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -s conftest.$ac_objext'
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10820 :
10821 else
10822 echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10824
10825 continue
10826 fi
10827 rm -f conftest.$ac_objext conftest.$ac_ext
10828 cat >conftest.$ac_ext <<_ACEOF
10829 #line $LINENO "configure"
10830 /* confdefs.h. */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10835 $ac_declaration
10836 int
10837 main ()
10838 {
10839 exit (42);
10840 ;
10841 return 0;
10842 }
10843 _ACEOF
10844 rm -f conftest.$ac_objext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10846 (eval $ac_compile) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } &&
10850 { ac_try='test -s conftest.$ac_objext'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 break
10857 else
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10860
10861 fi
10862 rm -f conftest.$ac_objext conftest.$ac_ext
10863 done
10864 rm -f conftest*
10865 if test -n "$ac_declaration"; then
10866 echo '#ifdef __cplusplus' >>confdefs.h
10867 echo $ac_declaration >>confdefs.h
10868 echo '#endif' >>confdefs.h
10869 fi
10870
10871 else
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10874
10875 fi
10876 rm -f conftest.$ac_objext conftest.$ac_ext
10877 ac_ext=c
10878 ac_cpp='$CPP $CPPFLAGS'
10879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10882
10883
10884
10885 ac_ext=c
10886 ac_cpp='$CPP $CPPFLAGS'
10887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10890 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10891 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10892 # On Suns, sometimes $CPP names a directory.
10893 if test -n "$CPP" && test -d "$CPP"; then
10894 CPP=
10895 fi
10896 if test -z "$CPP"; then
10897 if test "${ac_cv_prog_CPP+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10899 else
10900 # Double quotes because CPP needs to be expanded
10901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10902 do
10903 ac_preproc_ok=false
10904 for ac_c_preproc_warn_flag in '' yes
10905 do
10906 # Use a header file that comes with gcc, so configuring glibc
10907 # with a fresh cross-compiler works.
10908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10909 # <limits.h> exists even on freestanding compilers.
10910 # On the NeXT, cc -E runs the code through the compiler's parser,
10911 # not just through cpp. "Syntax error" is here to catch this case.
10912 cat >conftest.$ac_ext <<_ACEOF
10913 #line $LINENO "configure"
10914 /* confdefs.h. */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919 #ifdef __STDC__
10920 # include <limits.h>
10921 #else
10922 # include <assert.h>
10923 #endif
10924 Syntax error
10925 _ACEOF
10926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } >/dev/null; then
10934 if test -s conftest.err; then
10935 ac_cpp_err=$ac_c_preproc_warn_flag
10936 else
10937 ac_cpp_err=
10938 fi
10939 else
10940 ac_cpp_err=yes
10941 fi
10942 if test -z "$ac_cpp_err"; then
10943 :
10944 else
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948 # Broken: fails on valid input.
10949 continue
10950 fi
10951 rm -f conftest.err conftest.$ac_ext
10952
10953 # OK, works on sane cases. Now check whether non-existent headers
10954 # can be detected and how.
10955 cat >conftest.$ac_ext <<_ACEOF
10956 #line $LINENO "configure"
10957 /* confdefs.h. */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 #include <ac_nonexistent.h>
10963 _ACEOF
10964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10965 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
10972 if test -s conftest.err; then
10973 ac_cpp_err=$ac_c_preproc_warn_flag
10974 else
10975 ac_cpp_err=
10976 fi
10977 else
10978 ac_cpp_err=yes
10979 fi
10980 if test -z "$ac_cpp_err"; then
10981 # Broken: success on invalid input.
10982 continue
10983 else
10984 echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10986
10987 # Passes both tests.
10988 ac_preproc_ok=:
10989 break
10990 fi
10991 rm -f conftest.err conftest.$ac_ext
10992
10993 done
10994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10995 rm -f conftest.err conftest.$ac_ext
10996 if $ac_preproc_ok; then
10997 break
10998 fi
10999
11000 done
11001 ac_cv_prog_CPP=$CPP
11002
11003 fi
11004 CPP=$ac_cv_prog_CPP
11005 else
11006 ac_cv_prog_CPP=$CPP
11007 fi
11008 echo "$as_me:$LINENO: result: $CPP" >&5
11009 echo "${ECHO_T}$CPP" >&6
11010 ac_preproc_ok=false
11011 for ac_c_preproc_warn_flag in '' yes
11012 do
11013 # Use a header file that comes with gcc, so configuring glibc
11014 # with a fresh cross-compiler works.
11015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11016 # <limits.h> exists even on freestanding compilers.
11017 # On the NeXT, cc -E runs the code through the compiler's parser,
11018 # not just through cpp. "Syntax error" is here to catch this case.
11019 cat >conftest.$ac_ext <<_ACEOF
11020 #line $LINENO "configure"
11021 /* confdefs.h. */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 #ifdef __STDC__
11027 # include <limits.h>
11028 #else
11029 # include <assert.h>
11030 #endif
11031 Syntax error
11032 _ACEOF
11033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11035 ac_status=$?
11036 grep -v '^ *+' conftest.er1 >conftest.err
11037 rm -f conftest.er1
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } >/dev/null; then
11041 if test -s conftest.err; then
11042 ac_cpp_err=$ac_c_preproc_warn_flag
11043 else
11044 ac_cpp_err=
11045 fi
11046 else
11047 ac_cpp_err=yes
11048 fi
11049 if test -z "$ac_cpp_err"; then
11050 :
11051 else
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 # Broken: fails on valid input.
11056 continue
11057 fi
11058 rm -f conftest.err conftest.$ac_ext
11059
11060 # OK, works on sane cases. Now check whether non-existent headers
11061 # can be detected and how.
11062 cat >conftest.$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11064 /* confdefs.h. */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 #include <ac_nonexistent.h>
11070 _ACEOF
11071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } >/dev/null; then
11079 if test -s conftest.err; then
11080 ac_cpp_err=$ac_c_preproc_warn_flag
11081 else
11082 ac_cpp_err=
11083 fi
11084 else
11085 ac_cpp_err=yes
11086 fi
11087 if test -z "$ac_cpp_err"; then
11088 # Broken: success on invalid input.
11089 continue
11090 else
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 # Passes both tests.
11095 ac_preproc_ok=:
11096 break
11097 fi
11098 rm -f conftest.err conftest.$ac_ext
11099
11100 done
11101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11102 rm -f conftest.err conftest.$ac_ext
11103 if $ac_preproc_ok; then
11104 :
11105 else
11106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11107 See \`config.log' for more details." >&5
11108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11109 See \`config.log' for more details." >&2;}
11110 { (exit 1); exit 1; }; }
11111 fi
11112
11113 ac_ext=c
11114 ac_cpp='$CPP $CPPFLAGS'
11115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11118
11119
11120 echo "$as_me:$LINENO: checking for egrep" >&5
11121 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11122 if test "${ac_cv_prog_egrep+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11126 then ac_cv_prog_egrep='grep -E'
11127 else ac_cv_prog_egrep='egrep'
11128 fi
11129 fi
11130 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11131 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11132 EGREP=$ac_cv_prog_egrep
11133
11134
11135 if test $ac_cv_c_compiler_gnu = yes; then
11136 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11137 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11138 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141 ac_pattern="Autoconf.*'x'"
11142 cat >conftest.$ac_ext <<_ACEOF
11143 #line $LINENO "configure"
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 #include <sgtty.h>
11150 Autoconf TIOCGETP
11151 _ACEOF
11152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11153 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11154 ac_cv_prog_gcc_traditional=yes
11155 else
11156 ac_cv_prog_gcc_traditional=no
11157 fi
11158 rm -f conftest*
11159
11160
11161 if test $ac_cv_prog_gcc_traditional = no; then
11162 cat >conftest.$ac_ext <<_ACEOF
11163 #line $LINENO "configure"
11164 /* confdefs.h. */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 #include <termio.h>
11170 Autoconf TCGETA
11171 _ACEOF
11172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11173 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11174 ac_cv_prog_gcc_traditional=yes
11175 fi
11176 rm -f conftest*
11177
11178 fi
11179 fi
11180 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11181 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11182 if test $ac_cv_prog_gcc_traditional = yes; then
11183 CC="$CC -traditional"
11184 fi
11185 fi
11186
11187
11188
11189
11190 ac_ext=cc
11191 ac_cpp='$CXXCPP $CPPFLAGS'
11192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11195
11196
11197 CXXFLAGS=${CXXFLAGS:=}
11198 ac_ext=cc
11199 ac_cpp='$CXXCPP $CPPFLAGS'
11200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11203 if test -n "$ac_tool_prefix"; then
11204 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11205 do
11206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11208 echo "$as_me:$LINENO: checking for $ac_word" >&5
11209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11210 if test "${ac_cv_prog_CXX+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213 if test -n "$CXX"; then
11214 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11215 else
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11226 fi
11227 done
11228 done
11229
11230 fi
11231 fi
11232 CXX=$ac_cv_prog_CXX
11233 if test -n "$CXX"; then
11234 echo "$as_me:$LINENO: result: $CXX" >&5
11235 echo "${ECHO_T}$CXX" >&6
11236 else
11237 echo "$as_me:$LINENO: result: no" >&5
11238 echo "${ECHO_T}no" >&6
11239 fi
11240
11241 test -n "$CXX" && break
11242 done
11243 fi
11244 if test -z "$CXX"; then
11245 ac_ct_CXX=$CXX
11246 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11247 do
11248 # Extract the first word of "$ac_prog", so it can be a program name with args.
11249 set dummy $ac_prog; ac_word=$2
11250 echo "$as_me:$LINENO: checking for $ac_word" >&5
11251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11252 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255 if test -n "$ac_ct_CXX"; then
11256 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11257 else
11258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259 for as_dir in $PATH
11260 do
11261 IFS=$as_save_IFS
11262 test -z "$as_dir" && as_dir=.
11263 for ac_exec_ext in '' $ac_executable_extensions; do
11264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11265 ac_cv_prog_ac_ct_CXX="$ac_prog"
11266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11267 break 2
11268 fi
11269 done
11270 done
11271
11272 fi
11273 fi
11274 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11275 if test -n "$ac_ct_CXX"; then
11276 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11277 echo "${ECHO_T}$ac_ct_CXX" >&6
11278 else
11279 echo "$as_me:$LINENO: result: no" >&5
11280 echo "${ECHO_T}no" >&6
11281 fi
11282
11283 test -n "$ac_ct_CXX" && break
11284 done
11285 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11286
11287 CXX=$ac_ct_CXX
11288 fi
11289
11290
11291 # Provide some information about the compiler.
11292 echo "$as_me:$LINENO:" \
11293 "checking for C++ compiler version" >&5
11294 ac_compiler=`set X $ac_compile; echo $2`
11295 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11296 (eval $ac_compiler --version </dev/null >&5) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }
11300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11301 (eval $ac_compiler -v </dev/null >&5) 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }
11305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11306 (eval $ac_compiler -V </dev/null >&5) 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }
11310
11311 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11312 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11313 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316 cat >conftest.$ac_ext <<_ACEOF
11317 #line $LINENO "configure"
11318 /* confdefs.h. */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323
11324 int
11325 main ()
11326 {
11327 #ifndef __GNUC__
11328 choke me
11329 #endif
11330
11331 ;
11332 return 0;
11333 }
11334 _ACEOF
11335 rm -f conftest.$ac_objext
11336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11337 (eval $ac_compile) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
11341 { ac_try='test -s conftest.$ac_objext'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 ac_compiler_gnu=yes
11348 else
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11351
11352 ac_compiler_gnu=no
11353 fi
11354 rm -f conftest.$ac_objext conftest.$ac_ext
11355 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11356
11357 fi
11358 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11359 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11360 GXX=`test $ac_compiler_gnu = yes && echo yes`
11361 ac_test_CXXFLAGS=${CXXFLAGS+set}
11362 ac_save_CXXFLAGS=$CXXFLAGS
11363 CXXFLAGS="-g"
11364 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11365 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11366 if test "${ac_cv_prog_cxx_g+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369 cat >conftest.$ac_ext <<_ACEOF
11370 #line $LINENO "configure"
11371 /* confdefs.h. */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376
11377 int
11378 main ()
11379 {
11380
11381 ;
11382 return 0;
11383 }
11384 _ACEOF
11385 rm -f conftest.$ac_objext
11386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11387 (eval $ac_compile) 2>&5
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } &&
11391 { ac_try='test -s conftest.$ac_objext'
11392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393 (eval $ac_try) 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; }; then
11397 ac_cv_prog_cxx_g=yes
11398 else
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11401
11402 ac_cv_prog_cxx_g=no
11403 fi
11404 rm -f conftest.$ac_objext conftest.$ac_ext
11405 fi
11406 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11407 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11408 if test "$ac_test_CXXFLAGS" = set; then
11409 CXXFLAGS=$ac_save_CXXFLAGS
11410 elif test $ac_cv_prog_cxx_g = yes; then
11411 if test "$GXX" = yes; then
11412 CXXFLAGS="-g -O2"
11413 else
11414 CXXFLAGS="-g"
11415 fi
11416 else
11417 if test "$GXX" = yes; then
11418 CXXFLAGS="-O2"
11419 else
11420 CXXFLAGS=
11421 fi
11422 fi
11423 for ac_declaration in \
11424 '' \
11425 'extern "C" void std::exit (int) throw (); using std::exit;' \
11426 'extern "C" void std::exit (int); using std::exit;' \
11427 'extern "C" void exit (int) throw ();' \
11428 'extern "C" void exit (int);' \
11429 'void exit (int);'
11430 do
11431 cat >conftest.$ac_ext <<_ACEOF
11432 #line $LINENO "configure"
11433 /* confdefs.h. */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 $ac_declaration
11439 #include <stdlib.h>
11440 int
11441 main ()
11442 {
11443 exit (42);
11444 ;
11445 return 0;
11446 }
11447 _ACEOF
11448 rm -f conftest.$ac_objext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11450 (eval $ac_compile) 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
11454 { ac_try='test -s conftest.$ac_objext'
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 :
11461 else
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11464
11465 continue
11466 fi
11467 rm -f conftest.$ac_objext conftest.$ac_ext
11468 cat >conftest.$ac_ext <<_ACEOF
11469 #line $LINENO "configure"
11470 /* confdefs.h. */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 $ac_declaration
11476 int
11477 main ()
11478 {
11479 exit (42);
11480 ;
11481 return 0;
11482 }
11483 _ACEOF
11484 rm -f conftest.$ac_objext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486 (eval $ac_compile) 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -s conftest.$ac_objext'
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 break
11497 else
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501 fi
11502 rm -f conftest.$ac_objext conftest.$ac_ext
11503 done
11504 rm -f conftest*
11505 if test -n "$ac_declaration"; then
11506 echo '#ifdef __cplusplus' >>confdefs.h
11507 echo $ac_declaration >>confdefs.h
11508 echo '#endif' >>confdefs.h
11509 fi
11510
11511 ac_ext=cc
11512 ac_cpp='$CXXCPP $CPPFLAGS'
11513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11516
11517
11518 ac_ext=c
11519 ac_cpp='$CPP $CPPFLAGS'
11520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11523
11524
11525 if test -n "$ac_tool_prefix"; then
11526 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11527 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11528 echo "$as_me:$LINENO: checking for $ac_word" >&5
11529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11530 if test "${ac_cv_prog_RANLIB+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533 if test -n "$RANLIB"; then
11534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11535 else
11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537 for as_dir in $PATH
11538 do
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
11541 for ac_exec_ext in '' $ac_executable_extensions; do
11542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11543 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11545 break 2
11546 fi
11547 done
11548 done
11549
11550 fi
11551 fi
11552 RANLIB=$ac_cv_prog_RANLIB
11553 if test -n "$RANLIB"; then
11554 echo "$as_me:$LINENO: result: $RANLIB" >&5
11555 echo "${ECHO_T}$RANLIB" >&6
11556 else
11557 echo "$as_me:$LINENO: result: no" >&5
11558 echo "${ECHO_T}no" >&6
11559 fi
11560
11561 fi
11562 if test -z "$ac_cv_prog_RANLIB"; then
11563 ac_ct_RANLIB=$RANLIB
11564 # Extract the first word of "ranlib", so it can be a program name with args.
11565 set dummy ranlib; ac_word=$2
11566 echo "$as_me:$LINENO: checking for $ac_word" >&5
11567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11568 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571 if test -n "$ac_ct_RANLIB"; then
11572 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11573 else
11574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11576 do
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11581 ac_cv_prog_ac_ct_RANLIB="ranlib"
11582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11583 break 2
11584 fi
11585 done
11586 done
11587
11588 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11589 fi
11590 fi
11591 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11592 if test -n "$ac_ct_RANLIB"; then
11593 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11594 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11595 else
11596 echo "$as_me:$LINENO: result: no" >&5
11597 echo "${ECHO_T}no" >&6
11598 fi
11599
11600 RANLIB=$ac_ct_RANLIB
11601 else
11602 RANLIB="$ac_cv_prog_RANLIB"
11603 fi
11604
11605
11606 # Extract the first word of "ar", so it can be a program name with args.
11607 set dummy ar; ac_word=$2
11608 echo "$as_me:$LINENO: checking for $ac_word" >&5
11609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11610 if test "${ac_cv_prog_AR+set}" = set; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 else
11613 if test -n "$AR"; then
11614 ac_cv_prog_AR="$AR" # Let the user override the test.
11615 else
11616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617 for as_dir in $PATH
11618 do
11619 IFS=$as_save_IFS
11620 test -z "$as_dir" && as_dir=.
11621 for ac_exec_ext in '' $ac_executable_extensions; do
11622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11623 ac_cv_prog_AR="ar"
11624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11625 break 2
11626 fi
11627 done
11628 done
11629
11630 fi
11631 fi
11632 AR=$ac_cv_prog_AR
11633 if test -n "$AR"; then
11634 echo "$as_me:$LINENO: result: $AR" >&5
11635 echo "${ECHO_T}$AR" >&6
11636 else
11637 echo "$as_me:$LINENO: result: no" >&5
11638 echo "${ECHO_T}no" >&6
11639 fi
11640
11641 if test "x$AR" = "x" ; then
11642 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11643 echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11644 { (exit 1); exit 1; }; }
11645 fi
11646
11647 # Find a good install program. We prefer a C program (faster),
11648 # so one script is as good as another. But avoid the broken or
11649 # incompatible versions:
11650 # SysV /etc/install, /usr/sbin/install
11651 # SunOS /usr/etc/install
11652 # IRIX /sbin/install
11653 # AIX /bin/install
11654 # AmigaOS /C/install, which installs bootblocks on floppy discs
11655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11658 # ./install, which can be erroneously created by make from ./install.sh.
11659 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11660 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11661 if test -z "$INSTALL"; then
11662 if test "${ac_cv_path_install+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11667 do
11668 IFS=$as_save_IFS
11669 test -z "$as_dir" && as_dir=.
11670 # Account for people who put trailing slashes in PATH elements.
11671 case $as_dir/ in
11672 ./ | .// | /cC/* | \
11673 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11674 /usr/ucb/* ) ;;
11675 *)
11676 # OSF1 and SCO ODT 3.0 have their own names for install.
11677 # Don't use installbsd from OSF since it installs stuff as root
11678 # by default.
11679 for ac_prog in ginstall scoinst install; do
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11682 if test $ac_prog = install &&
11683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11684 # AIX install. It has an incompatible calling convention.
11685 :
11686 elif test $ac_prog = install &&
11687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11688 # program-specific install script used by HP pwplus--don't use.
11689 :
11690 else
11691 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11692 break 3
11693 fi
11694 fi
11695 done
11696 done
11697 ;;
11698 esac
11699 done
11700
11701
11702 fi
11703 if test "${ac_cv_path_install+set}" = set; then
11704 INSTALL=$ac_cv_path_install
11705 else
11706 # As a last resort, use the slow shell script. We don't cache a
11707 # path for INSTALL within a source directory, because that will
11708 # break other packages using the cache if that directory is
11709 # removed, or if the path is relative.
11710 INSTALL=$ac_install_sh
11711 fi
11712 fi
11713 echo "$as_me:$LINENO: result: $INSTALL" >&5
11714 echo "${ECHO_T}$INSTALL" >&6
11715
11716 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11717 # It thinks the first close brace ends the variable substitution.
11718 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11719
11720 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11721
11722 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11723
11724
11725 case ${INSTALL} in
11726 /* ) # Absolute
11727 ;;
11728 ?:* ) # Drive letter, considered as absolute.
11729 ;;
11730 *)
11731 INSTALL=`pwd`/${INSTALL} ;;
11732 esac
11733
11734 case ${host} in
11735 *-hp-hpux* )
11736 INSTALL_DIR="mkdir"
11737 ;;
11738
11739 *) INSTALL_DIR="$INSTALL -d"
11740 ;;
11741 esac
11742
11743
11744 case "${host}" in
11745
11746 powerpc-*-darwin* )
11747 INSTALL_PROGRAM="cp -fp"
11748 INSTALL_DATA="cp -fp"
11749 ;;
11750 *)
11751 ;;
11752 esac
11753
11754 # Extract the first word of "strip", so it can be a program name with args.
11755 set dummy strip; ac_word=$2
11756 echo "$as_me:$LINENO: checking for $ac_word" >&5
11757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11758 if test "${ac_cv_prog_STRIP+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 else
11761 if test -n "$STRIP"; then
11762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11763 else
11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765 for as_dir in $PATH
11766 do
11767 IFS=$as_save_IFS
11768 test -z "$as_dir" && as_dir=.
11769 for ac_exec_ext in '' $ac_executable_extensions; do
11770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11771 ac_cv_prog_STRIP="strip"
11772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11773 break 2
11774 fi
11775 done
11776 done
11777
11778 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11779 fi
11780 fi
11781 STRIP=$ac_cv_prog_STRIP
11782 if test -n "$STRIP"; then
11783 echo "$as_me:$LINENO: result: $STRIP" >&5
11784 echo "${ECHO_T}$STRIP" >&6
11785 else
11786 echo "$as_me:$LINENO: result: no" >&5
11787 echo "${ECHO_T}no" >&6
11788 fi
11789
11790
11791 echo "$as_me:$LINENO: checking if make is GNU make" >&5
11792 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11793 if test "${wx_cv_prog_makeisgnu+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796
11797 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11798 egrep -s GNU > /dev/null); then
11799 wx_cv_prog_makeisgnu="yes"
11800 else
11801 wx_cv_prog_makeisgnu="no"
11802 fi
11803
11804 fi
11805 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11806 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11807
11808 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11809 IF_GNU_MAKE=""
11810 else
11811 IF_GNU_MAKE="#"
11812 fi
11813
11814
11815
11816 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11817 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11818 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11819 if test "${wx_cv_prog_makevpath+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821 else
11822
11823 cat - << EOF > confMake
11824 check : file
11825 cp \$? \$@
11826 cp \$? final_file
11827 EOF
11828
11829 if test ! -d sub ; then
11830 mkdir sub
11831 fi
11832 echo dummy > sub/file
11833 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
11834 RESULT=$?
11835 rm -f sub/file check final_file confMake
11836 rmdir sub
11837 if test "$RESULT" = 0; then
11838 wx_cv_prog_makevpath="yes"
11839 else
11840 wx_cv_prog_makevpath="no"
11841 fi
11842
11843 fi
11844 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11845 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
11846
11847 if test "x$wx_cv_prog_makevpath" != "xyes"; then
11848 { { echo "$as_me:$LINENO: error:
11849 You need a make-utility that is able to use the variable
11850 VPATH correctly.
11851 If your version of make does not support VPATH correctly,
11852 please install GNU-make (possibly as gmake), and start
11853 configure with the following command:
11854 export MAKE=gmake; ./configure for sh-type shells
11855 setenv MAKE gmake; ./configure for csh-type shells
11856 Also please do remember to use gmake in this case every time
11857 you are trying to compile.
11858 " >&5
11859 echo "$as_me: error:
11860 You need a make-utility that is able to use the variable
11861 VPATH correctly.
11862 If your version of make does not support VPATH correctly,
11863 please install GNU-make (possibly as gmake), and start
11864 configure with the following command:
11865 export MAKE=gmake; ./configure for sh-type shells
11866 setenv MAKE gmake; ./configure for csh-type shells
11867 Also please do remember to use gmake in this case every time
11868 you are trying to compile.
11869 " >&2;}
11870 { (exit 1); exit 1; }; }
11871 fi fi
11872 echo "$as_me:$LINENO: checking whether ln -s works" >&5
11873 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11874 LN_S=$as_ln_s
11875 if test "$LN_S" = "ln -s"; then
11876 echo "$as_me:$LINENO: result: yes" >&5
11877 echo "${ECHO_T}yes" >&6
11878 else
11879 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11880 echo "${ECHO_T}no, using $LN_S" >&6
11881 fi
11882
11883
11884 case "${host}" in
11885 *-pc-os2_emx | *-pc-os2-emx )
11886 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
11887 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11888 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11889 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892 ac_check_lib_save_LIBS=$LIBS
11893 LIBS="-lcExt $LIBS"
11894 cat >conftest.$ac_ext <<_ACEOF
11895 #line $LINENO "configure"
11896 /* confdefs.h. */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11901
11902 /* Override any gcc2 internal prototype to avoid an error. */
11903 #ifdef __cplusplus
11904 extern "C"
11905 #endif
11906 /* We use char because int might match the return type of a gcc2
11907 builtin and then its argument prototype would still apply. */
11908 char drand48 ();
11909 int
11910 main ()
11911 {
11912 drand48 ();
11913 ;
11914 return 0;
11915 }
11916 _ACEOF
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11919 (eval $ac_link) 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } &&
11923 { ac_try='test -s conftest$ac_exeext'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 ac_cv_lib_cExt_drand48=yes
11930 else
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11933
11934 ac_cv_lib_cExt_drand48=no
11935 fi
11936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11937 LIBS=$ac_check_lib_save_LIBS
11938 fi
11939 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11940 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11941 if test $ac_cv_lib_cExt_drand48 = yes; then
11942 LIBS="$LIBS -lcExt"
11943 fi
11944
11945 else
11946 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11947 fi
11948 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11949 echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
11950 if test "${wx_cv_gcc3+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953
11954 cat >conftest.$ac_ext <<_ACEOF
11955 #line $LINENO "configure"
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961
11962 int
11963 main ()
11964 {
11965
11966 #if (__GNUC__ < 3)
11967 #error old gcc
11968 #endif
11969
11970 ;
11971 return 0;
11972 }
11973 _ACEOF
11974 rm -f conftest.$ac_objext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11976 (eval $ac_compile) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986
11987 wx_cv_gcc3=yes
11988
11989 else
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11992
11993
11994 wx_cv_gcc3=no
11995
11996
11997 fi
11998 rm -f conftest.$ac_objext conftest.$ac_ext
11999
12000 fi
12001 echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12002 echo "${ECHO_T}$wx_cv_gcc3" >&6
12003 if test "$wx_cv_gcc3" = "no"; then
12004 LIBS="$LIBS -lstdcpp"
12005 else
12006 LIBS="$LIBS -lstdcxx"
12007 fi
12008 ;;
12009 esac
12010
12011
12012
12013
12014 ac_ext=cc
12015 ac_cpp='$CXXCPP $CPPFLAGS'
12016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12019
12020
12021
12022 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12023 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12024 if test "${ac_cv_string_strcasecmp+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027
12028 cat >conftest.$ac_ext <<_ACEOF
12029 #line $LINENO "configure"
12030 /* confdefs.h. */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035
12036 #include <string.h>
12037
12038 int
12039 main ()
12040 {
12041
12042 strcasecmp("foo", "bar");
12043
12044 ;
12045 return 0;
12046 }
12047 _ACEOF
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050 (eval $ac_link) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } &&
12054 { ac_try='test -s conftest$ac_exeext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_string_strcasecmp=yes
12061 else
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 ac_cv_string_strcasecmp=no
12066
12067 fi
12068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12069
12070 fi
12071 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12072 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12073
12074 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12075 cat >>confdefs.h <<\_ACEOF
12076 #define HAVE_STRCASECMP_IN_STRING_H 1
12077 _ACEOF
12078
12079 else
12080 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12081 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12082 if test "${ac_cv_strings_strcasecmp+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085
12086 cat >conftest.$ac_ext <<_ACEOF
12087 #line $LINENO "configure"
12088 /* confdefs.h. */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12093
12094 #include <strings.h>
12095
12096 int
12097 main ()
12098 {
12099
12100 strcasecmp("foo", "bar");
12101
12102 ;
12103 return 0;
12104 }
12105 _ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_strings_strcasecmp=yes
12119 else
12120 echo "$as_me: failed program was:" >&5
12121 sed 's/^/| /' conftest.$ac_ext >&5
12122
12123 ac_cv_strings_strcasecmp=no
12124
12125 fi
12126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12127
12128 fi
12129 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12130 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12131
12132 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12133 cat >>confdefs.h <<\_ACEOF
12134 #define HAVE_STRCASECMP_IN_STRINGS_H 1
12135 _ACEOF
12136
12137 else
12138 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12139 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12140 { (exit 1); exit 1; }; }
12141 fi
12142 fi
12143
12144 ac_ext=c
12145 ac_cpp='$CPP $CPPFLAGS'
12146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12149
12150
12151 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12152 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12153 if test "${ac_cv_header_stdc+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156 cat >conftest.$ac_ext <<_ACEOF
12157 #line $LINENO "configure"
12158 /* confdefs.h. */
12159 _ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12163 #include <stdlib.h>
12164 #include <stdarg.h>
12165 #include <string.h>
12166 #include <float.h>
12167
12168 int
12169 main ()
12170 {
12171
12172 ;
12173 return 0;
12174 }
12175 _ACEOF
12176 rm -f conftest.$ac_objext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12178 (eval $ac_compile) 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try='test -s conftest.$ac_objext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_header_stdc=yes
12189 else
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12192
12193 ac_cv_header_stdc=no
12194 fi
12195 rm -f conftest.$ac_objext conftest.$ac_ext
12196
12197 if test $ac_cv_header_stdc = yes; then
12198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12199 cat >conftest.$ac_ext <<_ACEOF
12200 #line $LINENO "configure"
12201 /* confdefs.h. */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 #include <string.h>
12207
12208 _ACEOF
12209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12210 $EGREP "memchr" >/dev/null 2>&1; then
12211 :
12212 else
12213 ac_cv_header_stdc=no
12214 fi
12215 rm -f conftest*
12216
12217 fi
12218
12219 if test $ac_cv_header_stdc = yes; then
12220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12221 cat >conftest.$ac_ext <<_ACEOF
12222 #line $LINENO "configure"
12223 /* confdefs.h. */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 #include <stdlib.h>
12229
12230 _ACEOF
12231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12232 $EGREP "free" >/dev/null 2>&1; then
12233 :
12234 else
12235 ac_cv_header_stdc=no
12236 fi
12237 rm -f conftest*
12238
12239 fi
12240
12241 if test $ac_cv_header_stdc = yes; then
12242 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12243 if test "$cross_compiling" = yes; then
12244 :
12245 else
12246 cat >conftest.$ac_ext <<_ACEOF
12247 #line $LINENO "configure"
12248 /* confdefs.h. */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12253 #include <ctype.h>
12254 #if ((' ' & 0x0FF) == 0x020)
12255 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12256 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12257 #else
12258 # define ISLOWER(c) \
12259 (('a' <= (c) && (c) <= 'i') \
12260 || ('j' <= (c) && (c) <= 'r') \
12261 || ('s' <= (c) && (c) <= 'z'))
12262 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12263 #endif
12264
12265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12266 int
12267 main ()
12268 {
12269 int i;
12270 for (i = 0; i < 256; i++)
12271 if (XOR (islower (i), ISLOWER (i))
12272 || toupper (i) != TOUPPER (i))
12273 exit(2);
12274 exit (0);
12275 }
12276 _ACEOF
12277 rm -f conftest$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279 (eval $ac_link) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 :
12289 else
12290 echo "$as_me: program exited with status $ac_status" >&5
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12293
12294 ( exit $ac_status )
12295 ac_cv_header_stdc=no
12296 fi
12297 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12298 fi
12299 fi
12300 fi
12301 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12302 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12303 if test $ac_cv_header_stdc = yes; then
12304
12305 cat >>confdefs.h <<\_ACEOF
12306 #define STDC_HEADERS 1
12307 _ACEOF
12308
12309 fi
12310
12311 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12322 inttypes.h stdint.h unistd.h
12323 do
12324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12325 echo "$as_me:$LINENO: checking for $ac_header" >&5
12326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12329 else
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12332 /* confdefs.h. */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 $ac_includes_default
12338
12339 #include <$ac_header>
12340 _ACEOF
12341 rm -f conftest.$ac_objext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12343 (eval $ac_compile) 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -s conftest.$ac_objext'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
12353 eval "$as_ac_Header=yes"
12354 else
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12357
12358 eval "$as_ac_Header=no"
12359 fi
12360 rm -f conftest.$ac_objext conftest.$ac_ext
12361 fi
12362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12365 cat >>confdefs.h <<_ACEOF
12366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12367 _ACEOF
12368
12369 fi
12370
12371 done
12372
12373
12374
12375 for ac_header in stdlib.h
12376 do
12377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12379 echo "$as_me:$LINENO: checking for $ac_header" >&5
12380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 fi
12384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12386 else
12387 # Is the header compilable?
12388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12390 cat >conftest.$ac_ext <<_ACEOF
12391 #line $LINENO "configure"
12392 /* confdefs.h. */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397 $ac_includes_default
12398 #include <$ac_header>
12399 _ACEOF
12400 rm -f conftest.$ac_objext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12402 (eval $ac_compile) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } &&
12406 { ac_try='test -s conftest.$ac_objext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 ac_header_compiler=yes
12413 else
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12416
12417 ac_header_compiler=no
12418 fi
12419 rm -f conftest.$ac_objext conftest.$ac_ext
12420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12421 echo "${ECHO_T}$ac_header_compiler" >&6
12422
12423 # Is the header present?
12424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12426 cat >conftest.$ac_ext <<_ACEOF
12427 #line $LINENO "configure"
12428 /* confdefs.h. */
12429 _ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h. */
12433 #include <$ac_header>
12434 _ACEOF
12435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12437 ac_status=$?
12438 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } >/dev/null; then
12443 if test -s conftest.err; then
12444 ac_cpp_err=$ac_c_preproc_warn_flag
12445 else
12446 ac_cpp_err=
12447 fi
12448 else
12449 ac_cpp_err=yes
12450 fi
12451 if test -z "$ac_cpp_err"; then
12452 ac_header_preproc=yes
12453 else
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12456
12457 ac_header_preproc=no
12458 fi
12459 rm -f conftest.err conftest.$ac_ext
12460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12461 echo "${ECHO_T}$ac_header_preproc" >&6
12462
12463 # So? What about this header?
12464 case $ac_header_compiler:$ac_header_preproc in
12465 yes:no )
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12470 (
12471 cat <<\_ASBOX
12472 ## ------------------------------------ ##
12473 ## Report this to bug-autoconf@gnu.org. ##
12474 ## ------------------------------------ ##
12475 _ASBOX
12476 ) |
12477 sed "s/^/$as_me: WARNING: /" >&2
12478 ;;
12479 no:yes )
12480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12486 (
12487 cat <<\_ASBOX
12488 ## ------------------------------------ ##
12489 ## Report this to bug-autoconf@gnu.org. ##
12490 ## ------------------------------------ ##
12491 _ASBOX
12492 ) |
12493 sed "s/^/$as_me: WARNING: /" >&2
12494 ;;
12495 esac
12496 echo "$as_me:$LINENO: checking for $ac_header" >&5
12497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 else
12501 eval "$as_ac_Header=$ac_header_preproc"
12502 fi
12503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12505
12506 fi
12507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12508 cat >>confdefs.h <<_ACEOF
12509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12510 _ACEOF
12511
12512 fi
12513
12514 done
12515
12516
12517 for ac_header in malloc.h
12518 do
12519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12521 echo "$as_me:$LINENO: checking for $ac_header" >&5
12522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 fi
12526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12528 else
12529 # Is the header compilable?
12530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12532 cat >conftest.$ac_ext <<_ACEOF
12533 #line $LINENO "configure"
12534 /* confdefs.h. */
12535 _ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12539 $ac_includes_default
12540 #include <$ac_header>
12541 _ACEOF
12542 rm -f conftest.$ac_objext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12544 (eval $ac_compile) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -s conftest.$ac_objext'
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 ac_header_compiler=yes
12555 else
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12558
12559 ac_header_compiler=no
12560 fi
12561 rm -f conftest.$ac_objext conftest.$ac_ext
12562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12563 echo "${ECHO_T}$ac_header_compiler" >&6
12564
12565 # Is the header present?
12566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12568 cat >conftest.$ac_ext <<_ACEOF
12569 #line $LINENO "configure"
12570 /* confdefs.h. */
12571 _ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h. */
12575 #include <$ac_header>
12576 _ACEOF
12577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } >/dev/null; then
12585 if test -s conftest.err; then
12586 ac_cpp_err=$ac_c_preproc_warn_flag
12587 else
12588 ac_cpp_err=
12589 fi
12590 else
12591 ac_cpp_err=yes
12592 fi
12593 if test -z "$ac_cpp_err"; then
12594 ac_header_preproc=yes
12595 else
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12598
12599 ac_header_preproc=no
12600 fi
12601 rm -f conftest.err conftest.$ac_ext
12602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12603 echo "${ECHO_T}$ac_header_preproc" >&6
12604
12605 # So? What about this header?
12606 case $ac_header_compiler:$ac_header_preproc in
12607 yes:no )
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12612 (
12613 cat <<\_ASBOX
12614 ## ------------------------------------ ##
12615 ## Report this to bug-autoconf@gnu.org. ##
12616 ## ------------------------------------ ##
12617 _ASBOX
12618 ) |
12619 sed "s/^/$as_me: WARNING: /" >&2
12620 ;;
12621 no:yes )
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12628 (
12629 cat <<\_ASBOX
12630 ## ------------------------------------ ##
12631 ## Report this to bug-autoconf@gnu.org. ##
12632 ## ------------------------------------ ##
12633 _ASBOX
12634 ) |
12635 sed "s/^/$as_me: WARNING: /" >&2
12636 ;;
12637 esac
12638 echo "$as_me:$LINENO: checking for $ac_header" >&5
12639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643 eval "$as_ac_Header=$ac_header_preproc"
12644 fi
12645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12647
12648 fi
12649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12650 cat >>confdefs.h <<_ACEOF
12651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12652 _ACEOF
12653
12654 fi
12655
12656 done
12657
12658
12659 for ac_header in unistd.h
12660 do
12661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12663 echo "$as_me:$LINENO: checking for $ac_header" >&5
12664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 fi
12668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12670 else
12671 # Is the header compilable?
12672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12674 cat >conftest.$ac_ext <<_ACEOF
12675 #line $LINENO "configure"
12676 /* confdefs.h. */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12681 $ac_includes_default
12682 #include <$ac_header>
12683 _ACEOF
12684 rm -f conftest.$ac_objext
12685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686 (eval $ac_compile) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } &&
12690 { ac_try='test -s conftest.$ac_objext'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 ac_header_compiler=yes
12697 else
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12700
12701 ac_header_compiler=no
12702 fi
12703 rm -f conftest.$ac_objext conftest.$ac_ext
12704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12705 echo "${ECHO_T}$ac_header_compiler" >&6
12706
12707 # Is the header present?
12708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12710 cat >conftest.$ac_ext <<_ACEOF
12711 #line $LINENO "configure"
12712 /* confdefs.h. */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12717 #include <$ac_header>
12718 _ACEOF
12719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } >/dev/null; then
12727 if test -s conftest.err; then
12728 ac_cpp_err=$ac_c_preproc_warn_flag
12729 else
12730 ac_cpp_err=
12731 fi
12732 else
12733 ac_cpp_err=yes
12734 fi
12735 if test -z "$ac_cpp_err"; then
12736 ac_header_preproc=yes
12737 else
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12740
12741 ac_header_preproc=no
12742 fi
12743 rm -f conftest.err conftest.$ac_ext
12744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12745 echo "${ECHO_T}$ac_header_preproc" >&6
12746
12747 # So? What about this header?
12748 case $ac_header_compiler:$ac_header_preproc in
12749 yes:no )
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12754 (
12755 cat <<\_ASBOX
12756 ## ------------------------------------ ##
12757 ## Report this to bug-autoconf@gnu.org. ##
12758 ## ------------------------------------ ##
12759 _ASBOX
12760 ) |
12761 sed "s/^/$as_me: WARNING: /" >&2
12762 ;;
12763 no:yes )
12764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12770 (
12771 cat <<\_ASBOX
12772 ## ------------------------------------ ##
12773 ## Report this to bug-autoconf@gnu.org. ##
12774 ## ------------------------------------ ##
12775 _ASBOX
12776 ) |
12777 sed "s/^/$as_me: WARNING: /" >&2
12778 ;;
12779 esac
12780 echo "$as_me:$LINENO: checking for $ac_header" >&5
12781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785 eval "$as_ac_Header=$ac_header_preproc"
12786 fi
12787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12789
12790 fi
12791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12792 cat >>confdefs.h <<_ACEOF
12793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12794 _ACEOF
12795
12796 fi
12797
12798 done
12799
12800
12801 for ac_header in wchar.h
12802 do
12803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12805 echo "$as_me:$LINENO: checking for $ac_header" >&5
12806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 fi
12810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12812 else
12813 # Is the header compilable?
12814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12816 cat >conftest.$ac_ext <<_ACEOF
12817 #line $LINENO "configure"
12818 /* confdefs.h. */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 $ac_includes_default
12824 #include <$ac_header>
12825 _ACEOF
12826 rm -f conftest.$ac_objext
12827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12828 (eval $ac_compile) 2>&5
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } &&
12832 { ac_try='test -s conftest.$ac_objext'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 ac_header_compiler=yes
12839 else
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12842
12843 ac_header_compiler=no
12844 fi
12845 rm -f conftest.$ac_objext conftest.$ac_ext
12846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12847 echo "${ECHO_T}$ac_header_compiler" >&6
12848
12849 # Is the header present?
12850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12852 cat >conftest.$ac_ext <<_ACEOF
12853 #line $LINENO "configure"
12854 /* confdefs.h. */
12855 _ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h. */
12859 #include <$ac_header>
12860 _ACEOF
12861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12863 ac_status=$?
12864 grep -v '^ *+' conftest.er1 >conftest.err
12865 rm -f conftest.er1
12866 cat conftest.err >&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } >/dev/null; then
12869 if test -s conftest.err; then
12870 ac_cpp_err=$ac_c_preproc_warn_flag
12871 else
12872 ac_cpp_err=
12873 fi
12874 else
12875 ac_cpp_err=yes
12876 fi
12877 if test -z "$ac_cpp_err"; then
12878 ac_header_preproc=yes
12879 else
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12882
12883 ac_header_preproc=no
12884 fi
12885 rm -f conftest.err conftest.$ac_ext
12886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12887 echo "${ECHO_T}$ac_header_preproc" >&6
12888
12889 # So? What about this header?
12890 case $ac_header_compiler:$ac_header_preproc in
12891 yes:no )
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12896 (
12897 cat <<\_ASBOX
12898 ## ------------------------------------ ##
12899 ## Report this to bug-autoconf@gnu.org. ##
12900 ## ------------------------------------ ##
12901 _ASBOX
12902 ) |
12903 sed "s/^/$as_me: WARNING: /" >&2
12904 ;;
12905 no:yes )
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12912 (
12913 cat <<\_ASBOX
12914 ## ------------------------------------ ##
12915 ## Report this to bug-autoconf@gnu.org. ##
12916 ## ------------------------------------ ##
12917 _ASBOX
12918 ) |
12919 sed "s/^/$as_me: WARNING: /" >&2
12920 ;;
12921 esac
12922 echo "$as_me:$LINENO: checking for $ac_header" >&5
12923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 else
12927 eval "$as_ac_Header=$ac_header_preproc"
12928 fi
12929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12931
12932 fi
12933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12934 cat >>confdefs.h <<_ACEOF
12935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12936 _ACEOF
12937
12938 fi
12939
12940 done
12941
12942
12943 if test "$ac_cv_header_wchar_h" != "yes"; then
12944
12945 for ac_header in wcstr.h
12946 do
12947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12949 echo "$as_me:$LINENO: checking for $ac_header" >&5
12950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 fi
12954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12956 else
12957 # Is the header compilable?
12958 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12960 cat >conftest.$ac_ext <<_ACEOF
12961 #line $LINENO "configure"
12962 /* confdefs.h. */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 $ac_includes_default
12968 #include <$ac_header>
12969 _ACEOF
12970 rm -f conftest.$ac_objext
12971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12972 (eval $ac_compile) 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -s conftest.$ac_objext'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12979 ac_status=$?
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 ac_header_compiler=yes
12983 else
12984 echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12986
12987 ac_header_compiler=no
12988 fi
12989 rm -f conftest.$ac_objext conftest.$ac_ext
12990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12991 echo "${ECHO_T}$ac_header_compiler" >&6
12992
12993 # Is the header present?
12994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12996 cat >conftest.$ac_ext <<_ACEOF
12997 #line $LINENO "configure"
12998 /* confdefs.h. */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13003 #include <$ac_header>
13004 _ACEOF
13005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13007 ac_status=$?
13008 grep -v '^ *+' conftest.er1 >conftest.err
13009 rm -f conftest.er1
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } >/dev/null; then
13013 if test -s conftest.err; then
13014 ac_cpp_err=$ac_c_preproc_warn_flag
13015 else
13016 ac_cpp_err=
13017 fi
13018 else
13019 ac_cpp_err=yes
13020 fi
13021 if test -z "$ac_cpp_err"; then
13022 ac_header_preproc=yes
13023 else
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13026
13027 ac_header_preproc=no
13028 fi
13029 rm -f conftest.err conftest.$ac_ext
13030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13031 echo "${ECHO_T}$ac_header_preproc" >&6
13032
13033 # So? What about this header?
13034 case $ac_header_compiler:$ac_header_preproc in
13035 yes:no )
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13040 (
13041 cat <<\_ASBOX
13042 ## ------------------------------------ ##
13043 ## Report this to bug-autoconf@gnu.org. ##
13044 ## ------------------------------------ ##
13045 _ASBOX
13046 ) |
13047 sed "s/^/$as_me: WARNING: /" >&2
13048 ;;
13049 no:yes )
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13056 (
13057 cat <<\_ASBOX
13058 ## ------------------------------------ ##
13059 ## Report this to bug-autoconf@gnu.org. ##
13060 ## ------------------------------------ ##
13061 _ASBOX
13062 ) |
13063 sed "s/^/$as_me: WARNING: /" >&2
13064 ;;
13065 esac
13066 echo "$as_me:$LINENO: checking for $ac_header" >&5
13067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071 eval "$as_ac_Header=$ac_header_preproc"
13072 fi
13073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13075
13076 fi
13077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13078 cat >>confdefs.h <<_ACEOF
13079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13080 _ACEOF
13081
13082 fi
13083
13084 done
13085
13086 fi
13087
13088
13089 for ac_header in fnmatch.h
13090 do
13091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13093 echo "$as_me:$LINENO: checking for $ac_header" >&5
13094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 fi
13098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13100 else
13101 # Is the header compilable?
13102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13104 cat >conftest.$ac_ext <<_ACEOF
13105 #line $LINENO "configure"
13106 /* confdefs.h. */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13111 $ac_includes_default
13112 #include <$ac_header>
13113 _ACEOF
13114 rm -f conftest.$ac_objext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116 (eval $ac_compile) 2>&5
13117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try='test -s conftest.$ac_objext'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_header_compiler=yes
13127 else
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13130
13131 ac_header_compiler=no
13132 fi
13133 rm -f conftest.$ac_objext conftest.$ac_ext
13134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13135 echo "${ECHO_T}$ac_header_compiler" >&6
13136
13137 # Is the header present?
13138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13140 cat >conftest.$ac_ext <<_ACEOF
13141 #line $LINENO "configure"
13142 /* confdefs.h. */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <$ac_header>
13148 _ACEOF
13149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } >/dev/null; then
13157 if test -s conftest.err; then
13158 ac_cpp_err=$ac_c_preproc_warn_flag
13159 else
13160 ac_cpp_err=
13161 fi
13162 else
13163 ac_cpp_err=yes
13164 fi
13165 if test -z "$ac_cpp_err"; then
13166 ac_header_preproc=yes
13167 else
13168 echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13170
13171 ac_header_preproc=no
13172 fi
13173 rm -f conftest.err conftest.$ac_ext
13174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13175 echo "${ECHO_T}$ac_header_preproc" >&6
13176
13177 # So? What about this header?
13178 case $ac_header_compiler:$ac_header_preproc in
13179 yes:no )
13180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13184 (
13185 cat <<\_ASBOX
13186 ## ------------------------------------ ##
13187 ## Report this to bug-autoconf@gnu.org. ##
13188 ## ------------------------------------ ##
13189 _ASBOX
13190 ) |
13191 sed "s/^/$as_me: WARNING: /" >&2
13192 ;;
13193 no:yes )
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13200 (
13201 cat <<\_ASBOX
13202 ## ------------------------------------ ##
13203 ## Report this to bug-autoconf@gnu.org. ##
13204 ## ------------------------------------ ##
13205 _ASBOX
13206 ) |
13207 sed "s/^/$as_me: WARNING: /" >&2
13208 ;;
13209 esac
13210 echo "$as_me:$LINENO: checking for $ac_header" >&5
13211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 else
13215 eval "$as_ac_Header=$ac_header_preproc"
13216 fi
13217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13219
13220 fi
13221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13222 cat >>confdefs.h <<_ACEOF
13223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13224 _ACEOF
13225
13226 fi
13227
13228 done
13229
13230
13231 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13232
13233 for ac_func in fnmatch
13234 do
13235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13236 echo "$as_me:$LINENO: checking for $ac_func" >&5
13237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13238 if eval "test \"\${$as_ac_var+set}\" = set"; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241 cat >conftest.$ac_ext <<_ACEOF
13242 #line $LINENO "configure"
13243 /* confdefs.h. */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 /* System header to define __stub macros and hopefully few prototypes,
13249 which can conflict with char $ac_func (); below.
13250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13251 <limits.h> exists even on freestanding compilers. */
13252 #ifdef __STDC__
13253 # include <limits.h>
13254 #else
13255 # include <assert.h>
13256 #endif
13257 /* Override any gcc2 internal prototype to avoid an error. */
13258 #ifdef __cplusplus
13259 extern "C"
13260 {
13261 #endif
13262 /* We use char because int might match the return type of a gcc2
13263 builtin and then its argument prototype would still apply. */
13264 char $ac_func ();
13265 /* The GNU C library defines this for functions which it implements
13266 to always fail with ENOSYS. Some functions are actually named
13267 something starting with __ and the normal name is an alias. */
13268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13269 choke me
13270 #else
13271 char (*f) () = $ac_func;
13272 #endif
13273 #ifdef __cplusplus
13274 }
13275 #endif
13276
13277 int
13278 main ()
13279 {
13280 return f != $ac_func;
13281 ;
13282 return 0;
13283 }
13284 _ACEOF
13285 rm -f conftest.$ac_objext conftest$ac_exeext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13287 (eval $ac_link) 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } &&
13291 { ac_try='test -s conftest$ac_exeext'
13292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293 (eval $ac_try) 2>&5
13294 ac_status=$?
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; }; then
13297 eval "$as_ac_var=yes"
13298 else
13299 echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13301
13302 eval "$as_ac_var=no"
13303 fi
13304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13305 fi
13306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13308 if test `eval echo '${'$as_ac_var'}'` = yes; then
13309 cat >>confdefs.h <<_ACEOF
13310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13311 _ACEOF
13312
13313 fi
13314 done
13315
13316 fi
13317
13318
13319 for ac_header in langinfo.h
13320 do
13321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13323 echo "$as_me:$LINENO: checking for $ac_header" >&5
13324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 fi
13328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13330 else
13331 # Is the header compilable?
13332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13334 cat >conftest.$ac_ext <<_ACEOF
13335 #line $LINENO "configure"
13336 /* confdefs.h. */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13341 $ac_includes_default
13342 #include <$ac_header>
13343 _ACEOF
13344 rm -f conftest.$ac_objext
13345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13346 (eval $ac_compile) 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } &&
13350 { ac_try='test -s conftest.$ac_objext'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
13356 ac_header_compiler=yes
13357 else
13358 echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13360
13361 ac_header_compiler=no
13362 fi
13363 rm -f conftest.$ac_objext conftest.$ac_ext
13364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13365 echo "${ECHO_T}$ac_header_compiler" >&6
13366
13367 # Is the header present?
13368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13370 cat >conftest.$ac_ext <<_ACEOF
13371 #line $LINENO "configure"
13372 /* confdefs.h. */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377 #include <$ac_header>
13378 _ACEOF
13379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } >/dev/null; then
13387 if test -s conftest.err; then
13388 ac_cpp_err=$ac_c_preproc_warn_flag
13389 else
13390 ac_cpp_err=
13391 fi
13392 else
13393 ac_cpp_err=yes
13394 fi
13395 if test -z "$ac_cpp_err"; then
13396 ac_header_preproc=yes
13397 else
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13400
13401 ac_header_preproc=no
13402 fi
13403 rm -f conftest.err conftest.$ac_ext
13404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13405 echo "${ECHO_T}$ac_header_preproc" >&6
13406
13407 # So? What about this header?
13408 case $ac_header_compiler:$ac_header_preproc in
13409 yes:no )
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13414 (
13415 cat <<\_ASBOX
13416 ## ------------------------------------ ##
13417 ## Report this to bug-autoconf@gnu.org. ##
13418 ## ------------------------------------ ##
13419 _ASBOX
13420 ) |
13421 sed "s/^/$as_me: WARNING: /" >&2
13422 ;;
13423 no:yes )
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13430 (
13431 cat <<\_ASBOX
13432 ## ------------------------------------ ##
13433 ## Report this to bug-autoconf@gnu.org. ##
13434 ## ------------------------------------ ##
13435 _ASBOX
13436 ) |
13437 sed "s/^/$as_me: WARNING: /" >&2
13438 ;;
13439 esac
13440 echo "$as_me:$LINENO: checking for $ac_header" >&5
13441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445 eval "$as_ac_Header=$ac_header_preproc"
13446 fi
13447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13449
13450 fi
13451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13452 cat >>confdefs.h <<_ACEOF
13453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13454 _ACEOF
13455
13456 fi
13457
13458 done
13459
13460
13461 case "${host}" in
13462 *-pc-os2_emx | *-pc-os2-emx )
13463 if test $ac_cv_header_langinfo_h = "yes"; then
13464 LIBS="$LIBS -lintl"
13465 fi
13466 ;;
13467 esac
13468
13469 if test "$wxUSE_GUI" = "yes"; then
13470 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13471
13472 for ac_header in X11/Xlib.h
13473 do
13474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13476 echo "$as_me:$LINENO: checking for $ac_header" >&5
13477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 fi
13481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13483 else
13484 # Is the header compilable?
13485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13487 cat >conftest.$ac_ext <<_ACEOF
13488 #line $LINENO "configure"
13489 /* confdefs.h. */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 $ac_includes_default
13495 #include <$ac_header>
13496 _ACEOF
13497 rm -f conftest.$ac_objext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13499 (eval $ac_compile) 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -s conftest.$ac_objext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_header_compiler=yes
13510 else
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 ac_header_compiler=no
13515 fi
13516 rm -f conftest.$ac_objext conftest.$ac_ext
13517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13518 echo "${ECHO_T}$ac_header_compiler" >&6
13519
13520 # Is the header present?
13521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13523 cat >conftest.$ac_ext <<_ACEOF
13524 #line $LINENO "configure"
13525 /* confdefs.h. */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13530 #include <$ac_header>
13531 _ACEOF
13532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13534 ac_status=$?
13535 grep -v '^ *+' conftest.er1 >conftest.err
13536 rm -f conftest.er1
13537 cat conftest.err >&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } >/dev/null; then
13540 if test -s conftest.err; then
13541 ac_cpp_err=$ac_c_preproc_warn_flag
13542 else
13543 ac_cpp_err=
13544 fi
13545 else
13546 ac_cpp_err=yes
13547 fi
13548 if test -z "$ac_cpp_err"; then
13549 ac_header_preproc=yes
13550 else
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13553
13554 ac_header_preproc=no
13555 fi
13556 rm -f conftest.err conftest.$ac_ext
13557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13558 echo "${ECHO_T}$ac_header_preproc" >&6
13559
13560 # So? What about this header?
13561 case $ac_header_compiler:$ac_header_preproc in
13562 yes:no )
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13567 (
13568 cat <<\_ASBOX
13569 ## ------------------------------------ ##
13570 ## Report this to bug-autoconf@gnu.org. ##
13571 ## ------------------------------------ ##
13572 _ASBOX
13573 ) |
13574 sed "s/^/$as_me: WARNING: /" >&2
13575 ;;
13576 no:yes )
13577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13583 (
13584 cat <<\_ASBOX
13585 ## ------------------------------------ ##
13586 ## Report this to bug-autoconf@gnu.org. ##
13587 ## ------------------------------------ ##
13588 _ASBOX
13589 ) |
13590 sed "s/^/$as_me: WARNING: /" >&2
13591 ;;
13592 esac
13593 echo "$as_me:$LINENO: checking for $ac_header" >&5
13594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13597 else
13598 eval "$as_ac_Header=$ac_header_preproc"
13599 fi
13600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13602
13603 fi
13604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13605 cat >>confdefs.h <<_ACEOF
13606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13607 _ACEOF
13608
13609 fi
13610
13611 done
13612
13613
13614 for ac_header in X11/XKBlib.h
13615 do
13616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13617 echo "$as_me:$LINENO: checking for $ac_header" >&5
13618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13621 else
13622 cat >conftest.$ac_ext <<_ACEOF
13623 #line $LINENO "configure"
13624 /* confdefs.h. */
13625 _ACEOF
13626 cat confdefs.h >>conftest.$ac_ext
13627 cat >>conftest.$ac_ext <<_ACEOF
13628 /* end confdefs.h. */
13629
13630 #if HAVE_X11_XLIB_H
13631 #include <X11/Xlib.h>
13632 #endif
13633
13634
13635 #include <$ac_header>
13636 _ACEOF
13637 rm -f conftest.$ac_objext
13638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13639 (eval $ac_compile) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
13643 { ac_try='test -s conftest.$ac_objext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 eval "$as_ac_Header=yes"
13650 else
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13653
13654 eval "$as_ac_Header=no"
13655 fi
13656 rm -f conftest.$ac_objext conftest.$ac_ext
13657 fi
13658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13661 cat >>confdefs.h <<_ACEOF
13662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13663 _ACEOF
13664
13665 fi
13666
13667 done
13668
13669 fi
13670 fi
13671
13672
13673 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13674 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13675 if test "${ac_cv_c_const+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 else
13678 cat >conftest.$ac_ext <<_ACEOF
13679 #line $LINENO "configure"
13680 /* confdefs.h. */
13681 _ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13685
13686 int
13687 main ()
13688 {
13689 /* FIXME: Include the comments suggested by Paul. */
13690 #ifndef __cplusplus
13691 /* Ultrix mips cc rejects this. */
13692 typedef int charset[2];
13693 const charset x;
13694 /* SunOS 4.1.1 cc rejects this. */
13695 char const *const *ccp;
13696 char **p;
13697 /* NEC SVR4.0.2 mips cc rejects this. */
13698 struct point {int x, y;};
13699 static struct point const zero = {0,0};
13700 /* AIX XL C 1.02.0.0 rejects this.
13701 It does not let you subtract one const X* pointer from another in
13702 an arm of an if-expression whose if-part is not a constant
13703 expression */
13704 const char *g = "string";
13705 ccp = &g + (g ? g-g : 0);
13706 /* HPUX 7.0 cc rejects these. */
13707 ++ccp;
13708 p = (char**) ccp;
13709 ccp = (char const *const *) p;
13710 { /* SCO 3.2v4 cc rejects this. */
13711 char *t;
13712 char const *s = 0 ? (char *) 0 : (char const *) 0;
13713
13714 *t++ = 0;
13715 }
13716 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13717 int x[] = {25, 17};
13718 const int *foo = &x[0];
13719 ++foo;
13720 }
13721 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13722 typedef const int *iptr;
13723 iptr p = 0;
13724 ++p;
13725 }
13726 { /* AIX XL C 1.02.0.0 rejects this saying
13727 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13728 struct s { int j; const int *ap[3]; };
13729 struct s *b; b->j = 5;
13730 }
13731 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13732 const int foo = 10;
13733 }
13734 #endif
13735
13736 ;
13737 return 0;
13738 }
13739 _ACEOF
13740 rm -f conftest.$ac_objext
13741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13742 (eval $ac_compile) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -s conftest.$ac_objext'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_cv_c_const=yes
13753 else
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13756
13757 ac_cv_c_const=no
13758 fi
13759 rm -f conftest.$ac_objext conftest.$ac_ext
13760 fi
13761 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13762 echo "${ECHO_T}$ac_cv_c_const" >&6
13763 if test $ac_cv_c_const = no; then
13764
13765 cat >>confdefs.h <<\_ACEOF
13766 #define const
13767 _ACEOF
13768
13769 fi
13770
13771 echo "$as_me:$LINENO: checking for inline" >&5
13772 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13773 if test "${ac_cv_c_inline+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776 ac_cv_c_inline=no
13777 for ac_kw in inline __inline__ __inline; do
13778 cat >conftest.$ac_ext <<_ACEOF
13779 #line $LINENO "configure"
13780 /* confdefs.h. */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13785 #ifndef __cplusplus
13786 typedef int foo_t;
13787 static $ac_kw foo_t static_foo () {return 0; }
13788 $ac_kw foo_t foo () {return 0; }
13789 #endif
13790
13791 _ACEOF
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794 (eval $ac_compile) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -s conftest.$ac_objext'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 ac_cv_c_inline=$ac_kw; break
13805 else
13806 echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13808
13809 fi
13810 rm -f conftest.$ac_objext conftest.$ac_ext
13811 done
13812
13813 fi
13814 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13815 echo "${ECHO_T}$ac_cv_c_inline" >&6
13816 case $ac_cv_c_inline in
13817 inline | yes) ;;
13818 no)
13819 cat >>confdefs.h <<\_ACEOF
13820 #define inline
13821 _ACEOF
13822 ;;
13823 *) cat >>confdefs.h <<_ACEOF
13824 #define inline $ac_cv_c_inline
13825 _ACEOF
13826 ;;
13827 esac
13828
13829
13830 echo "$as_me:$LINENO: checking for char" >&5
13831 echo $ECHO_N "checking for char... $ECHO_C" >&6
13832 if test "${ac_cv_type_char+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835 cat >conftest.$ac_ext <<_ACEOF
13836 #line $LINENO "configure"
13837 /* confdefs.h. */
13838 _ACEOF
13839 cat confdefs.h >>conftest.$ac_ext
13840 cat >>conftest.$ac_ext <<_ACEOF
13841 /* end confdefs.h. */
13842 $ac_includes_default
13843 int
13844 main ()
13845 {
13846 if ((char *) 0)
13847 return 0;
13848 if (sizeof (char))
13849 return 0;
13850 ;
13851 return 0;
13852 }
13853 _ACEOF
13854 rm -f conftest.$ac_objext
13855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13856 (eval $ac_compile) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
13860 { ac_try='test -s conftest.$ac_objext'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 ac_cv_type_char=yes
13867 else
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13870
13871 ac_cv_type_char=no
13872 fi
13873 rm -f conftest.$ac_objext conftest.$ac_ext
13874 fi
13875 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13876 echo "${ECHO_T}$ac_cv_type_char" >&6
13877
13878 echo "$as_me:$LINENO: checking size of char" >&5
13879 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13880 if test "${ac_cv_sizeof_char+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13882 else
13883 if test "$ac_cv_type_char" = yes; then
13884 # The cast to unsigned long works around a bug in the HP C Compiler
13885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13887 # This bug is HP SR number 8606223364.
13888 if test "$cross_compiling" = yes; then
13889 # Depending upon the size, compute the lo and hi bounds.
13890 cat >conftest.$ac_ext <<_ACEOF
13891 #line $LINENO "configure"
13892 /* confdefs.h. */
13893 _ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h. */
13897 $ac_includes_default
13898 int
13899 main ()
13900 {
13901 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13902 test_array [0] = 0
13903
13904 ;
13905 return 0;
13906 }
13907 _ACEOF
13908 rm -f conftest.$ac_objext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13910 (eval $ac_compile) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -s conftest.$ac_objext'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; }; then
13920 ac_lo=0 ac_mid=0
13921 while :; do
13922 cat >conftest.$ac_ext <<_ACEOF
13923 #line $LINENO "configure"
13924 /* confdefs.h. */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 int
13931 main ()
13932 {
13933 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13934 test_array [0] = 0
13935
13936 ;
13937 return 0;
13938 }
13939 _ACEOF
13940 rm -f conftest.$ac_objext
13941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13942 (eval $ac_compile) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -s conftest.$ac_objext'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 ac_hi=$ac_mid; break
13953 else
13954 echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13956
13957 ac_lo=`expr $ac_mid + 1`
13958 if test $ac_lo -le $ac_mid; then
13959 ac_lo= ac_hi=
13960 break
13961 fi
13962 ac_mid=`expr 2 '*' $ac_mid + 1`
13963 fi
13964 rm -f conftest.$ac_objext conftest.$ac_ext
13965 done
13966 else
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13969
13970 cat >conftest.$ac_ext <<_ACEOF
13971 #line $LINENO "configure"
13972 /* confdefs.h. */
13973 _ACEOF
13974 cat confdefs.h >>conftest.$ac_ext
13975 cat >>conftest.$ac_ext <<_ACEOF
13976 /* end confdefs.h. */
13977 $ac_includes_default
13978 int
13979 main ()
13980 {
13981 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13982 test_array [0] = 0
13983
13984 ;
13985 return 0;
13986 }
13987 _ACEOF
13988 rm -f conftest.$ac_objext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990 (eval $ac_compile) 2>&5
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
13994 { ac_try='test -s conftest.$ac_objext'
13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13997 ac_status=$?
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_hi=-1 ac_mid=-1
14001 while :; do
14002 cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 /* confdefs.h. */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 $ac_includes_default
14010 int
14011 main ()
14012 {
14013 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14014 test_array [0] = 0
14015
14016 ;
14017 return 0;
14018 }
14019 _ACEOF
14020 rm -f conftest.$ac_objext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14022 (eval $ac_compile) 2>&5
14023 ac_status=$?
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
14026 { ac_try='test -s conftest.$ac_objext'
14027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028 (eval $ac_try) 2>&5
14029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
14032 ac_lo=$ac_mid; break
14033 else
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14036
14037 ac_hi=`expr '(' $ac_mid ')' - 1`
14038 if test $ac_mid -le $ac_hi; then
14039 ac_lo= ac_hi=
14040 break
14041 fi
14042 ac_mid=`expr 2 '*' $ac_mid`
14043 fi
14044 rm -f conftest.$ac_objext conftest.$ac_ext
14045 done
14046 else
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14049
14050 ac_lo= ac_hi=
14051 fi
14052 rm -f conftest.$ac_objext conftest.$ac_ext
14053 fi
14054 rm -f conftest.$ac_objext conftest.$ac_ext
14055 # Binary search between lo and hi bounds.
14056 while test "x$ac_lo" != "x$ac_hi"; do
14057 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14058 cat >conftest.$ac_ext <<_ACEOF
14059 #line $LINENO "configure"
14060 /* confdefs.h. */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 $ac_includes_default
14066 int
14067 main ()
14068 {
14069 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14070 test_array [0] = 0
14071
14072 ;
14073 return 0;
14074 }
14075 _ACEOF
14076 rm -f conftest.$ac_objext
14077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14078 (eval $ac_compile) 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try='test -s conftest.$ac_objext'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }; then
14088 ac_hi=$ac_mid
14089 else
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093 ac_lo=`expr '(' $ac_mid ')' + 1`
14094 fi
14095 rm -f conftest.$ac_objext conftest.$ac_ext
14096 done
14097 case $ac_lo in
14098 ?*) ac_cv_sizeof_char=$ac_lo;;
14099 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14100 See \`config.log' for more details." >&5
14101 echo "$as_me: error: cannot compute sizeof (char), 77
14102 See \`config.log' for more details." >&2;}
14103 { (exit 1); exit 1; }; } ;;
14104 esac
14105 else
14106 if test "$cross_compiling" = yes; then
14107 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14108 See \`config.log' for more details." >&5
14109 echo "$as_me: error: cannot run test program while cross compiling
14110 See \`config.log' for more details." >&2;}
14111 { (exit 1); exit 1; }; }
14112 else
14113 cat >conftest.$ac_ext <<_ACEOF
14114 #line $LINENO "configure"
14115 /* confdefs.h. */
14116 _ACEOF
14117 cat confdefs.h >>conftest.$ac_ext
14118 cat >>conftest.$ac_ext <<_ACEOF
14119 /* end confdefs.h. */
14120 $ac_includes_default
14121 long longval () { return (long) (sizeof (char)); }
14122 unsigned long ulongval () { return (long) (sizeof (char)); }
14123 #include <stdio.h>
14124 #include <stdlib.h>
14125 int
14126 main ()
14127 {
14128
14129 FILE *f = fopen ("conftest.val", "w");
14130 if (! f)
14131 exit (1);
14132 if (((long) (sizeof (char))) < 0)
14133 {
14134 long i = longval ();
14135 if (i != ((long) (sizeof (char))))
14136 exit (1);
14137 fprintf (f, "%ld\n", i);
14138 }
14139 else
14140 {
14141 unsigned long i = ulongval ();
14142 if (i != ((long) (sizeof (char))))
14143 exit (1);
14144 fprintf (f, "%lu\n", i);
14145 }
14146 exit (ferror (f) || fclose (f) != 0);
14147
14148 ;
14149 return 0;
14150 }
14151 _ACEOF
14152 rm -f conftest$ac_exeext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14154 (eval $ac_link) 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14160 ac_status=$?
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; }; then
14163 ac_cv_sizeof_char=`cat conftest.val`
14164 else
14165 echo "$as_me: program exited with status $ac_status" >&5
14166 echo "$as_me: failed program was:" >&5
14167 sed 's/^/| /' conftest.$ac_ext >&5
14168
14169 ( exit $ac_status )
14170 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14171 See \`config.log' for more details." >&5
14172 echo "$as_me: error: cannot compute sizeof (char), 77
14173 See \`config.log' for more details." >&2;}
14174 { (exit 1); exit 1; }; }
14175 fi
14176 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14177 fi
14178 fi
14179 rm -f conftest.val
14180 else
14181 ac_cv_sizeof_char=0
14182 fi
14183 fi
14184 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14185 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14186 cat >>confdefs.h <<_ACEOF
14187 #define SIZEOF_CHAR $ac_cv_sizeof_char
14188 _ACEOF
14189
14190
14191 echo "$as_me:$LINENO: checking for short" >&5
14192 echo $ECHO_N "checking for short... $ECHO_C" >&6
14193 if test "${ac_cv_type_short+set}" = set; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14195 else
14196 cat >conftest.$ac_ext <<_ACEOF
14197 #line $LINENO "configure"
14198 /* confdefs.h. */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 $ac_includes_default
14204 int
14205 main ()
14206 {
14207 if ((short *) 0)
14208 return 0;
14209 if (sizeof (short))
14210 return 0;
14211 ;
14212 return 0;
14213 }
14214 _ACEOF
14215 rm -f conftest.$ac_objext
14216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14217 (eval $ac_compile) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try='test -s conftest.$ac_objext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_cv_type_short=yes
14228 else
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14231
14232 ac_cv_type_short=no
14233 fi
14234 rm -f conftest.$ac_objext conftest.$ac_ext
14235 fi
14236 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14237 echo "${ECHO_T}$ac_cv_type_short" >&6
14238
14239 echo "$as_me:$LINENO: checking size of short" >&5
14240 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14241 if test "${ac_cv_sizeof_short+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244 if test "$ac_cv_type_short" = yes; then
14245 # The cast to unsigned long works around a bug in the HP C Compiler
14246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14248 # This bug is HP SR number 8606223364.
14249 if test "$cross_compiling" = yes; then
14250 # Depending upon the size, compute the lo and hi bounds.
14251 cat >conftest.$ac_ext <<_ACEOF
14252 #line $LINENO "configure"
14253 /* confdefs.h. */
14254 _ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h. */
14258 $ac_includes_default
14259 int
14260 main ()
14261 {
14262 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14263 test_array [0] = 0
14264
14265 ;
14266 return 0;
14267 }
14268 _ACEOF
14269 rm -f conftest.$ac_objext
14270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14271 (eval $ac_compile) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
14275 { ac_try='test -s conftest.$ac_objext'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 ac_lo=0 ac_mid=0
14282 while :; do
14283 cat >conftest.$ac_ext <<_ACEOF
14284 #line $LINENO "configure"
14285 /* confdefs.h. */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 $ac_includes_default
14291 int
14292 main ()
14293 {
14294 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14295 test_array [0] = 0
14296
14297 ;
14298 return 0;
14299 }
14300 _ACEOF
14301 rm -f conftest.$ac_objext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303 (eval $ac_compile) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -s conftest.$ac_objext'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_hi=$ac_mid; break
14314 else
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14317
14318 ac_lo=`expr $ac_mid + 1`
14319 if test $ac_lo -le $ac_mid; then
14320 ac_lo= ac_hi=
14321 break
14322 fi
14323 ac_mid=`expr 2 '*' $ac_mid + 1`
14324 fi
14325 rm -f conftest.$ac_objext conftest.$ac_ext
14326 done
14327 else
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331 cat >conftest.$ac_ext <<_ACEOF
14332 #line $LINENO "configure"
14333 /* confdefs.h. */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14338 $ac_includes_default
14339 int
14340 main ()
14341 {
14342 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14343 test_array [0] = 0
14344
14345 ;
14346 return 0;
14347 }
14348 _ACEOF
14349 rm -f conftest.$ac_objext
14350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14351 (eval $ac_compile) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
14355 { ac_try='test -s conftest.$ac_objext'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 ac_hi=-1 ac_mid=-1
14362 while :; do
14363 cat >conftest.$ac_ext <<_ACEOF
14364 #line $LINENO "configure"
14365 /* confdefs.h. */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 $ac_includes_default
14371 int
14372 main ()
14373 {
14374 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14375 test_array [0] = 0
14376
14377 ;
14378 return 0;
14379 }
14380 _ACEOF
14381 rm -f conftest.$ac_objext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14383 (eval $ac_compile) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
14387 { ac_try='test -s conftest.$ac_objext'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 ac_lo=$ac_mid; break
14394 else
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14397
14398 ac_hi=`expr '(' $ac_mid ')' - 1`
14399 if test $ac_mid -le $ac_hi; then
14400 ac_lo= ac_hi=
14401 break
14402 fi
14403 ac_mid=`expr 2 '*' $ac_mid`
14404 fi
14405 rm -f conftest.$ac_objext conftest.$ac_ext
14406 done
14407 else
14408 echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14410
14411 ac_lo= ac_hi=
14412 fi
14413 rm -f conftest.$ac_objext conftest.$ac_ext
14414 fi
14415 rm -f conftest.$ac_objext conftest.$ac_ext
14416 # Binary search between lo and hi bounds.
14417 while test "x$ac_lo" != "x$ac_hi"; do
14418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14419 cat >conftest.$ac_ext <<_ACEOF
14420 #line $LINENO "configure"
14421 /* confdefs.h. */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14426 $ac_includes_default
14427 int
14428 main ()
14429 {
14430 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14431 test_array [0] = 0
14432
14433 ;
14434 return 0;
14435 }
14436 _ACEOF
14437 rm -f conftest.$ac_objext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14439 (eval $ac_compile) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } &&
14443 { ac_try='test -s conftest.$ac_objext'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 ac_hi=$ac_mid
14450 else
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14453
14454 ac_lo=`expr '(' $ac_mid ')' + 1`
14455 fi
14456 rm -f conftest.$ac_objext conftest.$ac_ext
14457 done
14458 case $ac_lo in
14459 ?*) ac_cv_sizeof_short=$ac_lo;;
14460 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14461 See \`config.log' for more details." >&5
14462 echo "$as_me: error: cannot compute sizeof (short), 77
14463 See \`config.log' for more details." >&2;}
14464 { (exit 1); exit 1; }; } ;;
14465 esac
14466 else
14467 if test "$cross_compiling" = yes; then
14468 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14469 See \`config.log' for more details." >&5
14470 echo "$as_me: error: cannot run test program while cross compiling
14471 See \`config.log' for more details." >&2;}
14472 { (exit 1); exit 1; }; }
14473 else
14474 cat >conftest.$ac_ext <<_ACEOF
14475 #line $LINENO "configure"
14476 /* confdefs.h. */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 $ac_includes_default
14482 long longval () { return (long) (sizeof (short)); }
14483 unsigned long ulongval () { return (long) (sizeof (short)); }
14484 #include <stdio.h>
14485 #include <stdlib.h>
14486 int
14487 main ()
14488 {
14489
14490 FILE *f = fopen ("conftest.val", "w");
14491 if (! f)
14492 exit (1);
14493 if (((long) (sizeof (short))) < 0)
14494 {
14495 long i = longval ();
14496 if (i != ((long) (sizeof (short))))
14497 exit (1);
14498 fprintf (f, "%ld\n", i);
14499 }
14500 else
14501 {
14502 unsigned long i = ulongval ();
14503 if (i != ((long) (sizeof (short))))
14504 exit (1);
14505 fprintf (f, "%lu\n", i);
14506 }
14507 exit (ferror (f) || fclose (f) != 0);
14508
14509 ;
14510 return 0;
14511 }
14512 _ACEOF
14513 rm -f conftest$ac_exeext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14515 (eval $ac_link) 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
14524 ac_cv_sizeof_short=`cat conftest.val`
14525 else
14526 echo "$as_me: program exited with status $ac_status" >&5
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14529
14530 ( exit $ac_status )
14531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14532 See \`config.log' for more details." >&5
14533 echo "$as_me: error: cannot compute sizeof (short), 77
14534 See \`config.log' for more details." >&2;}
14535 { (exit 1); exit 1; }; }
14536 fi
14537 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14538 fi
14539 fi
14540 rm -f conftest.val
14541 else
14542 ac_cv_sizeof_short=0
14543 fi
14544 fi
14545 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14546 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14547 cat >>confdefs.h <<_ACEOF
14548 #define SIZEOF_SHORT $ac_cv_sizeof_short
14549 _ACEOF
14550
14551
14552 echo "$as_me:$LINENO: checking for void *" >&5
14553 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14554 if test "${ac_cv_type_void_p+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14556 else
14557 cat >conftest.$ac_ext <<_ACEOF
14558 #line $LINENO "configure"
14559 /* confdefs.h. */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 $ac_includes_default
14565 int
14566 main ()
14567 {
14568 if ((void * *) 0)
14569 return 0;
14570 if (sizeof (void *))
14571 return 0;
14572 ;
14573 return 0;
14574 }
14575 _ACEOF
14576 rm -f conftest.$ac_objext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14578 (eval $ac_compile) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 ac_cv_type_void_p=yes
14589 else
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14592
14593 ac_cv_type_void_p=no
14594 fi
14595 rm -f conftest.$ac_objext conftest.$ac_ext
14596 fi
14597 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14598 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14599
14600 echo "$as_me:$LINENO: checking size of void *" >&5
14601 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14602 if test "${ac_cv_sizeof_void_p+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605 if test "$ac_cv_type_void_p" = yes; then
14606 # The cast to unsigned long works around a bug in the HP C Compiler
14607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14609 # This bug is HP SR number 8606223364.
14610 if test "$cross_compiling" = yes; then
14611 # Depending upon the size, compute the lo and hi bounds.
14612 cat >conftest.$ac_ext <<_ACEOF
14613 #line $LINENO "configure"
14614 /* confdefs.h. */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14619 $ac_includes_default
14620 int
14621 main ()
14622 {
14623 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14624 test_array [0] = 0
14625
14626 ;
14627 return 0;
14628 }
14629 _ACEOF
14630 rm -f conftest.$ac_objext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14632 (eval $ac_compile) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try='test -s conftest.$ac_objext'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14642 ac_lo=0 ac_mid=0
14643 while :; do
14644 cat >conftest.$ac_ext <<_ACEOF
14645 #line $LINENO "configure"
14646 /* confdefs.h. */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 $ac_includes_default
14652 int
14653 main ()
14654 {
14655 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14656 test_array [0] = 0
14657
14658 ;
14659 return 0;
14660 }
14661 _ACEOF
14662 rm -f conftest.$ac_objext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664 (eval $ac_compile) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
14668 { ac_try='test -s conftest.$ac_objext'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14674 ac_hi=$ac_mid; break
14675 else
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14678
14679 ac_lo=`expr $ac_mid + 1`
14680 if test $ac_lo -le $ac_mid; then
14681 ac_lo= ac_hi=
14682 break
14683 fi
14684 ac_mid=`expr 2 '*' $ac_mid + 1`
14685 fi
14686 rm -f conftest.$ac_objext conftest.$ac_ext
14687 done
14688 else
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 cat >conftest.$ac_ext <<_ACEOF
14693 #line $LINENO "configure"
14694 /* confdefs.h. */
14695 _ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h. */
14699 $ac_includes_default
14700 int
14701 main ()
14702 {
14703 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14704 test_array [0] = 0
14705
14706 ;
14707 return 0;
14708 }
14709 _ACEOF
14710 rm -f conftest.$ac_objext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712 (eval $ac_compile) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } &&
14716 { ac_try='test -s conftest.$ac_objext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_hi=-1 ac_mid=-1
14723 while :; do
14724 cat >conftest.$ac_ext <<_ACEOF
14725 #line $LINENO "configure"
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 $ac_includes_default
14732 int
14733 main ()
14734 {
14735 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14736 test_array [0] = 0
14737
14738 ;
14739 return 0;
14740 }
14741 _ACEOF
14742 rm -f conftest.$ac_objext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744 (eval $ac_compile) 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } &&
14748 { ac_try='test -s conftest.$ac_objext'
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then
14754 ac_lo=$ac_mid; break
14755 else
14756 echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14758
14759 ac_hi=`expr '(' $ac_mid ')' - 1`
14760 if test $ac_mid -le $ac_hi; then
14761 ac_lo= ac_hi=
14762 break
14763 fi
14764 ac_mid=`expr 2 '*' $ac_mid`
14765 fi
14766 rm -f conftest.$ac_objext conftest.$ac_ext
14767 done
14768 else
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772 ac_lo= ac_hi=
14773 fi
14774 rm -f conftest.$ac_objext conftest.$ac_ext
14775 fi
14776 rm -f conftest.$ac_objext conftest.$ac_ext
14777 # Binary search between lo and hi bounds.
14778 while test "x$ac_lo" != "x$ac_hi"; do
14779 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14780 cat >conftest.$ac_ext <<_ACEOF
14781 #line $LINENO "configure"
14782 /* confdefs.h. */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 $ac_includes_default
14788 int
14789 main ()
14790 {
14791 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14792 test_array [0] = 0
14793
14794 ;
14795 return 0;
14796 }
14797 _ACEOF
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_hi=$ac_mid
14811 else
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14814
14815 ac_lo=`expr '(' $ac_mid ')' + 1`
14816 fi
14817 rm -f conftest.$ac_objext conftest.$ac_ext
14818 done
14819 case $ac_lo in
14820 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14821 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14822 See \`config.log' for more details." >&5
14823 echo "$as_me: error: cannot compute sizeof (void *), 77
14824 See \`config.log' for more details." >&2;}
14825 { (exit 1); exit 1; }; } ;;
14826 esac
14827 else
14828 if test "$cross_compiling" = yes; then
14829 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14830 See \`config.log' for more details." >&5
14831 echo "$as_me: error: cannot run test program while cross compiling
14832 See \`config.log' for more details." >&2;}
14833 { (exit 1); exit 1; }; }
14834 else
14835 cat >conftest.$ac_ext <<_ACEOF
14836 #line $LINENO "configure"
14837 /* confdefs.h. */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 $ac_includes_default
14843 long longval () { return (long) (sizeof (void *)); }
14844 unsigned long ulongval () { return (long) (sizeof (void *)); }
14845 #include <stdio.h>
14846 #include <stdlib.h>
14847 int
14848 main ()
14849 {
14850
14851 FILE *f = fopen ("conftest.val", "w");
14852 if (! f)
14853 exit (1);
14854 if (((long) (sizeof (void *))) < 0)
14855 {
14856 long i = longval ();
14857 if (i != ((long) (sizeof (void *))))
14858 exit (1);
14859 fprintf (f, "%ld\n", i);
14860 }
14861 else
14862 {
14863 unsigned long i = ulongval ();
14864 if (i != ((long) (sizeof (void *))))
14865 exit (1);
14866 fprintf (f, "%lu\n", i);
14867 }
14868 exit (ferror (f) || fclose (f) != 0);
14869
14870 ;
14871 return 0;
14872 }
14873 _ACEOF
14874 rm -f conftest$ac_exeext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14876 (eval $ac_link) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_cv_sizeof_void_p=`cat conftest.val`
14886 else
14887 echo "$as_me: program exited with status $ac_status" >&5
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14890
14891 ( exit $ac_status )
14892 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14893 See \`config.log' for more details." >&5
14894 echo "$as_me: error: cannot compute sizeof (void *), 77
14895 See \`config.log' for more details." >&2;}
14896 { (exit 1); exit 1; }; }
14897 fi
14898 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14899 fi
14900 fi
14901 rm -f conftest.val
14902 else
14903 ac_cv_sizeof_void_p=0
14904 fi
14905 fi
14906 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14907 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14908 cat >>confdefs.h <<_ACEOF
14909 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14910 _ACEOF
14911
14912
14913 echo "$as_me:$LINENO: checking for int" >&5
14914 echo $ECHO_N "checking for int... $ECHO_C" >&6
14915 if test "${ac_cv_type_int+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918 cat >conftest.$ac_ext <<_ACEOF
14919 #line $LINENO "configure"
14920 /* confdefs.h. */
14921 _ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14925 $ac_includes_default
14926 int
14927 main ()
14928 {
14929 if ((int *) 0)
14930 return 0;
14931 if (sizeof (int))
14932 return 0;
14933 ;
14934 return 0;
14935 }
14936 _ACEOF
14937 rm -f conftest.$ac_objext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14939 (eval $ac_compile) 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
14943 { ac_try='test -s conftest.$ac_objext'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; }; then
14949 ac_cv_type_int=yes
14950 else
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954 ac_cv_type_int=no
14955 fi
14956 rm -f conftest.$ac_objext conftest.$ac_ext
14957 fi
14958 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14959 echo "${ECHO_T}$ac_cv_type_int" >&6
14960
14961 echo "$as_me:$LINENO: checking size of int" >&5
14962 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14963 if test "${ac_cv_sizeof_int+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966 if test "$ac_cv_type_int" = yes; then
14967 # The cast to unsigned long works around a bug in the HP C Compiler
14968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14970 # This bug is HP SR number 8606223364.
14971 if test "$cross_compiling" = yes; then
14972 # Depending upon the size, compute the lo and hi bounds.
14973 cat >conftest.$ac_ext <<_ACEOF
14974 #line $LINENO "configure"
14975 /* confdefs.h. */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 $ac_includes_default
14981 int
14982 main ()
14983 {
14984 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14985 test_array [0] = 0
14986
14987 ;
14988 return 0;
14989 }
14990 _ACEOF
14991 rm -f conftest.$ac_objext
14992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14993 (eval $ac_compile) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -s conftest.$ac_objext'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15000 ac_status=$?
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15003 ac_lo=0 ac_mid=0
15004 while :; do
15005 cat >conftest.$ac_ext <<_ACEOF
15006 #line $LINENO "configure"
15007 /* confdefs.h. */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 $ac_includes_default
15013 int
15014 main ()
15015 {
15016 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15017 test_array [0] = 0
15018
15019 ;
15020 return 0;
15021 }
15022 _ACEOF
15023 rm -f conftest.$ac_objext
15024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15025 (eval $ac_compile) 2>&5
15026 ac_status=$?
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -s conftest.$ac_objext'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; }; then
15035 ac_hi=$ac_mid; break
15036 else
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15039
15040 ac_lo=`expr $ac_mid + 1`
15041 if test $ac_lo -le $ac_mid; then
15042 ac_lo= ac_hi=
15043 break
15044 fi
15045 ac_mid=`expr 2 '*' $ac_mid + 1`
15046 fi
15047 rm -f conftest.$ac_objext conftest.$ac_ext
15048 done
15049 else
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15052
15053 cat >conftest.$ac_ext <<_ACEOF
15054 #line $LINENO "configure"
15055 /* confdefs.h. */
15056 _ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h. */
15060 $ac_includes_default
15061 int
15062 main ()
15063 {
15064 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15065 test_array [0] = 0
15066
15067 ;
15068 return 0;
15069 }
15070 _ACEOF
15071 rm -f conftest.$ac_objext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15073 (eval $ac_compile) 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } &&
15077 { ac_try='test -s conftest.$ac_objext'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
15083 ac_hi=-1 ac_mid=-1
15084 while :; do
15085 cat >conftest.$ac_ext <<_ACEOF
15086 #line $LINENO "configure"
15087 /* confdefs.h. */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 $ac_includes_default
15093 int
15094 main ()
15095 {
15096 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15097 test_array [0] = 0
15098
15099 ;
15100 return 0;
15101 }
15102 _ACEOF
15103 rm -f conftest.$ac_objext
15104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15105 (eval $ac_compile) 2>&5
15106 ac_status=$?
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } &&
15109 { ac_try='test -s conftest.$ac_objext'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; }; then
15115 ac_lo=$ac_mid; break
15116 else
15117 echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15119
15120 ac_hi=`expr '(' $ac_mid ')' - 1`
15121 if test $ac_mid -le $ac_hi; then
15122 ac_lo= ac_hi=
15123 break
15124 fi
15125 ac_mid=`expr 2 '*' $ac_mid`
15126 fi
15127 rm -f conftest.$ac_objext conftest.$ac_ext
15128 done
15129 else
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133 ac_lo= ac_hi=
15134 fi
15135 rm -f conftest.$ac_objext conftest.$ac_ext
15136 fi
15137 rm -f conftest.$ac_objext conftest.$ac_ext
15138 # Binary search between lo and hi bounds.
15139 while test "x$ac_lo" != "x$ac_hi"; do
15140 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15141 cat >conftest.$ac_ext <<_ACEOF
15142 #line $LINENO "configure"
15143 /* confdefs.h. */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 $ac_includes_default
15149 int
15150 main ()
15151 {
15152 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15153 test_array [0] = 0
15154
15155 ;
15156 return 0;
15157 }
15158 _ACEOF
15159 rm -f conftest.$ac_objext
15160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15161 (eval $ac_compile) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } &&
15165 { ac_try='test -s conftest.$ac_objext'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_hi=$ac_mid
15172 else
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176 ac_lo=`expr '(' $ac_mid ')' + 1`
15177 fi
15178 rm -f conftest.$ac_objext conftest.$ac_ext
15179 done
15180 case $ac_lo in
15181 ?*) ac_cv_sizeof_int=$ac_lo;;
15182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15183 See \`config.log' for more details." >&5
15184 echo "$as_me: error: cannot compute sizeof (int), 77
15185 See \`config.log' for more details." >&2;}
15186 { (exit 1); exit 1; }; } ;;
15187 esac
15188 else
15189 if test "$cross_compiling" = yes; then
15190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15191 See \`config.log' for more details." >&5
15192 echo "$as_me: error: cannot run test program while cross compiling
15193 See \`config.log' for more details." >&2;}
15194 { (exit 1); exit 1; }; }
15195 else
15196 cat >conftest.$ac_ext <<_ACEOF
15197 #line $LINENO "configure"
15198 /* confdefs.h. */
15199 _ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15203 $ac_includes_default
15204 long longval () { return (long) (sizeof (int)); }
15205 unsigned long ulongval () { return (long) (sizeof (int)); }
15206 #include <stdio.h>
15207 #include <stdlib.h>
15208 int
15209 main ()
15210 {
15211
15212 FILE *f = fopen ("conftest.val", "w");
15213 if (! f)
15214 exit (1);
15215 if (((long) (sizeof (int))) < 0)
15216 {
15217 long i = longval ();
15218 if (i != ((long) (sizeof (int))))
15219 exit (1);
15220 fprintf (f, "%ld\n", i);
15221 }
15222 else
15223 {
15224 unsigned long i = ulongval ();
15225 if (i != ((long) (sizeof (int))))
15226 exit (1);
15227 fprintf (f, "%lu\n", i);
15228 }
15229 exit (ferror (f) || fclose (f) != 0);
15230
15231 ;
15232 return 0;
15233 }
15234 _ACEOF
15235 rm -f conftest$ac_exeext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15237 (eval $ac_link) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_cv_sizeof_int=`cat conftest.val`
15247 else
15248 echo "$as_me: program exited with status $ac_status" >&5
15249 echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15251
15252 ( exit $ac_status )
15253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15254 See \`config.log' for more details." >&5
15255 echo "$as_me: error: cannot compute sizeof (int), 77
15256 See \`config.log' for more details." >&2;}
15257 { (exit 1); exit 1; }; }
15258 fi
15259 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15260 fi
15261 fi
15262 rm -f conftest.val
15263 else
15264 ac_cv_sizeof_int=0
15265 fi
15266 fi
15267 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15268 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15269 cat >>confdefs.h <<_ACEOF
15270 #define SIZEOF_INT $ac_cv_sizeof_int
15271 _ACEOF
15272
15273
15274 echo "$as_me:$LINENO: checking for long" >&5
15275 echo $ECHO_N "checking for long... $ECHO_C" >&6
15276 if test "${ac_cv_type_long+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 else
15279 cat >conftest.$ac_ext <<_ACEOF
15280 #line $LINENO "configure"
15281 /* confdefs.h. */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15286 $ac_includes_default
15287 int
15288 main ()
15289 {
15290 if ((long *) 0)
15291 return 0;
15292 if (sizeof (long))
15293 return 0;
15294 ;
15295 return 0;
15296 }
15297 _ACEOF
15298 rm -f conftest.$ac_objext
15299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15300 (eval $ac_compile) 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -s conftest.$ac_objext'
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; }; then
15310 ac_cv_type_long=yes
15311 else
15312 echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15314
15315 ac_cv_type_long=no
15316 fi
15317 rm -f conftest.$ac_objext conftest.$ac_ext
15318 fi
15319 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15320 echo "${ECHO_T}$ac_cv_type_long" >&6
15321
15322 echo "$as_me:$LINENO: checking size of long" >&5
15323 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15324 if test "${ac_cv_sizeof_long+set}" = set; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 else
15327 if test "$ac_cv_type_long" = yes; then
15328 # The cast to unsigned long works around a bug in the HP C Compiler
15329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15331 # This bug is HP SR number 8606223364.
15332 if test "$cross_compiling" = yes; then
15333 # Depending upon the size, compute the lo and hi bounds.
15334 cat >conftest.$ac_ext <<_ACEOF
15335 #line $LINENO "configure"
15336 /* confdefs.h. */
15337 _ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h. */
15341 $ac_includes_default
15342 int
15343 main ()
15344 {
15345 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15346 test_array [0] = 0
15347
15348 ;
15349 return 0;
15350 }
15351 _ACEOF
15352 rm -f conftest.$ac_objext
15353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15354 (eval $ac_compile) 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } &&
15358 { ac_try='test -s conftest.$ac_objext'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then
15364 ac_lo=0 ac_mid=0
15365 while :; do
15366 cat >conftest.$ac_ext <<_ACEOF
15367 #line $LINENO "configure"
15368 /* confdefs.h. */
15369 _ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15373 $ac_includes_default
15374 int
15375 main ()
15376 {
15377 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15378 test_array [0] = 0
15379
15380 ;
15381 return 0;
15382 }
15383 _ACEOF
15384 rm -f conftest.$ac_objext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15386 (eval $ac_compile) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -s conftest.$ac_objext'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 ac_hi=$ac_mid; break
15397 else
15398 echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15400
15401 ac_lo=`expr $ac_mid + 1`
15402 if test $ac_lo -le $ac_mid; then
15403 ac_lo= ac_hi=
15404 break
15405 fi
15406 ac_mid=`expr 2 '*' $ac_mid + 1`
15407 fi
15408 rm -f conftest.$ac_objext conftest.$ac_ext
15409 done
15410 else
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15413
15414 cat >conftest.$ac_ext <<_ACEOF
15415 #line $LINENO "configure"
15416 /* confdefs.h. */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 $ac_includes_default
15422 int
15423 main ()
15424 {
15425 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15426 test_array [0] = 0
15427
15428 ;
15429 return 0;
15430 }
15431 _ACEOF
15432 rm -f conftest.$ac_objext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15434 (eval $ac_compile) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -s conftest.$ac_objext'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 ac_hi=-1 ac_mid=-1
15445 while :; do
15446 cat >conftest.$ac_ext <<_ACEOF
15447 #line $LINENO "configure"
15448 /* confdefs.h. */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 $ac_includes_default
15454 int
15455 main ()
15456 {
15457 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15458 test_array [0] = 0
15459
15460 ;
15461 return 0;
15462 }
15463 _ACEOF
15464 rm -f conftest.$ac_objext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466 (eval $ac_compile) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } &&
15470 { ac_try='test -s conftest.$ac_objext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_lo=$ac_mid; break
15477 else
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15480
15481 ac_hi=`expr '(' $ac_mid ')' - 1`
15482 if test $ac_mid -le $ac_hi; then
15483 ac_lo= ac_hi=
15484 break
15485 fi
15486 ac_mid=`expr 2 '*' $ac_mid`
15487 fi
15488 rm -f conftest.$ac_objext conftest.$ac_ext
15489 done
15490 else
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494 ac_lo= ac_hi=
15495 fi
15496 rm -f conftest.$ac_objext conftest.$ac_ext
15497 fi
15498 rm -f conftest.$ac_objext conftest.$ac_ext
15499 # Binary search between lo and hi bounds.
15500 while test "x$ac_lo" != "x$ac_hi"; do
15501 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15502 cat >conftest.$ac_ext <<_ACEOF
15503 #line $LINENO "configure"
15504 /* confdefs.h. */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 $ac_includes_default
15510 int
15511 main ()
15512 {
15513 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15514 test_array [0] = 0
15515
15516 ;
15517 return 0;
15518 }
15519 _ACEOF
15520 rm -f conftest.$ac_objext
15521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15522 (eval $ac_compile) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } &&
15526 { ac_try='test -s conftest.$ac_objext'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_hi=$ac_mid
15533 else
15534 echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537 ac_lo=`expr '(' $ac_mid ')' + 1`
15538 fi
15539 rm -f conftest.$ac_objext conftest.$ac_ext
15540 done
15541 case $ac_lo in
15542 ?*) ac_cv_sizeof_long=$ac_lo;;
15543 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15544 See \`config.log' for more details." >&5
15545 echo "$as_me: error: cannot compute sizeof (long), 77
15546 See \`config.log' for more details." >&2;}
15547 { (exit 1); exit 1; }; } ;;
15548 esac
15549 else
15550 if test "$cross_compiling" = yes; then
15551 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15552 See \`config.log' for more details." >&5
15553 echo "$as_me: error: cannot run test program while cross compiling
15554 See \`config.log' for more details." >&2;}
15555 { (exit 1); exit 1; }; }
15556 else
15557 cat >conftest.$ac_ext <<_ACEOF
15558 #line $LINENO "configure"
15559 /* confdefs.h. */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 $ac_includes_default
15565 long longval () { return (long) (sizeof (long)); }
15566 unsigned long ulongval () { return (long) (sizeof (long)); }
15567 #include <stdio.h>
15568 #include <stdlib.h>
15569 int
15570 main ()
15571 {
15572
15573 FILE *f = fopen ("conftest.val", "w");
15574 if (! f)
15575 exit (1);
15576 if (((long) (sizeof (long))) < 0)
15577 {
15578 long i = longval ();
15579 if (i != ((long) (sizeof (long))))
15580 exit (1);
15581 fprintf (f, "%ld\n", i);
15582 }
15583 else
15584 {
15585 unsigned long i = ulongval ();
15586 if (i != ((long) (sizeof (long))))
15587 exit (1);
15588 fprintf (f, "%lu\n", i);
15589 }
15590 exit (ferror (f) || fclose (f) != 0);
15591
15592 ;
15593 return 0;
15594 }
15595 _ACEOF
15596 rm -f conftest$ac_exeext
15597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15598 (eval $ac_link) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 ac_cv_sizeof_long=`cat conftest.val`
15608 else
15609 echo "$as_me: program exited with status $ac_status" >&5
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 ( exit $ac_status )
15614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15615 See \`config.log' for more details." >&5
15616 echo "$as_me: error: cannot compute sizeof (long), 77
15617 See \`config.log' for more details." >&2;}
15618 { (exit 1); exit 1; }; }
15619 fi
15620 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15621 fi
15622 fi
15623 rm -f conftest.val
15624 else
15625 ac_cv_sizeof_long=0
15626 fi
15627 fi
15628 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15629 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15630 cat >>confdefs.h <<_ACEOF
15631 #define SIZEOF_LONG $ac_cv_sizeof_long
15632 _ACEOF
15633
15634
15635 echo "$as_me:$LINENO: checking for size_t" >&5
15636 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15637 if test "${ac_cv_type_size_t+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 else
15640 cat >conftest.$ac_ext <<_ACEOF
15641 #line $LINENO "configure"
15642 /* confdefs.h. */
15643 _ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h. */
15647 $ac_includes_default
15648 int
15649 main ()
15650 {
15651 if ((size_t *) 0)
15652 return 0;
15653 if (sizeof (size_t))
15654 return 0;
15655 ;
15656 return 0;
15657 }
15658 _ACEOF
15659 rm -f conftest.$ac_objext
15660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15661 (eval $ac_compile) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -s conftest.$ac_objext'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 ac_cv_type_size_t=yes
15672 else
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15675
15676 ac_cv_type_size_t=no
15677 fi
15678 rm -f conftest.$ac_objext conftest.$ac_ext
15679 fi
15680 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15681 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15682
15683 echo "$as_me:$LINENO: checking size of size_t" >&5
15684 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
15685 if test "${ac_cv_sizeof_size_t+set}" = set; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15687 else
15688 if test "$ac_cv_type_size_t" = yes; then
15689 # The cast to unsigned long works around a bug in the HP C Compiler
15690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15692 # This bug is HP SR number 8606223364.
15693 if test "$cross_compiling" = yes; then
15694 # Depending upon the size, compute the lo and hi bounds.
15695 cat >conftest.$ac_ext <<_ACEOF
15696 #line $LINENO "configure"
15697 /* confdefs.h. */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 $ac_includes_default
15703 int
15704 main ()
15705 {
15706 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
15707 test_array [0] = 0
15708
15709 ;
15710 return 0;
15711 }
15712 _ACEOF
15713 rm -f conftest.$ac_objext
15714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15715 (eval $ac_compile) 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
15719 { ac_try='test -s conftest.$ac_objext'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725 ac_lo=0 ac_mid=0
15726 while :; do
15727 cat >conftest.$ac_ext <<_ACEOF
15728 #line $LINENO "configure"
15729 /* confdefs.h. */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15734 $ac_includes_default
15735 int
15736 main ()
15737 {
15738 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
15739 test_array [0] = 0
15740
15741 ;
15742 return 0;
15743 }
15744 _ACEOF
15745 rm -f conftest.$ac_objext
15746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15747 (eval $ac_compile) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -s conftest.$ac_objext'
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_hi=$ac_mid; break
15758 else
15759 echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15761
15762 ac_lo=`expr $ac_mid + 1`
15763 if test $ac_lo -le $ac_mid; then
15764 ac_lo= ac_hi=
15765 break
15766 fi
15767 ac_mid=`expr 2 '*' $ac_mid + 1`
15768 fi
15769 rm -f conftest.$ac_objext conftest.$ac_ext
15770 done
15771 else
15772 echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15774
15775 cat >conftest.$ac_ext <<_ACEOF
15776 #line $LINENO "configure"
15777 /* confdefs.h. */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 $ac_includes_default
15783 int
15784 main ()
15785 {
15786 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
15787 test_array [0] = 0
15788
15789 ;
15790 return 0;
15791 }
15792 _ACEOF
15793 rm -f conftest.$ac_objext
15794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15795 (eval $ac_compile) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } &&
15799 { ac_try='test -s conftest.$ac_objext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_hi=-1 ac_mid=-1
15806 while :; do
15807 cat >conftest.$ac_ext <<_ACEOF
15808 #line $LINENO "configure"
15809 /* confdefs.h. */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15814 $ac_includes_default
15815 int
15816 main ()
15817 {
15818 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
15819 test_array [0] = 0
15820
15821 ;
15822 return 0;
15823 }
15824 _ACEOF
15825 rm -f conftest.$ac_objext
15826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15827 (eval $ac_compile) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -s conftest.$ac_objext'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 ac_lo=$ac_mid; break
15838 else
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15841
15842 ac_hi=`expr '(' $ac_mid ')' - 1`
15843 if test $ac_mid -le $ac_hi; then
15844 ac_lo= ac_hi=
15845 break
15846 fi
15847 ac_mid=`expr 2 '*' $ac_mid`
15848 fi
15849 rm -f conftest.$ac_objext conftest.$ac_ext
15850 done
15851 else
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15854
15855 ac_lo= ac_hi=
15856 fi
15857 rm -f conftest.$ac_objext conftest.$ac_ext
15858 fi
15859 rm -f conftest.$ac_objext conftest.$ac_ext
15860 # Binary search between lo and hi bounds.
15861 while test "x$ac_lo" != "x$ac_hi"; do
15862 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15863 cat >conftest.$ac_ext <<_ACEOF
15864 #line $LINENO "configure"
15865 /* confdefs.h. */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 $ac_includes_default
15871 int
15872 main ()
15873 {
15874 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
15875 test_array [0] = 0
15876
15877 ;
15878 return 0;
15879 }
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
15887 { ac_try='test -s conftest.$ac_objext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 ac_hi=$ac_mid
15894 else
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898 ac_lo=`expr '(' $ac_mid ')' + 1`
15899 fi
15900 rm -f conftest.$ac_objext conftest.$ac_ext
15901 done
15902 case $ac_lo in
15903 ?*) ac_cv_sizeof_size_t=$ac_lo;;
15904 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
15905 See \`config.log' for more details." >&5
15906 echo "$as_me: error: cannot compute sizeof (size_t), 77
15907 See \`config.log' for more details." >&2;}
15908 { (exit 1); exit 1; }; } ;;
15909 esac
15910 else
15911 if test "$cross_compiling" = yes; then
15912 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15913 See \`config.log' for more details." >&5
15914 echo "$as_me: error: cannot run test program while cross compiling
15915 See \`config.log' for more details." >&2;}
15916 { (exit 1); exit 1; }; }
15917 else
15918 cat >conftest.$ac_ext <<_ACEOF
15919 #line $LINENO "configure"
15920 /* confdefs.h. */
15921 _ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 $ac_includes_default
15926 long longval () { return (long) (sizeof (size_t)); }
15927 unsigned long ulongval () { return (long) (sizeof (size_t)); }
15928 #include <stdio.h>
15929 #include <stdlib.h>
15930 int
15931 main ()
15932 {
15933
15934 FILE *f = fopen ("conftest.val", "w");
15935 if (! f)
15936 exit (1);
15937 if (((long) (sizeof (size_t))) < 0)
15938 {
15939 long i = longval ();
15940 if (i != ((long) (sizeof (size_t))))
15941 exit (1);
15942 fprintf (f, "%ld\n", i);
15943 }
15944 else
15945 {
15946 unsigned long i = ulongval ();
15947 if (i != ((long) (sizeof (size_t))))
15948 exit (1);
15949 fprintf (f, "%lu\n", i);
15950 }
15951 exit (ferror (f) || fclose (f) != 0);
15952
15953 ;
15954 return 0;
15955 }
15956 _ACEOF
15957 rm -f conftest$ac_exeext
15958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15959 (eval $ac_link) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_cv_sizeof_size_t=`cat conftest.val`
15969 else
15970 echo "$as_me: program exited with status $ac_status" >&5
15971 echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15973
15974 ( exit $ac_status )
15975 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
15976 See \`config.log' for more details." >&5
15977 echo "$as_me: error: cannot compute sizeof (size_t), 77
15978 See \`config.log' for more details." >&2;}
15979 { (exit 1); exit 1; }; }
15980 fi
15981 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15982 fi
15983 fi
15984 rm -f conftest.val
15985 else
15986 ac_cv_sizeof_size_t=0
15987 fi
15988 fi
15989 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
15990 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
15991 cat >>confdefs.h <<_ACEOF
15992 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15993 _ACEOF
15994
15995
15996
15997 case "${host}" in
15998 arm-*-linux* )
15999 echo "$as_me:$LINENO: checking for long long" >&5
16000 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16001 if test "${ac_cv_type_long_long+set}" = set; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16003 else
16004 cat >conftest.$ac_ext <<_ACEOF
16005 #line $LINENO "configure"
16006 /* confdefs.h. */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 $ac_includes_default
16012 int
16013 main ()
16014 {
16015 if ((long long *) 0)
16016 return 0;
16017 if (sizeof (long long))
16018 return 0;
16019 ;
16020 return 0;
16021 }
16022 _ACEOF
16023 rm -f conftest.$ac_objext
16024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16025 (eval $ac_compile) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try='test -s conftest.$ac_objext'
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_cv_type_long_long=yes
16036 else
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040 ac_cv_type_long_long=no
16041 fi
16042 rm -f conftest.$ac_objext conftest.$ac_ext
16043 fi
16044 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16045 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16046
16047 echo "$as_me:$LINENO: checking size of long long" >&5
16048 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16049 if test "${ac_cv_sizeof_long_long+set}" = set; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16051 else
16052 if test "$ac_cv_type_long_long" = yes; then
16053 # The cast to unsigned long works around a bug in the HP C Compiler
16054 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16055 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16056 # This bug is HP SR number 8606223364.
16057 if test "$cross_compiling" = yes; then
16058 # Depending upon the size, compute the lo and hi bounds.
16059 cat >conftest.$ac_ext <<_ACEOF
16060 #line $LINENO "configure"
16061 /* confdefs.h. */
16062 _ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16066 $ac_includes_default
16067 int
16068 main ()
16069 {
16070 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16071 test_array [0] = 0
16072
16073 ;
16074 return 0;
16075 }
16076 _ACEOF
16077 rm -f conftest.$ac_objext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079 (eval $ac_compile) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } &&
16083 { ac_try='test -s conftest.$ac_objext'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_lo=0 ac_mid=0
16090 while :; do
16091 cat >conftest.$ac_ext <<_ACEOF
16092 #line $LINENO "configure"
16093 /* confdefs.h. */
16094 _ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16098 $ac_includes_default
16099 int
16100 main ()
16101 {
16102 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16103 test_array [0] = 0
16104
16105 ;
16106 return 0;
16107 }
16108 _ACEOF
16109 rm -f conftest.$ac_objext
16110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16111 (eval $ac_compile) 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
16115 { ac_try='test -s conftest.$ac_objext'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
16121 ac_hi=$ac_mid; break
16122 else
16123 echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16125
16126 ac_lo=`expr $ac_mid + 1`
16127 if test $ac_lo -le $ac_mid; then
16128 ac_lo= ac_hi=
16129 break
16130 fi
16131 ac_mid=`expr 2 '*' $ac_mid + 1`
16132 fi
16133 rm -f conftest.$ac_objext conftest.$ac_ext
16134 done
16135 else
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16138
16139 cat >conftest.$ac_ext <<_ACEOF
16140 #line $LINENO "configure"
16141 /* confdefs.h. */
16142 _ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h. */
16146 $ac_includes_default
16147 int
16148 main ()
16149 {
16150 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16151 test_array [0] = 0
16152
16153 ;
16154 return 0;
16155 }
16156 _ACEOF
16157 rm -f conftest.$ac_objext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16159 (eval $ac_compile) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } &&
16163 { ac_try='test -s conftest.$ac_objext'
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; }; then
16169 ac_hi=-1 ac_mid=-1
16170 while :; do
16171 cat >conftest.$ac_ext <<_ACEOF
16172 #line $LINENO "configure"
16173 /* confdefs.h. */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 $ac_includes_default
16179 int
16180 main ()
16181 {
16182 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16183 test_array [0] = 0
16184
16185 ;
16186 return 0;
16187 }
16188 _ACEOF
16189 rm -f conftest.$ac_objext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16191 (eval $ac_compile) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try='test -s conftest.$ac_objext'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_lo=$ac_mid; break
16202 else
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16205
16206 ac_hi=`expr '(' $ac_mid ')' - 1`
16207 if test $ac_mid -le $ac_hi; then
16208 ac_lo= ac_hi=
16209 break
16210 fi
16211 ac_mid=`expr 2 '*' $ac_mid`
16212 fi
16213 rm -f conftest.$ac_objext conftest.$ac_ext
16214 done
16215 else
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 ac_lo= ac_hi=
16220 fi
16221 rm -f conftest.$ac_objext conftest.$ac_ext
16222 fi
16223 rm -f conftest.$ac_objext conftest.$ac_ext
16224 # Binary search between lo and hi bounds.
16225 while test "x$ac_lo" != "x$ac_hi"; do
16226 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16227 cat >conftest.$ac_ext <<_ACEOF
16228 #line $LINENO "configure"
16229 /* confdefs.h. */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16234 $ac_includes_default
16235 int
16236 main ()
16237 {
16238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16239 test_array [0] = 0
16240
16241 ;
16242 return 0;
16243 }
16244 _ACEOF
16245 rm -f conftest.$ac_objext
16246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16247 (eval $ac_compile) 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -s conftest.$ac_objext'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 ac_hi=$ac_mid
16258 else
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16261
16262 ac_lo=`expr '(' $ac_mid ')' + 1`
16263 fi
16264 rm -f conftest.$ac_objext conftest.$ac_ext
16265 done
16266 case $ac_lo in
16267 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16268 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16269 See \`config.log' for more details." >&5
16270 echo "$as_me: error: cannot compute sizeof (long long), 77
16271 See \`config.log' for more details." >&2;}
16272 { (exit 1); exit 1; }; } ;;
16273 esac
16274 else
16275 if test "$cross_compiling" = yes; then
16276 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16277 See \`config.log' for more details." >&5
16278 echo "$as_me: error: cannot run test program while cross compiling
16279 See \`config.log' for more details." >&2;}
16280 { (exit 1); exit 1; }; }
16281 else
16282 cat >conftest.$ac_ext <<_ACEOF
16283 #line $LINENO "configure"
16284 /* confdefs.h. */
16285 _ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16289 $ac_includes_default
16290 long longval () { return (long) (sizeof (long long)); }
16291 unsigned long ulongval () { return (long) (sizeof (long long)); }
16292 #include <stdio.h>
16293 #include <stdlib.h>
16294 int
16295 main ()
16296 {
16297
16298 FILE *f = fopen ("conftest.val", "w");
16299 if (! f)
16300 exit (1);
16301 if (((long) (sizeof (long long))) < 0)
16302 {
16303 long i = longval ();
16304 if (i != ((long) (sizeof (long long))))
16305 exit (1);
16306 fprintf (f, "%ld\n", i);
16307 }
16308 else
16309 {
16310 unsigned long i = ulongval ();
16311 if (i != ((long) (sizeof (long long))))
16312 exit (1);
16313 fprintf (f, "%lu\n", i);
16314 }
16315 exit (ferror (f) || fclose (f) != 0);
16316
16317 ;
16318 return 0;
16319 }
16320 _ACEOF
16321 rm -f conftest$ac_exeext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16323 (eval $ac_link) 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332 ac_cv_sizeof_long_long=`cat conftest.val`
16333 else
16334 echo "$as_me: program exited with status $ac_status" >&5
16335 echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16337
16338 ( exit $ac_status )
16339 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16340 See \`config.log' for more details." >&5
16341 echo "$as_me: error: cannot compute sizeof (long long), 77
16342 See \`config.log' for more details." >&2;}
16343 { (exit 1); exit 1; }; }
16344 fi
16345 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16346 fi
16347 fi
16348 rm -f conftest.val
16349 else
16350 ac_cv_sizeof_long_long=0
16351 fi
16352 fi
16353 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16354 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16355 cat >>confdefs.h <<_ACEOF
16356 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16357 _ACEOF
16358
16359
16360 ;;
16361 *-hp-hpux* )
16362 echo "$as_me:$LINENO: checking for long long" >&5
16363 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16364 if test "${ac_cv_type_long_long+set}" = set; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 else
16367 cat >conftest.$ac_ext <<_ACEOF
16368 #line $LINENO "configure"
16369 /* confdefs.h. */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 $ac_includes_default
16375 int
16376 main ()
16377 {
16378 if ((long long *) 0)
16379 return 0;
16380 if (sizeof (long long))
16381 return 0;
16382 ;
16383 return 0;
16384 }
16385 _ACEOF
16386 rm -f conftest.$ac_objext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16388 (eval $ac_compile) 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -s conftest.$ac_objext'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16395 ac_status=$?
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 ac_cv_type_long_long=yes
16399 else
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16402
16403 ac_cv_type_long_long=no
16404 fi
16405 rm -f conftest.$ac_objext conftest.$ac_ext
16406 fi
16407 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16408 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16409
16410 echo "$as_me:$LINENO: checking size of long long" >&5
16411 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16412 if test "${ac_cv_sizeof_long_long+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16415 if test "$ac_cv_type_long_long" = yes; then
16416 # The cast to unsigned long works around a bug in the HP C Compiler
16417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16419 # This bug is HP SR number 8606223364.
16420 if test "$cross_compiling" = yes; then
16421 # Depending upon the size, compute the lo and hi bounds.
16422 cat >conftest.$ac_ext <<_ACEOF
16423 #line $LINENO "configure"
16424 /* confdefs.h. */
16425 _ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16429 $ac_includes_default
16430 int
16431 main ()
16432 {
16433 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16434 test_array [0] = 0
16435
16436 ;
16437 return 0;
16438 }
16439 _ACEOF
16440 rm -f conftest.$ac_objext
16441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16442 (eval $ac_compile) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
16446 { ac_try='test -s conftest.$ac_objext'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; }; then
16452 ac_lo=0 ac_mid=0
16453 while :; do
16454 cat >conftest.$ac_ext <<_ACEOF
16455 #line $LINENO "configure"
16456 /* confdefs.h. */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461 $ac_includes_default
16462 int
16463 main ()
16464 {
16465 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16466 test_array [0] = 0
16467
16468 ;
16469 return 0;
16470 }
16471 _ACEOF
16472 rm -f conftest.$ac_objext
16473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16474 (eval $ac_compile) 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_hi=$ac_mid; break
16485 else
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489 ac_lo=`expr $ac_mid + 1`
16490 if test $ac_lo -le $ac_mid; then
16491 ac_lo= ac_hi=
16492 break
16493 fi
16494 ac_mid=`expr 2 '*' $ac_mid + 1`
16495 fi
16496 rm -f 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 cat >conftest.$ac_ext <<_ACEOF
16503 #line $LINENO "configure"
16504 /* confdefs.h. */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 $ac_includes_default
16510 int
16511 main ()
16512 {
16513 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16514 test_array [0] = 0
16515
16516 ;
16517 return 0;
16518 }
16519 _ACEOF
16520 rm -f conftest.$ac_objext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522 (eval $ac_compile) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -s conftest.$ac_objext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_hi=-1 ac_mid=-1
16533 while :; do
16534 cat >conftest.$ac_ext <<_ACEOF
16535 #line $LINENO "configure"
16536 /* confdefs.h. */
16537 _ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h. */
16541 $ac_includes_default
16542 int
16543 main ()
16544 {
16545 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16546 test_array [0] = 0
16547
16548 ;
16549 return 0;
16550 }
16551 _ACEOF
16552 rm -f conftest.$ac_objext
16553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16554 (eval $ac_compile) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } &&
16558 { ac_try='test -s conftest.$ac_objext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ac_lo=$ac_mid; break
16565 else
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16568
16569 ac_hi=`expr '(' $ac_mid ')' - 1`
16570 if test $ac_mid -le $ac_hi; then
16571 ac_lo= ac_hi=
16572 break
16573 fi
16574 ac_mid=`expr 2 '*' $ac_mid`
16575 fi
16576 rm -f conftest.$ac_objext conftest.$ac_ext
16577 done
16578 else
16579 echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16581
16582 ac_lo= ac_hi=
16583 fi
16584 rm -f conftest.$ac_objext conftest.$ac_ext
16585 fi
16586 rm -f conftest.$ac_objext conftest.$ac_ext
16587 # Binary search between lo and hi bounds.
16588 while test "x$ac_lo" != "x$ac_hi"; do
16589 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16590 cat >conftest.$ac_ext <<_ACEOF
16591 #line $LINENO "configure"
16592 /* confdefs.h. */
16593 _ACEOF
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h. */
16597 $ac_includes_default
16598 int
16599 main ()
16600 {
16601 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16602 test_array [0] = 0
16603
16604 ;
16605 return 0;
16606 }
16607 _ACEOF
16608 rm -f conftest.$ac_objext
16609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16610 (eval $ac_compile) 2>&5
16611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } &&
16614 { ac_try='test -s conftest.$ac_objext'
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_hi=$ac_mid
16621 else
16622 echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16624
16625 ac_lo=`expr '(' $ac_mid ')' + 1`
16626 fi
16627 rm -f conftest.$ac_objext conftest.$ac_ext
16628 done
16629 case $ac_lo in
16630 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16631 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16632 See \`config.log' for more details." >&5
16633 echo "$as_me: error: cannot compute sizeof (long long), 77
16634 See \`config.log' for more details." >&2;}
16635 { (exit 1); exit 1; }; } ;;
16636 esac
16637 else
16638 if test "$cross_compiling" = yes; then
16639 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16640 See \`config.log' for more details." >&5
16641 echo "$as_me: error: cannot run test program while cross compiling
16642 See \`config.log' for more details." >&2;}
16643 { (exit 1); exit 1; }; }
16644 else
16645 cat >conftest.$ac_ext <<_ACEOF
16646 #line $LINENO "configure"
16647 /* confdefs.h. */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 $ac_includes_default
16653 long longval () { return (long) (sizeof (long long)); }
16654 unsigned long ulongval () { return (long) (sizeof (long long)); }
16655 #include <stdio.h>
16656 #include <stdlib.h>
16657 int
16658 main ()
16659 {
16660
16661 FILE *f = fopen ("conftest.val", "w");
16662 if (! f)
16663 exit (1);
16664 if (((long) (sizeof (long long))) < 0)
16665 {
16666 long i = longval ();
16667 if (i != ((long) (sizeof (long long))))
16668 exit (1);
16669 fprintf (f, "%ld\n", i);
16670 }
16671 else
16672 {
16673 unsigned long i = ulongval ();
16674 if (i != ((long) (sizeof (long long))))
16675 exit (1);
16676 fprintf (f, "%lu\n", i);
16677 }
16678 exit (ferror (f) || fclose (f) != 0);
16679
16680 ;
16681 return 0;
16682 }
16683 _ACEOF
16684 rm -f conftest$ac_exeext
16685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16686 (eval $ac_link) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_long_long=`cat conftest.val`
16696 else
16697 echo "$as_me: program exited with status $ac_status" >&5
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16700
16701 ( exit $ac_status )
16702 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16703 See \`config.log' for more details." >&5
16704 echo "$as_me: error: cannot compute sizeof (long long), 77
16705 See \`config.log' for more details." >&2;}
16706 { (exit 1); exit 1; }; }
16707 fi
16708 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16709 fi
16710 fi
16711 rm -f conftest.val
16712 else
16713 ac_cv_sizeof_long_long=0
16714 fi
16715 fi
16716 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16717 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16718 cat >>confdefs.h <<_ACEOF
16719 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16720 _ACEOF
16721
16722
16723 if test "$ac_cv_sizeof_long_long" != "0"; then
16724 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16725 fi
16726 ;;
16727 * )
16728 echo "$as_me:$LINENO: checking for long long" >&5
16729 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16730 if test "${ac_cv_type_long_long+set}" = set; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16732 else
16733 cat >conftest.$ac_ext <<_ACEOF
16734 #line $LINENO "configure"
16735 /* confdefs.h. */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16740 $ac_includes_default
16741 int
16742 main ()
16743 {
16744 if ((long long *) 0)
16745 return 0;
16746 if (sizeof (long long))
16747 return 0;
16748 ;
16749 return 0;
16750 }
16751 _ACEOF
16752 rm -f conftest.$ac_objext
16753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16754 (eval $ac_compile) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try='test -s conftest.$ac_objext'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_type_long_long=yes
16765 else
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16768
16769 ac_cv_type_long_long=no
16770 fi
16771 rm -f conftest.$ac_objext conftest.$ac_ext
16772 fi
16773 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16774 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16775
16776 echo "$as_me:$LINENO: checking size of long long" >&5
16777 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16778 if test "${ac_cv_sizeof_long_long+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16780 else
16781 if test "$ac_cv_type_long_long" = yes; then
16782 # The cast to unsigned long works around a bug in the HP C Compiler
16783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16785 # This bug is HP SR number 8606223364.
16786 if test "$cross_compiling" = yes; then
16787 # Depending upon the size, compute the lo and hi bounds.
16788 cat >conftest.$ac_ext <<_ACEOF
16789 #line $LINENO "configure"
16790 /* confdefs.h. */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 $ac_includes_default
16796 int
16797 main ()
16798 {
16799 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16800 test_array [0] = 0
16801
16802 ;
16803 return 0;
16804 }
16805 _ACEOF
16806 rm -f conftest.$ac_objext
16807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16808 (eval $ac_compile) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -s conftest.$ac_objext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_lo=0 ac_mid=0
16819 while :; do
16820 cat >conftest.$ac_ext <<_ACEOF
16821 #line $LINENO "configure"
16822 /* confdefs.h. */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 $ac_includes_default
16828 int
16829 main ()
16830 {
16831 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16832 test_array [0] = 0
16833
16834 ;
16835 return 0;
16836 }
16837 _ACEOF
16838 rm -f conftest.$ac_objext
16839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16840 (eval $ac_compile) 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try='test -s conftest.$ac_objext'
16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16850 ac_hi=$ac_mid; break
16851 else
16852 echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16854
16855 ac_lo=`expr $ac_mid + 1`
16856 if test $ac_lo -le $ac_mid; then
16857 ac_lo= ac_hi=
16858 break
16859 fi
16860 ac_mid=`expr 2 '*' $ac_mid + 1`
16861 fi
16862 rm -f conftest.$ac_objext conftest.$ac_ext
16863 done
16864 else
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16867
16868 cat >conftest.$ac_ext <<_ACEOF
16869 #line $LINENO "configure"
16870 /* confdefs.h. */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16875 $ac_includes_default
16876 int
16877 main ()
16878 {
16879 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16880 test_array [0] = 0
16881
16882 ;
16883 return 0;
16884 }
16885 _ACEOF
16886 rm -f conftest.$ac_objext
16887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16888 (eval $ac_compile) 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
16892 { ac_try='test -s conftest.$ac_objext'
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 ac_hi=-1 ac_mid=-1
16899 while :; do
16900 cat >conftest.$ac_ext <<_ACEOF
16901 #line $LINENO "configure"
16902 /* confdefs.h. */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 $ac_includes_default
16908 int
16909 main ()
16910 {
16911 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16912 test_array [0] = 0
16913
16914 ;
16915 return 0;
16916 }
16917 _ACEOF
16918 rm -f conftest.$ac_objext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16920 (eval $ac_compile) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
16924 { ac_try='test -s conftest.$ac_objext'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_lo=$ac_mid; break
16931 else
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 ac_hi=`expr '(' $ac_mid ')' - 1`
16936 if test $ac_mid -le $ac_hi; then
16937 ac_lo= ac_hi=
16938 break
16939 fi
16940 ac_mid=`expr 2 '*' $ac_mid`
16941 fi
16942 rm -f conftest.$ac_objext conftest.$ac_ext
16943 done
16944 else
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16947
16948 ac_lo= ac_hi=
16949 fi
16950 rm -f conftest.$ac_objext conftest.$ac_ext
16951 fi
16952 rm -f conftest.$ac_objext conftest.$ac_ext
16953 # Binary search between lo and hi bounds.
16954 while test "x$ac_lo" != "x$ac_hi"; do
16955 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16956 cat >conftest.$ac_ext <<_ACEOF
16957 #line $LINENO "configure"
16958 /* confdefs.h. */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16963 $ac_includes_default
16964 int
16965 main ()
16966 {
16967 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16968 test_array [0] = 0
16969
16970 ;
16971 return 0;
16972 }
16973 _ACEOF
16974 rm -f conftest.$ac_objext
16975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16976 (eval $ac_compile) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } &&
16980 { ac_try='test -s conftest.$ac_objext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_hi=$ac_mid
16987 else
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16990
16991 ac_lo=`expr '(' $ac_mid ')' + 1`
16992 fi
16993 rm -f conftest.$ac_objext conftest.$ac_ext
16994 done
16995 case $ac_lo in
16996 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16997 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16998 See \`config.log' for more details." >&5
16999 echo "$as_me: error: cannot compute sizeof (long long), 77
17000 See \`config.log' for more details." >&2;}
17001 { (exit 1); exit 1; }; } ;;
17002 esac
17003 else
17004 if test "$cross_compiling" = yes; then
17005 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17006 See \`config.log' for more details." >&5
17007 echo "$as_me: error: cannot run test program while cross compiling
17008 See \`config.log' for more details." >&2;}
17009 { (exit 1); exit 1; }; }
17010 else
17011 cat >conftest.$ac_ext <<_ACEOF
17012 #line $LINENO "configure"
17013 /* confdefs.h. */
17014 _ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h. */
17018 $ac_includes_default
17019 long longval () { return (long) (sizeof (long long)); }
17020 unsigned long ulongval () { return (long) (sizeof (long long)); }
17021 #include <stdio.h>
17022 #include <stdlib.h>
17023 int
17024 main ()
17025 {
17026
17027 FILE *f = fopen ("conftest.val", "w");
17028 if (! f)
17029 exit (1);
17030 if (((long) (sizeof (long long))) < 0)
17031 {
17032 long i = longval ();
17033 if (i != ((long) (sizeof (long long))))
17034 exit (1);
17035 fprintf (f, "%ld\n", i);
17036 }
17037 else
17038 {
17039 unsigned long i = ulongval ();
17040 if (i != ((long) (sizeof (long long))))
17041 exit (1);
17042 fprintf (f, "%lu\n", i);
17043 }
17044 exit (ferror (f) || fclose (f) != 0);
17045
17046 ;
17047 return 0;
17048 }
17049 _ACEOF
17050 rm -f conftest$ac_exeext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052 (eval $ac_link) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 ac_cv_sizeof_long_long=`cat conftest.val`
17062 else
17063 echo "$as_me: program exited with status $ac_status" >&5
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067 ( exit $ac_status )
17068 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17069 See \`config.log' for more details." >&5
17070 echo "$as_me: error: cannot compute sizeof (long long), 77
17071 See \`config.log' for more details." >&2;}
17072 { (exit 1); exit 1; }; }
17073 fi
17074 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17075 fi
17076 fi
17077 rm -f conftest.val
17078 else
17079 ac_cv_sizeof_long_long=0
17080 fi
17081 fi
17082 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17083 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17084 cat >>confdefs.h <<_ACEOF
17085 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17086 _ACEOF
17087
17088
17089 esac
17090
17091 echo "$as_me:$LINENO: checking size of wchar_t" >&5
17092 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17093 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 else
17096
17097 if test "$cross_compiling" = yes; then
17098
17099 case "${host}" in
17100 *-pc-msdosdjgpp )
17101 wx_cv_sizeof_wchar_t=0
17102 ;;
17103 * )
17104 wx_cv_sizeof_wchar_t=4
17105 ;;
17106 esac
17107
17108
17109 else
17110 cat >conftest.$ac_ext <<_ACEOF
17111 #line $LINENO "configure"
17112 /* confdefs.h. */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17117
17118 /* DJGPP only has fake wchar_t: */
17119 #ifdef __DJGPP__
17120 # error "fake wchar_t"
17121 #endif
17122 #ifdef HAVE_WCHAR_H
17123 # ifdef __CYGWIN__
17124 # include <stddef.h>
17125 # endif
17126 # include <wchar.h>
17127 #endif
17128 #ifdef HAVE_STDLIB_H
17129 # include <stdlib.h>
17130 #endif
17131 #include <stdio.h>
17132 int main()
17133 {
17134 FILE *f=fopen("conftestval", "w");
17135 if (!f) exit(1);
17136 fprintf(f, "%i", sizeof(wchar_t));
17137 exit(0);
17138 }
17139
17140 _ACEOF
17141 rm -f conftest$ac_exeext
17142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143 (eval $ac_link) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 wx_cv_sizeof_wchar_t=`cat conftestval`
17153 else
17154 echo "$as_me: program exited with status $ac_status" >&5
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17157
17158 ( exit $ac_status )
17159 wx_cv_sizeof_wchar_t=0
17160 fi
17161 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17162 fi
17163
17164 fi
17165 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17166 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
17167
17168 cat >>confdefs.h <<_ACEOF
17169 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
17170 _ACEOF
17171
17172
17173 # Check whether --enable-largefile or --disable-largefile was given.
17174 if test "${enable_largefile+set}" = set; then
17175 enableval="$enable_largefile"
17176
17177 fi;
17178 if test "$enable_largefile" != no; then
17179 wx_largefile=no
17180
17181 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17182 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17183 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17184 echo $ECHO_N "(cached) $ECHO_C" >&6
17185 else
17186
17187 cat >conftest.$ac_ext <<_ACEOF
17188 #line $LINENO "configure"
17189 /* confdefs.h. */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 #define _FILE_OFFSET_BITS 64
17195 #include <sys/types.h>
17196 int
17197 main ()
17198 {
17199 typedef struct {
17200 unsigned int field: sizeof(off_t) == 8;
17201 } wxlf;
17202
17203 ;
17204 return 0;
17205 }
17206 _ACEOF
17207 rm -f conftest.$ac_objext
17208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17209 (eval $ac_compile) 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
17213 { ac_try='test -s conftest.$ac_objext'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
17219 ac_cv_sys_file_offset_bits=64
17220 else
17221 echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17223
17224 ac_cv_sys_file_offset_bits=no
17225 fi
17226 rm -f conftest.$ac_objext conftest.$ac_ext
17227
17228
17229 fi
17230 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17231 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17232
17233 if test "$ac_cv_sys_file_offset_bits" != no; then
17234 wx_largefile=yes
17235 cat >>confdefs.h <<_ACEOF
17236 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17237 _ACEOF
17238
17239 fi
17240
17241 if test "x$wx_largefile" != "xyes"; then
17242
17243 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17244 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17245 if test "${ac_cv_sys_large_files+set}" = set; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17247 else
17248
17249 cat >conftest.$ac_ext <<_ACEOF
17250 #line $LINENO "configure"
17251 /* confdefs.h. */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 #define _LARGE_FILES 1
17257 #include <sys/types.h>
17258 int
17259 main ()
17260 {
17261 typedef struct {
17262 unsigned int field: sizeof(off_t) == 8;
17263 } wxlf;
17264
17265 ;
17266 return 0;
17267 }
17268 _ACEOF
17269 rm -f conftest.$ac_objext
17270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17271 (eval $ac_compile) 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try='test -s conftest.$ac_objext'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_sys_large_files=1
17282 else
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17285
17286 ac_cv_sys_large_files=no
17287 fi
17288 rm -f conftest.$ac_objext conftest.$ac_ext
17289
17290
17291 fi
17292 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17293 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17294
17295 if test "$ac_cv_sys_large_files" != no; then
17296 wx_largefile=yes
17297 cat >>confdefs.h <<_ACEOF
17298 #define _LARGE_FILES $ac_cv_sys_large_files
17299 _ACEOF
17300
17301 fi
17302
17303 fi
17304
17305 echo "$as_me:$LINENO: checking if large file support is available" >&5
17306 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
17307 if test "x$wx_largefile" = "xyes"; then
17308 cat >>confdefs.h <<\_ACEOF
17309 #define HAVE_LARGEFILE_SUPPORT 1
17310 _ACEOF
17311
17312 fi
17313 echo "$as_me:$LINENO: result: $wx_largefile" >&5
17314 echo "${ECHO_T}$wx_largefile" >&6
17315 fi
17316
17317
17318 if test "x$wx_largefile" = "xyes"; then
17319 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
17320 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
17321 else
17322 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
17323 fi
17324 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
17325 fi
17326
17327 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17328 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17329 if test "${ac_cv_c_bigendian+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332 ac_cv_c_bigendian=unknown
17333 # See if sys/param.h defines the BYTE_ORDER macro.
17334 cat >conftest.$ac_ext <<_ACEOF
17335 #line $LINENO "configure"
17336 /* confdefs.h. */
17337 _ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17341 #include <sys/types.h>
17342 #include <sys/param.h>
17343 int
17344 main ()
17345 {
17346
17347 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17348 bogus endian macros
17349 #endif
17350 ;
17351 return 0;
17352 }
17353 _ACEOF
17354 rm -f conftest.$ac_objext
17355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17356 (eval $ac_compile) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } &&
17360 { ac_try='test -s conftest.$ac_objext'
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; }; then
17366 # It does; now see whether it defined to BIG_ENDIAN or not.
17367 cat >conftest.$ac_ext <<_ACEOF
17368 #line $LINENO "configure"
17369 /* confdefs.h. */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 #include <sys/types.h>
17375 #include <sys/param.h>
17376 int
17377 main ()
17378 {
17379
17380 #if BYTE_ORDER != BIG_ENDIAN
17381 not big endian
17382 #endif
17383 ;
17384 return 0;
17385 }
17386 _ACEOF
17387 rm -f conftest.$ac_objext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17389 (eval $ac_compile) 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try='test -s conftest.$ac_objext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_c_bigendian=yes
17400 else
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17403
17404 ac_cv_c_bigendian=no
17405 fi
17406 rm -f conftest.$ac_objext conftest.$ac_ext
17407 else
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17410
17411 fi
17412 rm -f conftest.$ac_objext conftest.$ac_ext
17413 if test $ac_cv_c_bigendian = unknown; then
17414 if test "$cross_compiling" = yes; then
17415 ac_cv_c_bigendian=unknown
17416 else
17417 cat >conftest.$ac_ext <<_ACEOF
17418 #line $LINENO "configure"
17419 /* confdefs.h. */
17420 _ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17424 main () {
17425 /* Are we little or big endian? From Harbison&Steele. */
17426 union
17427 {
17428 long l;
17429 char c[sizeof (long)];
17430 } u;
17431 u.l = 1;
17432 exit (u.c[sizeof (long) - 1] == 1);
17433 }
17434 _ACEOF
17435 rm -f conftest$ac_exeext
17436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17437 (eval $ac_link) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_cv_c_bigendian=no
17447 else
17448 echo "$as_me: program exited with status $ac_status" >&5
17449 echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17451
17452 ( exit $ac_status )
17453 ac_cv_c_bigendian=yes
17454 fi
17455 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17456 fi
17457 fi
17458 fi
17459 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17460 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17461 if test $ac_cv_c_bigendian = unknown; then
17462 { 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
17463 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;}
17464 fi
17465 if test $ac_cv_c_bigendian = yes; then
17466 cat >>confdefs.h <<\_ACEOF
17467 #define WORDS_BIGENDIAN 1
17468 _ACEOF
17469
17470 fi
17471
17472
17473 ac_ext=cc
17474 ac_cpp='$CXXCPP $CPPFLAGS'
17475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17478 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17479 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
17480 if test -z "$CXXCPP"; then
17481 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 else
17484 # Double quotes because CXXCPP needs to be expanded
17485 for CXXCPP in "$CXX -E" "/lib/cpp"
17486 do
17487 ac_preproc_ok=false
17488 for ac_cxx_preproc_warn_flag in '' yes
17489 do
17490 # Use a header file that comes with gcc, so configuring glibc
17491 # with a fresh cross-compiler works.
17492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17493 # <limits.h> exists even on freestanding compilers.
17494 # On the NeXT, cc -E runs the code through the compiler's parser,
17495 # not just through cpp. "Syntax error" is here to catch this case.
17496 cat >conftest.$ac_ext <<_ACEOF
17497 #line $LINENO "configure"
17498 /* confdefs.h. */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 #ifdef __STDC__
17504 # include <limits.h>
17505 #else
17506 # include <assert.h>
17507 #endif
17508 Syntax error
17509 _ACEOF
17510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17512 ac_status=$?
17513 grep -v '^ *+' conftest.er1 >conftest.err
17514 rm -f conftest.er1
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } >/dev/null; then
17518 if test -s conftest.err; then
17519 ac_cpp_err=$ac_cxx_preproc_warn_flag
17520 else
17521 ac_cpp_err=
17522 fi
17523 else
17524 ac_cpp_err=yes
17525 fi
17526 if test -z "$ac_cpp_err"; then
17527 :
17528 else
17529 echo "$as_me: failed program was:" >&5
17530 sed 's/^/| /' conftest.$ac_ext >&5
17531
17532 # Broken: fails on valid input.
17533 continue
17534 fi
17535 rm -f conftest.err conftest.$ac_ext
17536
17537 # OK, works on sane cases. Now check whether non-existent headers
17538 # can be detected and how.
17539 cat >conftest.$ac_ext <<_ACEOF
17540 #line $LINENO "configure"
17541 /* confdefs.h. */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 #include <ac_nonexistent.h>
17547 _ACEOF
17548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17550 ac_status=$?
17551 grep -v '^ *+' conftest.er1 >conftest.err
17552 rm -f conftest.er1
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } >/dev/null; then
17556 if test -s conftest.err; then
17557 ac_cpp_err=$ac_cxx_preproc_warn_flag
17558 else
17559 ac_cpp_err=
17560 fi
17561 else
17562 ac_cpp_err=yes
17563 fi
17564 if test -z "$ac_cpp_err"; then
17565 # Broken: success on invalid input.
17566 continue
17567 else
17568 echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17570
17571 # Passes both tests.
17572 ac_preproc_ok=:
17573 break
17574 fi
17575 rm -f conftest.err conftest.$ac_ext
17576
17577 done
17578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17579 rm -f conftest.err conftest.$ac_ext
17580 if $ac_preproc_ok; then
17581 break
17582 fi
17583
17584 done
17585 ac_cv_prog_CXXCPP=$CXXCPP
17586
17587 fi
17588 CXXCPP=$ac_cv_prog_CXXCPP
17589 else
17590 ac_cv_prog_CXXCPP=$CXXCPP
17591 fi
17592 echo "$as_me:$LINENO: result: $CXXCPP" >&5
17593 echo "${ECHO_T}$CXXCPP" >&6
17594 ac_preproc_ok=false
17595 for ac_cxx_preproc_warn_flag in '' yes
17596 do
17597 # Use a header file that comes with gcc, so configuring glibc
17598 # with a fresh cross-compiler works.
17599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17600 # <limits.h> exists even on freestanding compilers.
17601 # On the NeXT, cc -E runs the code through the compiler's parser,
17602 # not just through cpp. "Syntax error" is here to catch this case.
17603 cat >conftest.$ac_ext <<_ACEOF
17604 #line $LINENO "configure"
17605 /* confdefs.h. */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17610 #ifdef __STDC__
17611 # include <limits.h>
17612 #else
17613 # include <assert.h>
17614 #endif
17615 Syntax error
17616 _ACEOF
17617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17619 ac_status=$?
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } >/dev/null; then
17625 if test -s conftest.err; then
17626 ac_cpp_err=$ac_cxx_preproc_warn_flag
17627 else
17628 ac_cpp_err=
17629 fi
17630 else
17631 ac_cpp_err=yes
17632 fi
17633 if test -z "$ac_cpp_err"; then
17634 :
17635 else
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17638
17639 # Broken: fails on valid input.
17640 continue
17641 fi
17642 rm -f conftest.err conftest.$ac_ext
17643
17644 # OK, works on sane cases. Now check whether non-existent headers
17645 # can be detected and how.
17646 cat >conftest.$ac_ext <<_ACEOF
17647 #line $LINENO "configure"
17648 /* confdefs.h. */
17649 _ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h. */
17653 #include <ac_nonexistent.h>
17654 _ACEOF
17655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17657 ac_status=$?
17658 grep -v '^ *+' conftest.er1 >conftest.err
17659 rm -f conftest.er1
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } >/dev/null; then
17663 if test -s conftest.err; then
17664 ac_cpp_err=$ac_cxx_preproc_warn_flag
17665 else
17666 ac_cpp_err=
17667 fi
17668 else
17669 ac_cpp_err=yes
17670 fi
17671 if test -z "$ac_cpp_err"; then
17672 # Broken: success on invalid input.
17673 continue
17674 else
17675 echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17677
17678 # Passes both tests.
17679 ac_preproc_ok=:
17680 break
17681 fi
17682 rm -f conftest.err conftest.$ac_ext
17683
17684 done
17685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17686 rm -f conftest.err conftest.$ac_ext
17687 if $ac_preproc_ok; then
17688 :
17689 else
17690 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17691 See \`config.log' for more details." >&5
17692 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17693 See \`config.log' for more details." >&2;}
17694 { (exit 1); exit 1; }; }
17695 fi
17696
17697 ac_ext=cc
17698 ac_cpp='$CXXCPP $CPPFLAGS'
17699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17702
17703
17704
17705 if test "$cross_compiling" = "yes"; then
17706 cat >>confdefs.h <<\_ACEOF
17707 #define wxUSE_IOSTREAMH 1
17708 _ACEOF
17709
17710 else
17711
17712
17713 ac_ext=cc
17714 ac_cpp='$CXXCPP $CPPFLAGS'
17715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17718
17719
17720
17721 for ac_header in iostream
17722 do
17723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17725 echo "$as_me:$LINENO: checking for $ac_header" >&5
17726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17729 fi
17730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17732 else
17733 # Is the header compilable?
17734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17736 cat >conftest.$ac_ext <<_ACEOF
17737 #line $LINENO "configure"
17738 /* confdefs.h. */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17743 $ac_includes_default
17744 #include <$ac_header>
17745 _ACEOF
17746 rm -f conftest.$ac_objext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17748 (eval $ac_compile) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -s conftest.$ac_objext'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 ac_header_compiler=yes
17759 else
17760 echo "$as_me: failed program was:" >&5
17761 sed 's/^/| /' conftest.$ac_ext >&5
17762
17763 ac_header_compiler=no
17764 fi
17765 rm -f conftest.$ac_objext conftest.$ac_ext
17766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17767 echo "${ECHO_T}$ac_header_compiler" >&6
17768
17769 # Is the header present?
17770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17772 cat >conftest.$ac_ext <<_ACEOF
17773 #line $LINENO "configure"
17774 /* confdefs.h. */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779 #include <$ac_header>
17780 _ACEOF
17781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17783 ac_status=$?
17784 grep -v '^ *+' conftest.er1 >conftest.err
17785 rm -f conftest.er1
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } >/dev/null; then
17789 if test -s conftest.err; then
17790 ac_cpp_err=$ac_cxx_preproc_warn_flag
17791 else
17792 ac_cpp_err=
17793 fi
17794 else
17795 ac_cpp_err=yes
17796 fi
17797 if test -z "$ac_cpp_err"; then
17798 ac_header_preproc=yes
17799 else
17800 echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17802
17803 ac_header_preproc=no
17804 fi
17805 rm -f conftest.err conftest.$ac_ext
17806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17807 echo "${ECHO_T}$ac_header_preproc" >&6
17808
17809 # So? What about this header?
17810 case $ac_header_compiler:$ac_header_preproc in
17811 yes:no )
17812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17816 (
17817 cat <<\_ASBOX
17818 ## ------------------------------------ ##
17819 ## Report this to bug-autoconf@gnu.org. ##
17820 ## ------------------------------------ ##
17821 _ASBOX
17822 ) |
17823 sed "s/^/$as_me: WARNING: /" >&2
17824 ;;
17825 no:yes )
17826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17832 (
17833 cat <<\_ASBOX
17834 ## ------------------------------------ ##
17835 ## Report this to bug-autoconf@gnu.org. ##
17836 ## ------------------------------------ ##
17837 _ASBOX
17838 ) |
17839 sed "s/^/$as_me: WARNING: /" >&2
17840 ;;
17841 esac
17842 echo "$as_me:$LINENO: checking for $ac_header" >&5
17843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847 eval "$as_ac_Header=$ac_header_preproc"
17848 fi
17849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17851
17852 fi
17853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17854 cat >>confdefs.h <<_ACEOF
17855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17856 _ACEOF
17857
17858 fi
17859
17860 done
17861
17862
17863 if test "$ac_cv_header_iostream" = "yes" ; then
17864 :
17865 else
17866 cat >>confdefs.h <<\_ACEOF
17867 #define wxUSE_IOSTREAMH 1
17868 _ACEOF
17869
17870 fi
17871
17872 ac_ext=c
17873 ac_cpp='$CPP $CPPFLAGS'
17874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17877
17878 fi
17879
17880
17881
17882 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17883 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17884 if test "${wx_cv_cpp_bool+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887
17888
17889
17890 ac_ext=cc
17891 ac_cpp='$CXXCPP $CPPFLAGS'
17892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17895
17896
17897 cat >conftest.$ac_ext <<_ACEOF
17898 #line $LINENO "configure"
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904
17905
17906 int
17907 main ()
17908 {
17909
17910 bool b = true;
17911
17912 return 0;
17913
17914 ;
17915 return 0;
17916 }
17917 _ACEOF
17918 rm -f conftest.$ac_objext
17919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17920 (eval $ac_compile) 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try='test -s conftest.$ac_objext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930
17931 wx_cv_cpp_bool=yes
17932
17933 else
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17936
17937
17938 wx_cv_cpp_bool=no
17939
17940
17941 fi
17942 rm -f conftest.$ac_objext conftest.$ac_ext
17943
17944 ac_ext=c
17945 ac_cpp='$CPP $CPPFLAGS'
17946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17949
17950
17951 fi
17952 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17953 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
17954
17955 if test "$wx_cv_cpp_bool" = "yes"; then
17956 cat >>confdefs.h <<\_ACEOF
17957 #define HAVE_BOOL 1
17958 _ACEOF
17959
17960 fi
17961
17962
17963
17964 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17965 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17966 if test "${wx_cv_explicit+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17968 else
17969
17970
17971
17972 ac_ext=cc
17973 ac_cpp='$CXXCPP $CPPFLAGS'
17974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17977
17978
17979 cat >conftest.$ac_ext <<_ACEOF
17980 #line $LINENO "configure"
17981 /* confdefs.h. */
17982 _ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17986
17987 class Foo { public: explicit Foo(int) {} };
17988
17989 int
17990 main ()
17991 {
17992
17993 return 0;
17994
17995 ;
17996 return 0;
17997 }
17998 _ACEOF
17999 rm -f conftest.$ac_objext
18000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18001 (eval $ac_compile) 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
18005 { ac_try='test -s conftest.$ac_objext'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011
18012 cat >conftest.$ac_ext <<_ACEOF
18013 #line $LINENO "configure"
18014 /* confdefs.h. */
18015 _ACEOF
18016 cat confdefs.h >>conftest.$ac_ext
18017 cat >>conftest.$ac_ext <<_ACEOF
18018 /* end confdefs.h. */
18019
18020 class Foo { public: explicit Foo(int) {} };
18021 static void TakeFoo(const Foo& foo) { }
18022
18023 int
18024 main ()
18025 {
18026
18027 TakeFoo(17);
18028 return 0;
18029
18030 ;
18031 return 0;
18032 }
18033 _ACEOF
18034 rm -f conftest.$ac_objext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18036 (eval $ac_compile) 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
18040 { ac_try='test -s conftest.$ac_objext'
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; }; then
18046 wx_cv_explicit=no
18047 else
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051 wx_cv_explicit=yes
18052
18053 fi
18054 rm -f conftest.$ac_objext conftest.$ac_ext
18055
18056 else
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060 wx_cv_explicit=no
18061
18062 fi
18063 rm -f conftest.$ac_objext conftest.$ac_ext
18064
18065 ac_ext=c
18066 ac_cpp='$CPP $CPPFLAGS'
18067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18070
18071
18072 fi
18073 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18074 echo "${ECHO_T}$wx_cv_explicit" >&6
18075
18076 if test "$wx_cv_explicit" = "yes"; then
18077 cat >>confdefs.h <<\_ACEOF
18078 #define HAVE_EXPLICIT 1
18079 _ACEOF
18080
18081 fi
18082
18083
18084 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18085 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18086 if test "${ac_cv_cxx_const_cast+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18088 else
18089
18090
18091 ac_ext=cc
18092 ac_cpp='$CXXCPP $CPPFLAGS'
18093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18096
18097 cat >conftest.$ac_ext <<_ACEOF
18098 #line $LINENO "configure"
18099 /* confdefs.h. */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18104
18105 int
18106 main ()
18107 {
18108 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
18109 ;
18110 return 0;
18111 }
18112 _ACEOF
18113 rm -f conftest.$ac_objext
18114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115 (eval $ac_compile) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -s conftest.$ac_objext'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_cv_cxx_const_cast=yes
18126 else
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130 ac_cv_cxx_const_cast=no
18131 fi
18132 rm -f conftest.$ac_objext conftest.$ac_ext
18133 ac_ext=c
18134 ac_cpp='$CPP $CPPFLAGS'
18135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18138
18139
18140 fi
18141 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18142 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
18143 if test "$ac_cv_cxx_const_cast" = yes; then
18144
18145 cat >>confdefs.h <<\_ACEOF
18146 #define HAVE_CONST_CAST
18147 _ACEOF
18148
18149 fi
18150
18151 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
18152 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
18153 if test "${ac_cv_cxx_static_cast+set}" = set; then
18154 echo $ECHO_N "(cached) $ECHO_C" >&6
18155 else
18156
18157
18158 ac_ext=cc
18159 ac_cpp='$CXXCPP $CPPFLAGS'
18160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18163
18164 cat >conftest.$ac_ext <<_ACEOF
18165 #line $LINENO "configure"
18166 /* confdefs.h. */
18167 _ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h. */
18171 #include <typeinfo>
18172 class Base { public : Base () {} virtual void f () = 0; };
18173 class Derived : public Base { public : Derived () {} virtual void f () {} };
18174 int g (Derived&) { return 0; }
18175 int
18176 main ()
18177 {
18178
18179 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
18180 ;
18181 return 0;
18182 }
18183 _ACEOF
18184 rm -f conftest.$ac_objext
18185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18186 (eval $ac_compile) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } &&
18190 { ac_try='test -s conftest.$ac_objext'
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 ac_cv_cxx_static_cast=yes
18197 else
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201 ac_cv_cxx_static_cast=no
18202 fi
18203 rm -f conftest.$ac_objext conftest.$ac_ext
18204 ac_ext=c
18205 ac_cpp='$CPP $CPPFLAGS'
18206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18209
18210
18211 fi
18212 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
18213 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
18214 if test "$ac_cv_cxx_static_cast" = yes; then
18215
18216 cat >>confdefs.h <<\_ACEOF
18217 #define HAVE_STATIC_CAST
18218 _ACEOF
18219
18220 fi
18221
18222
18223 if test "$wxUSE_STL" = "yes"; then
18224 ac_ext=cc
18225 ac_cpp='$CXXCPP $CPPFLAGS'
18226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18229
18230
18231 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
18232 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
18233 cat >conftest.$ac_ext <<_ACEOF
18234 #line $LINENO "configure"
18235 /* confdefs.h. */
18236 _ACEOF
18237 cat confdefs.h >>conftest.$ac_ext
18238 cat >>conftest.$ac_ext <<_ACEOF
18239 /* end confdefs.h. */
18240 #include <string>
18241 #include <functional>
18242 #include <algorithm>
18243 #include <vector>
18244 #include <list>
18245 int
18246 main ()
18247 {
18248 std::vector<int> moo;
18249 std::list<int> foo;
18250 std::vector<int>::iterator it =
18251 std::find_if(moo.begin(), moo.end(),
18252 std::bind2nd(std::less<int>(), 3));
18253 ;
18254 return 0;
18255 }
18256 _ACEOF
18257 rm -f conftest.$ac_objext
18258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18259 (eval $ac_compile) 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } &&
18263 { ac_try='test -s conftest.$ac_objext'
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18266 ac_status=$?
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; }; then
18269 echo "$as_me:$LINENO: result: yes" >&5
18270 echo "${ECHO_T}yes" >&6
18271 else
18272 echo "$as_me: failed program was:" >&5
18273 sed 's/^/| /' conftest.$ac_ext >&5
18274
18275 echo "$as_me:$LINENO: result: no" >&5
18276 echo "${ECHO_T}no" >&6
18277 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
18278 echo "$as_me: error: Basic STL functionality missing" >&2;}
18279 { (exit 1); exit 1; }; }
18280 fi
18281 rm -f conftest.$ac_objext conftest.$ac_ext
18282
18283 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
18284 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
18285 cat >conftest.$ac_ext <<_ACEOF
18286 #line $LINENO "configure"
18287 /* confdefs.h. */
18288 _ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h. */
18292 #include <string>
18293 int
18294 main ()
18295 {
18296 std::wstring foo;
18297 ;
18298 return 0;
18299 }
18300 _ACEOF
18301 rm -f conftest.$ac_objext
18302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18303 (eval $ac_compile) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
18307 { ac_try='test -s conftest.$ac_objext'
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18310 ac_status=$?
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18313 echo "$as_me:$LINENO: result: yes" >&5
18314 echo "${ECHO_T}yes" >&6
18315 cat >>confdefs.h <<\_ACEOF
18316 #define HAVE_STD_WSTRING 1
18317 _ACEOF
18318
18319 else
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18322
18323 echo "$as_me:$LINENO: result: no" >&5
18324 echo "${ECHO_T}no" >&6
18325 fi
18326 rm -f conftest.$ac_objext conftest.$ac_ext
18327
18328 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
18329 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
18330 cat >conftest.$ac_ext <<_ACEOF
18331 #line $LINENO "configure"
18332 /* confdefs.h. */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18337 #include <string>
18338 int
18339 main ()
18340 {
18341 std::string foo, bar;
18342 foo.compare(bar);
18343 foo.compare(1, 1, bar);
18344 foo.compare(1, 1, bar, 1, 1);
18345 foo.compare("");
18346 foo.compare(1, 1, "");
18347 foo.compare(1, 1, "", 2);
18348 ;
18349 return 0;
18350 }
18351 _ACEOF
18352 rm -f conftest.$ac_objext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18354 (eval $ac_compile) 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } &&
18358 { ac_try='test -s conftest.$ac_objext'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 echo "$as_me:$LINENO: result: yes" >&5
18365 echo "${ECHO_T}yes" >&6
18366 cat >>confdefs.h <<\_ACEOF
18367 #define HAVE_STD_STRING_COMPARE 1
18368 _ACEOF
18369
18370 else
18371 echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18373
18374 echo "$as_me:$LINENO: result: no" >&5
18375 echo "${ECHO_T}no" >&6
18376 fi
18377 rm -f conftest.$ac_objext conftest.$ac_ext
18378
18379 ac_ext=c
18380 ac_cpp='$CPP $CPPFLAGS'
18381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18384
18385 fi
18386
18387
18388 SEARCH_INCLUDE="\
18389 /usr/local/include \
18390 \
18391 /usr/Motif-2.1/include \
18392 /usr/Motif-1.2/include \
18393 /usr/include/Motif1.2 \
18394 /opt/xpm/include/X11 \
18395 /opt/GBxpm/include/ \
18396 /opt/GBxpm/X11/include/ \
18397 \
18398 /usr/dt/include \
18399 /usr/openwin/include \
18400 \
18401 /usr/include/Xm \
18402 \
18403 /usr/X11R6/include \
18404 /usr/X11R6.4/include \
18405 /usr/X11R5/include \
18406 /usr/X11R4/include \
18407 \
18408 /usr/include/X11R6 \
18409 /usr/include/X11R5 \
18410 /usr/include/X11R4 \
18411 \
18412 /usr/local/X11R6/include \
18413 /usr/local/X11R5/include \
18414 /usr/local/X11R4/include \
18415 \
18416 /usr/local/include/X11R6 \
18417 /usr/local/include/X11R5 \
18418 /usr/local/include/X11R4 \
18419 \
18420 /usr/X11/include \
18421 /usr/include/X11 \
18422 /usr/local/X11/include \
18423 /usr/local/include/X11 \
18424 \
18425 /usr/X386/include \
18426 /usr/x386/include \
18427 /usr/XFree86/include/X11 \
18428 \
18429 X:/XFree86/include \
18430 X:/XFree86/include/X11 \
18431 \
18432 /usr/include/gtk \
18433 /usr/local/include/gtk \
18434 /usr/include/glib \
18435 /usr/local/include/glib \
18436 \
18437 /usr/include/qt \
18438 /usr/local/include/qt \
18439 \
18440 /usr/include/windows \
18441 /usr/include/wine \
18442 /usr/local/include/wine \
18443 \
18444 /usr/unsupported/include \
18445 /usr/athena/include \
18446 /usr/local/x11r5/include \
18447 /usr/lpp/Xamples/include \
18448 \
18449 /usr/openwin/share/include"
18450
18451 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
18452
18453
18454 cat >confcache <<\_ACEOF
18455 # This file is a shell script that caches the results of configure
18456 # tests run on this system so they can be shared between configure
18457 # scripts and configure runs, see configure's option --config-cache.
18458 # It is not useful on other systems. If it contains results you don't
18459 # want to keep, you may remove or edit it.
18460 #
18461 # config.status only pays attention to the cache file if you give it
18462 # the --recheck option to rerun configure.
18463 #
18464 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18465 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18466 # following values.
18467
18468 _ACEOF
18469
18470 # The following way of writing the cache mishandles newlines in values,
18471 # but we know of no workaround that is simple, portable, and efficient.
18472 # So, don't put newlines in cache variables' values.
18473 # Ultrix sh set writes to stderr and can't be redirected directly,
18474 # and sets the high bit in the cache file unless we assign to the vars.
18475 {
18476 (set) 2>&1 |
18477 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18478 *ac_space=\ *)
18479 # `set' does not quote correctly, so add quotes (double-quote
18480 # substitution turns \\\\ into \\, and sed turns \\ into \).
18481 sed -n \
18482 "s/'/'\\\\''/g;
18483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18484 ;;
18485 *)
18486 # `set' quotes correctly as required by POSIX, so do not add quotes.
18487 sed -n \
18488 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18489 ;;
18490 esac;
18491 } |
18492 sed '
18493 t clear
18494 : clear
18495 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18496 t end
18497 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18498 : end' >>confcache
18499 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18500 if test -w $cache_file; then
18501 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18502 cat confcache >$cache_file
18503 else
18504 echo "not updating unwritable cache $cache_file"
18505 fi
18506 fi
18507 rm -f confcache
18508
18509 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
18510 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18511 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18512 if test "${wx_cv_lib_glibc21+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 else
18515
18516 cat >conftest.$ac_ext <<_ACEOF
18517 #line $LINENO "configure"
18518 /* confdefs.h. */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18523 #include <features.h>
18524 int
18525 main ()
18526 {
18527
18528 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18529 #error not glibc2.1
18530 #endif
18531
18532 ;
18533 return 0;
18534 }
18535 _ACEOF
18536 rm -f conftest.$ac_objext
18537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18538 (eval $ac_compile) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -s conftest.$ac_objext'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18548
18549 wx_cv_lib_glibc21=yes
18550
18551 else
18552 echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18554
18555
18556 wx_cv_lib_glibc21=no
18557
18558
18559 fi
18560 rm -f conftest.$ac_objext conftest.$ac_ext
18561
18562 fi
18563 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18564 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
18565 if test "$wx_cv_lib_glibc21" = "yes"; then
18566 cat >>confdefs.h <<\_ACEOF
18567 #define wxHAVE_GLIBC2 1
18568 _ACEOF
18569
18570 fi
18571 fi
18572
18573 if test "x$wx_cv_lib_glibc21" = "xyes"; then
18574 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
18575 cat >>confdefs.h <<\_ACEOF
18576 #define _GNU_SOURCE 1
18577 _ACEOF
18578
18579 fi
18580 fi
18581
18582
18583
18584 if test "$wxUSE_REGEX" != "no"; then
18585 cat >>confdefs.h <<\_ACEOF
18586 #define wxUSE_REGEX 1
18587 _ACEOF
18588
18589
18590 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
18591 { echo "$as_me:$LINENO: WARNING: Unicode build requires built-in regex library, will use it instead" >&5
18592 echo "$as_me: WARNING: Unicode build requires built-in regex library, will use it instead" >&2;}
18593 wxUSE_REGEX=builtin
18594 fi
18595
18596 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
18597 if test "${ac_cv_header_regex_h+set}" = set; then
18598 echo "$as_me:$LINENO: checking for regex.h" >&5
18599 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18600 if test "${ac_cv_header_regex_h+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 fi
18603 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18604 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18605 else
18606 # Is the header compilable?
18607 echo "$as_me:$LINENO: checking regex.h usability" >&5
18608 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18609 cat >conftest.$ac_ext <<_ACEOF
18610 #line $LINENO "configure"
18611 /* confdefs.h. */
18612 _ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h. */
18616 $ac_includes_default
18617 #include <regex.h>
18618 _ACEOF
18619 rm -f conftest.$ac_objext
18620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18621 (eval $ac_compile) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -s conftest.$ac_objext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_header_compiler=yes
18632 else
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18635
18636 ac_header_compiler=no
18637 fi
18638 rm -f conftest.$ac_objext conftest.$ac_ext
18639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18640 echo "${ECHO_T}$ac_header_compiler" >&6
18641
18642 # Is the header present?
18643 echo "$as_me:$LINENO: checking regex.h presence" >&5
18644 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18645 cat >conftest.$ac_ext <<_ACEOF
18646 #line $LINENO "configure"
18647 /* confdefs.h. */
18648 _ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h. */
18652 #include <regex.h>
18653 _ACEOF
18654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18656 ac_status=$?
18657 grep -v '^ *+' conftest.er1 >conftest.err
18658 rm -f conftest.er1
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } >/dev/null; then
18662 if test -s conftest.err; then
18663 ac_cpp_err=$ac_c_preproc_warn_flag
18664 else
18665 ac_cpp_err=
18666 fi
18667 else
18668 ac_cpp_err=yes
18669 fi
18670 if test -z "$ac_cpp_err"; then
18671 ac_header_preproc=yes
18672 else
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676 ac_header_preproc=no
18677 fi
18678 rm -f conftest.err conftest.$ac_ext
18679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18680 echo "${ECHO_T}$ac_header_preproc" >&6
18681
18682 # So? What about this header?
18683 case $ac_header_compiler:$ac_header_preproc in
18684 yes:no )
18685 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18686 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18687 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18688 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18689 (
18690 cat <<\_ASBOX
18691 ## ------------------------------------ ##
18692 ## Report this to bug-autoconf@gnu.org. ##
18693 ## ------------------------------------ ##
18694 _ASBOX
18695 ) |
18696 sed "s/^/$as_me: WARNING: /" >&2
18697 ;;
18698 no:yes )
18699 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18700 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
18701 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18702 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
18703 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18704 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18705 (
18706 cat <<\_ASBOX
18707 ## ------------------------------------ ##
18708 ## Report this to bug-autoconf@gnu.org. ##
18709 ## ------------------------------------ ##
18710 _ASBOX
18711 ) |
18712 sed "s/^/$as_me: WARNING: /" >&2
18713 ;;
18714 esac
18715 echo "$as_me:$LINENO: checking for regex.h" >&5
18716 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18717 if test "${ac_cv_header_regex_h+set}" = set; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18719 else
18720 ac_cv_header_regex_h=$ac_header_preproc
18721 fi
18722 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18723 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18724
18725 fi
18726 if test $ac_cv_header_regex_h = yes; then
18727
18728 for ac_func in regcomp
18729 do
18730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18731 echo "$as_me:$LINENO: checking for $ac_func" >&5
18732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18733 if eval "test \"\${$as_ac_var+set}\" = set"; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 else
18736 cat >conftest.$ac_ext <<_ACEOF
18737 #line $LINENO "configure"
18738 /* confdefs.h. */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743 /* System header to define __stub macros and hopefully few prototypes,
18744 which can conflict with char $ac_func (); below.
18745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18746 <limits.h> exists even on freestanding compilers. */
18747 #ifdef __STDC__
18748 # include <limits.h>
18749 #else
18750 # include <assert.h>
18751 #endif
18752 /* Override any gcc2 internal prototype to avoid an error. */
18753 #ifdef __cplusplus
18754 extern "C"
18755 {
18756 #endif
18757 /* We use char because int might match the return type of a gcc2
18758 builtin and then its argument prototype would still apply. */
18759 char $ac_func ();
18760 /* The GNU C library defines this for functions which it implements
18761 to always fail with ENOSYS. Some functions are actually named
18762 something starting with __ and the normal name is an alias. */
18763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18764 choke me
18765 #else
18766 char (*f) () = $ac_func;
18767 #endif
18768 #ifdef __cplusplus
18769 }
18770 #endif
18771
18772 int
18773 main ()
18774 {
18775 return f != $ac_func;
18776 ;
18777 return 0;
18778 }
18779 _ACEOF
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18782 (eval $ac_link) 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } &&
18786 { ac_try='test -s conftest$ac_exeext'
18787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18788 (eval $ac_try) 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; }; then
18792 eval "$as_ac_var=yes"
18793 else
18794 echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18796
18797 eval "$as_ac_var=no"
18798 fi
18799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18800 fi
18801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18803 if test `eval echo '${'$as_ac_var'}'` = yes; then
18804 cat >>confdefs.h <<_ACEOF
18805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18806 _ACEOF
18807
18808 fi
18809 done
18810
18811 fi
18812
18813
18814
18815 if test "x$ac_cv_func_regcomp" != "xyes"; then
18816 if test "$wxUSE_REGEX" = "sys" ; then
18817 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18818 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18819 { (exit 1); exit 1; }; }
18820 else
18821 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18822 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
18823 wxUSE_REGEX=builtin
18824 fi
18825 else
18826 wxUSE_REGEX=sys
18827 fi
18828 fi
18829 fi
18830
18831
18832 ZLIB_LINK=
18833 if test "$wxUSE_ZLIB" != "no" ; then
18834 cat >>confdefs.h <<\_ACEOF
18835 #define wxUSE_ZLIB 1
18836 _ACEOF
18837
18838
18839 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
18840 if test "$USE_DARWIN" = 1; then
18841 system_zlib_h_ok="yes"
18842 else
18843 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18844 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18845 if test "${ac_cv_header_zlib_h+set}" = set; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18847 else
18848 if test "$cross_compiling" = yes; then
18849 unset ac_cv_header_zlib_h
18850
18851 else
18852 cat >conftest.$ac_ext <<_ACEOF
18853 #line $LINENO "configure"
18854 /* confdefs.h. */
18855 _ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18859
18860 #include <zlib.h>
18861 #include <stdio.h>
18862
18863 int main()
18864 {
18865 FILE *f=fopen("conftestval", "w");
18866 if (!f) exit(1);
18867 fprintf(f, "%s",
18868 ZLIB_VERSION[0] == '1' &&
18869 (ZLIB_VERSION[2] > '1' ||
18870 (ZLIB_VERSION[2] == '1' &&
18871 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18872 exit(0);
18873 }
18874
18875 _ACEOF
18876 rm -f conftest$ac_exeext
18877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18878 (eval $ac_link) 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18887 ac_cv_header_zlib_h=`cat conftestval`
18888 else
18889 echo "$as_me: program exited with status $ac_status" >&5
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18892
18893 ( exit $ac_status )
18894 ac_cv_header_zlib_h=no
18895 fi
18896 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18897 fi
18898
18899 fi
18900 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18901 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18902 if test "${ac_cv_header_zlib_h+set}" = set; then
18903 echo "$as_me:$LINENO: checking for zlib.h" >&5
18904 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18905 if test "${ac_cv_header_zlib_h+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 fi
18908 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18909 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18910 else
18911 # Is the header compilable?
18912 echo "$as_me:$LINENO: checking zlib.h usability" >&5
18913 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18914 cat >conftest.$ac_ext <<_ACEOF
18915 #line $LINENO "configure"
18916 /* confdefs.h. */
18917 _ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18921 $ac_includes_default
18922 #include <zlib.h>
18923 _ACEOF
18924 rm -f conftest.$ac_objext
18925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18926 (eval $ac_compile) 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
18930 { ac_try='test -s conftest.$ac_objext'
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18933 ac_status=$?
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_header_compiler=yes
18937 else
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18940
18941 ac_header_compiler=no
18942 fi
18943 rm -f conftest.$ac_objext conftest.$ac_ext
18944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18945 echo "${ECHO_T}$ac_header_compiler" >&6
18946
18947 # Is the header present?
18948 echo "$as_me:$LINENO: checking zlib.h presence" >&5
18949 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18950 cat >conftest.$ac_ext <<_ACEOF
18951 #line $LINENO "configure"
18952 /* confdefs.h. */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18957 #include <zlib.h>
18958 _ACEOF
18959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18961 ac_status=$?
18962 grep -v '^ *+' conftest.er1 >conftest.err
18963 rm -f conftest.er1
18964 cat conftest.err >&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } >/dev/null; then
18967 if test -s conftest.err; then
18968 ac_cpp_err=$ac_c_preproc_warn_flag
18969 else
18970 ac_cpp_err=
18971 fi
18972 else
18973 ac_cpp_err=yes
18974 fi
18975 if test -z "$ac_cpp_err"; then
18976 ac_header_preproc=yes
18977 else
18978 echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.$ac_ext >&5
18980
18981 ac_header_preproc=no
18982 fi
18983 rm -f conftest.err conftest.$ac_ext
18984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18985 echo "${ECHO_T}$ac_header_preproc" >&6
18986
18987 # So? What about this header?
18988 case $ac_header_compiler:$ac_header_preproc in
18989 yes:no )
18990 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18991 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18992 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18993 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18994 (
18995 cat <<\_ASBOX
18996 ## ------------------------------------ ##
18997 ## Report this to bug-autoconf@gnu.org. ##
18998 ## ------------------------------------ ##
18999 _ASBOX
19000 ) |
19001 sed "s/^/$as_me: WARNING: /" >&2
19002 ;;
19003 no:yes )
19004 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19005 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19006 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19007 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19008 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19009 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19010 (
19011 cat <<\_ASBOX
19012 ## ------------------------------------ ##
19013 ## Report this to bug-autoconf@gnu.org. ##
19014 ## ------------------------------------ ##
19015 _ASBOX
19016 ) |
19017 sed "s/^/$as_me: WARNING: /" >&2
19018 ;;
19019 esac
19020 echo "$as_me:$LINENO: checking for zlib.h" >&5
19021 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19022 if test "${ac_cv_header_zlib_h+set}" = set; then
19023 echo $ECHO_N "(cached) $ECHO_C" >&6
19024 else
19025 ac_cv_header_zlib_h=$ac_header_preproc
19026 fi
19027 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19028 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19029
19030 fi
19031
19032
19033
19034 system_zlib_h_ok=$ac_cv_header_zlib_h
19035 fi
19036
19037 if test "$system_zlib_h_ok" = "yes"; then
19038 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19039 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19040 if test "${ac_cv_lib_z_deflate+set}" = set; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19042 else
19043 ac_check_lib_save_LIBS=$LIBS
19044 LIBS="-lz $LIBS"
19045 cat >conftest.$ac_ext <<_ACEOF
19046 #line $LINENO "configure"
19047 /* confdefs.h. */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19052
19053 /* Override any gcc2 internal prototype to avoid an error. */
19054 #ifdef __cplusplus
19055 extern "C"
19056 #endif
19057 /* We use char because int might match the return type of a gcc2
19058 builtin and then its argument prototype would still apply. */
19059 char deflate ();
19060 int
19061 main ()
19062 {
19063 deflate ();
19064 ;
19065 return 0;
19066 }
19067 _ACEOF
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19070 (eval $ac_link) 2>&5
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } &&
19074 { ac_try='test -s conftest$ac_exeext'
19075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; }; then
19080 ac_cv_lib_z_deflate=yes
19081 else
19082 echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19084
19085 ac_cv_lib_z_deflate=no
19086 fi
19087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19088 LIBS=$ac_check_lib_save_LIBS
19089 fi
19090 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19091 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19092 if test $ac_cv_lib_z_deflate = yes; then
19093 ZLIB_LINK=" -lz"
19094 fi
19095
19096 fi
19097
19098 if test "x$ZLIB_LINK" = "x" ; then
19099 if test "$wxUSE_ZLIB" = "sys" ; then
19100 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
19101 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
19102 { (exit 1); exit 1; }; }
19103 else
19104 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
19105 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
19106 wxUSE_ZLIB=builtin
19107 fi
19108 else
19109 wxUSE_ZLIB=sys
19110 fi
19111 fi
19112 fi
19113
19114
19115 PNG_LINK=
19116 if test "$wxUSE_LIBPNG" != "no" ; then
19117 cat >>confdefs.h <<\_ACEOF
19118 #define wxUSE_LIBPNG 1
19119 _ACEOF
19120
19121
19122 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
19123 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
19124 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
19125 wxUSE_LIBPNG=sys
19126 fi
19127
19128 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
19129 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
19130 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
19131 wxUSE_LIBPNG=builtin
19132 fi
19133
19134 if test "$wxUSE_MGL" != 1 ; then
19135 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
19136 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
19137 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
19138 if test "${ac_cv_header_png_h+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19140 else
19141 if test "$cross_compiling" = yes; then
19142 unset ac_cv_header_png_h
19143
19144 else
19145 cat >conftest.$ac_ext <<_ACEOF
19146 #line $LINENO "configure"
19147 /* confdefs.h. */
19148 _ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19152
19153 #include <png.h>
19154 #include <stdio.h>
19155
19156 int main()
19157 {
19158 FILE *f=fopen("conftestval", "w");
19159 if (!f) exit(1);
19160 fprintf(f, "%s",
19161 PNG_LIBPNG_VER > 90 ? "yes" : "no");
19162 exit(0);
19163 }
19164
19165 _ACEOF
19166 rm -f conftest$ac_exeext
19167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19168 (eval $ac_link) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173 (eval $ac_try) 2>&5
19174 ac_status=$?
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; }; then
19177 ac_cv_header_png_h=`cat conftestval`
19178 else
19179 echo "$as_me: program exited with status $ac_status" >&5
19180 echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19182
19183 ( exit $ac_status )
19184 ac_cv_header_png_h=no
19185 fi
19186 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19187 fi
19188
19189 fi
19190 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19191 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19192 if test "${ac_cv_header_png_h+set}" = set; then
19193 echo "$as_me:$LINENO: checking for png.h" >&5
19194 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19195 if test "${ac_cv_header_png_h+set}" = set; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19197 fi
19198 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19199 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19200 else
19201 # Is the header compilable?
19202 echo "$as_me:$LINENO: checking png.h usability" >&5
19203 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19204 cat >conftest.$ac_ext <<_ACEOF
19205 #line $LINENO "configure"
19206 /* confdefs.h. */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 $ac_includes_default
19212 #include <png.h>
19213 _ACEOF
19214 rm -f conftest.$ac_objext
19215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19216 (eval $ac_compile) 2>&5
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } &&
19220 { ac_try='test -s conftest.$ac_objext'
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19223 ac_status=$?
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
19226 ac_header_compiler=yes
19227 else
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19230
19231 ac_header_compiler=no
19232 fi
19233 rm -f conftest.$ac_objext conftest.$ac_ext
19234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19235 echo "${ECHO_T}$ac_header_compiler" >&6
19236
19237 # Is the header present?
19238 echo "$as_me:$LINENO: checking png.h presence" >&5
19239 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19240 cat >conftest.$ac_ext <<_ACEOF
19241 #line $LINENO "configure"
19242 /* confdefs.h. */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 #include <png.h>
19248 _ACEOF
19249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19251 ac_status=$?
19252 grep -v '^ *+' conftest.er1 >conftest.err
19253 rm -f conftest.er1
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } >/dev/null; then
19257 if test -s conftest.err; then
19258 ac_cpp_err=$ac_c_preproc_warn_flag
19259 else
19260 ac_cpp_err=
19261 fi
19262 else
19263 ac_cpp_err=yes
19264 fi
19265 if test -z "$ac_cpp_err"; then
19266 ac_header_preproc=yes
19267 else
19268 echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19270
19271 ac_header_preproc=no
19272 fi
19273 rm -f conftest.err conftest.$ac_ext
19274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19275 echo "${ECHO_T}$ac_header_preproc" >&6
19276
19277 # So? What about this header?
19278 case $ac_header_compiler:$ac_header_preproc in
19279 yes:no )
19280 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19281 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19282 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19283 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19284 (
19285 cat <<\_ASBOX
19286 ## ------------------------------------ ##
19287 ## Report this to bug-autoconf@gnu.org. ##
19288 ## ------------------------------------ ##
19289 _ASBOX
19290 ) |
19291 sed "s/^/$as_me: WARNING: /" >&2
19292 ;;
19293 no:yes )
19294 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19295 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19296 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19297 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19299 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19300 (
19301 cat <<\_ASBOX
19302 ## ------------------------------------ ##
19303 ## Report this to bug-autoconf@gnu.org. ##
19304 ## ------------------------------------ ##
19305 _ASBOX
19306 ) |
19307 sed "s/^/$as_me: WARNING: /" >&2
19308 ;;
19309 esac
19310 echo "$as_me:$LINENO: checking for png.h" >&5
19311 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19312 if test "${ac_cv_header_png_h+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315 ac_cv_header_png_h=$ac_header_preproc
19316 fi
19317 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19318 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19319
19320 fi
19321
19322
19323
19324 if test "$ac_cv_header_png_h" = "yes"; then
19325 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
19326 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
19327 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19329 else
19330 ac_check_lib_save_LIBS=$LIBS
19331 LIBS="-lpng -lz -lm $LIBS"
19332 cat >conftest.$ac_ext <<_ACEOF
19333 #line $LINENO "configure"
19334 /* confdefs.h. */
19335 _ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h. */
19339
19340 /* Override any gcc2 internal prototype to avoid an error. */
19341 #ifdef __cplusplus
19342 extern "C"
19343 #endif
19344 /* We use char because int might match the return type of a gcc2
19345 builtin and then its argument prototype would still apply. */
19346 char png_check_sig ();
19347 int
19348 main ()
19349 {
19350 png_check_sig ();
19351 ;
19352 return 0;
19353 }
19354 _ACEOF
19355 rm -f conftest.$ac_objext conftest$ac_exeext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19357 (eval $ac_link) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
19361 { ac_try='test -s conftest$ac_exeext'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 ac_cv_lib_png_png_check_sig=yes
19368 else
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19371
19372 ac_cv_lib_png_png_check_sig=no
19373 fi
19374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19375 LIBS=$ac_check_lib_save_LIBS
19376 fi
19377 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
19378 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
19379 if test $ac_cv_lib_png_png_check_sig = yes; then
19380 PNG_LINK=" -lpng"
19381 fi
19382
19383 fi
19384
19385 if test "x$PNG_LINK" = "x" ; then
19386 if test "$wxUSE_LIBPNG" = "sys" ; then
19387 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
19388 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
19389 { (exit 1); exit 1; }; }
19390 else
19391 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
19392 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
19393 wxUSE_LIBPNG=builtin
19394 fi
19395 else
19396 wxUSE_LIBPNG=sys
19397 fi
19398 fi
19399 fi
19400
19401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
19402 fi
19403
19404
19405 JPEG_LINK=
19406 if test "$wxUSE_LIBJPEG" != "no" ; then
19407 cat >>confdefs.h <<\_ACEOF
19408 #define wxUSE_LIBJPEG 1
19409 _ACEOF
19410
19411
19412 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
19413 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19414 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
19415 wxUSE_LIBJPEG=sys
19416 fi
19417
19418 if test "$wxUSE_MGL" != 1 ; then
19419 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
19420 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19421 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19422 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 else
19425 cat >conftest.$ac_ext <<_ACEOF
19426 #line $LINENO "configure"
19427 /* confdefs.h. */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19432
19433 #undef HAVE_STDLIB_H
19434 #include <stdio.h>
19435 #include <jpeglib.h>
19436
19437 int
19438 main ()
19439 {
19440
19441
19442 ;
19443 return 0;
19444 }
19445 _ACEOF
19446 rm -f conftest.$ac_objext
19447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19448 (eval $ac_compile) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } &&
19452 { ac_try='test -s conftest.$ac_objext'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 ac_cv_header_jpeglib_h=yes
19459 else
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19462
19463 ac_cv_header_jpeglib_h=no
19464
19465 fi
19466 rm -f conftest.$ac_objext conftest.$ac_ext
19467
19468 fi
19469
19470 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19471 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
19472
19473 if test "$ac_cv_header_jpeglib_h" = "yes"; then
19474 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19475 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19476 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19478 else
19479 ac_check_lib_save_LIBS=$LIBS
19480 LIBS="-ljpeg $LIBS"
19481 cat >conftest.$ac_ext <<_ACEOF
19482 #line $LINENO "configure"
19483 /* confdefs.h. */
19484 _ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h. */
19488
19489 /* Override any gcc2 internal prototype to avoid an error. */
19490 #ifdef __cplusplus
19491 extern "C"
19492 #endif
19493 /* We use char because int might match the return type of a gcc2
19494 builtin and then its argument prototype would still apply. */
19495 char jpeg_read_header ();
19496 int
19497 main ()
19498 {
19499 jpeg_read_header ();
19500 ;
19501 return 0;
19502 }
19503 _ACEOF
19504 rm -f conftest.$ac_objext conftest$ac_exeext
19505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19506 (eval $ac_link) 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
19510 { ac_try='test -s conftest$ac_exeext'
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 ac_cv_lib_jpeg_jpeg_read_header=yes
19517 else
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19520
19521 ac_cv_lib_jpeg_jpeg_read_header=no
19522 fi
19523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19524 LIBS=$ac_check_lib_save_LIBS
19525 fi
19526 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19527 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19528 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
19529 JPEG_LINK=" -ljpeg"
19530 fi
19531
19532 fi
19533
19534 if test "x$JPEG_LINK" = "x" ; then
19535 if test "$wxUSE_LIBJPEG" = "sys" ; then
19536 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19537 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19538 { (exit 1); exit 1; }; }
19539 else
19540 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19541 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
19542 wxUSE_LIBJPEG=builtin
19543 fi
19544 else
19545 wxUSE_LIBJPEG=sys
19546 fi
19547 fi
19548 fi
19549 fi
19550
19551
19552 TIFF_LINK=
19553 TIFF_PREREQ_LINKS=-lm
19554 if test "$wxUSE_LIBTIFF" != "no" ; then
19555 cat >>confdefs.h <<\_ACEOF
19556 #define wxUSE_LIBTIFF 1
19557 _ACEOF
19558
19559
19560 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
19561 if test "$wxUSE_LIBJPEG" = "sys"; then
19562 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19563 fi
19564 if test "$wxUSE_ZLIB" = "sys"; then
19565 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19566 fi
19567 if test "${ac_cv_header_tiffio_h+set}" = set; then
19568 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19569 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19570 if test "${ac_cv_header_tiffio_h+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 fi
19573 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19574 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19575 else
19576 # Is the header compilable?
19577 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19578 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19579 cat >conftest.$ac_ext <<_ACEOF
19580 #line $LINENO "configure"
19581 /* confdefs.h. */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19586 $ac_includes_default
19587 #include <tiffio.h>
19588 _ACEOF
19589 rm -f conftest.$ac_objext
19590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19591 (eval $ac_compile) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } &&
19595 { ac_try='test -s conftest.$ac_objext'
19596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597 (eval $ac_try) 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; }; then
19601 ac_header_compiler=yes
19602 else
19603 echo "$as_me: failed program was:" >&5
19604 sed 's/^/| /' conftest.$ac_ext >&5
19605
19606 ac_header_compiler=no
19607 fi
19608 rm -f conftest.$ac_objext conftest.$ac_ext
19609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19610 echo "${ECHO_T}$ac_header_compiler" >&6
19611
19612 # Is the header present?
19613 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19614 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19615 cat >conftest.$ac_ext <<_ACEOF
19616 #line $LINENO "configure"
19617 /* confdefs.h. */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 #include <tiffio.h>
19623 _ACEOF
19624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19626 ac_status=$?
19627 grep -v '^ *+' conftest.er1 >conftest.err
19628 rm -f conftest.er1
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } >/dev/null; then
19632 if test -s conftest.err; then
19633 ac_cpp_err=$ac_c_preproc_warn_flag
19634 else
19635 ac_cpp_err=
19636 fi
19637 else
19638 ac_cpp_err=yes
19639 fi
19640 if test -z "$ac_cpp_err"; then
19641 ac_header_preproc=yes
19642 else
19643 echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19645
19646 ac_header_preproc=no
19647 fi
19648 rm -f conftest.err conftest.$ac_ext
19649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19650 echo "${ECHO_T}$ac_header_preproc" >&6
19651
19652 # So? What about this header?
19653 case $ac_header_compiler:$ac_header_preproc in
19654 yes:no )
19655 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19656 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19657 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19658 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19659 (
19660 cat <<\_ASBOX
19661 ## ------------------------------------ ##
19662 ## Report this to bug-autoconf@gnu.org. ##
19663 ## ------------------------------------ ##
19664 _ASBOX
19665 ) |
19666 sed "s/^/$as_me: WARNING: /" >&2
19667 ;;
19668 no:yes )
19669 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19670 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
19671 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19672 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
19673 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19674 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19675 (
19676 cat <<\_ASBOX
19677 ## ------------------------------------ ##
19678 ## Report this to bug-autoconf@gnu.org. ##
19679 ## ------------------------------------ ##
19680 _ASBOX
19681 ) |
19682 sed "s/^/$as_me: WARNING: /" >&2
19683 ;;
19684 esac
19685 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19686 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19687 if test "${ac_cv_header_tiffio_h+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690 ac_cv_header_tiffio_h=$ac_header_preproc
19691 fi
19692 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19693 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19694
19695 fi
19696 if test $ac_cv_header_tiffio_h = yes; then
19697
19698 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
19699 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19700 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19702 else
19703 ac_check_lib_save_LIBS=$LIBS
19704 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
19705 cat >conftest.$ac_ext <<_ACEOF
19706 #line $LINENO "configure"
19707 /* confdefs.h. */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712
19713 /* Override any gcc2 internal prototype to avoid an error. */
19714 #ifdef __cplusplus
19715 extern "C"
19716 #endif
19717 /* We use char because int might match the return type of a gcc2
19718 builtin and then its argument prototype would still apply. */
19719 char TIFFError ();
19720 int
19721 main ()
19722 {
19723 TIFFError ();
19724 ;
19725 return 0;
19726 }
19727 _ACEOF
19728 rm -f conftest.$ac_objext conftest$ac_exeext
19729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19730 (eval $ac_link) 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } &&
19734 { ac_try='test -s conftest$ac_exeext'
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; }; then
19740 ac_cv_lib_tiff_TIFFError=yes
19741 else
19742 echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19744
19745 ac_cv_lib_tiff_TIFFError=no
19746 fi
19747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19748 LIBS=$ac_check_lib_save_LIBS
19749 fi
19750 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19751 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19752 if test $ac_cv_lib_tiff_TIFFError = yes; then
19753 TIFF_LINK=" -ltiff"
19754 fi
19755
19756
19757
19758 fi
19759
19760
19761
19762 if test "x$TIFF_LINK" = "x" ; then
19763 if test "$wxUSE_LIBTIFF" = "sys" ; then
19764 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19765 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19766 { (exit 1); exit 1; }; }
19767 else
19768 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19769 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
19770 wxUSE_LIBTIFF=builtin
19771 fi
19772 else
19773 wxUSE_LIBTIFF=sys
19774 fi
19775 fi
19776 fi
19777
19778
19779 if test "$wxUSE_EXPAT" != "no"; then
19780 wxUSE_XML=yes
19781 cat >>confdefs.h <<\_ACEOF
19782 #define wxUSE_EXPAT 1
19783 _ACEOF
19784
19785 cat >>confdefs.h <<\_ACEOF
19786 #define wxUSE_XML 1
19787 _ACEOF
19788
19789
19790 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19791 if test "${ac_cv_header_expat_h+set}" = set; then
19792 echo "$as_me:$LINENO: checking for expat.h" >&5
19793 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19794 if test "${ac_cv_header_expat_h+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19796 fi
19797 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19798 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19799 else
19800 # Is the header compilable?
19801 echo "$as_me:$LINENO: checking expat.h usability" >&5
19802 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19803 cat >conftest.$ac_ext <<_ACEOF
19804 #line $LINENO "configure"
19805 /* confdefs.h. */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19810 $ac_includes_default
19811 #include <expat.h>
19812 _ACEOF
19813 rm -f conftest.$ac_objext
19814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19815 (eval $ac_compile) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
19819 { ac_try='test -s conftest.$ac_objext'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ac_header_compiler=yes
19826 else
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830 ac_header_compiler=no
19831 fi
19832 rm -f conftest.$ac_objext conftest.$ac_ext
19833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19834 echo "${ECHO_T}$ac_header_compiler" >&6
19835
19836 # Is the header present?
19837 echo "$as_me:$LINENO: checking expat.h presence" >&5
19838 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19839 cat >conftest.$ac_ext <<_ACEOF
19840 #line $LINENO "configure"
19841 /* confdefs.h. */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 #include <expat.h>
19847 _ACEOF
19848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } >/dev/null; then
19856 if test -s conftest.err; then
19857 ac_cpp_err=$ac_c_preproc_warn_flag
19858 else
19859 ac_cpp_err=
19860 fi
19861 else
19862 ac_cpp_err=yes
19863 fi
19864 if test -z "$ac_cpp_err"; then
19865 ac_header_preproc=yes
19866 else
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19869
19870 ac_header_preproc=no
19871 fi
19872 rm -f conftest.err conftest.$ac_ext
19873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19874 echo "${ECHO_T}$ac_header_preproc" >&6
19875
19876 # So? What about this header?
19877 case $ac_header_compiler:$ac_header_preproc in
19878 yes:no )
19879 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19880 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19881 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19882 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19883 (
19884 cat <<\_ASBOX
19885 ## ------------------------------------ ##
19886 ## Report this to bug-autoconf@gnu.org. ##
19887 ## ------------------------------------ ##
19888 _ASBOX
19889 ) |
19890 sed "s/^/$as_me: WARNING: /" >&2
19891 ;;
19892 no:yes )
19893 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19894 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19896 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19898 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19899 (
19900 cat <<\_ASBOX
19901 ## ------------------------------------ ##
19902 ## Report this to bug-autoconf@gnu.org. ##
19903 ## ------------------------------------ ##
19904 _ASBOX
19905 ) |
19906 sed "s/^/$as_me: WARNING: /" >&2
19907 ;;
19908 esac
19909 echo "$as_me:$LINENO: checking for expat.h" >&5
19910 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19911 if test "${ac_cv_header_expat_h+set}" = set; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 else
19914 ac_cv_header_expat_h=$ac_header_preproc
19915 fi
19916 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19917 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19918
19919 fi
19920 if test $ac_cv_header_expat_h = yes; then
19921 found_expat_h=1
19922 fi
19923
19924
19925 if test "x$found_expat_h" = "x1"; then
19926 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19927 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19928 if test "${wx_cv_expat_is_not_broken+set}" = set; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19930 else
19931
19932
19933
19934 ac_ext=cc
19935 ac_cpp='$CXXCPP $CPPFLAGS'
19936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19939
19940 cat >conftest.$ac_ext <<_ACEOF
19941 #line $LINENO "configure"
19942 /* confdefs.h. */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 #include <expat.h>
19948 int
19949 main ()
19950 {
19951
19952 ;
19953 return 0;
19954 }
19955 _ACEOF
19956 rm -f conftest.$ac_objext
19957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19958 (eval $ac_compile) 2>&5
19959 ac_status=$?
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
19962 { ac_try='test -s conftest.$ac_objext'
19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19965 ac_status=$?
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19968 wx_cv_expat_is_not_broken=yes
19969 else
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19972
19973 wx_cv_expat_is_not_broken=no
19974
19975 fi
19976 rm -f conftest.$ac_objext conftest.$ac_ext
19977 ac_ext=c
19978 ac_cpp='$CPP $CPPFLAGS'
19979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19982
19983
19984
19985 fi
19986 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19987 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19988 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19989 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
19990 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19991 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19993 else
19994 ac_check_lib_save_LIBS=$LIBS
19995 LIBS="-lexpat $LIBS"
19996 cat >conftest.$ac_ext <<_ACEOF
19997 #line $LINENO "configure"
19998 /* confdefs.h. */
19999 _ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20003
20004 /* Override any gcc2 internal prototype to avoid an error. */
20005 #ifdef __cplusplus
20006 extern "C"
20007 #endif
20008 /* We use char because int might match the return type of a gcc2
20009 builtin and then its argument prototype would still apply. */
20010 char XML_ParserCreate ();
20011 int
20012 main ()
20013 {
20014 XML_ParserCreate ();
20015 ;
20016 return 0;
20017 }
20018 _ACEOF
20019 rm -f conftest.$ac_objext conftest$ac_exeext
20020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20021 (eval $ac_link) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } &&
20025 { ac_try='test -s conftest$ac_exeext'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 ac_cv_lib_expat_XML_ParserCreate=yes
20032 else
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20035
20036 ac_cv_lib_expat_XML_ParserCreate=no
20037 fi
20038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20039 LIBS=$ac_check_lib_save_LIBS
20040 fi
20041 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20042 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
20043 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
20044 EXPAT_LINK=" -lexpat"
20045 fi
20046
20047 fi
20048 fi
20049 if test "x$EXPAT_LINK" = "x" ; then
20050 if test "$wxUSE_EXPAT" = "sys" ; then
20051 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
20052 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
20053 { (exit 1); exit 1; }; }
20054 else
20055 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
20056 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
20057 wxUSE_EXPAT=builtin
20058 fi
20059 else
20060 wxUSE_EXPAT=sys
20061 fi
20062 fi
20063 if test "$wxUSE_EXPAT" = "builtin" ; then
20064
20065
20066 subdirs="$subdirs src/expat"
20067
20068 fi
20069 fi
20070
20071
20072
20073 if test "$wxUSE_LIBMSPACK" != "no"; then
20074
20075 if test "${ac_cv_header_mspack_h+set}" = set; then
20076 echo "$as_me:$LINENO: checking for mspack.h" >&5
20077 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20078 if test "${ac_cv_header_mspack_h+set}" = set; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20080 fi
20081 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20082 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20083 else
20084 # Is the header compilable?
20085 echo "$as_me:$LINENO: checking mspack.h usability" >&5
20086 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
20087 cat >conftest.$ac_ext <<_ACEOF
20088 #line $LINENO "configure"
20089 /* confdefs.h. */
20090 _ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20094 $ac_includes_default
20095 #include <mspack.h>
20096 _ACEOF
20097 rm -f conftest.$ac_objext
20098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20099 (eval $ac_compile) 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
20103 { ac_try='test -s conftest.$ac_objext'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 ac_header_compiler=yes
20110 else
20111 echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20113
20114 ac_header_compiler=no
20115 fi
20116 rm -f conftest.$ac_objext conftest.$ac_ext
20117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20118 echo "${ECHO_T}$ac_header_compiler" >&6
20119
20120 # Is the header present?
20121 echo "$as_me:$LINENO: checking mspack.h presence" >&5
20122 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
20123 cat >conftest.$ac_ext <<_ACEOF
20124 #line $LINENO "configure"
20125 /* confdefs.h. */
20126 _ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h. */
20130 #include <mspack.h>
20131 _ACEOF
20132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20134 ac_status=$?
20135 grep -v '^ *+' conftest.er1 >conftest.err
20136 rm -f conftest.er1
20137 cat conftest.err >&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } >/dev/null; then
20140 if test -s conftest.err; then
20141 ac_cpp_err=$ac_c_preproc_warn_flag
20142 else
20143 ac_cpp_err=
20144 fi
20145 else
20146 ac_cpp_err=yes
20147 fi
20148 if test -z "$ac_cpp_err"; then
20149 ac_header_preproc=yes
20150 else
20151 echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20153
20154 ac_header_preproc=no
20155 fi
20156 rm -f conftest.err conftest.$ac_ext
20157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20158 echo "${ECHO_T}$ac_header_preproc" >&6
20159
20160 # So? What about this header?
20161 case $ac_header_compiler:$ac_header_preproc in
20162 yes:no )
20163 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
20164 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20165 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20166 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
20167 (
20168 cat <<\_ASBOX
20169 ## ------------------------------------ ##
20170 ## Report this to bug-autoconf@gnu.org. ##
20171 ## ------------------------------------ ##
20172 _ASBOX
20173 ) |
20174 sed "s/^/$as_me: WARNING: /" >&2
20175 ;;
20176 no:yes )
20177 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
20178 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
20179 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
20180 echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
20181 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20182 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
20183 (
20184 cat <<\_ASBOX
20185 ## ------------------------------------ ##
20186 ## Report this to bug-autoconf@gnu.org. ##
20187 ## ------------------------------------ ##
20188 _ASBOX
20189 ) |
20190 sed "s/^/$as_me: WARNING: /" >&2
20191 ;;
20192 esac
20193 echo "$as_me:$LINENO: checking for mspack.h" >&5
20194 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20195 if test "${ac_cv_header_mspack_h+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198 ac_cv_header_mspack_h=$ac_header_preproc
20199 fi
20200 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20201 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20202
20203 fi
20204 if test $ac_cv_header_mspack_h = yes; then
20205 found_mspack_h=1
20206 fi
20207
20208
20209 if test "x$found_mspack_h" = "x1"; then
20210 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
20211 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
20212 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215 ac_check_lib_save_LIBS=$LIBS
20216 LIBS="-lmspack $LIBS"
20217 cat >conftest.$ac_ext <<_ACEOF
20218 #line $LINENO "configure"
20219 /* confdefs.h. */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224
20225 /* Override any gcc2 internal prototype to avoid an error. */
20226 #ifdef __cplusplus
20227 extern "C"
20228 #endif
20229 /* We use char because int might match the return type of a gcc2
20230 builtin and then its argument prototype would still apply. */
20231 char mspack_create_chm_decompressor ();
20232 int
20233 main ()
20234 {
20235 mspack_create_chm_decompressor ();
20236 ;
20237 return 0;
20238 }
20239 _ACEOF
20240 rm -f conftest.$ac_objext conftest$ac_exeext
20241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20242 (eval $ac_link) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } &&
20246 { ac_try='test -s conftest$ac_exeext'
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
20253 else
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20256
20257 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
20258 fi
20259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20260 LIBS=$ac_check_lib_save_LIBS
20261 fi
20262 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
20263 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
20264 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
20265 MSPACK_LINK=" -lmspack"
20266 fi
20267
20268 fi
20269 if test "x$MSPACK_LINK" = "x" ; then
20270 wxUSE_LIBMSPACK=no
20271 else
20272 cat >>confdefs.h <<\_ACEOF
20273 #define wxUSE_LIBMSPACK 1
20274 _ACEOF
20275
20276 fi
20277 fi
20278
20279
20280
20281 AFMINSTALL=
20282 WIN32INSTALL=
20283
20284 TOOLKIT=
20285 TOOLKIT_INCLUDE=
20286 WIDGET_SET=
20287
20288 if test "$USE_WIN32" = 1 ; then
20289
20290 for ac_header in w32api.h
20291 do
20292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20294 echo "$as_me:$LINENO: checking for $ac_header" >&5
20295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20298 fi
20299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20301 else
20302 # Is the header compilable?
20303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20305 cat >conftest.$ac_ext <<_ACEOF
20306 #line $LINENO "configure"
20307 /* confdefs.h. */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20312 $ac_includes_default
20313 #include <$ac_header>
20314 _ACEOF
20315 rm -f conftest.$ac_objext
20316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20317 (eval $ac_compile) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
20321 { ac_try='test -s conftest.$ac_objext'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 ac_header_compiler=yes
20328 else
20329 echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20331
20332 ac_header_compiler=no
20333 fi
20334 rm -f conftest.$ac_objext conftest.$ac_ext
20335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20336 echo "${ECHO_T}$ac_header_compiler" >&6
20337
20338 # Is the header present?
20339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20341 cat >conftest.$ac_ext <<_ACEOF
20342 #line $LINENO "configure"
20343 /* confdefs.h. */
20344 _ACEOF
20345 cat confdefs.h >>conftest.$ac_ext
20346 cat >>conftest.$ac_ext <<_ACEOF
20347 /* end confdefs.h. */
20348 #include <$ac_header>
20349 _ACEOF
20350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20352 ac_status=$?
20353 grep -v '^ *+' conftest.er1 >conftest.err
20354 rm -f conftest.er1
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } >/dev/null; then
20358 if test -s conftest.err; then
20359 ac_cpp_err=$ac_c_preproc_warn_flag
20360 else
20361 ac_cpp_err=
20362 fi
20363 else
20364 ac_cpp_err=yes
20365 fi
20366 if test -z "$ac_cpp_err"; then
20367 ac_header_preproc=yes
20368 else
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20371
20372 ac_header_preproc=no
20373 fi
20374 rm -f conftest.err conftest.$ac_ext
20375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20376 echo "${ECHO_T}$ac_header_preproc" >&6
20377
20378 # So? What about this header?
20379 case $ac_header_compiler:$ac_header_preproc in
20380 yes:no )
20381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20385 (
20386 cat <<\_ASBOX
20387 ## ------------------------------------ ##
20388 ## Report this to bug-autoconf@gnu.org. ##
20389 ## ------------------------------------ ##
20390 _ASBOX
20391 ) |
20392 sed "s/^/$as_me: WARNING: /" >&2
20393 ;;
20394 no:yes )
20395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20401 (
20402 cat <<\_ASBOX
20403 ## ------------------------------------ ##
20404 ## Report this to bug-autoconf@gnu.org. ##
20405 ## ------------------------------------ ##
20406 _ASBOX
20407 ) |
20408 sed "s/^/$as_me: WARNING: /" >&2
20409 ;;
20410 esac
20411 echo "$as_me:$LINENO: checking for $ac_header" >&5
20412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20415 else
20416 eval "$as_ac_Header=$ac_header_preproc"
20417 fi
20418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20420
20421 fi
20422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20423 cat >>confdefs.h <<_ACEOF
20424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20425 _ACEOF
20426
20427 fi
20428
20429 done
20430
20431 if test "${ac_cv_header_windows_h+set}" = set; then
20432 echo "$as_me:$LINENO: checking for windows.h" >&5
20433 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20434 if test "${ac_cv_header_windows_h+set}" = set; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20436 fi
20437 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20438 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20439 else
20440 # Is the header compilable?
20441 echo "$as_me:$LINENO: checking windows.h usability" >&5
20442 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20443 cat >conftest.$ac_ext <<_ACEOF
20444 #line $LINENO "configure"
20445 /* confdefs.h. */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450 $ac_includes_default
20451 #include <windows.h>
20452 _ACEOF
20453 rm -f conftest.$ac_objext
20454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20455 (eval $ac_compile) 2>&5
20456 ac_status=$?
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
20459 { ac_try='test -s conftest.$ac_objext'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
20465 ac_header_compiler=yes
20466 else
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20469
20470 ac_header_compiler=no
20471 fi
20472 rm -f conftest.$ac_objext conftest.$ac_ext
20473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20474 echo "${ECHO_T}$ac_header_compiler" >&6
20475
20476 # Is the header present?
20477 echo "$as_me:$LINENO: checking windows.h presence" >&5
20478 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
20479 cat >conftest.$ac_ext <<_ACEOF
20480 #line $LINENO "configure"
20481 /* confdefs.h. */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20486 #include <windows.h>
20487 _ACEOF
20488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20490 ac_status=$?
20491 grep -v '^ *+' conftest.er1 >conftest.err
20492 rm -f conftest.er1
20493 cat conftest.err >&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } >/dev/null; then
20496 if test -s conftest.err; then
20497 ac_cpp_err=$ac_c_preproc_warn_flag
20498 else
20499 ac_cpp_err=
20500 fi
20501 else
20502 ac_cpp_err=yes
20503 fi
20504 if test -z "$ac_cpp_err"; then
20505 ac_header_preproc=yes
20506 else
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20509
20510 ac_header_preproc=no
20511 fi
20512 rm -f conftest.err conftest.$ac_ext
20513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20514 echo "${ECHO_T}$ac_header_preproc" >&6
20515
20516 # So? What about this header?
20517 case $ac_header_compiler:$ac_header_preproc in
20518 yes:no )
20519 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
20520 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20521 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20522 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20523 (
20524 cat <<\_ASBOX
20525 ## ------------------------------------ ##
20526 ## Report this to bug-autoconf@gnu.org. ##
20527 ## ------------------------------------ ##
20528 _ASBOX
20529 ) |
20530 sed "s/^/$as_me: WARNING: /" >&2
20531 ;;
20532 no:yes )
20533 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
20534 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
20535 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
20536 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
20537 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20538 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20539 (
20540 cat <<\_ASBOX
20541 ## ------------------------------------ ##
20542 ## Report this to bug-autoconf@gnu.org. ##
20543 ## ------------------------------------ ##
20544 _ASBOX
20545 ) |
20546 sed "s/^/$as_me: WARNING: /" >&2
20547 ;;
20548 esac
20549 echo "$as_me:$LINENO: checking for windows.h" >&5
20550 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20551 if test "${ac_cv_header_windows_h+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 else
20554 ac_cv_header_windows_h=$ac_header_preproc
20555 fi
20556 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20557 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20558
20559 fi
20560 if test $ac_cv_header_windows_h = yes; then
20561 :
20562 else
20563
20564 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
20565 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
20566 { (exit 1); exit 1; }; }
20567
20568 fi
20569
20570
20571
20572 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
20573
20574 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
20575 LIBS="$LIBS -loleacc"
20576 fi
20577
20578 case "${host}" in
20579 *-*-cygwin* )
20580 LIBS="$LIBS -lkernel32 -luser32"
20581 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
20582 esac
20583
20584 if test "$wxUSE_ODBC" = "sys" ; then
20585 wxUSE_ODBC = "yes"
20586 fi
20587 if test "$wxUSE_ODBC" = "yes" ; then
20588 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
20589 cat >>confdefs.h <<\_ACEOF
20590 #define wxUSE_ODBC 1
20591 _ACEOF
20592
20593 fi
20594
20595 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
20596 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
20597
20598 WIN32INSTALL=win32install
20599 fi
20600
20601 if test "$wxUSE_GUI" = "yes"; then
20602 USE_GUI=1
20603
20604 GUI_TK_LIBRARY=
20605
20606 WXGTK12=
20607 WXGTK127=
20608 WXGTK20=
20609
20610 if test "$wxUSE_MSW" = 1 ; then
20611 TOOLKIT=MSW
20612 GUIDIST=MSW_DIST
20613
20614 case "${host}" in
20615 *-*-mingw32* )
20616 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
20617 esac
20618 fi
20619
20620 if test "$wxUSE_GTK" = 1; then
20621 echo "$as_me:$LINENO: checking for GTK+ version" >&5
20622 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
20623
20624 gtk_version_cached=1
20625 if test "${wx_cv_lib_gtk+set}" = set; then
20626 echo $ECHO_N "(cached) $ECHO_C" >&6
20627 else
20628
20629 gtk_version_cached=0
20630 echo "$as_me:$LINENO: result: " >&5
20631 echo "${ECHO_T}" >&6
20632
20633 GTK_MODULES=
20634 if test "$wxUSE_THREADS" = "yes"; then
20635 GTK_MODULES=gthread
20636 fi
20637
20638 wx_cv_lib_gtk=
20639 if test "x$wxUSE_GTK2" = "xyes"; then
20640 # Check whether --enable-gtktest or --disable-gtktest was given.
20641 if test "${enable_gtktest+set}" = set; then
20642 enableval="$enable_gtktest"
20643
20644 else
20645 enable_gtktest=yes
20646 fi;
20647
20648 pkg_config_args=gtk+-2.0
20649 for module in . $GTK_MODULES
20650 do
20651 case "$module" in
20652 gthread)
20653 pkg_config_args="$pkg_config_args gthread-2.0"
20654 ;;
20655 esac
20656 done
20657
20658 no_gtk=""
20659
20660 # Extract the first word of "pkg-config", so it can be a program name with args.
20661 set dummy pkg-config; ac_word=$2
20662 echo "$as_me:$LINENO: checking for $ac_word" >&5
20663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20664 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667 case $PKG_CONFIG in
20668 [\\/]* | ?:[\\/]*)
20669 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20670 ;;
20671 *)
20672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20673 for as_dir in $PATH
20674 do
20675 IFS=$as_save_IFS
20676 test -z "$as_dir" && as_dir=.
20677 for ac_exec_ext in '' $ac_executable_extensions; do
20678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20679 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20681 break 2
20682 fi
20683 done
20684 done
20685
20686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20687 ;;
20688 esac
20689 fi
20690 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20691
20692 if test -n "$PKG_CONFIG"; then
20693 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20694 echo "${ECHO_T}$PKG_CONFIG" >&6
20695 else
20696 echo "$as_me:$LINENO: result: no" >&5
20697 echo "${ECHO_T}no" >&6
20698 fi
20699
20700
20701 if test x$PKG_CONFIG != xno ; then
20702 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20703 :
20704 else
20705 echo *** pkg-config too old; version 0.7 or better required.
20706 no_gtk=yes
20707 PKG_CONFIG=no
20708 fi
20709 else
20710 no_gtk=yes
20711 fi
20712
20713 min_gtk_version=2.0.0
20714 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20715 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
20716
20717 if test x$PKG_CONFIG != xno ; then
20718 ## don't try to run the test against uninstalled libtool libs
20719 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20720 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20721 enable_gtktest=no
20722 fi
20723
20724 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20725 :
20726 else
20727 no_gtk=yes
20728 fi
20729 fi
20730
20731 if test x"$no_gtk" = x ; then
20732 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20733 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20734 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20735 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20736 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20737 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20738 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20739 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20740 if test "x$enable_gtktest" = "xyes" ; then
20741 ac_save_CFLAGS="$CFLAGS"
20742 ac_save_LIBS="$LIBS"
20743 CFLAGS="$CFLAGS $GTK_CFLAGS"
20744 LIBS="$GTK_LIBS $LIBS"
20745 rm -f conf.gtktest
20746 if test "$cross_compiling" = yes; then
20747 echo $ac_n "cross compiling; assumed OK... $ac_c"
20748 else
20749 cat >conftest.$ac_ext <<_ACEOF
20750 #line $LINENO "configure"
20751 /* confdefs.h. */
20752 _ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20756
20757 #include <gtk/gtk.h>
20758 #include <stdio.h>
20759 #include <stdlib.h>
20760
20761 int
20762 main ()
20763 {
20764 int major, minor, micro;
20765 char *tmp_version;
20766
20767 system ("touch conf.gtktest");
20768
20769 /* HP/UX 9 (%@#!) writes to sscanf strings */
20770 tmp_version = g_strdup("$min_gtk_version");
20771 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20772 printf("%s, bad version string\n", "$min_gtk_version");
20773 exit(1);
20774 }
20775
20776 if ((gtk_major_version != $gtk_config_major_version) ||
20777 (gtk_minor_version != $gtk_config_minor_version) ||
20778 (gtk_micro_version != $gtk_config_micro_version))
20779 {
20780 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20781 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20782 gtk_major_version, gtk_minor_version, gtk_micro_version);
20783 printf ("*** was found! If pkg-config was correct, then it is best\n");
20784 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20785 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20786 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20787 printf("*** required on your system.\n");
20788 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20789 printf("*** to point to the correct configuration files\n");
20790 }
20791 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20792 (gtk_minor_version != GTK_MINOR_VERSION) ||
20793 (gtk_micro_version != GTK_MICRO_VERSION))
20794 {
20795 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20796 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20797 printf("*** library (version %d.%d.%d)\n",
20798 gtk_major_version, gtk_minor_version, gtk_micro_version);
20799 }
20800 else
20801 {
20802 if ((gtk_major_version > major) ||
20803 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20804 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20805 {
20806 return 0;
20807 }
20808 else
20809 {
20810 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20811 gtk_major_version, gtk_minor_version, gtk_micro_version);
20812 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20813 major, minor, micro);
20814 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20815 printf("***\n");
20816 printf("*** If you have already installed a sufficiently new version, this error\n");
20817 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20818 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20819 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20820 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20821 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20822 printf("*** so that the correct libraries are found at run-time))\n");
20823 }
20824 }
20825 return 1;
20826 }
20827
20828 _ACEOF
20829 rm -f conftest$ac_exeext
20830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20831 (eval $ac_link) 2>&5
20832 ac_status=$?
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836 (eval $ac_try) 2>&5
20837 ac_status=$?
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; }; then
20840 :
20841 else
20842 echo "$as_me: program exited with status $ac_status" >&5
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20845
20846 ( exit $ac_status )
20847 no_gtk=yes
20848 fi
20849 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20850 fi
20851 CFLAGS="$ac_save_CFLAGS"
20852 LIBS="$ac_save_LIBS"
20853 fi
20854 fi
20855 if test "x$no_gtk" = x ; then
20856 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20857 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20858 wx_cv_lib_gtk=2.0
20859 else
20860 echo "$as_me:$LINENO: result: no" >&5
20861 echo "${ECHO_T}no" >&6
20862 if test "$PKG_CONFIG" = "no" ; then
20863 echo "*** A new enough version of pkg-config was not found."
20864 echo "*** See http://pkgconfig.sourceforge.net"
20865 else
20866 if test -f conf.gtktest ; then
20867 :
20868 else
20869 echo "*** Could not run GTK+ test program, checking why..."
20870 ac_save_CFLAGS="$CFLAGS"
20871 ac_save_LIBS="$LIBS"
20872 CFLAGS="$CFLAGS $GTK_CFLAGS"
20873 LIBS="$LIBS $GTK_LIBS"
20874 cat >conftest.$ac_ext <<_ACEOF
20875 #line $LINENO "configure"
20876 /* confdefs.h. */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20881
20882 #include <gtk/gtk.h>
20883 #include <stdio.h>
20884
20885 int
20886 main ()
20887 {
20888 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20889 ;
20890 return 0;
20891 }
20892 _ACEOF
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20895 (eval $ac_link) 2>&5
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
20899 { ac_try='test -s conftest$ac_exeext'
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
20905 echo "*** The test program compiled, but did not run. This usually means"
20906 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20907 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20908 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20909 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20910 echo "*** is required on your system"
20911 echo "***"
20912 echo "*** If you have an old version installed, it is best to remove it, although"
20913 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20914 else
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20917
20918 echo "*** The test program failed to compile or link. See the file config.log for the"
20919 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
20920 fi
20921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20922 CFLAGS="$ac_save_CFLAGS"
20923 LIBS="$ac_save_LIBS"
20924 fi
20925 fi
20926 GTK_CFLAGS=""
20927 GTK_LIBS=""
20928 :
20929 fi
20930
20931
20932 rm -f conf.gtktest
20933
20934 else
20935
20936 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
20937 if test "${with_gtk_prefix+set}" = set; then
20938 withval="$with_gtk_prefix"
20939 gtk_config_prefix="$withval"
20940 else
20941 gtk_config_prefix=""
20942 fi;
20943
20944 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20945 if test "${with_gtk_exec_prefix+set}" = set; then
20946 withval="$with_gtk_exec_prefix"
20947 gtk_config_exec_prefix="$withval"
20948 else
20949 gtk_config_exec_prefix=""
20950 fi;
20951 # Check whether --enable-gtktest or --disable-gtktest was given.
20952 if test "${enable_gtktest+set}" = set; then
20953 enableval="$enable_gtktest"
20954
20955 else
20956 enable_gtktest=yes
20957 fi;
20958
20959 for module in . $GTK_MODULES
20960 do
20961 case "$module" in
20962 gthread)
20963 gtk_config_args="$gtk_config_args gthread"
20964 ;;
20965 esac
20966 done
20967
20968 if test x$gtk_config_exec_prefix != x ; then
20969 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20970 if test x${GTK_CONFIG+set} != xset ; then
20971 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20972 fi
20973 fi
20974 if test x$gtk_config_prefix != x ; then
20975 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20976 if test x${GTK_CONFIG+set} != xset ; then
20977 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20978 fi
20979 fi
20980
20981 # Extract the first word of "gtk-config", so it can be a program name with args.
20982 set dummy gtk-config; ac_word=$2
20983 echo "$as_me:$LINENO: checking for $ac_word" >&5
20984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20985 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20987 else
20988 case $GTK_CONFIG in
20989 [\\/]* | ?:[\\/]*)
20990 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20991 ;;
20992 *)
20993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20994 for as_dir in $PATH
20995 do
20996 IFS=$as_save_IFS
20997 test -z "$as_dir" && as_dir=.
20998 for ac_exec_ext in '' $ac_executable_extensions; do
20999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21000 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21002 break 2
21003 fi
21004 done
21005 done
21006
21007 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21008 ;;
21009 esac
21010 fi
21011 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21012
21013 if test -n "$GTK_CONFIG"; then
21014 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21015 echo "${ECHO_T}$GTK_CONFIG" >&6
21016 else
21017 echo "$as_me:$LINENO: result: no" >&5
21018 echo "${ECHO_T}no" >&6
21019 fi
21020
21021 min_gtk_version=1.2.7
21022 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21023 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21024 no_gtk=""
21025 if test "$GTK_CONFIG" = "no" ; then
21026 no_gtk=yes
21027 else
21028 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21029 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21030 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21031 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21032 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21033 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21034 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21035 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21036 if test "x$enable_gtktest" = "xyes" ; then
21037 ac_save_CFLAGS="$CFLAGS"
21038 ac_save_LIBS="$LIBS"
21039 CFLAGS="$CFLAGS $GTK_CFLAGS"
21040 LIBS="$GTK_LIBS $LIBS"
21041 rm -f conf.gtktest
21042 if test "$cross_compiling" = yes; then
21043 echo $ac_n "cross compiling; assumed OK... $ac_c"
21044 else
21045 cat >conftest.$ac_ext <<_ACEOF
21046 #line $LINENO "configure"
21047 /* confdefs.h. */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052
21053 #include <gtk/gtk.h>
21054 #include <stdio.h>
21055 #include <stdlib.h>
21056
21057 int
21058 main ()
21059 {
21060 int major, minor, micro;
21061 char *tmp_version;
21062
21063 system ("touch conf.gtktest");
21064
21065 /* HP/UX 9 (%@#!) writes to sscanf strings */
21066 tmp_version = g_strdup("$min_gtk_version");
21067 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21068 printf("%s, bad version string\n", "$min_gtk_version");
21069 exit(1);
21070 }
21071
21072 if ((gtk_major_version != $gtk_config_major_version) ||
21073 (gtk_minor_version != $gtk_config_minor_version) ||
21074 (gtk_micro_version != $gtk_config_micro_version))
21075 {
21076 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21077 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21078 gtk_major_version, gtk_minor_version, gtk_micro_version);
21079 printf ("*** was found! If gtk-config was correct, then it is best\n");
21080 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21081 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21082 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21083 printf("*** required on your system.\n");
21084 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21085 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21086 printf("*** before re-running configure\n");
21087 }
21088 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21089 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21090 (gtk_minor_version != GTK_MINOR_VERSION) ||
21091 (gtk_micro_version != GTK_MICRO_VERSION))
21092 {
21093 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21094 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21095 printf("*** library (version %d.%d.%d)\n",
21096 gtk_major_version, gtk_minor_version, gtk_micro_version);
21097 }
21098 #endif /* defined (GTK_MAJOR_VERSION) ... */
21099 else
21100 {
21101 if ((gtk_major_version > major) ||
21102 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21103 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21104 {
21105 return 0;
21106 }
21107 else
21108 {
21109 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21110 gtk_major_version, gtk_minor_version, gtk_micro_version);
21111 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21112 major, minor, micro);
21113 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21114 printf("***\n");
21115 printf("*** If you have already installed a sufficiently new version, this error\n");
21116 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21117 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21118 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21119 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21120 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21121 printf("*** so that the correct libraries are found at run-time))\n");
21122 }
21123 }
21124 return 1;
21125 }
21126
21127 _ACEOF
21128 rm -f conftest$ac_exeext
21129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21130 (eval $ac_link) 2>&5
21131 ac_status=$?
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21135 (eval $ac_try) 2>&5
21136 ac_status=$?
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); }; }; then
21139 :
21140 else
21141 echo "$as_me: program exited with status $ac_status" >&5
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21144
21145 ( exit $ac_status )
21146 no_gtk=yes
21147 fi
21148 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21149 fi
21150 CFLAGS="$ac_save_CFLAGS"
21151 LIBS="$ac_save_LIBS"
21152 fi
21153 fi
21154 if test "x$no_gtk" = x ; then
21155 echo "$as_me:$LINENO: result: yes" >&5
21156 echo "${ECHO_T}yes" >&6
21157 wx_cv_lib_gtk=1.2.7
21158 else
21159 echo "$as_me:$LINENO: result: no" >&5
21160 echo "${ECHO_T}no" >&6
21161 if test "$GTK_CONFIG" = "no" ; then
21162 echo "*** The gtk-config script installed by GTK could not be found"
21163 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21164 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21165 echo "*** full path to gtk-config."
21166 else
21167 if test -f conf.gtktest ; then
21168 :
21169 else
21170 echo "*** Could not run GTK test program, checking why..."
21171 CFLAGS="$CFLAGS $GTK_CFLAGS"
21172 LIBS="$LIBS $GTK_LIBS"
21173 cat >conftest.$ac_ext <<_ACEOF
21174 #line $LINENO "configure"
21175 /* confdefs.h. */
21176 _ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21180
21181 #include <gtk/gtk.h>
21182 #include <stdio.h>
21183
21184 int
21185 main ()
21186 {
21187 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21188 ;
21189 return 0;
21190 }
21191 _ACEOF
21192 rm -f conftest.$ac_objext conftest$ac_exeext
21193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21194 (eval $ac_link) 2>&5
21195 ac_status=$?
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
21198 { ac_try='test -s conftest$ac_exeext'
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21201 ac_status=$?
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; }; then
21204 echo "*** The test program compiled, but did not run. This usually means"
21205 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21206 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21207 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21208 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21209 echo "*** is required on your system"
21210 echo "***"
21211 echo "*** If you have an old version installed, it is best to remove it, although"
21212 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21213 echo "***"
21214 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21215 echo "*** came with the system with the command"
21216 echo "***"
21217 echo "*** rpm --erase --nodeps gtk gtk-devel"
21218 else
21219 echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21221
21222 echo "*** The test program failed to compile or link. See the file config.log for the"
21223 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21224 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
21225 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
21226 fi
21227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21228 CFLAGS="$ac_save_CFLAGS"
21229 LIBS="$ac_save_LIBS"
21230 fi
21231 fi
21232 GTK_CFLAGS=""
21233 GTK_LIBS=""
21234 :
21235 fi
21236
21237
21238 rm -f conf.gtktest
21239
21240
21241 if test -z "$wx_cv_lib_gtk"; then
21242
21243 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21244 if test "${with_gtk_prefix+set}" = set; then
21245 withval="$with_gtk_prefix"
21246 gtk_config_prefix="$withval"
21247 else
21248 gtk_config_prefix=""
21249 fi;
21250
21251 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21252 if test "${with_gtk_exec_prefix+set}" = set; then
21253 withval="$with_gtk_exec_prefix"
21254 gtk_config_exec_prefix="$withval"
21255 else
21256 gtk_config_exec_prefix=""
21257 fi;
21258 # Check whether --enable-gtktest or --disable-gtktest was given.
21259 if test "${enable_gtktest+set}" = set; then
21260 enableval="$enable_gtktest"
21261
21262 else
21263 enable_gtktest=yes
21264 fi;
21265
21266 for module in . $GTK_MODULES
21267 do
21268 case "$module" in
21269 gthread)
21270 gtk_config_args="$gtk_config_args gthread"
21271 ;;
21272 esac
21273 done
21274
21275 if test x$gtk_config_exec_prefix != x ; then
21276 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21277 if test x${GTK_CONFIG+set} != xset ; then
21278 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21279 fi
21280 fi
21281 if test x$gtk_config_prefix != x ; then
21282 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21283 if test x${GTK_CONFIG+set} != xset ; then
21284 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21285 fi
21286 fi
21287
21288 # Extract the first word of "gtk-config", so it can be a program name with args.
21289 set dummy gtk-config; ac_word=$2
21290 echo "$as_me:$LINENO: checking for $ac_word" >&5
21291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21292 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21293 echo $ECHO_N "(cached) $ECHO_C" >&6
21294 else
21295 case $GTK_CONFIG in
21296 [\\/]* | ?:[\\/]*)
21297 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21298 ;;
21299 *)
21300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21301 for as_dir in $PATH
21302 do
21303 IFS=$as_save_IFS
21304 test -z "$as_dir" && as_dir=.
21305 for ac_exec_ext in '' $ac_executable_extensions; do
21306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21307 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21309 break 2
21310 fi
21311 done
21312 done
21313
21314 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21315 ;;
21316 esac
21317 fi
21318 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21319
21320 if test -n "$GTK_CONFIG"; then
21321 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21322 echo "${ECHO_T}$GTK_CONFIG" >&6
21323 else
21324 echo "$as_me:$LINENO: result: no" >&5
21325 echo "${ECHO_T}no" >&6
21326 fi
21327
21328 min_gtk_version=1.2.3
21329 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21330 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21331 no_gtk=""
21332 if test "$GTK_CONFIG" = "no" ; then
21333 no_gtk=yes
21334 else
21335 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21336 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21337 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21338 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21339 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21340 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21341 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21342 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21343 if test "x$enable_gtktest" = "xyes" ; then
21344 ac_save_CFLAGS="$CFLAGS"
21345 ac_save_LIBS="$LIBS"
21346 CFLAGS="$CFLAGS $GTK_CFLAGS"
21347 LIBS="$GTK_LIBS $LIBS"
21348 rm -f conf.gtktest
21349 if test "$cross_compiling" = yes; then
21350 echo $ac_n "cross compiling; assumed OK... $ac_c"
21351 else
21352 cat >conftest.$ac_ext <<_ACEOF
21353 #line $LINENO "configure"
21354 /* confdefs.h. */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21359
21360 #include <gtk/gtk.h>
21361 #include <stdio.h>
21362 #include <stdlib.h>
21363
21364 int
21365 main ()
21366 {
21367 int major, minor, micro;
21368 char *tmp_version;
21369
21370 system ("touch conf.gtktest");
21371
21372 /* HP/UX 9 (%@#!) writes to sscanf strings */
21373 tmp_version = g_strdup("$min_gtk_version");
21374 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21375 printf("%s, bad version string\n", "$min_gtk_version");
21376 exit(1);
21377 }
21378
21379 if ((gtk_major_version != $gtk_config_major_version) ||
21380 (gtk_minor_version != $gtk_config_minor_version) ||
21381 (gtk_micro_version != $gtk_config_micro_version))
21382 {
21383 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21384 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21385 gtk_major_version, gtk_minor_version, gtk_micro_version);
21386 printf ("*** was found! If gtk-config was correct, then it is best\n");
21387 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21388 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21389 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21390 printf("*** required on your system.\n");
21391 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21392 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21393 printf("*** before re-running configure\n");
21394 }
21395 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21396 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21397 (gtk_minor_version != GTK_MINOR_VERSION) ||
21398 (gtk_micro_version != GTK_MICRO_VERSION))
21399 {
21400 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21401 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21402 printf("*** library (version %d.%d.%d)\n",
21403 gtk_major_version, gtk_minor_version, gtk_micro_version);
21404 }
21405 #endif /* defined (GTK_MAJOR_VERSION) ... */
21406 else
21407 {
21408 if ((gtk_major_version > major) ||
21409 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21410 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21411 {
21412 return 0;
21413 }
21414 else
21415 {
21416 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21417 gtk_major_version, gtk_minor_version, gtk_micro_version);
21418 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21419 major, minor, micro);
21420 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21421 printf("***\n");
21422 printf("*** If you have already installed a sufficiently new version, this error\n");
21423 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21424 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21425 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21426 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21427 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21428 printf("*** so that the correct libraries are found at run-time))\n");
21429 }
21430 }
21431 return 1;
21432 }
21433
21434 _ACEOF
21435 rm -f conftest$ac_exeext
21436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21437 (eval $ac_link) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442 (eval $ac_try) 2>&5
21443 ac_status=$?
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; }; then
21446 :
21447 else
21448 echo "$as_me: program exited with status $ac_status" >&5
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21451
21452 ( exit $ac_status )
21453 no_gtk=yes
21454 fi
21455 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21456 fi
21457 CFLAGS="$ac_save_CFLAGS"
21458 LIBS="$ac_save_LIBS"
21459 fi
21460 fi
21461 if test "x$no_gtk" = x ; then
21462 echo "$as_me:$LINENO: result: yes" >&5
21463 echo "${ECHO_T}yes" >&6
21464 wx_cv_lib_gtk=1.2.3
21465 else
21466 echo "$as_me:$LINENO: result: no" >&5
21467 echo "${ECHO_T}no" >&6
21468 if test "$GTK_CONFIG" = "no" ; then
21469 echo "*** The gtk-config script installed by GTK could not be found"
21470 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21471 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21472 echo "*** full path to gtk-config."
21473 else
21474 if test -f conf.gtktest ; then
21475 :
21476 else
21477 echo "*** Could not run GTK test program, checking why..."
21478 CFLAGS="$CFLAGS $GTK_CFLAGS"
21479 LIBS="$LIBS $GTK_LIBS"
21480 cat >conftest.$ac_ext <<_ACEOF
21481 #line $LINENO "configure"
21482 /* confdefs.h. */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21487
21488 #include <gtk/gtk.h>
21489 #include <stdio.h>
21490
21491 int
21492 main ()
21493 {
21494 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21495 ;
21496 return 0;
21497 }
21498 _ACEOF
21499 rm -f conftest.$ac_objext conftest$ac_exeext
21500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21501 (eval $ac_link) 2>&5
21502 ac_status=$?
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } &&
21505 { ac_try='test -s conftest$ac_exeext'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
21511 echo "*** The test program compiled, but did not run. This usually means"
21512 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21513 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21514 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21515 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21516 echo "*** is required on your system"
21517 echo "***"
21518 echo "*** If you have an old version installed, it is best to remove it, although"
21519 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21520 echo "***"
21521 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21522 echo "*** came with the system with the command"
21523 echo "***"
21524 echo "*** rpm --erase --nodeps gtk gtk-devel"
21525 else
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21528
21529 echo "*** The test program failed to compile or link. See the file config.log for the"
21530 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21531 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
21532 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
21533 fi
21534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21535 CFLAGS="$ac_save_CFLAGS"
21536 LIBS="$ac_save_LIBS"
21537 fi
21538 fi
21539 GTK_CFLAGS=""
21540 GTK_LIBS=""
21541 :
21542 fi
21543
21544
21545 rm -f conf.gtktest
21546
21547 fi
21548 fi
21549
21550 if test -z "$wx_cv_lib_gtk"; then
21551 wx_cv_lib_gtk=none
21552 else
21553 wx_cv_cflags_gtk=$GTK_CFLAGS
21554 wx_cv_libs_gtk=$GTK_LIBS
21555 fi
21556
21557
21558 fi
21559
21560
21561 if test "$gtk_version_cached" = 1; then
21562 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
21563 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21564 fi
21565
21566 case "$wx_cv_lib_gtk" in
21567 2.0) WXGTK20=1
21568 TOOLKIT_VERSION=2
21569 ;;
21570 1.2.7) WXGTK127=1
21571 WXGTK12=1
21572 ;;
21573 1.2.3) WXGTK12=1
21574 ;;
21575 *) { { echo "$as_me:$LINENO: error:
21576 Please check that gtk-config is in path, the directory
21577 where GTK+ libraries are installed (returned by
21578 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21579 equivalent variable and GTK+ is version 1.2.3 or above.
21580 " >&5
21581 echo "$as_me: error:
21582 Please check that gtk-config is in path, the directory
21583 where GTK+ libraries are installed (returned by
21584 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21585 equivalent variable and GTK+ is version 1.2.3 or above.
21586 " >&2;}
21587 { (exit 1); exit 1; }; }
21588 ;;
21589 esac
21590
21591 if test "$WXGTK20" = 1; then
21592 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21593
21594 succeeded=no
21595
21596 if test -z "$PKG_CONFIG"; then
21597 # Extract the first word of "pkg-config", so it can be a program name with args.
21598 set dummy pkg-config; ac_word=$2
21599 echo "$as_me:$LINENO: checking for $ac_word" >&5
21600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21601 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21602 echo $ECHO_N "(cached) $ECHO_C" >&6
21603 else
21604 case $PKG_CONFIG in
21605 [\\/]* | ?:[\\/]*)
21606 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21607 ;;
21608 *)
21609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21610 for as_dir in $PATH
21611 do
21612 IFS=$as_save_IFS
21613 test -z "$as_dir" && as_dir=.
21614 for ac_exec_ext in '' $ac_executable_extensions; do
21615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21616 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21618 break 2
21619 fi
21620 done
21621 done
21622
21623 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21624 ;;
21625 esac
21626 fi
21627 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21628
21629 if test -n "$PKG_CONFIG"; then
21630 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21631 echo "${ECHO_T}$PKG_CONFIG" >&6
21632 else
21633 echo "$as_me:$LINENO: result: no" >&5
21634 echo "${ECHO_T}no" >&6
21635 fi
21636
21637 fi
21638
21639 if test "$PKG_CONFIG" = "no" ; then
21640 echo "*** The pkg-config script could not be found. Make sure it is"
21641 echo "*** in your path, or set the PKG_CONFIG environment variable"
21642 echo "*** to the full path to pkg-config."
21643 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21644 else
21645 PKG_CONFIG_MIN_VERSION=0.9.0
21646 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21647 echo "$as_me:$LINENO: checking for pangoft2" >&5
21648 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
21649
21650 if $PKG_CONFIG --exists "pangoft2" ; then
21651 echo "$as_me:$LINENO: result: yes" >&5
21652 echo "${ECHO_T}yes" >&6
21653 succeeded=yes
21654
21655 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
21656 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
21657 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
21658 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
21659 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
21660
21661 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
21662 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
21663 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
21664 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
21665 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
21666 else
21667 PANGOFT2_CFLAGS=""
21668 PANGOFT2_LIBS=""
21669 ## If we have a custom action on failure, don't print errors, but
21670 ## do set a variable so people can do so.
21671 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
21672
21673 fi
21674
21675
21676
21677 else
21678 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21679 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21680 fi
21681 fi
21682
21683 if test $succeeded = yes; then
21684
21685 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
21686 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
21687
21688 else
21689
21690 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
21691 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
21692 wxUSE_PRINTING_ARCHITECTURE="no"
21693
21694
21695 fi
21696
21697 fi
21698 else
21699 if test "$wxUSE_UNICODE" = "yes"; then
21700 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
21701 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
21702 wxUSE_UNICODE=no
21703 fi
21704 fi
21705
21706 if test "$USE_DARWIN" != 1; then
21707
21708 for ac_func in poll
21709 do
21710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21711 echo "$as_me:$LINENO: checking for $ac_func" >&5
21712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21713 if eval "test \"\${$as_ac_var+set}\" = set"; then
21714 echo $ECHO_N "(cached) $ECHO_C" >&6
21715 else
21716 cat >conftest.$ac_ext <<_ACEOF
21717 #line $LINENO "configure"
21718 /* confdefs.h. */
21719 _ACEOF
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h. */
21723 /* System header to define __stub macros and hopefully few prototypes,
21724 which can conflict with char $ac_func (); below.
21725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21726 <limits.h> exists even on freestanding compilers. */
21727 #ifdef __STDC__
21728 # include <limits.h>
21729 #else
21730 # include <assert.h>
21731 #endif
21732 /* Override any gcc2 internal prototype to avoid an error. */
21733 #ifdef __cplusplus
21734 extern "C"
21735 {
21736 #endif
21737 /* We use char because int might match the return type of a gcc2
21738 builtin and then its argument prototype would still apply. */
21739 char $ac_func ();
21740 /* The GNU C library defines this for functions which it implements
21741 to always fail with ENOSYS. Some functions are actually named
21742 something starting with __ and the normal name is an alias. */
21743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21744 choke me
21745 #else
21746 char (*f) () = $ac_func;
21747 #endif
21748 #ifdef __cplusplus
21749 }
21750 #endif
21751
21752 int
21753 main ()
21754 {
21755 return f != $ac_func;
21756 ;
21757 return 0;
21758 }
21759 _ACEOF
21760 rm -f conftest.$ac_objext conftest$ac_exeext
21761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21762 (eval $ac_link) 2>&5
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } &&
21766 { ac_try='test -s conftest$ac_exeext'
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21769 ac_status=$?
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; }; then
21772 eval "$as_ac_var=yes"
21773 else
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21776
21777 eval "$as_ac_var=no"
21778 fi
21779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21780 fi
21781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21783 if test `eval echo '${'$as_ac_var'}'` = yes; then
21784 cat >>confdefs.h <<_ACEOF
21785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21786 _ACEOF
21787
21788 fi
21789 done
21790
21791 fi
21792
21793 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
21794 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21795
21796 AFMINSTALL=afminstall
21797 TOOLKIT=GTK
21798 GUIDIST=GTK_DIST
21799
21800 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21801 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21802 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21803 echo $ECHO_N "(cached) $ECHO_C" >&6
21804 else
21805 ac_check_lib_save_LIBS=$LIBS
21806 LIBS="-lgdk $LIBS"
21807 cat >conftest.$ac_ext <<_ACEOF
21808 #line $LINENO "configure"
21809 /* confdefs.h. */
21810 _ACEOF
21811 cat confdefs.h >>conftest.$ac_ext
21812 cat >>conftest.$ac_ext <<_ACEOF
21813 /* end confdefs.h. */
21814
21815 /* Override any gcc2 internal prototype to avoid an error. */
21816 #ifdef __cplusplus
21817 extern "C"
21818 #endif
21819 /* We use char because int might match the return type of a gcc2
21820 builtin and then its argument prototype would still apply. */
21821 char gdk_im_open ();
21822 int
21823 main ()
21824 {
21825 gdk_im_open ();
21826 ;
21827 return 0;
21828 }
21829 _ACEOF
21830 rm -f conftest.$ac_objext conftest$ac_exeext
21831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21832 (eval $ac_link) 2>&5
21833 ac_status=$?
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); } &&
21836 { ac_try='test -s conftest$ac_exeext'
21837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838 (eval $ac_try) 2>&5
21839 ac_status=$?
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); }; }; then
21842 ac_cv_lib_gdk_gdk_im_open=yes
21843 else
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21846
21847 ac_cv_lib_gdk_gdk_im_open=no
21848 fi
21849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21850 LIBS=$ac_check_lib_save_LIBS
21851 fi
21852 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21853 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21854 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21855 cat >>confdefs.h <<\_ACEOF
21856 #define HAVE_XIM 1
21857 _ACEOF
21858
21859 fi
21860
21861 fi
21862
21863 if test "$wxUSE_MGL" = 1; then
21864 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21865 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21866 if test "x$MGL_ROOT" = x ; then
21867 echo "$as_me:$LINENO: result: not found" >&5
21868 echo "${ECHO_T}not found" >&6
21869 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21870 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21871 { (exit 1); exit 1; }; }
21872 else
21873 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21874 echo "${ECHO_T}$MGL_ROOT" >&6
21875 fi
21876
21877 echo "$as_me:$LINENO: checking for libmgl location" >&5
21878 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21879 case "${host}" in
21880 *-*-linux* )
21881 if test "x$wxUSE_SHARED" = xyes ; then
21882 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
21883 else
21884 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
21885 fi
21886 ;;
21887 *-pc-msdosdjgpp )
21888 mgl_os_candidates="dos32/dj2"
21889 ;;
21890 *)
21891 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21892 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21893 { (exit 1); exit 1; }; }
21894 esac
21895
21896 mgl_lib_type=""
21897 mgl_os=""
21898
21899 for mgl_os_i in $mgl_os_candidates ; do
21900 if test "x$mgl_os" = x ; then
21901 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21902 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21903 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21904 mgl_lib_type=debug
21905 mgl_os=$mgl_os_i
21906 fi
21907 fi
21908 if test "x$mgl_lib_type" = x ; then
21909 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21910 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21911 mgl_lib_type=release
21912 mgl_os=$mgl_os_i
21913 fi
21914 fi
21915 fi
21916 done
21917
21918 if test "x$mgl_os" = x ; then
21919 echo "$as_me:$LINENO: result: not found" >&5
21920 echo "${ECHO_T}not found" >&6
21921 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21922 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21923 { (exit 1); exit 1; }; }
21924 fi
21925 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21926 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
21927
21928 wxUSE_UNIVERSAL="yes"
21929
21930 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21931 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21932
21933 AFMINSTALL=afminstall
21934 TOOLKIT=MGL
21935 GUIDIST=MGL_DIST
21936 fi
21937
21938 if test "$wxUSE_MICROWIN" = 1; then
21939 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21940 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21941 if test "x$MICROWINDOWS" = x ; then
21942 echo "$as_me:$LINENO: result: not found" >&5
21943 echo "${ECHO_T}not found" >&6
21944 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21945 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21946 { (exit 1); exit 1; }; }
21947 else
21948 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21949 echo "${ECHO_T}$MICROWINDOWS" >&6
21950 fi
21951
21952 if test -f $MICROWINDOWS/lib/libmwin.a; then
21953 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21954 echo "${ECHO_T}MicroWindows' libraries found." >&6
21955 else
21956 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21957 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21958 { (exit 1); exit 1; }; }
21959 fi
21960
21961 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21962 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21963
21964 wxUSE_UNIVERSAL="yes"
21965
21966 AFMINSTALL=afminstall
21967 TOOLKIT=MICROWIN
21968 GUIDIST=MICROWIN_DIST
21969
21970 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21971 fi
21972
21973 if test "$wxUSE_X11" = 1; then
21974 echo "$as_me:$LINENO: checking for X" >&5
21975 echo $ECHO_N "checking for X... $ECHO_C" >&6
21976
21977
21978 # Check whether --with-x or --without-x was given.
21979 if test "${with_x+set}" = set; then
21980 withval="$with_x"
21981
21982 fi;
21983 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21984 if test "x$with_x" = xno; then
21985 # The user explicitly disabled X.
21986 have_x=disabled
21987 else
21988 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21989 # Both variables are already set.
21990 have_x=yes
21991 else
21992 if test "${ac_cv_have_x+set}" = set; then
21993 echo $ECHO_N "(cached) $ECHO_C" >&6
21994 else
21995 # One or both of the vars are not set, and there is no cached value.
21996 ac_x_includes=no ac_x_libraries=no
21997 rm -fr conftest.dir
21998 if mkdir conftest.dir; then
21999 cd conftest.dir
22000 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
22001 cat >Imakefile <<'_ACEOF'
22002 acfindx:
22003 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
22004 _ACEOF
22005 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22006 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22007 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22008 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22009 for ac_extension in a so sl; do
22010 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
22011 test -f $ac_im_libdir/libX11.$ac_extension; then
22012 ac_im_usrlibdir=$ac_im_libdir; break
22013 fi
22014 done
22015 # Screen out bogus values from the imake configuration. They are
22016 # bogus both because they are the default anyway, and because
22017 # using them would break gcc on systems where it needs fixed includes.
22018 case $ac_im_incroot in
22019 /usr/include) ;;
22020 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22021 esac
22022 case $ac_im_usrlibdir in
22023 /usr/lib | /lib) ;;
22024 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22025 esac
22026 fi
22027 cd ..
22028 rm -fr conftest.dir
22029 fi
22030
22031 # Standard set of common directories for X headers.
22032 # Check X11 before X11Rn because it is often a symlink to the current release.
22033 ac_x_header_dirs='
22034 /usr/X11/include
22035 /usr/X11R6/include
22036 /usr/X11R5/include
22037 /usr/X11R4/include
22038
22039 /usr/include/X11
22040 /usr/include/X11R6
22041 /usr/include/X11R5
22042 /usr/include/X11R4
22043
22044 /usr/local/X11/include
22045 /usr/local/X11R6/include
22046 /usr/local/X11R5/include
22047 /usr/local/X11R4/include
22048
22049 /usr/local/include/X11
22050 /usr/local/include/X11R6
22051 /usr/local/include/X11R5
22052 /usr/local/include/X11R4
22053
22054 /usr/X386/include
22055 /usr/x386/include
22056 /usr/XFree86/include/X11
22057
22058 /usr/include
22059 /usr/local/include
22060 /usr/unsupported/include
22061 /usr/athena/include
22062 /usr/local/x11r5/include
22063 /usr/lpp/Xamples/include
22064
22065 /usr/openwin/include
22066 /usr/openwin/share/include'
22067
22068 if test "$ac_x_includes" = no; then
22069 # Guess where to find include files, by looking for Intrinsic.h.
22070 # First, try using that file with no special directory specified.
22071 cat >conftest.$ac_ext <<_ACEOF
22072 #line $LINENO "configure"
22073 /* confdefs.h. */
22074 _ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22078 #include <X11/Intrinsic.h>
22079 _ACEOF
22080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22082 ac_status=$?
22083 grep -v '^ *+' conftest.er1 >conftest.err
22084 rm -f conftest.er1
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } >/dev/null; then
22088 if test -s conftest.err; then
22089 ac_cpp_err=$ac_c_preproc_warn_flag
22090 else
22091 ac_cpp_err=
22092 fi
22093 else
22094 ac_cpp_err=yes
22095 fi
22096 if test -z "$ac_cpp_err"; then
22097 # We can compile using X headers with no special include directory.
22098 ac_x_includes=
22099 else
22100 echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22102
22103 for ac_dir in $ac_x_header_dirs; do
22104 if test -r "$ac_dir/X11/Intrinsic.h"; then
22105 ac_x_includes=$ac_dir
22106 break
22107 fi
22108 done
22109 fi
22110 rm -f conftest.err conftest.$ac_ext
22111 fi # $ac_x_includes = no
22112
22113 if test "$ac_x_libraries" = no; then
22114 # Check for the libraries.
22115 # See if we find them without any special options.
22116 # Don't add to $LIBS permanently.
22117 ac_save_LIBS=$LIBS
22118 LIBS="-lXt $LIBS"
22119 cat >conftest.$ac_ext <<_ACEOF
22120 #line $LINENO "configure"
22121 /* confdefs.h. */
22122 _ACEOF
22123 cat confdefs.h >>conftest.$ac_ext
22124 cat >>conftest.$ac_ext <<_ACEOF
22125 /* end confdefs.h. */
22126 #include <X11/Intrinsic.h>
22127 int
22128 main ()
22129 {
22130 XtMalloc (0)
22131 ;
22132 return 0;
22133 }
22134 _ACEOF
22135 rm -f conftest.$ac_objext conftest$ac_exeext
22136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22137 (eval $ac_link) 2>&5
22138 ac_status=$?
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } &&
22141 { ac_try='test -s conftest$ac_exeext'
22142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143 (eval $ac_try) 2>&5
22144 ac_status=$?
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; }; then
22147 LIBS=$ac_save_LIBS
22148 # We can link X programs with no special library path.
22149 ac_x_libraries=
22150 else
22151 echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22153
22154 LIBS=$ac_save_LIBS
22155 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22156 do
22157 # Don't even attempt the hair of trying to link an X program!
22158 for ac_extension in a so sl; do
22159 if test -r $ac_dir/libXt.$ac_extension; then
22160 ac_x_libraries=$ac_dir
22161 break 2
22162 fi
22163 done
22164 done
22165 fi
22166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22167 fi # $ac_x_libraries = no
22168
22169 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
22170 # Didn't find X anywhere. Cache the known absence of X.
22171 ac_cv_have_x="have_x=no"
22172 else
22173 # Record where we found X for the cache.
22174 ac_cv_have_x="have_x=yes \
22175 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
22176 fi
22177 fi
22178
22179 fi
22180 eval "$ac_cv_have_x"
22181 fi # $with_x != no
22182
22183 if test "$have_x" != yes; then
22184 echo "$as_me:$LINENO: result: $have_x" >&5
22185 echo "${ECHO_T}$have_x" >&6
22186 no_x=yes
22187 else
22188 # If each of the values was on the command line, it overrides each guess.
22189 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22190 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22191 # Update the cache value to reflect the command line values.
22192 ac_cv_have_x="have_x=yes \
22193 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22194 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22195 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
22196 fi
22197
22198 if test "$no_x" = yes; then
22199 # Not all programs may use this symbol, but it does not hurt to define it.
22200
22201 cat >>confdefs.h <<\_ACEOF
22202 #define X_DISPLAY_MISSING 1
22203 _ACEOF
22204
22205 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22206 else
22207 if test -n "$x_includes"; then
22208 X_CFLAGS="$X_CFLAGS -I$x_includes"
22209 fi
22210
22211 # It would also be nice to do this for all -L options, not just this one.
22212 if test -n "$x_libraries"; then
22213 X_LIBS="$X_LIBS -L$x_libraries"
22214 # For Solaris; some versions of Sun CC require a space after -R and
22215 # others require no space. Words are not sufficient . . . .
22216 case `(uname -sr) 2>/dev/null` in
22217 "SunOS 5"*)
22218 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22219 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22220 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22221 cat >conftest.$ac_ext <<_ACEOF
22222 #line $LINENO "configure"
22223 /* confdefs.h. */
22224 _ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h. */
22228
22229 int
22230 main ()
22231 {
22232
22233 ;
22234 return 0;
22235 }
22236 _ACEOF
22237 rm -f conftest.$ac_objext conftest$ac_exeext
22238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22239 (eval $ac_link) 2>&5
22240 ac_status=$?
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } &&
22243 { ac_try='test -s conftest$ac_exeext'
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22246 ac_status=$?
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; }; then
22249 ac_R_nospace=yes
22250 else
22251 echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22253
22254 ac_R_nospace=no
22255 fi
22256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22257 if test $ac_R_nospace = yes; then
22258 echo "$as_me:$LINENO: result: no" >&5
22259 echo "${ECHO_T}no" >&6
22260 X_LIBS="$X_LIBS -R$x_libraries"
22261 else
22262 LIBS="$ac_xsave_LIBS -R $x_libraries"
22263 cat >conftest.$ac_ext <<_ACEOF
22264 #line $LINENO "configure"
22265 /* confdefs.h. */
22266 _ACEOF
22267 cat confdefs.h >>conftest.$ac_ext
22268 cat >>conftest.$ac_ext <<_ACEOF
22269 /* end confdefs.h. */
22270
22271 int
22272 main ()
22273 {
22274
22275 ;
22276 return 0;
22277 }
22278 _ACEOF
22279 rm -f conftest.$ac_objext conftest$ac_exeext
22280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22281 (eval $ac_link) 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } &&
22285 { ac_try='test -s conftest$ac_exeext'
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }; then
22291 ac_R_space=yes
22292 else
22293 echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22295
22296 ac_R_space=no
22297 fi
22298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22299 if test $ac_R_space = yes; then
22300 echo "$as_me:$LINENO: result: yes" >&5
22301 echo "${ECHO_T}yes" >&6
22302 X_LIBS="$X_LIBS -R $x_libraries"
22303 else
22304 echo "$as_me:$LINENO: result: neither works" >&5
22305 echo "${ECHO_T}neither works" >&6
22306 fi
22307 fi
22308 LIBS=$ac_xsave_LIBS
22309 esac
22310 fi
22311
22312 # Check for system-dependent libraries X programs must link with.
22313 # Do this before checking for the system-independent R6 libraries
22314 # (-lICE), since we may need -lsocket or whatever for X linking.
22315
22316 if test "$ISC" = yes; then
22317 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22318 else
22319 # Martyn Johnson says this is needed for Ultrix, if the X
22320 # libraries were built with DECnet support. And Karl Berry says
22321 # the Alpha needs dnet_stub (dnet does not exist).
22322 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22323 cat >conftest.$ac_ext <<_ACEOF
22324 #line $LINENO "configure"
22325 /* confdefs.h. */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22330
22331 /* Override any gcc2 internal prototype to avoid an error. */
22332 #ifdef __cplusplus
22333 extern "C"
22334 #endif
22335 /* We use char because int might match the return type of a gcc2
22336 builtin and then its argument prototype would still apply. */
22337 char XOpenDisplay ();
22338 int
22339 main ()
22340 {
22341 XOpenDisplay ();
22342 ;
22343 return 0;
22344 }
22345 _ACEOF
22346 rm -f conftest.$ac_objext conftest$ac_exeext
22347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22348 (eval $ac_link) 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } &&
22352 { ac_try='test -s conftest$ac_exeext'
22353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22354 (eval $ac_try) 2>&5
22355 ac_status=$?
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); }; }; then
22358 :
22359 else
22360 echo "$as_me: failed program was:" >&5
22361 sed 's/^/| /' conftest.$ac_ext >&5
22362
22363 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22364 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22365 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22366 echo $ECHO_N "(cached) $ECHO_C" >&6
22367 else
22368 ac_check_lib_save_LIBS=$LIBS
22369 LIBS="-ldnet $LIBS"
22370 cat >conftest.$ac_ext <<_ACEOF
22371 #line $LINENO "configure"
22372 /* confdefs.h. */
22373 _ACEOF
22374 cat confdefs.h >>conftest.$ac_ext
22375 cat >>conftest.$ac_ext <<_ACEOF
22376 /* end confdefs.h. */
22377
22378 /* Override any gcc2 internal prototype to avoid an error. */
22379 #ifdef __cplusplus
22380 extern "C"
22381 #endif
22382 /* We use char because int might match the return type of a gcc2
22383 builtin and then its argument prototype would still apply. */
22384 char dnet_ntoa ();
22385 int
22386 main ()
22387 {
22388 dnet_ntoa ();
22389 ;
22390 return 0;
22391 }
22392 _ACEOF
22393 rm -f conftest.$ac_objext conftest$ac_exeext
22394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22395 (eval $ac_link) 2>&5
22396 ac_status=$?
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } &&
22399 { ac_try='test -s conftest$ac_exeext'
22400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401 (eval $ac_try) 2>&5
22402 ac_status=$?
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); }; }; then
22405 ac_cv_lib_dnet_dnet_ntoa=yes
22406 else
22407 echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22409
22410 ac_cv_lib_dnet_dnet_ntoa=no
22411 fi
22412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22413 LIBS=$ac_check_lib_save_LIBS
22414 fi
22415 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22416 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22417 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22418 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22419 fi
22420
22421 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22422 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22423 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22424 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22426 else
22427 ac_check_lib_save_LIBS=$LIBS
22428 LIBS="-ldnet_stub $LIBS"
22429 cat >conftest.$ac_ext <<_ACEOF
22430 #line $LINENO "configure"
22431 /* confdefs.h. */
22432 _ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h. */
22436
22437 /* Override any gcc2 internal prototype to avoid an error. */
22438 #ifdef __cplusplus
22439 extern "C"
22440 #endif
22441 /* We use char because int might match the return type of a gcc2
22442 builtin and then its argument prototype would still apply. */
22443 char dnet_ntoa ();
22444 int
22445 main ()
22446 {
22447 dnet_ntoa ();
22448 ;
22449 return 0;
22450 }
22451 _ACEOF
22452 rm -f conftest.$ac_objext conftest$ac_exeext
22453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22454 (eval $ac_link) 2>&5
22455 ac_status=$?
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } &&
22458 { ac_try='test -s conftest$ac_exeext'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22461 ac_status=$?
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; }; then
22464 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22465 else
22466 echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22468
22469 ac_cv_lib_dnet_stub_dnet_ntoa=no
22470 fi
22471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22472 LIBS=$ac_check_lib_save_LIBS
22473 fi
22474 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22475 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22476 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22477 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22478 fi
22479
22480 fi
22481 fi
22482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22483 LIBS="$ac_xsave_LIBS"
22484
22485 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22486 # to get the SysV transport functions.
22487 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22488 # needs -lnsl.
22489 # The nsl library prevents programs from opening the X display
22490 # on Irix 5.2, according to T.E. Dickey.
22491 # The functions gethostbyname, getservbyname, and inet_addr are
22492 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22493 echo "$as_me:$LINENO: checking for gethostbyname" >&5
22494 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22495 if test "${ac_cv_func_gethostbyname+set}" = set; then
22496 echo $ECHO_N "(cached) $ECHO_C" >&6
22497 else
22498 cat >conftest.$ac_ext <<_ACEOF
22499 #line $LINENO "configure"
22500 /* confdefs.h. */
22501 _ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h. */
22505 /* System header to define __stub macros and hopefully few prototypes,
22506 which can conflict with char gethostbyname (); below.
22507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22508 <limits.h> exists even on freestanding compilers. */
22509 #ifdef __STDC__
22510 # include <limits.h>
22511 #else
22512 # include <assert.h>
22513 #endif
22514 /* Override any gcc2 internal prototype to avoid an error. */
22515 #ifdef __cplusplus
22516 extern "C"
22517 {
22518 #endif
22519 /* We use char because int might match the return type of a gcc2
22520 builtin and then its argument prototype would still apply. */
22521 char gethostbyname ();
22522 /* The GNU C library defines this for functions which it implements
22523 to always fail with ENOSYS. Some functions are actually named
22524 something starting with __ and the normal name is an alias. */
22525 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22526 choke me
22527 #else
22528 char (*f) () = gethostbyname;
22529 #endif
22530 #ifdef __cplusplus
22531 }
22532 #endif
22533
22534 int
22535 main ()
22536 {
22537 return f != gethostbyname;
22538 ;
22539 return 0;
22540 }
22541 _ACEOF
22542 rm -f conftest.$ac_objext conftest$ac_exeext
22543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22544 (eval $ac_link) 2>&5
22545 ac_status=$?
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); } &&
22548 { ac_try='test -s conftest$ac_exeext'
22549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550 (eval $ac_try) 2>&5
22551 ac_status=$?
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); }; }; then
22554 ac_cv_func_gethostbyname=yes
22555 else
22556 echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22558
22559 ac_cv_func_gethostbyname=no
22560 fi
22561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22562 fi
22563 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22564 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
22565
22566 if test $ac_cv_func_gethostbyname = no; then
22567 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22568 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22569 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 else
22572 ac_check_lib_save_LIBS=$LIBS
22573 LIBS="-lnsl $LIBS"
22574 cat >conftest.$ac_ext <<_ACEOF
22575 #line $LINENO "configure"
22576 /* confdefs.h. */
22577 _ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581
22582 /* Override any gcc2 internal prototype to avoid an error. */
22583 #ifdef __cplusplus
22584 extern "C"
22585 #endif
22586 /* We use char because int might match the return type of a gcc2
22587 builtin and then its argument prototype would still apply. */
22588 char gethostbyname ();
22589 int
22590 main ()
22591 {
22592 gethostbyname ();
22593 ;
22594 return 0;
22595 }
22596 _ACEOF
22597 rm -f conftest.$ac_objext conftest$ac_exeext
22598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22599 (eval $ac_link) 2>&5
22600 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } &&
22603 { ac_try='test -s conftest$ac_exeext'
22604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605 (eval $ac_try) 2>&5
22606 ac_status=$?
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); }; }; then
22609 ac_cv_lib_nsl_gethostbyname=yes
22610 else
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22613
22614 ac_cv_lib_nsl_gethostbyname=no
22615 fi
22616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22617 LIBS=$ac_check_lib_save_LIBS
22618 fi
22619 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22620 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22621 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22622 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22623 fi
22624
22625 if test $ac_cv_lib_nsl_gethostbyname = no; then
22626 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22627 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22628 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22629 echo $ECHO_N "(cached) $ECHO_C" >&6
22630 else
22631 ac_check_lib_save_LIBS=$LIBS
22632 LIBS="-lbsd $LIBS"
22633 cat >conftest.$ac_ext <<_ACEOF
22634 #line $LINENO "configure"
22635 /* confdefs.h. */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22640
22641 /* Override any gcc2 internal prototype to avoid an error. */
22642 #ifdef __cplusplus
22643 extern "C"
22644 #endif
22645 /* We use char because int might match the return type of a gcc2
22646 builtin and then its argument prototype would still apply. */
22647 char gethostbyname ();
22648 int
22649 main ()
22650 {
22651 gethostbyname ();
22652 ;
22653 return 0;
22654 }
22655 _ACEOF
22656 rm -f conftest.$ac_objext conftest$ac_exeext
22657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22658 (eval $ac_link) 2>&5
22659 ac_status=$?
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } &&
22662 { ac_try='test -s conftest$ac_exeext'
22663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664 (eval $ac_try) 2>&5
22665 ac_status=$?
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); }; }; then
22668 ac_cv_lib_bsd_gethostbyname=yes
22669 else
22670 echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22672
22673 ac_cv_lib_bsd_gethostbyname=no
22674 fi
22675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22676 LIBS=$ac_check_lib_save_LIBS
22677 fi
22678 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22679 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22680 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22681 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22682 fi
22683
22684 fi
22685 fi
22686
22687 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22688 # socket/setsockopt and other routines are undefined under SCO ODT
22689 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
22690 # on later versions), says Simon Leinen: it contains gethostby*
22691 # variants that don't use the name server (or something). -lsocket
22692 # must be given before -lnsl if both are needed. We assume that
22693 # if connect needs -lnsl, so does gethostbyname.
22694 echo "$as_me:$LINENO: checking for connect" >&5
22695 echo $ECHO_N "checking for connect... $ECHO_C" >&6
22696 if test "${ac_cv_func_connect+set}" = set; then
22697 echo $ECHO_N "(cached) $ECHO_C" >&6
22698 else
22699 cat >conftest.$ac_ext <<_ACEOF
22700 #line $LINENO "configure"
22701 /* confdefs.h. */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706 /* System header to define __stub macros and hopefully few prototypes,
22707 which can conflict with char connect (); below.
22708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22709 <limits.h> exists even on freestanding compilers. */
22710 #ifdef __STDC__
22711 # include <limits.h>
22712 #else
22713 # include <assert.h>
22714 #endif
22715 /* Override any gcc2 internal prototype to avoid an error. */
22716 #ifdef __cplusplus
22717 extern "C"
22718 {
22719 #endif
22720 /* We use char because int might match the return type of a gcc2
22721 builtin and then its argument prototype would still apply. */
22722 char connect ();
22723 /* The GNU C library defines this for functions which it implements
22724 to always fail with ENOSYS. Some functions are actually named
22725 something starting with __ and the normal name is an alias. */
22726 #if defined (__stub_connect) || defined (__stub___connect)
22727 choke me
22728 #else
22729 char (*f) () = connect;
22730 #endif
22731 #ifdef __cplusplus
22732 }
22733 #endif
22734
22735 int
22736 main ()
22737 {
22738 return f != connect;
22739 ;
22740 return 0;
22741 }
22742 _ACEOF
22743 rm -f conftest.$ac_objext conftest$ac_exeext
22744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22745 (eval $ac_link) 2>&5
22746 ac_status=$?
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } &&
22749 { ac_try='test -s conftest$ac_exeext'
22750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22751 (eval $ac_try) 2>&5
22752 ac_status=$?
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); }; }; then
22755 ac_cv_func_connect=yes
22756 else
22757 echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22759
22760 ac_cv_func_connect=no
22761 fi
22762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22763 fi
22764 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22765 echo "${ECHO_T}$ac_cv_func_connect" >&6
22766
22767 if test $ac_cv_func_connect = no; then
22768 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22769 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22770 if test "${ac_cv_lib_socket_connect+set}" = set; then
22771 echo $ECHO_N "(cached) $ECHO_C" >&6
22772 else
22773 ac_check_lib_save_LIBS=$LIBS
22774 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22775 cat >conftest.$ac_ext <<_ACEOF
22776 #line $LINENO "configure"
22777 /* confdefs.h. */
22778 _ACEOF
22779 cat confdefs.h >>conftest.$ac_ext
22780 cat >>conftest.$ac_ext <<_ACEOF
22781 /* end confdefs.h. */
22782
22783 /* Override any gcc2 internal prototype to avoid an error. */
22784 #ifdef __cplusplus
22785 extern "C"
22786 #endif
22787 /* We use char because int might match the return type of a gcc2
22788 builtin and then its argument prototype would still apply. */
22789 char connect ();
22790 int
22791 main ()
22792 {
22793 connect ();
22794 ;
22795 return 0;
22796 }
22797 _ACEOF
22798 rm -f conftest.$ac_objext conftest$ac_exeext
22799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22800 (eval $ac_link) 2>&5
22801 ac_status=$?
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); } &&
22804 { ac_try='test -s conftest$ac_exeext'
22805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22806 (eval $ac_try) 2>&5
22807 ac_status=$?
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); }; }; then
22810 ac_cv_lib_socket_connect=yes
22811 else
22812 echo "$as_me: failed program was:" >&5
22813 sed 's/^/| /' conftest.$ac_ext >&5
22814
22815 ac_cv_lib_socket_connect=no
22816 fi
22817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22818 LIBS=$ac_check_lib_save_LIBS
22819 fi
22820 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22821 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22822 if test $ac_cv_lib_socket_connect = yes; then
22823 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22824 fi
22825
22826 fi
22827
22828 # Guillermo Gomez says -lposix is necessary on A/UX.
22829 echo "$as_me:$LINENO: checking for remove" >&5
22830 echo $ECHO_N "checking for remove... $ECHO_C" >&6
22831 if test "${ac_cv_func_remove+set}" = set; then
22832 echo $ECHO_N "(cached) $ECHO_C" >&6
22833 else
22834 cat >conftest.$ac_ext <<_ACEOF
22835 #line $LINENO "configure"
22836 /* confdefs.h. */
22837 _ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h. */
22841 /* System header to define __stub macros and hopefully few prototypes,
22842 which can conflict with char remove (); below.
22843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22844 <limits.h> exists even on freestanding compilers. */
22845 #ifdef __STDC__
22846 # include <limits.h>
22847 #else
22848 # include <assert.h>
22849 #endif
22850 /* Override any gcc2 internal prototype to avoid an error. */
22851 #ifdef __cplusplus
22852 extern "C"
22853 {
22854 #endif
22855 /* We use char because int might match the return type of a gcc2
22856 builtin and then its argument prototype would still apply. */
22857 char remove ();
22858 /* The GNU C library defines this for functions which it implements
22859 to always fail with ENOSYS. Some functions are actually named
22860 something starting with __ and the normal name is an alias. */
22861 #if defined (__stub_remove) || defined (__stub___remove)
22862 choke me
22863 #else
22864 char (*f) () = remove;
22865 #endif
22866 #ifdef __cplusplus
22867 }
22868 #endif
22869
22870 int
22871 main ()
22872 {
22873 return f != remove;
22874 ;
22875 return 0;
22876 }
22877 _ACEOF
22878 rm -f conftest.$ac_objext conftest$ac_exeext
22879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22880 (eval $ac_link) 2>&5
22881 ac_status=$?
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } &&
22884 { ac_try='test -s conftest$ac_exeext'
22885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886 (eval $ac_try) 2>&5
22887 ac_status=$?
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); }; }; then
22890 ac_cv_func_remove=yes
22891 else
22892 echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22894
22895 ac_cv_func_remove=no
22896 fi
22897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22898 fi
22899 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22900 echo "${ECHO_T}$ac_cv_func_remove" >&6
22901
22902 if test $ac_cv_func_remove = no; then
22903 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22904 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22905 if test "${ac_cv_lib_posix_remove+set}" = set; then
22906 echo $ECHO_N "(cached) $ECHO_C" >&6
22907 else
22908 ac_check_lib_save_LIBS=$LIBS
22909 LIBS="-lposix $LIBS"
22910 cat >conftest.$ac_ext <<_ACEOF
22911 #line $LINENO "configure"
22912 /* confdefs.h. */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917
22918 /* Override any gcc2 internal prototype to avoid an error. */
22919 #ifdef __cplusplus
22920 extern "C"
22921 #endif
22922 /* We use char because int might match the return type of a gcc2
22923 builtin and then its argument prototype would still apply. */
22924 char remove ();
22925 int
22926 main ()
22927 {
22928 remove ();
22929 ;
22930 return 0;
22931 }
22932 _ACEOF
22933 rm -f conftest.$ac_objext conftest$ac_exeext
22934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22935 (eval $ac_link) 2>&5
22936 ac_status=$?
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); } &&
22939 { ac_try='test -s conftest$ac_exeext'
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22942 ac_status=$?
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
22945 ac_cv_lib_posix_remove=yes
22946 else
22947 echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22949
22950 ac_cv_lib_posix_remove=no
22951 fi
22952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22953 LIBS=$ac_check_lib_save_LIBS
22954 fi
22955 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22956 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22957 if test $ac_cv_lib_posix_remove = yes; then
22958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22959 fi
22960
22961 fi
22962
22963 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22964 echo "$as_me:$LINENO: checking for shmat" >&5
22965 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22966 if test "${ac_cv_func_shmat+set}" = set; then
22967 echo $ECHO_N "(cached) $ECHO_C" >&6
22968 else
22969 cat >conftest.$ac_ext <<_ACEOF
22970 #line $LINENO "configure"
22971 /* confdefs.h. */
22972 _ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h. */
22976 /* System header to define __stub macros and hopefully few prototypes,
22977 which can conflict with char shmat (); below.
22978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22979 <limits.h> exists even on freestanding compilers. */
22980 #ifdef __STDC__
22981 # include <limits.h>
22982 #else
22983 # include <assert.h>
22984 #endif
22985 /* Override any gcc2 internal prototype to avoid an error. */
22986 #ifdef __cplusplus
22987 extern "C"
22988 {
22989 #endif
22990 /* We use char because int might match the return type of a gcc2
22991 builtin and then its argument prototype would still apply. */
22992 char shmat ();
22993 /* The GNU C library defines this for functions which it implements
22994 to always fail with ENOSYS. Some functions are actually named
22995 something starting with __ and the normal name is an alias. */
22996 #if defined (__stub_shmat) || defined (__stub___shmat)
22997 choke me
22998 #else
22999 char (*f) () = shmat;
23000 #endif
23001 #ifdef __cplusplus
23002 }
23003 #endif
23004
23005 int
23006 main ()
23007 {
23008 return f != shmat;
23009 ;
23010 return 0;
23011 }
23012 _ACEOF
23013 rm -f conftest.$ac_objext conftest$ac_exeext
23014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23015 (eval $ac_link) 2>&5
23016 ac_status=$?
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); } &&
23019 { ac_try='test -s conftest$ac_exeext'
23020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; }; then
23025 ac_cv_func_shmat=yes
23026 else
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23029
23030 ac_cv_func_shmat=no
23031 fi
23032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23033 fi
23034 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23035 echo "${ECHO_T}$ac_cv_func_shmat" >&6
23036
23037 if test $ac_cv_func_shmat = no; then
23038 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23039 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23040 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
23042 else
23043 ac_check_lib_save_LIBS=$LIBS
23044 LIBS="-lipc $LIBS"
23045 cat >conftest.$ac_ext <<_ACEOF
23046 #line $LINENO "configure"
23047 /* confdefs.h. */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052
23053 /* Override any gcc2 internal prototype to avoid an error. */
23054 #ifdef __cplusplus
23055 extern "C"
23056 #endif
23057 /* We use char because int might match the return type of a gcc2
23058 builtin and then its argument prototype would still apply. */
23059 char shmat ();
23060 int
23061 main ()
23062 {
23063 shmat ();
23064 ;
23065 return 0;
23066 }
23067 _ACEOF
23068 rm -f conftest.$ac_objext conftest$ac_exeext
23069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23070 (eval $ac_link) 2>&5
23071 ac_status=$?
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } &&
23074 { ac_try='test -s conftest$ac_exeext'
23075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23077 ac_status=$?
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; }; then
23080 ac_cv_lib_ipc_shmat=yes
23081 else
23082 echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23084
23085 ac_cv_lib_ipc_shmat=no
23086 fi
23087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23088 LIBS=$ac_check_lib_save_LIBS
23089 fi
23090 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23091 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23092 if test $ac_cv_lib_ipc_shmat = yes; then
23093 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23094 fi
23095
23096 fi
23097 fi
23098
23099 # Check for libraries that X11R6 Xt/Xaw programs need.
23100 ac_save_LDFLAGS=$LDFLAGS
23101 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23102 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23103 # check for ICE first), but we must link in the order -lSM -lICE or
23104 # we get undefined symbols. So assume we have SM if we have ICE.
23105 # These have to be linked with before -lX11, unlike the other
23106 # libraries we check for below, so use a different variable.
23107 # John Interrante, Karl Berry
23108 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23109 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23110 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113 ac_check_lib_save_LIBS=$LIBS
23114 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23115 cat >conftest.$ac_ext <<_ACEOF
23116 #line $LINENO "configure"
23117 /* confdefs.h. */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122
23123 /* Override any gcc2 internal prototype to avoid an error. */
23124 #ifdef __cplusplus
23125 extern "C"
23126 #endif
23127 /* We use char because int might match the return type of a gcc2
23128 builtin and then its argument prototype would still apply. */
23129 char IceConnectionNumber ();
23130 int
23131 main ()
23132 {
23133 IceConnectionNumber ();
23134 ;
23135 return 0;
23136 }
23137 _ACEOF
23138 rm -f conftest.$ac_objext conftest$ac_exeext
23139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23140 (eval $ac_link) 2>&5
23141 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } &&
23144 { ac_try='test -s conftest$ac_exeext'
23145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23146 (eval $ac_try) 2>&5
23147 ac_status=$?
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); }; }; then
23150 ac_cv_lib_ICE_IceConnectionNumber=yes
23151 else
23152 echo "$as_me: failed program was:" >&5
23153 sed 's/^/| /' conftest.$ac_ext >&5
23154
23155 ac_cv_lib_ICE_IceConnectionNumber=no
23156 fi
23157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23158 LIBS=$ac_check_lib_save_LIBS
23159 fi
23160 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23161 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23162 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23163 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23164 fi
23165
23166 LDFLAGS=$ac_save_LDFLAGS
23167
23168 fi
23169
23170
23171 if test "$no_x" = "yes"; then
23172 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23173 echo "$as_me: error: X11 not found" >&2;}
23174 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
23175 fi
23176
23177 GUI_TK_LIBRARY="$X_LIBS"
23178 TOOLKIT_INCLUDE="$X_CFLAGS"
23179 AFMINSTALL=afminstall
23180 COMPILED_X_PROGRAM=0
23181
23182 if test "$wxUSE_NANOX" = "yes"; then
23183 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
23184 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
23185 if test "x$MICROWIN" = x ; then
23186 echo "$as_me:$LINENO: result: not found" >&5
23187 echo "${ECHO_T}not found" >&6
23188 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
23189 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
23190 { (exit 1); exit 1; }; }
23191 else
23192 echo "$as_me:$LINENO: result: $MICROWIN" >&5
23193 echo "${ECHO_T}$MICROWIN" >&6
23194 cat >>confdefs.h <<\_ACEOF
23195 #define wxUSE_NANOX 1
23196 _ACEOF
23197
23198 fi
23199 fi
23200
23201 if test "$wxUSE_UNICODE" = "yes"; then
23202
23203 succeeded=no
23204
23205 if test -z "$PKG_CONFIG"; then
23206 # Extract the first word of "pkg-config", so it can be a program name with args.
23207 set dummy pkg-config; ac_word=$2
23208 echo "$as_me:$LINENO: checking for $ac_word" >&5
23209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23210 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
23212 else
23213 case $PKG_CONFIG in
23214 [\\/]* | ?:[\\/]*)
23215 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23216 ;;
23217 *)
23218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23219 for as_dir in $PATH
23220 do
23221 IFS=$as_save_IFS
23222 test -z "$as_dir" && as_dir=.
23223 for ac_exec_ext in '' $ac_executable_extensions; do
23224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23225 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23227 break 2
23228 fi
23229 done
23230 done
23231
23232 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23233 ;;
23234 esac
23235 fi
23236 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23237
23238 if test -n "$PKG_CONFIG"; then
23239 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23240 echo "${ECHO_T}$PKG_CONFIG" >&6
23241 else
23242 echo "$as_me:$LINENO: result: no" >&5
23243 echo "${ECHO_T}no" >&6
23244 fi
23245
23246 fi
23247
23248 if test "$PKG_CONFIG" = "no" ; then
23249 echo "*** The pkg-config script could not be found. Make sure it is"
23250 echo "*** in your path, or set the PKG_CONFIG environment variable"
23251 echo "*** to the full path to pkg-config."
23252 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23253 else
23254 PKG_CONFIG_MIN_VERSION=0.9.0
23255 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23256 echo "$as_me:$LINENO: checking for pangox" >&5
23257 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
23258
23259 if $PKG_CONFIG --exists "pangox" ; then
23260 echo "$as_me:$LINENO: result: yes" >&5
23261 echo "${ECHO_T}yes" >&6
23262 succeeded=yes
23263
23264 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
23265 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
23266 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
23267 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
23268 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
23269
23270 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
23271 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
23272 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
23273 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
23274 echo "${ECHO_T}$PANGOX_LIBS" >&6
23275 else
23276 PANGOX_CFLAGS=""
23277 PANGOX_LIBS=""
23278 ## If we have a custom action on failure, don't print errors, but
23279 ## do set a variable so people can do so.
23280 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
23281
23282 fi
23283
23284
23285
23286 else
23287 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23288 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23289 fi
23290 fi
23291
23292 if test $succeeded = yes; then
23293
23294 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
23295 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
23296
23297 else
23298
23299 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
23300 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
23301 { (exit 1); exit 1; }; }
23302
23303
23304 fi
23305
23306
23307 succeeded=no
23308
23309 if test -z "$PKG_CONFIG"; then
23310 # Extract the first word of "pkg-config", so it can be a program name with args.
23311 set dummy pkg-config; ac_word=$2
23312 echo "$as_me:$LINENO: checking for $ac_word" >&5
23313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23314 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
23316 else
23317 case $PKG_CONFIG in
23318 [\\/]* | ?:[\\/]*)
23319 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23320 ;;
23321 *)
23322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23323 for as_dir in $PATH
23324 do
23325 IFS=$as_save_IFS
23326 test -z "$as_dir" && as_dir=.
23327 for ac_exec_ext in '' $ac_executable_extensions; do
23328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23329 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23331 break 2
23332 fi
23333 done
23334 done
23335
23336 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23337 ;;
23338 esac
23339 fi
23340 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23341
23342 if test -n "$PKG_CONFIG"; then
23343 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23344 echo "${ECHO_T}$PKG_CONFIG" >&6
23345 else
23346 echo "$as_me:$LINENO: result: no" >&5
23347 echo "${ECHO_T}no" >&6
23348 fi
23349
23350 fi
23351
23352 if test "$PKG_CONFIG" = "no" ; then
23353 echo "*** The pkg-config script could not be found. Make sure it is"
23354 echo "*** in your path, or set the PKG_CONFIG environment variable"
23355 echo "*** to the full path to pkg-config."
23356 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23357 else
23358 PKG_CONFIG_MIN_VERSION=0.9.0
23359 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23360 echo "$as_me:$LINENO: checking for pangoft2" >&5
23361 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23362
23363 if $PKG_CONFIG --exists "pangoft2" ; then
23364 echo "$as_me:$LINENO: result: yes" >&5
23365 echo "${ECHO_T}yes" >&6
23366 succeeded=yes
23367
23368 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23369 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23370 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23371 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23372 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23373
23374 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23375 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23376 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23377 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23378 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23379 else
23380 PANGOFT2_CFLAGS=""
23381 PANGOFT2_LIBS=""
23382 ## If we have a custom action on failure, don't print errors, but
23383 ## do set a variable so people can do so.
23384 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23385
23386 fi
23387
23388
23389
23390 else
23391 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23392 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23393 fi
23394 fi
23395
23396 if test $succeeded = yes; then
23397
23398 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23399 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23400
23401 else
23402
23403 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23404 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23405 wxUSE_PRINTING_ARCHITECTURE="no"
23406
23407
23408 fi
23409
23410
23411 succeeded=no
23412
23413 if test -z "$PKG_CONFIG"; then
23414 # Extract the first word of "pkg-config", so it can be a program name with args.
23415 set dummy pkg-config; ac_word=$2
23416 echo "$as_me:$LINENO: checking for $ac_word" >&5
23417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23418 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23420 else
23421 case $PKG_CONFIG in
23422 [\\/]* | ?:[\\/]*)
23423 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23424 ;;
23425 *)
23426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23427 for as_dir in $PATH
23428 do
23429 IFS=$as_save_IFS
23430 test -z "$as_dir" && as_dir=.
23431 for ac_exec_ext in '' $ac_executable_extensions; do
23432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23433 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23435 break 2
23436 fi
23437 done
23438 done
23439
23440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23441 ;;
23442 esac
23443 fi
23444 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23445
23446 if test -n "$PKG_CONFIG"; then
23447 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23448 echo "${ECHO_T}$PKG_CONFIG" >&6
23449 else
23450 echo "$as_me:$LINENO: result: no" >&5
23451 echo "${ECHO_T}no" >&6
23452 fi
23453
23454 fi
23455
23456 if test "$PKG_CONFIG" = "no" ; then
23457 echo "*** The pkg-config script could not be found. Make sure it is"
23458 echo "*** in your path, or set the PKG_CONFIG environment variable"
23459 echo "*** to the full path to pkg-config."
23460 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23461 else
23462 PKG_CONFIG_MIN_VERSION=0.9.0
23463 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23464 echo "$as_me:$LINENO: checking for pangoxft" >&5
23465 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
23466
23467 if $PKG_CONFIG --exists "pangoxft" ; then
23468 echo "$as_me:$LINENO: result: yes" >&5
23469 echo "${ECHO_T}yes" >&6
23470 succeeded=yes
23471
23472 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
23473 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
23474 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
23475 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
23476 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
23477
23478 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
23479 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
23480 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
23481 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
23482 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
23483 else
23484 PANGOXFT_CFLAGS=""
23485 PANGOXFT_LIBS=""
23486 ## If we have a custom action on failure, don't print errors, but
23487 ## do set a variable so people can do so.
23488 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
23489
23490 fi
23491
23492
23493
23494 else
23495 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23496 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23497 fi
23498 fi
23499
23500 if test $succeeded = yes; then
23501
23502 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
23503 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
23504
23505 else
23506
23507 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
23508 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
23509
23510
23511 fi
23512
23513 fi
23514
23515 wxUSE_UNIVERSAL="yes"
23516
23517 if test "$wxUSE_NANOX" = "yes"; then
23518 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
23519 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"
23520 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
23521 else
23522 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
23523 fi
23524
23525 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
23526 TOOLKIT=X11
23527 GUIDIST=X11_DIST
23528 fi
23529
23530 if test "$wxUSE_MOTIF" = 1; then
23531 if test "$no_x" = yes; then
23532 # Not all programs may use this symbol, but it does not hurt to define it.
23533
23534 cat >>confdefs.h <<\_ACEOF
23535 #define X_DISPLAY_MISSING 1
23536 _ACEOF
23537
23538 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23539 else
23540 if test -n "$x_includes"; then
23541 X_CFLAGS="$X_CFLAGS -I$x_includes"
23542 fi
23543
23544 # It would also be nice to do this for all -L options, not just this one.
23545 if test -n "$x_libraries"; then
23546 X_LIBS="$X_LIBS -L$x_libraries"
23547 # For Solaris; some versions of Sun CC require a space after -R and
23548 # others require no space. Words are not sufficient . . . .
23549 case `(uname -sr) 2>/dev/null` in
23550 "SunOS 5"*)
23551 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23552 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23553 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23554 cat >conftest.$ac_ext <<_ACEOF
23555 #line $LINENO "configure"
23556 /* confdefs.h. */
23557 _ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h. */
23561
23562 int
23563 main ()
23564 {
23565
23566 ;
23567 return 0;
23568 }
23569 _ACEOF
23570 rm -f conftest.$ac_objext conftest$ac_exeext
23571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23572 (eval $ac_link) 2>&5
23573 ac_status=$?
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } &&
23576 { ac_try='test -s conftest$ac_exeext'
23577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23578 (eval $ac_try) 2>&5
23579 ac_status=$?
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); }; }; then
23582 ac_R_nospace=yes
23583 else
23584 echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23586
23587 ac_R_nospace=no
23588 fi
23589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23590 if test $ac_R_nospace = yes; then
23591 echo "$as_me:$LINENO: result: no" >&5
23592 echo "${ECHO_T}no" >&6
23593 X_LIBS="$X_LIBS -R$x_libraries"
23594 else
23595 LIBS="$ac_xsave_LIBS -R $x_libraries"
23596 cat >conftest.$ac_ext <<_ACEOF
23597 #line $LINENO "configure"
23598 /* confdefs.h. */
23599 _ACEOF
23600 cat confdefs.h >>conftest.$ac_ext
23601 cat >>conftest.$ac_ext <<_ACEOF
23602 /* end confdefs.h. */
23603
23604 int
23605 main ()
23606 {
23607
23608 ;
23609 return 0;
23610 }
23611 _ACEOF
23612 rm -f conftest.$ac_objext conftest$ac_exeext
23613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23614 (eval $ac_link) 2>&5
23615 ac_status=$?
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } &&
23618 { ac_try='test -s conftest$ac_exeext'
23619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23620 (eval $ac_try) 2>&5
23621 ac_status=$?
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; }; then
23624 ac_R_space=yes
23625 else
23626 echo "$as_me: failed program was:" >&5
23627 sed 's/^/| /' conftest.$ac_ext >&5
23628
23629 ac_R_space=no
23630 fi
23631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23632 if test $ac_R_space = yes; then
23633 echo "$as_me:$LINENO: result: yes" >&5
23634 echo "${ECHO_T}yes" >&6
23635 X_LIBS="$X_LIBS -R $x_libraries"
23636 else
23637 echo "$as_me:$LINENO: result: neither works" >&5
23638 echo "${ECHO_T}neither works" >&6
23639 fi
23640 fi
23641 LIBS=$ac_xsave_LIBS
23642 esac
23643 fi
23644
23645 # Check for system-dependent libraries X programs must link with.
23646 # Do this before checking for the system-independent R6 libraries
23647 # (-lICE), since we may need -lsocket or whatever for X linking.
23648
23649 if test "$ISC" = yes; then
23650 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23651 else
23652 # Martyn Johnson says this is needed for Ultrix, if the X
23653 # libraries were built with DECnet support. And Karl Berry says
23654 # the Alpha needs dnet_stub (dnet does not exist).
23655 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23656 cat >conftest.$ac_ext <<_ACEOF
23657 #line $LINENO "configure"
23658 /* confdefs.h. */
23659 _ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23663
23664 /* Override any gcc2 internal prototype to avoid an error. */
23665 #ifdef __cplusplus
23666 extern "C"
23667 #endif
23668 /* We use char because int might match the return type of a gcc2
23669 builtin and then its argument prototype would still apply. */
23670 char XOpenDisplay ();
23671 int
23672 main ()
23673 {
23674 XOpenDisplay ();
23675 ;
23676 return 0;
23677 }
23678 _ACEOF
23679 rm -f conftest.$ac_objext conftest$ac_exeext
23680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23681 (eval $ac_link) 2>&5
23682 ac_status=$?
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); } &&
23685 { ac_try='test -s conftest$ac_exeext'
23686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23687 (eval $ac_try) 2>&5
23688 ac_status=$?
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); }; }; then
23691 :
23692 else
23693 echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23695
23696 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23697 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23698 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23699 echo $ECHO_N "(cached) $ECHO_C" >&6
23700 else
23701 ac_check_lib_save_LIBS=$LIBS
23702 LIBS="-ldnet $LIBS"
23703 cat >conftest.$ac_ext <<_ACEOF
23704 #line $LINENO "configure"
23705 /* confdefs.h. */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23710
23711 /* Override any gcc2 internal prototype to avoid an error. */
23712 #ifdef __cplusplus
23713 extern "C"
23714 #endif
23715 /* We use char because int might match the return type of a gcc2
23716 builtin and then its argument prototype would still apply. */
23717 char dnet_ntoa ();
23718 int
23719 main ()
23720 {
23721 dnet_ntoa ();
23722 ;
23723 return 0;
23724 }
23725 _ACEOF
23726 rm -f conftest.$ac_objext conftest$ac_exeext
23727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23728 (eval $ac_link) 2>&5
23729 ac_status=$?
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); } &&
23732 { ac_try='test -s conftest$ac_exeext'
23733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23734 (eval $ac_try) 2>&5
23735 ac_status=$?
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); }; }; then
23738 ac_cv_lib_dnet_dnet_ntoa=yes
23739 else
23740 echo "$as_me: failed program was:" >&5
23741 sed 's/^/| /' conftest.$ac_ext >&5
23742
23743 ac_cv_lib_dnet_dnet_ntoa=no
23744 fi
23745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23746 LIBS=$ac_check_lib_save_LIBS
23747 fi
23748 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23749 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23750 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23751 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23752 fi
23753
23754 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23755 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23756 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23757 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23758 echo $ECHO_N "(cached) $ECHO_C" >&6
23759 else
23760 ac_check_lib_save_LIBS=$LIBS
23761 LIBS="-ldnet_stub $LIBS"
23762 cat >conftest.$ac_ext <<_ACEOF
23763 #line $LINENO "configure"
23764 /* confdefs.h. */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769
23770 /* Override any gcc2 internal prototype to avoid an error. */
23771 #ifdef __cplusplus
23772 extern "C"
23773 #endif
23774 /* We use char because int might match the return type of a gcc2
23775 builtin and then its argument prototype would still apply. */
23776 char dnet_ntoa ();
23777 int
23778 main ()
23779 {
23780 dnet_ntoa ();
23781 ;
23782 return 0;
23783 }
23784 _ACEOF
23785 rm -f conftest.$ac_objext conftest$ac_exeext
23786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23787 (eval $ac_link) 2>&5
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } &&
23791 { ac_try='test -s conftest$ac_exeext'
23792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793 (eval $ac_try) 2>&5
23794 ac_status=$?
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); }; }; then
23797 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23798 else
23799 echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.$ac_ext >&5
23801
23802 ac_cv_lib_dnet_stub_dnet_ntoa=no
23803 fi
23804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23805 LIBS=$ac_check_lib_save_LIBS
23806 fi
23807 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23808 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23809 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23810 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23811 fi
23812
23813 fi
23814 fi
23815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23816 LIBS="$ac_xsave_LIBS"
23817
23818 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23819 # to get the SysV transport functions.
23820 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23821 # needs -lnsl.
23822 # The nsl library prevents programs from opening the X display
23823 # on Irix 5.2, according to T.E. Dickey.
23824 # The functions gethostbyname, getservbyname, and inet_addr are
23825 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23826 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23827 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23828 if test "${ac_cv_func_gethostbyname+set}" = set; then
23829 echo $ECHO_N "(cached) $ECHO_C" >&6
23830 else
23831 cat >conftest.$ac_ext <<_ACEOF
23832 #line $LINENO "configure"
23833 /* confdefs.h. */
23834 _ACEOF
23835 cat confdefs.h >>conftest.$ac_ext
23836 cat >>conftest.$ac_ext <<_ACEOF
23837 /* end confdefs.h. */
23838 /* System header to define __stub macros and hopefully few prototypes,
23839 which can conflict with char gethostbyname (); below.
23840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23841 <limits.h> exists even on freestanding compilers. */
23842 #ifdef __STDC__
23843 # include <limits.h>
23844 #else
23845 # include <assert.h>
23846 #endif
23847 /* Override any gcc2 internal prototype to avoid an error. */
23848 #ifdef __cplusplus
23849 extern "C"
23850 {
23851 #endif
23852 /* We use char because int might match the return type of a gcc2
23853 builtin and then its argument prototype would still apply. */
23854 char gethostbyname ();
23855 /* The GNU C library defines this for functions which it implements
23856 to always fail with ENOSYS. Some functions are actually named
23857 something starting with __ and the normal name is an alias. */
23858 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23859 choke me
23860 #else
23861 char (*f) () = gethostbyname;
23862 #endif
23863 #ifdef __cplusplus
23864 }
23865 #endif
23866
23867 int
23868 main ()
23869 {
23870 return f != gethostbyname;
23871 ;
23872 return 0;
23873 }
23874 _ACEOF
23875 rm -f conftest.$ac_objext conftest$ac_exeext
23876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23877 (eval $ac_link) 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_func_gethostbyname=yes
23888 else
23889 echo "$as_me: failed program was:" >&5
23890 sed 's/^/| /' conftest.$ac_ext >&5
23891
23892 ac_cv_func_gethostbyname=no
23893 fi
23894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23895 fi
23896 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23897 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23898
23899 if test $ac_cv_func_gethostbyname = no; then
23900 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23901 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23902 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
23904 else
23905 ac_check_lib_save_LIBS=$LIBS
23906 LIBS="-lnsl $LIBS"
23907 cat >conftest.$ac_ext <<_ACEOF
23908 #line $LINENO "configure"
23909 /* confdefs.h. */
23910 _ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23914
23915 /* Override any gcc2 internal prototype to avoid an error. */
23916 #ifdef __cplusplus
23917 extern "C"
23918 #endif
23919 /* We use char because int might match the return type of a gcc2
23920 builtin and then its argument prototype would still apply. */
23921 char gethostbyname ();
23922 int
23923 main ()
23924 {
23925 gethostbyname ();
23926 ;
23927 return 0;
23928 }
23929 _ACEOF
23930 rm -f conftest.$ac_objext conftest$ac_exeext
23931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23932 (eval $ac_link) 2>&5
23933 ac_status=$?
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); } &&
23936 { ac_try='test -s conftest$ac_exeext'
23937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938 (eval $ac_try) 2>&5
23939 ac_status=$?
23940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); }; }; then
23942 ac_cv_lib_nsl_gethostbyname=yes
23943 else
23944 echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23946
23947 ac_cv_lib_nsl_gethostbyname=no
23948 fi
23949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23950 LIBS=$ac_check_lib_save_LIBS
23951 fi
23952 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23953 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23954 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23956 fi
23957
23958 if test $ac_cv_lib_nsl_gethostbyname = no; then
23959 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23960 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23961 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23962 echo $ECHO_N "(cached) $ECHO_C" >&6
23963 else
23964 ac_check_lib_save_LIBS=$LIBS
23965 LIBS="-lbsd $LIBS"
23966 cat >conftest.$ac_ext <<_ACEOF
23967 #line $LINENO "configure"
23968 /* confdefs.h. */
23969 _ACEOF
23970 cat confdefs.h >>conftest.$ac_ext
23971 cat >>conftest.$ac_ext <<_ACEOF
23972 /* end confdefs.h. */
23973
23974 /* Override any gcc2 internal prototype to avoid an error. */
23975 #ifdef __cplusplus
23976 extern "C"
23977 #endif
23978 /* We use char because int might match the return type of a gcc2
23979 builtin and then its argument prototype would still apply. */
23980 char gethostbyname ();
23981 int
23982 main ()
23983 {
23984 gethostbyname ();
23985 ;
23986 return 0;
23987 }
23988 _ACEOF
23989 rm -f conftest.$ac_objext conftest$ac_exeext
23990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23991 (eval $ac_link) 2>&5
23992 ac_status=$?
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); } &&
23995 { ac_try='test -s conftest$ac_exeext'
23996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997 (eval $ac_try) 2>&5
23998 ac_status=$?
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); }; }; then
24001 ac_cv_lib_bsd_gethostbyname=yes
24002 else
24003 echo "$as_me: failed program was:" >&5
24004 sed 's/^/| /' conftest.$ac_ext >&5
24005
24006 ac_cv_lib_bsd_gethostbyname=no
24007 fi
24008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24009 LIBS=$ac_check_lib_save_LIBS
24010 fi
24011 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24012 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24013 if test $ac_cv_lib_bsd_gethostbyname = yes; then
24014 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24015 fi
24016
24017 fi
24018 fi
24019
24020 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24021 # socket/setsockopt and other routines are undefined under SCO ODT
24022 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24023 # on later versions), says Simon Leinen: it contains gethostby*
24024 # variants that don't use the name server (or something). -lsocket
24025 # must be given before -lnsl if both are needed. We assume that
24026 # if connect needs -lnsl, so does gethostbyname.
24027 echo "$as_me:$LINENO: checking for connect" >&5
24028 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24029 if test "${ac_cv_func_connect+set}" = set; then
24030 echo $ECHO_N "(cached) $ECHO_C" >&6
24031 else
24032 cat >conftest.$ac_ext <<_ACEOF
24033 #line $LINENO "configure"
24034 /* confdefs.h. */
24035 _ACEOF
24036 cat confdefs.h >>conftest.$ac_ext
24037 cat >>conftest.$ac_ext <<_ACEOF
24038 /* end confdefs.h. */
24039 /* System header to define __stub macros and hopefully few prototypes,
24040 which can conflict with char connect (); below.
24041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24042 <limits.h> exists even on freestanding compilers. */
24043 #ifdef __STDC__
24044 # include <limits.h>
24045 #else
24046 # include <assert.h>
24047 #endif
24048 /* Override any gcc2 internal prototype to avoid an error. */
24049 #ifdef __cplusplus
24050 extern "C"
24051 {
24052 #endif
24053 /* We use char because int might match the return type of a gcc2
24054 builtin and then its argument prototype would still apply. */
24055 char connect ();
24056 /* The GNU C library defines this for functions which it implements
24057 to always fail with ENOSYS. Some functions are actually named
24058 something starting with __ and the normal name is an alias. */
24059 #if defined (__stub_connect) || defined (__stub___connect)
24060 choke me
24061 #else
24062 char (*f) () = connect;
24063 #endif
24064 #ifdef __cplusplus
24065 }
24066 #endif
24067
24068 int
24069 main ()
24070 {
24071 return f != connect;
24072 ;
24073 return 0;
24074 }
24075 _ACEOF
24076 rm -f conftest.$ac_objext conftest$ac_exeext
24077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24078 (eval $ac_link) 2>&5
24079 ac_status=$?
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); } &&
24082 { ac_try='test -s conftest$ac_exeext'
24083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24084 (eval $ac_try) 2>&5
24085 ac_status=$?
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); }; }; then
24088 ac_cv_func_connect=yes
24089 else
24090 echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.$ac_ext >&5
24092
24093 ac_cv_func_connect=no
24094 fi
24095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24096 fi
24097 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24098 echo "${ECHO_T}$ac_cv_func_connect" >&6
24099
24100 if test $ac_cv_func_connect = no; then
24101 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24102 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24103 if test "${ac_cv_lib_socket_connect+set}" = set; then
24104 echo $ECHO_N "(cached) $ECHO_C" >&6
24105 else
24106 ac_check_lib_save_LIBS=$LIBS
24107 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24108 cat >conftest.$ac_ext <<_ACEOF
24109 #line $LINENO "configure"
24110 /* confdefs.h. */
24111 _ACEOF
24112 cat confdefs.h >>conftest.$ac_ext
24113 cat >>conftest.$ac_ext <<_ACEOF
24114 /* end confdefs.h. */
24115
24116 /* Override any gcc2 internal prototype to avoid an error. */
24117 #ifdef __cplusplus
24118 extern "C"
24119 #endif
24120 /* We use char because int might match the return type of a gcc2
24121 builtin and then its argument prototype would still apply. */
24122 char connect ();
24123 int
24124 main ()
24125 {
24126 connect ();
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>&5
24134 ac_status=$?
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); } &&
24137 { ac_try='test -s conftest$ac_exeext'
24138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24139 (eval $ac_try) 2>&5
24140 ac_status=$?
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); }; }; then
24143 ac_cv_lib_socket_connect=yes
24144 else
24145 echo "$as_me: failed program was:" >&5
24146 sed 's/^/| /' conftest.$ac_ext >&5
24147
24148 ac_cv_lib_socket_connect=no
24149 fi
24150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24151 LIBS=$ac_check_lib_save_LIBS
24152 fi
24153 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24154 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24155 if test $ac_cv_lib_socket_connect = yes; then
24156 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24157 fi
24158
24159 fi
24160
24161 # Guillermo Gomez says -lposix is necessary on A/UX.
24162 echo "$as_me:$LINENO: checking for remove" >&5
24163 echo $ECHO_N "checking for remove... $ECHO_C" >&6
24164 if test "${ac_cv_func_remove+set}" = set; then
24165 echo $ECHO_N "(cached) $ECHO_C" >&6
24166 else
24167 cat >conftest.$ac_ext <<_ACEOF
24168 #line $LINENO "configure"
24169 /* confdefs.h. */
24170 _ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h. */
24174 /* System header to define __stub macros and hopefully few prototypes,
24175 which can conflict with char remove (); below.
24176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24177 <limits.h> exists even on freestanding compilers. */
24178 #ifdef __STDC__
24179 # include <limits.h>
24180 #else
24181 # include <assert.h>
24182 #endif
24183 /* Override any gcc2 internal prototype to avoid an error. */
24184 #ifdef __cplusplus
24185 extern "C"
24186 {
24187 #endif
24188 /* We use char because int might match the return type of a gcc2
24189 builtin and then its argument prototype would still apply. */
24190 char remove ();
24191 /* The GNU C library defines this for functions which it implements
24192 to always fail with ENOSYS. Some functions are actually named
24193 something starting with __ and the normal name is an alias. */
24194 #if defined (__stub_remove) || defined (__stub___remove)
24195 choke me
24196 #else
24197 char (*f) () = remove;
24198 #endif
24199 #ifdef __cplusplus
24200 }
24201 #endif
24202
24203 int
24204 main ()
24205 {
24206 return f != remove;
24207 ;
24208 return 0;
24209 }
24210 _ACEOF
24211 rm -f conftest.$ac_objext conftest$ac_exeext
24212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24213 (eval $ac_link) 2>&5
24214 ac_status=$?
24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); } &&
24217 { ac_try='test -s conftest$ac_exeext'
24218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24219 (eval $ac_try) 2>&5
24220 ac_status=$?
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); }; }; then
24223 ac_cv_func_remove=yes
24224 else
24225 echo "$as_me: failed program was:" >&5
24226 sed 's/^/| /' conftest.$ac_ext >&5
24227
24228 ac_cv_func_remove=no
24229 fi
24230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24231 fi
24232 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24233 echo "${ECHO_T}$ac_cv_func_remove" >&6
24234
24235 if test $ac_cv_func_remove = no; then
24236 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24237 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24238 if test "${ac_cv_lib_posix_remove+set}" = set; then
24239 echo $ECHO_N "(cached) $ECHO_C" >&6
24240 else
24241 ac_check_lib_save_LIBS=$LIBS
24242 LIBS="-lposix $LIBS"
24243 cat >conftest.$ac_ext <<_ACEOF
24244 #line $LINENO "configure"
24245 /* confdefs.h. */
24246 _ACEOF
24247 cat confdefs.h >>conftest.$ac_ext
24248 cat >>conftest.$ac_ext <<_ACEOF
24249 /* end confdefs.h. */
24250
24251 /* Override any gcc2 internal prototype to avoid an error. */
24252 #ifdef __cplusplus
24253 extern "C"
24254 #endif
24255 /* We use char because int might match the return type of a gcc2
24256 builtin and then its argument prototype would still apply. */
24257 char remove ();
24258 int
24259 main ()
24260 {
24261 remove ();
24262 ;
24263 return 0;
24264 }
24265 _ACEOF
24266 rm -f conftest.$ac_objext conftest$ac_exeext
24267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24268 (eval $ac_link) 2>&5
24269 ac_status=$?
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); } &&
24272 { ac_try='test -s conftest$ac_exeext'
24273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274 (eval $ac_try) 2>&5
24275 ac_status=$?
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); }; }; then
24278 ac_cv_lib_posix_remove=yes
24279 else
24280 echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24282
24283 ac_cv_lib_posix_remove=no
24284 fi
24285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24286 LIBS=$ac_check_lib_save_LIBS
24287 fi
24288 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24289 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24290 if test $ac_cv_lib_posix_remove = yes; then
24291 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24292 fi
24293
24294 fi
24295
24296 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24297 echo "$as_me:$LINENO: checking for shmat" >&5
24298 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24299 if test "${ac_cv_func_shmat+set}" = set; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
24301 else
24302 cat >conftest.$ac_ext <<_ACEOF
24303 #line $LINENO "configure"
24304 /* confdefs.h. */
24305 _ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h. */
24309 /* System header to define __stub macros and hopefully few prototypes,
24310 which can conflict with char shmat (); below.
24311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24312 <limits.h> exists even on freestanding compilers. */
24313 #ifdef __STDC__
24314 # include <limits.h>
24315 #else
24316 # include <assert.h>
24317 #endif
24318 /* Override any gcc2 internal prototype to avoid an error. */
24319 #ifdef __cplusplus
24320 extern "C"
24321 {
24322 #endif
24323 /* We use char because int might match the return type of a gcc2
24324 builtin and then its argument prototype would still apply. */
24325 char shmat ();
24326 /* The GNU C library defines this for functions which it implements
24327 to always fail with ENOSYS. Some functions are actually named
24328 something starting with __ and the normal name is an alias. */
24329 #if defined (__stub_shmat) || defined (__stub___shmat)
24330 choke me
24331 #else
24332 char (*f) () = shmat;
24333 #endif
24334 #ifdef __cplusplus
24335 }
24336 #endif
24337
24338 int
24339 main ()
24340 {
24341 return f != shmat;
24342 ;
24343 return 0;
24344 }
24345 _ACEOF
24346 rm -f conftest.$ac_objext conftest$ac_exeext
24347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24348 (eval $ac_link) 2>&5
24349 ac_status=$?
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } &&
24352 { ac_try='test -s conftest$ac_exeext'
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24355 ac_status=$?
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; }; then
24358 ac_cv_func_shmat=yes
24359 else
24360 echo "$as_me: failed program was:" >&5
24361 sed 's/^/| /' conftest.$ac_ext >&5
24362
24363 ac_cv_func_shmat=no
24364 fi
24365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24366 fi
24367 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24368 echo "${ECHO_T}$ac_cv_func_shmat" >&6
24369
24370 if test $ac_cv_func_shmat = no; then
24371 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24372 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24373 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24374 echo $ECHO_N "(cached) $ECHO_C" >&6
24375 else
24376 ac_check_lib_save_LIBS=$LIBS
24377 LIBS="-lipc $LIBS"
24378 cat >conftest.$ac_ext <<_ACEOF
24379 #line $LINENO "configure"
24380 /* confdefs.h. */
24381 _ACEOF
24382 cat confdefs.h >>conftest.$ac_ext
24383 cat >>conftest.$ac_ext <<_ACEOF
24384 /* end confdefs.h. */
24385
24386 /* Override any gcc2 internal prototype to avoid an error. */
24387 #ifdef __cplusplus
24388 extern "C"
24389 #endif
24390 /* We use char because int might match the return type of a gcc2
24391 builtin and then its argument prototype would still apply. */
24392 char shmat ();
24393 int
24394 main ()
24395 {
24396 shmat ();
24397 ;
24398 return 0;
24399 }
24400 _ACEOF
24401 rm -f conftest.$ac_objext conftest$ac_exeext
24402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24403 (eval $ac_link) 2>&5
24404 ac_status=$?
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); } &&
24407 { ac_try='test -s conftest$ac_exeext'
24408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24409 (eval $ac_try) 2>&5
24410 ac_status=$?
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); }; }; then
24413 ac_cv_lib_ipc_shmat=yes
24414 else
24415 echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24417
24418 ac_cv_lib_ipc_shmat=no
24419 fi
24420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24421 LIBS=$ac_check_lib_save_LIBS
24422 fi
24423 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24424 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24425 if test $ac_cv_lib_ipc_shmat = yes; then
24426 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24427 fi
24428
24429 fi
24430 fi
24431
24432 # Check for libraries that X11R6 Xt/Xaw programs need.
24433 ac_save_LDFLAGS=$LDFLAGS
24434 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24435 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24436 # check for ICE first), but we must link in the order -lSM -lICE or
24437 # we get undefined symbols. So assume we have SM if we have ICE.
24438 # These have to be linked with before -lX11, unlike the other
24439 # libraries we check for below, so use a different variable.
24440 # John Interrante, Karl Berry
24441 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24442 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24443 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24444 echo $ECHO_N "(cached) $ECHO_C" >&6
24445 else
24446 ac_check_lib_save_LIBS=$LIBS
24447 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24448 cat >conftest.$ac_ext <<_ACEOF
24449 #line $LINENO "configure"
24450 /* confdefs.h. */
24451 _ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h. */
24455
24456 /* Override any gcc2 internal prototype to avoid an error. */
24457 #ifdef __cplusplus
24458 extern "C"
24459 #endif
24460 /* We use char because int might match the return type of a gcc2
24461 builtin and then its argument prototype would still apply. */
24462 char IceConnectionNumber ();
24463 int
24464 main ()
24465 {
24466 IceConnectionNumber ();
24467 ;
24468 return 0;
24469 }
24470 _ACEOF
24471 rm -f conftest.$ac_objext conftest$ac_exeext
24472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24473 (eval $ac_link) 2>&5
24474 ac_status=$?
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); } &&
24477 { ac_try='test -s conftest$ac_exeext'
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24480 ac_status=$?
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; }; then
24483 ac_cv_lib_ICE_IceConnectionNumber=yes
24484 else
24485 echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24487
24488 ac_cv_lib_ICE_IceConnectionNumber=no
24489 fi
24490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24491 LIBS=$ac_check_lib_save_LIBS
24492 fi
24493 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24494 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24495 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24496 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24497 fi
24498
24499 LDFLAGS=$ac_save_LDFLAGS
24500
24501 fi
24502
24503
24504 if test "$no_x" = "yes"; then
24505 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24506 echo "$as_me: error: X11 not found" >&2;}
24507 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
24508 fi
24509
24510 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
24511 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
24512 AFMINSTALL=afminstall
24513 COMPILED_X_PROGRAM=0
24514
24515 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
24516 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
24517
24518 ac_find_includes=
24519 for ac_dir in $SEARCH_INCLUDE /usr/include;
24520 do
24521 if test -f "$ac_dir/Xm/Xm.h"; then
24522 ac_find_includes=$ac_dir
24523 break
24524 fi
24525 done
24526
24527 if test "$ac_find_includes" != "" ; then
24528 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24529 echo "${ECHO_T}found in $ac_find_includes" >&6
24530
24531 if test "x$ac_find_includes" = "x/usr/include"; then
24532 ac_path_to_include=""
24533 else
24534 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
24535 result=$?
24536 if test $result = 0; then
24537 ac_path_to_include=""
24538 else
24539 ac_path_to_include=" -I$ac_find_includes"
24540 fi
24541 fi
24542
24543 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
24544 else
24545 cat >conftest.$ac_ext <<_ACEOF
24546 #line $LINENO "configure"
24547 /* confdefs.h. */
24548 _ACEOF
24549 cat confdefs.h >>conftest.$ac_ext
24550 cat >>conftest.$ac_ext <<_ACEOF
24551 /* end confdefs.h. */
24552
24553 #include <Xm/Xm.h>
24554
24555 int
24556 main ()
24557 {
24558
24559 int version;
24560 version = xmUseVersion;
24561
24562 ;
24563 return 0;
24564 }
24565 _ACEOF
24566 rm -f conftest.$ac_objext
24567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24568 (eval $ac_compile) 2>&5
24569 ac_status=$?
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); } &&
24572 { ac_try='test -s conftest.$ac_objext'
24573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24574 (eval $ac_try) 2>&5
24575 ac_status=$?
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; }; then
24578
24579 echo "$as_me:$LINENO: result: found in default search path" >&5
24580 echo "${ECHO_T}found in default search path" >&6
24581 COMPILED_X_PROGRAM=1
24582
24583 else
24584 echo "$as_me: failed program was:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24586
24587
24588 echo "$as_me:$LINENO: result: no" >&5
24589 echo "${ECHO_T}no" >&6
24590 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24591 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24592 { (exit 1); exit 1; }; }
24593
24594
24595 fi
24596 rm -f conftest.$ac_objext conftest.$ac_ext
24597 fi
24598
24599 if test "$COMPILED_X_PROGRAM" = 0; then
24600 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24601 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24602
24603 ac_find_libraries=
24604 for ac_dir in $SEARCH_LIB /usr/lib;
24605 do
24606 for ac_extension in a so sl dylib; do
24607 if test -f "$ac_dir/libXm.$ac_extension"; then
24608 ac_find_libraries=$ac_dir
24609 break 2
24610 fi
24611 done
24612 done
24613
24614 if test "$ac_find_libraries" != "" ; then
24615 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24616 echo "${ECHO_T}found at $ac_find_libraries" >&6
24617
24618
24619 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24620 result=$?
24621 if test $result = 0; then
24622 ac_path_to_link=""
24623 else
24624 ac_path_to_link=" -L$ac_find_libraries"
24625 fi
24626
24627 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
24628 else
24629 save_CFLAGS=$CFLAGS
24630 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24631
24632 cat >conftest.$ac_ext <<_ACEOF
24633 #line $LINENO "configure"
24634 /* confdefs.h. */
24635 _ACEOF
24636 cat confdefs.h >>conftest.$ac_ext
24637 cat >>conftest.$ac_ext <<_ACEOF
24638 /* end confdefs.h. */
24639
24640 #include <Xm/Xm.h>
24641
24642 int
24643 main ()
24644 {
24645
24646 int version;
24647 version = xmUseVersion;
24648
24649 ;
24650 return 0;
24651 }
24652 _ACEOF
24653 rm -f conftest.$ac_objext
24654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24655 (eval $ac_compile) 2>&5
24656 ac_status=$?
24657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); } &&
24659 { ac_try='test -s conftest.$ac_objext'
24660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24661 (eval $ac_try) 2>&5
24662 ac_status=$?
24663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664 (exit $ac_status); }; }; then
24665
24666 echo "$as_me:$LINENO: result: found in default search path" >&5
24667 echo "${ECHO_T}found in default search path" >&6
24668 COMPILED_X_PROGRAM=1
24669
24670 else
24671 echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24673
24674
24675 echo "$as_me:$LINENO: result: no" >&5
24676 echo "${ECHO_T}no" >&6
24677 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24678 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24679 { (exit 1); exit 1; }; }
24680
24681
24682 fi
24683 rm -f conftest.$ac_objext conftest.$ac_ext
24684
24685 CFLAGS=$save_CFLAGS
24686 fi
24687 fi
24688
24689 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24690 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
24691 libp_link=""
24692 libsm_ice_link=""
24693 libs_found=0
24694 for libp in "" " -lXp"; do
24695 if test "$libs_found" = "0"; then
24696 for libsm_ice in "" " -lSM -lICE"; do
24697 if test "$libs_found" = "0"; then
24698 save_LIBS="$LIBS"
24699 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
24700 save_CFLAGS=$CFLAGS
24701 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24702
24703 cat >conftest.$ac_ext <<_ACEOF
24704 #line $LINENO "configure"
24705 /* confdefs.h. */
24706 _ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h. */
24710
24711 #include <Xm/Xm.h>
24712 #include <Xm/List.h>
24713
24714 int
24715 main ()
24716 {
24717
24718 XmString string = NULL;
24719 Widget w = NULL;
24720 int position = 0;
24721 XmListAddItem(w, string, position);
24722
24723 ;
24724 return 0;
24725 }
24726 _ACEOF
24727 rm -f conftest.$ac_objext conftest$ac_exeext
24728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24729 (eval $ac_link) 2>&5
24730 ac_status=$?
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); } &&
24733 { ac_try='test -s conftest$ac_exeext'
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; }; then
24739
24740 libp_link="$libp"
24741 libsm_ice_link="$libsm_ice"
24742 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24743 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
24744 libs_found=1
24745
24746 else
24747 echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24749
24750
24751
24752 fi
24753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24754
24755 LIBS="$save_LIBS"
24756 CFLAGS=$save_CFLAGS
24757 fi
24758 done
24759 fi
24760 done
24761
24762 if test "$libs_found" = "0"; then
24763 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24764 echo "${ECHO_T}can't find the right libraries" >&6
24765 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24766 echo "$as_me: error: can't link a simple motif program" >&2;}
24767 { (exit 1); exit 1; }; }
24768 fi
24769
24770 save_CFLAGS=$CFLAGS
24771 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24772 echo "$as_me:$LINENO: checking for Motif 2" >&5
24773 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24774 cat >conftest.$ac_ext <<_ACEOF
24775 #line $LINENO "configure"
24776 /* confdefs.h. */
24777 _ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h. */
24781
24782 #include <Xm/Xm.h>
24783
24784 int
24785 main ()
24786 {
24787
24788 #if XmVersion < 2000
24789 #error "Not Motif 2"
24790 #endif
24791
24792 ;
24793 return 0;
24794 }
24795 _ACEOF
24796 rm -f conftest.$ac_objext
24797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24798 (eval $ac_compile) 2>&5
24799 ac_status=$?
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } &&
24802 { ac_try='test -s conftest.$ac_objext'
24803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24804 (eval $ac_try) 2>&5
24805 ac_status=$?
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); }; }; then
24808
24809 cat >>confdefs.h <<\_ACEOF
24810 #define __WXMOTIF20__ 1
24811 _ACEOF
24812
24813 echo "$as_me:$LINENO: result: found" >&5
24814 echo "${ECHO_T}found" >&6
24815
24816 else
24817 echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24819
24820
24821 cat >>confdefs.h <<\_ACEOF
24822 #define __WXMOTIF20__ 0
24823 _ACEOF
24824
24825 echo "$as_me:$LINENO: result: not found" >&5
24826 echo "${ECHO_T}not found" >&6
24827
24828 fi
24829 rm -f conftest.$ac_objext conftest.$ac_ext
24830 CFLAGS=$save_CFLAGS
24831
24832 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
24833 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
24834 TOOLKIT=MOTIF
24835 GUIDIST=MOTIF_DIST
24836 fi
24837
24838 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
24839 if test "$wxUSE_LIBXPM" = "sys"; then
24840 echo "$as_me:$LINENO: checking for Xpm library" >&5
24841 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24842
24843 ac_find_libraries=
24844 for ac_dir in $SEARCH_LIB /usr/lib;
24845 do
24846 for ac_extension in a so sl dylib; do
24847 if test -f "$ac_dir/libXpm.$ac_extension"; then
24848 ac_find_libraries=$ac_dir
24849 break 2
24850 fi
24851 done
24852 done
24853
24854 if test "$ac_find_libraries" != "" ; then
24855
24856 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24857 result=$?
24858 if test $result = 0; then
24859 ac_path_to_link=""
24860 else
24861 ac_path_to_link=" -L$ac_find_libraries"
24862 fi
24863
24864 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
24865 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24866 echo "${ECHO_T}found at $ac_find_libraries" >&6
24867
24868 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
24869 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
24870 if test "${wx_cv_x11_xpm_h+set}" = set; then
24871 echo $ECHO_N "(cached) $ECHO_C" >&6
24872 else
24873
24874 save_CFLAGS=$CFLAGS
24875 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24876
24877 cat >conftest.$ac_ext <<_ACEOF
24878 #line $LINENO "configure"
24879 /* confdefs.h. */
24880 _ACEOF
24881 cat confdefs.h >>conftest.$ac_ext
24882 cat >>conftest.$ac_ext <<_ACEOF
24883 /* end confdefs.h. */
24884
24885 #include <X11/xpm.h>
24886
24887 int
24888 main ()
24889 {
24890
24891 int version;
24892 version = XpmLibraryVersion();
24893
24894 ;
24895 return 0;
24896 }
24897 _ACEOF
24898 rm -f conftest.$ac_objext
24899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24900 (eval $ac_compile) 2>&5
24901 ac_status=$?
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); } &&
24904 { ac_try='test -s conftest.$ac_objext'
24905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24906 (eval $ac_try) 2>&5
24907 ac_status=$?
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); }; }; then
24910 wx_cv_x11_xpm_h=yes
24911 else
24912 echo "$as_me: failed program was:" >&5
24913 sed 's/^/| /' conftest.$ac_ext >&5
24914
24915 wx_cv_x11_xpm_h=no
24916
24917 fi
24918 rm -f conftest.$ac_objext conftest.$ac_ext
24919
24920 CFLAGS=$save_CFLAGS
24921
24922
24923 fi
24924 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
24925 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
24926
24927 if test $wx_cv_x11_xpm_h = "yes"; then
24928 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
24929 cat >>confdefs.h <<\_ACEOF
24930 #define wxHAVE_LIB_XPM 1
24931 _ACEOF
24932
24933 else
24934 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
24935 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
24936 fi
24937 fi
24938
24939 fi
24940
24941 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
24942 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
24943 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
24944 echo $ECHO_N "(cached) $ECHO_C" >&6
24945 else
24946 ac_check_lib_save_LIBS=$LIBS
24947 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
24948 cat >conftest.$ac_ext <<_ACEOF
24949 #line $LINENO "configure"
24950 /* confdefs.h. */
24951 _ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h. */
24955
24956 /* Override any gcc2 internal prototype to avoid an error. */
24957 #ifdef __cplusplus
24958 extern "C"
24959 #endif
24960 /* We use char because int might match the return type of a gcc2
24961 builtin and then its argument prototype would still apply. */
24962 char XShapeQueryExtension ();
24963 int
24964 main ()
24965 {
24966 XShapeQueryExtension ();
24967 ;
24968 return 0;
24969 }
24970 _ACEOF
24971 rm -f conftest.$ac_objext conftest$ac_exeext
24972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24973 (eval $ac_link) 2>&5
24974 ac_status=$?
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } &&
24977 { ac_try='test -s conftest$ac_exeext'
24978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24979 (eval $ac_try) 2>&5
24980 ac_status=$?
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); }; }; then
24983 ac_cv_lib_Xext_XShapeQueryExtension=yes
24984 else
24985 echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24987
24988 ac_cv_lib_Xext_XShapeQueryExtension=no
24989 fi
24990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24991 LIBS=$ac_check_lib_save_LIBS
24992 fi
24993 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
24994 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
24995 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
24996
24997 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
24998 wxHAVE_XEXT_LIB=1
24999
25000 fi
25001
25002
25003 if test "$wxHAVE_XEXT_LIB" = 1; then
25004 save_CFLAGS="$CFLAGS"
25005 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25006
25007 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
25008 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
25009 cat >conftest.$ac_ext <<_ACEOF
25010 #line $LINENO "configure"
25011 /* confdefs.h. */
25012 _ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25016
25017 #include <X11/Xlib.h>
25018 #include <X11/extensions/shape.h>
25019
25020 int
25021 main ()
25022 {
25023
25024 int dummy1, dummy2;
25025 XShapeQueryExtension((Display*)NULL,
25026 (int*)NULL, (int*)NULL);
25027
25028 ;
25029 return 0;
25030 }
25031 _ACEOF
25032 rm -f conftest.$ac_objext
25033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25034 (eval $ac_compile) 2>&5
25035 ac_status=$?
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } &&
25038 { ac_try='test -s conftest.$ac_objext'
25039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; }; then
25044
25045 cat >>confdefs.h <<\_ACEOF
25046 #define HAVE_XSHAPE 1
25047 _ACEOF
25048
25049 echo "$as_me:$LINENO: result: found" >&5
25050 echo "${ECHO_T}found" >&6
25051
25052 else
25053 echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25055
25056
25057 echo "$as_me:$LINENO: result: not found" >&5
25058 echo "${ECHO_T}not found" >&6
25059
25060 fi
25061 rm -f conftest.$ac_objext conftest.$ac_ext
25062 CFLAGS="$save_CFLAGS"
25063
25064 fi
25065 fi
25066
25067 if test "$wxUSE_MAC" = 1; then
25068 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
25069 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
25070 if test "$GCC" = yes; then
25071 echo "$as_me:$LINENO: result: gcc" >&5
25072 echo "${ECHO_T}gcc" >&6
25073 CPPFLAGS_PASCAL="-fpascal-strings"
25074 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
25075 echo "$as_me:$LINENO: result: xlc" >&5
25076 echo "${ECHO_T}xlc" >&6
25077 CPPFLAGS_PASCAL="-qmacpstr"
25078 else
25079 echo "$as_me:$LINENO: result: none" >&5
25080 echo "${ECHO_T}none" >&6
25081 fi
25082
25083 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
25084
25085 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
25086 TOOLKIT=MAC
25087 GUIDIST=MACX_DIST
25088 WXBASEPORT="_carbon"
25089 fi
25090
25091 if test "$wxUSE_COCOA" = 1; then
25092 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
25093 TOOLKIT=COCOA
25094 GUIDIST=COCOA_DIST
25095 fi
25096
25097 if test "$wxUSE_PM" = 1; then
25098 TOOLKIT=PM
25099 GUIDIST=GTK_DIST
25100 fi
25101
25102 if test "$TOOLKIT" = "PM" ; then
25103 TOOLKIT_DIR="os2"
25104 else
25105 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
25106 fi
25107
25108 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
25109
25110 if test "$wxUSE_UNIVERSAL" = "yes"; then
25111 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
25112
25113 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
25114 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
25115
25116 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
25117 if test "$wxUSE_X11" = 1; then
25118 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
25119 else
25120 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
25121 fi
25122 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
25123 WIDGET_SET=univ
25124 else
25125 ALL_OBJECTS="\$(GUIOBJS)"
25126 ALL_SOURCES="\$(ALL_SOURCES)"
25127 ALL_HEADERS="\$(ALL_HEADERS)"
25128 fi
25129
25130 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
25131
25132 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
25133 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
25134 fi
25135
25136 if test "$wxUSE_HTML" = "yes"; then
25137 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
25138 fi
25139
25140 if test "$wxUSE_LIBJPEG" = "builtin" ; then
25141 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
25142 fi
25143 if test "$wxUSE_LIBTIFF" = "builtin" ; then
25144 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
25145 fi
25146 if test "$wxUSE_LIBPNG" = "builtin" ; then
25147 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
25148 fi
25149
25150 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
25151 DISTDIR="wx\$(TOOLKIT)"
25152 else
25153 USE_GUI=0
25154
25155 TOOLKIT_DIR="base"
25156
25157 if test "$USE_WIN32" = 1 ; then
25158 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
25159 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
25160
25161 TOOLKIT="MSW"
25162 else
25163 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
25164 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
25165 fi
25166
25167 ALL_SOURCES="\$(ALL_SOURCES)"
25168 ALL_HEADERS="\$(ALL_HEADERS)"
25169
25170 PORT_FILES="\${top_srcdir}/src/files.lst"
25171
25172 GUIDIST="BASE_DIST"
25173 DISTDIR="wxBase"
25174 fi
25175
25176
25177
25178
25179 IODBC_C_SRC=""
25180
25181
25182 if test "$TOOLKIT" != "MSW" ; then
25183
25184 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
25185
25186 if test "${ac_cv_header_sql_h+set}" = set; then
25187 echo "$as_me:$LINENO: checking for sql.h" >&5
25188 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25189 if test "${ac_cv_header_sql_h+set}" = set; then
25190 echo $ECHO_N "(cached) $ECHO_C" >&6
25191 fi
25192 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25193 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25194 else
25195 # Is the header compilable?
25196 echo "$as_me:$LINENO: checking sql.h usability" >&5
25197 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
25198 cat >conftest.$ac_ext <<_ACEOF
25199 #line $LINENO "configure"
25200 /* confdefs.h. */
25201 _ACEOF
25202 cat confdefs.h >>conftest.$ac_ext
25203 cat >>conftest.$ac_ext <<_ACEOF
25204 /* end confdefs.h. */
25205 $ac_includes_default
25206 #include <sql.h>
25207 _ACEOF
25208 rm -f conftest.$ac_objext
25209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25210 (eval $ac_compile) 2>&5
25211 ac_status=$?
25212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); } &&
25214 { ac_try='test -s conftest.$ac_objext'
25215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216 (eval $ac_try) 2>&5
25217 ac_status=$?
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); }; }; then
25220 ac_header_compiler=yes
25221 else
25222 echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25224
25225 ac_header_compiler=no
25226 fi
25227 rm -f conftest.$ac_objext conftest.$ac_ext
25228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25229 echo "${ECHO_T}$ac_header_compiler" >&6
25230
25231 # Is the header present?
25232 echo "$as_me:$LINENO: checking sql.h presence" >&5
25233 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
25234 cat >conftest.$ac_ext <<_ACEOF
25235 #line $LINENO "configure"
25236 /* confdefs.h. */
25237 _ACEOF
25238 cat confdefs.h >>conftest.$ac_ext
25239 cat >>conftest.$ac_ext <<_ACEOF
25240 /* end confdefs.h. */
25241 #include <sql.h>
25242 _ACEOF
25243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25245 ac_status=$?
25246 grep -v '^ *+' conftest.er1 >conftest.err
25247 rm -f conftest.er1
25248 cat conftest.err >&5
25249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250 (exit $ac_status); } >/dev/null; then
25251 if test -s conftest.err; then
25252 ac_cpp_err=$ac_c_preproc_warn_flag
25253 else
25254 ac_cpp_err=
25255 fi
25256 else
25257 ac_cpp_err=yes
25258 fi
25259 if test -z "$ac_cpp_err"; then
25260 ac_header_preproc=yes
25261 else
25262 echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25264
25265 ac_header_preproc=no
25266 fi
25267 rm -f conftest.err conftest.$ac_ext
25268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25269 echo "${ECHO_T}$ac_header_preproc" >&6
25270
25271 # So? What about this header?
25272 case $ac_header_compiler:$ac_header_preproc in
25273 yes:no )
25274 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
25275 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25276 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25277 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
25278 (
25279 cat <<\_ASBOX
25280 ## ------------------------------------ ##
25281 ## Report this to bug-autoconf@gnu.org. ##
25282 ## ------------------------------------ ##
25283 _ASBOX
25284 ) |
25285 sed "s/^/$as_me: WARNING: /" >&2
25286 ;;
25287 no:yes )
25288 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
25289 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
25290 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
25291 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
25292 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25293 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
25294 (
25295 cat <<\_ASBOX
25296 ## ------------------------------------ ##
25297 ## Report this to bug-autoconf@gnu.org. ##
25298 ## ------------------------------------ ##
25299 _ASBOX
25300 ) |
25301 sed "s/^/$as_me: WARNING: /" >&2
25302 ;;
25303 esac
25304 echo "$as_me:$LINENO: checking for sql.h" >&5
25305 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25306 if test "${ac_cv_header_sql_h+set}" = set; then
25307 echo $ECHO_N "(cached) $ECHO_C" >&6
25308 else
25309 ac_cv_header_sql_h=$ac_header_preproc
25310 fi
25311 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25312 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25313
25314 fi
25315 if test $ac_cv_header_sql_h = yes; then
25316 found_sql_h=1
25317 fi
25318
25319
25320 if test "x$found_sql_h" = "x1" ; then
25321 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
25322 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
25323 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
25324 echo $ECHO_N "(cached) $ECHO_C" >&6
25325 else
25326 ac_check_lib_save_LIBS=$LIBS
25327 LIBS="-liodbc $LIBS"
25328 cat >conftest.$ac_ext <<_ACEOF
25329 #line $LINENO "configure"
25330 /* confdefs.h. */
25331 _ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h. */
25335
25336 /* Override any gcc2 internal prototype to avoid an error. */
25337 #ifdef __cplusplus
25338 extern "C"
25339 #endif
25340 /* We use char because int might match the return type of a gcc2
25341 builtin and then its argument prototype would still apply. */
25342 char SQLAllocEnv ();
25343 int
25344 main ()
25345 {
25346 SQLAllocEnv ();
25347 ;
25348 return 0;
25349 }
25350 _ACEOF
25351 rm -f conftest.$ac_objext conftest$ac_exeext
25352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25353 (eval $ac_link) 2>&5
25354 ac_status=$?
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); } &&
25357 { ac_try='test -s conftest$ac_exeext'
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
25363 ac_cv_lib_iodbc_SQLAllocEnv=yes
25364 else
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25367
25368 ac_cv_lib_iodbc_SQLAllocEnv=no
25369 fi
25370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25371 LIBS=$ac_check_lib_save_LIBS
25372 fi
25373 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
25374 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
25375 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
25376 ODBC_LINK=" -liodbc"
25377 else
25378
25379 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
25380 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
25381 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25383 else
25384 ac_check_lib_save_LIBS=$LIBS
25385 LIBS="-lunixodbc $LIBS"
25386 cat >conftest.$ac_ext <<_ACEOF
25387 #line $LINENO "configure"
25388 /* confdefs.h. */
25389 _ACEOF
25390 cat confdefs.h >>conftest.$ac_ext
25391 cat >>conftest.$ac_ext <<_ACEOF
25392 /* end confdefs.h. */
25393
25394 /* Override any gcc2 internal prototype to avoid an error. */
25395 #ifdef __cplusplus
25396 extern "C"
25397 #endif
25398 /* We use char because int might match the return type of a gcc2
25399 builtin and then its argument prototype would still apply. */
25400 char SQLAllocEnv ();
25401 int
25402 main ()
25403 {
25404 SQLAllocEnv ();
25405 ;
25406 return 0;
25407 }
25408 _ACEOF
25409 rm -f conftest.$ac_objext conftest$ac_exeext
25410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25411 (eval $ac_link) 2>&5
25412 ac_status=$?
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); } &&
25415 { ac_try='test -s conftest$ac_exeext'
25416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25417 (eval $ac_try) 2>&5
25418 ac_status=$?
25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); }; }; then
25421 ac_cv_lib_unixodbc_SQLAllocEnv=yes
25422 else
25423 echo "$as_me: failed program was:" >&5
25424 sed 's/^/| /' conftest.$ac_ext >&5
25425
25426 ac_cv_lib_unixodbc_SQLAllocEnv=no
25427 fi
25428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25429 LIBS=$ac_check_lib_save_LIBS
25430 fi
25431 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
25432 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
25433 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
25434 ODBC_LINK=" -lunixodbc"
25435 else
25436
25437 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
25438 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
25439 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
25440 echo $ECHO_N "(cached) $ECHO_C" >&6
25441 else
25442 ac_check_lib_save_LIBS=$LIBS
25443 LIBS="-lodbc $LIBS"
25444 cat >conftest.$ac_ext <<_ACEOF
25445 #line $LINENO "configure"
25446 /* confdefs.h. */
25447 _ACEOF
25448 cat confdefs.h >>conftest.$ac_ext
25449 cat >>conftest.$ac_ext <<_ACEOF
25450 /* end confdefs.h. */
25451
25452 /* Override any gcc2 internal prototype to avoid an error. */
25453 #ifdef __cplusplus
25454 extern "C"
25455 #endif
25456 /* We use char because int might match the return type of a gcc2
25457 builtin and then its argument prototype would still apply. */
25458 char SQLAllocEnv ();
25459 int
25460 main ()
25461 {
25462 SQLAllocEnv ();
25463 ;
25464 return 0;
25465 }
25466 _ACEOF
25467 rm -f conftest.$ac_objext conftest$ac_exeext
25468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25469 (eval $ac_link) 2>&5
25470 ac_status=$?
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); } &&
25473 { ac_try='test -s conftest$ac_exeext'
25474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475 (eval $ac_try) 2>&5
25476 ac_status=$?
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); }; }; then
25479 ac_cv_lib_odbc_SQLAllocEnv=yes
25480 else
25481 echo "$as_me: failed program was:" >&5
25482 sed 's/^/| /' conftest.$ac_ext >&5
25483
25484 ac_cv_lib_odbc_SQLAllocEnv=no
25485 fi
25486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25487 LIBS=$ac_check_lib_save_LIBS
25488 fi
25489 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
25490 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
25491 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
25492 ODBC_LINK=" -lodbc"
25493 fi
25494
25495
25496 fi
25497
25498
25499 fi
25500
25501 fi
25502 if test "x$ODBC_LINK" = "x" ; then
25503 if test "$wxUSE_ODBC" = "sys" ; then
25504 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
25505 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
25506 { (exit 1); exit 1; }; }
25507 else
25508 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
25509 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
25510 wxUSE_ODBC=builtin
25511 fi
25512 else
25513 wxUSE_ODBC=sys
25514 fi
25515 fi
25516 if test "$wxUSE_ODBC" != "no" ; then
25517 cat >>confdefs.h <<\_ACEOF
25518 #define wxUSE_ODBC 1
25519 _ACEOF
25520
25521 if test "$wxUSE_ODBC" = "builtin" ; then
25522 cat >>confdefs.h <<\_ACEOF
25523 #define wxUSE_BUILTIN_IODBC 1
25524 _ACEOF
25525
25526 fi
25527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
25528
25529 WXODBCFLAG="-D_IODBC_"
25530 fi
25531 fi
25532
25533 if test "$wxUSE_REGEX" = "builtin" ; then
25534 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
25535 fi
25536 if test "$wxUSE_ZLIB" = "builtin" ; then
25537 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
25538 fi
25539
25540 if test "$wxUSE_DISPLAY" = "yes"; then
25541 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
25542 echo "$as_me:$LINENO: checking for Xinerama" >&5
25543 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
25544
25545 ac_find_libraries=
25546 for ac_dir in $SEARCH_LIB /usr/lib;
25547 do
25548 for ac_extension in a so sl dylib; do
25549 if test -f "$ac_dir/libXinerama.$ac_extension"; then
25550 ac_find_libraries=$ac_dir
25551 break 2
25552 fi
25553 done
25554 done
25555
25556 if test "$ac_find_libraries" != "" ; then
25557
25558 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25559 result=$?
25560 if test $result = 0; then
25561 ac_path_to_link=""
25562 else
25563 ac_path_to_link=" -L$ac_find_libraries"
25564 fi
25565
25566 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25567 LDFLAGS="$LDFLAGS $ac_path_to_link"
25568 fi
25569 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
25570 echo "$as_me:$LINENO: result: yes" >&5
25571 echo "${ECHO_T}yes" >&6
25572
25573 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
25574 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
25575
25576 ac_find_libraries=
25577 for ac_dir in $SEARCH_LIB /usr/lib;
25578 do
25579 for ac_extension in a so sl dylib; do
25580 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
25581 ac_find_libraries=$ac_dir
25582 break 2
25583 fi
25584 done
25585 done
25586
25587 if test "$ac_find_libraries" != "" ; then
25588 echo "$as_me:$LINENO: result: yes" >&5
25589 echo "${ECHO_T}yes" >&6
25590
25591 for ac_header in X11/extensions/xf86vmode.h
25592 do
25593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25594 echo "$as_me:$LINENO: checking for $ac_header" >&5
25595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25597 echo $ECHO_N "(cached) $ECHO_C" >&6
25598 else
25599 cat >conftest.$ac_ext <<_ACEOF
25600 #line $LINENO "configure"
25601 /* confdefs.h. */
25602 _ACEOF
25603 cat confdefs.h >>conftest.$ac_ext
25604 cat >>conftest.$ac_ext <<_ACEOF
25605 /* end confdefs.h. */
25606
25607 #if HAVE_X11_XLIB_H
25608 #include <X11/Xlib.h>
25609 #endif
25610
25611
25612 #include <$ac_header>
25613 _ACEOF
25614 rm -f conftest.$ac_objext
25615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25616 (eval $ac_compile) 2>&5
25617 ac_status=$?
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); } &&
25620 { ac_try='test -s conftest.$ac_objext'
25621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622 (eval $ac_try) 2>&5
25623 ac_status=$?
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); }; }; then
25626 eval "$as_ac_Header=yes"
25627 else
25628 echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25630
25631 eval "$as_ac_Header=no"
25632 fi
25633 rm -f conftest.$ac_objext conftest.$ac_ext
25634 fi
25635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25638 cat >>confdefs.h <<_ACEOF
25639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25640 _ACEOF
25641
25642 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
25643
25644 fi
25645
25646 done
25647
25648 else
25649 echo "$as_me:$LINENO: result: no" >&5
25650 echo "${ECHO_T}no" >&6
25651 fi
25652
25653 else
25654 echo "$as_me:$LINENO: result: no" >&5
25655 echo "${ECHO_T}no" >&6
25656 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
25657 echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
25658 wxUSE_DISPLAY="no"
25659 fi
25660 fi
25661 fi
25662
25663
25664 USE_OPENGL=0
25665 if test "$wxUSE_OPENGL" = "yes"; then
25666 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
25667 OPENGL_LIBS="-framework OpenGL -framework AGL"
25668 elif test "$wxUSE_MSW" = 1; then
25669 OPENGL_LIBS="-lopengl32 -lglu32"
25670 else
25671
25672
25673 ac_find_includes=
25674 for ac_dir in $SEARCH_INCLUDE /usr/include;
25675 do
25676 if test -f "$ac_dir/GL/gl.h"; then
25677 ac_find_includes=$ac_dir
25678 break
25679 fi
25680 done
25681
25682 if test "$ac_find_includes" != "" ; then
25683 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25684 echo "${ECHO_T}found in $ac_find_includes" >&6
25685
25686 if test "x$ac_find_includes" = "x/usr/include"; then
25687 ac_path_to_include=""
25688 else
25689 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
25690 result=$?
25691 if test $result = 0; then
25692 ac_path_to_include=""
25693 else
25694 ac_path_to_include=" -I$ac_find_includes"
25695 fi
25696 fi
25697
25698 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
25699 fi
25700
25701 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25702 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25703 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25704 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25705 echo $ECHO_N "(cached) $ECHO_C" >&6
25706 fi
25707 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25708 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25709 else
25710 # Is the header compilable?
25711 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
25712 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
25713 cat >conftest.$ac_ext <<_ACEOF
25714 #line $LINENO "configure"
25715 /* confdefs.h. */
25716 _ACEOF
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h. */
25720 $ac_includes_default
25721 #include <GL/gl.h>
25722 _ACEOF
25723 rm -f conftest.$ac_objext
25724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25725 (eval $ac_compile) 2>&5
25726 ac_status=$?
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); } &&
25729 { ac_try='test -s conftest.$ac_objext'
25730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25731 (eval $ac_try) 2>&5
25732 ac_status=$?
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); }; }; then
25735 ac_header_compiler=yes
25736 else
25737 echo "$as_me: failed program was:" >&5
25738 sed 's/^/| /' conftest.$ac_ext >&5
25739
25740 ac_header_compiler=no
25741 fi
25742 rm -f conftest.$ac_objext conftest.$ac_ext
25743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25744 echo "${ECHO_T}$ac_header_compiler" >&6
25745
25746 # Is the header present?
25747 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
25748 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
25749 cat >conftest.$ac_ext <<_ACEOF
25750 #line $LINENO "configure"
25751 /* confdefs.h. */
25752 _ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h. */
25756 #include <GL/gl.h>
25757 _ACEOF
25758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25760 ac_status=$?
25761 grep -v '^ *+' conftest.er1 >conftest.err
25762 rm -f conftest.er1
25763 cat conftest.err >&5
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); } >/dev/null; then
25766 if test -s conftest.err; then
25767 ac_cpp_err=$ac_c_preproc_warn_flag
25768 else
25769 ac_cpp_err=
25770 fi
25771 else
25772 ac_cpp_err=yes
25773 fi
25774 if test -z "$ac_cpp_err"; then
25775 ac_header_preproc=yes
25776 else
25777 echo "$as_me: failed program was:" >&5
25778 sed 's/^/| /' conftest.$ac_ext >&5
25779
25780 ac_header_preproc=no
25781 fi
25782 rm -f conftest.err conftest.$ac_ext
25783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25784 echo "${ECHO_T}$ac_header_preproc" >&6
25785
25786 # So? What about this header?
25787 case $ac_header_compiler:$ac_header_preproc in
25788 yes:no )
25789 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25790 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25791 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25792 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25793 (
25794 cat <<\_ASBOX
25795 ## ------------------------------------ ##
25796 ## Report this to bug-autoconf@gnu.org. ##
25797 ## ------------------------------------ ##
25798 _ASBOX
25799 ) |
25800 sed "s/^/$as_me: WARNING: /" >&2
25801 ;;
25802 no:yes )
25803 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
25804 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
25805 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
25806 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
25807 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25808 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25809 (
25810 cat <<\_ASBOX
25811 ## ------------------------------------ ##
25812 ## Report this to bug-autoconf@gnu.org. ##
25813 ## ------------------------------------ ##
25814 _ASBOX
25815 ) |
25816 sed "s/^/$as_me: WARNING: /" >&2
25817 ;;
25818 esac
25819 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25820 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25821 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25822 echo $ECHO_N "(cached) $ECHO_C" >&6
25823 else
25824 ac_cv_header_GL_gl_h=$ac_header_preproc
25825 fi
25826 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25827 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25828
25829 fi
25830 if test $ac_cv_header_GL_gl_h = yes; then
25831
25832 found_gl=0
25833
25834 echo "$as_me:$LINENO: checking for -lGL" >&5
25835 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25836
25837 ac_find_libraries=
25838 for ac_dir in $SEARCH_LIB /usr/lib;
25839 do
25840 for ac_extension in a so sl dylib; do
25841 if test -f "$ac_dir/libGL.$ac_extension"; then
25842 ac_find_libraries=$ac_dir
25843 break 2
25844 fi
25845 done
25846 done
25847
25848 if test "$ac_find_libraries" != "" ; then
25849
25850 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25851 result=$?
25852 if test $result = 0; then
25853 ac_path_to_link=""
25854 else
25855 ac_path_to_link=" -L$ac_find_libraries"
25856 fi
25857
25858 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25859 LDFLAGS_GL="$ac_path_to_link"
25860 fi
25861
25862
25863 ac_find_libraries=
25864 for ac_dir in $SEARCH_LIB /usr/lib;
25865 do
25866 for ac_extension in a so sl dylib; do
25867 if test -f "$ac_dir/libGLU.$ac_extension"; then
25868 ac_find_libraries=$ac_dir
25869 break 2
25870 fi
25871 done
25872 done
25873
25874 if test "$ac_find_libraries" != "" ; then
25875
25876 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25877 result=$?
25878 if test $result = 0; then
25879 ac_path_to_link=""
25880 else
25881 ac_path_to_link=" -L$ac_find_libraries"
25882 fi
25883
25884 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25885 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25886 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25887 fi
25888
25889 found_gl=1
25890 OPENGL_LIBS="-lGL -lGLU"
25891 echo "$as_me:$LINENO: result: yes" >&5
25892 echo "${ECHO_T}yes" >&6
25893 fi
25894 fi
25895
25896 if test "$found_gl" != 1; then
25897 echo "$as_me:$LINENO: result: no" >&5
25898 echo "${ECHO_T}no" >&6
25899 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25900 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25901
25902 ac_find_libraries=
25903 for ac_dir in $SEARCH_LIB /usr/lib;
25904 do
25905 for ac_extension in a so sl dylib; do
25906 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25907 ac_find_libraries=$ac_dir
25908 break 2
25909 fi
25910 done
25911 done
25912
25913 if test "$ac_find_libraries" != "" ; then
25914
25915 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25916 result=$?
25917 if test $result = 0; then
25918 ac_path_to_link=""
25919 else
25920 ac_path_to_link=" -L$ac_find_libraries"
25921 fi
25922
25923 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25924 OPENGL_LIBS="-lMesaGL -lMesaGLU"
25925 echo "$as_me:$LINENO: result: yes" >&5
25926 echo "${ECHO_T}yes" >&6
25927 else
25928 echo "$as_me:$LINENO: result: no" >&5
25929 echo "${ECHO_T}no" >&6
25930 fi
25931 fi
25932
25933 fi
25934
25935
25936
25937 if test "x$OPENGL_LIBS" = "x"; then
25938 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25939 echo "$as_me: error: OpenGL libraries not available" >&2;}
25940 { (exit 1); exit 1; }; }
25941 fi
25942 fi
25943
25944 if test "$wxUSE_OPENGL" = "yes"; then
25945 USE_OPENGL=1
25946 cat >>confdefs.h <<\_ACEOF
25947 #define wxUSE_OPENGL 1
25948 _ACEOF
25949
25950 cat >>confdefs.h <<\_ACEOF
25951 #define wxUSE_GLCANVAS 1
25952 _ACEOF
25953
25954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
25955 fi
25956 fi
25957
25958 if test -z "$TOOLKIT_VPATH" ; then
25959 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
25960 fi
25961
25962 if test -n "$TOOLKIT" ; then
25963 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25964 fi
25965
25966 UNICODE=0
25967 lib_unicode_suffix=
25968 if test "$wxUSE_UNICODE" = "yes"; then
25969 lib_unicode_suffix=u
25970 UNICODE=1
25971 fi
25972
25973 lib_debug_suffix=
25974 DEBUG_FLAG=0
25975 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25976 lib_debug_suffix=d
25977 DEBUG_FLAG=1
25978 fi
25979
25980 DEBUG_INFO=0
25981 if test "$wxUSE_DEBUG_INFO" = "yes"; then
25982 DEBUG_INFO=1
25983 fi
25984
25985 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
25986
25987 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25988 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
25989
25990 if test "$cross_compiling" = "yes"; then
25991 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25992 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
25993 HOST_SUFFIX="-${host_alias}"
25994 fi
25995
25996 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25997 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
25998 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25999 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
26000
26001 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26002 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26003
26004 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
26005 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26006 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
26007 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26008
26009 case "${host}" in
26010 *-*-cygwin* | *-*-mingw32* )
26011 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
26012 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26013 ;;
26014
26015 *-*-darwin* )
26016
26017 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26018 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26019
26020 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
26021 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26022 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
26023 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26024
26025 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
26026 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
26027 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
26028 fi
26029 ;;
26030 esac
26031
26032 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
26033 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
26034
26035 WXCONFIG_LIBS="-l${WX_LIBRARY}"
26036 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
26037
26038 if test "$wxUSE_OPENGL" = "yes"; then
26039 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
26040 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
26041 fi
26042
26043
26044
26045 if test "$wxUSE_SHARED" = "yes"; then
26046 case "${host}" in
26047 *-pc-os2_emx | *-pc-os2-emx | \
26048 *-pc-msdosdjgpp )
26049 wxUSE_SHARED=no
26050 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
26051 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
26052 ;;
26053 esac
26054 fi
26055
26056 SHARED=0
26057 if test "$wxUSE_SHARED" = "yes"; then
26058 SHARED=1
26059
26060
26061 found_versioning=no
26062
26063
26064 if test $found_versioning = no ; then
26065 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
26066 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
26067 if test "${wx_cv_version_script+set}" = set; then
26068 echo $ECHO_N "(cached) $ECHO_C" >&6
26069 else
26070
26071 echo "VER_1 { *; };" >conftest.sym
26072 echo "int main() { return 0; }" >conftest.cpp
26073
26074 if { ac_try='
26075 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
26076 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
26077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26078 (eval $ac_try) 2>&5
26079 ac_status=$?
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); }; } ; then
26082 if test -s conftest.stderr ; then
26083 wx_cv_version_script=no
26084 else
26085 wx_cv_version_script=yes
26086 fi
26087 else
26088 wx_cv_version_script=no
26089 fi
26090 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
26091
26092 fi
26093 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
26094 echo "${ECHO_T}$wx_cv_version_script" >&6
26095 if test $wx_cv_version_script = yes ; then
26096 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
26097 fi
26098 fi
26099
26100
26101 case "${host}" in
26102 *-*-linux* | *-*-gnu* )
26103 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
26104 ;;
26105
26106 *-*-solaris2* )
26107 if test "$GCC" = yes ; then
26108 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
26109
26110 saveLdflags="$LDFLAGS"
26111 LDFLAGS="$saveLdflags -Wl,-rpath,/"
26112 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
26113 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
26114 cat >conftest.$ac_ext <<_ACEOF
26115 #line $LINENO "configure"
26116 /* confdefs.h. */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h. */
26121
26122 int
26123 main ()
26124 {
26125
26126 ;
26127 return 0;
26128 }
26129 _ACEOF
26130 rm -f conftest.$ac_objext conftest$ac_exeext
26131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26132 (eval $ac_link) 2>&5
26133 ac_status=$?
26134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); } &&
26136 { ac_try='test -s conftest$ac_exeext'
26137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26138 (eval $ac_try) 2>&5
26139 ac_status=$?
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); }; }; then
26142
26143 echo "$as_me:$LINENO: result: yes" >&5
26144 echo "${ECHO_T}yes" >&6
26145 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
26146
26147 else
26148 echo "$as_me: failed program was:" >&5
26149 sed 's/^/| /' conftest.$ac_ext >&5
26150
26151
26152 echo "$as_me:$LINENO: result: no" >&5
26153 echo "${ECHO_T}no" >&6
26154 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
26155 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
26156 LDFLAGS="$saveLdflags -Wl,-R,/"
26157 cat >conftest.$ac_ext <<_ACEOF
26158 #line $LINENO "configure"
26159 /* confdefs.h. */
26160 _ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h. */
26164
26165 int
26166 main ()
26167 {
26168
26169 ;
26170 return 0;
26171 }
26172 _ACEOF
26173 rm -f conftest.$ac_objext conftest$ac_exeext
26174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26175 (eval $ac_link) 2>&5
26176 ac_status=$?
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } &&
26179 { ac_try='test -s conftest$ac_exeext'
26180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181 (eval $ac_try) 2>&5
26182 ac_status=$?
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; }; then
26185
26186 echo "$as_me:$LINENO: result: yes" >&5
26187 echo "${ECHO_T}yes" >&6
26188 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
26189 else
26190 echo "$as_me: failed program was:" >&5
26191 sed 's/^/| /' conftest.$ac_ext >&5
26192
26193
26194 echo "$as_me:$LINENO: result: no" >&5
26195 echo "${ECHO_T}no" >&6
26196
26197 fi
26198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26199
26200 fi
26201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26202 LDFLAGS="$saveLdflags"
26203 else
26204 SHARED_LD="${CXX} -G -o"
26205 PIC_FLAG="-KPIC"
26206 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
26207 fi
26208 ;;
26209
26210 powerpc-*-darwin* )
26211 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
26212 cat <<EOF >change-install-names
26213 #!/bin/sh
26214 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
26215 inst_cmd="install_name_tool "
26216 for i in \${libnames} ; do
26217 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
26218 done
26219 \${inst_cmd} \${3}
26220 EOF
26221 chmod +x change-install-names
26222 ;;
26223
26224 esac
26225
26226 if test "x$WX_TARGET_LIBRARY" = "x"; then
26227 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
26228 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
26229 fi
26230
26231 WX_TARGET_LIBRARY_TYPE="so"
26232 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
26233 fi
26234
26235 if test "$wxUSE_SHARED" = "no"; then
26236
26237 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
26238 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
26239 fi
26240
26241 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
26242 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
26243 fi
26244
26245 if test "$wxUSE_OPENGL" = "yes"; then
26246 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
26247 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
26248 else
26249 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
26250 fi
26251
26252 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
26253 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
26254
26255 WX_TARGET_LIBRARY_TYPE="a"
26256 INSTALL_LIBRARY='$(INSTALL_DATA)'
26257
26258 STATIC_FLAG="yes"
26259 else
26260 STATIC_FLAG="no"
26261 fi
26262
26263 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
26264 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
26265 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
26266 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
26267
26268 # Extract the first word of "Rez", so it can be a program name with args.
26269 set dummy Rez; ac_word=$2
26270 echo "$as_me:$LINENO: checking for $ac_word" >&5
26271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26272 if test "${ac_cv_prog_RESCOMP+set}" = set; then
26273 echo $ECHO_N "(cached) $ECHO_C" >&6
26274 else
26275 if test -n "$RESCOMP"; then
26276 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
26277 else
26278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26279 for as_dir in $PATH
26280 do
26281 IFS=$as_save_IFS
26282 test -z "$as_dir" && as_dir=.
26283 for ac_exec_ext in '' $ac_executable_extensions; do
26284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26285 ac_cv_prog_RESCOMP="Rez"
26286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26287 break 2
26288 fi
26289 done
26290 done
26291
26292 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
26293 fi
26294 fi
26295 RESCOMP=$ac_cv_prog_RESCOMP
26296 if test -n "$RESCOMP"; then
26297 echo "$as_me:$LINENO: result: $RESCOMP" >&5
26298 echo "${ECHO_T}$RESCOMP" >&6
26299 else
26300 echo "$as_me:$LINENO: result: no" >&5
26301 echo "${ECHO_T}no" >&6
26302 fi
26303
26304 # Extract the first word of "DeRez", so it can be a program name with args.
26305 set dummy DeRez; ac_word=$2
26306 echo "$as_me:$LINENO: checking for $ac_word" >&5
26307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26308 if test "${ac_cv_prog_DEREZ+set}" = set; then
26309 echo $ECHO_N "(cached) $ECHO_C" >&6
26310 else
26311 if test -n "$DEREZ"; then
26312 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
26313 else
26314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26315 for as_dir in $PATH
26316 do
26317 IFS=$as_save_IFS
26318 test -z "$as_dir" && as_dir=.
26319 for ac_exec_ext in '' $ac_executable_extensions; do
26320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26321 ac_cv_prog_DEREZ="DeRez"
26322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26323 break 2
26324 fi
26325 done
26326 done
26327
26328 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
26329 fi
26330 fi
26331 DEREZ=$ac_cv_prog_DEREZ
26332 if test -n "$DEREZ"; then
26333 echo "$as_me:$LINENO: result: $DEREZ" >&5
26334 echo "${ECHO_T}$DEREZ" >&6
26335 else
26336 echo "$as_me:$LINENO: result: no" >&5
26337 echo "${ECHO_T}no" >&6
26338 fi
26339
26340 # Extract the first word of "SetFile", so it can be a program name with args.
26341 set dummy SetFile; ac_word=$2
26342 echo "$as_me:$LINENO: checking for $ac_word" >&5
26343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26344 if test "${ac_cv_prog_SETFILE+set}" = set; then
26345 echo $ECHO_N "(cached) $ECHO_C" >&6
26346 else
26347 if test -n "$SETFILE"; then
26348 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
26349 else
26350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26351 for as_dir in $PATH
26352 do
26353 IFS=$as_save_IFS
26354 test -z "$as_dir" && as_dir=.
26355 for ac_exec_ext in '' $ac_executable_extensions; do
26356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26357 ac_cv_prog_SETFILE="SetFile"
26358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26359 break 2
26360 fi
26361 done
26362 done
26363
26364 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
26365 fi
26366 fi
26367 SETFILE=$ac_cv_prog_SETFILE
26368 if test -n "$SETFILE"; then
26369 echo "$as_me:$LINENO: result: $SETFILE" >&5
26370 echo "${ECHO_T}$SETFILE" >&6
26371 else
26372 echo "$as_me:$LINENO: result: no" >&5
26373 echo "${ECHO_T}no" >&6
26374 fi
26375
26376
26377 MACSETFILE="\$(SETFILE)"
26378
26379 if test "$wxUSE_MAC" = 1; then
26380 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
26381
26382 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
26383 else
26384 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
26385 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
26386 fi
26387 else
26388 MACSETFILE="@#"
26389 MACRESWXCONFIG="#"
26390
26391 if test "$wxUSE_PM" = 1; then
26392 MACRESCOMP="emxbind -ep"
26393 else
26394 MACRESCOMP="@#"
26395 fi
26396 fi
26397
26398
26399
26400 echo "$as_me:$LINENO: checking for mode_t" >&5
26401 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
26402 if test "${ac_cv_type_mode_t+set}" = set; then
26403 echo $ECHO_N "(cached) $ECHO_C" >&6
26404 else
26405 cat >conftest.$ac_ext <<_ACEOF
26406 #line $LINENO "configure"
26407 /* confdefs.h. */
26408 _ACEOF
26409 cat confdefs.h >>conftest.$ac_ext
26410 cat >>conftest.$ac_ext <<_ACEOF
26411 /* end confdefs.h. */
26412 $ac_includes_default
26413 int
26414 main ()
26415 {
26416 if ((mode_t *) 0)
26417 return 0;
26418 if (sizeof (mode_t))
26419 return 0;
26420 ;
26421 return 0;
26422 }
26423 _ACEOF
26424 rm -f conftest.$ac_objext
26425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26426 (eval $ac_compile) 2>&5
26427 ac_status=$?
26428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429 (exit $ac_status); } &&
26430 { ac_try='test -s conftest.$ac_objext'
26431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26432 (eval $ac_try) 2>&5
26433 ac_status=$?
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); }; }; then
26436 ac_cv_type_mode_t=yes
26437 else
26438 echo "$as_me: failed program was:" >&5
26439 sed 's/^/| /' conftest.$ac_ext >&5
26440
26441 ac_cv_type_mode_t=no
26442 fi
26443 rm -f conftest.$ac_objext conftest.$ac_ext
26444 fi
26445 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
26446 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
26447 if test $ac_cv_type_mode_t = yes; then
26448 :
26449 else
26450
26451 cat >>confdefs.h <<_ACEOF
26452 #define mode_t int
26453 _ACEOF
26454
26455 fi
26456
26457 echo "$as_me:$LINENO: checking for off_t" >&5
26458 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
26459 if test "${ac_cv_type_off_t+set}" = set; then
26460 echo $ECHO_N "(cached) $ECHO_C" >&6
26461 else
26462 cat >conftest.$ac_ext <<_ACEOF
26463 #line $LINENO "configure"
26464 /* confdefs.h. */
26465 _ACEOF
26466 cat confdefs.h >>conftest.$ac_ext
26467 cat >>conftest.$ac_ext <<_ACEOF
26468 /* end confdefs.h. */
26469 $ac_includes_default
26470 int
26471 main ()
26472 {
26473 if ((off_t *) 0)
26474 return 0;
26475 if (sizeof (off_t))
26476 return 0;
26477 ;
26478 return 0;
26479 }
26480 _ACEOF
26481 rm -f conftest.$ac_objext
26482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26483 (eval $ac_compile) 2>&5
26484 ac_status=$?
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); } &&
26487 { ac_try='test -s conftest.$ac_objext'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 ac_cv_type_off_t=yes
26494 else
26495 echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26497
26498 ac_cv_type_off_t=no
26499 fi
26500 rm -f conftest.$ac_objext conftest.$ac_ext
26501 fi
26502 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26503 echo "${ECHO_T}$ac_cv_type_off_t" >&6
26504 if test $ac_cv_type_off_t = yes; then
26505 :
26506 else
26507
26508 cat >>confdefs.h <<_ACEOF
26509 #define off_t long
26510 _ACEOF
26511
26512 fi
26513
26514 echo "$as_me:$LINENO: checking for pid_t" >&5
26515 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26516 if test "${ac_cv_type_pid_t+set}" = set; then
26517 echo $ECHO_N "(cached) $ECHO_C" >&6
26518 else
26519 cat >conftest.$ac_ext <<_ACEOF
26520 #line $LINENO "configure"
26521 /* confdefs.h. */
26522 _ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h. */
26526 $ac_includes_default
26527 int
26528 main ()
26529 {
26530 if ((pid_t *) 0)
26531 return 0;
26532 if (sizeof (pid_t))
26533 return 0;
26534 ;
26535 return 0;
26536 }
26537 _ACEOF
26538 rm -f conftest.$ac_objext
26539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26540 (eval $ac_compile) 2>&5
26541 ac_status=$?
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); } &&
26544 { ac_try='test -s conftest.$ac_objext'
26545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26546 (eval $ac_try) 2>&5
26547 ac_status=$?
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); }; }; then
26550 ac_cv_type_pid_t=yes
26551 else
26552 echo "$as_me: failed program was:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26554
26555 ac_cv_type_pid_t=no
26556 fi
26557 rm -f conftest.$ac_objext conftest.$ac_ext
26558 fi
26559 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26560 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26561 if test $ac_cv_type_pid_t = yes; then
26562 :
26563 else
26564
26565 cat >>confdefs.h <<_ACEOF
26566 #define pid_t int
26567 _ACEOF
26568
26569 fi
26570
26571 echo "$as_me:$LINENO: checking for size_t" >&5
26572 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26573 if test "${ac_cv_type_size_t+set}" = set; then
26574 echo $ECHO_N "(cached) $ECHO_C" >&6
26575 else
26576 cat >conftest.$ac_ext <<_ACEOF
26577 #line $LINENO "configure"
26578 /* confdefs.h. */
26579 _ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h. */
26583 $ac_includes_default
26584 int
26585 main ()
26586 {
26587 if ((size_t *) 0)
26588 return 0;
26589 if (sizeof (size_t))
26590 return 0;
26591 ;
26592 return 0;
26593 }
26594 _ACEOF
26595 rm -f conftest.$ac_objext
26596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26597 (eval $ac_compile) 2>&5
26598 ac_status=$?
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); } &&
26601 { ac_try='test -s conftest.$ac_objext'
26602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603 (eval $ac_try) 2>&5
26604 ac_status=$?
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); }; }; then
26607 ac_cv_type_size_t=yes
26608 else
26609 echo "$as_me: failed program was:" >&5
26610 sed 's/^/| /' conftest.$ac_ext >&5
26611
26612 ac_cv_type_size_t=no
26613 fi
26614 rm -f conftest.$ac_objext conftest.$ac_ext
26615 fi
26616 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26617 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26618 if test $ac_cv_type_size_t = yes; then
26619 :
26620 else
26621
26622 cat >>confdefs.h <<_ACEOF
26623 #define size_t unsigned
26624 _ACEOF
26625
26626 fi
26627
26628 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26629 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26630 if test "${ac_cv_type_uid_t+set}" = set; then
26631 echo $ECHO_N "(cached) $ECHO_C" >&6
26632 else
26633 cat >conftest.$ac_ext <<_ACEOF
26634 #line $LINENO "configure"
26635 /* confdefs.h. */
26636 _ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h. */
26640 #include <sys/types.h>
26641
26642 _ACEOF
26643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26644 $EGREP "uid_t" >/dev/null 2>&1; then
26645 ac_cv_type_uid_t=yes
26646 else
26647 ac_cv_type_uid_t=no
26648 fi
26649 rm -f conftest*
26650
26651 fi
26652 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26653 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
26654 if test $ac_cv_type_uid_t = no; then
26655
26656 cat >>confdefs.h <<\_ACEOF
26657 #define uid_t int
26658 _ACEOF
26659
26660
26661 cat >>confdefs.h <<\_ACEOF
26662 #define gid_t int
26663 _ACEOF
26664
26665 fi
26666
26667
26668
26669
26670 ac_ext=cc
26671 ac_cpp='$CXXCPP $CPPFLAGS'
26672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26675
26676 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
26677 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
26678 if test "${wx_cv_size_t_is_uint+set}" = set; then
26679 echo $ECHO_N "(cached) $ECHO_C" >&6
26680 else
26681
26682 cat >conftest.$ac_ext <<_ACEOF
26683 #line $LINENO "configure"
26684 /* confdefs.h. */
26685 _ACEOF
26686 cat confdefs.h >>conftest.$ac_ext
26687 cat >>conftest.$ac_ext <<_ACEOF
26688 /* end confdefs.h. */
26689 #include <stddef.h>
26690 int
26691 main ()
26692 {
26693
26694 return 0; }
26695
26696 struct Foo { void foo(size_t); void foo(unsigned int); };
26697
26698 int bar() {
26699
26700 ;
26701 return 0;
26702 }
26703 _ACEOF
26704 rm -f conftest.$ac_objext
26705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26706 (eval $ac_compile) 2>&5
26707 ac_status=$?
26708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709 (exit $ac_status); } &&
26710 { ac_try='test -s conftest.$ac_objext'
26711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26712 (eval $ac_try) 2>&5
26713 ac_status=$?
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); }; }; then
26716 wx_cv_size_t_is_uint=no
26717 else
26718 echo "$as_me: failed program was:" >&5
26719 sed 's/^/| /' conftest.$ac_ext >&5
26720
26721 wx_cv_size_t_is_uint=yes
26722
26723 fi
26724 rm -f conftest.$ac_objext conftest.$ac_ext
26725
26726
26727 fi
26728 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26729 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
26730
26731 if test "$wx_cv_size_t_is_uint" = "yes"; then
26732 cat >>confdefs.h <<\_ACEOF
26733 #define wxSIZE_T_IS_UINT 1
26734 _ACEOF
26735
26736 else
26737 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26738 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26739 if test "${wx_cv_size_t_is_ulong+set}" = set; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
26741 else
26742 cat >conftest.$ac_ext <<_ACEOF
26743 #line $LINENO "configure"
26744 /* confdefs.h. */
26745 _ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h. */
26749 #include <stddef.h>
26750 int
26751 main ()
26752 {
26753
26754 return 0; }
26755
26756 struct Foo { void foo(size_t); void foo(unsigned long); };
26757
26758 int bar() {
26759
26760 ;
26761 return 0;
26762 }
26763 _ACEOF
26764 rm -f conftest.$ac_objext
26765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26766 (eval $ac_compile) 2>&5
26767 ac_status=$?
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); } &&
26770 { ac_try='test -s conftest.$ac_objext'
26771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26772 (eval $ac_try) 2>&5
26773 ac_status=$?
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); }; }; then
26776 wx_cv_size_t_is_ulong=no
26777 else
26778 echo "$as_me: failed program was:" >&5
26779 sed 's/^/| /' conftest.$ac_ext >&5
26780
26781 wx_cv_size_t_is_ulong=yes
26782
26783 fi
26784 rm -f conftest.$ac_objext conftest.$ac_ext
26785
26786 fi
26787 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26788 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
26789
26790 if test "$wx_cv_size_t_is_ulong" = "yes"; then
26791 cat >>confdefs.h <<\_ACEOF
26792 #define wxSIZE_T_IS_ULONG 1
26793 _ACEOF
26794
26795 fi
26796 fi
26797
26798 ac_ext=c
26799 ac_cpp='$CPP $CPPFLAGS'
26800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26803
26804
26805
26806 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26807 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26808 if test "${wx_cv_struct_pw_gecos+set}" = set; then
26809 echo $ECHO_N "(cached) $ECHO_C" >&6
26810 else
26811
26812 cat >conftest.$ac_ext <<_ACEOF
26813 #line $LINENO "configure"
26814 /* confdefs.h. */
26815 _ACEOF
26816 cat confdefs.h >>conftest.$ac_ext
26817 cat >>conftest.$ac_ext <<_ACEOF
26818 /* end confdefs.h. */
26819 #include <pwd.h>
26820 int
26821 main ()
26822 {
26823
26824 char *p;
26825 struct passwd *pw;
26826 p = pw->pw_gecos;
26827
26828 ;
26829 return 0;
26830 }
26831 _ACEOF
26832 rm -f conftest.$ac_objext
26833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26834 (eval $ac_compile) 2>&5
26835 ac_status=$?
26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); } &&
26838 { ac_try='test -s conftest.$ac_objext'
26839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26840 (eval $ac_try) 2>&5
26841 ac_status=$?
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); }; }; then
26844
26845 wx_cv_struct_pw_gecos=yes
26846
26847 else
26848 echo "$as_me: failed program was:" >&5
26849 sed 's/^/| /' conftest.$ac_ext >&5
26850
26851
26852 wx_cv_struct_pw_gecos=no
26853
26854
26855 fi
26856 rm -f conftest.$ac_objext conftest.$ac_ext
26857
26858
26859 fi
26860 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26861 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
26862
26863 if test "$wx_cv_struct_pw_gecos" = "yes"; then
26864 cat >>confdefs.h <<\_ACEOF
26865 #define HAVE_PW_GECOS 1
26866 _ACEOF
26867
26868 fi
26869
26870
26871 if test "$wx_cv_sizeof_wchar_t" != "0"; then
26872 cat >>confdefs.h <<\_ACEOF
26873 #define wxUSE_WCHAR_T 1
26874 _ACEOF
26875
26876
26877 WCSLEN_FOUND=0
26878 WCHAR_LINK=
26879
26880 for ac_func in wcslen
26881 do
26882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26883 echo "$as_me:$LINENO: checking for $ac_func" >&5
26884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26885 if eval "test \"\${$as_ac_var+set}\" = set"; then
26886 echo $ECHO_N "(cached) $ECHO_C" >&6
26887 else
26888 cat >conftest.$ac_ext <<_ACEOF
26889 #line $LINENO "configure"
26890 /* confdefs.h. */
26891 _ACEOF
26892 cat confdefs.h >>conftest.$ac_ext
26893 cat >>conftest.$ac_ext <<_ACEOF
26894 /* end confdefs.h. */
26895 /* System header to define __stub macros and hopefully few prototypes,
26896 which can conflict with char $ac_func (); below.
26897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26898 <limits.h> exists even on freestanding compilers. */
26899 #ifdef __STDC__
26900 # include <limits.h>
26901 #else
26902 # include <assert.h>
26903 #endif
26904 /* Override any gcc2 internal prototype to avoid an error. */
26905 #ifdef __cplusplus
26906 extern "C"
26907 {
26908 #endif
26909 /* We use char because int might match the return type of a gcc2
26910 builtin and then its argument prototype would still apply. */
26911 char $ac_func ();
26912 /* The GNU C library defines this for functions which it implements
26913 to always fail with ENOSYS. Some functions are actually named
26914 something starting with __ and the normal name is an alias. */
26915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26916 choke me
26917 #else
26918 char (*f) () = $ac_func;
26919 #endif
26920 #ifdef __cplusplus
26921 }
26922 #endif
26923
26924 int
26925 main ()
26926 {
26927 return f != $ac_func;
26928 ;
26929 return 0;
26930 }
26931 _ACEOF
26932 rm -f conftest.$ac_objext conftest$ac_exeext
26933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26934 (eval $ac_link) 2>&5
26935 ac_status=$?
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); } &&
26938 { ac_try='test -s conftest$ac_exeext'
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26941 ac_status=$?
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; }; then
26944 eval "$as_ac_var=yes"
26945 else
26946 echo "$as_me: failed program was:" >&5
26947 sed 's/^/| /' conftest.$ac_ext >&5
26948
26949 eval "$as_ac_var=no"
26950 fi
26951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26952 fi
26953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26955 if test `eval echo '${'$as_ac_var'}'` = yes; then
26956 cat >>confdefs.h <<_ACEOF
26957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26958 _ACEOF
26959 WCSLEN_FOUND=1
26960 fi
26961 done
26962
26963
26964 if test "$WCSLEN_FOUND" = 0; then
26965 if test "$TOOLKIT" = "MSW"; then
26966 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26967 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26968 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26969 echo $ECHO_N "(cached) $ECHO_C" >&6
26970 else
26971 ac_check_lib_save_LIBS=$LIBS
26972 LIBS="-lmsvcrt $LIBS"
26973 cat >conftest.$ac_ext <<_ACEOF
26974 #line $LINENO "configure"
26975 /* confdefs.h. */
26976 _ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h. */
26980
26981 /* Override any gcc2 internal prototype to avoid an error. */
26982 #ifdef __cplusplus
26983 extern "C"
26984 #endif
26985 /* We use char because int might match the return type of a gcc2
26986 builtin and then its argument prototype would still apply. */
26987 char wcslen ();
26988 int
26989 main ()
26990 {
26991 wcslen ();
26992 ;
26993 return 0;
26994 }
26995 _ACEOF
26996 rm -f conftest.$ac_objext conftest$ac_exeext
26997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26998 (eval $ac_link) 2>&5
26999 ac_status=$?
27000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001 (exit $ac_status); } &&
27002 { ac_try='test -s conftest$ac_exeext'
27003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27004 (eval $ac_try) 2>&5
27005 ac_status=$?
27006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); }; }; then
27008 ac_cv_lib_msvcrt_wcslen=yes
27009 else
27010 echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27012
27013 ac_cv_lib_msvcrt_wcslen=no
27014 fi
27015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27016 LIBS=$ac_check_lib_save_LIBS
27017 fi
27018 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
27019 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
27020 if test $ac_cv_lib_msvcrt_wcslen = yes; then
27021 WCHAR_OK=1
27022 fi
27023
27024 else
27025 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
27026 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
27027 if test "${ac_cv_lib_w_wcslen+set}" = set; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
27029 else
27030 ac_check_lib_save_LIBS=$LIBS
27031 LIBS="-lw $LIBS"
27032 cat >conftest.$ac_ext <<_ACEOF
27033 #line $LINENO "configure"
27034 /* confdefs.h. */
27035 _ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h. */
27039
27040 /* Override any gcc2 internal prototype to avoid an error. */
27041 #ifdef __cplusplus
27042 extern "C"
27043 #endif
27044 /* We use char because int might match the return type of a gcc2
27045 builtin and then its argument prototype would still apply. */
27046 char wcslen ();
27047 int
27048 main ()
27049 {
27050 wcslen ();
27051 ;
27052 return 0;
27053 }
27054 _ACEOF
27055 rm -f conftest.$ac_objext conftest$ac_exeext
27056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27057 (eval $ac_link) 2>&5
27058 ac_status=$?
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } &&
27061 { ac_try='test -s conftest$ac_exeext'
27062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27063 (eval $ac_try) 2>&5
27064 ac_status=$?
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; }; then
27067 ac_cv_lib_w_wcslen=yes
27068 else
27069 echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27071
27072 ac_cv_lib_w_wcslen=no
27073 fi
27074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27075 LIBS=$ac_check_lib_save_LIBS
27076 fi
27077 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
27078 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
27079 if test $ac_cv_lib_w_wcslen = yes; then
27080
27081 WCHAR_LINK=" -lw"
27082 WCSLEN_FOUND=1
27083
27084 fi
27085
27086 fi
27087 fi
27088
27089 if test "$WCSLEN_FOUND" = 1; then
27090 cat >>confdefs.h <<\_ACEOF
27091 #define HAVE_WCSLEN 1
27092 _ACEOF
27093
27094 fi
27095
27096
27097 for ac_func in wcsrtombs
27098 do
27099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27100 echo "$as_me:$LINENO: checking for $ac_func" >&5
27101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27102 if eval "test \"\${$as_ac_var+set}\" = set"; then
27103 echo $ECHO_N "(cached) $ECHO_C" >&6
27104 else
27105 cat >conftest.$ac_ext <<_ACEOF
27106 #line $LINENO "configure"
27107 /* confdefs.h. */
27108 _ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h. */
27112 /* System header to define __stub macros and hopefully few prototypes,
27113 which can conflict with char $ac_func (); below.
27114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27115 <limits.h> exists even on freestanding compilers. */
27116 #ifdef __STDC__
27117 # include <limits.h>
27118 #else
27119 # include <assert.h>
27120 #endif
27121 /* Override any gcc2 internal prototype to avoid an error. */
27122 #ifdef __cplusplus
27123 extern "C"
27124 {
27125 #endif
27126 /* We use char because int might match the return type of a gcc2
27127 builtin and then its argument prototype would still apply. */
27128 char $ac_func ();
27129 /* The GNU C library defines this for functions which it implements
27130 to always fail with ENOSYS. Some functions are actually named
27131 something starting with __ and the normal name is an alias. */
27132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27133 choke me
27134 #else
27135 char (*f) () = $ac_func;
27136 #endif
27137 #ifdef __cplusplus
27138 }
27139 #endif
27140
27141 int
27142 main ()
27143 {
27144 return f != $ac_func;
27145 ;
27146 return 0;
27147 }
27148 _ACEOF
27149 rm -f conftest.$ac_objext conftest$ac_exeext
27150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27151 (eval $ac_link) 2>&5
27152 ac_status=$?
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } &&
27155 { ac_try='test -s conftest$ac_exeext'
27156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157 (eval $ac_try) 2>&5
27158 ac_status=$?
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); }; }; then
27161 eval "$as_ac_var=yes"
27162 else
27163 echo "$as_me: failed program was:" >&5
27164 sed 's/^/| /' conftest.$ac_ext >&5
27165
27166 eval "$as_ac_var=no"
27167 fi
27168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27169 fi
27170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27172 if test `eval echo '${'$as_ac_var'}'` = yes; then
27173 cat >>confdefs.h <<_ACEOF
27174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27175 _ACEOF
27176
27177 fi
27178 done
27179
27180 else
27181 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
27182 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
27183 fi
27184
27185
27186
27187 ac_ext=cc
27188 ac_cpp='$CXXCPP $CPPFLAGS'
27189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27192
27193
27194
27195 for ac_func in vsnprintf
27196 do
27197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27198 echo "$as_me:$LINENO: checking for $ac_func" >&5
27199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27200 if eval "test \"\${$as_ac_var+set}\" = set"; then
27201 echo $ECHO_N "(cached) $ECHO_C" >&6
27202 else
27203 cat >conftest.$ac_ext <<_ACEOF
27204 #line $LINENO "configure"
27205 /* confdefs.h. */
27206 _ACEOF
27207 cat confdefs.h >>conftest.$ac_ext
27208 cat >>conftest.$ac_ext <<_ACEOF
27209 /* end confdefs.h. */
27210 /* System header to define __stub macros and hopefully few prototypes,
27211 which can conflict with char $ac_func (); below.
27212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27213 <limits.h> exists even on freestanding compilers. */
27214 #ifdef __STDC__
27215 # include <limits.h>
27216 #else
27217 # include <assert.h>
27218 #endif
27219 /* Override any gcc2 internal prototype to avoid an error. */
27220 #ifdef __cplusplus
27221 extern "C"
27222 {
27223 #endif
27224 /* We use char because int might match the return type of a gcc2
27225 builtin and then its argument prototype would still apply. */
27226 char $ac_func ();
27227 /* The GNU C library defines this for functions which it implements
27228 to always fail with ENOSYS. Some functions are actually named
27229 something starting with __ and the normal name is an alias. */
27230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27231 choke me
27232 #else
27233 char (*f) () = $ac_func;
27234 #endif
27235 #ifdef __cplusplus
27236 }
27237 #endif
27238
27239 int
27240 main ()
27241 {
27242 return f != $ac_func;
27243 ;
27244 return 0;
27245 }
27246 _ACEOF
27247 rm -f conftest.$ac_objext conftest$ac_exeext
27248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27249 (eval $ac_link) 2>&5
27250 ac_status=$?
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); } &&
27253 { ac_try='test -s conftest$ac_exeext'
27254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255 (eval $ac_try) 2>&5
27256 ac_status=$?
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); }; }; then
27259 eval "$as_ac_var=yes"
27260 else
27261 echo "$as_me: failed program was:" >&5
27262 sed 's/^/| /' conftest.$ac_ext >&5
27263
27264 eval "$as_ac_var=no"
27265 fi
27266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27267 fi
27268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27270 if test `eval echo '${'$as_ac_var'}'` = yes; then
27271 cat >>confdefs.h <<_ACEOF
27272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27273 _ACEOF
27274
27275 fi
27276 done
27277
27278
27279 if test "$ac_cv_func_vsnprintf" = "yes"; then
27280 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
27281 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
27282 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
27283 echo $ECHO_N "(cached) $ECHO_C" >&6
27284 else
27285
27286 cat >conftest.$ac_ext <<_ACEOF
27287 #line $LINENO "configure"
27288 /* confdefs.h. */
27289 _ACEOF
27290 cat confdefs.h >>conftest.$ac_ext
27291 cat >>conftest.$ac_ext <<_ACEOF
27292 /* end confdefs.h. */
27293
27294 #include <stdio.h>
27295 #include <stdarg.h>
27296
27297 int
27298 main ()
27299 {
27300
27301 char *buf;
27302 va_list ap;
27303 vsnprintf(buf, 10u, "%s", ap);
27304
27305 ;
27306 return 0;
27307 }
27308 _ACEOF
27309 rm -f conftest.$ac_objext
27310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27311 (eval $ac_compile) 2>&5
27312 ac_status=$?
27313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314 (exit $ac_status); } &&
27315 { ac_try='test -s conftest.$ac_objext'
27316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27317 (eval $ac_try) 2>&5
27318 ac_status=$?
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); }; }; then
27321 wx_cv_func_vsnprintf_decl=yes
27322 else
27323 echo "$as_me: failed program was:" >&5
27324 sed 's/^/| /' conftest.$ac_ext >&5
27325
27326 wx_cv_func_vsnprintf_decl=no
27327
27328 fi
27329 rm -f conftest.$ac_objext conftest.$ac_ext
27330
27331
27332 fi
27333 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
27334 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
27335
27336 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
27337 cat >>confdefs.h <<\_ACEOF
27338 #define HAVE_VSNPRINTF_DECL 1
27339 _ACEOF
27340
27341 fi
27342 fi
27343
27344 if test "$wxUSE_UNICODE" = yes; then
27345
27346
27347
27348 for ac_func in fputwc wprintf vswprintf
27349 do
27350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27351 echo "$as_me:$LINENO: checking for $ac_func" >&5
27352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27353 if eval "test \"\${$as_ac_var+set}\" = set"; then
27354 echo $ECHO_N "(cached) $ECHO_C" >&6
27355 else
27356 cat >conftest.$ac_ext <<_ACEOF
27357 #line $LINENO "configure"
27358 /* confdefs.h. */
27359 _ACEOF
27360 cat confdefs.h >>conftest.$ac_ext
27361 cat >>conftest.$ac_ext <<_ACEOF
27362 /* end confdefs.h. */
27363 /* System header to define __stub macros and hopefully few prototypes,
27364 which can conflict with char $ac_func (); below.
27365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27366 <limits.h> exists even on freestanding compilers. */
27367 #ifdef __STDC__
27368 # include <limits.h>
27369 #else
27370 # include <assert.h>
27371 #endif
27372 /* Override any gcc2 internal prototype to avoid an error. */
27373 #ifdef __cplusplus
27374 extern "C"
27375 {
27376 #endif
27377 /* We use char because int might match the return type of a gcc2
27378 builtin and then its argument prototype would still apply. */
27379 char $ac_func ();
27380 /* The GNU C library defines this for functions which it implements
27381 to always fail with ENOSYS. Some functions are actually named
27382 something starting with __ and the normal name is an alias. */
27383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27384 choke me
27385 #else
27386 char (*f) () = $ac_func;
27387 #endif
27388 #ifdef __cplusplus
27389 }
27390 #endif
27391
27392 int
27393 main ()
27394 {
27395 return f != $ac_func;
27396 ;
27397 return 0;
27398 }
27399 _ACEOF
27400 rm -f conftest.$ac_objext conftest$ac_exeext
27401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27402 (eval $ac_link) 2>&5
27403 ac_status=$?
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); } &&
27406 { ac_try='test -s conftest$ac_exeext'
27407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408 (eval $ac_try) 2>&5
27409 ac_status=$?
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); }; }; then
27412 eval "$as_ac_var=yes"
27413 else
27414 echo "$as_me: failed program was:" >&5
27415 sed 's/^/| /' conftest.$ac_ext >&5
27416
27417 eval "$as_ac_var=no"
27418 fi
27419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27420 fi
27421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27423 if test `eval echo '${'$as_ac_var'}'` = yes; then
27424 cat >>confdefs.h <<_ACEOF
27425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27426 _ACEOF
27427
27428 fi
27429 done
27430
27431
27432 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
27433 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
27434 cat >conftest.$ac_ext <<_ACEOF
27435 #line $LINENO "configure"
27436 /* confdefs.h. */
27437 _ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h. */
27441 #include <wchar.h>
27442 int
27443 main ()
27444 {
27445 &_vsnwprintf;
27446 ;
27447 return 0;
27448 }
27449 _ACEOF
27450 rm -f conftest.$ac_objext
27451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27452 (eval $ac_compile) 2>&5
27453 ac_status=$?
27454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); } &&
27456 { ac_try='test -s conftest.$ac_objext'
27457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27458 (eval $ac_try) 2>&5
27459 ac_status=$?
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); }; }; then
27462 echo "$as_me:$LINENO: result: yes" >&5
27463 echo "${ECHO_T}yes" >&6
27464 cat >>confdefs.h <<\_ACEOF
27465 #define HAVE__VSNWPRINTF 1
27466 _ACEOF
27467
27468 else
27469 echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27471
27472 echo "$as_me:$LINENO: result: no" >&5
27473 echo "${ECHO_T}no" >&6
27474 fi
27475 rm -f conftest.$ac_objext conftest.$ac_ext;
27476 fi
27477
27478 ac_ext=c
27479 ac_cpp='$CPP $CPPFLAGS'
27480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27483
27484
27485
27486
27487 if test "$TOOLKIT" != "MSW"; then
27488
27489
27490
27491
27492 ac_ext=cc
27493 ac_cpp='$CXXCPP $CPPFLAGS'
27494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27497
27498
27499
27500
27501 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
27502 if test "${with_libiconv_prefix+set}" = set; then
27503 withval="$with_libiconv_prefix"
27504
27505 for dir in `echo "$withval" | tr : ' '`; do
27506 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
27507 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
27508 done
27509
27510 fi;
27511
27512 echo "$as_me:$LINENO: checking for iconv" >&5
27513 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
27514 if test "${am_cv_func_iconv+set}" = set; then
27515 echo $ECHO_N "(cached) $ECHO_C" >&6
27516 else
27517
27518 am_cv_func_iconv="no, consider installing GNU libiconv"
27519 am_cv_lib_iconv=no
27520 cat >conftest.$ac_ext <<_ACEOF
27521 #line $LINENO "configure"
27522 /* confdefs.h. */
27523 _ACEOF
27524 cat confdefs.h >>conftest.$ac_ext
27525 cat >>conftest.$ac_ext <<_ACEOF
27526 /* end confdefs.h. */
27527 #include <stdlib.h>
27528 #include <iconv.h>
27529 int
27530 main ()
27531 {
27532 iconv_t cd = iconv_open("","");
27533 iconv(cd,NULL,NULL,NULL,NULL);
27534 iconv_close(cd);
27535 ;
27536 return 0;
27537 }
27538 _ACEOF
27539 rm -f conftest.$ac_objext conftest$ac_exeext
27540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27541 (eval $ac_link) 2>&5
27542 ac_status=$?
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); } &&
27545 { ac_try='test -s conftest$ac_exeext'
27546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27547 (eval $ac_try) 2>&5
27548 ac_status=$?
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; }; then
27551 am_cv_func_iconv=yes
27552 else
27553 echo "$as_me: failed program was:" >&5
27554 sed 's/^/| /' conftest.$ac_ext >&5
27555
27556 fi
27557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27558 if test "$am_cv_func_iconv" != yes; then
27559 am_save_LIBS="$LIBS"
27560 LIBS="$LIBS -liconv"
27561 cat >conftest.$ac_ext <<_ACEOF
27562 #line $LINENO "configure"
27563 /* confdefs.h. */
27564 _ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h. */
27568 #include <stdlib.h>
27569 #include <iconv.h>
27570 int
27571 main ()
27572 {
27573 iconv_t cd = iconv_open("","");
27574 iconv(cd,NULL,NULL,NULL,NULL);
27575 iconv_close(cd);
27576 ;
27577 return 0;
27578 }
27579 _ACEOF
27580 rm -f conftest.$ac_objext conftest$ac_exeext
27581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27582 (eval $ac_link) 2>&5
27583 ac_status=$?
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); } &&
27586 { ac_try='test -s conftest$ac_exeext'
27587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27588 (eval $ac_try) 2>&5
27589 ac_status=$?
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; }; then
27592 am_cv_lib_iconv=yes
27593 am_cv_func_iconv=yes
27594 else
27595 echo "$as_me: failed program was:" >&5
27596 sed 's/^/| /' conftest.$ac_ext >&5
27597
27598 fi
27599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27600 LIBS="$am_save_LIBS"
27601 fi
27602
27603 fi
27604 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27605 echo "${ECHO_T}$am_cv_func_iconv" >&6
27606 if test "$am_cv_func_iconv" = yes; then
27607
27608 cat >>confdefs.h <<\_ACEOF
27609 #define HAVE_ICONV 1
27610 _ACEOF
27611
27612 echo "$as_me:$LINENO: checking if iconv needs const" >&5
27613 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
27614 if test "${wx_cv_func_iconv_const+set}" = set; then
27615 echo $ECHO_N "(cached) $ECHO_C" >&6
27616 else
27617 cat >conftest.$ac_ext <<_ACEOF
27618 #line $LINENO "configure"
27619 /* confdefs.h. */
27620 _ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h. */
27624
27625 #include <stdlib.h>
27626 #include <iconv.h>
27627 extern
27628 #ifdef __cplusplus
27629 "C"
27630 #endif
27631 #if defined(__STDC__) || defined(__cplusplus)
27632 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27633 #else
27634 size_t iconv();
27635 #endif
27636
27637 int
27638 main ()
27639 {
27640
27641 ;
27642 return 0;
27643 }
27644 _ACEOF
27645 rm -f conftest.$ac_objext
27646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27647 (eval $ac_compile) 2>&5
27648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); } &&
27651 { ac_try='test -s conftest.$ac_objext'
27652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653 (eval $ac_try) 2>&5
27654 ac_status=$?
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; }; then
27657 wx_cv_func_iconv_const="no"
27658 else
27659 echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27661
27662 wx_cv_func_iconv_const="yes"
27663
27664 fi
27665 rm -f conftest.$ac_objext conftest.$ac_ext
27666
27667 fi
27668 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
27669 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
27670
27671 iconv_const=
27672 if test "x$wx_cv_func_iconv_const" = "xyes"; then
27673 iconv_const="const"
27674 fi
27675
27676
27677 cat >>confdefs.h <<_ACEOF
27678 #define ICONV_CONST $iconv_const
27679 _ACEOF
27680
27681 fi
27682 LIBICONV=
27683 if test "$am_cv_lib_iconv" = yes; then
27684 LIBICONV="-liconv"
27685 fi
27686
27687
27688 LIBS="$LIBICONV $LIBS"
27689 ac_ext=c
27690 ac_cpp='$CPP $CPPFLAGS'
27691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27694
27695
27696 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
27697
27698 for ac_func in sigaction
27699 do
27700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27701 echo "$as_me:$LINENO: checking for $ac_func" >&5
27702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27703 if eval "test \"\${$as_ac_var+set}\" = set"; then
27704 echo $ECHO_N "(cached) $ECHO_C" >&6
27705 else
27706 cat >conftest.$ac_ext <<_ACEOF
27707 #line $LINENO "configure"
27708 /* confdefs.h. */
27709 _ACEOF
27710 cat confdefs.h >>conftest.$ac_ext
27711 cat >>conftest.$ac_ext <<_ACEOF
27712 /* end confdefs.h. */
27713 /* System header to define __stub macros and hopefully few prototypes,
27714 which can conflict with char $ac_func (); below.
27715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27716 <limits.h> exists even on freestanding compilers. */
27717 #ifdef __STDC__
27718 # include <limits.h>
27719 #else
27720 # include <assert.h>
27721 #endif
27722 /* Override any gcc2 internal prototype to avoid an error. */
27723 #ifdef __cplusplus
27724 extern "C"
27725 {
27726 #endif
27727 /* We use char because int might match the return type of a gcc2
27728 builtin and then its argument prototype would still apply. */
27729 char $ac_func ();
27730 /* The GNU C library defines this for functions which it implements
27731 to always fail with ENOSYS. Some functions are actually named
27732 something starting with __ and the normal name is an alias. */
27733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27734 choke me
27735 #else
27736 char (*f) () = $ac_func;
27737 #endif
27738 #ifdef __cplusplus
27739 }
27740 #endif
27741
27742 int
27743 main ()
27744 {
27745 return f != $ac_func;
27746 ;
27747 return 0;
27748 }
27749 _ACEOF
27750 rm -f conftest.$ac_objext conftest$ac_exeext
27751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27752 (eval $ac_link) 2>&5
27753 ac_status=$?
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); } &&
27756 { ac_try='test -s conftest$ac_exeext'
27757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27758 (eval $ac_try) 2>&5
27759 ac_status=$?
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); }; }; then
27762 eval "$as_ac_var=yes"
27763 else
27764 echo "$as_me: failed program was:" >&5
27765 sed 's/^/| /' conftest.$ac_ext >&5
27766
27767 eval "$as_ac_var=no"
27768 fi
27769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27770 fi
27771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27773 if test `eval echo '${'$as_ac_var'}'` = yes; then
27774 cat >>confdefs.h <<_ACEOF
27775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27776 _ACEOF
27777
27778 fi
27779 done
27780
27781
27782 if test "$ac_cv_func_sigaction" = "no"; then
27783 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27784 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
27785 wxUSE_ON_FATAL_EXCEPTION=no
27786 fi
27787
27788 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
27789
27790
27791 ac_ext=cc
27792 ac_cpp='$CXXCPP $CPPFLAGS'
27793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27796
27797
27798 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27799 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27800 if test "${wx_cv_type_sa_handler+set}" = set; then
27801 echo $ECHO_N "(cached) $ECHO_C" >&6
27802 else
27803
27804 cat >conftest.$ac_ext <<_ACEOF
27805 #line $LINENO "configure"
27806 /* confdefs.h. */
27807 _ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h. */
27811 #include <signal.h>
27812 int
27813 main ()
27814 {
27815
27816 extern void testSigHandler(int);
27817
27818 struct sigaction sa;
27819 sa.sa_handler = testSigHandler;
27820
27821 ;
27822 return 0;
27823 }
27824 _ACEOF
27825 rm -f conftest.$ac_objext
27826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27827 (eval $ac_compile) 2>&5
27828 ac_status=$?
27829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830 (exit $ac_status); } &&
27831 { ac_try='test -s conftest.$ac_objext'
27832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27833 (eval $ac_try) 2>&5
27834 ac_status=$?
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); }; }; then
27837
27838 wx_cv_type_sa_handler=int
27839
27840 else
27841 echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27843
27844
27845 wx_cv_type_sa_handler=void
27846
27847 fi
27848 rm -f conftest.$ac_objext conftest.$ac_ext
27849
27850 fi
27851 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27852 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
27853
27854 ac_ext=c
27855 ac_cpp='$CPP $CPPFLAGS'
27856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27859
27860
27861 cat >>confdefs.h <<_ACEOF
27862 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
27863 _ACEOF
27864
27865 fi
27866 fi
27867
27868
27869
27870 for ac_func in mkstemp mktemp
27871 do
27872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27873 echo "$as_me:$LINENO: checking for $ac_func" >&5
27874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27875 if eval "test \"\${$as_ac_var+set}\" = set"; then
27876 echo $ECHO_N "(cached) $ECHO_C" >&6
27877 else
27878 cat >conftest.$ac_ext <<_ACEOF
27879 #line $LINENO "configure"
27880 /* confdefs.h. */
27881 _ACEOF
27882 cat confdefs.h >>conftest.$ac_ext
27883 cat >>conftest.$ac_ext <<_ACEOF
27884 /* end confdefs.h. */
27885 /* System header to define __stub macros and hopefully few prototypes,
27886 which can conflict with char $ac_func (); below.
27887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27888 <limits.h> exists even on freestanding compilers. */
27889 #ifdef __STDC__
27890 # include <limits.h>
27891 #else
27892 # include <assert.h>
27893 #endif
27894 /* Override any gcc2 internal prototype to avoid an error. */
27895 #ifdef __cplusplus
27896 extern "C"
27897 {
27898 #endif
27899 /* We use char because int might match the return type of a gcc2
27900 builtin and then its argument prototype would still apply. */
27901 char $ac_func ();
27902 /* The GNU C library defines this for functions which it implements
27903 to always fail with ENOSYS. Some functions are actually named
27904 something starting with __ and the normal name is an alias. */
27905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27906 choke me
27907 #else
27908 char (*f) () = $ac_func;
27909 #endif
27910 #ifdef __cplusplus
27911 }
27912 #endif
27913
27914 int
27915 main ()
27916 {
27917 return f != $ac_func;
27918 ;
27919 return 0;
27920 }
27921 _ACEOF
27922 rm -f conftest.$ac_objext conftest$ac_exeext
27923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27924 (eval $ac_link) 2>&5
27925 ac_status=$?
27926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927 (exit $ac_status); } &&
27928 { ac_try='test -s conftest$ac_exeext'
27929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27930 (eval $ac_try) 2>&5
27931 ac_status=$?
27932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933 (exit $ac_status); }; }; then
27934 eval "$as_ac_var=yes"
27935 else
27936 echo "$as_me: failed program was:" >&5
27937 sed 's/^/| /' conftest.$ac_ext >&5
27938
27939 eval "$as_ac_var=no"
27940 fi
27941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27942 fi
27943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27945 if test `eval echo '${'$as_ac_var'}'` = yes; then
27946 cat >>confdefs.h <<_ACEOF
27947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27948 _ACEOF
27949 break
27950 fi
27951 done
27952
27953
27954 echo "$as_me:$LINENO: checking for statfs" >&5
27955 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27956 if test "${wx_cv_func_statfs+set}" = set; then
27957 echo $ECHO_N "(cached) $ECHO_C" >&6
27958 else
27959 cat >conftest.$ac_ext <<_ACEOF
27960 #line $LINENO "configure"
27961 /* confdefs.h. */
27962 _ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h. */
27966
27967 #if defined(__BSD__)
27968 #include <sys/param.h>
27969 #include <sys/mount.h>
27970 #else
27971 #include <sys/vfs.h>
27972 #endif
27973
27974 int
27975 main ()
27976 {
27977
27978 long l;
27979 struct statfs fs;
27980 statfs("/", &fs);
27981 l = fs.f_bsize;
27982 l += fs.f_blocks;
27983 l += fs.f_bavail;
27984
27985 ;
27986 return 0;
27987 }
27988 _ACEOF
27989 rm -f conftest.$ac_objext
27990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27991 (eval $ac_compile) 2>&5
27992 ac_status=$?
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); } &&
27995 { ac_try='test -s conftest.$ac_objext'
27996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27997 (eval $ac_try) 2>&5
27998 ac_status=$?
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); }; }; then
28001
28002 wx_cv_func_statfs=yes
28003
28004 else
28005 echo "$as_me: failed program was:" >&5
28006 sed 's/^/| /' conftest.$ac_ext >&5
28007
28008
28009 wx_cv_func_statfs=no
28010
28011
28012 fi
28013 rm -f conftest.$ac_objext conftest.$ac_ext
28014
28015 fi
28016 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
28017 echo "${ECHO_T}$wx_cv_func_statfs" >&6
28018
28019 if test "$wx_cv_func_statfs" = "yes"; then
28020 wx_cv_type_statvfs_t="struct statfs"
28021 cat >>confdefs.h <<\_ACEOF
28022 #define HAVE_STATFS 1
28023 _ACEOF
28024
28025 else
28026 echo "$as_me:$LINENO: checking for statvfs" >&5
28027 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
28028 if test "${wx_cv_func_statvfs+set}" = set; then
28029 echo $ECHO_N "(cached) $ECHO_C" >&6
28030 else
28031 cat >conftest.$ac_ext <<_ACEOF
28032 #line $LINENO "configure"
28033 /* confdefs.h. */
28034 _ACEOF
28035 cat confdefs.h >>conftest.$ac_ext
28036 cat >>conftest.$ac_ext <<_ACEOF
28037 /* end confdefs.h. */
28038
28039 #include <stddef.h>
28040 #include <sys/statvfs.h>
28041
28042 int
28043 main ()
28044 {
28045
28046 statvfs("/", NULL);
28047
28048 ;
28049 return 0;
28050 }
28051 _ACEOF
28052 rm -f conftest.$ac_objext
28053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28054 (eval $ac_compile) 2>&5
28055 ac_status=$?
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); } &&
28058 { ac_try='test -s conftest.$ac_objext'
28059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28061 ac_status=$?
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
28064 wx_cv_func_statvfs=yes
28065 else
28066 echo "$as_me: failed program was:" >&5
28067 sed 's/^/| /' conftest.$ac_ext >&5
28068
28069 wx_cv_func_statvfs=no
28070
28071 fi
28072 rm -f conftest.$ac_objext conftest.$ac_ext
28073
28074 fi
28075 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
28076 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
28077
28078 if test "$wx_cv_func_statvfs" = "yes"; then
28079
28080
28081 ac_ext=cc
28082 ac_cpp='$CXXCPP $CPPFLAGS'
28083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28086
28087
28088 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
28089 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
28090 if test "${wx_cv_type_statvfs_t+set}" = set; then
28091 echo $ECHO_N "(cached) $ECHO_C" >&6
28092 else
28093 cat >conftest.$ac_ext <<_ACEOF
28094 #line $LINENO "configure"
28095 /* confdefs.h. */
28096 _ACEOF
28097 cat confdefs.h >>conftest.$ac_ext
28098 cat >>conftest.$ac_ext <<_ACEOF
28099 /* end confdefs.h. */
28100
28101 #include <sys/statvfs.h>
28102
28103 int
28104 main ()
28105 {
28106
28107 long l;
28108 statvfs_t fs;
28109 statvfs("/", &fs);
28110 l = fs.f_bsize;
28111 l += fs.f_blocks;
28112 l += fs.f_bavail;
28113
28114 ;
28115 return 0;
28116 }
28117 _ACEOF
28118 rm -f conftest.$ac_objext
28119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28120 (eval $ac_compile) 2>&5
28121 ac_status=$?
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); } &&
28124 { ac_try='test -s conftest.$ac_objext'
28125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126 (eval $ac_try) 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; }; then
28130 wx_cv_type_statvfs_t=statvfs_t
28131 else
28132 echo "$as_me: failed program was:" >&5
28133 sed 's/^/| /' conftest.$ac_ext >&5
28134
28135
28136 cat >conftest.$ac_ext <<_ACEOF
28137 #line $LINENO "configure"
28138 /* confdefs.h. */
28139 _ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h. */
28143
28144 #include <sys/statvfs.h>
28145
28146 int
28147 main ()
28148 {
28149
28150 long l;
28151 struct statvfs fs;
28152 statvfs("/", &fs);
28153 l = fs.f_bsize;
28154 l += fs.f_blocks;
28155 l += fs.f_bavail;
28156
28157 ;
28158 return 0;
28159 }
28160 _ACEOF
28161 rm -f conftest.$ac_objext
28162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28163 (eval $ac_compile) 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 wx_cv_type_statvfs_t="struct statvfs"
28174 else
28175 echo "$as_me: failed program was:" >&5
28176 sed 's/^/| /' conftest.$ac_ext >&5
28177
28178 wx_cv_type_statvfs_t="unknown"
28179
28180 fi
28181 rm -f conftest.$ac_objext conftest.$ac_ext
28182
28183
28184 fi
28185 rm -f conftest.$ac_objext conftest.$ac_ext
28186
28187 fi
28188 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
28189 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
28190
28191 ac_ext=c
28192 ac_cpp='$CPP $CPPFLAGS'
28193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28196
28197
28198 if test "$wx_cv_type_statvfs_t" != "unknown"; then
28199 cat >>confdefs.h <<\_ACEOF
28200 #define HAVE_STATVFS 1
28201 _ACEOF
28202
28203 fi
28204 else
28205 wx_cv_type_statvfs_t="unknown"
28206 fi
28207 fi
28208
28209 if test "$wx_cv_type_statvfs_t" != "unknown"; then
28210 cat >>confdefs.h <<_ACEOF
28211 #define WX_STATFS_T $wx_cv_type_statvfs_t
28212 _ACEOF
28213
28214 else
28215 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
28216 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
28217 fi
28218
28219 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
28220
28221
28222 for ac_func in fcntl flock
28223 do
28224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28225 echo "$as_me:$LINENO: checking for $ac_func" >&5
28226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28227 if eval "test \"\${$as_ac_var+set}\" = set"; then
28228 echo $ECHO_N "(cached) $ECHO_C" >&6
28229 else
28230 cat >conftest.$ac_ext <<_ACEOF
28231 #line $LINENO "configure"
28232 /* confdefs.h. */
28233 _ACEOF
28234 cat confdefs.h >>conftest.$ac_ext
28235 cat >>conftest.$ac_ext <<_ACEOF
28236 /* end confdefs.h. */
28237 /* System header to define __stub macros and hopefully few prototypes,
28238 which can conflict with char $ac_func (); below.
28239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28240 <limits.h> exists even on freestanding compilers. */
28241 #ifdef __STDC__
28242 # include <limits.h>
28243 #else
28244 # include <assert.h>
28245 #endif
28246 /* Override any gcc2 internal prototype to avoid an error. */
28247 #ifdef __cplusplus
28248 extern "C"
28249 {
28250 #endif
28251 /* We use char because int might match the return type of a gcc2
28252 builtin and then its argument prototype would still apply. */
28253 char $ac_func ();
28254 /* The GNU C library defines this for functions which it implements
28255 to always fail with ENOSYS. Some functions are actually named
28256 something starting with __ and the normal name is an alias. */
28257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28258 choke me
28259 #else
28260 char (*f) () = $ac_func;
28261 #endif
28262 #ifdef __cplusplus
28263 }
28264 #endif
28265
28266 int
28267 main ()
28268 {
28269 return f != $ac_func;
28270 ;
28271 return 0;
28272 }
28273 _ACEOF
28274 rm -f conftest.$ac_objext conftest$ac_exeext
28275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28276 (eval $ac_link) 2>&5
28277 ac_status=$?
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); } &&
28280 { ac_try='test -s conftest$ac_exeext'
28281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28282 (eval $ac_try) 2>&5
28283 ac_status=$?
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); }; }; then
28286 eval "$as_ac_var=yes"
28287 else
28288 echo "$as_me: failed program was:" >&5
28289 sed 's/^/| /' conftest.$ac_ext >&5
28290
28291 eval "$as_ac_var=no"
28292 fi
28293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28294 fi
28295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28297 if test `eval echo '${'$as_ac_var'}'` = yes; then
28298 cat >>confdefs.h <<_ACEOF
28299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28300 _ACEOF
28301 break
28302 fi
28303 done
28304
28305
28306 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
28307 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
28308 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
28309 wxUSE_SNGLINST_CHECKER=no
28310 fi
28311 fi
28312
28313
28314 for ac_func in timegm
28315 do
28316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28317 echo "$as_me:$LINENO: checking for $ac_func" >&5
28318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28319 if eval "test \"\${$as_ac_var+set}\" = set"; then
28320 echo $ECHO_N "(cached) $ECHO_C" >&6
28321 else
28322 cat >conftest.$ac_ext <<_ACEOF
28323 #line $LINENO "configure"
28324 /* confdefs.h. */
28325 _ACEOF
28326 cat confdefs.h >>conftest.$ac_ext
28327 cat >>conftest.$ac_ext <<_ACEOF
28328 /* end confdefs.h. */
28329 /* System header to define __stub macros and hopefully few prototypes,
28330 which can conflict with char $ac_func (); below.
28331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28332 <limits.h> exists even on freestanding compilers. */
28333 #ifdef __STDC__
28334 # include <limits.h>
28335 #else
28336 # include <assert.h>
28337 #endif
28338 /* Override any gcc2 internal prototype to avoid an error. */
28339 #ifdef __cplusplus
28340 extern "C"
28341 {
28342 #endif
28343 /* We use char because int might match the return type of a gcc2
28344 builtin and then its argument prototype would still apply. */
28345 char $ac_func ();
28346 /* The GNU C library defines this for functions which it implements
28347 to always fail with ENOSYS. Some functions are actually named
28348 something starting with __ and the normal name is an alias. */
28349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28350 choke me
28351 #else
28352 char (*f) () = $ac_func;
28353 #endif
28354 #ifdef __cplusplus
28355 }
28356 #endif
28357
28358 int
28359 main ()
28360 {
28361 return f != $ac_func;
28362 ;
28363 return 0;
28364 }
28365 _ACEOF
28366 rm -f conftest.$ac_objext conftest$ac_exeext
28367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28368 (eval $ac_link) 2>&5
28369 ac_status=$?
28370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); } &&
28372 { ac_try='test -s conftest$ac_exeext'
28373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28374 (eval $ac_try) 2>&5
28375 ac_status=$?
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; }; then
28378 eval "$as_ac_var=yes"
28379 else
28380 echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28382
28383 eval "$as_ac_var=no"
28384 fi
28385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28386 fi
28387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28389 if test `eval echo '${'$as_ac_var'}'` = yes; then
28390 cat >>confdefs.h <<_ACEOF
28391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28392 _ACEOF
28393
28394 fi
28395 done
28396
28397
28398
28399
28400 for ac_func in putenv setenv
28401 do
28402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28403 echo "$as_me:$LINENO: checking for $ac_func" >&5
28404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28405 if eval "test \"\${$as_ac_var+set}\" = set"; then
28406 echo $ECHO_N "(cached) $ECHO_C" >&6
28407 else
28408 cat >conftest.$ac_ext <<_ACEOF
28409 #line $LINENO "configure"
28410 /* confdefs.h. */
28411 _ACEOF
28412 cat confdefs.h >>conftest.$ac_ext
28413 cat >>conftest.$ac_ext <<_ACEOF
28414 /* end confdefs.h. */
28415 /* System header to define __stub macros and hopefully few prototypes,
28416 which can conflict with char $ac_func (); below.
28417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28418 <limits.h> exists even on freestanding compilers. */
28419 #ifdef __STDC__
28420 # include <limits.h>
28421 #else
28422 # include <assert.h>
28423 #endif
28424 /* Override any gcc2 internal prototype to avoid an error. */
28425 #ifdef __cplusplus
28426 extern "C"
28427 {
28428 #endif
28429 /* We use char because int might match the return type of a gcc2
28430 builtin and then its argument prototype would still apply. */
28431 char $ac_func ();
28432 /* The GNU C library defines this for functions which it implements
28433 to always fail with ENOSYS. Some functions are actually named
28434 something starting with __ and the normal name is an alias. */
28435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28436 choke me
28437 #else
28438 char (*f) () = $ac_func;
28439 #endif
28440 #ifdef __cplusplus
28441 }
28442 #endif
28443
28444 int
28445 main ()
28446 {
28447 return f != $ac_func;
28448 ;
28449 return 0;
28450 }
28451 _ACEOF
28452 rm -f conftest.$ac_objext conftest$ac_exeext
28453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28454 (eval $ac_link) 2>&5
28455 ac_status=$?
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); } &&
28458 { ac_try='test -s conftest$ac_exeext'
28459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28460 (eval $ac_try) 2>&5
28461 ac_status=$?
28462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463 (exit $ac_status); }; }; then
28464 eval "$as_ac_var=yes"
28465 else
28466 echo "$as_me: failed program was:" >&5
28467 sed 's/^/| /' conftest.$ac_ext >&5
28468
28469 eval "$as_ac_var=no"
28470 fi
28471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28472 fi
28473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28475 if test `eval echo '${'$as_ac_var'}'` = yes; then
28476 cat >>confdefs.h <<_ACEOF
28477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28478 _ACEOF
28479 break
28480 fi
28481 done
28482
28483
28484 HAVE_SOME_SLEEP_FUNC=0
28485 if test "$USE_BEOS" = 1; then
28486 cat >>confdefs.h <<\_ACEOF
28487 #define HAVE_SLEEP 1
28488 _ACEOF
28489
28490 HAVE_SOME_SLEEP_FUNC=1
28491 fi
28492
28493 if test "$USE_DARWIN" = 1; then
28494 cat >>confdefs.h <<\_ACEOF
28495 #define HAVE_USLEEP 1
28496 _ACEOF
28497
28498 HAVE_SOME_SLEEP_FUNC=1
28499 fi
28500
28501 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
28502 POSIX4_LINK=
28503
28504 for ac_func in nanosleep
28505 do
28506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28507 echo "$as_me:$LINENO: checking for $ac_func" >&5
28508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28509 if eval "test \"\${$as_ac_var+set}\" = set"; then
28510 echo $ECHO_N "(cached) $ECHO_C" >&6
28511 else
28512 cat >conftest.$ac_ext <<_ACEOF
28513 #line $LINENO "configure"
28514 /* confdefs.h. */
28515 _ACEOF
28516 cat confdefs.h >>conftest.$ac_ext
28517 cat >>conftest.$ac_ext <<_ACEOF
28518 /* end confdefs.h. */
28519 /* System header to define __stub macros and hopefully few prototypes,
28520 which can conflict with char $ac_func (); below.
28521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28522 <limits.h> exists even on freestanding compilers. */
28523 #ifdef __STDC__
28524 # include <limits.h>
28525 #else
28526 # include <assert.h>
28527 #endif
28528 /* Override any gcc2 internal prototype to avoid an error. */
28529 #ifdef __cplusplus
28530 extern "C"
28531 {
28532 #endif
28533 /* We use char because int might match the return type of a gcc2
28534 builtin and then its argument prototype would still apply. */
28535 char $ac_func ();
28536 /* The GNU C library defines this for functions which it implements
28537 to always fail with ENOSYS. Some functions are actually named
28538 something starting with __ and the normal name is an alias. */
28539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28540 choke me
28541 #else
28542 char (*f) () = $ac_func;
28543 #endif
28544 #ifdef __cplusplus
28545 }
28546 #endif
28547
28548 int
28549 main ()
28550 {
28551 return f != $ac_func;
28552 ;
28553 return 0;
28554 }
28555 _ACEOF
28556 rm -f conftest.$ac_objext conftest$ac_exeext
28557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28558 (eval $ac_link) 2>&5
28559 ac_status=$?
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); } &&
28562 { ac_try='test -s conftest$ac_exeext'
28563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564 (eval $ac_try) 2>&5
28565 ac_status=$?
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); }; }; then
28568 eval "$as_ac_var=yes"
28569 else
28570 echo "$as_me: failed program was:" >&5
28571 sed 's/^/| /' conftest.$ac_ext >&5
28572
28573 eval "$as_ac_var=no"
28574 fi
28575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28576 fi
28577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28579 if test `eval echo '${'$as_ac_var'}'` = yes; then
28580 cat >>confdefs.h <<_ACEOF
28581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28582 _ACEOF
28583 cat >>confdefs.h <<\_ACEOF
28584 #define HAVE_NANOSLEEP 1
28585 _ACEOF
28586
28587 else
28588
28589 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
28590 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
28591 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
28592 echo $ECHO_N "(cached) $ECHO_C" >&6
28593 else
28594 ac_check_lib_save_LIBS=$LIBS
28595 LIBS="-lposix4 $LIBS"
28596 cat >conftest.$ac_ext <<_ACEOF
28597 #line $LINENO "configure"
28598 /* confdefs.h. */
28599 _ACEOF
28600 cat confdefs.h >>conftest.$ac_ext
28601 cat >>conftest.$ac_ext <<_ACEOF
28602 /* end confdefs.h. */
28603
28604 /* Override any gcc2 internal prototype to avoid an error. */
28605 #ifdef __cplusplus
28606 extern "C"
28607 #endif
28608 /* We use char because int might match the return type of a gcc2
28609 builtin and then its argument prototype would still apply. */
28610 char nanosleep ();
28611 int
28612 main ()
28613 {
28614 nanosleep ();
28615 ;
28616 return 0;
28617 }
28618 _ACEOF
28619 rm -f conftest.$ac_objext conftest$ac_exeext
28620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28621 (eval $ac_link) 2>&5
28622 ac_status=$?
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); } &&
28625 { ac_try='test -s conftest$ac_exeext'
28626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28627 (eval $ac_try) 2>&5
28628 ac_status=$?
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); }; }; then
28631 ac_cv_lib_posix4_nanosleep=yes
28632 else
28633 echo "$as_me: failed program was:" >&5
28634 sed 's/^/| /' conftest.$ac_ext >&5
28635
28636 ac_cv_lib_posix4_nanosleep=no
28637 fi
28638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28639 LIBS=$ac_check_lib_save_LIBS
28640 fi
28641 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
28642 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
28643 if test $ac_cv_lib_posix4_nanosleep = yes; then
28644
28645 cat >>confdefs.h <<\_ACEOF
28646 #define HAVE_NANOSLEEP 1
28647 _ACEOF
28648
28649 POSIX4_LINK=" -lposix4"
28650
28651 else
28652
28653
28654 for ac_func in usleep
28655 do
28656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28657 echo "$as_me:$LINENO: checking for $ac_func" >&5
28658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28659 if eval "test \"\${$as_ac_var+set}\" = set"; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28661 else
28662 cat >conftest.$ac_ext <<_ACEOF
28663 #line $LINENO "configure"
28664 /* confdefs.h. */
28665 _ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h. */
28669 /* System header to define __stub macros and hopefully few prototypes,
28670 which can conflict with char $ac_func (); below.
28671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28672 <limits.h> exists even on freestanding compilers. */
28673 #ifdef __STDC__
28674 # include <limits.h>
28675 #else
28676 # include <assert.h>
28677 #endif
28678 /* Override any gcc2 internal prototype to avoid an error. */
28679 #ifdef __cplusplus
28680 extern "C"
28681 {
28682 #endif
28683 /* We use char because int might match the return type of a gcc2
28684 builtin and then its argument prototype would still apply. */
28685 char $ac_func ();
28686 /* The GNU C library defines this for functions which it implements
28687 to always fail with ENOSYS. Some functions are actually named
28688 something starting with __ and the normal name is an alias. */
28689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28690 choke me
28691 #else
28692 char (*f) () = $ac_func;
28693 #endif
28694 #ifdef __cplusplus
28695 }
28696 #endif
28697
28698 int
28699 main ()
28700 {
28701 return f != $ac_func;
28702 ;
28703 return 0;
28704 }
28705 _ACEOF
28706 rm -f conftest.$ac_objext conftest$ac_exeext
28707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28708 (eval $ac_link) 2>&5
28709 ac_status=$?
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); } &&
28712 { ac_try='test -s conftest$ac_exeext'
28713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28714 (eval $ac_try) 2>&5
28715 ac_status=$?
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); }; }; then
28718 eval "$as_ac_var=yes"
28719 else
28720 echo "$as_me: failed program was:" >&5
28721 sed 's/^/| /' conftest.$ac_ext >&5
28722
28723 eval "$as_ac_var=no"
28724 fi
28725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28726 fi
28727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28729 if test `eval echo '${'$as_ac_var'}'` = yes; then
28730 cat >>confdefs.h <<_ACEOF
28731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28732 _ACEOF
28733 cat >>confdefs.h <<\_ACEOF
28734 #define HAVE_USLEEP 1
28735 _ACEOF
28736
28737 else
28738 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28739 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28740
28741 fi
28742 done
28743
28744
28745
28746 fi
28747
28748
28749
28750 fi
28751 done
28752
28753 fi
28754
28755
28756
28757 for ac_func in uname gethostname
28758 do
28759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28760 echo "$as_me:$LINENO: checking for $ac_func" >&5
28761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28762 if eval "test \"\${$as_ac_var+set}\" = set"; then
28763 echo $ECHO_N "(cached) $ECHO_C" >&6
28764 else
28765 cat >conftest.$ac_ext <<_ACEOF
28766 #line $LINENO "configure"
28767 /* confdefs.h. */
28768 _ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h. */
28772 /* System header to define __stub macros and hopefully few prototypes,
28773 which can conflict with char $ac_func (); below.
28774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28775 <limits.h> exists even on freestanding compilers. */
28776 #ifdef __STDC__
28777 # include <limits.h>
28778 #else
28779 # include <assert.h>
28780 #endif
28781 /* Override any gcc2 internal prototype to avoid an error. */
28782 #ifdef __cplusplus
28783 extern "C"
28784 {
28785 #endif
28786 /* We use char because int might match the return type of a gcc2
28787 builtin and then its argument prototype would still apply. */
28788 char $ac_func ();
28789 /* The GNU C library defines this for functions which it implements
28790 to always fail with ENOSYS. Some functions are actually named
28791 something starting with __ and the normal name is an alias. */
28792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28793 choke me
28794 #else
28795 char (*f) () = $ac_func;
28796 #endif
28797 #ifdef __cplusplus
28798 }
28799 #endif
28800
28801 int
28802 main ()
28803 {
28804 return f != $ac_func;
28805 ;
28806 return 0;
28807 }
28808 _ACEOF
28809 rm -f conftest.$ac_objext conftest$ac_exeext
28810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28811 (eval $ac_link) 2>&5
28812 ac_status=$?
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); } &&
28815 { ac_try='test -s conftest$ac_exeext'
28816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28817 (eval $ac_try) 2>&5
28818 ac_status=$?
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; }; then
28821 eval "$as_ac_var=yes"
28822 else
28823 echo "$as_me: failed program was:" >&5
28824 sed 's/^/| /' conftest.$ac_ext >&5
28825
28826 eval "$as_ac_var=no"
28827 fi
28828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28829 fi
28830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28832 if test `eval echo '${'$as_ac_var'}'` = yes; then
28833 cat >>confdefs.h <<_ACEOF
28834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28835 _ACEOF
28836 break
28837 fi
28838 done
28839
28840
28841
28842
28843 ac_ext=cc
28844 ac_cpp='$CXXCPP $CPPFLAGS'
28845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28848
28849
28850
28851 for ac_func in strtok_r
28852 do
28853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28854 echo "$as_me:$LINENO: checking for $ac_func" >&5
28855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28856 if eval "test \"\${$as_ac_var+set}\" = set"; then
28857 echo $ECHO_N "(cached) $ECHO_C" >&6
28858 else
28859 cat >conftest.$ac_ext <<_ACEOF
28860 #line $LINENO "configure"
28861 /* confdefs.h. */
28862 _ACEOF
28863 cat confdefs.h >>conftest.$ac_ext
28864 cat >>conftest.$ac_ext <<_ACEOF
28865 /* end confdefs.h. */
28866 /* System header to define __stub macros and hopefully few prototypes,
28867 which can conflict with char $ac_func (); below.
28868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28869 <limits.h> exists even on freestanding compilers. */
28870 #ifdef __STDC__
28871 # include <limits.h>
28872 #else
28873 # include <assert.h>
28874 #endif
28875 /* Override any gcc2 internal prototype to avoid an error. */
28876 #ifdef __cplusplus
28877 extern "C"
28878 {
28879 #endif
28880 /* We use char because int might match the return type of a gcc2
28881 builtin and then its argument prototype would still apply. */
28882 char $ac_func ();
28883 /* The GNU C library defines this for functions which it implements
28884 to always fail with ENOSYS. Some functions are actually named
28885 something starting with __ and the normal name is an alias. */
28886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28887 choke me
28888 #else
28889 char (*f) () = $ac_func;
28890 #endif
28891 #ifdef __cplusplus
28892 }
28893 #endif
28894
28895 int
28896 main ()
28897 {
28898 return f != $ac_func;
28899 ;
28900 return 0;
28901 }
28902 _ACEOF
28903 rm -f conftest.$ac_objext conftest$ac_exeext
28904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28905 (eval $ac_link) 2>&5
28906 ac_status=$?
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); } &&
28909 { ac_try='test -s conftest$ac_exeext'
28910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28911 (eval $ac_try) 2>&5
28912 ac_status=$?
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); }; }; then
28915 eval "$as_ac_var=yes"
28916 else
28917 echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28919
28920 eval "$as_ac_var=no"
28921 fi
28922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28923 fi
28924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28926 if test `eval echo '${'$as_ac_var'}'` = yes; then
28927 cat >>confdefs.h <<_ACEOF
28928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28929 _ACEOF
28930
28931 fi
28932 done
28933
28934
28935 ac_ext=c
28936 ac_cpp='$CPP $CPPFLAGS'
28937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28940
28941
28942 INET_LINK=
28943
28944 for ac_func in inet_addr
28945 do
28946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28947 echo "$as_me:$LINENO: checking for $ac_func" >&5
28948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28949 if eval "test \"\${$as_ac_var+set}\" = set"; then
28950 echo $ECHO_N "(cached) $ECHO_C" >&6
28951 else
28952 cat >conftest.$ac_ext <<_ACEOF
28953 #line $LINENO "configure"
28954 /* confdefs.h. */
28955 _ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h. */
28959 /* System header to define __stub macros and hopefully few prototypes,
28960 which can conflict with char $ac_func (); below.
28961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28962 <limits.h> exists even on freestanding compilers. */
28963 #ifdef __STDC__
28964 # include <limits.h>
28965 #else
28966 # include <assert.h>
28967 #endif
28968 /* Override any gcc2 internal prototype to avoid an error. */
28969 #ifdef __cplusplus
28970 extern "C"
28971 {
28972 #endif
28973 /* We use char because int might match the return type of a gcc2
28974 builtin and then its argument prototype would still apply. */
28975 char $ac_func ();
28976 /* The GNU C library defines this for functions which it implements
28977 to always fail with ENOSYS. Some functions are actually named
28978 something starting with __ and the normal name is an alias. */
28979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28980 choke me
28981 #else
28982 char (*f) () = $ac_func;
28983 #endif
28984 #ifdef __cplusplus
28985 }
28986 #endif
28987
28988 int
28989 main ()
28990 {
28991 return f != $ac_func;
28992 ;
28993 return 0;
28994 }
28995 _ACEOF
28996 rm -f conftest.$ac_objext conftest$ac_exeext
28997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28998 (eval $ac_link) 2>&5
28999 ac_status=$?
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); } &&
29002 { ac_try='test -s conftest$ac_exeext'
29003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29004 (eval $ac_try) 2>&5
29005 ac_status=$?
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007 (exit $ac_status); }; }; then
29008 eval "$as_ac_var=yes"
29009 else
29010 echo "$as_me: failed program was:" >&5
29011 sed 's/^/| /' conftest.$ac_ext >&5
29012
29013 eval "$as_ac_var=no"
29014 fi
29015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29016 fi
29017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29019 if test `eval echo '${'$as_ac_var'}'` = yes; then
29020 cat >>confdefs.h <<_ACEOF
29021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29022 _ACEOF
29023 cat >>confdefs.h <<\_ACEOF
29024 #define HAVE_INET_ADDR 1
29025 _ACEOF
29026
29027 else
29028
29029 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
29030 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
29031 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
29032 echo $ECHO_N "(cached) $ECHO_C" >&6
29033 else
29034 ac_check_lib_save_LIBS=$LIBS
29035 LIBS="-lnsl $LIBS"
29036 cat >conftest.$ac_ext <<_ACEOF
29037 #line $LINENO "configure"
29038 /* confdefs.h. */
29039 _ACEOF
29040 cat confdefs.h >>conftest.$ac_ext
29041 cat >>conftest.$ac_ext <<_ACEOF
29042 /* end confdefs.h. */
29043
29044 /* Override any gcc2 internal prototype to avoid an error. */
29045 #ifdef __cplusplus
29046 extern "C"
29047 #endif
29048 /* We use char because int might match the return type of a gcc2
29049 builtin and then its argument prototype would still apply. */
29050 char inet_addr ();
29051 int
29052 main ()
29053 {
29054 inet_addr ();
29055 ;
29056 return 0;
29057 }
29058 _ACEOF
29059 rm -f conftest.$ac_objext conftest$ac_exeext
29060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29061 (eval $ac_link) 2>&5
29062 ac_status=$?
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); } &&
29065 { ac_try='test -s conftest$ac_exeext'
29066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067 (eval $ac_try) 2>&5
29068 ac_status=$?
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; }; then
29071 ac_cv_lib_nsl_inet_addr=yes
29072 else
29073 echo "$as_me: failed program was:" >&5
29074 sed 's/^/| /' conftest.$ac_ext >&5
29075
29076 ac_cv_lib_nsl_inet_addr=no
29077 fi
29078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29079 LIBS=$ac_check_lib_save_LIBS
29080 fi
29081 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
29082 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
29083 if test $ac_cv_lib_nsl_inet_addr = yes; then
29084 INET_LINK="nsl"
29085 else
29086
29087 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
29088 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
29089 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29091 else
29092 ac_check_lib_save_LIBS=$LIBS
29093 LIBS="-lresolv $LIBS"
29094 cat >conftest.$ac_ext <<_ACEOF
29095 #line $LINENO "configure"
29096 /* confdefs.h. */
29097 _ACEOF
29098 cat confdefs.h >>conftest.$ac_ext
29099 cat >>conftest.$ac_ext <<_ACEOF
29100 /* end confdefs.h. */
29101
29102 /* Override any gcc2 internal prototype to avoid an error. */
29103 #ifdef __cplusplus
29104 extern "C"
29105 #endif
29106 /* We use char because int might match the return type of a gcc2
29107 builtin and then its argument prototype would still apply. */
29108 char inet_addr ();
29109 int
29110 main ()
29111 {
29112 inet_addr ();
29113 ;
29114 return 0;
29115 }
29116 _ACEOF
29117 rm -f conftest.$ac_objext conftest$ac_exeext
29118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29119 (eval $ac_link) 2>&5
29120 ac_status=$?
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); } &&
29123 { ac_try='test -s conftest$ac_exeext'
29124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29125 (eval $ac_try) 2>&5
29126 ac_status=$?
29127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128 (exit $ac_status); }; }; then
29129 ac_cv_lib_resolv_inet_addr=yes
29130 else
29131 echo "$as_me: failed program was:" >&5
29132 sed 's/^/| /' conftest.$ac_ext >&5
29133
29134 ac_cv_lib_resolv_inet_addr=no
29135 fi
29136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29137 LIBS=$ac_check_lib_save_LIBS
29138 fi
29139 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
29140 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
29141 if test $ac_cv_lib_resolv_inet_addr = yes; then
29142 INET_LINK="resolv"
29143 else
29144
29145 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
29146 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
29147 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
29148 echo $ECHO_N "(cached) $ECHO_C" >&6
29149 else
29150 ac_check_lib_save_LIBS=$LIBS
29151 LIBS="-lsocket $LIBS"
29152 cat >conftest.$ac_ext <<_ACEOF
29153 #line $LINENO "configure"
29154 /* confdefs.h. */
29155 _ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h. */
29159
29160 /* Override any gcc2 internal prototype to avoid an error. */
29161 #ifdef __cplusplus
29162 extern "C"
29163 #endif
29164 /* We use char because int might match the return type of a gcc2
29165 builtin and then its argument prototype would still apply. */
29166 char inet_addr ();
29167 int
29168 main ()
29169 {
29170 inet_addr ();
29171 ;
29172 return 0;
29173 }
29174 _ACEOF
29175 rm -f conftest.$ac_objext conftest$ac_exeext
29176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29177 (eval $ac_link) 2>&5
29178 ac_status=$?
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); } &&
29181 { ac_try='test -s conftest$ac_exeext'
29182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29183 (eval $ac_try) 2>&5
29184 ac_status=$?
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); }; }; then
29187 ac_cv_lib_socket_inet_addr=yes
29188 else
29189 echo "$as_me: failed program was:" >&5
29190 sed 's/^/| /' conftest.$ac_ext >&5
29191
29192 ac_cv_lib_socket_inet_addr=no
29193 fi
29194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29195 LIBS=$ac_check_lib_save_LIBS
29196 fi
29197 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
29198 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
29199 if test $ac_cv_lib_socket_inet_addr = yes; then
29200 INET_LINK="socket"
29201
29202 fi
29203
29204
29205
29206 fi
29207
29208
29209
29210 fi
29211
29212
29213
29214 fi
29215 done
29216
29217
29218
29219 for ac_func in inet_aton
29220 do
29221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29222 echo "$as_me:$LINENO: checking for $ac_func" >&5
29223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29224 if eval "test \"\${$as_ac_var+set}\" = set"; then
29225 echo $ECHO_N "(cached) $ECHO_C" >&6
29226 else
29227 cat >conftest.$ac_ext <<_ACEOF
29228 #line $LINENO "configure"
29229 /* confdefs.h. */
29230 _ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h. */
29234 /* System header to define __stub macros and hopefully few prototypes,
29235 which can conflict with char $ac_func (); below.
29236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29237 <limits.h> exists even on freestanding compilers. */
29238 #ifdef __STDC__
29239 # include <limits.h>
29240 #else
29241 # include <assert.h>
29242 #endif
29243 /* Override any gcc2 internal prototype to avoid an error. */
29244 #ifdef __cplusplus
29245 extern "C"
29246 {
29247 #endif
29248 /* We use char because int might match the return type of a gcc2
29249 builtin and then its argument prototype would still apply. */
29250 char $ac_func ();
29251 /* The GNU C library defines this for functions which it implements
29252 to always fail with ENOSYS. Some functions are actually named
29253 something starting with __ and the normal name is an alias. */
29254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29255 choke me
29256 #else
29257 char (*f) () = $ac_func;
29258 #endif
29259 #ifdef __cplusplus
29260 }
29261 #endif
29262
29263 int
29264 main ()
29265 {
29266 return f != $ac_func;
29267 ;
29268 return 0;
29269 }
29270 _ACEOF
29271 rm -f conftest.$ac_objext conftest$ac_exeext
29272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29273 (eval $ac_link) 2>&5
29274 ac_status=$?
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); } &&
29277 { ac_try='test -s conftest$ac_exeext'
29278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29279 (eval $ac_try) 2>&5
29280 ac_status=$?
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); }; }; then
29283 eval "$as_ac_var=yes"
29284 else
29285 echo "$as_me: failed program was:" >&5
29286 sed 's/^/| /' conftest.$ac_ext >&5
29287
29288 eval "$as_ac_var=no"
29289 fi
29290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29291 fi
29292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29294 if test `eval echo '${'$as_ac_var'}'` = yes; then
29295 cat >>confdefs.h <<_ACEOF
29296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29297 _ACEOF
29298 cat >>confdefs.h <<\_ACEOF
29299 #define HAVE_INET_ATON 1
29300 _ACEOF
29301
29302 else
29303
29304 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
29305 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
29306 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
29307 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
29308 echo $ECHO_N "(cached) $ECHO_C" >&6
29309 else
29310 ac_check_lib_save_LIBS=$LIBS
29311 LIBS="-l$INET_LINK $LIBS"
29312 cat >conftest.$ac_ext <<_ACEOF
29313 #line $LINENO "configure"
29314 /* confdefs.h. */
29315 _ACEOF
29316 cat confdefs.h >>conftest.$ac_ext
29317 cat >>conftest.$ac_ext <<_ACEOF
29318 /* end confdefs.h. */
29319
29320 /* Override any gcc2 internal prototype to avoid an error. */
29321 #ifdef __cplusplus
29322 extern "C"
29323 #endif
29324 /* We use char because int might match the return type of a gcc2
29325 builtin and then its argument prototype would still apply. */
29326 char inet_aton ();
29327 int
29328 main ()
29329 {
29330 inet_aton ();
29331 ;
29332 return 0;
29333 }
29334 _ACEOF
29335 rm -f conftest.$ac_objext conftest$ac_exeext
29336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29337 (eval $ac_link) 2>&5
29338 ac_status=$?
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); } &&
29341 { ac_try='test -s conftest$ac_exeext'
29342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343 (eval $ac_try) 2>&5
29344 ac_status=$?
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); }; }; then
29347 eval "$as_ac_Lib=yes"
29348 else
29349 echo "$as_me: failed program was:" >&5
29350 sed 's/^/| /' conftest.$ac_ext >&5
29351
29352 eval "$as_ac_Lib=no"
29353 fi
29354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29355 LIBS=$ac_check_lib_save_LIBS
29356 fi
29357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
29358 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
29359 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29360 cat >>confdefs.h <<\_ACEOF
29361 #define HAVE_INET_ATON 1
29362 _ACEOF
29363
29364 fi
29365
29366
29367 fi
29368 done
29369
29370
29371 if test "x$INET_LINK" != "x"; then
29372 cat >>confdefs.h <<\_ACEOF
29373 #define HAVE_INET_ADDR 1
29374 _ACEOF
29375
29376 INET_LINK=" -l$INET_LINK"
29377 fi
29378
29379 fi
29380
29381
29382
29383 EXTRALIBS_ESD=
29384 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
29385 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
29386 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
29387 echo $ECHO_N "(cached) $ECHO_C" >&6
29388 else
29389 ac_check_lib_save_LIBS=$LIBS
29390 LIBS="-lesd $LIBS"
29391 cat >conftest.$ac_ext <<_ACEOF
29392 #line $LINENO "configure"
29393 /* confdefs.h. */
29394 _ACEOF
29395 cat confdefs.h >>conftest.$ac_ext
29396 cat >>conftest.$ac_ext <<_ACEOF
29397 /* end confdefs.h. */
29398
29399 /* Override any gcc2 internal prototype to avoid an error. */
29400 #ifdef __cplusplus
29401 extern "C"
29402 #endif
29403 /* We use char because int might match the return type of a gcc2
29404 builtin and then its argument prototype would still apply. */
29405 char esd_close ();
29406 int
29407 main ()
29408 {
29409 esd_close ();
29410 ;
29411 return 0;
29412 }
29413 _ACEOF
29414 rm -f conftest.$ac_objext conftest$ac_exeext
29415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29416 (eval $ac_link) 2>&5
29417 ac_status=$?
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); } &&
29420 { ac_try='test -s conftest$ac_exeext'
29421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29422 (eval $ac_try) 2>&5
29423 ac_status=$?
29424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); }; }; then
29426 ac_cv_lib_esd_esd_close=yes
29427 else
29428 echo "$as_me: failed program was:" >&5
29429 sed 's/^/| /' conftest.$ac_ext >&5
29430
29431 ac_cv_lib_esd_esd_close=no
29432 fi
29433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29434 LIBS=$ac_check_lib_save_LIBS
29435 fi
29436 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
29437 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
29438 if test $ac_cv_lib_esd_esd_close = yes; then
29439
29440
29441 for ac_header in esd.h
29442 do
29443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29445 echo "$as_me:$LINENO: checking for $ac_header" >&5
29446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29448 echo $ECHO_N "(cached) $ECHO_C" >&6
29449 fi
29450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29452 else
29453 # Is the header compilable?
29454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29456 cat >conftest.$ac_ext <<_ACEOF
29457 #line $LINENO "configure"
29458 /* confdefs.h. */
29459 _ACEOF
29460 cat confdefs.h >>conftest.$ac_ext
29461 cat >>conftest.$ac_ext <<_ACEOF
29462 /* end confdefs.h. */
29463 $ac_includes_default
29464 #include <$ac_header>
29465 _ACEOF
29466 rm -f conftest.$ac_objext
29467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29468 (eval $ac_compile) 2>&5
29469 ac_status=$?
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); } &&
29472 { ac_try='test -s conftest.$ac_objext'
29473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474 (eval $ac_try) 2>&5
29475 ac_status=$?
29476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477 (exit $ac_status); }; }; then
29478 ac_header_compiler=yes
29479 else
29480 echo "$as_me: failed program was:" >&5
29481 sed 's/^/| /' conftest.$ac_ext >&5
29482
29483 ac_header_compiler=no
29484 fi
29485 rm -f conftest.$ac_objext conftest.$ac_ext
29486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29487 echo "${ECHO_T}$ac_header_compiler" >&6
29488
29489 # Is the header present?
29490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29492 cat >conftest.$ac_ext <<_ACEOF
29493 #line $LINENO "configure"
29494 /* confdefs.h. */
29495 _ACEOF
29496 cat confdefs.h >>conftest.$ac_ext
29497 cat >>conftest.$ac_ext <<_ACEOF
29498 /* end confdefs.h. */
29499 #include <$ac_header>
29500 _ACEOF
29501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29503 ac_status=$?
29504 grep -v '^ *+' conftest.er1 >conftest.err
29505 rm -f conftest.er1
29506 cat conftest.err >&5
29507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); } >/dev/null; then
29509 if test -s conftest.err; then
29510 ac_cpp_err=$ac_c_preproc_warn_flag
29511 else
29512 ac_cpp_err=
29513 fi
29514 else
29515 ac_cpp_err=yes
29516 fi
29517 if test -z "$ac_cpp_err"; then
29518 ac_header_preproc=yes
29519 else
29520 echo "$as_me: failed program was:" >&5
29521 sed 's/^/| /' conftest.$ac_ext >&5
29522
29523 ac_header_preproc=no
29524 fi
29525 rm -f conftest.err conftest.$ac_ext
29526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29527 echo "${ECHO_T}$ac_header_preproc" >&6
29528
29529 # So? What about this header?
29530 case $ac_header_compiler:$ac_header_preproc in
29531 yes:no )
29532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29536 (
29537 cat <<\_ASBOX
29538 ## ------------------------------------ ##
29539 ## Report this to bug-autoconf@gnu.org. ##
29540 ## ------------------------------------ ##
29541 _ASBOX
29542 ) |
29543 sed "s/^/$as_me: WARNING: /" >&2
29544 ;;
29545 no:yes )
29546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29552 (
29553 cat <<\_ASBOX
29554 ## ------------------------------------ ##
29555 ## Report this to bug-autoconf@gnu.org. ##
29556 ## ------------------------------------ ##
29557 _ASBOX
29558 ) |
29559 sed "s/^/$as_me: WARNING: /" >&2
29560 ;;
29561 esac
29562 echo "$as_me:$LINENO: checking for $ac_header" >&5
29563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29565 echo $ECHO_N "(cached) $ECHO_C" >&6
29566 else
29567 eval "$as_ac_Header=$ac_header_preproc"
29568 fi
29569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29571
29572 fi
29573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29574 cat >>confdefs.h <<_ACEOF
29575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29576 _ACEOF
29577
29578 EXTRALIBS_ESD="-lesd"
29579
29580 fi
29581
29582 done
29583
29584
29585 fi
29586
29587
29588
29589 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
29590 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
29591 cat >conftest.$ac_ext <<_ACEOF
29592 #line $LINENO "configure"
29593 /* confdefs.h. */
29594 _ACEOF
29595 cat confdefs.h >>conftest.$ac_ext
29596 cat >>conftest.$ac_ext <<_ACEOF
29597 /* end confdefs.h. */
29598 #ifdef __linux__
29599 #include <linux/cdrom.h>
29600 #else
29601 /* For Solaris */
29602 #include <sys/cdio.h>
29603 #endif
29604
29605 int
29606 main ()
29607 {
29608 struct cdrom_tocentry entry, old_entry;
29609 ;
29610 return 0;
29611 }
29612 _ACEOF
29613 rm -f conftest.$ac_objext
29614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29615 (eval $ac_compile) 2>&5
29616 ac_status=$?
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); } &&
29619 { ac_try='test -s conftest.$ac_objext'
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625 echo "$as_me:$LINENO: result: yes" >&5
29626 echo "${ECHO_T}yes" >&6
29627 cat >>confdefs.h <<\_ACEOF
29628 #define HAVE_KNOWN_CDROM_INTERFACE 1
29629 _ACEOF
29630
29631 else
29632 echo "$as_me: failed program was:" >&5
29633 sed 's/^/| /' conftest.$ac_ext >&5
29634
29635 echo "$as_me:$LINENO: result: no" >&5
29636 echo "${ECHO_T}no" >&6
29637 fi
29638 rm -f conftest.$ac_objext conftest.$ac_ext
29639
29640
29641 cat >confcache <<\_ACEOF
29642 # This file is a shell script that caches the results of configure
29643 # tests run on this system so they can be shared between configure
29644 # scripts and configure runs, see configure's option --config-cache.
29645 # It is not useful on other systems. If it contains results you don't
29646 # want to keep, you may remove or edit it.
29647 #
29648 # config.status only pays attention to the cache file if you give it
29649 # the --recheck option to rerun configure.
29650 #
29651 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29653 # following values.
29654
29655 _ACEOF
29656
29657 # The following way of writing the cache mishandles newlines in values,
29658 # but we know of no workaround that is simple, portable, and efficient.
29659 # So, don't put newlines in cache variables' values.
29660 # Ultrix sh set writes to stderr and can't be redirected directly,
29661 # and sets the high bit in the cache file unless we assign to the vars.
29662 {
29663 (set) 2>&1 |
29664 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29665 *ac_space=\ *)
29666 # `set' does not quote correctly, so add quotes (double-quote
29667 # substitution turns \\\\ into \\, and sed turns \\ into \).
29668 sed -n \
29669 "s/'/'\\\\''/g;
29670 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29671 ;;
29672 *)
29673 # `set' quotes correctly as required by POSIX, so do not add quotes.
29674 sed -n \
29675 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29676 ;;
29677 esac;
29678 } |
29679 sed '
29680 t clear
29681 : clear
29682 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29683 t end
29684 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29685 : end' >>confcache
29686 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29687 if test -w $cache_file; then
29688 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29689 cat confcache >$cache_file
29690 else
29691 echo "not updating unwritable cache $cache_file"
29692 fi
29693 fi
29694 rm -f confcache
29695
29696
29697 CPP_MT_FLAG=
29698 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
29699
29700
29701 THREADS_LINK=
29702 THREADS_CFLAGS=
29703
29704 if test "$wxUSE_THREADS" = "yes" ; then
29705 if test "$USE_BEOS" = 1; then
29706 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
29707 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
29708 wxUSE_THREADS="no"
29709 fi
29710 fi
29711
29712 if test "$wxUSE_THREADS" = "yes" ; then
29713
29714
29715 THREAD_OPTS="-pthread"
29716 case "${host}" in
29717 *-*-solaris2* | *-*-sunos4* )
29718 if test "x$GCC" = "xyes"; then
29719 THREAD_OPTS="-pthreads $THREAD_OPTS"
29720 else
29721 THREAD_OPTS="-mt $THREAD_OPTS"
29722 fi
29723 ;;
29724 *-*-freebsd*)
29725 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
29726 ;;
29727 *-*-darwin* | *-*-cygwin* )
29728 THREAD_OPTS=""
29729 ;;
29730 *-*-aix*)
29731 THREAD_OPTS="pthreads"
29732 ;;
29733 *-hp-hpux* )
29734 if test "x$GCC" != "xyes"; then
29735 THREAD_OPTS=""
29736 fi
29737 ;;
29738
29739 *-*-irix* )
29740 if test "x$GCC" = "xyes"; then
29741 THREAD_OPTS=""
29742 fi
29743 ;;
29744
29745 *-*-*UnixWare*)
29746 if test "x$GCC" != "xyes"; then
29747 THREAD_OPTS="-Ethread"
29748 fi
29749 ;;
29750 esac
29751
29752 THREAD_OPTS="$THREAD_OPTS pthread none"
29753
29754 THREADS_OK=no
29755 for flag in $THREAD_OPTS; do
29756 case $flag in
29757 none)
29758 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29759 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
29760 ;;
29761
29762 -*)
29763 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29764 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
29765 THREADS_CFLAGS="$flag"
29766 ;;
29767
29768 *)
29769 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29770 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
29771 THREADS_LINK="-l$flag"
29772 ;;
29773 esac
29774
29775 save_LIBS="$LIBS"
29776 save_CFLAGS="$CFLAGS"
29777 LIBS="$THREADS_LINK $LIBS"
29778 CFLAGS="$THREADS_CFLAGS $CFLAGS"
29779
29780 cat >conftest.$ac_ext <<_ACEOF
29781 #line $LINENO "configure"
29782 /* confdefs.h. */
29783 _ACEOF
29784 cat confdefs.h >>conftest.$ac_ext
29785 cat >>conftest.$ac_ext <<_ACEOF
29786 /* end confdefs.h. */
29787 #include <pthread.h>
29788 int
29789 main ()
29790 {
29791 pthread_create(0,0,0,0);
29792 ;
29793 return 0;
29794 }
29795 _ACEOF
29796 rm -f conftest.$ac_objext conftest$ac_exeext
29797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29798 (eval $ac_link) 2>&5
29799 ac_status=$?
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); } &&
29802 { ac_try='test -s conftest$ac_exeext'
29803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29804 (eval $ac_try) 2>&5
29805 ac_status=$?
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); }; }; then
29808 THREADS_OK=yes
29809 else
29810 echo "$as_me: failed program was:" >&5
29811 sed 's/^/| /' conftest.$ac_ext >&5
29812
29813 fi
29814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29815
29816 LIBS="$save_LIBS"
29817 CFLAGS="$save_CFLAGS"
29818
29819 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29820 echo "${ECHO_T}$THREADS_OK" >&6
29821 if test "x$THREADS_OK" = "xyes"; then
29822 break;
29823 fi
29824
29825 THREADS_LINK=""
29826 THREADS_CFLAGS=""
29827 done
29828
29829 if test "x$THREADS_OK" != "xyes"; then
29830 wxUSE_THREADS=no
29831 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29832 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
29833 else
29834 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29835 LIBS="$THREADS_LINK $LIBS"
29836
29837 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29838 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
29839 flag=no
29840 case "${host}" in
29841 *-aix*)
29842 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29843 flag="-D_THREAD_SAFE"
29844 ;;
29845 *-freebsd*)
29846 flag="-D_THREAD_SAFE"
29847 ;;
29848 *-hp-hpux* )
29849 flag="-D_REENTRANT"
29850 if test "x$GCC" != "xyes"; then
29851 flag="$flag -D_RWSTD_MULTI_THREAD"
29852 fi
29853 ;;
29854 *solaris* | alpha*-osf*)
29855 flag="-D_REENTRANT"
29856 ;;
29857 esac
29858 echo "$as_me:$LINENO: result: ${flag}" >&5
29859 echo "${ECHO_T}${flag}" >&6
29860 if test "x$flag" != xno; then
29861 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
29862 fi
29863
29864 if test "x$THREADS_CFLAGS" != "x"; then
29865 CFLAGS="$CFLAGS $THREADS_CFLAGS"
29866 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29867 fi
29868 fi
29869 fi
29870
29871 if test "$wxUSE_THREADS" = "yes" ; then
29872
29873 for ac_func in thr_setconcurrency
29874 do
29875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29876 echo "$as_me:$LINENO: checking for $ac_func" >&5
29877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29878 if eval "test \"\${$as_ac_var+set}\" = set"; then
29879 echo $ECHO_N "(cached) $ECHO_C" >&6
29880 else
29881 cat >conftest.$ac_ext <<_ACEOF
29882 #line $LINENO "configure"
29883 /* confdefs.h. */
29884 _ACEOF
29885 cat confdefs.h >>conftest.$ac_ext
29886 cat >>conftest.$ac_ext <<_ACEOF
29887 /* end confdefs.h. */
29888 /* System header to define __stub macros and hopefully few prototypes,
29889 which can conflict with char $ac_func (); below.
29890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29891 <limits.h> exists even on freestanding compilers. */
29892 #ifdef __STDC__
29893 # include <limits.h>
29894 #else
29895 # include <assert.h>
29896 #endif
29897 /* Override any gcc2 internal prototype to avoid an error. */
29898 #ifdef __cplusplus
29899 extern "C"
29900 {
29901 #endif
29902 /* We use char because int might match the return type of a gcc2
29903 builtin and then its argument prototype would still apply. */
29904 char $ac_func ();
29905 /* The GNU C library defines this for functions which it implements
29906 to always fail with ENOSYS. Some functions are actually named
29907 something starting with __ and the normal name is an alias. */
29908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29909 choke me
29910 #else
29911 char (*f) () = $ac_func;
29912 #endif
29913 #ifdef __cplusplus
29914 }
29915 #endif
29916
29917 int
29918 main ()
29919 {
29920 return f != $ac_func;
29921 ;
29922 return 0;
29923 }
29924 _ACEOF
29925 rm -f conftest.$ac_objext conftest$ac_exeext
29926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29927 (eval $ac_link) 2>&5
29928 ac_status=$?
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } &&
29931 { ac_try='test -s conftest$ac_exeext'
29932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29933 (eval $ac_try) 2>&5
29934 ac_status=$?
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); }; }; then
29937 eval "$as_ac_var=yes"
29938 else
29939 echo "$as_me: failed program was:" >&5
29940 sed 's/^/| /' conftest.$ac_ext >&5
29941
29942 eval "$as_ac_var=no"
29943 fi
29944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29945 fi
29946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29948 if test `eval echo '${'$as_ac_var'}'` = yes; then
29949 cat >>confdefs.h <<_ACEOF
29950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29951 _ACEOF
29952
29953 fi
29954 done
29955
29956
29957
29958 for ac_header in sched.h
29959 do
29960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29962 echo "$as_me:$LINENO: checking for $ac_header" >&5
29963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29965 echo $ECHO_N "(cached) $ECHO_C" >&6
29966 fi
29967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29969 else
29970 # Is the header compilable?
29971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29973 cat >conftest.$ac_ext <<_ACEOF
29974 #line $LINENO "configure"
29975 /* confdefs.h. */
29976 _ACEOF
29977 cat confdefs.h >>conftest.$ac_ext
29978 cat >>conftest.$ac_ext <<_ACEOF
29979 /* end confdefs.h. */
29980 $ac_includes_default
29981 #include <$ac_header>
29982 _ACEOF
29983 rm -f conftest.$ac_objext
29984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29985 (eval $ac_compile) 2>&5
29986 ac_status=$?
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); } &&
29989 { ac_try='test -s conftest.$ac_objext'
29990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29991 (eval $ac_try) 2>&5
29992 ac_status=$?
29993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29994 (exit $ac_status); }; }; then
29995 ac_header_compiler=yes
29996 else
29997 echo "$as_me: failed program was:" >&5
29998 sed 's/^/| /' conftest.$ac_ext >&5
29999
30000 ac_header_compiler=no
30001 fi
30002 rm -f conftest.$ac_objext conftest.$ac_ext
30003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30004 echo "${ECHO_T}$ac_header_compiler" >&6
30005
30006 # Is the header present?
30007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30009 cat >conftest.$ac_ext <<_ACEOF
30010 #line $LINENO "configure"
30011 /* confdefs.h. */
30012 _ACEOF
30013 cat confdefs.h >>conftest.$ac_ext
30014 cat >>conftest.$ac_ext <<_ACEOF
30015 /* end confdefs.h. */
30016 #include <$ac_header>
30017 _ACEOF
30018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30020 ac_status=$?
30021 grep -v '^ *+' conftest.er1 >conftest.err
30022 rm -f conftest.er1
30023 cat conftest.err >&5
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); } >/dev/null; then
30026 if test -s conftest.err; then
30027 ac_cpp_err=$ac_c_preproc_warn_flag
30028 else
30029 ac_cpp_err=
30030 fi
30031 else
30032 ac_cpp_err=yes
30033 fi
30034 if test -z "$ac_cpp_err"; then
30035 ac_header_preproc=yes
30036 else
30037 echo "$as_me: failed program was:" >&5
30038 sed 's/^/| /' conftest.$ac_ext >&5
30039
30040 ac_header_preproc=no
30041 fi
30042 rm -f conftest.err conftest.$ac_ext
30043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30044 echo "${ECHO_T}$ac_header_preproc" >&6
30045
30046 # So? What about this header?
30047 case $ac_header_compiler:$ac_header_preproc in
30048 yes:no )
30049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30053 (
30054 cat <<\_ASBOX
30055 ## ------------------------------------ ##
30056 ## Report this to bug-autoconf@gnu.org. ##
30057 ## ------------------------------------ ##
30058 _ASBOX
30059 ) |
30060 sed "s/^/$as_me: WARNING: /" >&2
30061 ;;
30062 no:yes )
30063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30069 (
30070 cat <<\_ASBOX
30071 ## ------------------------------------ ##
30072 ## Report this to bug-autoconf@gnu.org. ##
30073 ## ------------------------------------ ##
30074 _ASBOX
30075 ) |
30076 sed "s/^/$as_me: WARNING: /" >&2
30077 ;;
30078 esac
30079 echo "$as_me:$LINENO: checking for $ac_header" >&5
30080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30082 echo $ECHO_N "(cached) $ECHO_C" >&6
30083 else
30084 eval "$as_ac_Header=$ac_header_preproc"
30085 fi
30086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30088
30089 fi
30090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30091 cat >>confdefs.h <<_ACEOF
30092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30093 _ACEOF
30094
30095 fi
30096
30097 done
30098
30099 if test "$ac_cv_header_sched_h" = "yes"; then
30100 echo "$as_me:$LINENO: checking for sched_yield" >&5
30101 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
30102 if test "${ac_cv_func_sched_yield+set}" = set; then
30103 echo $ECHO_N "(cached) $ECHO_C" >&6
30104 else
30105 cat >conftest.$ac_ext <<_ACEOF
30106 #line $LINENO "configure"
30107 /* confdefs.h. */
30108 _ACEOF
30109 cat confdefs.h >>conftest.$ac_ext
30110 cat >>conftest.$ac_ext <<_ACEOF
30111 /* end confdefs.h. */
30112 /* System header to define __stub macros and hopefully few prototypes,
30113 which can conflict with char sched_yield (); below.
30114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30115 <limits.h> exists even on freestanding compilers. */
30116 #ifdef __STDC__
30117 # include <limits.h>
30118 #else
30119 # include <assert.h>
30120 #endif
30121 /* Override any gcc2 internal prototype to avoid an error. */
30122 #ifdef __cplusplus
30123 extern "C"
30124 {
30125 #endif
30126 /* We use char because int might match the return type of a gcc2
30127 builtin and then its argument prototype would still apply. */
30128 char sched_yield ();
30129 /* The GNU C library defines this for functions which it implements
30130 to always fail with ENOSYS. Some functions are actually named
30131 something starting with __ and the normal name is an alias. */
30132 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
30133 choke me
30134 #else
30135 char (*f) () = sched_yield;
30136 #endif
30137 #ifdef __cplusplus
30138 }
30139 #endif
30140
30141 int
30142 main ()
30143 {
30144 return f != sched_yield;
30145 ;
30146 return 0;
30147 }
30148 _ACEOF
30149 rm -f conftest.$ac_objext conftest$ac_exeext
30150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30151 (eval $ac_link) 2>&5
30152 ac_status=$?
30153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154 (exit $ac_status); } &&
30155 { ac_try='test -s conftest$ac_exeext'
30156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30157 (eval $ac_try) 2>&5
30158 ac_status=$?
30159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); }; }; then
30161 ac_cv_func_sched_yield=yes
30162 else
30163 echo "$as_me: failed program was:" >&5
30164 sed 's/^/| /' conftest.$ac_ext >&5
30165
30166 ac_cv_func_sched_yield=no
30167 fi
30168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30169 fi
30170 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
30171 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
30172 if test $ac_cv_func_sched_yield = yes; then
30173 cat >>confdefs.h <<\_ACEOF
30174 #define HAVE_SCHED_YIELD 1
30175 _ACEOF
30176
30177 else
30178
30179 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
30180 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
30181 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
30182 echo $ECHO_N "(cached) $ECHO_C" >&6
30183 else
30184 ac_check_lib_save_LIBS=$LIBS
30185 LIBS="-lposix4 $LIBS"
30186 cat >conftest.$ac_ext <<_ACEOF
30187 #line $LINENO "configure"
30188 /* confdefs.h. */
30189 _ACEOF
30190 cat confdefs.h >>conftest.$ac_ext
30191 cat >>conftest.$ac_ext <<_ACEOF
30192 /* end confdefs.h. */
30193
30194 /* Override any gcc2 internal prototype to avoid an error. */
30195 #ifdef __cplusplus
30196 extern "C"
30197 #endif
30198 /* We use char because int might match the return type of a gcc2
30199 builtin and then its argument prototype would still apply. */
30200 char sched_yield ();
30201 int
30202 main ()
30203 {
30204 sched_yield ();
30205 ;
30206 return 0;
30207 }
30208 _ACEOF
30209 rm -f conftest.$ac_objext conftest$ac_exeext
30210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30211 (eval $ac_link) 2>&5
30212 ac_status=$?
30213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214 (exit $ac_status); } &&
30215 { ac_try='test -s conftest$ac_exeext'
30216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217 (eval $ac_try) 2>&5
30218 ac_status=$?
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; }; then
30221 ac_cv_lib_posix4_sched_yield=yes
30222 else
30223 echo "$as_me: failed program was:" >&5
30224 sed 's/^/| /' conftest.$ac_ext >&5
30225
30226 ac_cv_lib_posix4_sched_yield=no
30227 fi
30228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30229 LIBS=$ac_check_lib_save_LIBS
30230 fi
30231 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
30232 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
30233 if test $ac_cv_lib_posix4_sched_yield = yes; then
30234 cat >>confdefs.h <<\_ACEOF
30235 #define HAVE_SCHED_YIELD 1
30236 _ACEOF
30237 POSIX4_LINK=" -lposix4"
30238 else
30239 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
30240 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
30241
30242 fi
30243
30244
30245
30246 fi
30247
30248 fi
30249
30250 HAVE_PRIOR_FUNCS=0
30251 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
30252 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
30253 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
30254 echo $ECHO_N "(cached) $ECHO_C" >&6
30255 else
30256 cat >conftest.$ac_ext <<_ACEOF
30257 #line $LINENO "configure"
30258 /* confdefs.h. */
30259 _ACEOF
30260 cat confdefs.h >>conftest.$ac_ext
30261 cat >>conftest.$ac_ext <<_ACEOF
30262 /* end confdefs.h. */
30263 /* System header to define __stub macros and hopefully few prototypes,
30264 which can conflict with char pthread_attr_getschedpolicy (); below.
30265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30266 <limits.h> exists even on freestanding compilers. */
30267 #ifdef __STDC__
30268 # include <limits.h>
30269 #else
30270 # include <assert.h>
30271 #endif
30272 /* Override any gcc2 internal prototype to avoid an error. */
30273 #ifdef __cplusplus
30274 extern "C"
30275 {
30276 #endif
30277 /* We use char because int might match the return type of a gcc2
30278 builtin and then its argument prototype would still apply. */
30279 char pthread_attr_getschedpolicy ();
30280 /* The GNU C library defines this for functions which it implements
30281 to always fail with ENOSYS. Some functions are actually named
30282 something starting with __ and the normal name is an alias. */
30283 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
30284 choke me
30285 #else
30286 char (*f) () = pthread_attr_getschedpolicy;
30287 #endif
30288 #ifdef __cplusplus
30289 }
30290 #endif
30291
30292 int
30293 main ()
30294 {
30295 return f != pthread_attr_getschedpolicy;
30296 ;
30297 return 0;
30298 }
30299 _ACEOF
30300 rm -f conftest.$ac_objext conftest$ac_exeext
30301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30302 (eval $ac_link) 2>&5
30303 ac_status=$?
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); } &&
30306 { ac_try='test -s conftest$ac_exeext'
30307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30308 (eval $ac_try) 2>&5
30309 ac_status=$?
30310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311 (exit $ac_status); }; }; then
30312 ac_cv_func_pthread_attr_getschedpolicy=yes
30313 else
30314 echo "$as_me: failed program was:" >&5
30315 sed 's/^/| /' conftest.$ac_ext >&5
30316
30317 ac_cv_func_pthread_attr_getschedpolicy=no
30318 fi
30319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30320 fi
30321 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
30322 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
30323 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
30324 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
30325 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
30326 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
30327 echo $ECHO_N "(cached) $ECHO_C" >&6
30328 else
30329 cat >conftest.$ac_ext <<_ACEOF
30330 #line $LINENO "configure"
30331 /* confdefs.h. */
30332 _ACEOF
30333 cat confdefs.h >>conftest.$ac_ext
30334 cat >>conftest.$ac_ext <<_ACEOF
30335 /* end confdefs.h. */
30336 /* System header to define __stub macros and hopefully few prototypes,
30337 which can conflict with char pthread_attr_setschedparam (); below.
30338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30339 <limits.h> exists even on freestanding compilers. */
30340 #ifdef __STDC__
30341 # include <limits.h>
30342 #else
30343 # include <assert.h>
30344 #endif
30345 /* Override any gcc2 internal prototype to avoid an error. */
30346 #ifdef __cplusplus
30347 extern "C"
30348 {
30349 #endif
30350 /* We use char because int might match the return type of a gcc2
30351 builtin and then its argument prototype would still apply. */
30352 char pthread_attr_setschedparam ();
30353 /* The GNU C library defines this for functions which it implements
30354 to always fail with ENOSYS. Some functions are actually named
30355 something starting with __ and the normal name is an alias. */
30356 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
30357 choke me
30358 #else
30359 char (*f) () = pthread_attr_setschedparam;
30360 #endif
30361 #ifdef __cplusplus
30362 }
30363 #endif
30364
30365 int
30366 main ()
30367 {
30368 return f != pthread_attr_setschedparam;
30369 ;
30370 return 0;
30371 }
30372 _ACEOF
30373 rm -f conftest.$ac_objext conftest$ac_exeext
30374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30375 (eval $ac_link) 2>&5
30376 ac_status=$?
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); } &&
30379 { ac_try='test -s conftest$ac_exeext'
30380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30381 (eval $ac_try) 2>&5
30382 ac_status=$?
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; }; then
30385 ac_cv_func_pthread_attr_setschedparam=yes
30386 else
30387 echo "$as_me: failed program was:" >&5
30388 sed 's/^/| /' conftest.$ac_ext >&5
30389
30390 ac_cv_func_pthread_attr_setschedparam=no
30391 fi
30392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30393 fi
30394 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
30395 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
30396 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
30397 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
30398 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
30399 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
30400 echo $ECHO_N "(cached) $ECHO_C" >&6
30401 else
30402 cat >conftest.$ac_ext <<_ACEOF
30403 #line $LINENO "configure"
30404 /* confdefs.h. */
30405 _ACEOF
30406 cat confdefs.h >>conftest.$ac_ext
30407 cat >>conftest.$ac_ext <<_ACEOF
30408 /* end confdefs.h. */
30409 /* System header to define __stub macros and hopefully few prototypes,
30410 which can conflict with char sched_get_priority_max (); below.
30411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30412 <limits.h> exists even on freestanding compilers. */
30413 #ifdef __STDC__
30414 # include <limits.h>
30415 #else
30416 # include <assert.h>
30417 #endif
30418 /* Override any gcc2 internal prototype to avoid an error. */
30419 #ifdef __cplusplus
30420 extern "C"
30421 {
30422 #endif
30423 /* We use char because int might match the return type of a gcc2
30424 builtin and then its argument prototype would still apply. */
30425 char sched_get_priority_max ();
30426 /* The GNU C library defines this for functions which it implements
30427 to always fail with ENOSYS. Some functions are actually named
30428 something starting with __ and the normal name is an alias. */
30429 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
30430 choke me
30431 #else
30432 char (*f) () = sched_get_priority_max;
30433 #endif
30434 #ifdef __cplusplus
30435 }
30436 #endif
30437
30438 int
30439 main ()
30440 {
30441 return f != sched_get_priority_max;
30442 ;
30443 return 0;
30444 }
30445 _ACEOF
30446 rm -f conftest.$ac_objext conftest$ac_exeext
30447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30448 (eval $ac_link) 2>&5
30449 ac_status=$?
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); } &&
30452 { ac_try='test -s conftest$ac_exeext'
30453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30454 (eval $ac_try) 2>&5
30455 ac_status=$?
30456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457 (exit $ac_status); }; }; then
30458 ac_cv_func_sched_get_priority_max=yes
30459 else
30460 echo "$as_me: failed program was:" >&5
30461 sed 's/^/| /' conftest.$ac_ext >&5
30462
30463 ac_cv_func_sched_get_priority_max=no
30464 fi
30465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30466 fi
30467 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
30468 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
30469 if test $ac_cv_func_sched_get_priority_max = yes; then
30470 HAVE_PRIOR_FUNCS=1
30471 else
30472 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
30473 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
30474 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
30475 echo $ECHO_N "(cached) $ECHO_C" >&6
30476 else
30477 ac_check_lib_save_LIBS=$LIBS
30478 LIBS="-lposix4 $LIBS"
30479 cat >conftest.$ac_ext <<_ACEOF
30480 #line $LINENO "configure"
30481 /* confdefs.h. */
30482 _ACEOF
30483 cat confdefs.h >>conftest.$ac_ext
30484 cat >>conftest.$ac_ext <<_ACEOF
30485 /* end confdefs.h. */
30486
30487 /* Override any gcc2 internal prototype to avoid an error. */
30488 #ifdef __cplusplus
30489 extern "C"
30490 #endif
30491 /* We use char because int might match the return type of a gcc2
30492 builtin and then its argument prototype would still apply. */
30493 char sched_get_priority_max ();
30494 int
30495 main ()
30496 {
30497 sched_get_priority_max ();
30498 ;
30499 return 0;
30500 }
30501 _ACEOF
30502 rm -f conftest.$ac_objext conftest$ac_exeext
30503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30504 (eval $ac_link) 2>&5
30505 ac_status=$?
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); } &&
30508 { ac_try='test -s conftest$ac_exeext'
30509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30510 (eval $ac_try) 2>&5
30511 ac_status=$?
30512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30513 (exit $ac_status); }; }; then
30514 ac_cv_lib_posix4_sched_get_priority_max=yes
30515 else
30516 echo "$as_me: failed program was:" >&5
30517 sed 's/^/| /' conftest.$ac_ext >&5
30518
30519 ac_cv_lib_posix4_sched_get_priority_max=no
30520 fi
30521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30522 LIBS=$ac_check_lib_save_LIBS
30523 fi
30524 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
30525 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
30526 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
30527
30528 HAVE_PRIOR_FUNCS=1
30529 POSIX4_LINK=" -lposix4"
30530
30531 fi
30532
30533
30534 fi
30535
30536
30537 fi
30538
30539
30540 fi
30541
30542
30543 if test "$HAVE_PRIOR_FUNCS" = 1; then
30544 cat >>confdefs.h <<\_ACEOF
30545 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
30546 _ACEOF
30547
30548 else
30549 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
30550 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
30551 fi
30552
30553 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
30554 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
30555 if test "${ac_cv_func_pthread_cancel+set}" = set; then
30556 echo $ECHO_N "(cached) $ECHO_C" >&6
30557 else
30558 cat >conftest.$ac_ext <<_ACEOF
30559 #line $LINENO "configure"
30560 /* confdefs.h. */
30561 _ACEOF
30562 cat confdefs.h >>conftest.$ac_ext
30563 cat >>conftest.$ac_ext <<_ACEOF
30564 /* end confdefs.h. */
30565 /* System header to define __stub macros and hopefully few prototypes,
30566 which can conflict with char pthread_cancel (); below.
30567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30568 <limits.h> exists even on freestanding compilers. */
30569 #ifdef __STDC__
30570 # include <limits.h>
30571 #else
30572 # include <assert.h>
30573 #endif
30574 /* Override any gcc2 internal prototype to avoid an error. */
30575 #ifdef __cplusplus
30576 extern "C"
30577 {
30578 #endif
30579 /* We use char because int might match the return type of a gcc2
30580 builtin and then its argument prototype would still apply. */
30581 char pthread_cancel ();
30582 /* The GNU C library defines this for functions which it implements
30583 to always fail with ENOSYS. Some functions are actually named
30584 something starting with __ and the normal name is an alias. */
30585 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
30586 choke me
30587 #else
30588 char (*f) () = pthread_cancel;
30589 #endif
30590 #ifdef __cplusplus
30591 }
30592 #endif
30593
30594 int
30595 main ()
30596 {
30597 return f != pthread_cancel;
30598 ;
30599 return 0;
30600 }
30601 _ACEOF
30602 rm -f conftest.$ac_objext conftest$ac_exeext
30603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30604 (eval $ac_link) 2>&5
30605 ac_status=$?
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); } &&
30608 { ac_try='test -s conftest$ac_exeext'
30609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30610 (eval $ac_try) 2>&5
30611 ac_status=$?
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); }; }; then
30614 ac_cv_func_pthread_cancel=yes
30615 else
30616 echo "$as_me: failed program was:" >&5
30617 sed 's/^/| /' conftest.$ac_ext >&5
30618
30619 ac_cv_func_pthread_cancel=no
30620 fi
30621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30622 fi
30623 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
30624 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
30625 if test $ac_cv_func_pthread_cancel = yes; then
30626 cat >>confdefs.h <<\_ACEOF
30627 #define HAVE_PTHREAD_CANCEL 1
30628 _ACEOF
30629
30630 else
30631 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
30632 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
30633 fi
30634
30635
30636
30637
30638 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
30639 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
30640 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
30641 echo $ECHO_N "(cached) $ECHO_C" >&6
30642 else
30643
30644 cat >conftest.$ac_ext <<_ACEOF
30645 #line $LINENO "configure"
30646 /* confdefs.h. */
30647 _ACEOF
30648 cat confdefs.h >>conftest.$ac_ext
30649 cat >>conftest.$ac_ext <<_ACEOF
30650 /* end confdefs.h. */
30651 #include <pthread.h>
30652 int
30653 main ()
30654 {
30655
30656 pthread_mutexattr_t attr;
30657 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
30658
30659 ;
30660 return 0;
30661 }
30662 _ACEOF
30663 rm -f conftest.$ac_objext
30664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30665 (eval $ac_compile) 2>&5
30666 ac_status=$?
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); } &&
30669 { ac_try='test -s conftest.$ac_objext'
30670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30671 (eval $ac_try) 2>&5
30672 ac_status=$?
30673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30674 (exit $ac_status); }; }; then
30675
30676 wx_cv_type_pthread_mutexattr_t=yes
30677
30678 else
30679 echo "$as_me: failed program was:" >&5
30680 sed 's/^/| /' conftest.$ac_ext >&5
30681
30682
30683 wx_cv_type_pthread_mutexattr_t=no
30684
30685
30686 fi
30687 rm -f conftest.$ac_objext conftest.$ac_ext
30688
30689 fi
30690 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
30691 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
30692
30693 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
30694 cat >>confdefs.h <<\_ACEOF
30695 #define HAVE_PTHREAD_MUTEXATTR_T 1
30696 _ACEOF
30697
30698 else
30699 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
30700 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
30701 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
30702 echo $ECHO_N "(cached) $ECHO_C" >&6
30703 else
30704
30705 cat >conftest.$ac_ext <<_ACEOF
30706 #line $LINENO "configure"
30707 /* confdefs.h. */
30708 _ACEOF
30709 cat confdefs.h >>conftest.$ac_ext
30710 cat >>conftest.$ac_ext <<_ACEOF
30711 /* end confdefs.h. */
30712 #include <pthread.h>
30713 int
30714 main ()
30715 {
30716
30717 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
30718
30719 ;
30720 return 0;
30721 }
30722 _ACEOF
30723 rm -f conftest.$ac_objext
30724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30725 (eval $ac_compile) 2>&5
30726 ac_status=$?
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); } &&
30729 { ac_try='test -s conftest.$ac_objext'
30730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30731 (eval $ac_try) 2>&5
30732 ac_status=$?
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); }; }; then
30735
30736 wx_cv_type_pthread_rec_mutex_init=yes
30737
30738 else
30739 echo "$as_me: failed program was:" >&5
30740 sed 's/^/| /' conftest.$ac_ext >&5
30741
30742
30743 wx_cv_type_pthread_rec_mutex_init=no
30744
30745
30746 fi
30747 rm -f conftest.$ac_objext conftest.$ac_ext
30748
30749 fi
30750 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30751 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
30752 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
30753 cat >>confdefs.h <<\_ACEOF
30754 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
30755 _ACEOF
30756
30757 else
30758 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30759 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
30760 fi
30761 fi
30762 fi
30763
30764 else
30765 if test "$wxUSE_THREADS" = "yes" ; then
30766 case "${host}" in
30767 *-*-mingw32* )
30768 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30769 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30770 if test "${wx_cv_cflags_mthread+set}" = set; then
30771 echo $ECHO_N "(cached) $ECHO_C" >&6
30772 else
30773
30774 CFLAGS_OLD="$CFLAGS"
30775 CFLAGS="$CFLAGS -mthreads"
30776 cat >conftest.$ac_ext <<_ACEOF
30777 #line $LINENO "configure"
30778 /* confdefs.h. */
30779 _ACEOF
30780 cat confdefs.h >>conftest.$ac_ext
30781 cat >>conftest.$ac_ext <<_ACEOF
30782 /* end confdefs.h. */
30783
30784 int
30785 main ()
30786 {
30787
30788 ;
30789 return 0;
30790 }
30791 _ACEOF
30792 rm -f conftest.$ac_objext
30793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30794 (eval $ac_compile) 2>&5
30795 ac_status=$?
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); } &&
30798 { ac_try='test -s conftest.$ac_objext'
30799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30800 (eval $ac_try) 2>&5
30801 ac_status=$?
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; }; then
30804 wx_cv_cflags_mthread=yes
30805 else
30806 echo "$as_me: failed program was:" >&5
30807 sed 's/^/| /' conftest.$ac_ext >&5
30808
30809 wx_cv_cflags_mthread=no
30810
30811 fi
30812 rm -f conftest.$ac_objext conftest.$ac_ext
30813
30814
30815 fi
30816 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30817 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
30818
30819 if test "$wx_cv_cflags_mthread" = "yes"; then
30820 CXXFLAGS="$CXXFLAGS -mthreads"
30821 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30822 LDFLAGS="$LDFLAGS -mthreads"
30823 else
30824 CFLAGS="$CFLAGS_OLD"
30825 fi
30826 ;;
30827 *-pc-os2*emx )
30828 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
30829 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
30830 LDFLAGS="$LDFLAGS -Zmt"
30831 ;;
30832 esac
30833 fi
30834 fi
30835
30836 if test "$wxUSE_THREADS" = "yes"; then
30837 cat >>confdefs.h <<\_ACEOF
30838 #define wxUSE_THREADS 1
30839 _ACEOF
30840
30841
30842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
30843 else
30844 if test "$ac_cv_func_strtok_r" = "yes"; then
30845 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30846 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
30847 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30848 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
30849 echo "$as_me:$LINENO: result: yes" >&5
30850 echo "${ECHO_T}yes" >&6
30851 else
30852 echo "$as_me:$LINENO: result: no" >&5
30853 echo "${ECHO_T}no" >&6
30854 fi
30855 fi
30856 fi
30857
30858 if test "$WXGTK20" = 1 ; then
30859 cat >>confdefs.h <<_ACEOF
30860 #define __WXGTK20__ $WXGTK20
30861 _ACEOF
30862
30863 WXGTK12=1
30864 fi
30865
30866 if test "$WXGTK12" = 1 ; then
30867 cat >>confdefs.h <<_ACEOF
30868 #define __WXGTK12__ $WXGTK12
30869 _ACEOF
30870
30871 fi
30872
30873 if test "$WXGTK127" = 1 ; then
30874 cat >>confdefs.h <<_ACEOF
30875 #define __WXGTK127__ $WXGTK127
30876 _ACEOF
30877
30878 fi
30879
30880 WXDEBUG=
30881
30882 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30883 WXDEBUG="-g"
30884 wxUSE_OPTIMISE=no
30885 fi
30886
30887 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30888 wxUSE_DEBUG_INFO=yes
30889 WXDEBUG="-ggdb"
30890 fi
30891
30892 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
30893 cat >>confdefs.h <<\_ACEOF
30894 #define WXDEBUG 1
30895 _ACEOF
30896
30897 WXDEBUG_DEFINE="-D__WXDEBUG__"
30898 else
30899 if test "$wxUSE_GTK" = 1 ; then
30900 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30901 fi
30902 fi
30903
30904 if test "$wxUSE_MEM_TRACING" = "yes" ; then
30905 cat >>confdefs.h <<\_ACEOF
30906 #define wxUSE_MEMORY_TRACING 1
30907 _ACEOF
30908
30909 cat >>confdefs.h <<\_ACEOF
30910 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
30911 _ACEOF
30912
30913 cat >>confdefs.h <<\_ACEOF
30914 #define wxUSE_DEBUG_NEW_ALWAYS 1
30915 _ACEOF
30916
30917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30918 fi
30919
30920 if test "$wxUSE_DMALLOC" = "yes" ; then
30921 DMALLOC_LIBS="-ldmalloc"
30922 fi
30923
30924 PROFILE=
30925 if test "$wxUSE_PROFILE" = "yes" ; then
30926 PROFILE=" -pg"
30927 fi
30928
30929 CODE_GEN_FLAGS=
30930 CODE_GEN_FLAGS_CXX=
30931 if test "$GCC" = "yes" ; then
30932 if test "$wxUSE_NO_RTTI" = "yes" ; then
30933 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
30934 fi
30935 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30936 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30937 fi
30938 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30939 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30940 fi
30941
30942 case "${host}" in
30943 powerpc*-*-aix* )
30944 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30945 ;;
30946 *-hppa* )
30947 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30948 ;;
30949 esac
30950 fi
30951
30952 OPTIMISE=
30953 if test "$wxUSE_OPTIMISE" = "no" ; then
30954 if test "$GCC" = yes ; then
30955 OPTIMISE="-O0"
30956 fi
30957 else
30958 if test "$GCC" = yes ; then
30959 OPTIMISE="-O2"
30960
30961 case "${host}" in
30962 i586-*-*|i686-*-* )
30963 OPTIMISE="${OPTIMISE} "
30964 ;;
30965 esac
30966 else
30967 OPTIMISE="-O"
30968 fi
30969 fi
30970
30971
30972 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
30973 cat >>confdefs.h <<\_ACEOF
30974 #define WXWIN_COMPATIBILITY_2_2 1
30975 _ACEOF
30976
30977
30978 WXWIN_COMPATIBILITY_2_4="yes"
30979 fi
30980
30981 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
30982 cat >>confdefs.h <<\_ACEOF
30983 #define WXWIN_COMPATIBILITY_2_4 1
30984 _ACEOF
30985
30986 fi
30987
30988
30989 if test "$wxUSE_GUI" = "yes"; then
30990 cat >>confdefs.h <<\_ACEOF
30991 #define wxUSE_GUI 1
30992 _ACEOF
30993
30994
30995 else
30996 cat >>confdefs.h <<\_ACEOF
30997 #define wxUSE_NOGUI 1
30998 _ACEOF
30999
31000 fi
31001
31002
31003 if test "$wxUSE_UNIX" = "yes"; then
31004 cat >>confdefs.h <<\_ACEOF
31005 #define wxUSE_UNIX 1
31006 _ACEOF
31007
31008 fi
31009
31010
31011 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31012
31013 HAVE_DL_FUNCS=0
31014 HAVE_SHL_FUNCS=0
31015 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31016 if test "$USE_DARWIN" = 1; then
31017 HAVE_DL_FUNCS=1
31018 else
31019
31020 for ac_func in dlopen
31021 do
31022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31023 echo "$as_me:$LINENO: checking for $ac_func" >&5
31024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31025 if eval "test \"\${$as_ac_var+set}\" = set"; then
31026 echo $ECHO_N "(cached) $ECHO_C" >&6
31027 else
31028 cat >conftest.$ac_ext <<_ACEOF
31029 #line $LINENO "configure"
31030 /* confdefs.h. */
31031 _ACEOF
31032 cat confdefs.h >>conftest.$ac_ext
31033 cat >>conftest.$ac_ext <<_ACEOF
31034 /* end confdefs.h. */
31035 /* System header to define __stub macros and hopefully few prototypes,
31036 which can conflict with char $ac_func (); below.
31037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31038 <limits.h> exists even on freestanding compilers. */
31039 #ifdef __STDC__
31040 # include <limits.h>
31041 #else
31042 # include <assert.h>
31043 #endif
31044 /* Override any gcc2 internal prototype to avoid an error. */
31045 #ifdef __cplusplus
31046 extern "C"
31047 {
31048 #endif
31049 /* We use char because int might match the return type of a gcc2
31050 builtin and then its argument prototype would still apply. */
31051 char $ac_func ();
31052 /* The GNU C library defines this for functions which it implements
31053 to always fail with ENOSYS. Some functions are actually named
31054 something starting with __ and the normal name is an alias. */
31055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31056 choke me
31057 #else
31058 char (*f) () = $ac_func;
31059 #endif
31060 #ifdef __cplusplus
31061 }
31062 #endif
31063
31064 int
31065 main ()
31066 {
31067 return f != $ac_func;
31068 ;
31069 return 0;
31070 }
31071 _ACEOF
31072 rm -f conftest.$ac_objext conftest$ac_exeext
31073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31074 (eval $ac_link) 2>&5
31075 ac_status=$?
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); } &&
31078 { ac_try='test -s conftest$ac_exeext'
31079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31080 (eval $ac_try) 2>&5
31081 ac_status=$?
31082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083 (exit $ac_status); }; }; then
31084 eval "$as_ac_var=yes"
31085 else
31086 echo "$as_me: failed program was:" >&5
31087 sed 's/^/| /' conftest.$ac_ext >&5
31088
31089 eval "$as_ac_var=no"
31090 fi
31091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31092 fi
31093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31095 if test `eval echo '${'$as_ac_var'}'` = yes; then
31096 cat >>confdefs.h <<_ACEOF
31097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31098 _ACEOF
31099
31100 cat >>confdefs.h <<\_ACEOF
31101 #define HAVE_DLOPEN 1
31102 _ACEOF
31103
31104 HAVE_DL_FUNCS=1
31105
31106 else
31107
31108 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31109 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31110 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31111 echo $ECHO_N "(cached) $ECHO_C" >&6
31112 else
31113 ac_check_lib_save_LIBS=$LIBS
31114 LIBS="-ldl $LIBS"
31115 cat >conftest.$ac_ext <<_ACEOF
31116 #line $LINENO "configure"
31117 /* confdefs.h. */
31118 _ACEOF
31119 cat confdefs.h >>conftest.$ac_ext
31120 cat >>conftest.$ac_ext <<_ACEOF
31121 /* end confdefs.h. */
31122
31123 /* Override any gcc2 internal prototype to avoid an error. */
31124 #ifdef __cplusplus
31125 extern "C"
31126 #endif
31127 /* We use char because int might match the return type of a gcc2
31128 builtin and then its argument prototype would still apply. */
31129 char dlopen ();
31130 int
31131 main ()
31132 {
31133 dlopen ();
31134 ;
31135 return 0;
31136 }
31137 _ACEOF
31138 rm -f conftest.$ac_objext conftest$ac_exeext
31139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31140 (eval $ac_link) 2>&5
31141 ac_status=$?
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); } &&
31144 { ac_try='test -s conftest$ac_exeext'
31145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31146 (eval $ac_try) 2>&5
31147 ac_status=$?
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; }; then
31150 ac_cv_lib_dl_dlopen=yes
31151 else
31152 echo "$as_me: failed program was:" >&5
31153 sed 's/^/| /' conftest.$ac_ext >&5
31154
31155 ac_cv_lib_dl_dlopen=no
31156 fi
31157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31158 LIBS=$ac_check_lib_save_LIBS
31159 fi
31160 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31161 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31162 if test $ac_cv_lib_dl_dlopen = yes; then
31163
31164 cat >>confdefs.h <<\_ACEOF
31165 #define HAVE_DLOPEN 1
31166 _ACEOF
31167
31168 HAVE_DL_FUNCS=1
31169 DL_LINK=" -ldl$DL_LINK"
31170
31171 else
31172
31173
31174 for ac_func in shl_load
31175 do
31176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31177 echo "$as_me:$LINENO: checking for $ac_func" >&5
31178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31179 if eval "test \"\${$as_ac_var+set}\" = set"; then
31180 echo $ECHO_N "(cached) $ECHO_C" >&6
31181 else
31182 cat >conftest.$ac_ext <<_ACEOF
31183 #line $LINENO "configure"
31184 /* confdefs.h. */
31185 _ACEOF
31186 cat confdefs.h >>conftest.$ac_ext
31187 cat >>conftest.$ac_ext <<_ACEOF
31188 /* end confdefs.h. */
31189 /* System header to define __stub macros and hopefully few prototypes,
31190 which can conflict with char $ac_func (); below.
31191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31192 <limits.h> exists even on freestanding compilers. */
31193 #ifdef __STDC__
31194 # include <limits.h>
31195 #else
31196 # include <assert.h>
31197 #endif
31198 /* Override any gcc2 internal prototype to avoid an error. */
31199 #ifdef __cplusplus
31200 extern "C"
31201 {
31202 #endif
31203 /* We use char because int might match the return type of a gcc2
31204 builtin and then its argument prototype would still apply. */
31205 char $ac_func ();
31206 /* The GNU C library defines this for functions which it implements
31207 to always fail with ENOSYS. Some functions are actually named
31208 something starting with __ and the normal name is an alias. */
31209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31210 choke me
31211 #else
31212 char (*f) () = $ac_func;
31213 #endif
31214 #ifdef __cplusplus
31215 }
31216 #endif
31217
31218 int
31219 main ()
31220 {
31221 return f != $ac_func;
31222 ;
31223 return 0;
31224 }
31225 _ACEOF
31226 rm -f conftest.$ac_objext conftest$ac_exeext
31227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31228 (eval $ac_link) 2>&5
31229 ac_status=$?
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); } &&
31232 { ac_try='test -s conftest$ac_exeext'
31233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31234 (eval $ac_try) 2>&5
31235 ac_status=$?
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); }; }; then
31238 eval "$as_ac_var=yes"
31239 else
31240 echo "$as_me: failed program was:" >&5
31241 sed 's/^/| /' conftest.$ac_ext >&5
31242
31243 eval "$as_ac_var=no"
31244 fi
31245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31246 fi
31247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31249 if test `eval echo '${'$as_ac_var'}'` = yes; then
31250 cat >>confdefs.h <<_ACEOF
31251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31252 _ACEOF
31253
31254 cat >>confdefs.h <<\_ACEOF
31255 #define HAVE_SHL_LOAD 1
31256 _ACEOF
31257
31258 HAVE_SHL_FUNCS=1
31259
31260 else
31261
31262 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31263 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31264 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31265 echo $ECHO_N "(cached) $ECHO_C" >&6
31266 else
31267 ac_check_lib_save_LIBS=$LIBS
31268 LIBS="-lshl_load $LIBS"
31269 cat >conftest.$ac_ext <<_ACEOF
31270 #line $LINENO "configure"
31271 /* confdefs.h. */
31272 _ACEOF
31273 cat confdefs.h >>conftest.$ac_ext
31274 cat >>conftest.$ac_ext <<_ACEOF
31275 /* end confdefs.h. */
31276
31277 /* Override any gcc2 internal prototype to avoid an error. */
31278 #ifdef __cplusplus
31279 extern "C"
31280 #endif
31281 /* We use char because int might match the return type of a gcc2
31282 builtin and then its argument prototype would still apply. */
31283 char dld ();
31284 int
31285 main ()
31286 {
31287 dld ();
31288 ;
31289 return 0;
31290 }
31291 _ACEOF
31292 rm -f conftest.$ac_objext conftest$ac_exeext
31293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31294 (eval $ac_link) 2>&5
31295 ac_status=$?
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); } &&
31298 { ac_try='test -s conftest$ac_exeext'
31299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31300 (eval $ac_try) 2>&5
31301 ac_status=$?
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; }; then
31304 ac_cv_lib_shl_load_dld=yes
31305 else
31306 echo "$as_me: failed program was:" >&5
31307 sed 's/^/| /' conftest.$ac_ext >&5
31308
31309 ac_cv_lib_shl_load_dld=no
31310 fi
31311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31312 LIBS=$ac_check_lib_save_LIBS
31313 fi
31314 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31315 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31316 if test $ac_cv_lib_shl_load_dld = yes; then
31317
31318 HAVE_SHL_FUNCS=1
31319 DL_LINK=" -ldld$DL_LINK"
31320
31321 fi
31322
31323
31324 fi
31325 done
31326
31327
31328 fi
31329
31330
31331 fi
31332 done
31333
31334
31335 if test "$HAVE_DL_FUNCS" = 1; then
31336
31337 for ac_func in dlerror
31338 do
31339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31340 echo "$as_me:$LINENO: checking for $ac_func" >&5
31341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31342 if eval "test \"\${$as_ac_var+set}\" = set"; then
31343 echo $ECHO_N "(cached) $ECHO_C" >&6
31344 else
31345 cat >conftest.$ac_ext <<_ACEOF
31346 #line $LINENO "configure"
31347 /* confdefs.h. */
31348 _ACEOF
31349 cat confdefs.h >>conftest.$ac_ext
31350 cat >>conftest.$ac_ext <<_ACEOF
31351 /* end confdefs.h. */
31352 /* System header to define __stub macros and hopefully few prototypes,
31353 which can conflict with char $ac_func (); below.
31354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31355 <limits.h> exists even on freestanding compilers. */
31356 #ifdef __STDC__
31357 # include <limits.h>
31358 #else
31359 # include <assert.h>
31360 #endif
31361 /* Override any gcc2 internal prototype to avoid an error. */
31362 #ifdef __cplusplus
31363 extern "C"
31364 {
31365 #endif
31366 /* We use char because int might match the return type of a gcc2
31367 builtin and then its argument prototype would still apply. */
31368 char $ac_func ();
31369 /* The GNU C library defines this for functions which it implements
31370 to always fail with ENOSYS. Some functions are actually named
31371 something starting with __ and the normal name is an alias. */
31372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31373 choke me
31374 #else
31375 char (*f) () = $ac_func;
31376 #endif
31377 #ifdef __cplusplus
31378 }
31379 #endif
31380
31381 int
31382 main ()
31383 {
31384 return f != $ac_func;
31385 ;
31386 return 0;
31387 }
31388 _ACEOF
31389 rm -f conftest.$ac_objext conftest$ac_exeext
31390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31391 (eval $ac_link) 2>&5
31392 ac_status=$?
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); } &&
31395 { ac_try='test -s conftest$ac_exeext'
31396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31397 (eval $ac_try) 2>&5
31398 ac_status=$?
31399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400 (exit $ac_status); }; }; then
31401 eval "$as_ac_var=yes"
31402 else
31403 echo "$as_me: failed program was:" >&5
31404 sed 's/^/| /' conftest.$ac_ext >&5
31405
31406 eval "$as_ac_var=no"
31407 fi
31408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31409 fi
31410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31412 if test `eval echo '${'$as_ac_var'}'` = yes; then
31413 cat >>confdefs.h <<_ACEOF
31414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31415 _ACEOF
31416 cat >>confdefs.h <<\_ACEOF
31417 #define HAVE_DLERROR 1
31418 _ACEOF
31419
31420 else
31421
31422 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31423 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31424 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31425 echo $ECHO_N "(cached) $ECHO_C" >&6
31426 else
31427 ac_check_lib_save_LIBS=$LIBS
31428 LIBS="-ldl $LIBS"
31429 cat >conftest.$ac_ext <<_ACEOF
31430 #line $LINENO "configure"
31431 /* confdefs.h. */
31432 _ACEOF
31433 cat confdefs.h >>conftest.$ac_ext
31434 cat >>conftest.$ac_ext <<_ACEOF
31435 /* end confdefs.h. */
31436
31437 /* Override any gcc2 internal prototype to avoid an error. */
31438 #ifdef __cplusplus
31439 extern "C"
31440 #endif
31441 /* We use char because int might match the return type of a gcc2
31442 builtin and then its argument prototype would still apply. */
31443 char dlerror ();
31444 int
31445 main ()
31446 {
31447 dlerror ();
31448 ;
31449 return 0;
31450 }
31451 _ACEOF
31452 rm -f conftest.$ac_objext conftest$ac_exeext
31453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31454 (eval $ac_link) 2>&5
31455 ac_status=$?
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); } &&
31458 { ac_try='test -s conftest$ac_exeext'
31459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31460 (eval $ac_try) 2>&5
31461 ac_status=$?
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); }; }; then
31464 ac_cv_lib_dl_dlerror=yes
31465 else
31466 echo "$as_me: failed program was:" >&5
31467 sed 's/^/| /' conftest.$ac_ext >&5
31468
31469 ac_cv_lib_dl_dlerror=no
31470 fi
31471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31472 LIBS=$ac_check_lib_save_LIBS
31473 fi
31474 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31475 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31476 if test $ac_cv_lib_dl_dlerror = yes; then
31477 cat >>confdefs.h <<\_ACEOF
31478 #define HAVE_DLERROR 1
31479 _ACEOF
31480
31481 fi
31482
31483
31484
31485 fi
31486 done
31487
31488 fi
31489 fi
31490
31491 if test "$HAVE_DL_FUNCS" = 0; then
31492 if test "$HAVE_SHL_FUNCS" = 0; then
31493 if test "$USE_UNIX" = 1; then
31494 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31495 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
31496 wxUSE_DYNAMIC_LOADER=no
31497 wxUSE_DYNLIB_CLASS=no
31498 else
31499 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31500 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
31501 fi
31502 fi
31503 fi
31504 fi
31505 fi
31506
31507 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
31508 cat >>confdefs.h <<\_ACEOF
31509 #define wxUSE_DYNAMIC_LOADER 1
31510 _ACEOF
31511
31512 fi
31513 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31514 cat >>confdefs.h <<\_ACEOF
31515 #define wxUSE_DYNLIB_CLASS 1
31516 _ACEOF
31517
31518 fi
31519
31520
31521
31522 if test "$wxUSE_PLUGINS" = "yes" ; then
31523 if test "$wxUSE_SHARED" = "no" ; then
31524 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
31525 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
31526 wxUSE_PLUGINS=no
31527 fi
31528 if test "$wxUSE_MONOLITHIC" = "yes" ; then
31529 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
31530 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
31531 wxUSE_PLUGINS=no
31532 fi
31533 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
31534 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
31535 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
31536 wxUSE_PLUGINS=no
31537 fi
31538 if test "$wxUSE_PLUGINS" = "yes" ; then
31539 cat >>confdefs.h <<\_ACEOF
31540 #define wxUSE_PLUGINS 1
31541 _ACEOF
31542
31543 fi
31544 fi
31545
31546
31547 if test "$wxUSE_STL" = "yes"; then
31548 cat >>confdefs.h <<\_ACEOF
31549 #define wxUSE_STL 1
31550 _ACEOF
31551
31552 fi
31553
31554 if test "$wxUSE_APPLE_IEEE" = "yes"; then
31555 cat >>confdefs.h <<\_ACEOF
31556 #define wxUSE_APPLE_IEEE 1
31557 _ACEOF
31558
31559 fi
31560
31561 if test "$wxUSE_TIMER" = "yes"; then
31562 cat >>confdefs.h <<\_ACEOF
31563 #define wxUSE_TIMER 1
31564 _ACEOF
31565
31566 fi
31567
31568 WITH_PLUGIN_SDL=0
31569 if test "$wxUSE_SOUND" = "yes"; then
31570 if test "$USE_UNIX" = "1" ; then
31571
31572 for ac_header in sys/soundcard.h
31573 do
31574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31576 echo "$as_me:$LINENO: checking for $ac_header" >&5
31577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31579 echo $ECHO_N "(cached) $ECHO_C" >&6
31580 fi
31581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31583 else
31584 # Is the header compilable?
31585 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31587 cat >conftest.$ac_ext <<_ACEOF
31588 #line $LINENO "configure"
31589 /* confdefs.h. */
31590 _ACEOF
31591 cat confdefs.h >>conftest.$ac_ext
31592 cat >>conftest.$ac_ext <<_ACEOF
31593 /* end confdefs.h. */
31594 $ac_includes_default
31595 #include <$ac_header>
31596 _ACEOF
31597 rm -f conftest.$ac_objext
31598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31599 (eval $ac_compile) 2>&5
31600 ac_status=$?
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); } &&
31603 { ac_try='test -s conftest.$ac_objext'
31604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31605 (eval $ac_try) 2>&5
31606 ac_status=$?
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); }; }; then
31609 ac_header_compiler=yes
31610 else
31611 echo "$as_me: failed program was:" >&5
31612 sed 's/^/| /' conftest.$ac_ext >&5
31613
31614 ac_header_compiler=no
31615 fi
31616 rm -f conftest.$ac_objext conftest.$ac_ext
31617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31618 echo "${ECHO_T}$ac_header_compiler" >&6
31619
31620 # Is the header present?
31621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31623 cat >conftest.$ac_ext <<_ACEOF
31624 #line $LINENO "configure"
31625 /* confdefs.h. */
31626 _ACEOF
31627 cat confdefs.h >>conftest.$ac_ext
31628 cat >>conftest.$ac_ext <<_ACEOF
31629 /* end confdefs.h. */
31630 #include <$ac_header>
31631 _ACEOF
31632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31634 ac_status=$?
31635 grep -v '^ *+' conftest.er1 >conftest.err
31636 rm -f conftest.er1
31637 cat conftest.err >&5
31638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31639 (exit $ac_status); } >/dev/null; then
31640 if test -s conftest.err; then
31641 ac_cpp_err=$ac_c_preproc_warn_flag
31642 else
31643 ac_cpp_err=
31644 fi
31645 else
31646 ac_cpp_err=yes
31647 fi
31648 if test -z "$ac_cpp_err"; then
31649 ac_header_preproc=yes
31650 else
31651 echo "$as_me: failed program was:" >&5
31652 sed 's/^/| /' conftest.$ac_ext >&5
31653
31654 ac_header_preproc=no
31655 fi
31656 rm -f conftest.err conftest.$ac_ext
31657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31658 echo "${ECHO_T}$ac_header_preproc" >&6
31659
31660 # So? What about this header?
31661 case $ac_header_compiler:$ac_header_preproc in
31662 yes:no )
31663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31667 (
31668 cat <<\_ASBOX
31669 ## ------------------------------------ ##
31670 ## Report this to bug-autoconf@gnu.org. ##
31671 ## ------------------------------------ ##
31672 _ASBOX
31673 ) |
31674 sed "s/^/$as_me: WARNING: /" >&2
31675 ;;
31676 no:yes )
31677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31683 (
31684 cat <<\_ASBOX
31685 ## ------------------------------------ ##
31686 ## Report this to bug-autoconf@gnu.org. ##
31687 ## ------------------------------------ ##
31688 _ASBOX
31689 ) |
31690 sed "s/^/$as_me: WARNING: /" >&2
31691 ;;
31692 esac
31693 echo "$as_me:$LINENO: checking for $ac_header" >&5
31694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31696 echo $ECHO_N "(cached) $ECHO_C" >&6
31697 else
31698 eval "$as_ac_Header=$ac_header_preproc"
31699 fi
31700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31702
31703 fi
31704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31705 cat >>confdefs.h <<_ACEOF
31706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31707 _ACEOF
31708
31709 fi
31710
31711 done
31712
31713
31714 if test "$wxUSE_LIBSDL" != "no"; then
31715
31716 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
31717 if test "${with_sdl_prefix+set}" = set; then
31718 withval="$with_sdl_prefix"
31719 sdl_prefix="$withval"
31720 else
31721 sdl_prefix=""
31722 fi;
31723
31724 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
31725 if test "${with_sdl_exec_prefix+set}" = set; then
31726 withval="$with_sdl_exec_prefix"
31727 sdl_exec_prefix="$withval"
31728 else
31729 sdl_exec_prefix=""
31730 fi;
31731 # Check whether --enable-sdltest or --disable-sdltest was given.
31732 if test "${enable_sdltest+set}" = set; then
31733 enableval="$enable_sdltest"
31734
31735 else
31736 enable_sdltest=yes
31737 fi;
31738
31739 if test x$sdl_exec_prefix != x ; then
31740 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
31741 if test x${SDL_CONFIG+set} != xset ; then
31742 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
31743 fi
31744 fi
31745 if test x$sdl_prefix != x ; then
31746 sdl_args="$sdl_args --prefix=$sdl_prefix"
31747 if test x${SDL_CONFIG+set} != xset ; then
31748 SDL_CONFIG=$sdl_prefix/bin/sdl-config
31749 fi
31750 fi
31751
31752
31753 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
31754 # Extract the first word of "sdl-config", so it can be a program name with args.
31755 set dummy sdl-config; ac_word=$2
31756 echo "$as_me:$LINENO: checking for $ac_word" >&5
31757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31758 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
31759 echo $ECHO_N "(cached) $ECHO_C" >&6
31760 else
31761 case $SDL_CONFIG in
31762 [\\/]* | ?:[\\/]*)
31763 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
31764 ;;
31765 *)
31766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31767 for as_dir in $PATH
31768 do
31769 IFS=$as_save_IFS
31770 test -z "$as_dir" && as_dir=.
31771 for ac_exec_ext in '' $ac_executable_extensions; do
31772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31773 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31775 break 2
31776 fi
31777 done
31778 done
31779
31780 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
31781 ;;
31782 esac
31783 fi
31784 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
31785
31786 if test -n "$SDL_CONFIG"; then
31787 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
31788 echo "${ECHO_T}$SDL_CONFIG" >&6
31789 else
31790 echo "$as_me:$LINENO: result: no" >&5
31791 echo "${ECHO_T}no" >&6
31792 fi
31793
31794 min_sdl_version=1.2.0
31795 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
31796 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
31797 no_sdl=""
31798 if test "$SDL_CONFIG" = "no" ; then
31799 no_sdl=yes
31800 else
31801 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
31802 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
31803
31804 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
31805 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31806 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
31807 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31808 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
31809 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31810 if test "x$enable_sdltest" = "xyes" ; then
31811 ac_save_CFLAGS="$CFLAGS"
31812 ac_save_LIBS="$LIBS"
31813 CFLAGS="$CFLAGS $SDL_CFLAGS"
31814 LIBS="$LIBS $SDL_LIBS"
31815 rm -f conf.sdltest
31816 if test "$cross_compiling" = yes; then
31817 echo $ac_n "cross compiling; assumed OK... $ac_c"
31818 else
31819 cat >conftest.$ac_ext <<_ACEOF
31820 #line $LINENO "configure"
31821 /* confdefs.h. */
31822 _ACEOF
31823 cat confdefs.h >>conftest.$ac_ext
31824 cat >>conftest.$ac_ext <<_ACEOF
31825 /* end confdefs.h. */
31826
31827 #include <stdio.h>
31828 #include <stdlib.h>
31829 #include <string.h>
31830 #include "SDL.h"
31831
31832 char*
31833 my_strdup (char *str)
31834 {
31835 char *new_str;
31836
31837 if (str)
31838 {
31839 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
31840 strcpy (new_str, str);
31841 }
31842 else
31843 new_str = NULL;
31844
31845 return new_str;
31846 }
31847
31848 int main (int argc, char *argv[])
31849 {
31850 int major, minor, micro;
31851 char *tmp_version;
31852
31853 /* This hangs on some systems (?)
31854 system ("touch conf.sdltest");
31855 */
31856 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
31857
31858 /* HP/UX 9 (%@#!) writes to sscanf strings */
31859 tmp_version = my_strdup("$min_sdl_version");
31860 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31861 printf("%s, bad version string\n", "$min_sdl_version");
31862 exit(1);
31863 }
31864
31865 if (($sdl_major_version > major) ||
31866 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
31867 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
31868 {
31869 return 0;
31870 }
31871 else
31872 {
31873 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
31874 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
31875 printf("*** best to upgrade to the required version.\n");
31876 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
31877 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
31878 printf("*** config.cache before re-running configure\n");
31879 return 1;
31880 }
31881 }
31882
31883
31884 _ACEOF
31885 rm -f conftest$ac_exeext
31886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31887 (eval $ac_link) 2>&5
31888 ac_status=$?
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31892 (eval $ac_try) 2>&5
31893 ac_status=$?
31894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895 (exit $ac_status); }; }; then
31896 :
31897 else
31898 echo "$as_me: program exited with status $ac_status" >&5
31899 echo "$as_me: failed program was:" >&5
31900 sed 's/^/| /' conftest.$ac_ext >&5
31901
31902 ( exit $ac_status )
31903 no_sdl=yes
31904 fi
31905 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31906 fi
31907 CFLAGS="$ac_save_CFLAGS"
31908 LIBS="$ac_save_LIBS"
31909 fi
31910 fi
31911 if test "x$no_sdl" = x ; then
31912 echo "$as_me:$LINENO: result: yes" >&5
31913 echo "${ECHO_T}yes" >&6
31914
31915 EXTRALIBS_SDL="$SDL_LIBS"
31916 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
31917 cat >>confdefs.h <<\_ACEOF
31918 #define wxUSE_LIBSDL 1
31919 _ACEOF
31920
31921
31922 else
31923 echo "$as_me:$LINENO: result: no" >&5
31924 echo "${ECHO_T}no" >&6
31925 if test "$SDL_CONFIG" = "no" ; then
31926 echo "*** The sdl-config script installed by SDL could not be found"
31927 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
31928 echo "*** your path, or set the SDL_CONFIG environment variable to the"
31929 echo "*** full path to sdl-config."
31930 else
31931 if test -f conf.sdltest ; then
31932 :
31933 else
31934 echo "*** Could not run SDL test program, checking why..."
31935 CFLAGS="$CFLAGS $SDL_CFLAGS"
31936 LIBS="$LIBS $SDL_LIBS"
31937 cat >conftest.$ac_ext <<_ACEOF
31938 #line $LINENO "configure"
31939 /* confdefs.h. */
31940 _ACEOF
31941 cat confdefs.h >>conftest.$ac_ext
31942 cat >>conftest.$ac_ext <<_ACEOF
31943 /* end confdefs.h. */
31944
31945 #include <stdio.h>
31946 #include "SDL.h"
31947
31948 int main(int argc, char *argv[])
31949 { return 0; }
31950 #undef main
31951 #define main K_and_R_C_main
31952
31953 int
31954 main ()
31955 {
31956 return 0;
31957 ;
31958 return 0;
31959 }
31960 _ACEOF
31961 rm -f conftest.$ac_objext conftest$ac_exeext
31962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31963 (eval $ac_link) 2>&5
31964 ac_status=$?
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); } &&
31967 { ac_try='test -s conftest$ac_exeext'
31968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31969 (eval $ac_try) 2>&5
31970 ac_status=$?
31971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); }; }; then
31973 echo "*** The test program compiled, but did not run. This usually means"
31974 echo "*** that the run-time linker is not finding SDL or finding the wrong"
31975 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
31976 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31977 echo "*** to the installed location Also, make sure you have run ldconfig if that"
31978 echo "*** is required on your system"
31979 echo "***"
31980 echo "*** If you have an old version installed, it is best to remove it, although"
31981 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31982 else
31983 echo "$as_me: failed program was:" >&5
31984 sed 's/^/| /' conftest.$ac_ext >&5
31985
31986 echo "*** The test program failed to compile or link. See the file config.log for the"
31987 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
31988 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
31989 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
31990 fi
31991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31992 CFLAGS="$ac_save_CFLAGS"
31993 LIBS="$ac_save_LIBS"
31994 fi
31995 fi
31996 SDL_CFLAGS=""
31997 SDL_LIBS=""
31998 wxUSE_LIBSDL="no"
31999 fi
32000
32001
32002 rm -f conf.sdltest
32003
32004 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
32005 WITH_PLUGIN_SDL=1
32006 fi
32007 fi
32008 fi
32009
32010 cat >>confdefs.h <<\_ACEOF
32011 #define wxUSE_SOUND 1
32012 _ACEOF
32013
32014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
32015 fi
32016
32017 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
32018 cat >>confdefs.h <<\_ACEOF
32019 #define wxUSE_CMDLINE_PARSER 1
32020 _ACEOF
32021
32022 fi
32023
32024 if test "$wxUSE_STOPWATCH" = "yes"; then
32025 cat >>confdefs.h <<\_ACEOF
32026 #define wxUSE_STOPWATCH 1
32027 _ACEOF
32028
32029 fi
32030
32031 if test "$wxUSE_DATETIME" = "yes"; then
32032 cat >>confdefs.h <<\_ACEOF
32033 #define wxUSE_DATETIME 1
32034 _ACEOF
32035
32036 fi
32037
32038 if test "$wxUSE_FILE" = "yes"; then
32039 cat >>confdefs.h <<\_ACEOF
32040 #define wxUSE_FILE 1
32041 _ACEOF
32042
32043 fi
32044
32045 if test "$wxUSE_FFILE" = "yes"; then
32046 cat >>confdefs.h <<\_ACEOF
32047 #define wxUSE_FFILE 1
32048 _ACEOF
32049
32050 fi
32051
32052 if test "$wxUSE_FILESYSTEM" = "yes"; then
32053 cat >>confdefs.h <<\_ACEOF
32054 #define wxUSE_FILESYSTEM 1
32055 _ACEOF
32056
32057 fi
32058
32059 if test "$wxUSE_FS_ZIP" = "yes"; then
32060 cat >>confdefs.h <<\_ACEOF
32061 #define wxUSE_FS_ZIP 1
32062 _ACEOF
32063
32064 fi
32065
32066 if test "$wxUSE_ZIPSTREAM" = "yes"; then
32067 cat >>confdefs.h <<\_ACEOF
32068 #define wxUSE_ZIPSTREAM 1
32069 _ACEOF
32070
32071 fi
32072
32073 if test "$wxUSE_GZSTREAM" = "yes"; then
32074 cat >>confdefs.h <<\_ACEOF
32075 #define wxUSE_GZSTREAM 1
32076 _ACEOF
32077
32078 fi
32079
32080 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32081 cat >>confdefs.h <<\_ACEOF
32082 #define wxUSE_ON_FATAL_EXCEPTION 1
32083 _ACEOF
32084
32085 fi
32086
32087 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32088 cat >>confdefs.h <<\_ACEOF
32089 #define wxUSE_SNGLINST_CHECKER 1
32090 _ACEOF
32091
32092 fi
32093
32094 if test "$wxUSE_BUSYINFO" = "yes"; then
32095 cat >>confdefs.h <<\_ACEOF
32096 #define wxUSE_BUSYINFO 1
32097 _ACEOF
32098
32099 fi
32100
32101 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
32102 cat >>confdefs.h <<\_ACEOF
32103 #define wxUSE_STD_IOSTREAM 1
32104 _ACEOF
32105
32106 fi
32107
32108 if test "$wxUSE_TEXTBUFFER" = "yes"; then
32109 cat >>confdefs.h <<\_ACEOF
32110 #define wxUSE_TEXTBUFFER 1
32111 _ACEOF
32112
32113 fi
32114
32115 if test "$wxUSE_TEXTFILE" = "yes"; then
32116 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
32117 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
32118 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
32119 else
32120 cat >>confdefs.h <<\_ACEOF
32121 #define wxUSE_TEXTFILE 1
32122 _ACEOF
32123
32124 fi
32125 fi
32126
32127 if test "$wxUSE_CONFIG" = "yes" ; then
32128 if test "$wxUSE_TEXTFILE" != "yes"; then
32129 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
32130 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
32131 else
32132 cat >>confdefs.h <<\_ACEOF
32133 #define wxUSE_CONFIG 1
32134 _ACEOF
32135
32136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
32137 fi
32138 fi
32139
32140 if test "$wxUSE_INTL" = "yes" ; then
32141 if test "$wxUSE_FILE" != "yes"; then
32142 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
32143 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
32144 else
32145 cat >>confdefs.h <<\_ACEOF
32146 #define wxUSE_INTL 1
32147 _ACEOF
32148
32149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
32150 GUIDIST="$GUIDIST INTL_DIST"
32151 fi
32152 fi
32153
32154 if test "$wxUSE_LOG" = "yes"; then
32155 cat >>confdefs.h <<\_ACEOF
32156 #define wxUSE_LOG 1
32157 _ACEOF
32158
32159
32160 if test "$wxUSE_LOGGUI" = "yes"; then
32161 cat >>confdefs.h <<\_ACEOF
32162 #define wxUSE_LOGGUI 1
32163 _ACEOF
32164
32165 fi
32166
32167 if test "$wxUSE_LOGWINDOW" = "yes"; then
32168 cat >>confdefs.h <<\_ACEOF
32169 #define wxUSE_LOGWINDOW 1
32170 _ACEOF
32171
32172 fi
32173
32174 if test "$wxUSE_LOGDIALOG" = "yes"; then
32175 cat >>confdefs.h <<\_ACEOF
32176 #define wxUSE_LOG_DIALOG 1
32177 _ACEOF
32178
32179 fi
32180 fi
32181
32182 if test "$wxUSE_LONGLONG" = "yes"; then
32183 cat >>confdefs.h <<\_ACEOF
32184 #define wxUSE_LONGLONG 1
32185 _ACEOF
32186
32187 fi
32188
32189 if test "$wxUSE_GEOMETRY" = "yes"; then
32190 cat >>confdefs.h <<\_ACEOF
32191 #define wxUSE_GEOMETRY 1
32192 _ACEOF
32193
32194 fi
32195
32196 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
32197 cat >>confdefs.h <<\_ACEOF
32198 #define wxUSE_DIALUP_MANAGER 1
32199 _ACEOF
32200
32201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
32202 fi
32203
32204 if test "$wxUSE_STREAMS" = "yes" ; then
32205 cat >>confdefs.h <<\_ACEOF
32206 #define wxUSE_STREAMS 1
32207 _ACEOF
32208
32209 fi
32210
32211
32212 if test "$wxUSE_DATETIME" = "yes"; then
32213
32214 for ac_func in strptime
32215 do
32216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32217 echo "$as_me:$LINENO: checking for $ac_func" >&5
32218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32219 if eval "test \"\${$as_ac_var+set}\" = set"; then
32220 echo $ECHO_N "(cached) $ECHO_C" >&6
32221 else
32222 cat >conftest.$ac_ext <<_ACEOF
32223 #line $LINENO "configure"
32224 /* confdefs.h. */
32225 _ACEOF
32226 cat confdefs.h >>conftest.$ac_ext
32227 cat >>conftest.$ac_ext <<_ACEOF
32228 /* end confdefs.h. */
32229 /* System header to define __stub macros and hopefully few prototypes,
32230 which can conflict with char $ac_func (); below.
32231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32232 <limits.h> exists even on freestanding compilers. */
32233 #ifdef __STDC__
32234 # include <limits.h>
32235 #else
32236 # include <assert.h>
32237 #endif
32238 /* Override any gcc2 internal prototype to avoid an error. */
32239 #ifdef __cplusplus
32240 extern "C"
32241 {
32242 #endif
32243 /* We use char because int might match the return type of a gcc2
32244 builtin and then its argument prototype would still apply. */
32245 char $ac_func ();
32246 /* The GNU C library defines this for functions which it implements
32247 to always fail with ENOSYS. Some functions are actually named
32248 something starting with __ and the normal name is an alias. */
32249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32250 choke me
32251 #else
32252 char (*f) () = $ac_func;
32253 #endif
32254 #ifdef __cplusplus
32255 }
32256 #endif
32257
32258 int
32259 main ()
32260 {
32261 return f != $ac_func;
32262 ;
32263 return 0;
32264 }
32265 _ACEOF
32266 rm -f conftest.$ac_objext conftest$ac_exeext
32267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32268 (eval $ac_link) 2>&5
32269 ac_status=$?
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); } &&
32272 { ac_try='test -s conftest$ac_exeext'
32273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32274 (eval $ac_try) 2>&5
32275 ac_status=$?
32276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277 (exit $ac_status); }; }; then
32278 eval "$as_ac_var=yes"
32279 else
32280 echo "$as_me: failed program was:" >&5
32281 sed 's/^/| /' conftest.$ac_ext >&5
32282
32283 eval "$as_ac_var=no"
32284 fi
32285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32286 fi
32287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32289 if test `eval echo '${'$as_ac_var'}'` = yes; then
32290 cat >>confdefs.h <<_ACEOF
32291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32292 _ACEOF
32293
32294 fi
32295 done
32296
32297
32298 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
32299 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
32300 if test "${wx_cv_var_timezone+set}" = set; then
32301 echo $ECHO_N "(cached) $ECHO_C" >&6
32302 else
32303
32304 cat >conftest.$ac_ext <<_ACEOF
32305 #line $LINENO "configure"
32306 /* confdefs.h. */
32307 _ACEOF
32308 cat confdefs.h >>conftest.$ac_ext
32309 cat >>conftest.$ac_ext <<_ACEOF
32310 /* end confdefs.h. */
32311
32312 #include <time.h>
32313
32314 int
32315 main ()
32316 {
32317
32318 int tz;
32319 tz = timezone;
32320
32321 ;
32322 return 0;
32323 }
32324 _ACEOF
32325 rm -f conftest.$ac_objext
32326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32327 (eval $ac_compile) 2>&5
32328 ac_status=$?
32329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32330 (exit $ac_status); } &&
32331 { ac_try='test -s conftest.$ac_objext'
32332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32333 (eval $ac_try) 2>&5
32334 ac_status=$?
32335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336 (exit $ac_status); }; }; then
32337
32338 wx_cv_var_timezone=timezone
32339
32340 else
32341 echo "$as_me: failed program was:" >&5
32342 sed 's/^/| /' conftest.$ac_ext >&5
32343
32344
32345 cat >conftest.$ac_ext <<_ACEOF
32346 #line $LINENO "configure"
32347 /* confdefs.h. */
32348 _ACEOF
32349 cat confdefs.h >>conftest.$ac_ext
32350 cat >>conftest.$ac_ext <<_ACEOF
32351 /* end confdefs.h. */
32352
32353 #include <time.h>
32354
32355 int
32356 main ()
32357 {
32358
32359 int tz;
32360 tz = _timezone;
32361
32362 ;
32363 return 0;
32364 }
32365 _ACEOF
32366 rm -f conftest.$ac_objext
32367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32368 (eval $ac_compile) 2>&5
32369 ac_status=$?
32370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371 (exit $ac_status); } &&
32372 { ac_try='test -s conftest.$ac_objext'
32373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32374 (eval $ac_try) 2>&5
32375 ac_status=$?
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); }; }; then
32378
32379 wx_cv_var_timezone=_timezone
32380
32381 else
32382 echo "$as_me: failed program was:" >&5
32383 sed 's/^/| /' conftest.$ac_ext >&5
32384
32385
32386 cat >conftest.$ac_ext <<_ACEOF
32387 #line $LINENO "configure"
32388 /* confdefs.h. */
32389 _ACEOF
32390 cat confdefs.h >>conftest.$ac_ext
32391 cat >>conftest.$ac_ext <<_ACEOF
32392 /* end confdefs.h. */
32393
32394 #include <time.h>
32395
32396 int
32397 main ()
32398 {
32399
32400 int tz;
32401 tz = __timezone;
32402
32403 ;
32404 return 0;
32405 }
32406 _ACEOF
32407 rm -f conftest.$ac_objext
32408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32409 (eval $ac_compile) 2>&5
32410 ac_status=$?
32411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412 (exit $ac_status); } &&
32413 { ac_try='test -s conftest.$ac_objext'
32414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32415 (eval $ac_try) 2>&5
32416 ac_status=$?
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); }; }; then
32419
32420 wx_cv_var_timezone=__timezone
32421
32422 else
32423 echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32425
32426
32427 if test "$USE_DOS" = 0 ; then
32428 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
32429 echo "$as_me: WARNING: no timezone variable" >&2;}
32430 fi
32431
32432
32433 fi
32434 rm -f conftest.$ac_objext conftest.$ac_ext
32435
32436
32437 fi
32438 rm -f conftest.$ac_objext conftest.$ac_ext
32439
32440
32441 fi
32442 rm -f conftest.$ac_objext conftest.$ac_ext
32443
32444
32445 fi
32446 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
32447 echo "${ECHO_T}$wx_cv_var_timezone" >&6
32448
32449 if test "x$wx_cv_var_timezone" != x ; then
32450 cat >>confdefs.h <<_ACEOF
32451 #define WX_TIMEZONE $wx_cv_var_timezone
32452 _ACEOF
32453
32454 fi
32455
32456
32457 for ac_func in localtime
32458 do
32459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32460 echo "$as_me:$LINENO: checking for $ac_func" >&5
32461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32462 if eval "test \"\${$as_ac_var+set}\" = set"; then
32463 echo $ECHO_N "(cached) $ECHO_C" >&6
32464 else
32465 cat >conftest.$ac_ext <<_ACEOF
32466 #line $LINENO "configure"
32467 /* confdefs.h. */
32468 _ACEOF
32469 cat confdefs.h >>conftest.$ac_ext
32470 cat >>conftest.$ac_ext <<_ACEOF
32471 /* end confdefs.h. */
32472 /* System header to define __stub macros and hopefully few prototypes,
32473 which can conflict with char $ac_func (); below.
32474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32475 <limits.h> exists even on freestanding compilers. */
32476 #ifdef __STDC__
32477 # include <limits.h>
32478 #else
32479 # include <assert.h>
32480 #endif
32481 /* Override any gcc2 internal prototype to avoid an error. */
32482 #ifdef __cplusplus
32483 extern "C"
32484 {
32485 #endif
32486 /* We use char because int might match the return type of a gcc2
32487 builtin and then its argument prototype would still apply. */
32488 char $ac_func ();
32489 /* The GNU C library defines this for functions which it implements
32490 to always fail with ENOSYS. Some functions are actually named
32491 something starting with __ and the normal name is an alias. */
32492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32493 choke me
32494 #else
32495 char (*f) () = $ac_func;
32496 #endif
32497 #ifdef __cplusplus
32498 }
32499 #endif
32500
32501 int
32502 main ()
32503 {
32504 return f != $ac_func;
32505 ;
32506 return 0;
32507 }
32508 _ACEOF
32509 rm -f conftest.$ac_objext conftest$ac_exeext
32510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32511 (eval $ac_link) 2>&5
32512 ac_status=$?
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); } &&
32515 { ac_try='test -s conftest$ac_exeext'
32516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32517 (eval $ac_try) 2>&5
32518 ac_status=$?
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); }; }; then
32521 eval "$as_ac_var=yes"
32522 else
32523 echo "$as_me: failed program was:" >&5
32524 sed 's/^/| /' conftest.$ac_ext >&5
32525
32526 eval "$as_ac_var=no"
32527 fi
32528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32529 fi
32530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32532 if test `eval echo '${'$as_ac_var'}'` = yes; then
32533 cat >>confdefs.h <<_ACEOF
32534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32535 _ACEOF
32536
32537 fi
32538 done
32539
32540
32541 if test "$ac_cv_func_localtime" = "yes"; then
32542 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
32543 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
32544 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
32545 echo $ECHO_N "(cached) $ECHO_C" >&6
32546 else
32547
32548 cat >conftest.$ac_ext <<_ACEOF
32549 #line $LINENO "configure"
32550 /* confdefs.h. */
32551 _ACEOF
32552 cat confdefs.h >>conftest.$ac_ext
32553 cat >>conftest.$ac_ext <<_ACEOF
32554 /* end confdefs.h. */
32555
32556 #include <time.h>
32557
32558 int
32559 main ()
32560 {
32561
32562 struct tm tm;
32563 tm.tm_gmtoff++;
32564
32565 ;
32566 return 0;
32567 }
32568 _ACEOF
32569 rm -f conftest.$ac_objext
32570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32571 (eval $ac_compile) 2>&5
32572 ac_status=$?
32573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574 (exit $ac_status); } &&
32575 { ac_try='test -s conftest.$ac_objext'
32576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32577 (eval $ac_try) 2>&5
32578 ac_status=$?
32579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580 (exit $ac_status); }; }; then
32581
32582 wx_cv_struct_tm_has_gmtoff=yes
32583
32584 else
32585 echo "$as_me: failed program was:" >&5
32586 sed 's/^/| /' conftest.$ac_ext >&5
32587
32588 wx_cv_struct_tm_has_gmtoff=no
32589
32590 fi
32591 rm -f conftest.$ac_objext conftest.$ac_ext
32592
32593 fi
32594 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
32595 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
32596 fi
32597
32598 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
32599 cat >>confdefs.h <<\_ACEOF
32600 #define WX_GMTOFF_IN_TM 1
32601 _ACEOF
32602
32603 fi
32604
32605
32606
32607 for ac_func in gettimeofday ftime
32608 do
32609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32610 echo "$as_me:$LINENO: checking for $ac_func" >&5
32611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32612 if eval "test \"\${$as_ac_var+set}\" = set"; then
32613 echo $ECHO_N "(cached) $ECHO_C" >&6
32614 else
32615 cat >conftest.$ac_ext <<_ACEOF
32616 #line $LINENO "configure"
32617 /* confdefs.h. */
32618 _ACEOF
32619 cat confdefs.h >>conftest.$ac_ext
32620 cat >>conftest.$ac_ext <<_ACEOF
32621 /* end confdefs.h. */
32622 /* System header to define __stub macros and hopefully few prototypes,
32623 which can conflict with char $ac_func (); below.
32624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32625 <limits.h> exists even on freestanding compilers. */
32626 #ifdef __STDC__
32627 # include <limits.h>
32628 #else
32629 # include <assert.h>
32630 #endif
32631 /* Override any gcc2 internal prototype to avoid an error. */
32632 #ifdef __cplusplus
32633 extern "C"
32634 {
32635 #endif
32636 /* We use char because int might match the return type of a gcc2
32637 builtin and then its argument prototype would still apply. */
32638 char $ac_func ();
32639 /* The GNU C library defines this for functions which it implements
32640 to always fail with ENOSYS. Some functions are actually named
32641 something starting with __ and the normal name is an alias. */
32642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32643 choke me
32644 #else
32645 char (*f) () = $ac_func;
32646 #endif
32647 #ifdef __cplusplus
32648 }
32649 #endif
32650
32651 int
32652 main ()
32653 {
32654 return f != $ac_func;
32655 ;
32656 return 0;
32657 }
32658 _ACEOF
32659 rm -f conftest.$ac_objext conftest$ac_exeext
32660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32661 (eval $ac_link) 2>&5
32662 ac_status=$?
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); } &&
32665 { ac_try='test -s conftest$ac_exeext'
32666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32667 (eval $ac_try) 2>&5
32668 ac_status=$?
32669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670 (exit $ac_status); }; }; then
32671 eval "$as_ac_var=yes"
32672 else
32673 echo "$as_me: failed program was:" >&5
32674 sed 's/^/| /' conftest.$ac_ext >&5
32675
32676 eval "$as_ac_var=no"
32677 fi
32678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32679 fi
32680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32682 if test `eval echo '${'$as_ac_var'}'` = yes; then
32683 cat >>confdefs.h <<_ACEOF
32684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32685 _ACEOF
32686 break
32687 fi
32688 done
32689
32690
32691 if test "$ac_cv_func_gettimeofday" = "yes"; then
32692 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
32693 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
32694 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
32695 echo $ECHO_N "(cached) $ECHO_C" >&6
32696 else
32697
32698
32699
32700 ac_ext=cc
32701 ac_cpp='$CXXCPP $CPPFLAGS'
32702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32705
32706
32707 cat >conftest.$ac_ext <<_ACEOF
32708 #line $LINENO "configure"
32709 /* confdefs.h. */
32710 _ACEOF
32711 cat confdefs.h >>conftest.$ac_ext
32712 cat >>conftest.$ac_ext <<_ACEOF
32713 /* end confdefs.h. */
32714
32715 #include <sys/time.h>
32716 #include <unistd.h>
32717
32718 int
32719 main ()
32720 {
32721
32722 struct timeval tv;
32723 gettimeofday(&tv, NULL);
32724
32725 ;
32726 return 0;
32727 }
32728 _ACEOF
32729 rm -f conftest.$ac_objext
32730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32731 (eval $ac_compile) 2>&5
32732 ac_status=$?
32733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734 (exit $ac_status); } &&
32735 { ac_try='test -s conftest.$ac_objext'
32736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32737 (eval $ac_try) 2>&5
32738 ac_status=$?
32739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740 (exit $ac_status); }; }; then
32741 wx_cv_func_gettimeofday_has_2_args=yes
32742 else
32743 echo "$as_me: failed program was:" >&5
32744 sed 's/^/| /' conftest.$ac_ext >&5
32745
32746 cat >conftest.$ac_ext <<_ACEOF
32747 #line $LINENO "configure"
32748 /* confdefs.h. */
32749 _ACEOF
32750 cat confdefs.h >>conftest.$ac_ext
32751 cat >>conftest.$ac_ext <<_ACEOF
32752 /* end confdefs.h. */
32753
32754 #include <sys/time.h>
32755 #include <unistd.h>
32756
32757 int
32758 main ()
32759 {
32760
32761 struct timeval tv;
32762 gettimeofday(&tv);
32763
32764 ;
32765 return 0;
32766 }
32767 _ACEOF
32768 rm -f conftest.$ac_objext
32769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32770 (eval $ac_compile) 2>&5
32771 ac_status=$?
32772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773 (exit $ac_status); } &&
32774 { ac_try='test -s conftest.$ac_objext'
32775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32776 (eval $ac_try) 2>&5
32777 ac_status=$?
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); }; }; then
32780 wx_cv_func_gettimeofday_has_2_args=no
32781 else
32782 echo "$as_me: failed program was:" >&5
32783 sed 's/^/| /' conftest.$ac_ext >&5
32784
32785
32786 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
32787 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
32788 wx_cv_func_gettimeofday_has_2_args=unknown
32789
32790
32791 fi
32792 rm -f conftest.$ac_objext conftest.$ac_ext
32793
32794 fi
32795 rm -f conftest.$ac_objext conftest.$ac_ext
32796 ac_ext=c
32797 ac_cpp='$CPP $CPPFLAGS'
32798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32801
32802
32803 fi
32804 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
32805 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
32806
32807 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
32808 cat >>confdefs.h <<\_ACEOF
32809 #define WX_GETTIMEOFDAY_NO_TZ 1
32810 _ACEOF
32811
32812 fi
32813 fi
32814
32815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
32816 fi
32817
32818
32819 if test "$wxUSE_SOCKETS" = "yes"; then
32820 if test "$wxUSE_MGL" = "1"; then
32821 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
32822 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
32823 wxUSE_SOCKETS="no"
32824 fi
32825 fi
32826
32827 if test "$wxUSE_SOCKETS" = "yes"; then
32828 if test "$TOOLKIT" != "MSW"; then
32829 echo "$as_me:$LINENO: checking for socket" >&5
32830 echo $ECHO_N "checking for socket... $ECHO_C" >&6
32831 if test "${ac_cv_func_socket+set}" = set; then
32832 echo $ECHO_N "(cached) $ECHO_C" >&6
32833 else
32834 cat >conftest.$ac_ext <<_ACEOF
32835 #line $LINENO "configure"
32836 /* confdefs.h. */
32837 _ACEOF
32838 cat confdefs.h >>conftest.$ac_ext
32839 cat >>conftest.$ac_ext <<_ACEOF
32840 /* end confdefs.h. */
32841 /* System header to define __stub macros and hopefully few prototypes,
32842 which can conflict with char socket (); below.
32843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32844 <limits.h> exists even on freestanding compilers. */
32845 #ifdef __STDC__
32846 # include <limits.h>
32847 #else
32848 # include <assert.h>
32849 #endif
32850 /* Override any gcc2 internal prototype to avoid an error. */
32851 #ifdef __cplusplus
32852 extern "C"
32853 {
32854 #endif
32855 /* We use char because int might match the return type of a gcc2
32856 builtin and then its argument prototype would still apply. */
32857 char socket ();
32858 /* The GNU C library defines this for functions which it implements
32859 to always fail with ENOSYS. Some functions are actually named
32860 something starting with __ and the normal name is an alias. */
32861 #if defined (__stub_socket) || defined (__stub___socket)
32862 choke me
32863 #else
32864 char (*f) () = socket;
32865 #endif
32866 #ifdef __cplusplus
32867 }
32868 #endif
32869
32870 int
32871 main ()
32872 {
32873 return f != socket;
32874 ;
32875 return 0;
32876 }
32877 _ACEOF
32878 rm -f conftest.$ac_objext conftest$ac_exeext
32879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32880 (eval $ac_link) 2>&5
32881 ac_status=$?
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); } &&
32884 { ac_try='test -s conftest$ac_exeext'
32885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32886 (eval $ac_try) 2>&5
32887 ac_status=$?
32888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889 (exit $ac_status); }; }; then
32890 ac_cv_func_socket=yes
32891 else
32892 echo "$as_me: failed program was:" >&5
32893 sed 's/^/| /' conftest.$ac_ext >&5
32894
32895 ac_cv_func_socket=no
32896 fi
32897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32898 fi
32899 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
32900 echo "${ECHO_T}$ac_cv_func_socket" >&6
32901 if test $ac_cv_func_socket = yes; then
32902 :
32903 else
32904
32905 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
32906 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
32907 if test "${ac_cv_lib_socket_socket+set}" = set; then
32908 echo $ECHO_N "(cached) $ECHO_C" >&6
32909 else
32910 ac_check_lib_save_LIBS=$LIBS
32911 LIBS="-lsocket $LIBS"
32912 cat >conftest.$ac_ext <<_ACEOF
32913 #line $LINENO "configure"
32914 /* confdefs.h. */
32915 _ACEOF
32916 cat confdefs.h >>conftest.$ac_ext
32917 cat >>conftest.$ac_ext <<_ACEOF
32918 /* end confdefs.h. */
32919
32920 /* Override any gcc2 internal prototype to avoid an error. */
32921 #ifdef __cplusplus
32922 extern "C"
32923 #endif
32924 /* We use char because int might match the return type of a gcc2
32925 builtin and then its argument prototype would still apply. */
32926 char socket ();
32927 int
32928 main ()
32929 {
32930 socket ();
32931 ;
32932 return 0;
32933 }
32934 _ACEOF
32935 rm -f conftest.$ac_objext conftest$ac_exeext
32936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32937 (eval $ac_link) 2>&5
32938 ac_status=$?
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); } &&
32941 { ac_try='test -s conftest$ac_exeext'
32942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32943 (eval $ac_try) 2>&5
32944 ac_status=$?
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); }; }; then
32947 ac_cv_lib_socket_socket=yes
32948 else
32949 echo "$as_me: failed program was:" >&5
32950 sed 's/^/| /' conftest.$ac_ext >&5
32951
32952 ac_cv_lib_socket_socket=no
32953 fi
32954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32955 LIBS=$ac_check_lib_save_LIBS
32956 fi
32957 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
32958 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
32959 if test $ac_cv_lib_socket_socket = yes; then
32960 if test "$INET_LINK" != " -lsocket"; then
32961 INET_LINK="$INET_LINK -lsocket"
32962 fi
32963 else
32964
32965 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
32966 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
32967 wxUSE_SOCKETS=no
32968
32969
32970 fi
32971
32972
32973
32974 fi
32975
32976 fi
32977 fi
32978
32979 if test "$wxUSE_SOCKETS" = "yes" ; then
32980 if test "$TOOLKIT" != "MSW"; then
32981 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
32982 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
32983 if test "${wx_cv_type_getsockname3+set}" = set; then
32984 echo $ECHO_N "(cached) $ECHO_C" >&6
32985 else
32986
32987 cat >conftest.$ac_ext <<_ACEOF
32988 #line $LINENO "configure"
32989 /* confdefs.h. */
32990 _ACEOF
32991 cat confdefs.h >>conftest.$ac_ext
32992 cat >>conftest.$ac_ext <<_ACEOF
32993 /* end confdefs.h. */
32994
32995 #include <sys/types.h>
32996 #include <sys/socket.h>
32997
32998 int
32999 main ()
33000 {
33001
33002 socklen_t len;
33003 getsockname(0, 0, &len);
33004
33005 ;
33006 return 0;
33007 }
33008 _ACEOF
33009 rm -f conftest.$ac_objext
33010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33011 (eval $ac_compile) 2>&5
33012 ac_status=$?
33013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014 (exit $ac_status); } &&
33015 { ac_try='test -s conftest.$ac_objext'
33016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33017 (eval $ac_try) 2>&5
33018 ac_status=$?
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; }; then
33021 wx_cv_type_getsockname3=socklen_t
33022 else
33023 echo "$as_me: failed program was:" >&5
33024 sed 's/^/| /' conftest.$ac_ext >&5
33025
33026
33027 CFLAGS_OLD="$CFLAGS"
33028 if test "$GCC" = yes ; then
33029 CFLAGS="$CFLAGS -Werror"
33030 fi
33031
33032 cat >conftest.$ac_ext <<_ACEOF
33033 #line $LINENO "configure"
33034 /* confdefs.h. */
33035 _ACEOF
33036 cat confdefs.h >>conftest.$ac_ext
33037 cat >>conftest.$ac_ext <<_ACEOF
33038 /* end confdefs.h. */
33039
33040 #include <sys/types.h>
33041 #include <sys/socket.h>
33042
33043 int
33044 main ()
33045 {
33046
33047 size_t len;
33048 getsockname(0, 0, &len);
33049
33050 ;
33051 return 0;
33052 }
33053 _ACEOF
33054 rm -f conftest.$ac_objext
33055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33056 (eval $ac_compile) 2>&5
33057 ac_status=$?
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); } &&
33060 { ac_try='test -s conftest.$ac_objext'
33061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33062 (eval $ac_try) 2>&5
33063 ac_status=$?
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065 (exit $ac_status); }; }; then
33066 wx_cv_type_getsockname3=size_t
33067 else
33068 echo "$as_me: failed program was:" >&5
33069 sed 's/^/| /' conftest.$ac_ext >&5
33070
33071 cat >conftest.$ac_ext <<_ACEOF
33072 #line $LINENO "configure"
33073 /* confdefs.h. */
33074 _ACEOF
33075 cat confdefs.h >>conftest.$ac_ext
33076 cat >>conftest.$ac_ext <<_ACEOF
33077 /* end confdefs.h. */
33078
33079 #include <sys/types.h>
33080 #include <sys/socket.h>
33081
33082 int
33083 main ()
33084 {
33085
33086 int len;
33087 getsockname(0, 0, &len);
33088
33089 ;
33090 return 0;
33091 }
33092 _ACEOF
33093 rm -f conftest.$ac_objext
33094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33095 (eval $ac_compile) 2>&5
33096 ac_status=$?
33097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33098 (exit $ac_status); } &&
33099 { ac_try='test -s conftest.$ac_objext'
33100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33101 (eval $ac_try) 2>&5
33102 ac_status=$?
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); }; }; then
33105 wx_cv_type_getsockname3=int
33106 else
33107 echo "$as_me: failed program was:" >&5
33108 sed 's/^/| /' conftest.$ac_ext >&5
33109
33110 wx_cv_type_getsockname3=unknown
33111
33112 fi
33113 rm -f conftest.$ac_objext conftest.$ac_ext
33114
33115 fi
33116 rm -f conftest.$ac_objext conftest.$ac_ext
33117
33118 CFLAGS="$CFLAGS_OLD"
33119
33120
33121 fi
33122 rm -f conftest.$ac_objext conftest.$ac_ext
33123
33124 fi
33125 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
33126 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
33127
33128 if test "$wx_cv_type_getsockname3" = "unknown"; then
33129 wxUSE_SOCKETS=no
33130 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
33131 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
33132 else
33133 cat >>confdefs.h <<_ACEOF
33134 #define SOCKLEN_T $wx_cv_type_getsockname3
33135 _ACEOF
33136
33137 fi
33138 fi
33139 fi
33140
33141 if test "$wxUSE_SOCKETS" = "yes" ; then
33142 cat >>confdefs.h <<\_ACEOF
33143 #define wxUSE_SOCKETS 1
33144 _ACEOF
33145
33146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
33147 fi
33148
33149 if test "$wxUSE_PROTOCOL" = "yes"; then
33150 if test "$wxUSE_SOCKETS" != "yes"; then
33151 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
33152 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
33153 wxUSE_PROTOCOL=no
33154 fi
33155 fi
33156
33157 if test "$wxUSE_PROTOCOL" = "yes"; then
33158 cat >>confdefs.h <<\_ACEOF
33159 #define wxUSE_PROTOCOL 1
33160 _ACEOF
33161
33162
33163 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
33164 cat >>confdefs.h <<\_ACEOF
33165 #define wxUSE_PROTOCOL_HTTP 1
33166 _ACEOF
33167
33168 fi
33169 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
33170 cat >>confdefs.h <<\_ACEOF
33171 #define wxUSE_PROTOCOL_FTP 1
33172 _ACEOF
33173
33174 fi
33175 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
33176 cat >>confdefs.h <<\_ACEOF
33177 #define wxUSE_PROTOCOL_FILE 1
33178 _ACEOF
33179
33180 fi
33181 else
33182 if test "$wxUSE_FS_INET" = "yes"; then
33183 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
33184 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
33185 wxUSE_FS_INET="no"
33186 fi
33187 fi
33188
33189 if test "$wxUSE_URL" = "yes"; then
33190 if test "$wxUSE_PROTOCOL" != "yes"; then
33191 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
33192 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
33193 wxUSE_URL=no
33194 fi
33195 if test "$wxUSE_URL" = "yes"; then
33196 cat >>confdefs.h <<\_ACEOF
33197 #define wxUSE_URL 1
33198 _ACEOF
33199
33200 fi
33201 fi
33202
33203 if test "$wxUSE_FS_INET" = "yes"; then
33204 cat >>confdefs.h <<\_ACEOF
33205 #define wxUSE_FS_INET 1
33206 _ACEOF
33207
33208 fi
33209
33210
33211 if test "$wxUSE_GUI" = "yes"; then
33212
33213 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
33214 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
33215 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
33216 wxUSE_JOYSTICK=no
33217 fi
33218
33219 if test "$TOOLKIT" != "MSW"; then
33220 if test "$wxUSE_JOYSTICK" = "yes"; then
33221
33222 for ac_header in linux/joystick.h
33223 do
33224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33226 echo "$as_me:$LINENO: checking for $ac_header" >&5
33227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33229 echo $ECHO_N "(cached) $ECHO_C" >&6
33230 fi
33231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33233 else
33234 # Is the header compilable?
33235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33237 cat >conftest.$ac_ext <<_ACEOF
33238 #line $LINENO "configure"
33239 /* confdefs.h. */
33240 _ACEOF
33241 cat confdefs.h >>conftest.$ac_ext
33242 cat >>conftest.$ac_ext <<_ACEOF
33243 /* end confdefs.h. */
33244 $ac_includes_default
33245 #include <$ac_header>
33246 _ACEOF
33247 rm -f conftest.$ac_objext
33248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33249 (eval $ac_compile) 2>&5
33250 ac_status=$?
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); } &&
33253 { ac_try='test -s conftest.$ac_objext'
33254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33255 (eval $ac_try) 2>&5
33256 ac_status=$?
33257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258 (exit $ac_status); }; }; then
33259 ac_header_compiler=yes
33260 else
33261 echo "$as_me: failed program was:" >&5
33262 sed 's/^/| /' conftest.$ac_ext >&5
33263
33264 ac_header_compiler=no
33265 fi
33266 rm -f conftest.$ac_objext conftest.$ac_ext
33267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33268 echo "${ECHO_T}$ac_header_compiler" >&6
33269
33270 # Is the header present?
33271 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33272 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33273 cat >conftest.$ac_ext <<_ACEOF
33274 #line $LINENO "configure"
33275 /* confdefs.h. */
33276 _ACEOF
33277 cat confdefs.h >>conftest.$ac_ext
33278 cat >>conftest.$ac_ext <<_ACEOF
33279 /* end confdefs.h. */
33280 #include <$ac_header>
33281 _ACEOF
33282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33284 ac_status=$?
33285 grep -v '^ *+' conftest.er1 >conftest.err
33286 rm -f conftest.er1
33287 cat conftest.err >&5
33288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); } >/dev/null; then
33290 if test -s conftest.err; then
33291 ac_cpp_err=$ac_c_preproc_warn_flag
33292 else
33293 ac_cpp_err=
33294 fi
33295 else
33296 ac_cpp_err=yes
33297 fi
33298 if test -z "$ac_cpp_err"; then
33299 ac_header_preproc=yes
33300 else
33301 echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33303
33304 ac_header_preproc=no
33305 fi
33306 rm -f conftest.err conftest.$ac_ext
33307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33308 echo "${ECHO_T}$ac_header_preproc" >&6
33309
33310 # So? What about this header?
33311 case $ac_header_compiler:$ac_header_preproc in
33312 yes:no )
33313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33317 (
33318 cat <<\_ASBOX
33319 ## ------------------------------------ ##
33320 ## Report this to bug-autoconf@gnu.org. ##
33321 ## ------------------------------------ ##
33322 _ASBOX
33323 ) |
33324 sed "s/^/$as_me: WARNING: /" >&2
33325 ;;
33326 no:yes )
33327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33333 (
33334 cat <<\_ASBOX
33335 ## ------------------------------------ ##
33336 ## Report this to bug-autoconf@gnu.org. ##
33337 ## ------------------------------------ ##
33338 _ASBOX
33339 ) |
33340 sed "s/^/$as_me: WARNING: /" >&2
33341 ;;
33342 esac
33343 echo "$as_me:$LINENO: checking for $ac_header" >&5
33344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33346 echo $ECHO_N "(cached) $ECHO_C" >&6
33347 else
33348 eval "$as_ac_Header=$ac_header_preproc"
33349 fi
33350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33352
33353 fi
33354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33355 cat >>confdefs.h <<_ACEOF
33356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33357 _ACEOF
33358
33359 fi
33360
33361 done
33362
33363 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
33364 wxUSE_JOYSTICK=no
33365 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
33366 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
33367 fi
33368 fi
33369 fi
33370
33371 if test "$wxUSE_JOYSTICK" = "yes"; then
33372 cat >>confdefs.h <<\_ACEOF
33373 #define wxUSE_JOYSTICK 1
33374 _ACEOF
33375
33376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
33377 fi
33378 fi
33379
33380
33381
33382
33383 if test "$wxUSE_FONTMAP" = "yes" ; then
33384 cat >>confdefs.h <<\_ACEOF
33385 #define wxUSE_FONTMAP 1
33386 _ACEOF
33387
33388 fi
33389
33390 if test "$wxUSE_UNICODE" = "yes" ; then
33391 cat >>confdefs.h <<\_ACEOF
33392 #define wxUSE_UNICODE 1
33393 _ACEOF
33394
33395
33396 if test "$USE_WIN32" != 1; then
33397 wxUSE_UNICODE_MSLU=no
33398 fi
33399
33400 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
33401 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
33402 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
33403 if test "${ac_cv_lib_unicows_main+set}" = set; then
33404 echo $ECHO_N "(cached) $ECHO_C" >&6
33405 else
33406 ac_check_lib_save_LIBS=$LIBS
33407 LIBS="-lunicows $LIBS"
33408 cat >conftest.$ac_ext <<_ACEOF
33409 #line $LINENO "configure"
33410 /* confdefs.h. */
33411 _ACEOF
33412 cat confdefs.h >>conftest.$ac_ext
33413 cat >>conftest.$ac_ext <<_ACEOF
33414 /* end confdefs.h. */
33415
33416
33417 int
33418 main ()
33419 {
33420 main ();
33421 ;
33422 return 0;
33423 }
33424 _ACEOF
33425 rm -f conftest.$ac_objext conftest$ac_exeext
33426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33427 (eval $ac_link) 2>&5
33428 ac_status=$?
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); } &&
33431 { ac_try='test -s conftest$ac_exeext'
33432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33433 (eval $ac_try) 2>&5
33434 ac_status=$?
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); }; }; then
33437 ac_cv_lib_unicows_main=yes
33438 else
33439 echo "$as_me: failed program was:" >&5
33440 sed 's/^/| /' conftest.$ac_ext >&5
33441
33442 ac_cv_lib_unicows_main=no
33443 fi
33444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33445 LIBS=$ac_check_lib_save_LIBS
33446 fi
33447 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
33448 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
33449 if test $ac_cv_lib_unicows_main = yes; then
33450
33451 cat >>confdefs.h <<\_ACEOF
33452 #define wxUSE_UNICODE_MSLU 1
33453 _ACEOF
33454
33455
33456 else
33457
33458 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
33459 Applications will only run on Windows NT/2000/XP!" >&5
33460 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
33461 Applications will only run on Windows NT/2000/XP!" >&2;}
33462 wxUSE_UNICODE_MSLU=no
33463
33464 fi
33465
33466 fi
33467 fi
33468
33469 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
33470 cat >>confdefs.h <<\_ACEOF
33471 #define wxUSE_EXPERIMENTAL_PRINTF 1
33472 _ACEOF
33473
33474 fi
33475
33476
33477 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
33478 cat >>confdefs.h <<\_ACEOF
33479 #define wxUSE_POSTSCRIPT 1
33480 _ACEOF
33481
33482 fi
33483
33484 cat >>confdefs.h <<\_ACEOF
33485 #define wxUSE_AFM_FOR_POSTSCRIPT 1
33486 _ACEOF
33487
33488
33489 cat >>confdefs.h <<\_ACEOF
33490 #define wxUSE_NORMALIZED_PS_FONTS 1
33491 _ACEOF
33492
33493
33494
33495 if test "$wxUSE_CONSTRAINTS" = "yes"; then
33496 cat >>confdefs.h <<\_ACEOF
33497 #define wxUSE_CONSTRAINTS 1
33498 _ACEOF
33499
33500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
33501 fi
33502
33503 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
33504 cat >>confdefs.h <<\_ACEOF
33505 #define wxUSE_MDI_ARCHITECTURE 1
33506 _ACEOF
33507
33508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
33509 fi
33510
33511 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
33512 cat >>confdefs.h <<\_ACEOF
33513 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
33514 _ACEOF
33515
33516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
33517 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
33518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
33519 fi
33520 fi
33521
33522 if test "$wxUSE_HELP" = "yes"; then
33523 cat >>confdefs.h <<\_ACEOF
33524 #define wxUSE_HELP 1
33525 _ACEOF
33526
33527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
33528
33529 if test "$wxUSE_MSW" = 1; then
33530 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
33531 cat >>confdefs.h <<\_ACEOF
33532 #define wxUSE_MS_HTML_HELP 1
33533 _ACEOF
33534
33535 fi
33536 fi
33537
33538 if test "$wxUSE_WXHTML_HELP" = "yes"; then
33539 if test "$wxUSE_HTML" = "yes"; then
33540 cat >>confdefs.h <<\_ACEOF
33541 #define wxUSE_WXHTML_HELP 1
33542 _ACEOF
33543
33544 else
33545 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
33546 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
33547 wxUSE_WXHTML_HELP=no
33548 fi
33549 fi
33550 fi
33551
33552 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
33553 if test "$wxUSE_CONSTRAINTS" != "yes"; then
33554 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
33555 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
33556 else
33557 cat >>confdefs.h <<\_ACEOF
33558 #define wxUSE_PRINTING_ARCHITECTURE 1
33559 _ACEOF
33560
33561 fi
33562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
33563 fi
33564
33565 if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
33566 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
33567 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
33568 { (exit 1); exit 1; }; }
33569 fi
33570
33571
33572 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
33573 -o "$wxUSE_CLIPBOARD" = "yes" \
33574 -o "$wxUSE_OLE" = "yes" \
33575 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
33576
33577 for ac_header in ole2.h
33578 do
33579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33581 echo "$as_me:$LINENO: checking for $ac_header" >&5
33582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33584 echo $ECHO_N "(cached) $ECHO_C" >&6
33585 fi
33586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33588 else
33589 # Is the header compilable?
33590 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33592 cat >conftest.$ac_ext <<_ACEOF
33593 #line $LINENO "configure"
33594 /* confdefs.h. */
33595 _ACEOF
33596 cat confdefs.h >>conftest.$ac_ext
33597 cat >>conftest.$ac_ext <<_ACEOF
33598 /* end confdefs.h. */
33599 $ac_includes_default
33600 #include <$ac_header>
33601 _ACEOF
33602 rm -f conftest.$ac_objext
33603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33604 (eval $ac_compile) 2>&5
33605 ac_status=$?
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); } &&
33608 { ac_try='test -s conftest.$ac_objext'
33609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33610 (eval $ac_try) 2>&5
33611 ac_status=$?
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); }; }; then
33614 ac_header_compiler=yes
33615 else
33616 echo "$as_me: failed program was:" >&5
33617 sed 's/^/| /' conftest.$ac_ext >&5
33618
33619 ac_header_compiler=no
33620 fi
33621 rm -f conftest.$ac_objext conftest.$ac_ext
33622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33623 echo "${ECHO_T}$ac_header_compiler" >&6
33624
33625 # Is the header present?
33626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33628 cat >conftest.$ac_ext <<_ACEOF
33629 #line $LINENO "configure"
33630 /* confdefs.h. */
33631 _ACEOF
33632 cat confdefs.h >>conftest.$ac_ext
33633 cat >>conftest.$ac_ext <<_ACEOF
33634 /* end confdefs.h. */
33635 #include <$ac_header>
33636 _ACEOF
33637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33639 ac_status=$?
33640 grep -v '^ *+' conftest.er1 >conftest.err
33641 rm -f conftest.er1
33642 cat conftest.err >&5
33643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33644 (exit $ac_status); } >/dev/null; then
33645 if test -s conftest.err; then
33646 ac_cpp_err=$ac_c_preproc_warn_flag
33647 else
33648 ac_cpp_err=
33649 fi
33650 else
33651 ac_cpp_err=yes
33652 fi
33653 if test -z "$ac_cpp_err"; then
33654 ac_header_preproc=yes
33655 else
33656 echo "$as_me: failed program was:" >&5
33657 sed 's/^/| /' conftest.$ac_ext >&5
33658
33659 ac_header_preproc=no
33660 fi
33661 rm -f conftest.err conftest.$ac_ext
33662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33663 echo "${ECHO_T}$ac_header_preproc" >&6
33664
33665 # So? What about this header?
33666 case $ac_header_compiler:$ac_header_preproc in
33667 yes:no )
33668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33672 (
33673 cat <<\_ASBOX
33674 ## ------------------------------------ ##
33675 ## Report this to bug-autoconf@gnu.org. ##
33676 ## ------------------------------------ ##
33677 _ASBOX
33678 ) |
33679 sed "s/^/$as_me: WARNING: /" >&2
33680 ;;
33681 no:yes )
33682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33688 (
33689 cat <<\_ASBOX
33690 ## ------------------------------------ ##
33691 ## Report this to bug-autoconf@gnu.org. ##
33692 ## ------------------------------------ ##
33693 _ASBOX
33694 ) |
33695 sed "s/^/$as_me: WARNING: /" >&2
33696 ;;
33697 esac
33698 echo "$as_me:$LINENO: checking for $ac_header" >&5
33699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33701 echo $ECHO_N "(cached) $ECHO_C" >&6
33702 else
33703 eval "$as_ac_Header=$ac_header_preproc"
33704 fi
33705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33707
33708 fi
33709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33710 cat >>confdefs.h <<_ACEOF
33711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33712 _ACEOF
33713
33714 fi
33715
33716 done
33717
33718
33719 if test "$ac_cv_header_ole2_h" = "yes" ; then
33720 if test "$GCC" = yes ; then
33721
33722
33723 ac_ext=cc
33724 ac_cpp='$CXXCPP $CPPFLAGS'
33725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33728
33729
33730 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
33731 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
33732 cat >conftest.$ac_ext <<_ACEOF
33733 #line $LINENO "configure"
33734 /* confdefs.h. */
33735 _ACEOF
33736 cat confdefs.h >>conftest.$ac_ext
33737 cat >>conftest.$ac_ext <<_ACEOF
33738 /* end confdefs.h. */
33739 #include <windows.h>
33740 #include <ole2.h>
33741 int
33742 main ()
33743 {
33744
33745 ;
33746 return 0;
33747 }
33748 _ACEOF
33749 rm -f conftest.$ac_objext
33750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33751 (eval $ac_compile) 2>&5
33752 ac_status=$?
33753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754 (exit $ac_status); } &&
33755 { ac_try='test -s conftest.$ac_objext'
33756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33757 (eval $ac_try) 2>&5
33758 ac_status=$?
33759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33760 (exit $ac_status); }; }; then
33761 echo "$as_me:$LINENO: result: no" >&5
33762 echo "${ECHO_T}no" >&6
33763 else
33764 echo "$as_me: failed program was:" >&5
33765 sed 's/^/| /' conftest.$ac_ext >&5
33766
33767 echo "$as_me:$LINENO: result: yes" >&5
33768 echo "${ECHO_T}yes" >&6
33769 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
33770 fi
33771 rm -f conftest.$ac_objext conftest.$ac_ext
33772 ac_ext=c
33773 ac_cpp='$CPP $CPPFLAGS'
33774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33777
33778 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
33779 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
33780 if test "$wxUSE_OLE" = "yes" ; then
33781 cat >>confdefs.h <<\_ACEOF
33782 #define wxUSE_OLE 1
33783 _ACEOF
33784
33785 fi
33786 fi
33787
33788 if test "$wxUSE_DATAOBJ" = "yes" ; then
33789 cat >>confdefs.h <<\_ACEOF
33790 #define wxUSE_DATAOBJ 1
33791 _ACEOF
33792
33793 fi
33794 else
33795 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
33796 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
33797
33798 wxUSE_CLIPBOARD=no
33799 wxUSE_DRAG_AND_DROP=no
33800 wxUSE_DATAOBJ=no
33801 wxUSE_OLE=no
33802 fi
33803
33804 if test "$wxUSE_METAFILE" = "yes"; then
33805 cat >>confdefs.h <<\_ACEOF
33806 #define wxUSE_METAFILE 1
33807 _ACEOF
33808
33809
33810 cat >>confdefs.h <<\_ACEOF
33811 #define wxUSE_ENH_METAFILE 1
33812 _ACEOF
33813
33814 fi
33815 fi
33816
33817 if test "$wxUSE_IPC" = "yes"; then
33818 if test "$wxUSE_SOCKETS" != "yes"; then
33819 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
33820 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
33821 fi
33822
33823 cat >>confdefs.h <<\_ACEOF
33824 #define wxUSE_IPC 1
33825 _ACEOF
33826
33827 fi
33828
33829 if test "$wxUSE_CLIPBOARD" = "yes"; then
33830 if test "$wxUSE_MGL" = 1; then
33831 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
33832 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
33833 wxUSE_CLIPBOARD=no
33834 fi
33835
33836 if test "$wxUSE_CLIPBOARD" = "yes"; then
33837 cat >>confdefs.h <<\_ACEOF
33838 #define wxUSE_CLIPBOARD 1
33839 _ACEOF
33840
33841
33842 cat >>confdefs.h <<\_ACEOF
33843 #define wxUSE_DATAOBJ 1
33844 _ACEOF
33845
33846 fi
33847 fi
33848
33849 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
33850 if test "$wxUSE_GTK" = 1; then
33851 if test "$WXGTK12" != 1; then
33852 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
33853 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
33854 wxUSE_DRAG_AND_DROP=no
33855 fi
33856 fi
33857
33858 if test "$wxUSE_MOTIF" = 1; then
33859 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
33860 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
33861 wxUSE_DRAG_AND_DROP=no
33862 fi
33863
33864 if test "$wxUSE_X11" = 1; then
33865 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
33866 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
33867 wxUSE_DRAG_AND_DROP=no
33868 fi
33869
33870 if test "$wxUSE_MGL" = 1; then
33871 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
33872 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
33873 wxUSE_DRAG_AND_DROP=no
33874 fi
33875
33876 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
33877 cat >>confdefs.h <<\_ACEOF
33878 #define wxUSE_DRAG_AND_DROP 1
33879 _ACEOF
33880
33881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
33882 fi
33883
33884 fi
33885
33886 if test "$wxUSE_SPLINES" = "yes" ; then
33887 cat >>confdefs.h <<\_ACEOF
33888 #define wxUSE_SPLINES 1
33889 _ACEOF
33890
33891 fi
33892
33893
33894 USES_CONTROLS=0
33895 if test "$wxUSE_CONTROLS" = "yes"; then
33896 USES_CONTROLS=1
33897 fi
33898
33899 if test "$wxUSE_ACCEL" = "yes"; then
33900 cat >>confdefs.h <<\_ACEOF
33901 #define wxUSE_ACCEL 1
33902 _ACEOF
33903
33904 USES_CONTROLS=1
33905 fi
33906
33907 if test "$wxUSE_BUTTON" = "yes"; then
33908 cat >>confdefs.h <<\_ACEOF
33909 #define wxUSE_BUTTON 1
33910 _ACEOF
33911
33912 USES_CONTROLS=1
33913 fi
33914
33915 if test "$wxUSE_BMPBUTTON" = "yes"; then
33916 cat >>confdefs.h <<\_ACEOF
33917 #define wxUSE_BMPBUTTON 1
33918 _ACEOF
33919
33920 USES_CONTROLS=1
33921 fi
33922
33923 if test "$wxUSE_CALCTRL" = "yes"; then
33924 cat >>confdefs.h <<\_ACEOF
33925 #define wxUSE_CALENDARCTRL 1
33926 _ACEOF
33927
33928 USES_CONTROLS=1
33929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
33930 fi
33931
33932 if test "$wxUSE_CARET" = "yes"; then
33933 cat >>confdefs.h <<\_ACEOF
33934 #define wxUSE_CARET 1
33935 _ACEOF
33936
33937 USES_CONTROLS=1
33938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
33939 fi
33940
33941 if test "$wxUSE_COMBOBOX" = "yes"; then
33942 cat >>confdefs.h <<\_ACEOF
33943 #define wxUSE_COMBOBOX 1
33944 _ACEOF
33945
33946 USES_CONTROLS=1
33947 fi
33948
33949 if test "$wxUSE_CHOICE" = "yes"; then
33950 cat >>confdefs.h <<\_ACEOF
33951 #define wxUSE_CHOICE 1
33952 _ACEOF
33953
33954 USES_CONTROLS=1
33955 fi
33956
33957 if test "$wxUSE_CHECKBOX" = "yes"; then
33958 cat >>confdefs.h <<\_ACEOF
33959 #define wxUSE_CHECKBOX 1
33960 _ACEOF
33961
33962 USES_CONTROLS=1
33963 fi
33964
33965 if test "$wxUSE_CHECKLST" = "yes"; then
33966 cat >>confdefs.h <<\_ACEOF
33967 #define wxUSE_CHECKLISTBOX 1
33968 _ACEOF
33969
33970 USES_CONTROLS=1
33971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
33972 fi
33973
33974 if test "$wxUSE_DISPLAY" = "yes"; then
33975 cat >>confdefs.h <<\_ACEOF
33976 #define wxUSE_DISPLAY 1
33977 _ACEOF
33978
33979 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
33980 fi
33981
33982 if test "$wxUSE_GAUGE" = "yes"; then
33983 cat >>confdefs.h <<\_ACEOF
33984 #define wxUSE_GAUGE 1
33985 _ACEOF
33986
33987 USES_CONTROLS=1
33988 fi
33989
33990 if test "$wxUSE_GRID" = "yes"; then
33991 cat >>confdefs.h <<\_ACEOF
33992 #define wxUSE_GRID 1
33993 _ACEOF
33994
33995 USES_CONTROLS=1
33996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
33997 fi
33998
33999 if test "$wxUSE_IMAGLIST" = "yes"; then
34000 cat >>confdefs.h <<\_ACEOF
34001 #define wxUSE_IMAGLIST 1
34002 _ACEOF
34003
34004 fi
34005
34006 if test "$wxUSE_LISTBOOK" = "yes"; then
34007 cat >>confdefs.h <<\_ACEOF
34008 #define wxUSE_LISTBOOK 1
34009 _ACEOF
34010
34011 USES_CONTROLS=1
34012 fi
34013
34014 if test "$wxUSE_LISTBOX" = "yes"; then
34015 cat >>confdefs.h <<\_ACEOF
34016 #define wxUSE_LISTBOX 1
34017 _ACEOF
34018
34019 USES_CONTROLS=1
34020 fi
34021
34022 if test "$wxUSE_LISTCTRL" = "yes"; then
34023 if test "$wxUSE_IMAGLIST" = "yes"; then
34024 cat >>confdefs.h <<\_ACEOF
34025 #define wxUSE_LISTCTRL 1
34026 _ACEOF
34027
34028 USES_CONTROLS=1
34029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
34030 else
34031 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
34032 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
34033 fi
34034 fi
34035
34036 if test "$wxUSE_NOTEBOOK" = "yes"; then
34037 cat >>confdefs.h <<\_ACEOF
34038 #define wxUSE_NOTEBOOK 1
34039 _ACEOF
34040
34041 USES_CONTROLS=1
34042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
34043 fi
34044
34045
34046 if test "$wxUSE_RADIOBOX" = "yes"; then
34047 cat >>confdefs.h <<\_ACEOF
34048 #define wxUSE_RADIOBOX 1
34049 _ACEOF
34050
34051 USES_CONTROLS=1
34052 fi
34053
34054 if test "$wxUSE_RADIOBTN" = "yes"; then
34055 cat >>confdefs.h <<\_ACEOF
34056 #define wxUSE_RADIOBTN 1
34057 _ACEOF
34058
34059 USES_CONTROLS=1
34060 fi
34061
34062 if test "$wxUSE_SASH" = "yes"; then
34063 cat >>confdefs.h <<\_ACEOF
34064 #define wxUSE_SASH 1
34065 _ACEOF
34066
34067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
34068 fi
34069
34070 if test "$wxUSE_SCROLLBAR" = "yes"; then
34071 cat >>confdefs.h <<\_ACEOF
34072 #define wxUSE_SCROLLBAR 1
34073 _ACEOF
34074
34075 USES_CONTROLS=1
34076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
34077 fi
34078
34079 if test "$wxUSE_SLIDER" = "yes"; then
34080 cat >>confdefs.h <<\_ACEOF
34081 #define wxUSE_SLIDER 1
34082 _ACEOF
34083
34084 USES_CONTROLS=1
34085 fi
34086
34087 if test "$wxUSE_SPINBTN" = "yes"; then
34088 cat >>confdefs.h <<\_ACEOF
34089 #define wxUSE_SPINBTN 1
34090 _ACEOF
34091
34092 USES_CONTROLS=1
34093 fi
34094
34095 if test "$wxUSE_SPINCTRL" = "yes"; then
34096 cat >>confdefs.h <<\_ACEOF
34097 #define wxUSE_SPINCTRL 1
34098 _ACEOF
34099
34100 USES_CONTROLS=1
34101 fi
34102
34103 if test "$wxUSE_SPLITTER" = "yes"; then
34104 cat >>confdefs.h <<\_ACEOF
34105 #define wxUSE_SPLITTER 1
34106 _ACEOF
34107
34108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
34109 fi
34110
34111 if test "$wxUSE_STATBMP" = "yes"; then
34112 cat >>confdefs.h <<\_ACEOF
34113 #define wxUSE_STATBMP 1
34114 _ACEOF
34115
34116 USES_CONTROLS=1
34117 fi
34118
34119 if test "$wxUSE_STATBOX" = "yes"; then
34120 cat >>confdefs.h <<\_ACEOF
34121 #define wxUSE_STATBOX 1
34122 _ACEOF
34123
34124 USES_CONTROLS=1
34125 fi
34126
34127 if test "$wxUSE_STATTEXT" = "yes"; then
34128 cat >>confdefs.h <<\_ACEOF
34129 #define wxUSE_STATTEXT 1
34130 _ACEOF
34131
34132 USES_CONTROLS=1
34133 fi
34134
34135 if test "$wxUSE_STATLINE" = "yes"; then
34136 cat >>confdefs.h <<\_ACEOF
34137 #define wxUSE_STATLINE 1
34138 _ACEOF
34139
34140 USES_CONTROLS=1
34141 fi
34142
34143 if test "$wxUSE_STATUSBAR" = "yes"; then
34144 cat >>confdefs.h <<\_ACEOF
34145 #define wxUSE_STATUSBAR 1
34146 _ACEOF
34147
34148 USES_CONTROLS=1
34149
34150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
34151 fi
34152
34153 if test "$wxUSE_TABDIALOG" = "yes"; then
34154 cat >>confdefs.h <<\_ACEOF
34155 #define wxUSE_TAB_DIALOG 1
34156 _ACEOF
34157
34158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
34159 fi
34160
34161 if test "$wxUSE_TEXTCTRL" = "yes"; then
34162 cat >>confdefs.h <<\_ACEOF
34163 #define wxUSE_TEXTCTRL 1
34164 _ACEOF
34165
34166 USES_CONTROLS=1
34167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
34168 fi
34169
34170 if test "$wxUSE_TOGGLEBTN" = "yes"; then
34171 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
34172 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
34173 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
34174 wxUSE_TOGGLEBTN=no
34175 fi
34176 if test "$wxUSE_UNIVERSAL" = "yes"; then
34177 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
34178 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
34179 wxUSE_TOGGLEBTN=no
34180 fi
34181
34182 if test "$wxUSE_TOGGLEBTN" = "yes"; then
34183 cat >>confdefs.h <<\_ACEOF
34184 #define wxUSE_TOGGLEBTN 1
34185 _ACEOF
34186
34187 USES_CONTROLS=1
34188 fi
34189 fi
34190
34191 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
34192 cat >>confdefs.h <<\_ACEOF
34193 #define wxUSE_TOOLBAR_SIMPLE 1
34194 _ACEOF
34195
34196 wxUSE_TOOLBAR="yes"
34197 USES_CONTROLS=1
34198 fi
34199
34200 if test "$wxUSE_TOOLBAR" = "yes"; then
34201 cat >>confdefs.h <<\_ACEOF
34202 #define wxUSE_TOOLBAR 1
34203 _ACEOF
34204
34205 USES_CONTROLS=1
34206
34207 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
34208 wxUSE_TOOLBAR_NATIVE="yes"
34209 fi
34210
34211 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
34212 cat >>confdefs.h <<\_ACEOF
34213 #define wxUSE_TOOLBAR_NATIVE 1
34214 _ACEOF
34215
34216 USES_CONTROLS=1
34217 fi
34218
34219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
34220 fi
34221
34222 if test "$wxUSE_TOOLTIPS" = "yes"; then
34223 if test "$wxUSE_MOTIF" = 1; then
34224 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
34225 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
34226 else
34227 if test "$wxUSE_UNIVERSAL" = "yes"; then
34228 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
34229 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
34230 else
34231 cat >>confdefs.h <<\_ACEOF
34232 #define wxUSE_TOOLTIPS 1
34233 _ACEOF
34234
34235 fi
34236 fi
34237 fi
34238
34239 if test "$wxUSE_TREECTRL" = "yes"; then
34240 if test "$wxUSE_IMAGLIST" = "yes"; then
34241 cat >>confdefs.h <<\_ACEOF
34242 #define wxUSE_TREECTRL 1
34243 _ACEOF
34244
34245 USES_CONTROLS=1
34246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
34247 else
34248 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
34249 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
34250 fi
34251 fi
34252
34253 if test "$wxUSE_POPUPWIN" = "yes"; then
34254 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
34255 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
34256 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
34257 else
34258 if test "$wxUSE_PM" = 1; then
34259 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
34260 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
34261 else
34262 cat >>confdefs.h <<\_ACEOF
34263 #define wxUSE_POPUPWIN 1
34264 _ACEOF
34265
34266
34267 USES_CONTROLS=1
34268 fi
34269 fi
34270 fi
34271
34272 if test "$wxUSE_TIPWINDOW" = "yes"; then
34273 if test "$wxUSE_PM" = 1; then
34274 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
34275 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
34276 else
34277 cat >>confdefs.h <<\_ACEOF
34278 #define wxUSE_TIPWINDOW 1
34279 _ACEOF
34280
34281 fi
34282 fi
34283
34284 if test "$USES_CONTROLS" = 1; then
34285 cat >>confdefs.h <<\_ACEOF
34286 #define wxUSE_CONTROLS 1
34287 _ACEOF
34288
34289 fi
34290
34291
34292 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
34293 cat >>confdefs.h <<\_ACEOF
34294 #define wxUSE_ACCESSIBILITY 1
34295 _ACEOF
34296
34297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
34298 fi
34299
34300 if test "$wxUSE_DRAGIMAGE" = "yes"; then
34301 cat >>confdefs.h <<\_ACEOF
34302 #define wxUSE_DRAGIMAGE 1
34303 _ACEOF
34304
34305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
34306 fi
34307
34308 if test "$wxUSE_EXCEPTIONS" = "yes"; then
34309 cat >>confdefs.h <<\_ACEOF
34310 #define wxUSE_EXCEPTIONS 1
34311 _ACEOF
34312
34313 fi
34314
34315 USE_HTML=0
34316 if test "$wxUSE_HTML" = "yes"; then
34317 cat >>confdefs.h <<\_ACEOF
34318 #define wxUSE_HTML 1
34319 _ACEOF
34320
34321 USE_HTML=1
34322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
34323 fi
34324
34325 if test "$wxUSE_MENUS" = "yes"; then
34326 cat >>confdefs.h <<\_ACEOF
34327 #define wxUSE_MENUS 1
34328 _ACEOF
34329
34330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
34331 fi
34332
34333 if test "$wxUSE_METAFILE" = "yes"; then
34334 cat >>confdefs.h <<\_ACEOF
34335 #define wxUSE_METAFILE 1
34336 _ACEOF
34337
34338 fi
34339
34340 if test "$wxUSE_MIMETYPE" = "yes"; then
34341 cat >>confdefs.h <<\_ACEOF
34342 #define wxUSE_MIMETYPE 1
34343 _ACEOF
34344
34345 fi
34346
34347 if test "$wxUSE_MINIFRAME" = "yes"; then
34348 cat >>confdefs.h <<\_ACEOF
34349 #define wxUSE_MINIFRAME 1
34350 _ACEOF
34351
34352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
34353 fi
34354
34355 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
34356 cat >>confdefs.h <<\_ACEOF
34357 #define wxUSE_SYSTEM_OPTIONS 1
34358 _ACEOF
34359
34360 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
34361 "$TOOLKIT" = "MOTIF"; then
34362 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
34363 fi
34364 fi
34365
34366
34367 if test "$wxUSE_VALIDATORS" = "yes"; then
34368 cat >>confdefs.h <<\_ACEOF
34369 #define wxUSE_VALIDATORS 1
34370 _ACEOF
34371
34372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
34373 fi
34374
34375 if test "$wxUSE_PALETTE" = "yes" ; then
34376 cat >>confdefs.h <<\_ACEOF
34377 #define wxUSE_PALETTE 1
34378 _ACEOF
34379
34380 fi
34381
34382 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
34383 LIBS=" -lunicows $LIBS"
34384 fi
34385
34386
34387 if test "$wxUSE_IMAGE" = "yes" ; then
34388 cat >>confdefs.h <<\_ACEOF
34389 #define wxUSE_IMAGE 1
34390 _ACEOF
34391
34392
34393 if test "$wxUSE_GIF" = "yes" ; then
34394 cat >>confdefs.h <<\_ACEOF
34395 #define wxUSE_GIF 1
34396 _ACEOF
34397
34398 fi
34399
34400 if test "$wxUSE_PCX" = "yes" ; then
34401 cat >>confdefs.h <<\_ACEOF
34402 #define wxUSE_PCX 1
34403 _ACEOF
34404
34405 fi
34406
34407 if test "$wxUSE_IFF" = "yes" ; then
34408 cat >>confdefs.h <<\_ACEOF
34409 #define wxUSE_IFF 1
34410 _ACEOF
34411
34412 fi
34413
34414 if test "$wxUSE_PNM" = "yes" ; then
34415 cat >>confdefs.h <<\_ACEOF
34416 #define wxUSE_PNM 1
34417 _ACEOF
34418
34419 fi
34420
34421 if test "$wxUSE_XPM" = "yes" ; then
34422 cat >>confdefs.h <<\_ACEOF
34423 #define wxUSE_XPM 1
34424 _ACEOF
34425
34426 fi
34427
34428 if test "$wxUSE_ICO_CUR" = "yes" ; then
34429 cat >>confdefs.h <<\_ACEOF
34430 #define wxUSE_ICO_CUR 1
34431 _ACEOF
34432
34433 fi
34434 fi
34435
34436
34437 if test "$wxUSE_CHOICEDLG" = "yes"; then
34438 cat >>confdefs.h <<\_ACEOF
34439 #define wxUSE_CHOICEDLG 1
34440 _ACEOF
34441
34442 fi
34443
34444 if test "$wxUSE_COLOURDLG" = "yes"; then
34445 cat >>confdefs.h <<\_ACEOF
34446 #define wxUSE_COLOURDLG 1
34447 _ACEOF
34448
34449 fi
34450
34451 if test "$wxUSE_FILEDLG" = "yes"; then
34452 cat >>confdefs.h <<\_ACEOF
34453 #define wxUSE_FILEDLG 1
34454 _ACEOF
34455
34456 fi
34457
34458 if test "$wxUSE_FINDREPLDLG" = "yes"; then
34459 cat >>confdefs.h <<\_ACEOF
34460 #define wxUSE_FINDREPLDLG 1
34461 _ACEOF
34462
34463 fi
34464
34465 if test "$wxUSE_FONTDLG" = "yes"; then
34466 cat >>confdefs.h <<\_ACEOF
34467 #define wxUSE_FONTDLG 1
34468 _ACEOF
34469
34470 fi
34471
34472 if test "$wxUSE_DIRDLG" = "yes"; then
34473 if test "$wxUSE_TREECTRL" != "yes"; then
34474 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
34475 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
34476 else
34477 cat >>confdefs.h <<\_ACEOF
34478 #define wxUSE_DIRDLG 1
34479 _ACEOF
34480
34481 fi
34482 fi
34483
34484 if test "$wxUSE_MSGDLG" = "yes"; then
34485 cat >>confdefs.h <<\_ACEOF
34486 #define wxUSE_MSGDLG 1
34487 _ACEOF
34488
34489 fi
34490
34491 if test "$wxUSE_NUMBERDLG" = "yes"; then
34492 cat >>confdefs.h <<\_ACEOF
34493 #define wxUSE_NUMBERDLG 1
34494 _ACEOF
34495
34496 fi
34497
34498 if test "$wxUSE_PROGRESSDLG" = "yes"; then
34499 if test "$wxUSE_CONSTRAINTS" != "yes"; then
34500 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
34501 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
34502 else
34503 cat >>confdefs.h <<\_ACEOF
34504 #define wxUSE_PROGRESSDLG 1
34505 _ACEOF
34506
34507 fi
34508 fi
34509
34510 if test "$wxUSE_SPLASH" = "yes"; then
34511 cat >>confdefs.h <<\_ACEOF
34512 #define wxUSE_SPLASH 1
34513 _ACEOF
34514
34515 fi
34516
34517 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
34518 if test "$wxUSE_CONSTRAINTS" != "yes"; then
34519 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
34520 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
34521 else
34522 cat >>confdefs.h <<\_ACEOF
34523 #define wxUSE_STARTUP_TIPS 1
34524 _ACEOF
34525
34526 fi
34527 fi
34528
34529 if test "$wxUSE_TEXTDLG" = "yes"; then
34530 cat >>confdefs.h <<\_ACEOF
34531 #define wxUSE_TEXTDLG 1
34532 _ACEOF
34533
34534 fi
34535
34536 if test "$wxUSE_WIZARDDLG" = "yes"; then
34537 cat >>confdefs.h <<\_ACEOF
34538 #define wxUSE_WIZARDDLG 1
34539 _ACEOF
34540
34541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
34542 fi
34543
34544
34545 if test "$cross_compiling" = "yes"; then
34546 OSINFO="\"$host\""
34547 else
34548 OSINFO=`uname -s -r -m`
34549 OSINFO="\"$OSINFO\""
34550 fi
34551
34552 cat >>confdefs.h <<_ACEOF
34553 #define WXWIN_OS_DESCRIPTION $OSINFO
34554 _ACEOF
34555
34556
34557
34558 if test "x$prefix" != "xNONE"; then
34559 wxPREFIX=$prefix
34560 else
34561 wxPREFIX=$ac_default_prefix
34562 fi
34563
34564 cat >>confdefs.h <<_ACEOF
34565 #define wxINSTALL_PREFIX "$wxPREFIX"
34566 _ACEOF
34567
34568
34569 top_builddir_wxconfig=`pwd`
34570
34571
34572
34573 CORE_BASE_LIBS="net base"
34574 CORE_GUI_LIBS="adv core"
34575
34576 if test "$wxUSE_XML" = "yes" ; then
34577 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
34578 fi
34579 if test "$wxUSE_ODBC" != "no" ; then
34580 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
34581 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
34582 fi
34583 if test "$wxUSE_HTML" = "yes" ; then
34584 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
34585 fi
34586
34587 if test "$wxUSE_GUI" != "yes"; then
34588 CORE_GUI_LIBS=""
34589 fi
34590
34591
34592
34593
34594
34595
34596
34597
34598 if test "$wxUSE_MAC" = 1 ; then
34599 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
34600 fi
34601 if test "$wxUSE_COCOA" = 1 ; then
34602 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
34603 fi
34604
34605
34606 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
34607
34608 have_cos=0
34609 have_floor=0
34610
34611 for ac_func in cos
34612 do
34613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34614 echo "$as_me:$LINENO: checking for $ac_func" >&5
34615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34616 if eval "test \"\${$as_ac_var+set}\" = set"; then
34617 echo $ECHO_N "(cached) $ECHO_C" >&6
34618 else
34619 cat >conftest.$ac_ext <<_ACEOF
34620 #line $LINENO "configure"
34621 /* confdefs.h. */
34622 _ACEOF
34623 cat confdefs.h >>conftest.$ac_ext
34624 cat >>conftest.$ac_ext <<_ACEOF
34625 /* end confdefs.h. */
34626 /* System header to define __stub macros and hopefully few prototypes,
34627 which can conflict with char $ac_func (); below.
34628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34629 <limits.h> exists even on freestanding compilers. */
34630 #ifdef __STDC__
34631 # include <limits.h>
34632 #else
34633 # include <assert.h>
34634 #endif
34635 /* Override any gcc2 internal prototype to avoid an error. */
34636 #ifdef __cplusplus
34637 extern "C"
34638 {
34639 #endif
34640 /* We use char because int might match the return type of a gcc2
34641 builtin and then its argument prototype would still apply. */
34642 char $ac_func ();
34643 /* The GNU C library defines this for functions which it implements
34644 to always fail with ENOSYS. Some functions are actually named
34645 something starting with __ and the normal name is an alias. */
34646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34647 choke me
34648 #else
34649 char (*f) () = $ac_func;
34650 #endif
34651 #ifdef __cplusplus
34652 }
34653 #endif
34654
34655 int
34656 main ()
34657 {
34658 return f != $ac_func;
34659 ;
34660 return 0;
34661 }
34662 _ACEOF
34663 rm -f conftest.$ac_objext conftest$ac_exeext
34664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34665 (eval $ac_link) 2>&5
34666 ac_status=$?
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); } &&
34669 { ac_try='test -s conftest$ac_exeext'
34670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34671 (eval $ac_try) 2>&5
34672 ac_status=$?
34673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674 (exit $ac_status); }; }; then
34675 eval "$as_ac_var=yes"
34676 else
34677 echo "$as_me: failed program was:" >&5
34678 sed 's/^/| /' conftest.$ac_ext >&5
34679
34680 eval "$as_ac_var=no"
34681 fi
34682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34683 fi
34684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34686 if test `eval echo '${'$as_ac_var'}'` = yes; then
34687 cat >>confdefs.h <<_ACEOF
34688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34689 _ACEOF
34690 have_cos=1
34691 fi
34692 done
34693
34694
34695 for ac_func in floor
34696 do
34697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34698 echo "$as_me:$LINENO: checking for $ac_func" >&5
34699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34700 if eval "test \"\${$as_ac_var+set}\" = set"; then
34701 echo $ECHO_N "(cached) $ECHO_C" >&6
34702 else
34703 cat >conftest.$ac_ext <<_ACEOF
34704 #line $LINENO "configure"
34705 /* confdefs.h. */
34706 _ACEOF
34707 cat confdefs.h >>conftest.$ac_ext
34708 cat >>conftest.$ac_ext <<_ACEOF
34709 /* end confdefs.h. */
34710 /* System header to define __stub macros and hopefully few prototypes,
34711 which can conflict with char $ac_func (); below.
34712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34713 <limits.h> exists even on freestanding compilers. */
34714 #ifdef __STDC__
34715 # include <limits.h>
34716 #else
34717 # include <assert.h>
34718 #endif
34719 /* Override any gcc2 internal prototype to avoid an error. */
34720 #ifdef __cplusplus
34721 extern "C"
34722 {
34723 #endif
34724 /* We use char because int might match the return type of a gcc2
34725 builtin and then its argument prototype would still apply. */
34726 char $ac_func ();
34727 /* The GNU C library defines this for functions which it implements
34728 to always fail with ENOSYS. Some functions are actually named
34729 something starting with __ and the normal name is an alias. */
34730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34731 choke me
34732 #else
34733 char (*f) () = $ac_func;
34734 #endif
34735 #ifdef __cplusplus
34736 }
34737 #endif
34738
34739 int
34740 main ()
34741 {
34742 return f != $ac_func;
34743 ;
34744 return 0;
34745 }
34746 _ACEOF
34747 rm -f conftest.$ac_objext conftest$ac_exeext
34748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34749 (eval $ac_link) 2>&5
34750 ac_status=$?
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); } &&
34753 { ac_try='test -s conftest$ac_exeext'
34754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755 (eval $ac_try) 2>&5
34756 ac_status=$?
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); }; }; then
34759 eval "$as_ac_var=yes"
34760 else
34761 echo "$as_me: failed program was:" >&5
34762 sed 's/^/| /' conftest.$ac_ext >&5
34763
34764 eval "$as_ac_var=no"
34765 fi
34766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34767 fi
34768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34770 if test `eval echo '${'$as_ac_var'}'` = yes; then
34771 cat >>confdefs.h <<_ACEOF
34772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34773 _ACEOF
34774 have_floor=1
34775 fi
34776 done
34777
34778 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
34779 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
34780 if test "$have_cos" = 1 -a "$have_floor" = 1; then
34781 echo "$as_me:$LINENO: result: yes" >&5
34782 echo "${ECHO_T}yes" >&6
34783 else
34784 echo "$as_me:$LINENO: result: no" >&5
34785 echo "${ECHO_T}no" >&6
34786 LIBS="$LIBS -lm"
34787 # use different functions to avoid configure caching
34788 have_sin=0
34789 have_ceil=0
34790
34791 for ac_func in sin
34792 do
34793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34794 echo "$as_me:$LINENO: checking for $ac_func" >&5
34795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34796 if eval "test \"\${$as_ac_var+set}\" = set"; then
34797 echo $ECHO_N "(cached) $ECHO_C" >&6
34798 else
34799 cat >conftest.$ac_ext <<_ACEOF
34800 #line $LINENO "configure"
34801 /* confdefs.h. */
34802 _ACEOF
34803 cat confdefs.h >>conftest.$ac_ext
34804 cat >>conftest.$ac_ext <<_ACEOF
34805 /* end confdefs.h. */
34806 /* System header to define __stub macros and hopefully few prototypes,
34807 which can conflict with char $ac_func (); below.
34808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34809 <limits.h> exists even on freestanding compilers. */
34810 #ifdef __STDC__
34811 # include <limits.h>
34812 #else
34813 # include <assert.h>
34814 #endif
34815 /* Override any gcc2 internal prototype to avoid an error. */
34816 #ifdef __cplusplus
34817 extern "C"
34818 {
34819 #endif
34820 /* We use char because int might match the return type of a gcc2
34821 builtin and then its argument prototype would still apply. */
34822 char $ac_func ();
34823 /* The GNU C library defines this for functions which it implements
34824 to always fail with ENOSYS. Some functions are actually named
34825 something starting with __ and the normal name is an alias. */
34826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34827 choke me
34828 #else
34829 char (*f) () = $ac_func;
34830 #endif
34831 #ifdef __cplusplus
34832 }
34833 #endif
34834
34835 int
34836 main ()
34837 {
34838 return f != $ac_func;
34839 ;
34840 return 0;
34841 }
34842 _ACEOF
34843 rm -f conftest.$ac_objext conftest$ac_exeext
34844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34845 (eval $ac_link) 2>&5
34846 ac_status=$?
34847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848 (exit $ac_status); } &&
34849 { ac_try='test -s conftest$ac_exeext'
34850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34851 (eval $ac_try) 2>&5
34852 ac_status=$?
34853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); }; }; then
34855 eval "$as_ac_var=yes"
34856 else
34857 echo "$as_me: failed program was:" >&5
34858 sed 's/^/| /' conftest.$ac_ext >&5
34859
34860 eval "$as_ac_var=no"
34861 fi
34862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34863 fi
34864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34866 if test `eval echo '${'$as_ac_var'}'` = yes; then
34867 cat >>confdefs.h <<_ACEOF
34868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34869 _ACEOF
34870 have_sin=1
34871 fi
34872 done
34873
34874
34875 for ac_func in ceil
34876 do
34877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34878 echo "$as_me:$LINENO: checking for $ac_func" >&5
34879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34880 if eval "test \"\${$as_ac_var+set}\" = set"; then
34881 echo $ECHO_N "(cached) $ECHO_C" >&6
34882 else
34883 cat >conftest.$ac_ext <<_ACEOF
34884 #line $LINENO "configure"
34885 /* confdefs.h. */
34886 _ACEOF
34887 cat confdefs.h >>conftest.$ac_ext
34888 cat >>conftest.$ac_ext <<_ACEOF
34889 /* end confdefs.h. */
34890 /* System header to define __stub macros and hopefully few prototypes,
34891 which can conflict with char $ac_func (); below.
34892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34893 <limits.h> exists even on freestanding compilers. */
34894 #ifdef __STDC__
34895 # include <limits.h>
34896 #else
34897 # include <assert.h>
34898 #endif
34899 /* Override any gcc2 internal prototype to avoid an error. */
34900 #ifdef __cplusplus
34901 extern "C"
34902 {
34903 #endif
34904 /* We use char because int might match the return type of a gcc2
34905 builtin and then its argument prototype would still apply. */
34906 char $ac_func ();
34907 /* The GNU C library defines this for functions which it implements
34908 to always fail with ENOSYS. Some functions are actually named
34909 something starting with __ and the normal name is an alias. */
34910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34911 choke me
34912 #else
34913 char (*f) () = $ac_func;
34914 #endif
34915 #ifdef __cplusplus
34916 }
34917 #endif
34918
34919 int
34920 main ()
34921 {
34922 return f != $ac_func;
34923 ;
34924 return 0;
34925 }
34926 _ACEOF
34927 rm -f conftest.$ac_objext conftest$ac_exeext
34928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34929 (eval $ac_link) 2>&5
34930 ac_status=$?
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); } &&
34933 { ac_try='test -s conftest$ac_exeext'
34934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34935 (eval $ac_try) 2>&5
34936 ac_status=$?
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); }; }; then
34939 eval "$as_ac_var=yes"
34940 else
34941 echo "$as_me: failed program was:" >&5
34942 sed 's/^/| /' conftest.$ac_ext >&5
34943
34944 eval "$as_ac_var=no"
34945 fi
34946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34947 fi
34948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34950 if test `eval echo '${'$as_ac_var'}'` = yes; then
34951 cat >>confdefs.h <<_ACEOF
34952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34953 _ACEOF
34954 have_ceil=1
34955 fi
34956 done
34957
34958 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
34959 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
34960 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
34961 echo "$as_me:$LINENO: result: yes" >&5
34962 echo "${ECHO_T}yes" >&6
34963 else
34964 echo "$as_me:$LINENO: result: no" >&5
34965 echo "${ECHO_T}no" >&6
34966 # not sure we should warn the user, crash, etc.
34967 fi
34968 fi
34969
34970 if test "$wxUSE_GUI" = "yes"; then
34971
34972
34973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
34974 drawing dynamic erase event exec font image \
34975 minimal propsize rotate shaped widgets render"
34976
34977 if test "$wxUSE_MONOLITHIC" != "yes"; then
34978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
34979 fi
34980 else
34981 SAMPLES_SUBDIRS="console"
34982 fi
34983
34984
34985 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
34986 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
34987
34988 if test "$GXX" = yes ; then
34989 CXXWARNINGS="-Wall"
34990 fi
34991
34992 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
34993
34994 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
34995 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
34996 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
34997
34998
34999 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
35000 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
35001 EXTRALIBS_XML="$EXPAT_LINK"
35002 EXTRALIBS_HTML="$MSPACK_LINK"
35003 EXTRALIBS_ODBC="$ODBC_LINK"
35004 if test "$wxUSE_GUI" = "yes"; then
35005 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
35006 fi
35007 if test "$wxUSE_OPENGL" = "yes"; then
35008 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
35009 fi
35010
35011 LDFLAGS="$LDFLAGS $PROFILE"
35012
35013 if test "$wxUSE_GTK" = 1; then
35014 WXCONFIG_INCLUDE=
35015 else
35016 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
35017 fi
35018
35019 WXCONFIG_EXTRALIBS="$LIBS"
35020
35021 if test "$wxUSE_REGEX" = "builtin" ; then
35022 wxconfig_3rdparty="$wxconfig_3rdparty regex"
35023 fi
35024 if test "$wxUSE_EXPAT" = "builtin" ; then
35025 wxconfig_3rdparty="$wxconfig_3rdparty expat"
35026 fi
35027 if test "$wxUSE_ODBC" = "builtin" ; then
35028 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
35029 fi
35030 if test "$wxUSE_LIBTIFF" = "builtin" ; then
35031 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
35032 fi
35033 if test "$wxUSE_LIBJPEG" = "builtin" ; then
35034 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
35035 fi
35036 if test "$wxUSE_LIBPNG" = "builtin" ; then
35037 wxconfig_3rdparty="$wxconfig_3rdparty png"
35038 fi
35039 if test "$wxUSE_ZLIB" = "builtin" ; then
35040 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
35041 fi
35042 if test "$wxUSE_ODBC" = "builtin" ; then
35043 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
35044 fi
35045
35046 for i in $wxconfig_3rdparty ; do
35047 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
35048 done
35049
35050
35051 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
35052 WXUNIV=1
35053 else
35054 WXUNIV=0
35055 fi
35056
35057
35058
35059
35060
35061
35062
35063
35064
35065 if test $wxUSE_MONOLITHIC = "yes" ; then
35066 MONOLITHIC=1
35067 else
35068 MONOLITHIC=0
35069 fi
35070
35071 if test $wxUSE_PLUGINS = "yes" ; then
35072 USE_PLUGINS=1
35073 else
35074 USE_PLUGINS=0
35075 fi
35076
35077 if test $wxUSE_ODBC != "no" ; then
35078 USE_ODBC=1
35079 else
35080 USE_ODBC=0
35081 fi
35082
35083 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
35084 OFFICIAL_BUILD=1
35085 else
35086 OFFICIAL_BUILD=0
35087 fi
35088
35089
35090
35091
35092
35093
35094
35095
35096
35097
35098
35099
35100
35101
35102
35103
35104
35105
35106
35107
35108
35109 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
35110
35111
35112
35113
35114
35115
35116
35117 if test "x$BAKEFILE_HOST" = "x"; then
35118 BAKEFILE_HOST="${host}"
35119 fi
35120
35121 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
35122
35123 if test -n "$ac_tool_prefix"; then
35124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
35125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
35126 echo "$as_me:$LINENO: checking for $ac_word" >&5
35127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35128 if test "${ac_cv_prog_RANLIB+set}" = set; then
35129 echo $ECHO_N "(cached) $ECHO_C" >&6
35130 else
35131 if test -n "$RANLIB"; then
35132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
35133 else
35134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35135 for as_dir in $PATH
35136 do
35137 IFS=$as_save_IFS
35138 test -z "$as_dir" && as_dir=.
35139 for ac_exec_ext in '' $ac_executable_extensions; do
35140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35141 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
35142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35143 break 2
35144 fi
35145 done
35146 done
35147
35148 fi
35149 fi
35150 RANLIB=$ac_cv_prog_RANLIB
35151 if test -n "$RANLIB"; then
35152 echo "$as_me:$LINENO: result: $RANLIB" >&5
35153 echo "${ECHO_T}$RANLIB" >&6
35154 else
35155 echo "$as_me:$LINENO: result: no" >&5
35156 echo "${ECHO_T}no" >&6
35157 fi
35158
35159 fi
35160 if test -z "$ac_cv_prog_RANLIB"; then
35161 ac_ct_RANLIB=$RANLIB
35162 # Extract the first word of "ranlib", so it can be a program name with args.
35163 set dummy ranlib; ac_word=$2
35164 echo "$as_me:$LINENO: checking for $ac_word" >&5
35165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
35167 echo $ECHO_N "(cached) $ECHO_C" >&6
35168 else
35169 if test -n "$ac_ct_RANLIB"; then
35170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
35171 else
35172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35173 for as_dir in $PATH
35174 do
35175 IFS=$as_save_IFS
35176 test -z "$as_dir" && as_dir=.
35177 for ac_exec_ext in '' $ac_executable_extensions; do
35178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35179 ac_cv_prog_ac_ct_RANLIB="ranlib"
35180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35181 break 2
35182 fi
35183 done
35184 done
35185
35186 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
35187 fi
35188 fi
35189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
35190 if test -n "$ac_ct_RANLIB"; then
35191 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
35192 echo "${ECHO_T}$ac_ct_RANLIB" >&6
35193 else
35194 echo "$as_me:$LINENO: result: no" >&5
35195 echo "${ECHO_T}no" >&6
35196 fi
35197
35198 RANLIB=$ac_ct_RANLIB
35199 else
35200 RANLIB="$ac_cv_prog_RANLIB"
35201 fi
35202
35203 # Find a good install program. We prefer a C program (faster),
35204 # so one script is as good as another. But avoid the broken or
35205 # incompatible versions:
35206 # SysV /etc/install, /usr/sbin/install
35207 # SunOS /usr/etc/install
35208 # IRIX /sbin/install
35209 # AIX /bin/install
35210 # AmigaOS /C/install, which installs bootblocks on floppy discs
35211 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
35212 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
35213 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
35214 # ./install, which can be erroneously created by make from ./install.sh.
35215 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
35216 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
35217 if test -z "$INSTALL"; then
35218 if test "${ac_cv_path_install+set}" = set; then
35219 echo $ECHO_N "(cached) $ECHO_C" >&6
35220 else
35221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35222 for as_dir in $PATH
35223 do
35224 IFS=$as_save_IFS
35225 test -z "$as_dir" && as_dir=.
35226 # Account for people who put trailing slashes in PATH elements.
35227 case $as_dir/ in
35228 ./ | .// | /cC/* | \
35229 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
35230 /usr/ucb/* ) ;;
35231 *)
35232 # OSF1 and SCO ODT 3.0 have their own names for install.
35233 # Don't use installbsd from OSF since it installs stuff as root
35234 # by default.
35235 for ac_prog in ginstall scoinst install; do
35236 for ac_exec_ext in '' $ac_executable_extensions; do
35237 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
35238 if test $ac_prog = install &&
35239 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
35240 # AIX install. It has an incompatible calling convention.
35241 :
35242 elif test $ac_prog = install &&
35243 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
35244 # program-specific install script used by HP pwplus--don't use.
35245 :
35246 else
35247 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
35248 break 3
35249 fi
35250 fi
35251 done
35252 done
35253 ;;
35254 esac
35255 done
35256
35257
35258 fi
35259 if test "${ac_cv_path_install+set}" = set; then
35260 INSTALL=$ac_cv_path_install
35261 else
35262 # As a last resort, use the slow shell script. We don't cache a
35263 # path for INSTALL within a source directory, because that will
35264 # break other packages using the cache if that directory is
35265 # removed, or if the path is relative.
35266 INSTALL=$ac_install_sh
35267 fi
35268 fi
35269 echo "$as_me:$LINENO: result: $INSTALL" >&5
35270 echo "${ECHO_T}$INSTALL" >&6
35271
35272 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
35273 # It thinks the first close brace ends the variable substitution.
35274 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
35275
35276 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
35277
35278 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
35279
35280 echo "$as_me:$LINENO: checking whether ln -s works" >&5
35281 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
35282 LN_S=$as_ln_s
35283 if test "$LN_S" = "ln -s"; then
35284 echo "$as_me:$LINENO: result: yes" >&5
35285 echo "${ECHO_T}yes" >&6
35286 else
35287 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
35288 echo "${ECHO_T}no, using $LN_S" >&6
35289 fi
35290
35291
35292 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35293 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35294 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35295 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35296 echo $ECHO_N "(cached) $ECHO_C" >&6
35297 else
35298 cat >conftest.make <<\_ACEOF
35299 all:
35300 @echo 'ac_maketemp="$(MAKE)"'
35301 _ACEOF
35302 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35303 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35304 if test -n "$ac_maketemp"; then
35305 eval ac_cv_prog_make_${ac_make}_set=yes
35306 else
35307 eval ac_cv_prog_make_${ac_make}_set=no
35308 fi
35309 rm -f conftest.make
35310 fi
35311 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35312 echo "$as_me:$LINENO: result: yes" >&5
35313 echo "${ECHO_T}yes" >&6
35314 SET_MAKE=
35315 else
35316 echo "$as_me:$LINENO: result: no" >&5
35317 echo "${ECHO_T}no" >&6
35318 SET_MAKE="MAKE=${MAKE-make}"
35319 fi
35320
35321
35322
35323 if test -n "$ac_tool_prefix"; then
35324 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
35325 set dummy ${ac_tool_prefix}ar; ac_word=$2
35326 echo "$as_me:$LINENO: checking for $ac_word" >&5
35327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35328 if test "${ac_cv_prog_AR+set}" = set; then
35329 echo $ECHO_N "(cached) $ECHO_C" >&6
35330 else
35331 if test -n "$AR"; then
35332 ac_cv_prog_AR="$AR" # Let the user override the test.
35333 else
35334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35335 for as_dir in $PATH
35336 do
35337 IFS=$as_save_IFS
35338 test -z "$as_dir" && as_dir=.
35339 for ac_exec_ext in '' $ac_executable_extensions; do
35340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35341 ac_cv_prog_AR="${ac_tool_prefix}ar"
35342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35343 break 2
35344 fi
35345 done
35346 done
35347
35348 fi
35349 fi
35350 AR=$ac_cv_prog_AR
35351 if test -n "$AR"; then
35352 echo "$as_me:$LINENO: result: $AR" >&5
35353 echo "${ECHO_T}$AR" >&6
35354 else
35355 echo "$as_me:$LINENO: result: no" >&5
35356 echo "${ECHO_T}no" >&6
35357 fi
35358
35359 fi
35360 if test -z "$ac_cv_prog_AR"; then
35361 ac_ct_AR=$AR
35362 # Extract the first word of "ar", so it can be a program name with args.
35363 set dummy ar; ac_word=$2
35364 echo "$as_me:$LINENO: checking for $ac_word" >&5
35365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35366 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
35367 echo $ECHO_N "(cached) $ECHO_C" >&6
35368 else
35369 if test -n "$ac_ct_AR"; then
35370 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
35371 else
35372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35373 for as_dir in $PATH
35374 do
35375 IFS=$as_save_IFS
35376 test -z "$as_dir" && as_dir=.
35377 for ac_exec_ext in '' $ac_executable_extensions; do
35378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35379 ac_cv_prog_ac_ct_AR="ar"
35380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35381 break 2
35382 fi
35383 done
35384 done
35385
35386 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
35387 fi
35388 fi
35389 ac_ct_AR=$ac_cv_prog_ac_ct_AR
35390 if test -n "$ac_ct_AR"; then
35391 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
35392 echo "${ECHO_T}$ac_ct_AR" >&6
35393 else
35394 echo "$as_me:$LINENO: result: no" >&5
35395 echo "${ECHO_T}no" >&6
35396 fi
35397
35398 AR=$ac_ct_AR
35399 else
35400 AR="$ac_cv_prog_AR"
35401 fi
35402
35403 if test -n "$ac_tool_prefix"; then
35404 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
35405 set dummy ${ac_tool_prefix}strip; ac_word=$2
35406 echo "$as_me:$LINENO: checking for $ac_word" >&5
35407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35408 if test "${ac_cv_prog_STRIP+set}" = set; then
35409 echo $ECHO_N "(cached) $ECHO_C" >&6
35410 else
35411 if test -n "$STRIP"; then
35412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
35413 else
35414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35415 for as_dir in $PATH
35416 do
35417 IFS=$as_save_IFS
35418 test -z "$as_dir" && as_dir=.
35419 for ac_exec_ext in '' $ac_executable_extensions; do
35420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35421 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
35422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35423 break 2
35424 fi
35425 done
35426 done
35427
35428 fi
35429 fi
35430 STRIP=$ac_cv_prog_STRIP
35431 if test -n "$STRIP"; then
35432 echo "$as_me:$LINENO: result: $STRIP" >&5
35433 echo "${ECHO_T}$STRIP" >&6
35434 else
35435 echo "$as_me:$LINENO: result: no" >&5
35436 echo "${ECHO_T}no" >&6
35437 fi
35438
35439 fi
35440 if test -z "$ac_cv_prog_STRIP"; then
35441 ac_ct_STRIP=$STRIP
35442 # Extract the first word of "strip", so it can be a program name with args.
35443 set dummy strip; ac_word=$2
35444 echo "$as_me:$LINENO: checking for $ac_word" >&5
35445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35446 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
35447 echo $ECHO_N "(cached) $ECHO_C" >&6
35448 else
35449 if test -n "$ac_ct_STRIP"; then
35450 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
35451 else
35452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35453 for as_dir in $PATH
35454 do
35455 IFS=$as_save_IFS
35456 test -z "$as_dir" && as_dir=.
35457 for ac_exec_ext in '' $ac_executable_extensions; do
35458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35459 ac_cv_prog_ac_ct_STRIP="strip"
35460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35461 break 2
35462 fi
35463 done
35464 done
35465
35466 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
35467 fi
35468 fi
35469 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
35470 if test -n "$ac_ct_STRIP"; then
35471 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
35472 echo "${ECHO_T}$ac_ct_STRIP" >&6
35473 else
35474 echo "$as_me:$LINENO: result: no" >&5
35475 echo "${ECHO_T}no" >&6
35476 fi
35477
35478 STRIP=$ac_ct_STRIP
35479 else
35480 STRIP="$ac_cv_prog_STRIP"
35481 fi
35482
35483 if test -n "$ac_tool_prefix"; then
35484 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
35485 set dummy ${ac_tool_prefix}nm; ac_word=$2
35486 echo "$as_me:$LINENO: checking for $ac_word" >&5
35487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35488 if test "${ac_cv_prog_NM+set}" = set; then
35489 echo $ECHO_N "(cached) $ECHO_C" >&6
35490 else
35491 if test -n "$NM"; then
35492 ac_cv_prog_NM="$NM" # Let the user override the test.
35493 else
35494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35495 for as_dir in $PATH
35496 do
35497 IFS=$as_save_IFS
35498 test -z "$as_dir" && as_dir=.
35499 for ac_exec_ext in '' $ac_executable_extensions; do
35500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35501 ac_cv_prog_NM="${ac_tool_prefix}nm"
35502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35503 break 2
35504 fi
35505 done
35506 done
35507
35508 fi
35509 fi
35510 NM=$ac_cv_prog_NM
35511 if test -n "$NM"; then
35512 echo "$as_me:$LINENO: result: $NM" >&5
35513 echo "${ECHO_T}$NM" >&6
35514 else
35515 echo "$as_me:$LINENO: result: no" >&5
35516 echo "${ECHO_T}no" >&6
35517 fi
35518
35519 fi
35520 if test -z "$ac_cv_prog_NM"; then
35521 ac_ct_NM=$NM
35522 # Extract the first word of "nm", so it can be a program name with args.
35523 set dummy nm; ac_word=$2
35524 echo "$as_me:$LINENO: checking for $ac_word" >&5
35525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35526 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
35527 echo $ECHO_N "(cached) $ECHO_C" >&6
35528 else
35529 if test -n "$ac_ct_NM"; then
35530 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
35531 else
35532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35533 for as_dir in $PATH
35534 do
35535 IFS=$as_save_IFS
35536 test -z "$as_dir" && as_dir=.
35537 for ac_exec_ext in '' $ac_executable_extensions; do
35538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35539 ac_cv_prog_ac_ct_NM="nm"
35540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35541 break 2
35542 fi
35543 done
35544 done
35545
35546 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
35547 fi
35548 fi
35549 ac_ct_NM=$ac_cv_prog_ac_ct_NM
35550 if test -n "$ac_ct_NM"; then
35551 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
35552 echo "${ECHO_T}$ac_ct_NM" >&6
35553 else
35554 echo "$as_me:$LINENO: result: no" >&5
35555 echo "${ECHO_T}no" >&6
35556 fi
35557
35558 NM=$ac_ct_NM
35559 else
35560 NM="$ac_cv_prog_NM"
35561 fi
35562
35563
35564 case ${BAKEFILE_HOST} in
35565 *-hp-hpux* )
35566 INSTALL_DIR="mkdir"
35567 ;;
35568 *) INSTALL_DIR="$INSTALL -d"
35569 ;;
35570 esac
35571
35572
35573 LDFLAGS_GUI=
35574 case ${BAKEFILE_HOST} in
35575 *-*-cygwin* | *-*-mingw32* )
35576 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
35577 esac
35578
35579
35580 fi
35581
35582 echo "$as_me:$LINENO: checking if make is GNU make" >&5
35583 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
35584 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
35585 echo $ECHO_N "(cached) $ECHO_C" >&6
35586 else
35587
35588 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
35589 egrep -s GNU > /dev/null); then
35590 bakefile_cv_prog_makeisgnu="yes"
35591 else
35592 bakefile_cv_prog_makeisgnu="no"
35593 fi
35594
35595 fi
35596 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
35597 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
35598
35599 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
35600 IF_GNU_MAKE=""
35601 else
35602 IF_GNU_MAKE="#"
35603 fi
35604
35605
35606
35607 PLATFORM_UNIX=0
35608 PLATFORM_WIN32=0
35609 PLATFORM_MSDOS=0
35610 PLATFORM_MAC=0
35611 PLATFORM_MACOSX=0
35612 PLATFORM_OS2=0
35613
35614 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
35615 case "${BAKEFILE_HOST}" in
35616 *-*-cygwin* | *-*-mingw32* )
35617 PLATFORM_WIN32=1
35618 ;;
35619 *-pc-msdosdjgpp )
35620 PLATFORM_MSDOS=1
35621 ;;
35622 *-pc-os2_emx | *-pc-os2-emx )
35623 PLATFORM_OS2=1
35624 ;;
35625 powerpc-*-darwin* )
35626 PLATFORM_MAC=1
35627 PLATFORM_MACOSX=1
35628 ;;
35629 * )
35630 PLATFORM_UNIX=1
35631 ;;
35632 esac
35633 else
35634 case "$BAKEFILE_FORCE_PLATFORM" in
35635 win32 )
35636 PLATFORM_WIN32=1
35637 ;;
35638 msdos )
35639 PLATFORM_MSDOS=1
35640 ;;
35641 os2 )
35642 PLATFORM_OS2=1
35643 ;;
35644 darwin )
35645 PLATFORM_MAC=1
35646 PLATFORM_MACOSX=1
35647 ;;
35648 unix )
35649 PLATFORM_UNIX=1
35650 ;;
35651 * )
35652 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
35653 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
35654 { (exit 1); exit 1; }; }
35655 ;;
35656 esac
35657 fi
35658
35659
35660
35661
35662
35663
35664
35665
35666
35667 SO_SUFFIX="so"
35668 SO_SUFFIX_MODULE="so"
35669 EXEEXT=""
35670 LIBPREFIX=lib
35671 DLLPREFIX=lib
35672 DLLPREFIX_MODULE=
35673
35674 case "${BAKEFILE_HOST}" in
35675 *-hp-hpux* )
35676 SO_SUFFIX="sl"
35677 SO_SUFFIX_MODULE="sl"
35678 ;;
35679 *-*-aix* )
35680 SO_SUFFIX="a"
35681 SO_SUFFIX_MODULE="a"
35682 ;;
35683 *-*-cygwin* | *-*-mingw32* )
35684 SO_SUFFIX="dll"
35685 SO_SUFFIX_MODULE="dll"
35686 EXEEXT=".exe"
35687 DLLPREFIX=""
35688 ;;
35689 *-pc-msdosdjgpp )
35690 EXEEXT=".exe"
35691 DLLPREFIX=""
35692 ;;
35693 *-pc-os2_emx | *-pc-os2-emx )
35694 EXEEXT=".exe"
35695 DLLPREFIX=""
35696 LIBPREFIX=""
35697 ;;
35698 powerpc-*-darwin* )
35699 SO_SUFFIX="dylib"
35700 SO_SUFFIX_MODULE="bundle"
35701 ;;
35702 esac
35703
35704
35705
35706
35707
35708
35709
35710
35711
35712 SHARED_LD_CC="\$(CC) -shared -o"
35713 SHARED_LD_CXX="\$(CXX) -shared -o"
35714
35715 if test "x$GCC" = "xyes"; then
35716 PIC_FLAG="-fPIC"
35717 fi
35718
35719 case "${BAKEFILE_HOST}" in
35720 *-hp-hpux* )
35721 if test "x$GCC" = "xyes"; then
35722 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
35723 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
35724 else
35725 LDFLAGS="$LDFLAGS -L/usr/lib"
35726
35727 SHARED_LD_CC="${CC} -b -o"
35728 SHARED_LD_CXX="${CXX} -b -o"
35729 PIC_FLAG="+Z"
35730 fi
35731 ;;
35732
35733 *-*-linux* )
35734 if test "x$GCC" != "xyes"; then
35735 echo "$as_me:$LINENO: checking for Intel compiler" >&5
35736 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
35737 if test "${bakefile_cv_prog_icc+set}" = set; then
35738 echo $ECHO_N "(cached) $ECHO_C" >&6
35739 else
35740
35741 cat >conftest.$ac_ext <<_ACEOF
35742 #line $LINENO "configure"
35743 /* confdefs.h. */
35744 _ACEOF
35745 cat confdefs.h >>conftest.$ac_ext
35746 cat >>conftest.$ac_ext <<_ACEOF
35747 /* end confdefs.h. */
35748
35749 int
35750 main ()
35751 {
35752
35753 #ifndef __INTEL_COMPILER
35754 #error Not icc
35755 #endif
35756
35757 ;
35758 return 0;
35759 }
35760 _ACEOF
35761 rm -f conftest.$ac_objext
35762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35763 (eval $ac_compile) 2>&5
35764 ac_status=$?
35765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766 (exit $ac_status); } &&
35767 { ac_try='test -s conftest.$ac_objext'
35768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35769 (eval $ac_try) 2>&5
35770 ac_status=$?
35771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35772 (exit $ac_status); }; }; then
35773 bakefile_cv_prog_icc=yes
35774 else
35775 echo "$as_me: failed program was:" >&5
35776 sed 's/^/| /' conftest.$ac_ext >&5
35777
35778 bakefile_cv_prog_icc=no
35779
35780 fi
35781 rm -f conftest.$ac_objext conftest.$ac_ext
35782
35783 fi
35784 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
35785 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
35786 if test "$bakefile_cv_prog_icc" = "yes"; then
35787 PIC_FLAG="-KPIC"
35788 fi
35789 fi
35790 ;;
35791
35792 *-*-solaris2* )
35793 if test "x$GCC" != xyes ; then
35794 SHARED_LD_CC="${CC} -G -o"
35795 SHARED_LD_CXX="${CXX} -G -o"
35796 PIC_FLAG="-KPIC"
35797 fi
35798 ;;
35799
35800 *-*-darwin* )
35801 CFLAGS="$CFLAGS -fno-common"
35802 CXXFLAGS="$CXXFLAGS -fno-common"
35803
35804
35805 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
35806 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
35807 if test "${wx_cv_gcc31+set}" = set; then
35808 echo $ECHO_N "(cached) $ECHO_C" >&6
35809 else
35810
35811 cat >conftest.$ac_ext <<_ACEOF
35812 #line $LINENO "configure"
35813 /* confdefs.h. */
35814 _ACEOF
35815 cat confdefs.h >>conftest.$ac_ext
35816 cat >>conftest.$ac_ext <<_ACEOF
35817 /* end confdefs.h. */
35818
35819 int
35820 main ()
35821 {
35822
35823 #if (__GNUC__ < 3) || \
35824 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
35825 #error old gcc
35826 #endif
35827
35828 ;
35829 return 0;
35830 }
35831 _ACEOF
35832 rm -f conftest.$ac_objext
35833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35834 (eval $ac_compile) 2>&5
35835 ac_status=$?
35836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837 (exit $ac_status); } &&
35838 { ac_try='test -s conftest.$ac_objext'
35839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840 (eval $ac_try) 2>&5
35841 ac_status=$?
35842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843 (exit $ac_status); }; }; then
35844
35845 wx_cv_gcc31=yes
35846
35847 else
35848 echo "$as_me: failed program was:" >&5
35849 sed 's/^/| /' conftest.$ac_ext >&5
35850
35851
35852 wx_cv_gcc31=no
35853
35854
35855 fi
35856 rm -f conftest.$ac_objext conftest.$ac_ext
35857
35858 fi
35859 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
35860 echo "${ECHO_T}$wx_cv_gcc31" >&6
35861 if test "$wx_cv_gcc31" = "no"; then
35862 cat <<EOF >shared-ld-sh
35863 #!/bin/sh
35864 #-----------------------------------------------------------------------------
35865 #-- Name: distrib/mac/shared-ld-sh
35866 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
35867 #-- Author: Gilles Depeyrot
35868 #-- Copyright: (c) 2002 Gilles Depeyrot
35869 #-- Licence: any use permitted
35870 #-----------------------------------------------------------------------------
35871
35872 verbose=0
35873 args=""
35874 objects=""
35875 linking_flag="-dynamiclib"
35876
35877 while test \${#} -gt 0; do
35878 case \${1} in
35879
35880 -v)
35881 verbose=1
35882 ;;
35883
35884 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
35885 # collect these options and values
35886 args="\${args} \${1} \${2}"
35887 shift
35888 ;;
35889
35890 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
35891 # collect these options
35892 args="\${args} \${1}"
35893 ;;
35894
35895 -dynamiclib|-bundle)
35896 linking_flag="\${1}"
35897 ;;
35898
35899 -*)
35900 echo "shared-ld: unhandled option '\${1}'"
35901 exit 1
35902 ;;
35903
35904 *.o | *.a | *.dylib)
35905 # collect object files
35906 objects="\${objects} \${1}"
35907 ;;
35908
35909 *)
35910 echo "shared-ld: unhandled argument '\${1}'"
35911 exit 1
35912 ;;
35913
35914 esac
35915 shift
35916 done
35917
35918 #
35919 # Link one module containing all the others
35920 #
35921 if test \${verbose} = 1; then
35922 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
35923 fi
35924 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
35925 status=\$?
35926 if test \${status} != 0; then
35927 exit \${status}
35928 fi
35929
35930 #
35931 # Link the shared library from the single module created
35932 #
35933 if test \${verbose} = 1; then
35934 echo "cc \${linking_flag} master.\$\$.o \${args}"
35935 fi
35936 c++ \${linking_flag} master.\$\$.o \${args}
35937 status=\$?
35938 if test \${status} != 0; then
35939 exit \${status}
35940 fi
35941
35942 #
35943 # Remove intermediate module
35944 #
35945 rm -f master.\$\$.o
35946
35947 exit 0
35948 EOF
35949 chmod +x shared-ld-sh
35950
35951 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
35952 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
35953 SHARED_LD_CXX="$SHARED_LD_CC"
35954 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
35955 else
35956 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
35957 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
35958 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
35959 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
35960 fi
35961
35962 PIC_FLAG="-dynamic -fPIC"
35963 ;;
35964
35965 *-*-aix* )
35966 if test "x$GCC" != "xyes"; then
35967 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
35968 set dummy makeC++SharedLib; ac_word=$2
35969 echo "$as_me:$LINENO: checking for $ac_word" >&5
35970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35971 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
35972 echo $ECHO_N "(cached) $ECHO_C" >&6
35973 else
35974 if test -n "$AIX_CXX_LD"; then
35975 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
35976 else
35977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35978 for as_dir in $PATH
35979 do
35980 IFS=$as_save_IFS
35981 test -z "$as_dir" && as_dir=.
35982 for ac_exec_ext in '' $ac_executable_extensions; do
35983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35984 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
35985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35986 break 2
35987 fi
35988 done
35989 done
35990
35991 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
35992 fi
35993 fi
35994 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
35995 if test -n "$AIX_CXX_LD"; then
35996 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
35997 echo "${ECHO_T}$AIX_CXX_LD" >&6
35998 else
35999 echo "$as_me:$LINENO: result: no" >&5
36000 echo "${ECHO_T}no" >&6
36001 fi
36002
36003 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
36004 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
36005 fi
36006 ;;
36007
36008 *-*-beos* )
36009 SHARED_LD_CC="${LD} -shared -o"
36010 SHARED_LD_CXX="${LD} -shared -o"
36011 ;;
36012
36013 *-*-irix* )
36014 if test "x$GCC" != "xyes"; then
36015 PIC_FLAG="-KPIC"
36016 fi
36017 ;;
36018
36019 *-*-cygwin* | *-*-mingw32* )
36020 PIC_FLAG=""
36021 ;;
36022
36023 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
36024 *-*-sunos4* | \
36025 *-*-osf* | \
36026 *-*-dgux5* | \
36027 *-pc-os2_emx | *-pc-os2-emx | \
36028 *-*-sysv5* )
36029 ;;
36030
36031 *)
36032 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
36033 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
36034 { (exit 1); exit 1; }; }
36035 esac
36036
36037 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
36038 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
36039 fi
36040 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
36041 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
36042 fi
36043
36044
36045
36046
36047
36048
36049
36050
36051 USE_SOVERSION=0
36052 USE_SOVERLINUX=0
36053 USE_SOVERSOLARIS=0
36054 USE_SOSYMLINKS=0
36055 USE_MACVERSION=0
36056 SONAME_FLAG=
36057
36058 case "${BAKEFILE_HOST}" in
36059 *-*-linux* )
36060 SONAME_FLAG="-Wl,-soname,"
36061 USE_SOVERSION=1
36062 USE_SOVERLINUX=1
36063 USE_SOSYMLINKS=1
36064 ;;
36065
36066 *-*-solaris2* )
36067 SONAME_FLAG="-h "
36068 USE_SOVERSION=1
36069 USE_SOVERSOLARIS=1
36070 USE_SOSYMLINKS=1
36071 ;;
36072
36073 *-*-darwin* )
36074 USE_MACVERSION=1
36075 USE_SOVERSION=1
36076 USE_SOSYMLINKS=1
36077 ;;
36078 esac
36079
36080
36081
36082
36083
36084
36085
36086
36087
36088 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
36089 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
36090 DEPS_TRACKING=0
36091
36092 if test "x$GCC" = "xyes"; then
36093 DEPSMODE=gcc
36094 DEPS_TRACKING=1
36095 case "${BAKEFILE_HOST}" in
36096 powerpc-*-darwin* )
36097 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
36098 ;;
36099 * )
36100 DEPSFLAG_GCC="-MMD"
36101 ;;
36102 esac
36103 echo "$as_me:$LINENO: result: gcc" >&5
36104 echo "${ECHO_T}gcc" >&6
36105 else
36106 echo "$as_me:$LINENO: result: none" >&5
36107 echo "${ECHO_T}none" >&6
36108 fi
36109
36110 if test $DEPS_TRACKING = 1 ; then
36111 cat <<EOF >bk-deps
36112 #!/bin/sh
36113
36114 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
36115 # script. It is used to track C/C++ files dependencies in portable way.
36116 #
36117 # Permission is given to use this file in any way.
36118
36119 DEPSMODE=$DEPSMODE
36120 DEPSDIR=.deps
36121 DEPSFLAG_GCC="$DEPSFLAG_GCC"
36122
36123 mkdir -p \$DEPSDIR
36124
36125 if test \$DEPSMODE = gcc ; then
36126 \${*} \${DEPSFLAG_GCC}
36127 status=\${?}
36128 if test \${status} != 0 ; then
36129 exit \${status}
36130 fi
36131 # move created file to the location we want it in:
36132 while test \${#} -gt 0; do
36133 case "\${1}" in
36134 -o )
36135 shift
36136 objfile=\${1}
36137 ;;
36138 -* )
36139 ;;
36140 * )
36141 srcfile=\${1}
36142 ;;
36143 esac
36144 shift
36145 done
36146 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
36147 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
36148 if test -f \$depfile ; then
36149 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
36150 rm -f \$depfile
36151 else
36152 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
36153 if test -f \$depfile ; then
36154 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
36155 rm -f \$depfile
36156 fi
36157 fi
36158 exit 0
36159 else
36160 \${*}
36161 exit \${?}
36162 fi
36163 EOF
36164 chmod +x bk-deps
36165 fi
36166
36167
36168
36169
36170 RESCOMP=
36171 SETFILE=
36172
36173 case ${BAKEFILE_HOST} in
36174 *-*-cygwin* | *-*-mingw32* )
36175 if test "$build" != "$host" ; then
36176 RESCOMP=$host_alias-windres
36177 else
36178 # Extract the first word of "windres", so it can be a program name with args.
36179 set dummy windres; ac_word=$2
36180 echo "$as_me:$LINENO: checking for $ac_word" >&5
36181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36182 if test "${ac_cv_prog_RESCOMP+set}" = set; then
36183 echo $ECHO_N "(cached) $ECHO_C" >&6
36184 else
36185 if test -n "$RESCOMP"; then
36186 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
36187 else
36188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36189 for as_dir in $PATH
36190 do
36191 IFS=$as_save_IFS
36192 test -z "$as_dir" && as_dir=.
36193 for ac_exec_ext in '' $ac_executable_extensions; do
36194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36195 ac_cv_prog_RESCOMP="windres"
36196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36197 break 2
36198 fi
36199 done
36200 done
36201
36202 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
36203 fi
36204 fi
36205 RESCOMP=$ac_cv_prog_RESCOMP
36206 if test -n "$RESCOMP"; then
36207 echo "$as_me:$LINENO: result: $RESCOMP" >&5
36208 echo "${ECHO_T}$RESCOMP" >&6
36209 else
36210 echo "$as_me:$LINENO: result: no" >&5
36211 echo "${ECHO_T}no" >&6
36212 fi
36213
36214 fi
36215 ;;
36216
36217 *-*-darwin* )
36218 # Extract the first word of "Rez", so it can be a program name with args.
36219 set dummy Rez; ac_word=$2
36220 echo "$as_me:$LINENO: checking for $ac_word" >&5
36221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36222 if test "${ac_cv_prog_RESCOMP+set}" = set; then
36223 echo $ECHO_N "(cached) $ECHO_C" >&6
36224 else
36225 if test -n "$RESCOMP"; then
36226 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
36227 else
36228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36229 for as_dir in $PATH
36230 do
36231 IFS=$as_save_IFS
36232 test -z "$as_dir" && as_dir=.
36233 for ac_exec_ext in '' $ac_executable_extensions; do
36234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36235 ac_cv_prog_RESCOMP="Rez"
36236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36237 break 2
36238 fi
36239 done
36240 done
36241
36242 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
36243 fi
36244 fi
36245 RESCOMP=$ac_cv_prog_RESCOMP
36246 if test -n "$RESCOMP"; then
36247 echo "$as_me:$LINENO: result: $RESCOMP" >&5
36248 echo "${ECHO_T}$RESCOMP" >&6
36249 else
36250 echo "$as_me:$LINENO: result: no" >&5
36251 echo "${ECHO_T}no" >&6
36252 fi
36253
36254 # Extract the first word of "SetFile", so it can be a program name with args.
36255 set dummy SetFile; ac_word=$2
36256 echo "$as_me:$LINENO: checking for $ac_word" >&5
36257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36258 if test "${ac_cv_prog_SETFILE+set}" = set; then
36259 echo $ECHO_N "(cached) $ECHO_C" >&6
36260 else
36261 if test -n "$SETFILE"; then
36262 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
36263 else
36264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36265 for as_dir in $PATH
36266 do
36267 IFS=$as_save_IFS
36268 test -z "$as_dir" && as_dir=.
36269 for ac_exec_ext in '' $ac_executable_extensions; do
36270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36271 ac_cv_prog_SETFILE="SetFile"
36272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36273 break 2
36274 fi
36275 done
36276 done
36277
36278 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
36279 fi
36280 fi
36281 SETFILE=$ac_cv_prog_SETFILE
36282 if test -n "$SETFILE"; then
36283 echo "$as_me:$LINENO: result: $SETFILE" >&5
36284 echo "${ECHO_T}$SETFILE" >&6
36285 else
36286 echo "$as_me:$LINENO: result: no" >&5
36287 echo "${ECHO_T}no" >&6
36288 fi
36289
36290 ;;
36291 esac
36292
36293
36294
36295
36296
36297
36298
36299
36300
36301
36302 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
36303 if test "${enable_precomp_headers+set}" = set; then
36304 enableval="$enable_precomp_headers"
36305 bk_use_pch="$enableval"
36306 fi;
36307
36308 GCC_PCH=0
36309
36310 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
36311 if test "x$GCC" = "xyes"; then
36312 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
36313 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
36314 cat >conftest.$ac_ext <<_ACEOF
36315 #line $LINENO "configure"
36316 /* confdefs.h. */
36317 _ACEOF
36318 cat confdefs.h >>conftest.$ac_ext
36319 cat >>conftest.$ac_ext <<_ACEOF
36320 /* end confdefs.h. */
36321
36322 int
36323 main ()
36324 {
36325
36326 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
36327 #error "no pch support"
36328 #endif
36329 #if (__GNUC__ < 3)
36330 #error "no pch support"
36331 #endif
36332 #if (__GNUC__ == 3) && \
36333 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
36334 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
36335 #error "no pch support"
36336 #endif
36337
36338 ;
36339 return 0;
36340 }
36341 _ACEOF
36342 rm -f conftest.$ac_objext
36343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36344 (eval $ac_compile) 2>&5
36345 ac_status=$?
36346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36347 (exit $ac_status); } &&
36348 { ac_try='test -s conftest.$ac_objext'
36349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36350 (eval $ac_try) 2>&5
36351 ac_status=$?
36352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36353 (exit $ac_status); }; }; then
36354
36355 echo "$as_me:$LINENO: result: yes" >&5
36356 echo "${ECHO_T}yes" >&6
36357 CPPFLAGS="-fpch-deps $CPPFLAGS"
36358 GCC_PCH=1
36359
36360 else
36361 echo "$as_me: failed program was:" >&5
36362 sed 's/^/| /' conftest.$ac_ext >&5
36363
36364
36365 echo "$as_me:$LINENO: result: no" >&5
36366 echo "${ECHO_T}no" >&6
36367
36368 fi
36369 rm -f conftest.$ac_objext conftest.$ac_ext
36370 if test $GCC_PCH = 1 ; then
36371 cat <<EOF >bk-make-pch
36372 #!/bin/sh
36373
36374 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
36375 # script. It is used to generated precompiled headers.
36376 #
36377 # Permission is given to use this file in any way.
36378
36379 outfile="\${1}"
36380 header="\${2}"
36381 shift
36382 shift
36383
36384 compiler=
36385 headerfile=
36386 while test \${#} -gt 0; do
36387 case "\${1}" in
36388 -I* )
36389 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
36390 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
36391 headerfile="\${incdir}/\${header}"
36392 fi
36393 ;;
36394 esac
36395 compiler="\${compiler} \${1}"
36396 shift
36397 done
36398
36399 if test "x\${headerfile}" = "x" ; then
36400 echo "error: can't find header \${header} in include paths" >2
36401 else
36402 if test -f \${outfile} ; then
36403 rm -f \${outfile}
36404 else
36405 mkdir -p \`dirname \${outfile}\`
36406 fi
36407 depsfile=".deps/\`basename \${outfile}\`.d"
36408 mkdir -p .deps
36409 # can do this because gcc is >= 3.4:
36410 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
36411 exit \${?}
36412 fi
36413 EOF
36414 chmod +x bk-make-pch
36415 fi
36416 fi
36417 fi
36418
36419
36420
36421
36422
36423 COND_BUILD_DEBUG="#"
36424 if test "x$BUILD" = "xdebug" ; then
36425 COND_BUILD_DEBUG=""
36426 fi
36427
36428 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
36429 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
36430 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
36431 fi
36432
36433 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
36434 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
36435 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
36436 fi
36437
36438 COND_BUILD_DEBUG_UNICODE_0="#"
36439 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
36440 COND_BUILD_DEBUG_UNICODE_0=""
36441 fi
36442
36443 COND_BUILD_DEBUG_UNICODE_1="#"
36444 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
36445 COND_BUILD_DEBUG_UNICODE_1=""
36446 fi
36447
36448 COND_BUILD_RELEASE="#"
36449 if test "x$BUILD" = "xrelease" ; then
36450 COND_BUILD_RELEASE=""
36451 fi
36452
36453 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
36454 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
36455 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
36456 fi
36457
36458 COND_BUILD_RELEASE_UNICODE_0="#"
36459 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
36460 COND_BUILD_RELEASE_UNICODE_0=""
36461 fi
36462
36463 COND_BUILD_RELEASE_UNICODE_1="#"
36464 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
36465 COND_BUILD_RELEASE_UNICODE_1=""
36466 fi
36467
36468 COND_DEBUG_FLAG_1="#"
36469 if test "x$DEBUG_FLAG" = "x1" ; then
36470 COND_DEBUG_FLAG_1=""
36471 fi
36472
36473 COND_DEBUG_INFO_0="#"
36474 if test "x$DEBUG_INFO" = "x0" ; then
36475 COND_DEBUG_INFO_0=""
36476 fi
36477
36478 COND_DEBUG_INFO_1="#"
36479 if test "x$DEBUG_INFO" = "x1" ; then
36480 COND_DEBUG_INFO_1=""
36481 fi
36482
36483 COND_DEPS_TRACKING_0="#"
36484 if test "x$DEPS_TRACKING" = "x0" ; then
36485 COND_DEPS_TRACKING_0=""
36486 fi
36487
36488 COND_DEPS_TRACKING_1="#"
36489 if test "x$DEPS_TRACKING" = "x1" ; then
36490 COND_DEPS_TRACKING_1=""
36491 fi
36492
36493 COND_GCC_PCH_1="#"
36494 if test "x$GCC_PCH" = "x1" ; then
36495 COND_GCC_PCH_1=""
36496 fi
36497
36498 COND_MONOLITHIC_0="#"
36499 if test "x$MONOLITHIC" = "x0" ; then
36500 COND_MONOLITHIC_0=""
36501 fi
36502
36503 COND_MONOLITHIC_0_SHARED_0="#"
36504 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
36505 COND_MONOLITHIC_0_SHARED_0=""
36506 fi
36507
36508 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
36509 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
36510 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
36511 fi
36512
36513 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
36514 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
36515 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
36516 fi
36517
36518 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
36519 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
36520 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
36521 fi
36522
36523 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
36524 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
36525 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
36526 fi
36527
36528 COND_MONOLITHIC_0_SHARED_1="#"
36529 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
36530 COND_MONOLITHIC_0_SHARED_1=""
36531 fi
36532
36533 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
36534 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
36535 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
36536 fi
36537
36538 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
36539 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
36540 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
36541 fi
36542
36543 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
36544 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
36545 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
36546 fi
36547
36548 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
36549 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
36550 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
36551 fi
36552
36553 COND_MONOLITHIC_0_USE_ODBC_1="#"
36554 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
36555 COND_MONOLITHIC_0_USE_ODBC_1=""
36556 fi
36557
36558 COND_MONOLITHIC_1="#"
36559 if test "x$MONOLITHIC" = "x1" ; then
36560 COND_MONOLITHIC_1=""
36561 fi
36562
36563 COND_MONOLITHIC_1_SHARED_0="#"
36564 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
36565 COND_MONOLITHIC_1_SHARED_0=""
36566 fi
36567
36568 COND_MONOLITHIC_1_SHARED_1="#"
36569 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
36570 COND_MONOLITHIC_1_SHARED_1=""
36571 fi
36572
36573 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
36574 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
36575 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
36576 fi
36577
36578 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
36579 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
36580 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
36581 fi
36582
36583 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
36584 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
36585 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
36586 fi
36587
36588 COND_PLATFORM_MACOSX_1="#"
36589 if test "x$PLATFORM_MACOSX" = "x1" ; then
36590 COND_PLATFORM_MACOSX_1=""
36591 fi
36592
36593 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
36594 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
36595 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
36596 fi
36597
36598 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
36599 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
36600 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
36601 fi
36602
36603 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
36604 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
36605 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
36606 fi
36607
36608 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
36609 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
36610 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
36611 fi
36612
36613 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
36614 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
36615 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
36616 fi
36617
36618 COND_PLATFORM_MAC_1="#"
36619 if test "x$PLATFORM_MAC" = "x1" ; then
36620 COND_PLATFORM_MAC_1=""
36621 fi
36622
36623 COND_PLATFORM_OS2_1="#"
36624 if test "x$PLATFORM_OS2" = "x1" ; then
36625 COND_PLATFORM_OS2_1=""
36626 fi
36627
36628 COND_PLATFORM_UNIX_0="#"
36629 if test "x$PLATFORM_UNIX" = "x0" ; then
36630 COND_PLATFORM_UNIX_0=""
36631 fi
36632
36633 COND_PLATFORM_UNIX_1="#"
36634 if test "x$PLATFORM_UNIX" = "x1" ; then
36635 COND_PLATFORM_UNIX_1=""
36636 fi
36637
36638 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
36639 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
36640 COND_PLATFORM_UNIX_1_USE_GUI_1=""
36641 fi
36642
36643 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
36644 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
36645 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
36646 fi
36647
36648 COND_PLATFORM_WIN32_0="#"
36649 if test "x$PLATFORM_WIN32" = "x0" ; then
36650 COND_PLATFORM_WIN32_0=""
36651 fi
36652
36653 COND_PLATFORM_WIN32_1="#"
36654 if test "x$PLATFORM_WIN32" = "x1" ; then
36655 COND_PLATFORM_WIN32_1=""
36656 fi
36657
36658 COND_SHARED_0="#"
36659 if test "x$SHARED" = "x0" ; then
36660 COND_SHARED_0=""
36661 fi
36662
36663 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
36664 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
36665 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
36666 fi
36667
36668 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
36669 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36670 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
36671 fi
36672
36673 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
36674 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36675 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
36676 fi
36677
36678 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
36679 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36680 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
36681 fi
36682
36683 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
36684 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
36685 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
36686 fi
36687
36688 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
36689 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
36690 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
36691 fi
36692
36693 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
36694 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
36695 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
36696 fi
36697
36698 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
36699 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
36700 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
36701 fi
36702
36703 COND_SHARED_1="#"
36704 if test "x$SHARED" = "x1" ; then
36705 COND_SHARED_1=""
36706 fi
36707
36708 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
36709 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
36710 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
36711 fi
36712
36713 COND_TOOLKIT_COCOA="#"
36714 if test "x$TOOLKIT" = "xCOCOA" ; then
36715 COND_TOOLKIT_COCOA=""
36716 fi
36717
36718 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
36719 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36720 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
36721 fi
36722
36723 COND_TOOLKIT_GTK="#"
36724 if test "x$TOOLKIT" = "xGTK" ; then
36725 COND_TOOLKIT_GTK=""
36726 fi
36727
36728 COND_TOOLKIT_GTK_USE_GUI_1="#"
36729 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
36730 COND_TOOLKIT_GTK_USE_GUI_1=""
36731 fi
36732
36733 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
36734 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36735 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
36736 fi
36737
36738 COND_TOOLKIT_MAC="#"
36739 if test "x$TOOLKIT" = "xMAC" ; then
36740 COND_TOOLKIT_MAC=""
36741 fi
36742
36743 COND_TOOLKIT_MAC_USE_GUI_1="#"
36744 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
36745 COND_TOOLKIT_MAC_USE_GUI_1=""
36746 fi
36747
36748 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
36749 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36750 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
36751 fi
36752
36753 COND_TOOLKIT_MGL="#"
36754 if test "x$TOOLKIT" = "xMGL" ; then
36755 COND_TOOLKIT_MGL=""
36756 fi
36757
36758 COND_TOOLKIT_MGL_USE_GUI_1="#"
36759 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
36760 COND_TOOLKIT_MGL_USE_GUI_1=""
36761 fi
36762
36763 COND_TOOLKIT_MOTIF="#"
36764 if test "x$TOOLKIT" = "xMOTIF" ; then
36765 COND_TOOLKIT_MOTIF=""
36766 fi
36767
36768 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
36769 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
36770 COND_TOOLKIT_MOTIF_USE_GUI_1=""
36771 fi
36772
36773 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
36774 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36775 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
36776 fi
36777
36778 COND_TOOLKIT_MSW="#"
36779 if test "x$TOOLKIT" = "xMSW" ; then
36780 COND_TOOLKIT_MSW=""
36781 fi
36782
36783 COND_TOOLKIT_MSW_USE_GUI_1="#"
36784 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
36785 COND_TOOLKIT_MSW_USE_GUI_1=""
36786 fi
36787
36788 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
36789 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36790 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
36791 fi
36792
36793 COND_TOOLKIT_PM="#"
36794 if test "x$TOOLKIT" = "xPM" ; then
36795 COND_TOOLKIT_PM=""
36796 fi
36797
36798 COND_TOOLKIT_PM_USE_GUI_1="#"
36799 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
36800 COND_TOOLKIT_PM_USE_GUI_1=""
36801 fi
36802
36803 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
36804 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36805 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
36806 fi
36807
36808 COND_TOOLKIT_X11="#"
36809 if test "x$TOOLKIT" = "xX11" ; then
36810 COND_TOOLKIT_X11=""
36811 fi
36812
36813 COND_TOOLKIT_X11_USE_GUI_1="#"
36814 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
36815 COND_TOOLKIT_X11_USE_GUI_1=""
36816 fi
36817
36818 COND_UNICODE_1="#"
36819 if test "x$UNICODE" = "x1" ; then
36820 COND_UNICODE_1=""
36821 fi
36822
36823 COND_USE_EXCEPTIONS_0="#"
36824 if test "x$USE_EXCEPTIONS" = "x0" ; then
36825 COND_USE_EXCEPTIONS_0=""
36826 fi
36827
36828 COND_USE_EXCEPTIONS_1="#"
36829 if test "x$USE_EXCEPTIONS" = "x1" ; then
36830 COND_USE_EXCEPTIONS_1=""
36831 fi
36832
36833 COND_USE_GUI_0="#"
36834 if test "x$USE_GUI" = "x0" ; then
36835 COND_USE_GUI_0=""
36836 fi
36837
36838 COND_USE_GUI_1="#"
36839 if test "x$USE_GUI" = "x1" ; then
36840 COND_USE_GUI_1=""
36841 fi
36842
36843 COND_USE_GUI_1_WXUNIV_0="#"
36844 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36845 COND_USE_GUI_1_WXUNIV_0=""
36846 fi
36847
36848 COND_USE_GUI_1_WXUNIV_1="#"
36849 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
36850 COND_USE_GUI_1_WXUNIV_1=""
36851 fi
36852
36853 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
36854 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36855 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
36856 fi
36857
36858 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
36859 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36860 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
36861 fi
36862
36863 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
36864 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36865 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
36866 fi
36867
36868 COND_USE_ODBC_1="#"
36869 if test "x$USE_ODBC" = "x1" ; then
36870 COND_USE_ODBC_1=""
36871 fi
36872
36873 COND_USE_PLUGINS_0="#"
36874 if test "x$USE_PLUGINS" = "x0" ; then
36875 COND_USE_PLUGINS_0=""
36876 fi
36877
36878 COND_USE_SOSYMLINKS_1="#"
36879 if test "x$USE_SOSYMLINKS" = "x1" ; then
36880 COND_USE_SOSYMLINKS_1=""
36881 fi
36882
36883 COND_USE_SOVERLINUX_1="#"
36884 if test "x$USE_SOVERLINUX" = "x1" ; then
36885 COND_USE_SOVERLINUX_1=""
36886 fi
36887
36888 COND_USE_SOVERSION_0="#"
36889 if test "x$USE_SOVERSION" = "x0" ; then
36890 COND_USE_SOVERSION_0=""
36891 fi
36892
36893 COND_USE_SOVERSOLARIS_1="#"
36894 if test "x$USE_SOVERSOLARIS" = "x1" ; then
36895 COND_USE_SOVERSOLARIS_1=""
36896 fi
36897
36898 COND_WITH_PLUGIN_SDL_1="#"
36899 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
36900 COND_WITH_PLUGIN_SDL_1=""
36901 fi
36902
36903 COND_WITH_SDL_1="#"
36904 if test "x$WITH_SDL" = "x1" ; then
36905 COND_WITH_SDL_1=""
36906 fi
36907
36908 COND_WXUNIV_1="#"
36909 if test "x$WXUNIV" = "x1" ; then
36910 COND_WXUNIV_1=""
36911 fi
36912
36913 COND_WXUSE_EXPAT_BUILTIN="#"
36914 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
36915 COND_WXUSE_EXPAT_BUILTIN=""
36916 fi
36917
36918 COND_WXUSE_LIBJPEG_BUILTIN="#"
36919 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36920 COND_WXUSE_LIBJPEG_BUILTIN=""
36921 fi
36922
36923 COND_WXUSE_LIBPNG_BUILTIN="#"
36924 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36925 COND_WXUSE_LIBPNG_BUILTIN=""
36926 fi
36927
36928 COND_WXUSE_LIBTIFF_BUILTIN="#"
36929 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36930 COND_WXUSE_LIBTIFF_BUILTIN=""
36931 fi
36932
36933 COND_WXUSE_ODBC_BUILTIN="#"
36934 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
36935 COND_WXUSE_ODBC_BUILTIN=""
36936 fi
36937
36938 COND_WXUSE_REGEX_BUILTIN="#"
36939 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
36940 COND_WXUSE_REGEX_BUILTIN=""
36941 fi
36942
36943 COND_WXUSE_ZLIB_BUILTIN="#"
36944 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
36945 COND_WXUSE_ZLIB_BUILTIN=""
36946 fi
36947
36948
36949
36950
36951
36952 if test $GCC_PCH = 1 ; then
36953 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
36954 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
36955 else
36956 case "${host}" in
36957 powerpc-*-darwin* )
36958 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
36959 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
36960 ;;
36961 esac
36962 fi
36963
36964
36965 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
36966
36967
36968
36969
36970
36971
36972
36973
36974
36975
36976
36977
36978
36979
36980
36981
36982
36983
36984
36985
36986
36987
36988
36989
36990
36991
36992
36993
36994
36995
36996
36997
36998
36999
37000
37001
37002
37003
37004
37005
37006
37007
37008
37009
37010
37011
37012
37013
37014
37015
37016
37017
37018
37019
37020
37021
37022
37023
37024
37025
37026
37027
37028
37029
37030
37031
37032
37033
37034
37035
37036
37037
37038
37039
37040
37041
37042
37043
37044
37045
37046
37047
37048
37049
37050
37051
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063
37064
37065 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37066 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
37067 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
37068 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37069 echo $ECHO_N "(cached) $ECHO_C" >&6
37070 else
37071 cat >conftest.make <<\_ACEOF
37072 all:
37073 @echo 'ac_maketemp="$(MAKE)"'
37074 _ACEOF
37075 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
37076 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
37077 if test -n "$ac_maketemp"; then
37078 eval ac_cv_prog_make_${ac_make}_set=yes
37079 else
37080 eval ac_cv_prog_make_${ac_make}_set=no
37081 fi
37082 rm -f conftest.make
37083 fi
37084 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
37085 echo "$as_me:$LINENO: result: yes" >&5
37086 echo "${ECHO_T}yes" >&6
37087 SET_MAKE=
37088 else
37089 echo "$as_me:$LINENO: result: no" >&5
37090 echo "${ECHO_T}no" >&6
37091 SET_MAKE="MAKE=${MAKE-make}"
37092 fi
37093
37094
37095 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
37096 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
37097 fi
37098
37099 ac_config_headers="$ac_config_headers setup.h"
37100
37101
37102 ac_config_files="$ac_config_files wx-config version-script Makefile"
37103
37104
37105 ac_config_commands="$ac_config_commands default"
37106
37107
37108
37109 if test "$wxUSE_GUI" = "yes"; then
37110 SUBDIRS="samples demos utils contrib"
37111 else SUBDIRS="samples utils"
37112 fi
37113
37114 for subdir in `echo $SUBDIRS`; do
37115 if test -d ${srcdir}/${subdir} ; then
37116 if test "$wxUSE_GUI" = "yes"; then
37117 if test ${subdir} = "samples"; then
37118 makefiles="samples/Makefile.in $makefiles"
37119 for sample in `echo $SAMPLES_SUBDIRS`; do
37120 if test -d $srcdir/samples/$sample; then
37121 makefiles="samples/$sample/Makefile.in $makefiles"
37122 fi
37123 done
37124 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
37125 fi
37126 else if test ${subdir} = "samples"; then
37127 makefiles="samples/Makefile.in samples/console/Makefile.in"
37128 else makefiles="utils/HelpGen/Makefile.in \
37129 utils/HelpGen/src/Makefile.in \
37130 utils/tex2rtf/Makefile.in \
37131 utils/tex2rtf/src/Makefile.in"
37132 fi
37133 fi
37134
37135 for mkin in $makefiles ; do
37136 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
37137 ac_config_files="$ac_config_files $mk"
37138
37139 done
37140 fi
37141 done
37142
37143
37144 cat >confcache <<\_ACEOF
37145 # This file is a shell script that caches the results of configure
37146 # tests run on this system so they can be shared between configure
37147 # scripts and configure runs, see configure's option --config-cache.
37148 # It is not useful on other systems. If it contains results you don't
37149 # want to keep, you may remove or edit it.
37150 #
37151 # config.status only pays attention to the cache file if you give it
37152 # the --recheck option to rerun configure.
37153 #
37154 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37155 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37156 # following values.
37157
37158 _ACEOF
37159
37160 # The following way of writing the cache mishandles newlines in values,
37161 # but we know of no workaround that is simple, portable, and efficient.
37162 # So, don't put newlines in cache variables' values.
37163 # Ultrix sh set writes to stderr and can't be redirected directly,
37164 # and sets the high bit in the cache file unless we assign to the vars.
37165 {
37166 (set) 2>&1 |
37167 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37168 *ac_space=\ *)
37169 # `set' does not quote correctly, so add quotes (double-quote
37170 # substitution turns \\\\ into \\, and sed turns \\ into \).
37171 sed -n \
37172 "s/'/'\\\\''/g;
37173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37174 ;;
37175 *)
37176 # `set' quotes correctly as required by POSIX, so do not add quotes.
37177 sed -n \
37178 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
37179 ;;
37180 esac;
37181 } |
37182 sed '
37183 t clear
37184 : clear
37185 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37186 t end
37187 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37188 : end' >>confcache
37189 if diff $cache_file confcache >/dev/null 2>&1; then :; else
37190 if test -w $cache_file; then
37191 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37192 cat confcache >$cache_file
37193 else
37194 echo "not updating unwritable cache $cache_file"
37195 fi
37196 fi
37197 rm -f confcache
37198
37199 test "x$prefix" = xNONE && prefix=$ac_default_prefix
37200 # Let make expand exec_prefix.
37201 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37202
37203 # VPATH may cause trouble with some makes, so we remove $(srcdir),
37204 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
37205 # trailing colons and then remove the whole line if VPATH becomes empty
37206 # (actually we leave an empty line to preserve line numbers).
37207 if test "x$srcdir" = x.; then
37208 ac_vpsub='/^[ ]*VPATH[ ]*=/{
37209 s/:*\$(srcdir):*/:/;
37210 s/:*\${srcdir}:*/:/;
37211 s/:*@srcdir@:*/:/;
37212 s/^\([^=]*=[ ]*\):*/\1/;
37213 s/:*$//;
37214 s/^[^=]*=[ ]*$//;
37215 }'
37216 fi
37217
37218 DEFS=-DHAVE_CONFIG_H
37219
37220 ac_libobjs=
37221 ac_ltlibobjs=
37222 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37223 # 1. Remove the extension, and $U if already installed.
37224 ac_i=`echo "$ac_i" |
37225 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
37226 # 2. Add them.
37227 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
37228 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
37229 done
37230 LIBOBJS=$ac_libobjs
37231
37232 LTLIBOBJS=$ac_ltlibobjs
37233
37234
37235
37236 : ${CONFIG_STATUS=./config.status}
37237 ac_clean_files_save=$ac_clean_files
37238 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37239 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
37240 echo "$as_me: creating $CONFIG_STATUS" >&6;}
37241 cat >$CONFIG_STATUS <<_ACEOF
37242 #! $SHELL
37243 # Generated by $as_me.
37244 # Run this file to recreate the current configuration.
37245 # Compiler output produced by configure, useful for debugging
37246 # configure, is in config.log if it exists.
37247
37248 debug=false
37249 ac_cs_recheck=false
37250 ac_cs_silent=false
37251 SHELL=\${CONFIG_SHELL-$SHELL}
37252 _ACEOF
37253
37254 cat >>$CONFIG_STATUS <<\_ACEOF
37255 ## --------------------- ##
37256 ## M4sh Initialization. ##
37257 ## --------------------- ##
37258
37259 # Be Bourne compatible
37260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37261 emulate sh
37262 NULLCMD=:
37263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37264 # is contrary to our usage. Disable this feature.
37265 alias -g '${1+"$@"}'='"$@"'
37266 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
37267 set -o posix
37268 fi
37269
37270 # Support unset when possible.
37271 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37272 as_unset=unset
37273 else
37274 as_unset=false
37275 fi
37276
37277
37278 # Work around bugs in pre-3.0 UWIN ksh.
37279 $as_unset ENV MAIL MAILPATH
37280 PS1='$ '
37281 PS2='> '
37282 PS4='+ '
37283
37284 # NLS nuisances.
37285 for as_var in \
37286 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
37287 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
37288 LC_TELEPHONE LC_TIME
37289 do
37290 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
37291 eval $as_var=C; export $as_var
37292 else
37293 $as_unset $as_var
37294 fi
37295 done
37296
37297 # Required to use basename.
37298 if expr a : '\(a\)' >/dev/null 2>&1; then
37299 as_expr=expr
37300 else
37301 as_expr=false
37302 fi
37303
37304 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
37305 as_basename=basename
37306 else
37307 as_basename=false
37308 fi
37309
37310
37311 # Name of the executable.
37312 as_me=`$as_basename "$0" ||
37313 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37314 X"$0" : 'X\(//\)$' \| \
37315 X"$0" : 'X\(/\)$' \| \
37316 . : '\(.\)' 2>/dev/null ||
37317 echo X/"$0" |
37318 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
37319 /^X\/\(\/\/\)$/{ s//\1/; q; }
37320 /^X\/\(\/\).*/{ s//\1/; q; }
37321 s/.*/./; q'`
37322
37323
37324 # PATH needs CR, and LINENO needs CR and PATH.
37325 # Avoid depending upon Character Ranges.
37326 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37327 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37328 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37329 as_cr_digits='0123456789'
37330 as_cr_alnum=$as_cr_Letters$as_cr_digits
37331
37332 # The user is always right.
37333 if test "${PATH_SEPARATOR+set}" != set; then
37334 echo "#! /bin/sh" >conf$$.sh
37335 echo "exit 0" >>conf$$.sh
37336 chmod +x conf$$.sh
37337 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37338 PATH_SEPARATOR=';'
37339 else
37340 PATH_SEPARATOR=:
37341 fi
37342 rm -f conf$$.sh
37343 fi
37344
37345
37346 as_lineno_1=$LINENO
37347 as_lineno_2=$LINENO
37348 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37349 test "x$as_lineno_1" != "x$as_lineno_2" &&
37350 test "x$as_lineno_3" = "x$as_lineno_2" || {
37351 # Find who we are. Look in the path if we contain no path at all
37352 # relative or not.
37353 case $0 in
37354 *[\\/]* ) as_myself=$0 ;;
37355 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37356 for as_dir in $PATH
37357 do
37358 IFS=$as_save_IFS
37359 test -z "$as_dir" && as_dir=.
37360 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37361 done
37362
37363 ;;
37364 esac
37365 # We did not find ourselves, most probably we were run as `sh COMMAND'
37366 # in which case we are not to be found in the path.
37367 if test "x$as_myself" = x; then
37368 as_myself=$0
37369 fi
37370 if test ! -f "$as_myself"; then
37371 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
37372 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
37373 { (exit 1); exit 1; }; }
37374 fi
37375 case $CONFIG_SHELL in
37376 '')
37377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37378 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
37379 do
37380 IFS=$as_save_IFS
37381 test -z "$as_dir" && as_dir=.
37382 for as_base in sh bash ksh sh5; do
37383 case $as_dir in
37384 /*)
37385 if ("$as_dir/$as_base" -c '
37386 as_lineno_1=$LINENO
37387 as_lineno_2=$LINENO
37388 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37389 test "x$as_lineno_1" != "x$as_lineno_2" &&
37390 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
37391 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
37392 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
37393 CONFIG_SHELL=$as_dir/$as_base
37394 export CONFIG_SHELL
37395 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
37396 fi;;
37397 esac
37398 done
37399 done
37400 ;;
37401 esac
37402
37403 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37404 # uniformly replaced by the line number. The first 'sed' inserts a
37405 # line-number line before each line; the second 'sed' does the real
37406 # work. The second script uses 'N' to pair each line-number line
37407 # with the numbered line, and appends trailing '-' during
37408 # substitution so that $LINENO is not a special case at line end.
37409 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37410 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
37411 sed '=' <$as_myself |
37412 sed '
37413 N
37414 s,$,-,
37415 : loop
37416 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
37417 t loop
37418 s,-$,,
37419 s,^['$as_cr_digits']*\n,,
37420 ' >$as_me.lineno &&
37421 chmod +x $as_me.lineno ||
37422 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
37423 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
37424 { (exit 1); exit 1; }; }
37425
37426 # Don't try to exec as it changes $[0], causing all sort of problems
37427 # (the dirname of $[0] is not the place where we might find the
37428 # original and so on. Autoconf is especially sensible to this).
37429 . ./$as_me.lineno
37430 # Exit status is that of the last command.
37431 exit
37432 }
37433
37434
37435 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
37436 *c*,-n*) ECHO_N= ECHO_C='
37437 ' ECHO_T=' ' ;;
37438 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
37439 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
37440 esac
37441
37442 if expr a : '\(a\)' >/dev/null 2>&1; then
37443 as_expr=expr
37444 else
37445 as_expr=false
37446 fi
37447
37448 rm -f conf$$ conf$$.exe conf$$.file
37449 echo >conf$$.file
37450 if ln -s conf$$.file conf$$ 2>/dev/null; then
37451 # We could just check for DJGPP; but this test a) works b) is more generic
37452 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
37453 if test -f conf$$.exe; then
37454 # Don't use ln at all; we don't have any links
37455 as_ln_s='cp -p'
37456 else
37457 as_ln_s='ln -s'
37458 fi
37459 elif ln conf$$.file conf$$ 2>/dev/null; then
37460 as_ln_s=ln
37461 else
37462 as_ln_s='cp -p'
37463 fi
37464 rm -f conf$$ conf$$.exe conf$$.file
37465
37466 if mkdir -p . 2>/dev/null; then
37467 as_mkdir_p=:
37468 else
37469 as_mkdir_p=false
37470 fi
37471
37472 as_executable_p="test -f"
37473
37474 # Sed expression to map a string onto a valid CPP name.
37475 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
37476
37477 # Sed expression to map a string onto a valid variable name.
37478 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
37479
37480
37481 # IFS
37482 # We need space, tab and new line, in precisely that order.
37483 as_nl='
37484 '
37485 IFS=" $as_nl"
37486
37487 # CDPATH.
37488 $as_unset CDPATH
37489
37490 exec 6>&1
37491
37492 # Open the log real soon, to keep \$[0] and so on meaningful, and to
37493 # report actual input values of CONFIG_FILES etc. instead of their
37494 # values after options handling. Logging --version etc. is OK.
37495 exec 5>>config.log
37496 {
37497 echo
37498 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37499 ## Running $as_me. ##
37500 _ASBOX
37501 } >&5
37502 cat >&5 <<_CSEOF
37503
37504 This file was extended by wxWindows $as_me 2.5.1, which was
37505 generated by GNU Autoconf 2.57. Invocation command line was
37506
37507 CONFIG_FILES = $CONFIG_FILES
37508 CONFIG_HEADERS = $CONFIG_HEADERS
37509 CONFIG_LINKS = $CONFIG_LINKS
37510 CONFIG_COMMANDS = $CONFIG_COMMANDS
37511 $ $0 $@
37512
37513 _CSEOF
37514 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
37515 echo >&5
37516 _ACEOF
37517
37518 # Files that config.status was made for.
37519 if test -n "$ac_config_files"; then
37520 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
37521 fi
37522
37523 if test -n "$ac_config_headers"; then
37524 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
37525 fi
37526
37527 if test -n "$ac_config_links"; then
37528 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
37529 fi
37530
37531 if test -n "$ac_config_commands"; then
37532 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
37533 fi
37534
37535 cat >>$CONFIG_STATUS <<\_ACEOF
37536
37537 ac_cs_usage="\
37538 \`$as_me' instantiates files from templates according to the
37539 current configuration.
37540
37541 Usage: $0 [OPTIONS] [FILE]...
37542
37543 -h, --help print this help, then exit
37544 -V, --version print version number, then exit
37545 -q, --quiet do not print progress messages
37546 -d, --debug don't remove temporary files
37547 --recheck update $as_me by reconfiguring in the same conditions
37548 --file=FILE[:TEMPLATE]
37549 instantiate the configuration file FILE
37550 --header=FILE[:TEMPLATE]
37551 instantiate the configuration header FILE
37552
37553 Configuration files:
37554 $config_files
37555
37556 Configuration headers:
37557 $config_headers
37558
37559 Configuration commands:
37560 $config_commands
37561
37562 Report bugs to <bug-autoconf@gnu.org>."
37563 _ACEOF
37564
37565 cat >>$CONFIG_STATUS <<_ACEOF
37566 ac_cs_version="\\
37567 wxWindows config.status 2.5.1
37568 configured by $0, generated by GNU Autoconf 2.57,
37569 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
37570
37571 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
37572 Free Software Foundation, Inc.
37573 This config.status script is free software; the Free Software Foundation
37574 gives unlimited permission to copy, distribute and modify it."
37575 srcdir=$srcdir
37576 INSTALL="$INSTALL"
37577 _ACEOF
37578
37579 cat >>$CONFIG_STATUS <<\_ACEOF
37580 # If no file are specified by the user, then we need to provide default
37581 # value. By we need to know if files were specified by the user.
37582 ac_need_defaults=:
37583 while test $# != 0
37584 do
37585 case $1 in
37586 --*=*)
37587 ac_option=`expr "x$1" : 'x\([^=]*\)='`
37588 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
37589 ac_shift=:
37590 ;;
37591 -*)
37592 ac_option=$1
37593 ac_optarg=$2
37594 ac_shift=shift
37595 ;;
37596 *) # This is not an option, so the user has probably given explicit
37597 # arguments.
37598 ac_option=$1
37599 ac_need_defaults=false;;
37600 esac
37601
37602 case $ac_option in
37603 # Handling of the options.
37604 _ACEOF
37605 cat >>$CONFIG_STATUS <<\_ACEOF
37606 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37607 ac_cs_recheck=: ;;
37608 --version | --vers* | -V )
37609 echo "$ac_cs_version"; exit 0 ;;
37610 --he | --h)
37611 # Conflict between --help and --header
37612 { { echo "$as_me:$LINENO: error: ambiguous option: $1
37613 Try \`$0 --help' for more information." >&5
37614 echo "$as_me: error: ambiguous option: $1
37615 Try \`$0 --help' for more information." >&2;}
37616 { (exit 1); exit 1; }; };;
37617 --help | --hel | -h )
37618 echo "$ac_cs_usage"; exit 0 ;;
37619 --debug | --d* | -d )
37620 debug=: ;;
37621 --file | --fil | --fi | --f )
37622 $ac_shift
37623 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
37624 ac_need_defaults=false;;
37625 --header | --heade | --head | --hea )
37626 $ac_shift
37627 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37628 ac_need_defaults=false;;
37629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37630 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37631 ac_cs_silent=: ;;
37632
37633 # This is an error.
37634 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
37635 Try \`$0 --help' for more information." >&5
37636 echo "$as_me: error: unrecognized option: $1
37637 Try \`$0 --help' for more information." >&2;}
37638 { (exit 1); exit 1; }; } ;;
37639
37640 *) ac_config_targets="$ac_config_targets $1" ;;
37641
37642 esac
37643 shift
37644 done
37645
37646 ac_configure_extra_args=
37647
37648 if $ac_cs_silent; then
37649 exec 6>/dev/null
37650 ac_configure_extra_args="$ac_configure_extra_args --silent"
37651 fi
37652
37653 _ACEOF
37654 cat >>$CONFIG_STATUS <<_ACEOF
37655 if \$ac_cs_recheck; then
37656 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37657 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37658 fi
37659
37660 _ACEOF
37661
37662 cat >>$CONFIG_STATUS <<_ACEOF
37663 #
37664 # INIT-COMMANDS section.
37665 #
37666
37667
37668 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
37669 LN_S="${LN_S}"
37670
37671
37672
37673 _ACEOF
37674
37675
37676
37677 cat >>$CONFIG_STATUS <<\_ACEOF
37678 for ac_config_target in $ac_config_targets
37679 do
37680 case "$ac_config_target" in
37681 # Handling of arguments.
37682 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
37683 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
37684 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37685 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
37686 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37687 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
37688 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
37689 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
37690 { (exit 1); exit 1; }; };;
37691 esac
37692 done
37693
37694 # If the user did not use the arguments to specify the items to instantiate,
37695 # then the envvar interface is used. Set only those that are not.
37696 # We use the long form for the default assignment because of an extremely
37697 # bizarre bug on SunOS 4.1.3.
37698 if $ac_need_defaults; then
37699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37701 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37702 fi
37703
37704 # Have a temporary directory for convenience. Make it in the build tree
37705 # simply because there is no reason to put it here, and in addition,
37706 # creating and moving files from /tmp can sometimes cause problems.
37707 # Create a temporary directory, and hook for its removal unless debugging.
37708 $debug ||
37709 {
37710 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
37711 trap '{ (exit 1); exit 1; }' 1 2 13 15
37712 }
37713
37714 # Create a (secure) tmp directory for tmp files.
37715
37716 {
37717 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
37718 test -n "$tmp" && test -d "$tmp"
37719 } ||
37720 {
37721 tmp=./confstat$$-$RANDOM
37722 (umask 077 && mkdir $tmp)
37723 } ||
37724 {
37725 echo "$me: cannot create a temporary directory in ." >&2
37726 { (exit 1); exit 1; }
37727 }
37728
37729 _ACEOF
37730
37731 cat >>$CONFIG_STATUS <<_ACEOF
37732
37733 #
37734 # CONFIG_FILES section.
37735 #
37736
37737 # No need to generate the scripts if there are no CONFIG_FILES.
37738 # This happens for instance when ./config.status config.h
37739 if test -n "\$CONFIG_FILES"; then
37740 # Protect against being on the right side of a sed subst in config.status.
37741 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
37742 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
37743 s,@SHELL@,$SHELL,;t t
37744 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
37745 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
37746 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
37747 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
37748 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
37749 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
37750 s,@exec_prefix@,$exec_prefix,;t t
37751 s,@prefix@,$prefix,;t t
37752 s,@program_transform_name@,$program_transform_name,;t t
37753 s,@bindir@,$bindir,;t t
37754 s,@sbindir@,$sbindir,;t t
37755 s,@libexecdir@,$libexecdir,;t t
37756 s,@datadir@,$datadir,;t t
37757 s,@sysconfdir@,$sysconfdir,;t t
37758 s,@sharedstatedir@,$sharedstatedir,;t t
37759 s,@localstatedir@,$localstatedir,;t t
37760 s,@libdir@,$libdir,;t t
37761 s,@includedir@,$includedir,;t t
37762 s,@oldincludedir@,$oldincludedir,;t t
37763 s,@infodir@,$infodir,;t t
37764 s,@mandir@,$mandir,;t t
37765 s,@build_alias@,$build_alias,;t t
37766 s,@host_alias@,$host_alias,;t t
37767 s,@target_alias@,$target_alias,;t t
37768 s,@DEFS@,$DEFS,;t t
37769 s,@ECHO_C@,$ECHO_C,;t t
37770 s,@ECHO_N@,$ECHO_N,;t t
37771 s,@ECHO_T@,$ECHO_T,;t t
37772 s,@LIBS@,$LIBS,;t t
37773 s,@build@,$build,;t t
37774 s,@build_cpu@,$build_cpu,;t t
37775 s,@build_vendor@,$build_vendor,;t t
37776 s,@build_os@,$build_os,;t t
37777 s,@host@,$host,;t t
37778 s,@host_cpu@,$host_cpu,;t t
37779 s,@host_vendor@,$host_vendor,;t t
37780 s,@host_os@,$host_os,;t t
37781 s,@target@,$target,;t t
37782 s,@target_cpu@,$target_cpu,;t t
37783 s,@target_vendor@,$target_vendor,;t t
37784 s,@target_os@,$target_os,;t t
37785 s,@CC@,$CC,;t t
37786 s,@CFLAGS@,$CFLAGS,;t t
37787 s,@LDFLAGS@,$LDFLAGS,;t t
37788 s,@CPPFLAGS@,$CPPFLAGS,;t t
37789 s,@ac_ct_CC@,$ac_ct_CC,;t t
37790 s,@EXEEXT@,$EXEEXT,;t t
37791 s,@OBJEXT@,$OBJEXT,;t t
37792 s,@CPP@,$CPP,;t t
37793 s,@EGREP@,$EGREP,;t t
37794 s,@CXX@,$CXX,;t t
37795 s,@CXXFLAGS@,$CXXFLAGS,;t t
37796 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
37797 s,@RANLIB@,$RANLIB,;t t
37798 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
37799 s,@AR@,$AR,;t t
37800 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
37801 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
37802 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
37803 s,@STRIP@,$STRIP,;t t
37804 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
37805 s,@LN_S@,$LN_S,;t t
37806 s,@CXXCPP@,$CXXCPP,;t t
37807 s,@subdirs@,$subdirs,;t t
37808 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
37809 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
37810 s,@GTK_LIBS@,$GTK_LIBS,;t t
37811 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
37812 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
37813 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
37814 s,@X_CFLAGS@,$X_CFLAGS,;t t
37815 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
37816 s,@X_LIBS@,$X_LIBS,;t t
37817 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
37818 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
37819 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
37820 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
37821 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
37822 s,@RESCOMP@,$RESCOMP,;t t
37823 s,@DEREZ@,$DEREZ,;t t
37824 s,@SETFILE@,$SETFILE,;t t
37825 s,@LIBICONV@,$LIBICONV,;t t
37826 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
37827 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
37828 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
37829 s,@SDL_LIBS@,$SDL_LIBS,;t t
37830 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
37831 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
37832 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
37833 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
37834 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
37835 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
37836 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
37837 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
37838 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
37839 s,@VENDOR@,$VENDOR,;t t
37840 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
37841 s,@WXUNIV@,$WXUNIV,;t t
37842 s,@MONOLITHIC@,$MONOLITHIC,;t t
37843 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
37844 s,@EXTRALIBS@,$EXTRALIBS,;t t
37845 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
37846 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
37847 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
37848 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
37849 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
37850 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
37851 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
37852 s,@UNICODE@,$UNICODE,;t t
37853 s,@BUILD@,$BUILD,;t t
37854 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
37855 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
37856 s,@SHARED@,$SHARED,;t t
37857 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
37858 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
37859 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
37860 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
37861 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
37862 s,@SET_MAKE@,$SET_MAKE,;t t
37863 s,@MAKE_SET@,$MAKE_SET,;t t
37864 s,@ac_ct_AR@,$ac_ct_AR,;t t
37865 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
37866 s,@NM@,$NM,;t t
37867 s,@ac_ct_NM@,$ac_ct_NM,;t t
37868 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
37869 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
37870 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
37871 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
37872 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
37873 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
37874 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
37875 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
37876 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
37877 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
37878 s,@LIBPREFIX@,$LIBPREFIX,;t t
37879 s,@DLLPREFIX@,$DLLPREFIX,;t t
37880 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
37881 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
37882 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
37883 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
37884 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
37885 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
37886 s,@PIC_FLAG@,$PIC_FLAG,;t t
37887 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
37888 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
37889 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
37890 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
37891 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
37892 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
37893 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
37894 s,@GCC_PCH@,$GCC_PCH,;t t
37895 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
37896 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
37897 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
37898 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
37899 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
37900 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
37901 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
37902 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
37903 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
37904 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
37905 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
37906 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
37907 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
37908 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
37909 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
37910 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
37911 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
37912 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
37913 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
37914 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
37915 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
37916 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
37917 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
37918 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
37919 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
37920 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
37921 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
37922 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
37923 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
37924 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
37925 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
37926 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
37927 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
37928 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
37929 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
37930 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
37931 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
37932 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
37933 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
37934 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
37935 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
37936 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
37937 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
37938 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
37939 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
37940 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
37941 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
37942 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
37943 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
37944 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
37945 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
37946 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
37947 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
37948 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
37949 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
37950 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
37951 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
37952 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
37953 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
37954 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
37955 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
37956 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
37957 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
37958 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
37959 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
37960 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
37961 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
37962 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
37963 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
37964 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
37965 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
37966 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
37967 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
37968 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
37969 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
37970 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
37971 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
37972 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
37973 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
37974 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
37975 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
37976 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
37977 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
37978 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
37979 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
37980 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
37981 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
37982 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
37983 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
37984 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
37985 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
37986 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
37987 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
37988 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
37989 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
37990 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
37991 s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
37992 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
37993 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
37994 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
37995 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
37996 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
37997 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
37998 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
37999 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
38000 s,@PATH_IFS@,$PATH_IFS,;t t
38001 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
38002 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
38003 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
38004 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
38005 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
38006 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
38007 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
38008 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
38009 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
38010 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
38011 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
38012 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
38013 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
38014 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
38015 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
38016 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
38017 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
38018 s,@WX_ALL@,$WX_ALL,;t t
38019 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
38020 s,@SHARED_LD@,$SHARED_LD,;t t
38021 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
38022 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
38023 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
38024 s,@USE_GUI@,$USE_GUI,;t t
38025 s,@AFMINSTALL@,$AFMINSTALL,;t t
38026 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
38027 s,@TOOLKIT@,$TOOLKIT,;t t
38028 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
38029 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
38030 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
38031 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
38032 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
38033 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
38034 s,@cross_compiling@,$cross_compiling,;t t
38035 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
38036 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
38037 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
38038 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
38039 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
38040 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
38041 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
38042 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
38043 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
38044 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
38045 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
38046 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
38047 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
38048 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
38049 s,@GUIDIST@,$GUIDIST,;t t
38050 s,@PORT_FILES@,$PORT_FILES,;t t
38051 s,@DISTDIR@,$DISTDIR,;t t
38052 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
38053 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
38054 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
38055 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
38056 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
38057 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
38058 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
38059 s,@RESFLAGS@,$RESFLAGS,;t t
38060 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
38061 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
38062 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
38063 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
38064 s,@MACRESCOMP@,$MACRESCOMP,;t t
38065 s,@MACSETFILE@,$MACSETFILE,;t t
38066 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
38067 s,@GCC@,$GCC,;t t
38068 s,@DLLTOOL@,$DLLTOOL,;t t
38069 s,@AS@,$AS,;t t
38070 s,@LD@,$LD,;t t
38071 s,@MAKEINFO@,$MAKEINFO,;t t
38072 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
38073 s,@LIBOBJS@,$LIBOBJS,;t t
38074 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
38075 CEOF
38076
38077 _ACEOF
38078
38079 cat >>$CONFIG_STATUS <<\_ACEOF
38080 # Split the substitutions into bite-sized pieces for seds with
38081 # small command number limits, like on Digital OSF/1 and HP-UX.
38082 ac_max_sed_lines=48
38083 ac_sed_frag=1 # Number of current file.
38084 ac_beg=1 # First line for current file.
38085 ac_end=$ac_max_sed_lines # Line after last line for current file.
38086 ac_more_lines=:
38087 ac_sed_cmds=
38088 while $ac_more_lines; do
38089 if test $ac_beg -gt 1; then
38090 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
38091 else
38092 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
38093 fi
38094 if test ! -s $tmp/subs.frag; then
38095 ac_more_lines=false
38096 else
38097 # The purpose of the label and of the branching condition is to
38098 # speed up the sed processing (if there are no `@' at all, there
38099 # is no need to browse any of the substitutions).
38100 # These are the two extra sed commands mentioned above.
38101 (echo ':t
38102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
38103 if test -z "$ac_sed_cmds"; then
38104 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
38105 else
38106 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
38107 fi
38108 ac_sed_frag=`expr $ac_sed_frag + 1`
38109 ac_beg=$ac_end
38110 ac_end=`expr $ac_end + $ac_max_sed_lines`
38111 fi
38112 done
38113 if test -z "$ac_sed_cmds"; then
38114 ac_sed_cmds=cat
38115 fi
38116 fi # test -n "$CONFIG_FILES"
38117
38118 _ACEOF
38119 cat >>$CONFIG_STATUS <<\_ACEOF
38120 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
38121 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38122 case $ac_file in
38123 - | *:- | *:-:* ) # input from stdin
38124 cat >$tmp/stdin
38125 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38127 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38128 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38129 * ) ac_file_in=$ac_file.in ;;
38130 esac
38131
38132 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
38133 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38135 X"$ac_file" : 'X\(//\)[^/]' \| \
38136 X"$ac_file" : 'X\(//\)$' \| \
38137 X"$ac_file" : 'X\(/\)' \| \
38138 . : '\(.\)' 2>/dev/null ||
38139 echo X"$ac_file" |
38140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38142 /^X\(\/\/\)$/{ s//\1/; q; }
38143 /^X\(\/\).*/{ s//\1/; q; }
38144 s/.*/./; q'`
38145 { if $as_mkdir_p; then
38146 mkdir -p "$ac_dir"
38147 else
38148 as_dir="$ac_dir"
38149 as_dirs=
38150 while test ! -d "$as_dir"; do
38151 as_dirs="$as_dir $as_dirs"
38152 as_dir=`(dirname "$as_dir") 2>/dev/null ||
38153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38154 X"$as_dir" : 'X\(//\)[^/]' \| \
38155 X"$as_dir" : 'X\(//\)$' \| \
38156 X"$as_dir" : 'X\(/\)' \| \
38157 . : '\(.\)' 2>/dev/null ||
38158 echo X"$as_dir" |
38159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38161 /^X\(\/\/\)$/{ s//\1/; q; }
38162 /^X\(\/\).*/{ s//\1/; q; }
38163 s/.*/./; q'`
38164 done
38165 test ! -n "$as_dirs" || mkdir $as_dirs
38166 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38167 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38168 { (exit 1); exit 1; }; }; }
38169
38170 ac_builddir=.
38171
38172 if test "$ac_dir" != .; then
38173 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38174 # A "../" for each directory in $ac_dir_suffix.
38175 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38176 else
38177 ac_dir_suffix= ac_top_builddir=
38178 fi
38179
38180 case $srcdir in
38181 .) # No --srcdir option. We are building in place.
38182 ac_srcdir=.
38183 if test -z "$ac_top_builddir"; then
38184 ac_top_srcdir=.
38185 else
38186 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38187 fi ;;
38188 [\\/]* | ?:[\\/]* ) # Absolute path.
38189 ac_srcdir=$srcdir$ac_dir_suffix;
38190 ac_top_srcdir=$srcdir ;;
38191 *) # Relative path.
38192 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38193 ac_top_srcdir=$ac_top_builddir$srcdir ;;
38194 esac
38195 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38196 # absolute.
38197 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38198 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38199 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38200 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
38201
38202
38203 case $INSTALL in
38204 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38205 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
38206 esac
38207
38208 if test x"$ac_file" != x-; then
38209 { echo "$as_me:$LINENO: creating $ac_file" >&5
38210 echo "$as_me: creating $ac_file" >&6;}
38211 rm -f "$ac_file"
38212 fi
38213 # Let's still pretend it is `configure' which instantiates (i.e., don't
38214 # use $as_me), people would be surprised to read:
38215 # /* config.h. Generated by config.status. */
38216 if test x"$ac_file" = x-; then
38217 configure_input=
38218 else
38219 configure_input="$ac_file. "
38220 fi
38221 configure_input=$configure_input"Generated from `echo $ac_file_in |
38222 sed 's,.*/,,'` by configure."
38223
38224 # First look for the input files in the build tree, otherwise in the
38225 # src tree.
38226 ac_file_inputs=`IFS=:
38227 for f in $ac_file_in; do
38228 case $f in
38229 -) echo $tmp/stdin ;;
38230 [\\/$]*)
38231 # Absolute (can't be DOS-style, as IFS=:)
38232 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38233 echo "$as_me: error: cannot find input file: $f" >&2;}
38234 { (exit 1); exit 1; }; }
38235 echo $f;;
38236 *) # Relative
38237 if test -f "$f"; then
38238 # Build tree
38239 echo $f
38240 elif test -f "$srcdir/$f"; then
38241 # Source tree
38242 echo $srcdir/$f
38243 else
38244 # /dev/null tree
38245 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38246 echo "$as_me: error: cannot find input file: $f" >&2;}
38247 { (exit 1); exit 1; }; }
38248 fi;;
38249 esac
38250 done` || { (exit 1); exit 1; }
38251 _ACEOF
38252 cat >>$CONFIG_STATUS <<_ACEOF
38253 sed "$ac_vpsub
38254 $extrasub
38255 _ACEOF
38256 cat >>$CONFIG_STATUS <<\_ACEOF
38257 :t
38258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38259 s,@configure_input@,$configure_input,;t t
38260 s,@srcdir@,$ac_srcdir,;t t
38261 s,@abs_srcdir@,$ac_abs_srcdir,;t t
38262 s,@top_srcdir@,$ac_top_srcdir,;t t
38263 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
38264 s,@builddir@,$ac_builddir,;t t
38265 s,@abs_builddir@,$ac_abs_builddir,;t t
38266 s,@top_builddir@,$ac_top_builddir,;t t
38267 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
38268 s,@INSTALL@,$ac_INSTALL,;t t
38269 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
38270 rm -f $tmp/stdin
38271 if test x"$ac_file" != x-; then
38272 mv $tmp/out $ac_file
38273 else
38274 cat $tmp/out
38275 rm -f $tmp/out
38276 fi
38277
38278 done
38279 _ACEOF
38280 cat >>$CONFIG_STATUS <<\_ACEOF
38281
38282 #
38283 # CONFIG_HEADER section.
38284 #
38285
38286 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
38287 # NAME is the cpp macro being defined and VALUE is the value it is being given.
38288 #
38289 # ac_d sets the value in "#define NAME VALUE" lines.
38290 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
38291 ac_dB='[ ].*$,\1#\2'
38292 ac_dC=' '
38293 ac_dD=',;t'
38294 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
38295 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
38296 ac_uB='$,\1#\2define\3'
38297 ac_uC=' '
38298 ac_uD=',;t'
38299
38300 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
38301 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38302 case $ac_file in
38303 - | *:- | *:-:* ) # input from stdin
38304 cat >$tmp/stdin
38305 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38307 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38308 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38309 * ) ac_file_in=$ac_file.in ;;
38310 esac
38311
38312 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
38313 echo "$as_me: creating $ac_file" >&6;}
38314
38315 # First look for the input files in the build tree, otherwise in the
38316 # src tree.
38317 ac_file_inputs=`IFS=:
38318 for f in $ac_file_in; do
38319 case $f in
38320 -) echo $tmp/stdin ;;
38321 [\\/$]*)
38322 # Absolute (can't be DOS-style, as IFS=:)
38323 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38324 echo "$as_me: error: cannot find input file: $f" >&2;}
38325 { (exit 1); exit 1; }; }
38326 echo $f;;
38327 *) # Relative
38328 if test -f "$f"; then
38329 # Build tree
38330 echo $f
38331 elif test -f "$srcdir/$f"; then
38332 # Source tree
38333 echo $srcdir/$f
38334 else
38335 # /dev/null tree
38336 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38337 echo "$as_me: error: cannot find input file: $f" >&2;}
38338 { (exit 1); exit 1; }; }
38339 fi;;
38340 esac
38341 done` || { (exit 1); exit 1; }
38342 # Remove the trailing spaces.
38343 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
38344
38345 _ACEOF
38346
38347 # Transform confdefs.h into two sed scripts, `conftest.defines' and
38348 # `conftest.undefs', that substitutes the proper values into
38349 # config.h.in to produce config.h. The first handles `#define'
38350 # templates, and the second `#undef' templates.
38351 # And first: Protect against being on the right side of a sed subst in
38352 # config.status. Protect against being in an unquoted here document
38353 # in config.status.
38354 rm -f conftest.defines conftest.undefs
38355 # Using a here document instead of a string reduces the quoting nightmare.
38356 # Putting comments in sed scripts is not portable.
38357 #
38358 # `end' is used to avoid that the second main sed command (meant for
38359 # 0-ary CPP macros) applies to n-ary macro definitions.
38360 # See the Autoconf documentation for `clear'.
38361 cat >confdef2sed.sed <<\_ACEOF
38362 s/[\\&,]/\\&/g
38363 s,[\\$`],\\&,g
38364 t clear
38365 : clear
38366 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
38367 t end
38368 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
38369 : end
38370 _ACEOF
38371 # If some macros were called several times there might be several times
38372 # the same #defines, which is useless. Nevertheless, we may not want to
38373 # sort them, since we want the *last* AC-DEFINE to be honored.
38374 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
38375 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
38376 rm -f confdef2sed.sed
38377
38378 # This sed command replaces #undef with comments. This is necessary, for
38379 # example, in the case of _POSIX_SOURCE, which is predefined and required
38380 # on some systems where configure will not decide to define it.
38381 cat >>conftest.undefs <<\_ACEOF
38382 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
38383 _ACEOF
38384
38385 # Break up conftest.defines because some shells have a limit on the size
38386 # of here documents, and old seds have small limits too (100 cmds).
38387 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
38388 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
38389 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
38390 echo ' :' >>$CONFIG_STATUS
38391 rm -f conftest.tail
38392 while grep . conftest.defines >/dev/null
38393 do
38394 # Write a limited-size here document to $tmp/defines.sed.
38395 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
38396 # Speed up: don't consider the non `#define' lines.
38397 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
38398 # Work around the forget-to-reset-the-flag bug.
38399 echo 't clr' >>$CONFIG_STATUS
38400 echo ': clr' >>$CONFIG_STATUS
38401 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
38402 echo 'CEOF
38403 sed -f $tmp/defines.sed $tmp/in >$tmp/out
38404 rm -f $tmp/in
38405 mv $tmp/out $tmp/in
38406 ' >>$CONFIG_STATUS
38407 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
38408 rm -f conftest.defines
38409 mv conftest.tail conftest.defines
38410 done
38411 rm -f conftest.defines
38412 echo ' fi # grep' >>$CONFIG_STATUS
38413 echo >>$CONFIG_STATUS
38414
38415 # Break up conftest.undefs because some shells have a limit on the size
38416 # of here documents, and old seds have small limits too (100 cmds).
38417 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
38418 rm -f conftest.tail
38419 while grep . conftest.undefs >/dev/null
38420 do
38421 # Write a limited-size here document to $tmp/undefs.sed.
38422 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
38423 # Speed up: don't consider the non `#undef'
38424 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
38425 # Work around the forget-to-reset-the-flag bug.
38426 echo 't clr' >>$CONFIG_STATUS
38427 echo ': clr' >>$CONFIG_STATUS
38428 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
38429 echo 'CEOF
38430 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
38431 rm -f $tmp/in
38432 mv $tmp/out $tmp/in
38433 ' >>$CONFIG_STATUS
38434 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
38435 rm -f conftest.undefs
38436 mv conftest.tail conftest.undefs
38437 done
38438 rm -f conftest.undefs
38439
38440 cat >>$CONFIG_STATUS <<\_ACEOF
38441 # Let's still pretend it is `configure' which instantiates (i.e., don't
38442 # use $as_me), people would be surprised to read:
38443 # /* config.h. Generated by config.status. */
38444 if test x"$ac_file" = x-; then
38445 echo "/* Generated by configure. */" >$tmp/config.h
38446 else
38447 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
38448 fi
38449 cat $tmp/in >>$tmp/config.h
38450 rm -f $tmp/in
38451 if test x"$ac_file" != x-; then
38452 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
38453 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38454 echo "$as_me: $ac_file is unchanged" >&6;}
38455 else
38456 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38458 X"$ac_file" : 'X\(//\)[^/]' \| \
38459 X"$ac_file" : 'X\(//\)$' \| \
38460 X"$ac_file" : 'X\(/\)' \| \
38461 . : '\(.\)' 2>/dev/null ||
38462 echo X"$ac_file" |
38463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38465 /^X\(\/\/\)$/{ s//\1/; q; }
38466 /^X\(\/\).*/{ s//\1/; q; }
38467 s/.*/./; q'`
38468 { if $as_mkdir_p; then
38469 mkdir -p "$ac_dir"
38470 else
38471 as_dir="$ac_dir"
38472 as_dirs=
38473 while test ! -d "$as_dir"; do
38474 as_dirs="$as_dir $as_dirs"
38475 as_dir=`(dirname "$as_dir") 2>/dev/null ||
38476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38477 X"$as_dir" : 'X\(//\)[^/]' \| \
38478 X"$as_dir" : 'X\(//\)$' \| \
38479 X"$as_dir" : 'X\(/\)' \| \
38480 . : '\(.\)' 2>/dev/null ||
38481 echo X"$as_dir" |
38482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38484 /^X\(\/\/\)$/{ s//\1/; q; }
38485 /^X\(\/\).*/{ s//\1/; q; }
38486 s/.*/./; q'`
38487 done
38488 test ! -n "$as_dirs" || mkdir $as_dirs
38489 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38490 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38491 { (exit 1); exit 1; }; }; }
38492
38493 rm -f $ac_file
38494 mv $tmp/config.h $ac_file
38495 fi
38496 else
38497 cat $tmp/config.h
38498 rm -f $tmp/config.h
38499 fi
38500 done
38501 _ACEOF
38502 cat >>$CONFIG_STATUS <<\_ACEOF
38503
38504 #
38505 # CONFIG_COMMANDS section.
38506 #
38507 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
38508 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
38509 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
38510 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
38511 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38512 X"$ac_dest" : 'X\(//\)[^/]' \| \
38513 X"$ac_dest" : 'X\(//\)$' \| \
38514 X"$ac_dest" : 'X\(/\)' \| \
38515 . : '\(.\)' 2>/dev/null ||
38516 echo X"$ac_dest" |
38517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38519 /^X\(\/\/\)$/{ s//\1/; q; }
38520 /^X\(\/\).*/{ s//\1/; q; }
38521 s/.*/./; q'`
38522 ac_builddir=.
38523
38524 if test "$ac_dir" != .; then
38525 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38526 # A "../" for each directory in $ac_dir_suffix.
38527 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38528 else
38529 ac_dir_suffix= ac_top_builddir=
38530 fi
38531
38532 case $srcdir in
38533 .) # No --srcdir option. We are building in place.
38534 ac_srcdir=.
38535 if test -z "$ac_top_builddir"; then
38536 ac_top_srcdir=.
38537 else
38538 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38539 fi ;;
38540 [\\/]* | ?:[\\/]* ) # Absolute path.
38541 ac_srcdir=$srcdir$ac_dir_suffix;
38542 ac_top_srcdir=$srcdir ;;
38543 *) # Relative path.
38544 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38545 ac_top_srcdir=$ac_top_builddir$srcdir ;;
38546 esac
38547 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38548 # absolute.
38549 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38550 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38551 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38552 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
38553
38554
38555 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
38556 echo "$as_me: executing $ac_dest commands" >&6;}
38557 case $ac_dest in
38558 default )
38559 if test ! -h wx-config; then
38560 chmod +x wx-config
38561 mv wx-config wx${TOOLCHAIN_NAME}-config
38562 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
38563 fi
38564
38565 if test ! -d lib; then
38566 mkdir lib
38567 fi
38568 if test ! -d lib/wx; then
38569 mkdir lib/wx
38570 fi
38571 if test ! -d lib/wx/include; then
38572 mkdir lib/wx/include
38573 fi
38574 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
38575 mkdir lib/wx/include/${TOOLCHAIN_NAME}
38576 fi
38577 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
38578 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
38579 fi
38580 if test -f setup.h; then
38581 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
38582 fi
38583 ;;
38584 esac
38585 done
38586 _ACEOF
38587
38588 cat >>$CONFIG_STATUS <<\_ACEOF
38589
38590 { (exit 0); exit 0; }
38591 _ACEOF
38592 chmod +x $CONFIG_STATUS
38593 ac_clean_files=$ac_clean_files_save
38594
38595
38596 # configure is writing to config.log, and then calls config.status.
38597 # config.status does its own redirection, appending to config.log.
38598 # Unfortunately, on DOS this fails, as config.log is still kept open
38599 # by configure, so config.status won't be able to write to it; its
38600 # output is simply discarded. So we exec the FD to /dev/null,
38601 # effectively closing config.log, so it can be properly (re)opened and
38602 # appended to by config.status. When coming back to configure, we
38603 # need to make the FD available again.
38604 if test "$no_create" != yes; then
38605 ac_cs_success=:
38606 ac_config_status_args=
38607 test "$silent" = yes &&
38608 ac_config_status_args="$ac_config_status_args --quiet"
38609 exec 5>/dev/null
38610 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38611 exec 5>>config.log
38612 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38613 # would make configure fail if this is the last instruction.
38614 $ac_cs_success || { (exit 1); exit 1; }
38615 fi
38616
38617 #
38618 # CONFIG_SUBDIRS section.
38619 #
38620 if test "$no_recursion" != yes; then
38621
38622 # Remove --cache-file and --srcdir arguments so they do not pile up.
38623 ac_sub_configure_args=
38624 ac_prev=
38625 for ac_arg in $ac_configure_args; do
38626 if test -n "$ac_prev"; then
38627 ac_prev=
38628 continue
38629 fi
38630 case $ac_arg in
38631 -cache-file | --cache-file | --cache-fil | --cache-fi \
38632 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
38633 ac_prev=cache_file ;;
38634 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
38635 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
38636 | --c=*)
38637 ;;
38638 --config-cache | -C)
38639 ;;
38640 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
38641 ac_prev=srcdir ;;
38642 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
38643 ;;
38644 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
38645 ac_prev=prefix ;;
38646 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
38647 ;;
38648 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
38649 esac
38650 done
38651
38652 # Always prepend --prefix to ensure using the same prefix
38653 # in subdir configurations.
38654 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
38655
38656 ac_popdir=`pwd`
38657 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
38658
38659 # Do not complain, so a configure script can configure whichever
38660 # parts of a large source tree are present.
38661 test -d $srcdir/$ac_dir || continue
38662
38663 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
38664 echo "$as_me: configuring in $ac_dir" >&6;}
38665 { if $as_mkdir_p; then
38666 mkdir -p "$ac_dir"
38667 else
38668 as_dir="$ac_dir"
38669 as_dirs=
38670 while test ! -d "$as_dir"; do
38671 as_dirs="$as_dir $as_dirs"
38672 as_dir=`(dirname "$as_dir") 2>/dev/null ||
38673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38674 X"$as_dir" : 'X\(//\)[^/]' \| \
38675 X"$as_dir" : 'X\(//\)$' \| \
38676 X"$as_dir" : 'X\(/\)' \| \
38677 . : '\(.\)' 2>/dev/null ||
38678 echo X"$as_dir" |
38679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38681 /^X\(\/\/\)$/{ s//\1/; q; }
38682 /^X\(\/\).*/{ s//\1/; q; }
38683 s/.*/./; q'`
38684 done
38685 test ! -n "$as_dirs" || mkdir $as_dirs
38686 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38687 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38688 { (exit 1); exit 1; }; }; }
38689
38690 ac_builddir=.
38691
38692 if test "$ac_dir" != .; then
38693 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38694 # A "../" for each directory in $ac_dir_suffix.
38695 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38696 else
38697 ac_dir_suffix= ac_top_builddir=
38698 fi
38699
38700 case $srcdir in
38701 .) # No --srcdir option. We are building in place.
38702 ac_srcdir=.
38703 if test -z "$ac_top_builddir"; then
38704 ac_top_srcdir=.
38705 else
38706 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38707 fi ;;
38708 [\\/]* | ?:[\\/]* ) # Absolute path.
38709 ac_srcdir=$srcdir$ac_dir_suffix;
38710 ac_top_srcdir=$srcdir ;;
38711 *) # Relative path.
38712 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38713 ac_top_srcdir=$ac_top_builddir$srcdir ;;
38714 esac
38715 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38716 # absolute.
38717 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38718 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38719 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38720 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
38721
38722
38723 cd $ac_dir
38724
38725 # Check for guested configure; otherwise get Cygnus style configure.
38726 if test -f $ac_srcdir/configure.gnu; then
38727 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
38728 elif test -f $ac_srcdir/configure; then
38729 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
38730 elif test -f $ac_srcdir/configure.in; then
38731 ac_sub_configure=$ac_configure
38732 else
38733 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
38734 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
38735 ac_sub_configure=
38736 fi
38737
38738 # The recursion is here.
38739 if test -n "$ac_sub_configure"; then
38740 # Make the cache file name correct relative to the subdirectory.
38741 case $cache_file in
38742 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
38743 *) # Relative path.
38744 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
38745 esac
38746
38747 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
38748 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
38749 # The eval makes quoting arguments work.
38750 eval $ac_sub_configure $ac_sub_configure_args \
38751 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
38752 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
38753 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
38754 { (exit 1); exit 1; }; }
38755 fi
38756
38757 cd $ac_popdir
38758 done
38759 fi
38760
38761
38762 echo
38763 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
38764 echo ""
38765 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
38766 echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
38767
38768 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
38769 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
38770 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
38771
38772 echo " What level of wxWindows compatibility should be enabled?"
38773 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
38774 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
38775
38776 echo " Which libraries should wxWindows use?"
38777 echo " jpeg ${wxUSE_LIBJPEG-none}"
38778 echo " png ${wxUSE_LIBPNG-none}"
38779 echo " regex ${wxUSE_REGEX}"
38780 echo " tiff ${wxUSE_LIBTIFF-none}"
38781 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
38782 echo " xpm ${wxUSE_LIBXPM-none}"
38783 fi
38784 echo " zlib ${wxUSE_ZLIB}"
38785 echo " odbc ${wxUSE_ODBC}"
38786 echo " expat ${wxUSE_EXPAT}"
38787 echo " libmspack ${wxUSE_LIBMSPACK}"
38788 echo " sdl ${wxUSE_LIBSDL}"
38789
38790 echo ""
38791